PageSourceSearch

https://clientli.lovable.app/assets/index-DoqAlnkE.js

js clientli.lovable.app collected 2026-10-03 03:25:31 UTC 1,468,006 bytes, 644 lines download raw bytes

vendor: 4,595 bytes, lines 1-9
1var f_=e=>{throw TypeError(e)};var ey=(e,t,r)=>t.has(e)||f_("Cannot "+r);var Q=(e,t,r)=>(ey(e,t,"read from private field"),r?r.call(e):t.get(e)),Be=(e,t,r)=>t.has(e)?f_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Oe=(e,t,r,n)=>(ey(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ir=(e,t,r)=>(ey(e,t,"access private method"),r);var Mh=(e,t,r,n)=>({set _(a){Oe(e,t,a,r)},get _(){return Q(e,t,n)}});function mB(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var hE={exports:{}},qg={},mE={exports:{}},Re={};/**
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 Kf=Symbol.for("react.element"),gB=Symbol.for("react.portal"),vB=Symbol.for("react.fragment"),xB=Symbol.for("react.strict_mode"),yB=Symbol.for("react.profiler"),bB=Symbol.for("react.provider"),wB=Symbol.for("react.context"),jB=Symbol.for("react.forward_ref"),NB=Symbol.for("react.suspense"),SB=Symbol.for("react.memo"),_B=Symbol.for("react.lazy"),h_=Symbol.iterator;function kB(e){return e===null||typeof e!="object"?null:(e=h_&&e[h_]||e["@@iterator"],typeof e=="function"?e:null)}var pE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gE=Object.assign,vE={};function eu(e,t,r){this.props=e,this.context=t,this.refs=vE,this.updater=r||pE}eu.prototype.isReactComponent={};eu.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")};eu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xE(){}xE.prototype=eu.prototype;function Vj(e,t,r){this.props=e,this.context=t,this.refs=vE,this.updater=r||pE}var Hj=Vj.prototype=new xE;Hj.constructor=Vj;gE(Hj,eu.prototype);Hj.isPureReactComponent=!0;var m_=Array.isArray,yE=Object.prototype.hasOwnProperty,qj={current:null},bE={key:!0,ref:!0,__self:!0,__source:!0};function wE(e,t,r){var n,a={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)yE.call(t,n)&&!bE.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:Kf,type:e,key:i,ref:o,props:a,_owner:qj.current}}function PB(e,t){return{$$typeof:Kf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gj(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kf}function CB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}
vendor: 4,894 bytes, lines 9-17
9var p_=/\/+/g;function ty(e,t){return typeof e=="object"&&e!==null&&e.key!=null?CB(""+e.key):t.toString(36)}function Cm(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Kf:case gB:o=!0}}if(o)return o=e,a=a(o),e=n===""?"."+ty(o,0):n,m_(a)?(r="",e!=null&&(r=e.replace(p_,"$&/")+"/"),Cm(a,t,r,"",function(u){return u})):a!=null&&(Gj(a)&&(a=PB(a,r+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(p_,"$&/")+"/")+e)),t.push(a)),1;if(o=0,n=n===""?".":n+":",m_(e))for(var l=0;l<e.length;l++){i=e[l];var c=n+ty(i,l);o+=Cm(i,t,r,c,a)}else if(c=kB(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=n+ty(i,l++),o+=Cm(i,t,r,c,a);else if(i==="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 Rh(e,t,r){if(e==null)return e;var n=[],a=0;return Cm(e,n,"","",function(i){return t.call(r,i,a++)}),n}function OB(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 Tr={current:null},Om={transition:null},AB={ReactCurrentDispatcher:Tr,ReactCurrentBatchConfig:Om,ReactCurrentOwner:qj};function jE(){throw Error("act(...) is not supported in production builds of React.")}Re.Children={map:Rh,forEach:function(e,t,r){Rh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Rh(e,function(){t++}),t},toArray:function(e){return Rh(e,function(t){return t})||[]},only:function(e){if(!Gj(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Re.Component=eu;Re.Fragment=vB;Re.Profiler=yB;Re.PureComponent=Vj;Re.StrictMode=xB;Re.Suspense=NB;Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AB;Re.act=jE;Re.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=gE({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=qj.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)yE.call(t,c)&&!bE.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:Kf,type:e.type,key:a,ref:i,props:n,_owner:o}};Re.createContext=function(e){return e={$$typeof:wB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bB,_context:e},e.Consumer=e};Re.createElement=wE;Re.createFactory=function(e){var t=wE.bind(null,e);return t.type=e,t};Re.createRef=function(){return{current:null}};Re.forwardRef=function(e){return{$$typeof:jB,render:e}};Re.isValidElement=Gj;Re.lazy=function(e){return{$$typeof:_B,_payload:{_status:-1,_result:e},_init:OB}};Re.memo=function(e,t){return{$$typeof:SB,type:e,compare:t===void 0?null:t}};Re.startTransition=function(e){var t=Om.transition;Om.transition={};try{e()}finally{Om.transition=t}};Re.unstable_act=jE;Re.useCallback=function(e,t){return Tr.current.useCallback(e,t)};Re.useContext=function(e){return Tr.current.useContext(e)};Re.useDebugValue=function(){};Re.useDeferredValue=function(e){return Tr.current.useDeferredValue(e)};Re.useEffect=function(e,t){return Tr.current.useEffect(e,t)};Re.useId=function(){return Tr.current.useId()};Re.useImperativeHandle=function(e,t,r){return Tr.current.useImperativeHandle(e,t,r)};Re.useInsertionEffect=function(e,t){return Tr.current.useInsertionEffect(e,t)};Re.useLayoutEffect=function(e,t){return Tr.current.useLayoutEffect(e,t)};Re.useMemo=function(e,t){return Tr.current.useMemo(e,t)};Re.useReducer=function(e,t,r){return Tr.current.useReducer(e,t,r)};Re.useRef=function(e){return Tr.current.useRef(e)};Re.useState=function(e){return Tr.current.useState(e)};Re.useSyncExternalStore=function(e,t,r){return Tr.current.useSyncExternalStore(e,t,r)};Re.useTransition=function(){return Tr.current.useTransition()};Re.version="18.3.1";mE.exports=Re;var b=mE.exports;const I=Ke(b),Kj=mB({__proto__:null,default:I},[b]);/**
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 EB=b,TB=Symbol.for("react.element"),IB=Symbol.for("react.fragment"),$B=Object.prototype.hasOwnProperty,MB=EB.__SECRET_INT
vendor: 11,409 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RB={key:!0,ref:!0,__self:!0,__source:!0};function NE(e,t,r){var n,a={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)$B.call(t,n)&&!RB.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:TB,type:e,key:i,ref:o,props:a,_owner:MB.current}}qg.Fragment=IB;qg.jsx=NE;qg.jsxs=NE;hE.exports=qg;var s=hE.exports,SE={exports:{}},fn={},_E={exports:{}},kE={};/**
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(M,R){var B=M.length;M.push(R);e:for(;0<B;){var H=B-1>>>1,U=M[H];if(0<a(U,R))M[H]=R,M[B]=U,B=H;else break e}}function r(M){return M.length===0?null:M[0]}function n(M){if(M.length===0)return null;var R=M[0],B=M.pop();if(B!==R){M[0]=B;e:for(var H=0,U=M.length,q=U>>>1;H<q;){var ee=2*(H+1)-1,de=M[ee],ce=ee+1,G=M[ce];if(0>a(de,B))ce<U&&0>a(G,de)?(M[H]=G,M[ce]=B,H=ce):(M[H]=de,M[ee]=B,H=ee);else if(ce<U&&0>a(G,B))M[H]=G,M[ce]=B,H=ce;else break e}}return R}function a(M,R){var B=M.sortIndex-R.sortIndex;return B!==0?B:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,h=3,m=!1,g=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(M){for(var R=r(u);R!==null;){if(R.callback===null)n(u);else if(R.startTime<=M)n(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=r(u)}}function N(M){if(p=!1,w(M),!g)if(r(c)!==null)g=!0,$(j);else{var R=r(u);R!==null&&L(N,R.startTime-M)}}function j(M,R){g=!1,p&&(p=!1,y(P),P=-1),m=!0;var B=h;try{for(w(R),f=r(c);f!==null&&(!(f.expirationTime>R)||M&&!C());){var H=f.callback;if(typeof H=="function"){f.callback=null,h=f.priorityLevel;var U=H(f.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(c)&&n(c),w(R)}else n(c);f=r(c)}if(f!==null)var q=!0;else{var ee=r(u);ee!==null&&L(N,ee.startTime-R),q=!1}return q}finally{f=null,h=B,m=!1}}var S=!1,_=null,P=-1,k=5,A=-1;function C(){return!(e.unstable_now()-A<k)}function T(){if(_!==null){var M=e.unstable_now();A=M;var R=!0;try{R=_(!0,M)}finally{R?E():(S=!1,_=null)}}else S=!1}var E;if(typeof x=="function")E=function(){x(T)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,D=O.port2;O.port1.onmessage=T,E=function(){D.postMessage(null)}}else E=function(){v(T,0)};function $(M){_=M,S||(S=!0,E())}function L(M,R){P=v(function(){M(e.unstable_now())},R)}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(M){M.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,$(j))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var B=h;h=R;try{return M()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,R){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=h;h=M;try{return R()}finally{h=B}},e.unstable_scheduleCallback=function(M,R,B){var H=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?H+B:H):B=H,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,M={id:d++,callback:R,priorityLevel:M,startTime:B,expirationTime:U,sortIndex:-1},B>H?(M.sortIndex=B,t(u,M),r(c)===null&&M===r(u)&&(p?(y(P),P=-1):p=!0,L(N,B-H))):(M.sortIndex=U,t(c,M),g||m||(g=!0,$(j))),M},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(M){var R=h;return function(){var B=h;h=R;try{return M.apply(this,arguments)}finally{h=B}}}})(kE);_E.exports=kE;var DB=_E.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 LB=b,dn=DB;function re(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 PE=new Set,Ad={};function Ko(e,t){hc(e,t),hc(e+"Capture",t)}function hc(e,t){for(Ad[e]=t,e=0;e<t.length;e++)PE.add(t[e])}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eb=Object.prototype.hasOwnProperty,FB=/^[: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]*$/,g_={},v_={};function BB(e){return Eb.call(v_,e)?!0:Eb.call(g_,e)?!1:FB.test(e)?v_[e]=!0:(g_[e]=!0,!1)}function zB(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 UB(e,t,r,n){if(t===null||typeof t>"u"||zB(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 Ir(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ar={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ar[e]=new Ir(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ar[t]=new Ir(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ar[e]=new Ir(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ar[e]=new Ir(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){ar[e]=new Ir(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ar[e]=new Ir(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ar[e]=new Ir(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ar[e]=new Ir(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ar[e]=new Ir(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yj=/[\-:]([a-z])/g;function Xj(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(Yj,Xj);ar[t]=new Ir(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(Yj,Xj);ar[t]=new Ir(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(Yj,Xj);ar[t]=new Ir(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ar[e]=new Ir(e,1,!1,e.toLowerCase(),null,!1,!1)});ar.xlinkHref=new Ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ar[e]=new Ir(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qj(e,t,r,n){var a=ar.hasOwnProperty(t)?ar[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(UB(t,r,a,n)&&(r=null),n||a===null?BB(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ka=LB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dh=Symbol.for("react.element"),kl=Symbol.for("react.portal"),Pl=Symbol.for("react.fragment"),Jj=Symbol.for("react.strict_mode"),Tb=Symbol.for("react.profiler"),CE=Symbol.for("react.provider"),OE=Symbol.for("react.context"),Zj=Symbol.for("react.forward_ref"),Ib=Symbol.for("react.suspense"),$b=Symbol.for("react.suspense_list"),e1=Symbol.for("react.memo"),qa=Symbol.for("react.lazy"),AE=Symbol.for("react.offscreen"),x_=Symbol.iterator;function Ou(e){return e===null||typeof e!="object"?null:(e=x_&&e[x_]||e["@@iterator"],typeof e=="function"?e:null)}var wt=Object.assign,ry;function Zu(e){if(ry===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ry=t&&t[1]||""}return`
34`+ry+e}var ny=!1;function sy(e,t){if(!e||ny)return"";ny=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 4,643 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(`
35`),i=n.stack.split(`
36`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=`
37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{ny=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zu(e):""}function WB(e){switch(e.tag){case 5:return Zu(e.type);case 16:return Zu("Lazy");case 13:return Zu("Suspense");case 19:return Zu("SuspenseList");case 0:case 2:case 15:return e=sy(e.type,!1),e;case 11:return e=sy(e.type.render,!1),e;case 1:return e=sy(e.type,!0),e;default:return""}}function Mb(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 kl:return"Portal";case Tb:return"Profiler";case Jj:return"StrictMode";case Ib:return"Suspense";case $b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OE:return(e.displayName||"Context")+".Consumer";case CE:return(e._context.displayName||"Context")+".Provider";case Zj:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e1:return t=e.displayName||null,t!==null?t:Mb(e.type)||"Memo";case qa:t=e._payload,e=e._init;try{return Mb(e(t))}catch{}}return null}function VB(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 Mb(t);case 8:return t===Jj?"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 wi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function EE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HB(e){var t=EE(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 a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.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 Lh(e){e._valueTracker||(e._valueTracker=HB(e))}function TE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=EE(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ym(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 Rb(e,t){var r=t.checked;return wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function y_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=wi(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 IE(e,t){t=t.checked,t!=null&&Qj(e,"checked",t,!1)}function Db(e,t){IE(e,t);var r=wi(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")?Lb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lb(e,t.type,wi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function b_(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)}
vendor: 9,463 bytes, line 37
37function Lb(e,t,r){(t!=="number"||Ym(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ed=Array.isArray;function Wl(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+wi(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Fb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function w_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(re(92));if(ed(r)){if(1<r.length)throw Error(re(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:wi(r)}}function $E(e,t){var r=wi(t.value),n=wi(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 j_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ME(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 Bb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ME(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fh,RE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fh=Fh||document.createElement("div"),Fh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ed(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cd={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},qB=["Webkit","ms","Moz","O"];Object.keys(cd).forEach(function(e){qB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cd[t]=cd[e]})});function DE(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||cd.hasOwnProperty(e)&&cd[e]?(""+t).trim():t+"px"}function LE(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=DE(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var GB=wt({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 zb(e,t){if(t){if(GB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function Ub(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 Wb=null;function t1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vb=null,Vl=null,Hl=null;function N_(e){if(e=Qf(e)){if(typeof Vb!="function")throw Error(re(280));var t=e.stateNode;t&&(t=Qg(t),Vb(e.stateNode,e.type,t))}}function FE(e){Vl?Hl?Hl.push(e):Hl=[e]:Vl=e}function BE(){if(Vl){var e=Vl,t=Hl;if(Hl=Vl=null,N_(e),t)for(e=0;e<t.length;e++)N_(t[e])}}function zE(e,t){return e(t)}function UE(){}var ay=!1;function WE(e,t,r){if(ay)return e(t,r);ay=!0;try{return zE(e,t,r)}finally{ay=!1,(Vl!==null||Hl!==null)&&(UE(),BE())}}function Td(e,t){var r=e.stateNode;if(r===null)return null;var n=Qg(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(re(231,t,typeof r));return r}var Hb=!1;if(ga)try{var Au={};Object.defineProperty(Au,"passive",{get:function(){Hb=!0}}),window.addEventListener("test",Au,Au),window.removeEventListener("test",Au,Au)}catch{Hb=!1}function KB(e,t,r,n,a,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(d){this.onError(d)}}var ud=!1,Xm=null,Qm=!1,qb=null,YB={onError:function(e){ud=!0,Xm=e}};function XB(e,t,r,n,a,i,o,l,c){ud=!1,Xm=null,KB.apply(YB,arguments)}function QB(e,t,r,n,a,i,o,l,c){if(XB.apply(this,arguments),ud){if(ud){var u=Xm;ud=!1,Xm=null}else throw Error(re(198));Qm||(Qm=!0,qb=u)}}function Yo(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 VE(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 S_(e){if(Yo(e)!==e)throw Error(re(188))}function JB(e){var t=e.alternate;if(!t){if(t=Yo(e),t===null)throw Error(re(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return S_(a),e;if(i===n)return S_(a),t;i=i.sibling}throw Error(re(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o)throw Error(re(189))}}if(r.alternate!==n)throw Error(re(190))}if(r.tag!==3)throw Error(re(188));return r.stateNode.current===r?e:t}function HE(e){return e=JB(e),e!==null?qE(e):null}function qE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qE(e);if(t!==null)return t;e=e.sibling}return null}var GE=dn.unstable_scheduleCallback,__=dn.unstable_cancelCallback,ZB=dn.unstable_shouldYield,e8=dn.unstable_requestPaint,Ot=dn.unstable_now,t8=dn.unstable_getCurrentPriorityLevel,r1=dn.unstable_ImmediatePriority,KE=dn.unstable_UserBlockingPriority,Jm=dn.unstable_NormalPriority,r8=dn.unstable_LowPriority,YE=dn.unstable_IdlePriority,Gg=null,Ms=null;function n8(e){if(Ms&&typeof Ms.onCommitFiberRoot=="function")try{Ms.onCommitFiberRoot(Gg,e,void 0,(e.current.flags&128)===128)}catch{}}var os=Math.clz32?Math.clz32:i8,s8=Math.log,a8=Math.LN2;function i8(e){return e>>>=0,e===0?32:31-(s8(e)/a8|0)|0}var Bh=64,zh=4194304;function td(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 Zm(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~a;l!==0?n=td(l):(i&=o,i!==0&&(n=td(i)))}else o=r&~a,o!==0?n=td(o):i!==0&&(n=td(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&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-os(t),a=1<<r,n|=e[r],t&=~a;return n}function o8(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 l8(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-os(i),l=1<<o,c=a[o];c===-1?(!(l&r)||l&n)&&(a[o]=o8(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function Gb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function XE(){var e=Bh;return Bh<<=1,!(Bh&4194240)&&(Bh=64),e}function iy(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-os(t),e[t]=r}function c8(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 a=31-os(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}function n1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-os(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Xe=0;function QE(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var JE,s1,ZE,eT,tT,Kb=!1,Uh=[],ci=null,ui=null,di=null,Id=new Map,$d=new Map,Ya=[],u8="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 k_(e,t){switch(e){case"focusin":case"focusout":ci=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":Id.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$d.delete(t.pointerId)}}function Eu(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Qf(t),t!==null&&s1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function d8(e,t,r,n,a){switch(t){case"focusin":return ci=Eu(ci,e,t,r,n,a),!0;case"dragenter":return ui=Eu(ui,e,t,r,n,a),!0;case"mouseover":return di=Eu(di,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return Id.set(i,Eu(Id.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,$d.set(i,Eu($d.get(i)||null,e,t,r,n,a)),!0}return!1}function rT(e){var t=fo(e.target);if(t!==null){var r=Yo(t);if(r!==null){if(t=r.tag,t===13){if(t=VE(r),t!==null){e.blockedOn=t,tT(e.priority,function(){ZE(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 Am(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Wb=n,r.target.dispatchEvent(n),Wb=null}else return t=Qf(r),t!==null&&s1(t),e.blockedOn=r,!1;t.shift()}return!0}function P_(e,t,r){Am(e)&&r.delete(t)}function f8(){Kb=!1,ci!==null&&Am(ci)&&(ci=null),ui!==null&&Am(ui)&&(ui=null),di!==null&&Am(di)&&(di=null),Id.forEach(P_),$d.forEach(P_)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,Kb||(Kb=!0,dn.unstable_scheduleCallback(dn.unstable_NormalPriority,f8)))}function Md(e){function t(a){return Tu(a,e)}if(0<Uh.length){Tu(Uh[0],e);for(var r=1;r<Uh.length;r++){var n=Uh[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ci!==null&&Tu(ci,e),ui!==null&&Tu(ui,e),di!==null&&Tu(di,e),Id.forEach(t),$d.forEach(t),r=0;r<Ya.length;r++)n=Ya[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ya.length&&(r=Ya[0],r.blockedOn===null);)rT(r),r.blockedOn===null&&Ya.shift()}var ql=ka.ReactCurrentBatchConfig,ep=!0;function h8(e,t,r,n){var a=Xe,i=ql.transition;ql.transition=null;try{Xe=1,a1(e,t,r,n)}finally{Xe=a,ql.transition=i}}function m8(e,t,r,n){var a=Xe,i=ql.transition;ql.transition=null;try{Xe=4,a1(e,t,r,n)}finally{Xe=a,ql.transition=i}}function a1(e,t,r,n){if(ep){var a=Yb(e,t,r,n);if(a===null)gy(e,t,n,tp,r),k_(e,n);else if(d8(a,e,t,r,n))n.stopPropagation();else if(k_(e,n),t&4&&-1<u8.indexOf(e)){for(;a!==null;){var i=Qf(a);if(i!==null&&JE(i),i=Yb(e,t,r,n),i===null&&gy(e,t,n,tp,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else gy(e,t,n,null,r)}}var tp=null;function Yb(e,t,r,n){if(tp=null,e=t1(n),e=fo(e),e!==null)if(t=Yo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=VE(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 tp=e,null}
vendor: 10,163 bytes, line 37
37function nT(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(t8()){case r1:return 1;case KE:return 4;case Jm:case r8:return 16;case YE:return 536870912;default:return 16}default:return 16}}var si=null,i1=null,Em=null;function sT(){if(Em)return Em;var e,t=i1,r=t.length,n,a="value"in si?si.value:si.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return Em=a.slice(e,1<n?1-n:void 0)}function Tm(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 Wh(){return!0}function C_(){return!1}function hn(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wh:C_,this.isPropagationStopped=C_,this}return wt(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=Wh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Wh)},persist:function(){},isPersistent:Wh}),t}var tu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},o1=hn(tu),Xf=wt({},tu,{view:0,detail:0}),p8=hn(Xf),oy,ly,Iu,Kg=wt({},Xf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:l1,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!==Iu&&(Iu&&e.type==="mousemove"?(oy=e.screenX-Iu.screenX,ly=e.screenY-Iu.screenY):ly=oy=0,Iu=e),oy)},movementY:function(e){return"movementY"in e?e.movementY:ly}}),O_=hn(Kg),g8=wt({},Kg,{dataTransfer:0}),v8=hn(g8),x8=wt({},Xf,{relatedTarget:0}),cy=hn(x8),y8=wt({},tu,{animationName:0,elapsedTime:0,pseudoElement:0}),b8=hn(y8),w8=wt({},tu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j8=hn(w8),N8=wt({},tu,{data:0}),A_=hn(N8),S8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_8={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"},k8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k8[e])?!!t[e]:!1}function l1(){return P8}var C8=wt({},Xf,{key:function(e){if(e.key){var t=S8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:l1,charCode:function(e){return e.type==="keypress"?Tm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O8=hn(C8),A8=wt({},Kg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E_=hn(A8),E8=wt({},Xf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:l1}),T8=hn(E8),I8=wt({},tu,{propertyName:0,elapsedTime:0,pseudoElement:0}),$8=hn(I8),M8=wt({},Kg,{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}),R8=hn(M8),D8=[9,13,27,32],c1=ga&&"CompositionEvent"in window,dd=null;ga&&"documentMode"in document&&(dd=document.documentMode);var L8=ga&&"TextEvent"in window&&!dd,aT=ga&&(!c1||dd&&8<dd&&11>=dd),T_=" ",I_=!1;function iT(e,t){switch(e){case"keyup":return D8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function F8(e,t){switch(e){case"compositionend":return oT(t);case"keypress":return t.which!==32?null:(I_=!0,T_);case"textInput":return e=t.data,e===T_&&I_?null:e;default:return null}}function B8(e,t){if(Cl)return e==="compositionend"||!c1&&iT(e,t)?(e=sT(),Em=i1=si=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 aT&&t.locale!=="ko"?null:t.data;default:return null}}var z8={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 $_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z8[e.type]:t==="textarea"}function lT(e,t,r,n){FE(n),t=rp(t,"onChange"),0<t.length&&(r=new o1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var fd=null,Rd=null;function U8(e){yT(e,0)}function Yg(e){var t=El(e);if(TE(t))return e}function W8(e,t){if(e==="change")return t}var cT=!1;if(ga){var uy;if(ga){var dy="oninput"in document;if(!dy){var M_=document.createElement("div");M_.setAttribute("oninput","return;"),dy=typeof M_.oninput=="function"}uy=dy}else uy=!1;cT=uy&&(!document.documentMode||9<document.documentMode)}function R_(){fd&&(fd.detachEvent("onpropertychange",uT),Rd=fd=null)}function uT(e){if(e.propertyName==="value"&&Yg(Rd)){var t=[];lT(t,Rd,e,t1(e)),WE(U8,t)}}function V8(e,t,r){e==="focusin"?(R_(),fd=t,Rd=r,fd.attachEvent("onpropertychange",uT)):e==="focusout"&&R_()}function H8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yg(Rd)}function q8(e,t){if(e==="click")return Yg(t)}function G8(e,t){if(e==="input"||e==="change")return Yg(t)}function K8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hs=typeof Object.is=="function"?Object.is:K8;function Dd(e,t){if(hs(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 a=r[n];if(!Eb.call(t,a)||!hs(e[a],t[a]))return!1}return!0}function D_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function L_(e,t){var r=D_(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=D_(r)}}function dT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fT(){for(var e=window,t=Ym();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ym(e.document)}return t}function u1(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 Y8(e){var t=fT(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dT(r.ownerDocument.documentElement,r)){if(n!==null&&u1(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 a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=L_(r,i);var o=L_(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>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 X8=ga&&"documentMode"in document&&11>=document.documentMode,Ol=null,Xb=null,hd=null,Qb=!1;function F_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;
vendor: 4,621 bytes, line 37
37Qb||Ol==null||Ol!==Ym(n)||(n=Ol,"selectionStart"in n&&u1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),hd&&Dd(hd,n)||(hd=n,n=rp(Xb,"onSelect"),0<n.length&&(t=new o1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ol)))}function Vh(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Al={animationend:Vh("Animation","AnimationEnd"),animationiteration:Vh("Animation","AnimationIteration"),animationstart:Vh("Animation","AnimationStart"),transitionend:Vh("Transition","TransitionEnd")},fy={},hT={};ga&&(hT=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function Xg(e){if(fy[e])return fy[e];if(!Al[e])return e;var t=Al[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in hT)return fy[e]=t[r];return e}var mT=Xg("animationend"),pT=Xg("animationiteration"),gT=Xg("animationstart"),vT=Xg("transitionend"),xT=new Map,B_="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 Oi(e,t){xT.set(e,t),Ko(t,[e])}for(var hy=0;hy<B_.length;hy++){var my=B_[hy],Q8=my.toLowerCase(),J8=my[0].toUpperCase()+my.slice(1);Oi(Q8,"on"+J8)}Oi(mT,"onAnimationEnd");Oi(pT,"onAnimationIteration");Oi(gT,"onAnimationStart");Oi("dblclick","onDoubleClick");Oi("focusin","onFocus");Oi("focusout","onBlur");Oi(vT,"onTransitionEnd");hc("onMouseEnter",["mouseout","mouseover"]);hc("onMouseLeave",["mouseout","mouseover"]);hc("onPointerEnter",["pointerout","pointerover"]);hc("onPointerLeave",["pointerout","pointerover"]);Ko("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ko("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ko("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ko("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ko("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ko("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rd="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(" "),Z8=new Set("cancel close invalid load scroll toggle".split(" ").concat(rd));function z_(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,QB(n,t,void 0,e),e.currentTarget=null}function yT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;z_(a,l,u),i=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;z_(a,l,u),i=c}}}if(Qm)throw e=qb,Qm=!1,qb=null,e}function ut(e,t){var r=t[r0];r===void 0&&(r=t[r0]=new Set);var n=e+"__bubble";r.has(n)||(bT(t,e,2,!1),r.add(n))}function py(e,t,r){var n=0;t&&(n|=4),bT(r,e,n,t)}var Hh="_reactListening"+Math.random().toString(36).slice(2);function Ld(e){if(!e[Hh]){e[Hh]=!0,PE.forEach(function(r){r!=="selectionchange"&&(Z8.has(r)||py(r,!1,e),py(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hh]||(t[Hh]=!0,py("selectionchange",!1,t))}}function bT(e,t,r,n){switch(nT(t)){case 1:var a=h8;break;case 4:a=m8;break;default:a=a1}r=a.bind(null,t,r,e),a=void 0,!Hb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function gy(e,t,r,n,a){var i=n;
vendor: 5,522 bytes, lines 37-38
37if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=fo(l),o===null)return;if(c=o.tag,c===5||c===6){n=i=o;continue e}l=l.parentNode}}n=n.return}WE(function(){var u=i,d=t1(r),f=[];e:{var h=xT.get(e);if(h!==void 0){var m=o1,g=e;switch(e){case"keypress":if(Tm(r)===0)break e;case"keydown":case"keyup":m=O8;break;case"focusin":g="focus",m=cy;break;case"focusout":g="blur",m=cy;break;case"beforeblur":case"afterblur":m=cy;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":m=O_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=v8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=T8;break;case mT:case pT:case gT:m=b8;break;case vT:m=$8;break;case"scroll":m=p8;break;case"wheel":m=R8;break;case"copy":case"cut":case"paste":m=j8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=E_}var p=(t&4)!==0,v=!p&&e==="scroll",y=p?h!==null?h+"Capture":null:h;p=[];for(var x=u,w;x!==null;){w=x;var N=w.stateNode;if(w.tag===5&&N!==null&&(w=N,y!==null&&(N=Td(x,y),N!=null&&p.push(Fd(x,N,w)))),v)break;x=x.return}0<p.length&&(h=new m(h,g,null,r,d),f.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&r!==Wb&&(g=r.relatedTarget||r.fromElement)&&(fo(g)||g[va]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=u,g=g?fo(g):null,g!==null&&(v=Yo(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(p=O_,N="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=E_,N="onPointerLeave",y="onPointerEnter",x="pointer"),v=m==null?h:El(m),w=g==null?h:El(g),h=new p(N,x+"leave",m,r,d),h.target=v,h.relatedTarget=w,N=null,fo(d)===u&&(p=new p(y,x+"enter",g,r,d),p.target=w,p.relatedTarget=v,N=p),v=N,m&&g)t:{for(p=m,y=g,x=0,w=p;w;w=ul(w))x++;for(w=0,N=y;N;N=ul(N))w++;for(;0<x-w;)p=ul(p),x--;for(;0<w-x;)y=ul(y),w--;for(;x--;){if(p===y||y!==null&&p===y.alternate)break t;p=ul(p),y=ul(y)}p=null}else p=null;m!==null&&U_(f,h,m,p,!1),g!==null&&v!==null&&U_(f,v,g,p,!0)}}e:{if(h=u?El(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var j=W8;else if($_(h))if(cT)j=G8;else{j=H8;var S=V8}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=q8);if(j&&(j=j(e,u))){lT(f,j,r,d);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&Lb(h,"number",h.value)}switch(S=u?El(u):window,e){case"focusin":($_(S)||S.contentEditable==="true")&&(Ol=S,Xb=u,hd=null);break;case"focusout":hd=Xb=Ol=null;break;case"mousedown":Qb=!0;break;case"contextmenu":case"mouseup":case"dragend":Qb=!1,F_(f,r,d);break;case"selectionchange":if(X8)break;case"keydown":case"keyup":F_(f,r,d)}var _;if(c1)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Cl?iT(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(aT&&r.locale!=="ko"&&(Cl||P!=="onCompositionStart"?P==="onCompositionEnd"&&Cl&&(_=sT()):(si=d,i1="value"in si?si.value:si.textContent,Cl=!0)),S=rp(u,P),0<S.length&&(P=new A_(P,e,null,r,d),f.push({event:P,listeners:S}),_?P.data=_:(_=oT(r),_!==null&&(P.data=_)))),(_=L8?F8(e,r):B8(e,r))&&(u=rp(u,"onBeforeInput"),0<u.length&&(d=new A_("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=_))}yT(f,t)})}function Fd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function rp(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Td(e,r),i!=null&&n.unshift(Fd(e,i,a)),i=Td(e,t),i!=null&&n.push(Fd(e,i,a))),e=e.return}return n}function ul(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function U_(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,a?(c=Td(r,i),c!=null&&o.unshift(Fd(r,c,l))):a||(c=Td(r,i),c!=null&&o.push(Fd(r,c,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var ez=/\r\n?/g,tz=/\u0000|\uFFFD/g;function W_(e){return(typeof e=="string"?e:""+e).replace(ez,`
38`).replace(tz,"")}function qh(e,t,r){if(t=W_(t),W_(e)!==t&&r)throw Error(re(425))}function np(){}var Jb=null,Zb=null;function e0(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 t0=typeof setTimeout=="function"?setTimeout:void 0,rz=typeof clearTimeout=="function"?clearTimeout:void 0,V_=typeof Promise=="function"?Promise:void 0,nz=typeof queueMicrotask=="function"?queueMicrotask:typeof V_<"u"?function(e){return V_.resolve(null).then(e).catch(sz)}:t0;function sz(e){setTimeout(function(){throw e})}function vy(e,t){var r=t,n=0;
vendor: 4,835 bytes, line 38
38do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Md(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Md(t)}function fi(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 H_(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 ru=Math.random().toString(36).slice(2),Es="__reactFiber$"+ru,Bd="__reactProps$"+ru,va="__reactContainer$"+ru,r0="__reactEvents$"+ru,az="__reactListeners$"+ru,iz="__reactHandles$"+ru;function fo(e){var t=e[Es];if(t)return t;for(var r=e.parentNode;r;){if(t=r[va]||r[Es]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=H_(e);e!==null;){if(r=e[Es])return r;e=H_(e)}return t}e=r,r=e.parentNode}return null}function Qf(e){return e=e[Es]||e[va],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function El(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function Qg(e){return e[Bd]||null}var n0=[],Tl=-1;function Ai(e){return{current:e}}function ht(e){0>Tl||(e.current=n0[Tl],n0[Tl]=null,Tl--)}function ot(e,t){Tl++,n0[Tl]=e.current,e.current=t}var ji={},vr=Ai(ji),Wr=Ai(!1),Ao=ji;function mc(e,t){var r=e.type.contextTypes;if(!r)return ji;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Vr(e){return e=e.childContextTypes,e!=null}function sp(){ht(Wr),ht(vr)}function q_(e,t,r){if(vr.current!==ji)throw Error(re(168));ot(vr,t),ot(Wr,r)}function wT(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(re(108,VB(e)||"Unknown",a));return wt({},r,n)}function ap(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ji,Ao=vr.current,ot(vr,e),ot(Wr,Wr.current),!0}function G_(e,t,r){var n=e.stateNode;if(!n)throw Error(re(169));r?(e=wT(e,t,Ao),n.__reactInternalMemoizedMergedChildContext=e,ht(Wr),ht(vr),ot(vr,e)):ht(Wr),ot(Wr,r)}var na=null,Jg=!1,xy=!1;function jT(e){na===null?na=[e]:na.push(e)}function oz(e){Jg=!0,jT(e)}function Ei(){if(!xy&&na!==null){xy=!0;var e=0,t=Xe;try{var r=na;for(Xe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}na=null,Jg=!1}catch(a){throw na!==null&&(na=na.slice(e+1)),GE(r1,Ei),a}finally{Xe=t,xy=!1}}return null}var Il=[],$l=0,ip=null,op=0,bn=[],wn=0,Eo=null,ia=1,oa="";function ro(e,t){Il[$l++]=op,Il[$l++]=ip,ip=e,op=t}function NT(e,t,r){bn[wn++]=ia,bn[wn++]=oa,bn[wn++]=Eo,Eo=e;var n=ia;e=oa;var a=32-os(n)-1;n&=~(1<<a),r+=1;var i=32-os(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,ia=1<<32-os(t)+a|r<<a|n,oa=i+e}else ia=1<<i|r<<a|n,oa=e}function d1(e){e.return!==null&&(ro(e,1),NT(e,1,0))}function f1(e){for(;e===ip;)ip=Il[--$l],Il[$l]=null,op=Il[--$l],Il[$l]=null;for(;e===Eo;)Eo=bn[--wn],bn[wn]=null,oa=bn[--wn],bn[wn]=null,ia=bn[--wn],bn[wn]=null}var on=null,sn=null,mt=!1,ns=null;function ST(e,t){var r=Nn(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 K_(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,on=e,sn=fi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,on=e,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Eo!==null?{id:ia,overflow:oa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Nn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,on=e,sn=null,!0):!1;default:return!1}}function s0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function a0(e){if(mt){var t=sn;if(t){var r=t;if(!K_(e,t)){if(s0(e))throw Error(re(418));t=fi(r.nextSibling);var n=on;t&&K_(e,t)?ST(n,r):(e.flags=e.flags&-4097|2,mt=!1,on=e)}}else{if(s0(e))throw Error(re(418));e.flags=e.flags&-4097|2,mt=!1,on=e}}}function Y_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;on=e}function Gh(e){if(e!==on)return!1;if(!mt)return Y_(e),mt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!e0(e.type,e.memoizedProps)),t&&(t=sn)){if(s0(e))throw _T(),Error(re(418));for(;t;)ST(e,t),t=fi(t.nextSibling)}if(Y_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){sn=fi(e.nextSibling);break e}t--}
vendor: 10,112 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}sn=null}}else sn=on?fi(e.stateNode.nextSibling):null;return!0}function _T(){for(var e=sn;e;)e=fi(e.nextSibling)}function pc(){sn=on=null,mt=!1}function h1(e){ns===null?ns=[e]:ns.push(e)}var lz=ka.ReactCurrentBatchConfig;function $u(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(re(309));var n=r.stateNode}if(!n)throw Error(re(147,e));var a=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(re(284));if(!r._owner)throw Error(re(290,e))}return e}function Kh(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function X_(e){var t=e._init;return t(e._payload)}function kT(e){function t(y,x){if(e){var w=y.deletions;w===null?(y.deletions=[x],y.flags|=16):w.push(x)}}function r(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function n(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function a(y,x){return y=gi(y,x),y.index=0,y.sibling=null,y}function i(y,x,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<x?(y.flags|=2,x):w):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,x,w,N){return x===null||x.tag!==6?(x=_y(w,y.mode,N),x.return=y,x):(x=a(x,w),x.return=y,x)}function c(y,x,w,N){var j=w.type;return j===Pl?d(y,x,w.props.children,N,w.key):x!==null&&(x.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===qa&&X_(j)===x.type)?(N=a(x,w.props),N.ref=$u(y,x,w),N.return=y,N):(N=Fm(w.type,w.key,w.props,null,y.mode,N),N.ref=$u(y,x,w),N.return=y,N)}function u(y,x,w,N){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=ky(w,y.mode,N),x.return=y,x):(x=a(x,w.children||[]),x.return=y,x)}function d(y,x,w,N,j){return x===null||x.tag!==7?(x=Po(w,y.mode,N,j),x.return=y,x):(x=a(x,w),x.return=y,x)}function f(y,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=_y(""+x,y.mode,w),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Dh:return w=Fm(x.type,x.key,x.props,null,y.mode,w),w.ref=$u(y,null,x),w.return=y,w;case kl:return x=ky(x,y.mode,w),x.return=y,x;case qa:var N=x._init;return f(y,N(x._payload),w)}if(ed(x)||Ou(x))return x=Po(x,y.mode,w,null),x.return=y,x;Kh(y,x)}return null}function h(y,x,w,N){var j=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return j!==null?null:l(y,x,""+w,N);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Dh:return w.key===j?c(y,x,w,N):null;case kl:return w.key===j?u(y,x,w,N):null;case qa:return j=w._init,h(y,x,j(w._payload),N)}if(ed(w)||Ou(w))return j!==null?null:d(y,x,w,N,null);Kh(y,w)}return null}function m(y,x,w,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return y=y.get(w)||null,l(x,y,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Dh:return y=y.get(N.key===null?w:N.key)||null,c(x,y,N,j);case kl:return y=y.get(N.key===null?w:N.key)||null,u(x,y,N,j);case qa:var S=N._init;return m(y,x,w,S(N._payload),j)}if(ed(N)||Ou(N))return y=y.get(w)||null,d(x,y,N,j,null);Kh(x,N)}return null}function g(y,x,w,N){for(var j=null,S=null,_=x,P=x=0,k=null;_!==null&&P<w.length;P++){_.index>P?(k=_,_=null):k=_.sibling;var A=h(y,_,w[P],N);if(A===null){_===null&&(_=k);break}e&&_&&A.alternate===null&&t(y,_),x=i(A,x,P),S===null?j=A:S.sibling=A,S=A,_=k}if(P===w.length)return r(y,_),mt&&ro(y,P),j;if(_===null){for(;P<w.length;P++)_=f(y,w[P],N),_!==null&&(x=i(_,x,P),S===null?j=_:S.sibling=_,S=_);return mt&&ro(y,P),j}for(_=n(y,_);P<w.length;P++)k=m(_,y,P,w[P],N),k!==null&&(e&&k.alternate!==null&&_.delete(k.key===null?P:k.key),x=i(k,x,P),S===null?j=k:S.sibling=k,S=k);return e&&_.forEach(function(C){return t(y,C)}),mt&&ro(y,P),j}function p(y,x,w,N){var j=Ou(w);if(typeof j!="function")throw Error(re(150));if(w=j.call(w),w==null)throw Error(re(151));for(var S=j=null,_=x,P=x=0,k=null,A=w.next();_!==null&&!A.done;P++,A=w.next()){_.index>P?(k=_,_=null):k=_.sibling;var C=h(y,_,A.value,N);if(C===null){_===null&&(_=k);break}e&&_&&C.alternate===null&&t(y,_),x=i(C,x,P),S===null?j=C:S.sibling=C,S=C,_=k}if(A.done)return r(y,_),mt&&ro(y,P),j;if(_===null){for(;!A.done;P++,A=w.next())A=f(y,A.value,N),A!==null&&(x=i(A,x,P),S===null?j=A:S.sibling=A,S=A);return mt&&ro(y,P),j}for(_=n(y,_);!A.done;P++,A=w.next())A=m(_,y,P,A.value,N),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?P:A.key),x=i(A,x,P),S===null?j=A:S.sibling=A,S=A);return e&&_.forEach(function(T){return t(y,T)}),mt&&ro(y,P),j}function v(y,x,w,N){if(typeof w=="object"&&w!==null&&w.type===Pl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Dh:e:{for(var j=w.key,S=x;S!==null;){if(S.key===j){if(j=w.type,j===Pl){if(S.tag===7){r(y,S.sibling),x=a(S,w.props.children),x.return=y,y=x;break e}}else if(S.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===qa&&X_(j)===S.type){r(y,S.sibling),x=a(S,w.props),x.ref=$u(y,S,w),x.return=y,y=x;break e}r(y,S);break}else t(y,S);S=S.sibling}w.type===Pl?(x=Po(w.props.children,y.mode,N,w.key),x.return=y,y=x):(N=Fm(w.type,w.key,w.props,null,y.mode,N),N.ref=$u(y,x,w),N.return=y,y=N)}return o(y);case kl:e:{for(S=w.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){r(y,x.sibling),x=a(x,w.children||[]),x.return=y,y=x;break e}else{r(y,x);break}else t(y,x);x=x.sibling}x=ky(w,y.mode,N),x.return=y,y=x}return o(y);case qa:return S=w._init,v(y,x,S(w._payload),N)}if(ed(w))return g(y,x,w,N);if(Ou(w))return p(y,x,w,N);Kh(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(r(y,x.sibling),x=a(x,w),x.return=y,y=x):(r(y,x),x=_y(w,y.mode,N),x.return=y,y=x),o(y)):r(y,x)}return v}var gc=kT(!0),PT=kT(!1),lp=Ai(null),cp=null,Ml=null,m1=null;function p1(){m1=Ml=cp=null}function g1(e){var t=lp.current;ht(lp),e._currentValue=t}function i0(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 Gl(e,t){cp=e,m1=Ml=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zr=!0),e.firstContext=null)}function En(e){var t=e._currentValue;if(m1!==e)if(e={context:e,memoizedValue:t,next:null},Ml===null){if(cp===null)throw Error(re(308));Ml=e,cp.dependencies={lanes:0,firstContext:e}}else Ml=Ml.next=e;return t}var ho=null;function v1(e){ho===null?ho=[e]:ho.push(e)}function CT(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,v1(t)):(r.next=a.next,a.next=r),t.interleaved=r,xa(e,n)}function xa(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 Ga=!1;function x1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OT(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 da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Le&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,xa(e,r)}return a=n.interleaved,a===null?(t.next=t,v1(n)):(t.next=a.next,a.next=t),n.interleaved=t,xa(e,r)}function Im(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,n1(e,r)}}function Q_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=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};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,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 up(e,t,r,n){var a=e.updateQueue;Ga=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var f=a.baseState;o=0,d=u=c=null,l=i;do{var h=l.lane,m=l.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,p=l;switch(h=t,m=r,p.tag){case 1:if(g=p.payload,typeof g=="function"){f=g.call(m,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,h=typeof g=="function"?g.call(m,f,h):g,h==null)break e;f=wt({},f,h);break e;case 2:Ga=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=a.effects,h===null?a.effects=[l]:h.push(l))}else m={eventTime:m,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=f):d=d.next=m,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;h=l,l=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);Io|=o,e.lanes=o,e.memoizedState=f}}function J_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(re(191,a));a.call(n)}}}var Jf={},Rs=Ai(Jf),zd=Ai(Jf),Ud=Ai(Jf);function mo(e){if(e===Jf)throw Error(re(174));return e}
vendor: 7,980 bytes, line 38
38function y1(e,t){switch(ot(Ud,t),ot(zd,e),ot(Rs,Jf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bb(t,e)}ht(Rs),ot(Rs,t)}function vc(){ht(Rs),ht(zd),ht(Ud)}function AT(e){mo(Ud.current);var t=mo(Rs.current),r=Bb(t,e.type);t!==r&&(ot(zd,e),ot(Rs,r))}function b1(e){zd.current===e&&(ht(Rs),ht(zd))}var vt=Ai(0);function dp(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 yy=[];function w1(){for(var e=0;e<yy.length;e++)yy[e]._workInProgressVersionPrimary=null;yy.length=0}var $m=ka.ReactCurrentDispatcher,by=ka.ReactCurrentBatchConfig,To=0,yt=null,zt=null,Xt=null,fp=!1,md=!1,Wd=0,cz=0;function or(){throw Error(re(321))}function j1(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!hs(e[r],t[r]))return!1;return!0}function N1(e,t,r,n,a,i){if(To=i,yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$m.current=e===null||e.memoizedState===null?hz:mz,e=r(n,a),md){i=0;do{if(md=!1,Wd=0,25<=i)throw Error(re(301));i+=1,Xt=zt=null,t.updateQueue=null,$m.current=pz,e=r(n,a)}while(md)}if($m.current=hp,t=zt!==null&&zt.next!==null,To=0,Xt=zt=yt=null,fp=!1,t)throw Error(re(300));return e}function S1(){var e=Wd!==0;return Wd=0,e}function _s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?yt.memoizedState=Xt=e:Xt=Xt.next=e,Xt}function Tn(){if(zt===null){var e=yt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Xt===null?yt.memoizedState:Xt.next;if(t!==null)Xt=t,zt=e;else{if(e===null)throw Error(re(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Xt===null?yt.memoizedState=Xt=e:Xt=Xt.next=e}return Xt}function Vd(e,t){return typeof t=="function"?t(e):t}function wy(e){var t=Tn(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=zt,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,n=n.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((To&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,o=n):c=c.next=f,yt.lanes|=d,Io|=d}u=u.next}while(u!==null&&u!==i);c===null?o=n:c.next=l,hs(n,t.memoizedState)||(zr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do i=a.lane,yt.lanes|=i,Io|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function jy(e){var t=Tn(),r=t.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);hs(i,t.memoizedState)||(zr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ET(){}function TT(e,t){var r=yt,n=Tn(),a=t(),i=!hs(n.memoizedState,a);if(i&&(n.memoizedState=a,zr=!0),n=n.queue,_1(MT.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Xt!==null&&Xt.memoizedState.tag&1){if(r.flags|=2048,Hd(9,$T.bind(null,r,n,a,t),void 0,null),Jt===null)throw Error(re(349));To&30||IT(r,t,a)}return a}function IT(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function $T(e,t,r,n){t.value=r,t.getSnapshot=n,RT(t)&&DT(e)}function MT(e,t,r){return r(function(){RT(t)&&DT(e)})}function RT(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!hs(e,r)}catch{return!0}}function DT(e){var t=xa(e,1);t!==null&&ls(t,e,1,-1)}function Z_(e){var t=_s();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vd,lastRenderedState:e},t.queue=e,e=e.dispatch=fz.bind(null,yt,e),[t.memoizedState,e]}function Hd(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.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 LT(){return Tn().memoizedState}function Mm(e,t,r,n){var a=_s();yt.flags|=e,a.memoizedState=Hd(1|t,r,void 0,n===void 0?null:n)}function Zg(e,t,r,n){var a=Tn();n=n===void 0?null:n;var i=void 0;if(zt!==null){var o=zt.memoizedState;if(i=o.destroy,n!==null&&j1(n,o.deps)){a.memoizedState=Hd(t,r,i,n);return}}yt.flags|=e,a.memoizedState=Hd(1|t,r,i,n)}function ek(e,t){return Mm(8390656,8,e,t)}function _1(e,t){return Zg(2048,8,e,t)}function FT(e,t){return Zg(4,2,e,t)}function BT(e,t){return Zg(4,4,e,t)}function zT(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 UT(e,t,r){return r=r!=null?r.concat([e]):null,Zg(4,4,zT.bind(null,t,e),r)}function k1(){}function WT(e,t){var r=Tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&j1(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function VT(e,t){var r=Tn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&j1(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function HT(e,t,r){return To&21?(hs(r,t)||(r=XE(),yt.lanes|=r,Io|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zr=!0),e.memoizedState=r)}function uz(e,t){var r=Xe;Xe=r!==0&&4>r?r:4,e(!0);var n=by.transition;by.transition={};try{e(!1),t()}finally{Xe=r,by.transition=n}}function qT(){return Tn().memoizedState}function dz(e,t,r){var n=pi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},GT(e))KT(t,r);else if(r=CT(e,t,r,n),r!==null){var a=Cr();ls(r,e,n,a),YT(r,t,n)}}function fz(e,t,r){var n=pi(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(GT(e))KT(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,r);if(a.hasEagerState=!0,a.eagerState=l,hs(l,o)){var c=t.interleaved;c===null?(a.next=a,v1(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=CT(e,t,a,n),r!==null&&(a=Cr(),ls(r,e,n,a),YT(r,t,n))}}function GT(e){var t=e.alternate;return e===yt||t!==null&&t===yt}function KT(e,t){md=fp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function YT(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,n1(e,r)}}var hp={readContext:En,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useInsertionEffect:or,useLayoutEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useMutableSource:or,useSyncExternalStore:or,useId:or,unstable_isNewReconciler:!1},hz={readContext:En,useCallback:function(e,t){return _s().memoizedState=[e,t===void 0?null:t],e},useContext:En,useEffect:ek,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Mm(4194308,4,zT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Mm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mm(4,2,e,t)},useMemo:function(e,t){var r=_s();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=_s();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=dz.bind(null,yt,e),[n.memoizedState,e]}
vendor: 5,924 bytes, lines 38-40
38,useRef:function(e){var t=_s();return e={current:e},t.memoizedState=e},useState:Z_,useDebugValue:k1,useDeferredValue:function(e){return _s().memoizedState=e},useTransition:function(){var e=Z_(!1),t=e[0];return e=uz.bind(null,e[1]),_s().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yt,a=_s();if(mt){if(r===void 0)throw Error(re(407));r=r()}else{if(r=t(),Jt===null)throw Error(re(349));To&30||IT(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,ek(MT.bind(null,n,i,e),[e]),n.flags|=2048,Hd(9,$T.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=_s(),t=Jt.identifierPrefix;if(mt){var r=oa,n=ia;r=(n&~(1<<32-os(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Wd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=cz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mz={readContext:En,useCallback:WT,useContext:En,useEffect:_1,useImperativeHandle:UT,useInsertionEffect:FT,useLayoutEffect:BT,useMemo:VT,useReducer:wy,useRef:LT,useState:function(){return wy(Vd)},useDebugValue:k1,useDeferredValue:function(e){var t=Tn();return HT(t,zt.memoizedState,e)},useTransition:function(){var e=wy(Vd)[0],t=Tn().memoizedState;return[e,t]},useMutableSource:ET,useSyncExternalStore:TT,useId:qT,unstable_isNewReconciler:!1},pz={readContext:En,useCallback:WT,useContext:En,useEffect:_1,useImperativeHandle:UT,useInsertionEffect:FT,useLayoutEffect:BT,useMemo:VT,useReducer:jy,useRef:LT,useState:function(){return jy(Vd)},useDebugValue:k1,useDeferredValue:function(e){var t=Tn();return zt===null?t.memoizedState=e:HT(t,zt.memoizedState,e)},useTransition:function(){var e=jy(Vd)[0],t=Tn().memoizedState;return[e,t]},useMutableSource:ET,useSyncExternalStore:TT,useId:qT,unstable_isNewReconciler:!1};function Kn(e,t){if(e&&e.defaultProps){t=wt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function o0(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:wt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ev={isMounted:function(e){return(e=e._reactInternals)?Yo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Cr(),a=pi(e),i=da(n,a);i.payload=t,r!=null&&(i.callback=r),t=hi(e,i,a),t!==null&&(ls(t,e,a,n),Im(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Cr(),a=pi(e),i=da(n,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=hi(e,i,a),t!==null&&(ls(t,e,a,n),Im(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Cr(),n=pi(e),a=da(r,n);a.tag=2,t!=null&&(a.callback=t),t=hi(e,a,n),t!==null&&(ls(t,e,n,r),Im(t,e,n))}};function tk(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Dd(r,n)||!Dd(a,i):!0}function XT(e,t,r){var n=!1,a=ji,i=t.contextType;return typeof i=="object"&&i!==null?i=En(i):(a=Vr(t)?Ao:vr.current,n=t.contextTypes,i=(n=n!=null)?mc(e,a):ji),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ev,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function rk(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&&ev.enqueueReplaceState(t,t.state,null)}function l0(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},x1(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=En(i):(i=Vr(t)?Ao:vr.current,a.context=mc(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(o0(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ev.enqueueReplaceState(a,a.state,null),up(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function xc(e,t){try{var r="",n=t;do r+=WB(n),n=n.return;while(n);var a=r}catch(i){a=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:a,digest:null}}function Ny(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function c0(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var gz=typeof WeakMap=="function"?WeakMap:Map;function QT(e,t,r){r=da(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){pp||(pp=!0,y0=n),c0(e,t)},r}function JT(e,t,r){r=da(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){c0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){c0(e,t),typeof n!="function"&&(mi===null?mi=new Set([this]):mi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function nk(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new gz;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=Az.bind(null,e,t,r),t.then(e,e))}function sk(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 ak(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,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=da(-1,1),t.tag=2,hi(r,t,1))),r.lanes|=1),e)}var vz=ka.ReactCurrentOwner,zr=!1;function Nr(e,t,r,n){t.child=e===null?PT(t,null,r,n):gc(t,e.child,r,n)}function ik(e,t,r,n,a){r=r.render;var i=t.ref;
vendor: 6,220 bytes, line 40
40return Gl(t,a),n=N1(e,t,r,n,i,a),r=S1(),e!==null&&!zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ya(e,t,a)):(mt&&r&&d1(t),t.flags|=1,Nr(e,t,n,a),t.child)}function ok(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!$1(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,ZT(e,t,i,n,a)):(e=Fm(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Dd,r(o,n)&&e.ref===t.ref)return ya(e,t,a)}return t.flags|=1,e=gi(i,n),e.ref=t.ref,e.return=t,t.child=e}function ZT(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(Dd(i,n)&&e.ref===t.ref)if(zr=!1,t.pendingProps=n=i,(e.lanes&a)!==0)e.flags&131072&&(zr=!0);else return t.lanes=e.lanes,ya(e,t,a)}return u0(e,t,r,n,a)}function eI(e,t,r){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Dl,Qr),Qr|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(Dl,Qr),Qr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ot(Dl,Qr),Qr|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ot(Dl,Qr),Qr|=n;return Nr(e,t,a,r),t.child}function tI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function u0(e,t,r,n,a){var i=Vr(r)?Ao:vr.current;return i=mc(t,i),Gl(t,a),r=N1(e,t,r,n,i,a),n=S1(),e!==null&&!zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ya(e,t,a)):(mt&&n&&d1(t),t.flags|=1,Nr(e,t,r,a),t.child)}function lk(e,t,r,n,a){if(Vr(r)){var i=!0;ap(t)}else i=!1;if(Gl(t,a),t.stateNode===null)Rm(e,t),XT(t,r,n),l0(t,r,n,a),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=En(u):(u=Vr(r)?Ao:vr.current,u=mc(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==u)&&rk(t,o,n,u),Ga=!1;var h=t.memoizedState;o.state=h,up(t,n,o,a),c=t.memoizedState,l!==n||h!==c||Wr.current||Ga?(typeof d=="function"&&(o0(t,r,d,n),c=t.memoizedState),(l=Ga||tk(t,r,l,n,h,c,u))?(f||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=c),o.props=n,o.state=c,o.context=u,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,OT(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Kn(t.type,l),o.props=u,f=t.pendingProps,h=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=En(c):(c=Vr(r)?Ao:vr.current,c=mc(t,c));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||h!==c)&&rk(t,o,n,c),Ga=!1,h=t.memoizedState,o.state=h,up(t,n,o,a);var g=t.memoizedState;l!==f||h!==g||Wr.current||Ga?(typeof m=="function"&&(o0(t,r,m,n),g=t.memoizedState),(u=Ga||tk(t,r,u,n,h,g,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),o.props=n,o.state=g,o.context=c,n=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return d0(e,t,r,n,i,a)}function d0(e,t,r,n,a,i){tI(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return a&&G_(t,r,!1),ya(e,t,i);n=t.stateNode,vz.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=gc(t,e.child,null,i),t.child=gc(t,null,l,i)):Nr(e,t,l,i),t.memoizedState=n.state,a&&G_(t,r,!0),t.child}function rI(e){var t=e.stateNode;t.pendingContext?q_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q_(e,t.context,!1),y1(e,t.containerInfo)}function ck(e,t,r,n,a){return pc(),h1(a),t.flags|=256,Nr(e,t,r,n),t.child}var f0={dehydrated:null,treeContext:null,retryLane:0};function h0(e){return{baseLanes:e,cachePool:null,transitions:null}}function nI(e,t,r){var n=t.pendingProps,a=vt.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ot(vt,a&1),e===null)return a0(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,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=nv(o,n,0,null),e=Po(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=h0(r),t.memoizedState=f0,e):P1(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return xz(e,t,o,n,l,a,r);if(i){i=n.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=gi(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=gi(l,i):(i=Po(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?h0(r):{base
vendor: 8,923 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=f0,n}return i=e.child,e=i.sibling,n=gi(i,{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 P1(e,t){return t=nv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yh(e,t,r,n){return n!==null&&h1(n),gc(t,e.child,null,r),e=P1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xz(e,t,r,n,a,i,o){if(r)return t.flags&256?(t.flags&=-257,n=Ny(Error(re(422))),Yh(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=nv({mode:"visible",children:n.children},a,0,null),i=Po(i,a,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&gc(t,e.child,null,o),t.child.memoizedState=h0(o),t.memoizedState=f0,i);if(!(t.mode&1))return Yh(e,t,o,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(re(419)),n=Ny(i,n,void 0),Yh(e,t,o,n)}if(l=(o&e.childLanes)!==0,zr||l){if(n=Jt,n!==null){switch(o&-o){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,xa(e,a),ls(n,e,a,-1))}return I1(),n=Ny(Error(re(421))),Yh(e,t,o,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Ez.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,sn=fi(a.nextSibling),on=t,mt=!0,ns=null,e!==null&&(bn[wn++]=ia,bn[wn++]=oa,bn[wn++]=Eo,ia=e.id,oa=e.overflow,Eo=t),t=P1(t,n.children),t.flags|=4096,t)}function uk(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),i0(e.return,t,r)}function Sy(e,t,r,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function sI(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Nr(e,t,n.children,r),n=vt.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&&uk(e,r,t);else if(e.tag===19)uk(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(vt,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&dp(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Sy(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&dp(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Sy(t,!0,r,null,i);break;case"together":Sy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ya(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Io|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,r=gi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=gi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function yz(e,t,r){switch(t.tag){case 3:rI(t),pc();break;case 5:AT(t);break;case 1:Vr(t.type)&&ap(t);break;case 4:y1(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;ot(lp,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ot(vt,vt.current&1),t.flags|=128,null):r&t.child.childLanes?nI(e,t,r):(ot(vt,vt.current&1),e=ya(e,t,r),e!==null?e.sibling:null);ot(vt,vt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return sI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ot(vt,vt.current),n)break;return null;case 22:case 23:return t.lanes=0,eI(e,t,r)}return ya(e,t,r)}var aI,m0,iI,oI;aI=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}};m0=function(){};iI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,mo(Rs.current);var i=null;switch(r){case"input":a=Rb(e,a),n=Rb(e,n),i=[];break;case"select":a=wt({},a,{value:void 0}),n=wt({},n,{value:void 0}),i=[];break;case"textarea":a=Fb(e,a),n=Fb(e,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=np)}zb(r,n);var o;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ad.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ad.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ut("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};oI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Mu(e,t){if(!mt)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 lr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function bz(e,t,r){var n=t.pendingProps;switch(f1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lr(t),null;case 1:return Vr(t.type)&&sp(),lr(t),null;case 3:return n=t.stateNode,vc(),ht(Wr),ht(vr),w1(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ns!==null&&(j0(ns),ns=null))),m0(e,t),lr(t),null;case 5:b1(t);var a=mo(Ud.current);if(r=t.type,e!==null&&t.stateNode!=null)iI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(re(166));return lr(t),null}if(e=mo(Rs.current),Gh(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Es]=t,n[Bd]=i,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(a=0;a<rd.length;a++)ut(rd[a],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":y_(n,i),ut("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},ut("invalid",n);break;case"textarea":w_(n,i),ut("invalid",n)}zb(r,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&qh(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&qh(n.textContent,l,e),a=["children",""+l]):Ad.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ut("scroll",n)}switch(r){case"input":Lh(n),b_(n,i,!0);break;case"textarea":Lh(n),j_(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=np)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ME(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",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[Es]=t,e[Bd]=n,aI(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ub(r,n),r){case"dialog":ut("cancel",e),ut("close",e),a=n;break;case"iframe":case"object":case"embed":ut("load",e),a=n;break;case"video":case"audio":for(a=0;a<rd.length;a++)ut(rd[a],e);a=n;break;case"source":ut("error",e),a=n;break;case"img":case"image":case"link":ut("error",e),ut("load",e),a=n;break;case"details":ut("toggle",e),a=n;break;case"input":y_(e,n),a=Rb(e,n),ut("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=wt({},n,{value:void 0}),ut("invalid",e);break;case"textarea":w_(e,n),a=Fb(e,n),ut("invalid",e);break;default:a=n}zb(r,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?LE(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&RE(e,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ed(e,c):typeof c=="number"&&Ed(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ad.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ut("scroll",e):c!=null&&Qj(e,i,c,o))}switch(r){case"input":Lh(e),b_(e,n,!1);break;case"textarea":Lh(e),j_(e);break;case"option":n.value!=null&&e.setAttribute("value",""+wi(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Wl(e,!!n.multiple,i,!1):n.defaultValue!=null&&Wl(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=np)}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 lr(t),null;case 6:if(e&&t.stateNode!=null)oI(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(re(166));if(r=mo(Ud.current),mo(Rs.current),Gh(t)){if(n=t.stateNode,r=t.memoizedProps,n[Es]=t,(i=n.nodeValue!==r)&&(e=on,e!==null))switch(e.tag){case 3:qh(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qh(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Es]=t,t.stateNode=n}return lr(t),null;case 13:if(ht(vt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(mt&&sn!==null&&t.mode&1&&!(t.flags&128))_T(),pc(),t.flags|=98560,i=!1;else if(i=Gh(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(re(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(re(317));i[Es]=t}else pc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lr(t),i=!1}else ns!==null&&(j0(ns),ns=null),i=!0;if(!i)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||vt.current&1?Wt===0&&(Wt=3):I1())),t.updateQueue!==null&&(t.flags|=4),lr(t),null);case 4:return vc(),m0(e,t),e===null&&Ld(t.stateNode.containerInfo),lr(t),null;case 10:return g1(t.type._context),lr(t),null;case 17:return Vr(t.type)&&sp(),lr(t),null;case 19:if(ht(vt),i=t.memoizedState,i===null)return lr(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)Mu(i,!1);else{if(Wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=dp(e),o!==null){for(t.flags|=128,Mu(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ot(vt,vt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ot()>yc&&(t.flags|=128,n=!0,Mu(i,!1),t.lanes=4194304)}else{if(!n)if(e=dp(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Mu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!mt)return lr(t),null}else 2*Ot()-i.renderingStartTime>yc&&r!==1073741824&&(t.flags|=128,n=!0,Mu(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ot(),t.sibling=null,r=vt.current,ot(vt,n?r&1|2:r&1),t):(lr(t),null);case 22:case 23:return T1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Qr&1073741824&&(lr(t),t.subtreeFlags&6&&(t.flags|=8192)):lr(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function wz(e,t){switch(f1(t),t.tag){case 1:return Vr(t.type)&&sp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 26,035 bytes, line 40
40case 3:return vc(),ht(Wr),ht(vr),w1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return b1(t),null;case 13:if(ht(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));pc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(vt),null;case 4:return vc(),null;case 10:return g1(t.type._context),null;case 22:case 23:return T1(),null;case 24:return null;default:return null}}var Xh=!1,fr=!1,jz=typeof WeakSet=="function"?WeakSet:Set,ge=null;function Rl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(e,t,n)}else r.current=null}function p0(e,t,r){try{r()}catch(n){St(e,t,n)}}var dk=!1;function Nz(e,t){if(Jb=ep,e=fT(),u1(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 a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(l=o+a),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===r&&++u===a&&(l=o),h===i&&++d===n&&(c=o),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zb={focusedElem:e,selectionRange:r},ep=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,v=g.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Kn(t.type,p),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(N){St(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return g=dk,dk=!1,g}function pd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&p0(t,r,i)}a=a.next}while(a!==n)}}function tv(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 g0(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 lI(e){var t=e.alternate;t!==null&&(e.alternate=null,lI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Es],delete t[Bd],delete t[r0],delete t[az],delete t[iz])),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 cI(e){return e.tag===5||e.tag===3||e.tag===4}function fk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cI(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 v0(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=np));else if(n!==4&&(e=e.child,e!==null))for(v0(e,t,r),e=e.sibling;e!==null;)v0(e,t,r),e=e.sibling}function x0(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(x0(e,t,r),e=e.sibling;e!==null;)x0(e,t,r),e=e.sibling}var nr=null,Jn=!1;function La(e,t,r){for(r=r.child;r!==null;)uI(e,t,r),r=r.sibling}function uI(e,t,r){if(Ms&&typeof Ms.onCommitFiberUnmount=="function")try{Ms.onCommitFiberUnmount(Gg,r)}catch{}switch(r.tag){case 5:fr||Rl(r,t);case 6:var n=nr,a=Jn;nr=null,La(e,t,r),nr=n,Jn=a,nr!==null&&(Jn?(e=nr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nr.removeChild(r.stateNode));break;case 18:nr!==null&&(Jn?(e=nr,r=r.stateNode,e.nodeType===8?vy(e.parentNode,r):e.nodeType===1&&vy(e,r),Md(e)):vy(nr,r.stateNode));break;case 4:n=nr,a=Jn,nr=r.stateNode.containerInfo,Jn=!0,La(e,t,r),nr=n,Jn=a;break;case 0:case 11:case 14:case 15:if(!fr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&p0(r,t,o),a=a.next}while(a!==n)}La(e,t,r);break;case 1:if(!fr&&(Rl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){St(r,t,l)}La(e,t,r);break;case 21:La(e,t,r);break;case 22:r.mode&1?(fr=(n=fr)||r.memoizedState!==null,La(e,t,r),fr=n):La(e,t,r);break;default:La(e,t,r)}}function hk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new jz),t.forEach(function(n){var a=Tz.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Wn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:nr=l.stateNode,Jn=!1;break e;case 3:nr=l.stateNode.containerInfo,Jn=!0;break e;case 4:nr=l.stateNode.containerInfo,Jn=!0;break e}l=l.return}if(nr===null)throw Error(re(160));uI(i,o,a),nr=null,Jn=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){St(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)dI(t,e),t=t.sibling}function dI(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wn(t,e),Ss(e),n&4){try{pd(3,e,e.return),tv(3,e)}catch(p){St(e,e.return,p)}try{pd(5,e,e.return)}catch(p){St(e,e.return,p)}}break;case 1:Wn(t,e),Ss(e),n&512&&r!==null&&Rl(r,r.return);break;case 5:if(Wn(t,e),Ss(e),n&512&&r!==null&&Rl(r,r.return),e.flags&32){var a=e.stateNode;try{Ed(a,"")}catch(p){St(e,e.return,p)}}if(n&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&IE(a,i),Ub(l,o);var u=Ub(l,i);for(o=0;o<c.length;o+=2){var d=c[o],f=c[o+1];d==="style"?LE(a,f):d==="dangerouslySetInnerHTML"?RE(a,f):d==="children"?Ed(a,f):Qj(a,d,f,u)}switch(l){case"input":Db(a,i);break;case"textarea":$E(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Wl(a,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?Wl(a,!!i.multiple,i.defaultValue,!0):Wl(a,!!i.multiple,i.multiple?[]:"",!1))}a[Bd]=i}catch(p){St(e,e.return,p)}}break;case 6:if(Wn(t,e),Ss(e),n&4){if(e.stateNode===null)throw Error(re(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(p){St(e,e.return,p)}}break;case 3:if(Wn(t,e),Ss(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Md(t.containerInfo)}catch(p){St(e,e.return,p)}break;case 4:Wn(t,e),Ss(e);break;case 13:Wn(t,e),Ss(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(A1=Ot())),n&4&&hk(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(fr=(u=fr)||d,Wn(t,e),fr=u):Wn(t,e),Ss(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(ge=e,d=e.child;d!==null;){for(f=ge=d;ge!==null;){switch(h=ge,m=h.child,h.tag){case 0:case 11:case 14:case 15:pd(4,h,h.return);break;case 1:Rl(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(p){St(n,r,p)}}break;case 5:Rl(h,h.return);break;case 22:if(h.memoizedState!==null){pk(f);continue}}m!==null?(m.return=h,ge=m):pk(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,c=f.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=DE("display",o))}catch(p){St(e,e.return,p)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(p){St(e,e.return,p)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Wn(t,e),Ss(e),n&4&&hk(e);break;case 21:break;default:Wn(t,e),Ss(e)}}function Ss(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(cI(r)){var n=r;break e}r=r.return}throw Error(re(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Ed(a,""),n.flags&=-33);var i=fk(e);x0(e,i,a);break;case 3:case 4:var o=n.stateNode.containerInfo,l=fk(e);v0(e,l,o);break;default:throw Error(re(161))}}catch(c){St(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sz(e,t,r){ge=e,fI(e)}function fI(e,t,r){for(var n=(e.mode&1)!==0;ge!==null;){var a=ge,i=a.child;if(a.tag===22&&n){var o=a.memoizedState!==null||Xh;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||fr;l=Xh;var u=fr;if(Xh=o,(fr=c)&&!u)for(ge=a;ge!==null;)o=ge,c=o.child,o.tag===22&&o.memoizedState!==null?gk(a):c!==null?(c.return=o,ge=c):gk(a);for(;i!==null;)ge=i,fI(i),i=i.sibling;ge=a,Xh=l,fr=u}mk(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,ge=i):mk(e)}}function mk(e){for(;ge!==null;){var t=ge;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:fr||tv(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!fr)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Kn(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&J_(t,i,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}J_(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Md(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}fr||t.flags&512&&g0(t)}catch(h){St(t,t.return,h)}}if(t===e){ge=null;break}if(r=t.sibling,r!==null){r.return=t.return,ge=r;break}ge=t.return}}function pk(e){for(;ge!==null;){var t=ge;if(t===e){ge=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ge=r;break}ge=t.return}}function gk(e){for(;ge!==null;){var t=ge;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{tv(4,t)}catch(c){St(t,r,c)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(c){St(t,a,c)}}var i=t.return;try{g0(t)}catch(c){St(t,i,c)}break;case 5:var o=t.return;try{g0(t)}catch(c){St(t,o,c)}}}catch(c){St(t,t.return,c)}if(t===e){ge=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ge=l;break}ge=t.return}}var _z=Math.ceil,mp=ka.ReactCurrentDispatcher,C1=ka.ReactCurrentOwner,Pn=ka.ReactCurrentBatchConfig,Le=0,Jt=null,$t=null,sr=0,Qr=0,Dl=Ai(0),Wt=0,qd=null,Io=0,rv=0,O1=0,gd=null,Dr=null,A1=0,yc=1/0,ea=null,pp=!1,y0=null,mi=null,Qh=!1,ai=null,gp=0,vd=0,b0=null,Dm=-1,Lm=0;function Cr(){return Le&6?Ot():Dm!==-1?Dm:Dm=Ot()}function pi(e){return e.mode&1?Le&2&&sr!==0?sr&-sr:lz.transition!==null?(Lm===0&&(Lm=XE()),Lm):(e=Xe,e!==0||(e=window.event,e=e===void 0?16:nT(e.type)),e):1}function ls(e,t,r,n){if(50<vd)throw vd=0,b0=null,Error(re(185));Yf(e,r,n),(!(Le&2)||e!==Jt)&&(e===Jt&&(!(Le&2)&&(rv|=r),Wt===4&&Xa(e,sr)),Hr(e,n),r===1&&Le===0&&!(t.mode&1)&&(yc=Ot()+500,Jg&&Ei()))}function Hr(e,t){var r=e.callbackNode;l8(e,t);var n=Zm(e,e===Jt?sr:0);if(n===0)r!==null&&__(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&__(r),t===1)e.tag===0?oz(vk.bind(null,e)):jT(vk.bind(null,e)),nz(function(){!(Le&6)&&Ei()}),r=null;else{switch(QE(n)){case 1:r=r1;break;case 4:r=KE;break;case 16:r=Jm;break;case 536870912:r=YE;break;default:r=Jm}r=bI(r,hI.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function hI(e,t){if(Dm=-1,Lm=0,Le&6)throw Error(re(327));var r=e.callbackNode;if(Kl()&&e.callbackNode!==r)return null;var n=Zm(e,e===Jt?sr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=vp(e,n);else{t=n;var a=Le;Le|=2;var i=pI();(Jt!==e||sr!==t)&&(ea=null,yc=Ot()+500,ko(e,t));do try{Cz();break}catch(l){mI(e,l)}while(!0);p1(),mp.current=i,Le=a,$t!==null?t=0:(Jt=null,sr=0,t=Wt)}if(t!==0){if(t===2&&(a=Gb(e),a!==0&&(n=a,t=w0(e,a))),t===1)throw r=qd,ko(e,0),Xa(e,n),Hr(e,Ot()),r;if(t===6)Xa(e,n);else{if(a=e.current.alternate,!(n&30)&&!kz(a)&&(t=vp(e,n),t===2&&(i=Gb(e),i!==0&&(n=i,t=w0(e,i))),t===1))throw r=qd,ko(e,0),Xa(e,n),Hr(e,Ot()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(re(345));case 2:no(e,Dr,ea);break;case 3:if(Xa(e,n),(n&130023424)===n&&(t=A1+500-Ot(),10<t)){if(Zm(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Cr(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=t0(no.bind(null,e,Dr,ea),t);break}no(e,Dr,ea);break;case 4:if(Xa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-os(n);i=1<<o,o=t[o],o>a&&(a=o),n&=~i}if(n=a,n=Ot()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_z(n/1960))-n,10<n){e.timeoutHandle=t0(no.bind(null,e,Dr,ea),n);break}no(e,Dr,ea);break;case 5:no(e,Dr,ea);break;default:throw Error(re(329))}}}return Hr(e,Ot()),e.callbackNode===r?hI.bind(null,e):null}function w0(e,t){var r=gd;return e.current.memoizedState.isDehydrated&&(ko(e,t).flags|=256),e=vp(e,t),e!==2&&(t=Dr,Dr=r,t!==null&&j0(t)),e}function j0(e){Dr===null?Dr=e:Dr.push.apply(Dr,e)}function kz(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 a=r[n],i=a.getSnapshot;a=a.value;try{if(!hs(i(),a))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 Xa(e,t){for(t&=~O1,t&=~rv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-os(t),n=1<<r;e[r]=-1,t&=~n}}function vk(e){if(Le&6)throw Error(re(327));Kl();var t=Zm(e,0);if(!(t&1))return Hr(e,Ot()),null;var r=vp(e,t);if(e.tag!==0&&r===2){var n=Gb(e);n!==0&&(t=n,r=w0(e,n))}if(r===1)throw r=qd,ko(e,0),Xa(e,t),Hr(e,Ot()),r;if(r===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,no(e,Dr,ea),Hr(e,Ot()),null}function E1(e,t){var r=Le;Le|=1;try{return e(t)}finally{Le=r,Le===0&&(yc=Ot()+500,Jg&&Ei())}}function $o(e){ai!==null&&ai.tag===0&&!(Le&6)&&Kl();var t=Le;Le|=1;var r=Pn.transition,n=Xe;try{if(Pn.transition=null,Xe=1,e)return e()}finally{Xe=n,Pn.transition=r,Le=t,!(Le&6)&&Ei()}}function T1(){Qr=Dl.current,ht(Dl)}function ko(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,rz(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(f1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&sp();break;case 3:vc(),ht(Wr),ht(vr),w1();break;case 5:b1(n);break;case 4:vc();break;case 13:ht(vt);break;case 19:ht(vt);break;case 10:g1(n.type._context);break;case 22:case 23:T1()}r=r.return}if(Jt=e,$t=e=gi(e.current,null),sr=Qr=t,Wt=0,qd=null,O1=rv=Io=0,Dr=gd=null,ho!==null){for(t=0;t<ho.length;t++)if(r=ho[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=a,n.next=o}r.pending=n}ho=null}return e}function mI(e,t){do{var r=$t;try{if(p1(),$m.current=hp,fp){for(var n=yt.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}fp=!1}if(To=0,Xt=zt=yt=null,md=!1,Wd=0,C1.current=null,r===null||r.return===null){Wt=1,qd=t,$t=null;break}e:{var i=e,o=r.return,l=r,c=t;if(t=sr,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=sk(o);if(m!==null){m.flags&=-257,ak(m,o,l,i,t),m.mode&1&&nk(i,u,t),t=m,c=u;var g=t.updateQueue;if(g===null){var p=new Set;p.add(c),t.updateQueue=p}else g.add(c);break e}else{if(!(t&1)){nk(i,u,t),I1();break e}c=Error(re(426))}}else if(mt&&l.mode&1){var v=sk(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),ak(v,o,l,i,t),h1(xc(c,l));break e}}i=c=xc(c,l),Wt!==4&&(Wt=2),gd===null?gd=[i]:gd.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=QT(i,c,t);Q_(i,y);break e;case 1:l=c;var x=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(mi===null||!mi.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=JT(i,l,t);Q_(i,N);break e}}i=i.return}while(i!==null)}vI(r)}catch(j){t=j,$t===r&&r!==null&&($t=r=r.return);continue}break}while(!0)}function pI(){var e=mp.current;return mp.current=hp,e===null?hp:e}function I1(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Jt===null||!(Io&268435455)&&!(rv&268435455)||Xa(Jt,sr)}function vp(e,t){var r=Le;Le|=2;var n=pI();(Jt!==e||sr!==t)&&(ea=null,ko(e,t));do try{Pz();break}catch(a){mI(e,a)}while(!0);if(p1(),Le=r,mp.current=n,$t!==null)throw Error(re(261));return Jt=null,sr=0,Wt}function Pz(){for(;$t!==null;)gI($t)}function Cz(){for(;$t!==null&&!ZB();)gI($t)}function gI(e){var t=yI(e.alternate,e,Qr);e.memoizedProps=e.pendingProps,t===null?vI(e):$t=t,C1.current=null}function vI(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=wz(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wt=6,$t=null;return}}else if(r=bz(r,t,Qr),r!==null){$t=r;return}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Wt===0&&(Wt=5)}function no(e,t,r){var n=Xe,a=Pn.transition;try{Pn.transition=null,Xe=1,Oz(e,t,r,n)}finally{Pn.transition=a,Xe=n}return null}function Oz(e,t,r,n){do Kl();while(ai!==null);if(Le&6)throw Error(re(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(c8(e,i),e===Jt&&($t=Jt=null,sr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Qh||(Qh=!0,bI(Jm,function(){return Kl(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Pn.transition,Pn.transition=null;var o=Xe;Xe=1;var l=Le;Le|=4,C1.current=null,Nz(e,r),dI(r,e),Y8(Zb),ep=!!Jb,Zb=Jb=null,e.current=r,Sz(r),e8(),Le=l,Xe=o,Pn.transition=i}else e.current=r;if(Qh&&(Qh=!1,ai=e,gp=a),i=e.pendingLanes,i===0&&(mi=null),n8(r.stateNode),Hr(e,Ot()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(pp)throw pp=!1,e=y0,y0=null,e;return gp&1&&e.tag!==0&&Kl(),i=e.pendingLanes,i&1?e===b0?vd++:(vd=0,b0=e):vd=0,Ei(),null}function Kl(){if(ai!==null){var e=QE(gp),t=Pn.transition,r=Xe;try{if(Pn.transition=null,Xe=16>e?16:e,ai===null)var n=!1;else{if(e=ai,ai=null,gp=0,Le&6)throw Error(re(331));var a=Le;for(Le|=4,ge=e.current;ge!==null;){var i=ge,o=i.child;if(ge.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(ge=u;ge!==null;){var d=ge;switch(d.tag){case 0:case 11:case 15:pd(8,d,i)}var f=d.child;if(f!==null)f.return=d,ge=f;else for(;ge!==null;){d=ge;var h=d.sibling,m=d.return;if(lI(d),d===u){ge=null;break}if(h!==null){h.return=m,ge=h;break}ge=m}}}var g=i.alternate;if(g!==null){var p=g.child;if(p!==null){g.child=null;do{var v=p.sibling;p.sibling=null,p=v}while(p!==null)}}ge=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,ge=o;else e:for(;ge!==null;){if(i=ge,i.flags&2048)switch(i.tag){case 0:case 11:case 15:pd(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,ge=y;break e}ge=i.return}}var x=e.current;for(ge=x;ge!==null;){o=ge;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,ge=w;else e:for(o=x;ge!==null;){if(l=ge,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:tv(9,l)}}catch(j){St(l,l.return,j)}if(l===o){ge=null;break e}var N=l.sibling;if(N!==null){N.return=l.return,ge=N;break e}ge=l.return}}if(Le=a,Ei(),Ms&&typeof Ms.onPostCommitFiberRoot=="function")try{Ms.onPostCommitFiberRoot(Gg,e)}catch{}n=!0}return n}finally{Xe=r,Pn.transition=t}}return!1}function xk(e,t,r){t=xc(r,t),t=QT(e,t,1),e=hi(e,t,1),t=Cr(),e!==null&&(Yf(e,1,t),Hr(e,t))}function St(e,t,r){if(e.tag===3)xk(e,e,r);else for(;t!==null;){if(t.tag===3){xk(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(mi===null||!mi.has(n))){e=xc(r,e),e=JT(t,e,1),t=hi(t,e,1),e=Cr(),t!==null&&(Yf(t,1,e),Hr(t,e));break}}t=t.return}}function Az(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Cr(),e.pingedLanes|=e.suspendedLanes&r,Jt===e&&(sr&r)===r&&(Wt===4||Wt===3&&(sr&130023424)===sr&&500>Ot()-A1?ko(e,0):O1|=r),Hr(e,t)}function xI(e,t){t===0&&(e.mode&1?(t=zh,zh<<=1,!(zh&130023424)&&(zh=4194304)):t=1);var r=Cr();e=xa(e,t),e!==null&&(Yf(e,t,r),Hr(e,r))}function Ez(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),xI(e,r)}function Tz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(t),xI(e,r)}var yI;yI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wr.current)zr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zr=!1,yz(e,t,r);zr=!!(e.flags&131072)}else zr=!1,mt&&t.flags&1048576&&NT(t,op,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Rm(e,t),e=t.pendingProps;var a=mc(t,vr.current);Gl(t,r),a=N1(null,t,n,e,a,r);var i=S1();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vr(n)?(i=!0,ap(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,x1(t),a.updater=ev,t.stateNode=a,a._reactInternals=t,l0(t,n,e,r),t=d0(null,t,n,!0,i,r)):(t.tag=0,mt&&i&&d1(t),Nr(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Rm(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=$z(n),e=Kn(n,e),a){case 0:t=u0(null,t,n,e,r);break e;case 1:t=lk(null,t,n,e,r);break e;case 11:t=ik(null,t,n,e,r);break e;case 14:t=ok(null,t,n,Kn(n.type,e),r);break e}throw Error(re(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Kn(n,a),u0(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Kn(n,a),lk(e,t,n,a,r);case 3:e:{if(rI(t),e===null)throw Error(re(387));n=t.pendingProps,i=t.memoizedState,a=i.element,OT(e,t),up(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=xc(Error(re(423)),t),t=ck(e,t,n,r,a);break e}else if(n!==a){a=xc(Error(re(424)),t),t=ck(e,t,n,r,a);break e}else for(sn=fi(t.stateNode.containerInfo.firstChild),on=t,mt=!0,ns=null,r=PT(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(pc(),n===a){t=ya(e,t,r);break e}Nr(e,t,n,r)}t=t.child}return t;case 5:return AT(t),e===null&&a0(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,e0(n,a)?o=null:i!==null&&e0(n,i)&&(t.flags|=32),tI(e,t),Nr(e,t,o,r),t.child;case 6:return e===null&&a0(t),null;case 13:return nI(e,t,r);case 4:return y1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gc(t,null,n,r):Nr(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Kn(n,a),ik(e,t,n,a,r);case 7:return Nr(e,t,t.pendingProps,r),t.child;case 8:return Nr(e,t,t.pendingProps.children,r),t.child;case 12:return Nr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ot(lp,n._currentValue),n._currentValue=o,i!==null)if(hs(i.value,o)){if(i.children===a.children&&!Wr.current){t=ya(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=da(-1,r&-r),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),i0(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(re(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),i0(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Nr(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Gl(t,r),a=En(a),n=n(a),t.flags|=1,Nr(e,t,n,r),t.child;case 14:return n=t.type,a=Kn(n,t.pendingProps),a=Kn(n.type,a),ok(e,t,n,a,r);case 15:return ZT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Kn(n,a),Rm(e,t),t.tag=1,Vr(n)?(e=!0,ap(t)):e=!1,Gl(t,r),XT(t,n,a),l0(t,n,a,r),d0(null,t,n,!0,e,r);case 19:return sI(e,t,r);case 22:return eI(e,t,r)}throw Error(re(156,t.tag))};function bI(e,t){return GE(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: 4,419 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 Nn(e,t,r,n){return new Iz(e,t,r,n)}function $1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $z(e){if(typeof e=="function")return $1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zj)return 11;if(e===e1)return 14}return 2}function gi(e,t){var r=e.alternate;return r===null?(r=Nn(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 Fm(e,t,r,n,a,i){var o=2;if(n=e,typeof e=="function")$1(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pl:return Po(r.children,a,i,t);case Jj:o=8,a|=8;break;case Tb:return e=Nn(12,r,t,a|2),e.elementType=Tb,e.lanes=i,e;case Ib:return e=Nn(13,r,t,a),e.elementType=Ib,e.lanes=i,e;case $b:return e=Nn(19,r,t,a),e.elementType=$b,e.lanes=i,e;case AE:return nv(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CE:o=10;break e;case OE:o=9;break e;case Zj:o=11;break e;case e1:o=14;break e;case qa:o=16,n=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Nn(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Po(e,t,r,n){return e=Nn(7,e,n,t),e.lanes=r,e}function nv(e,t,r,n){return e=Nn(22,e,n,t),e.elementType=AE,e.lanes=r,e.stateNode={isHidden:!1},e}function _y(e,t,r){return e=Nn(6,e,null,t),e.lanes=r,e}function ky(e,t,r){return t=Nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mz(e,t,r,n,a){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=iy(0),this.expirationTimes=iy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function M1(e,t,r,n,a,i,o,l,c){return e=new Mz(e,t,r,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Nn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},x1(i),e}function Rz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function wI(e){if(!e)return ji;e=e._reactInternals;e:{if(Yo(e)!==e||e.tag!==1)throw Error(re(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(re(171))}if(e.tag===1){var r=e.type;if(Vr(r))return wT(e,r,t)}return t}function jI(e,t,r,n,a,i,o,l,c){return e=M1(r,n,!0,e,a,i,o,l,c),e.context=wI(null),r=e.current,n=Cr(),a=pi(r),i=da(n,a),i.callback=t??null,hi(r,i,a),e.current.lanes=a,Yf(e,a,n),Hr(e,n),e}function sv(e,t,r,n){var a=t.current,i=Cr(),o=pi(a);return r=wI(r),t.context===null?t.context=r:t.pendingContext=r,t=da(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=hi(a,t,o),e!==null&&(ls(e,a,o,i),Im(e,a,o)),o}function xp(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 yk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function R1(e,t){yk(e,t),(e=e.alternate)&&yk(e,t)}function Dz(){return null}var NI=typeof reportError=="function"?reportError:function(e){console.error(e)};function D1(e){this._internalRoot=e}av.prototype.render=D1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));sv(e,t,null,null)};
vendor: 4,102 bytes, line 40
40av.prototype.unmount=D1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$o(function(){sv(null,e,null,null)}),t[va]=null}};function av(e){this._internalRoot=e}av.prototype.unstable_scheduleHydration=function(e){if(e){var t=eT();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ya.length&&t!==0&&t<Ya[r].priority;r++);Ya.splice(r,0,e),r===0&&rT(e)}};function L1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function iv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bk(){}function Lz(e,t,r,n,a){if(a){if(typeof n=="function"){var i=n;n=function(){var u=xp(o);i.call(u)}}var o=jI(t,n,e,0,null,!1,!1,"",bk);return e._reactRootContainer=o,e[va]=o.current,Ld(e.nodeType===8?e.parentNode:e),$o(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var u=xp(c);l.call(u)}}var c=M1(e,0,!1,null,null,!1,!1,"",bk);return e._reactRootContainer=c,e[va]=c.current,Ld(e.nodeType===8?e.parentNode:e),$o(function(){sv(t,c,r,n)}),c}function ov(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=xp(o);l.call(c)}}sv(t,o,e,a)}else o=Lz(r,t,e,a,n);return xp(o)}JE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=td(t.pendingLanes);r!==0&&(n1(t,r|1),Hr(t,Ot()),!(Le&6)&&(yc=Ot()+500,Ei()))}break;case 13:$o(function(){var n=xa(e,1);if(n!==null){var a=Cr();ls(n,e,1,a)}}),R1(e,1)}};s1=function(e){if(e.tag===13){var t=xa(e,134217728);if(t!==null){var r=Cr();ls(t,e,134217728,r)}R1(e,134217728)}};ZE=function(e){if(e.tag===13){var t=pi(e),r=xa(e,t);if(r!==null){var n=Cr();ls(r,e,t,n)}R1(e,t)}};eT=function(){return Xe};tT=function(e,t){var r=Xe;try{return Xe=e,t()}finally{Xe=r}};Vb=function(e,t,r){switch(t){case"input":if(Db(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 a=Qg(n);if(!a)throw Error(re(90));TE(n),Db(n,a)}}}break;case"textarea":$E(e,r);break;case"select":t=r.value,t!=null&&Wl(e,!!r.multiple,t,!1)}};zE=E1;UE=$o;var Fz={usingClientEntryPoint:!1,Events:[Qf,El,Qg,FE,BE,E1]},Ru={findFiberByHostInstance:fo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bz={bundleType:Ru.bundleType,version:Ru.version,rendererPackageName:Ru.rendererPackageName,rendererConfig:Ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ka.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=HE(e),e===null?null:e.stateNode},findFiberByHostInstance:Ru.findFiberByHostInstance||Dz,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 Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Gg=Jh.inject(Bz),Ms=Jh}catch{}}fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fz;fn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L1(t))throw Error(re(200));return Rz(e,t,null,r)};fn.createRoot=function(e,t){if(!L1(e))throw Error(re(299));var r=!1,n="",a=NI;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=M1(e,1,!1,null,null,r,!1,n,a),e[va]=t.current,Ld(e.nodeType===8?e.parentNode:e),new D1(t)};fn.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(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=HE(t),e=e===null?null:e.stateNode,e};
40fn.flushSync=function(e){return $o(e)};fn.hydrate=function(e,t,r){if(!iv(t))throw Error(re(200));return ov(null,e,t,!0,r)};fn.hydrateRoot=function(e,t,r){if(!L1(e))throw Error(re(405));var n=r!=null&&r.hydratedSources||null,a=!1,i="",o=NI;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=jI(t,null,e,1,r??null,a,!1,i,o),e[va]=t.current,Ld(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new av(t)};fn.render=function(e,t,r){if(!iv(t))throw Error(re(200));return ov(null,e,t,!1,r)};fn.unmountComponentAtNode=function(e){if(!iv(e))throw Error(re(40));return e._reactRootContainer?($o(function(){ov(null,null,e,!1,function(){e._reactRootContainer=null,e[va]=null})}),!0):!1};fn.unstable_batchedUpdates=E1;fn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!iv(r))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return ov(e,t,r,!1,n)};fn.version="18.3.1-next-f1338f8080-20240426";function SI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SI)}catch(e){console.error(e)}}SI(),SE.exports=fn;var Xo=SE.exports;const _I=Ke(Xo);var kI,wk=Xo;kI=wk.createRoot,wk.hydrateRoot;const zz=1,Uz=1e6;let Py=0;function Wz(){return Py=(Py+1)%Number.MAX_SAFE_INTEGER,Py.toString()}const Cy=new Map,jk=e=>{if(Cy.has(e))return;const t=setTimeout(()=>{Cy.delete(e),xd({type:"REMOVE_TOAST",toastId:e})},Uz);Cy.set(e,t)},Vz=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,zz)};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;return r?jk(r):e.toasts.forEach(n=>{jk(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 13,906 bytes, line 40
40n.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)}}},Bm=[];let zm={toasts:[]};function xd(e){zm=Vz(zm,e),Bm.forEach(t=>{t(zm)})}function Hz({...e}){const t=Wz(),r=a=>xd({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>xd({type:"DISMISS_TOAST",toastId:t});return xd({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function xr(){const[e,t]=b.useState(zm);return b.useEffect(()=>(Bm.push(t),()=>{const r=Bm.indexOf(t);r>-1&&Bm.splice(r,1)}),[e]),{...e,toast:Hz,dismiss:r=>xd({type:"DISMISS_TOAST",toastId:r})}}function se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Nk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lv(...e){return t=>{let r=!1;const n=e.map(a=>{const i=Nk(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():Nk(e[a],null)}}}}function Te(...e){return b.useCallback(lv(...e),e)}function qz(e,t){const r=b.createContext(t),n=i=>{const{children:o,...l}=i,c=b.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:o})};n.displayName=e+"Provider";function a(i){const o=b.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,a]}function qt(e,t=[]){let r=[];function n(i,o){const l=b.createContext(o),c=r.length;r=[...r,o];const u=f=>{var y;const{scope:h,children:m,...g}=f,p=((y=h==null?void 0:h[e])==null?void 0:y[c])||l,v=b.useMemo(()=>g,Object.values(g));return s.jsx(p.Provider,{value:v,children:m})};u.displayName=i+"Provider";function d(f,h){var p;const m=((p=h==null?void 0:h[e])==null?void 0:p[c])||l,g=b.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=r.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[n,Gz(a,...t)]}function Gz(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:u})=>{const f=c(i)[`__scope${u}`];return{...l,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Ni(e){const t=Kz(e),r=b.forwardRef((n,a)=>{const{children:i,...o}=n,l=b.Children.toArray(i),c=l.find(Yz);if(c){const u=c.props.children,d=l.map(f=>f===c?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:f);return s.jsx(t,{...o,ref:a,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return s.jsx(t,{...o,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}var nu=Ni("Slot");function Kz(e){const t=b.forwardRef((r,n)=>{const{children:a,...i}=r;if(b.isValidElement(a)){const o=Qz(a),l=Xz(i,a.props);return a.type!==b.Fragment&&(l.ref=n?lv(n,o):o),b.cloneElement(a,l)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var PI=Symbol("radix.slottable");function CI(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=PI,t}function Yz(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===PI}function Xz(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function Qz(e){var n,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Zf(e){const t=e+"CollectionProvider",[r,n]=qt(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:v,children:y}=p,x=I.useRef(null),w=I.useRef(new Map).current;return s.jsx(a,{scope:v,itemMap:w,collectionRef:x,children:y})};o.displayName=t;const l=e+"CollectionSlot",c=Ni(l),u=I.forwardRef((p,v)=>{const{scope:y,children:x}=p,w=i(l,y),N=Te(v,w.collectionRef);return s.jsx(c,{ref:N,children:x})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ni(d),m=I.forwardRef((p,v)=>{const{scope:y,children:x,...w}=p,N=I.useRef(null),j=Te(v,N),S=i(d,y);return I.useEffect(()=>(S.itemMap.set(N,{ref:N,...w}),()=>void S.itemMap.delete(N))),s.jsx(h,{[f]:"",ref:j,children:x})});m.displayName=d;function g(p){const v=i(e+"CollectionConsumer",p);return I.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,_)=>w.indexOf(S.ref.current)-w.indexOf(_.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},g,n]}var Jz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=Jz.reduce((e,t)=>{const r=Ni(`Primitive.${t}`),n=b.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function F1(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function Er(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Zz(e,t=globalThis==null?void 0:globalThis.document){const r=Er(e);b.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var eU="DismissableLayer",N0="dismissableLayer.update",tU="dismissableLayer.pointerDownOutside",rU="dismissableLayer.focusOutside",Sk,OI=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qo=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=b.useContext(OI),[d,f]=b.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),g=Te(t,_=>f(_)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),x=d?p.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,N=x>=y,j=sU(_=>{const P=_.target,k=[...u.branches].some(A=>A.contains(P));!N||k||(a==null||a(_),o==null||o(_),_.defaultPrevented||l==null||l())},h),S=aU(_=>{const P=_.target;[...u.branches].some(A=>A.contains(P))||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},h);return Zz(_=>{x===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},h),b.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Sk=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),_k(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Sk)}},[d,h,r,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),_k())},[d,u]),b.useEffect(()=>{const _=()=>m({});return document.addEventListener(N0,_),()=>document.removeEventListener(N0,_)},[]),s.jsx(xe.div,{...c,ref:g,style:{pointerEvents:w?N?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,S.onFocusCapture),onBlurCapture:se(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,j.onPointerDownCapture)})});Qo.displayName=eU;var nU="DismissableLayerBranch",AI=b.forwardRef((e,t)=>{const r=b.useContext(OI),n=b.useRef(null),a=Te(t,n);return b.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),s.jsx(xe.div,{...e,ref:a})});AI.displayName=nU;function sU(e,t=globalThis==null?void 0:globalThis.document){const r=Er(e),n=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){EI(tU,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function aU(e,t=globalThis==null?void 0:globalThis.document){const r=Er(e),n=b.useRef(!1);return b.useEffect(()=>{const a=i=>{i.target&&!n.current&&EI(rU,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _k(){const e=new CustomEvent(N0);document.dispatchEvent(e)}function EI(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?F1(a,i):a.dispatchEvent(i)}var iU=Qo,oU=AI,At=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},lU="Portal",su=b.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[a,i]=b.useState(!1);At(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?_I.createPortal(s.jsx(xe.div,{...n,ref:t}),o):null});su.displayName=lU;function cU(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}var yr=e=>{const{present:t,children:r}=e,n=uU(t),a=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),i=Te(n.ref,dU(a));return typeof r=="function"||n.isPresent?b.cloneElement(a,{ref:i}):null};yr.displayName="Presence";function uU(e){const[t,r]=b.useState(),n=b.useRef(null),a=b.useRef(e),i=b.useRef("none"),o=e?"mounted":"unmounted",[l,c]=cU(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const u=Zh(n.current);i.current=l==="mounted"?u:"none"},[l]),At(()=>{const u=n.current,d=a.current;if(d!==e){const h=i.current,m=Zh(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),At(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=m=>{const p=Zh(n.current).includes(m.animationName);if(m.target===t&&p&&(c("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Zh(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Zh(e){return(e==null?void 0:e.animationName)||"none"}function dU(e){var n,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fU=Kj[" useInsertionEffect ".trim().toString()]||At;function Gr({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,o]=hU({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:a;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}const u=b.useCallback(d=>{var f;if(l){const h=mU(d)?d(e):d;h!==e&&((f=o.current)==null||f.call(o,h))}else i(d)},[l,e,i,o]);return[c,u]}function hU({defaultProp:e,onChange:t}){const[r,n]=b.useState(e),a=b.useRef(r),i=b.useRef(t);return fU(()=>{i.current=t},[t]),b.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}function mU(e){return typeof e=="function"}var TI=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"}),pU="VisuallyHidden",cv=b.forwardRef((e,t)=>s.jsx(xe.span,{...e,ref:t,style:{...TI,...e.style}}));cv.displayName=pU;var gU=cv,B1="ToastProvider",[z1,vU,xU]=Zf("Toast"),[II,kCe]=qt("Toast",[xU]),[yU,uv]=II(B1),$I=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[l,c]=b.useState(null),[u,d]=b.useState(0),f=b.useRef(!1),h=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${B1}\`. Expected non-empty \`string\`.`),s.jsx(z1.Provider,{scope:t,children:s.jsx(yU,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:b.useCallback(()=>d(m=>m+1),[]),onToastRemove:b.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};$I.displayName=B1;var MI="ToastViewport",bU=["F8"],S0="toast.viewportPause",_0="toast.viewportResume",RI=b.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=bU,label:a="Notifications ({hotkey})",...i}=e,o=uv(MI,r),l=vU(r),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),h=Te(t,f,o.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;b.useEffect(()=>{const v=y=>{var w;n.length!==0&&n.every(N=>y[N]||y.code===N)&&((w=f.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[n]),b.useEffect(()=>{const v=c.current,y=f.current;if(g&&v&&y){const x=()=>{if(!o.isClosePausedRef.current){const S=new CustomEvent(S0);y.dispatchEvent(S),o.isClosePausedRef.current=!0}},w=()=>{if(o.isClosePausedRef.current){const S=new CustomEvent(_0);y.dispatchEvent(S),o.isClosePausedRef.current=!1}},N=S=>{!v.contains(S.relatedTarget)&&w()},j=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",x),v.addEventListener("focusout",N),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",j),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",N),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",j),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,o.isClosePausedRef]);const p=b.useCallback(({tabbingDirection:v})=>{const x=l().map(w=>{const N=w.ref.current,j=[N,...IU(N)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?x.reverse():x).flat()},[l]);return b.useEffect(()=>{const v=f.current;if(v){const y=x=>{var j,S,_;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const P=document.activeElement,k=x.shiftKey;if(x.target===v&&k){(j=u.current)==null||j.focus();return}const T=p({tabbingDirection:k?"backwards":"forwards"}),E=T.findIndex(O=>O===P);Oy(T.slice(E+1))?x.preventDefault():k?(S=u.current)==null||S.focus():(_=d.current)==null||_.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[l,p]),s.jsxs(oU,{ref:c,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&s.jsx(k0,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});Oy(v)}}),s.jsx(z1.Slot,{scope:r,children:s.jsx(xe.ol,{tabIndex:-1,...i,ref:h})}),g&&s.jsx(k0,{ref:d,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});Oy(v)}})]})});RI.displayName=MI;var DI="ToastFocusProxy",k0=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,i=uv(DI,r);return s.jsx(cv,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&n()}})});k0.displayName=DI;var eh="Toast",wU="toast.swipeStart",jU="toast.swipeMove",NU="toast.swipeCancel",SU="toast.swipeEnd",LI=b.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:i,...o}=e,[l,c]=Gr({prop:n,defaultProp:a??!0,onChange:i,caller:eh});return s.jsx(yr,{present:r||l,children:s.jsx(PU,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Er(e.onPause),onResume:Er(e.onResume),onSwipeStart:se(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:se(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:se(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:se(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});LI.displayName=eh;var[_U,kU]=II(eh,{onClose(){}}),PU=b.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...g}=e,p=uv(eh,r),[v,y]=b.useState(null),x=Te(t,O=>y(O)),w=b.useRef(null),N=b.useRef(null),j=a||p.duration,S=b.useRef(0),_=b.useRef(j),P=b.useRef(0),{onToastAdd:k,onToastRemove:A}=p,C=Er(()=>{var D;(v==null?void 0:v.contains(document.activeElement))&&((D=p.viewport)==null||D.focus()),o()}),T=b.useCallback(O=>{!O||O===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(C,O))},[C]);b.useEffect(()=>{const O=p.viewport;if(O){const D=()=>{T(_.current),u==null||u()},$=()=>{const L=new Date().getTime()-S.current;_.current=_.current-L,window.clearTimeout(P.current),c==null||c()};return O.addEventListener(S0,$),O.addEventListener(_0,D),()=>{O.removeEventListener(S0,$),O.removeEventListener(_0,D)}}},[p.viewport,j,c,u,T]),b.useEffect(()=>{i&&!p.isClosePausedRef.current&&T(j)},[i,j,p.isClosePausedRef,T]),b.useEffect(()=>(k(),()=>A()),[k,A]);const E=b.useMemo(()=>v?HI(v):null,[v]);return p.viewport?s.jsxs(s.Fragment,{children:[E&&s.jsx(CU,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:E}),s.jsx(_U,{scope:r,onClose:C,children:Xo.createPortal(s.jsx(z1.ItemSlot,{scope:r,children:s.jsx(iU,{asChild:!0,onEscapeKeyDown:se(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||C(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:se(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:se(e.onPointerDown,O=>{O.button===0&&(w.current={x:O.clientX,y:O.clientY})}),onPointerMove:se(e.onPointerMove,O=>{if(!w.current)return;const D=O.clientX-w.current.x,$=O.clientY-w.current.y,L=!!N.current,M=["left","right"].includes(p.swipeDirection),R=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,B=M?R(0,D):0,H=M?0:R(0,$),U=O.pointerType==="touch"?10:2,q={x:B,y:H},ee={originalEvent:O,delta:q};L?(N.current=q,em(jU,f,ee,{discrete:!1})):kk(q,p.swipeDirection,U)?(N.current=q,em(wU,d,ee,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(D)>U||Math.abs($)>U)&&(w.current=null)}),onPointerUp:se(e.onPointerUp,O=>{const D=N.current,$=O.target;if($.hasPointerCapture(O.pointerId)&&$.releasePointerCapture(O.pointerId),N.current=null,w.current=null,D){const L=O.currentTarget,M={originalEvent:O,delta:D};kk(D,p.swipeDirection,p.swipeThreshold)?em(SU,m,M,{discrete:!0}):em(NU,h,M,{discrete:!0}),L.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),CU=e=>{const{__scopeToast:t,children:r,...n}=e,a=uv(eh,t),[i,o]=b.useState(!1),[l,c]=b.useState(!1);return EU(()=>o(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(su,{asChild:!0,children:s.jsx(cv,{...n,children:i&&s.jsxs(s.Fragment,{children:[a.label," ",r]})})})},OU="ToastTitle",FI=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(xe.div,{...n,ref:t})});FI.displayName=OU;var AU="ToastDescription",BI=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(xe.div,{...n,ref:t})});BI.displayName=AU;var zI="ToastAction",UI=b.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?s.jsx(VI,{altText:r,asChild:!0,children:s.jsx(U1,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${zI}\`. Expected non-empty \`string\`.`),null)});UI.displayName=zI;var WI="ToastClose",U1=b.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=kU(WI,r);return s.jsx(VI,{asChild:!0,children:s.jsx(xe.button,{type:"button",...n,ref:t,onClick:se(e.onClick,a.onClose)})})});U1.displayName=WI;var VI=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return s.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function HI(e){const t=[];
vendor: 3,545 bytes, lines 40-55
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),TU(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...HI(n))}}),t}function em(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?F1(a,i):a.dispatchEvent(i)}var kk=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),i=n>a;return t==="left"||t==="right"?i&&n>r:!i&&a>r};function EU(e=()=>{}){const t=Er(e);At(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function TU(e){return e.nodeType===e.ELEMENT_NODE}function IU(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Oy(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var $U=$I,qI=RI,GI=LI,KI=FI,YI=BI,XI=UI,QI=U1;function JI(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=JI(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ae(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=JI(e))&&(n&&(n+=" "),n+=t);return n}const Pk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ck=Ae,Jo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ck(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],f=i==null?void 0:i[u];if(d===null)return null;const h=Pk(d)||Pk(f);return a[u][h]}),l=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(g=>{let[p,v]=g;return Array.isArray(v)?v.includes({...i,...l}[p]):{...i,...l}[p]===v})?[...u,f,h]:u},[]);return Ck(e,o,c,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 MU=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZI=(...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 RU={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 DU=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...l},c)=>b.createElement("svg",{ref:c,...RU,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Z
vendor: 6,340 bytes, lines 55-154
55I("lucide",a),...l},[...o.map(([u,d])=>b.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
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 fe=(e,t)=>{const r=b.forwardRef(({className:n,...a},i)=>b.createElement(DU,{ref:i,iconNode:t,className:ZI(`lucide-${MU(e)}`,n),...a}));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 Us=fe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
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 Ht=fe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 Ok=fe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
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 LU=fe("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
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 FU=fe("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"}]]);/**
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 e$=fe("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"}]]);/**
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 th=fe("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"}]]);/**
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 It=fe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
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 Mo=fe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 BU=fe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
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 sa=fe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 zU=fe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
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 As=fe("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"}]]);/**
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 Ct=fe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
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 Yl=fe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
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 t$=fe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
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 Sn=fe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 UU=fe("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"}]]);/**
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 W1=fe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
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 Ak=fe("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"}]]);/**
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 Xl=fe("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
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 V1=fe("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"}]]);/**
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 rh=fe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
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 WU=fe("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
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 r$=fe("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"}]]);/**
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 VU=fe("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
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 rt=fe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
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 HU=fe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
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 H1=fe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
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 qU=fe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
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 Ek=fe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
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 n$=fe("Grid2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);/**
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 GU=fe("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
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 s$=fe("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"}]]);/**
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 q1=fe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 KU=fe("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
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 nh=fe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
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 YU=fe("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"}]]);/**
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 an=fe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 Um=fe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
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 P0=fe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
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 yp=fe("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"}]]);/**
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 bc=fe("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
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 XU=fe("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"}]]);/**
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 a$=fe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
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 QU=fe("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"}]]);/**
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 JU=fe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
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 Gd=fe("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
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 i$=fe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
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 Ro=fe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
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 wc=fe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 ZU=fe("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
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 o$=fe("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 eW=fe("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 Tk=fe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
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 au=fe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
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 l$=fe("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"}]]);/**
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 c$=fe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 u$=fe("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
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 d$=fe("Shield",[["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"}]]);/**
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 tW=fe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
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 jc=fe("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"}]]);/**
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 Mt=fe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
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 sh=fe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 4,486 bytes, lines 380-435
380],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
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 dv=fe("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
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 qe=fe("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"}]]);/**
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 pr=fe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
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 G1=fe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
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 C0=fe("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"}]]);/**
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 bt=fe("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"}]]);/**
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 Si=fe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
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 f$=fe("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
421 * @license lucide-react v0.462.0 - ISC
422 *
423 * This source code is licensed under the ISC license.
424 * See the LICENSE file in the root directory of this source tree.
425 */const Ti=fe("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
426 * @license lucide-react v0.462.0 - ISC
427 *
428 * This source code is licensed under the ISC license.
429 * See the LICENSE file in the root directory of this source tree.
430 */const iu=fe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
431 * @license lucide-react v0.462.0 - ISC
432 *
433 * This source code is licensed under the ISC license.
434 * See the LICENSE file in the root directory of this source tree.
435 */const ba=fe("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"}]]),K1="-",rW=e=>{const t=sW(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(K1);return l[0]===""&&l.length!==1&&l.shift(),h$(l,t)||nW(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},h$=(e,t)=>
vendor: 8,761 bytes, line 435
435{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?h$(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(K1);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},Ik=/^\[(.+)\]$/,nW=e=>{if(Ik.test(e)){const t=Ik.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},sW=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return iW(Object.entries(e.classGroups),r).forEach(([i,o])=>{O0(o,n,i,t)}),n},O0=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:$k(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(aW(a)){O0(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{O0(o,$k(t,i),r,n)})})},$k=(e,t)=>{let r=e;return t.split(K1).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},aW=e=>e.isThemeGetter,iW=(e,t)=>t?e.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[r,a]}):e,oW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},m$="!",lW=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,f;for(let v=0;v<l.length;v++){let y=l[v];if(u===0){if(y===a&&(n||l.slice(v,v+i)===t)){c.push(l.slice(d,v)),d=v+i;continue}if(y==="/"){f=v;continue}}y==="["?u++:y==="]"&&u--}const h=c.length===0?l:l.substring(d),m=h.startsWith(m$),g=m?h.substring(1):h,p=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:p}};return r?l=>r({className:l,parseClassName:o}):o},cW=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},uW=e=>({cache:oW(e.cacheSize),parseClassName:lW(e),...rW(e)}),dW=/\s+/,fW=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(dW);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=r(u);let g=!!m,p=n(g?h.substring(0,m):h);if(!p){if(!g){l=u+(l.length>0?" "+l:l);continue}if(p=n(h),!p){l=u+(l.length>0?" "+l:l);continue}g=!1}const v=cW(d).join(":"),y=f?v+m$:v,x=y+p;if(i.includes(x))continue;i.push(x);const w=a(p,g);for(let N=0;N<w.length;++N){const j=w[N];i.push(y+j)}l=u+(l.length>0?" "+l:l)}return l};function hW(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=p$(t))&&(n&&(n+=" "),n+=r);return n}const p$=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=p$(e[n]))&&(r&&(r+=" "),r+=t);return r};function mW(e,...t){let r,n,a,i=o;function o(c){const u=t.reduce((d,f)=>f(d),e());return r=uW(u),n=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=fW(c,r);return a(c,d),d}return function(){return i(hW.apply(null,arguments))}}const ct=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},g$=/^\[(?:([a-z-]+):)?(.+)\]$/i,pW=/^\d+\/\d+$/,gW=new Set(["px","full","screen"]),vW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xW=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xs=e=>Ql(e)||gW.has(e)||pW.test(e),Fa=e=>ou(e,"length",OW),Ql=e=>!!e&&!Number.isNaN(Number(e)),Ay=e=>ou(e,"number",Ql),Du=e=>!!e&&Number.isInteger(Number(e)),jW=e=>e.endsWith("%")&&Ql(e.slice(0,-1)),Ie=e=>g$.test(e),Ba=e=>vW.test(e),NW=new Set(["length","size","percentage"]),SW=e=>ou(e,NW,v$),_W=e=>ou(e,"position",v$),kW=new Set(["image","url"]),PW=e=>ou(e,kW,EW),CW=e=>ou(e,"",AW),Lu=()=>!0,ou=(e,t,r)=>{const n=g$.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},OW=e=>xW.test(e)&&!yW.test(e),v$=()=>!1,AW=e=>bW.test(e),EW=e=>wW.test(e),TW=()=>{const e=ct("colors"),t=ct("spacing"),r=ct("blur"),n=ct("brightness"),a=ct("borderColor"),i=ct("borderRadius"),o=ct("borderSpacing"),l=ct("borderWidth"),c=ct("contrast"),u=ct("grayscale"),d=ct("hueRotate"),f=ct("invert"),h=ct("gap"),m=ct("gradientColorStops"),g=ct("gradientColorStopPositions"),p=ct("inset"),v=ct("margin"),y=ct("opacity"),x=ct("padding"),w=ct("saturate"),N=ct("scale"),j=ct("sepia"),S=ct("skew"),_=ct("space"),P=ct("translate"),k=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Ie,t],T=()=>[Ie,t],E=()=>["",Xs,Fa],O=()=>["auto",Ql,Ie],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Ie],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Ql,Ie];return{cacheSize:500,separator:":",theme:{colors:[Lu],spacing:[Xs,Fa],blur:["none","",Ba,Ie],brightness:H(),borderColor:[e],borderRadius:["none","","full",Ba,Ie],borderSpacing:T(),borderWidth:E(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[jW,Fa],inset:C(),margin:C(),opacity:H(),padding:T(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Ie]}],container:["container"],columns:[{columns:[Ba]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[...D(),Ie]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Du,Ie]}],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",Ie]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Du,Ie]}],"grid-cols":[{"grid-cols":[Lu]}],"col-start-end":[{col:["auto",{span:["full",Du,Ie]},Ie]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Lu]}],"row-start-end":[{row:["auto",{span:[Du,Ie]},Ie]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ie]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,339 bytes, line 435
435],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ie,t]}],"min-w":[{"min-w":[Ie,t,"min","max","fit"]}],"max-w":[{"max-w":[Ie,t,"none","full","min","max","fit","prose",{screen:[Ba]},Ba]}],h:[{h:[Ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ba,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ay]}],"font-family":[{font:[Lu]}],"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",Ie]}],"line-clamp":[{"line-clamp":["none",Ql,Ay]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xs,Ie]}],"list-image":[{"list-image":["none",Ie]}],"list-style-type":[{list:["none","disc","decimal",Ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xs,Fa]}],"underline-offset":[{"underline-offset":["auto",Xs,Ie]}],"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:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie]}],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",Ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),_W]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",SW]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},PW]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Xs,Ie]}],"outline-w":[{outline:[Xs,Fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Xs,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ba,CW]}],"shadow-color":[{shadow:[Lu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ba,Ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"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",Ie]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Ie]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Du,Ie]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ie]}],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",Ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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"]}
vendor: 4,642 bytes, line 435
435],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",Ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xs,Fa,Ay]}],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"]}}},IW=mW(TW);function J(...e){return IW(Ae(e))}const $W=$U,x$=b.forwardRef(({className:e,...t},r)=>s.jsx(qI,{ref:r,className:J("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}));x$.displayName=qI.displayName;const MW=Jo("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"}}),y$=b.forwardRef(({className:e,variant:t,...r},n)=>s.jsx(GI,{ref:n,className:J(MW({variant:t}),e),...r}));y$.displayName=GI.displayName;const RW=b.forwardRef(({className:e,...t},r)=>s.jsx(XI,{ref:r,className:J("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}));RW.displayName=XI.displayName;const b$=b.forwardRef(({className:e,...t},r)=>s.jsx(QI,{ref:r,className:J("absolute right-2 top-2 rounded-md p-1 text-foreground
435/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:s.jsx(iu,{className:"h-4 w-4"})}));b$.displayName=QI.displayName;const w$=b.forwardRef(({className:e,...t},r)=>s.jsx(KI,{ref:r,className:J("text-sm font-semibold",e),...t}));w$.displayName=KI.displayName;const j$=b.forwardRef(({className:e,...t},r)=>s.jsx(YI,{ref:r,className:J("text-sm opacity-90",e),...t}));j$.displayName=YI.displayName;function DW(){const{toasts:e}=xr();return s.jsxs($W,{children:[e.map(function({id:t,title:r,description:n,action:a,...i}){return s.jsxs(y$,{...i,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(w$,{children:r}),n&&s.jsx(j$,{children:n})]}),a,s.jsx(b$,{})]},t)}),s.jsx(x$,{})]})}var Mk=["light","dark"],LW="(prefers-color-scheme: dark)",FW=b.createContext(void 0),BW={setTheme:e=>{},themes:[]},zW=()=>{var e;return(e=b.useContext(FW))!=null?e:BW};b.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=a?Mk.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,p=!1,v=!0)=>{let y=o?o[g]:g,x=p?g+"|| ''":`'${y}'`,w="";return a&&v&&!p&&Mk.includes(g)&&(w+=`d.style.colorScheme = '${g}';`),r==="class"?p||y?w+=`c.add(${x})`:w+="null":y&&(w+=`d[s](n,${x})`),w},m=e?`!function(){${d}${h(e)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${LW}',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)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var UW=e=>{switch(e){case"success":return HW;case"info":return GW;case"warning":return qW;case"error":return KW;default:return null}},WW=Array(12).fill(0),VW=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},WW.map((r,n)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),HW=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),qW=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.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"})),GW=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),KW=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.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"})),YW=I.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"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),XW=()=>
435{let[e,t]=I.useState(document.hidden);return I.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},A0=1,QW=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,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:A0++,i=this.toasts.find(l=>l.id===a),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...e,id:a,title:r}),{...l,...e,id:a,dismissible:o,title:r}):l):this.addToast({title:r,...n,dismissible:o,id:a}),a},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)=>
435this.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(),a=r!==void 0,i,o=n.then(async c=>{if(i=["resolve",c],I.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(ZW(c)&&!c.ok){a=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:r,type:"error",message:u,description:d})}else if(t.success!==void 0){a=!1;let u=typeof t.success=="function"?await t.success(c):t.success,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){a=!1;let u=typeof t.error=="function"?await t.error(c):t.error,d=typeof t.description=="function"?await t.description(c):t.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;a&&(this.dismiss(r),r=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||A0++;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}},Rr=new QW,JW=(e,t)=>{let r=(t==null?void 0:t.id)||A0++;return Rr.addToast({title:e,...t,id:r}),r},ZW=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",e9=JW,t9=()=>Rr.toasts,r9=()=>Rr.getActiveToasts(),ss=Object.assign(e9,{success:Rr.success,info:Rr.info,warning:Rr.warning,error:Rr.error,custom:Rr.custom,message:Rr.message,promise:Rr.promise,dismiss:Rr.dismiss,loading:Rr.loading},{getHistory:t9,getToasts:r9});function n9(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))}n9(`: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;
435left: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}
435: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%);
435--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%)}
436`);function tm(e){return e.label!==void 0}var s9=3,a9="32px",i9="16px",Rk=4e3,o9=356,l9=14,c9=20,u9=200;function Vn(...e){return e.filter(Boolean).join(" ")}function d9(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var f9=e=>{var t,r,n,a,i,o,l,c,u,d,f;let{invert:h,toast:m,unstyled:g,interacting:p,setHeights:v,visibleToasts:y,heights:x,index:w,toasts:N,expanded:j,removeToast:S,defaultRichColors:_,closeButton:P,style:k,cancelButtonStyle:A,actionButtonStyle:C,className:T="",descriptionClassName:E="",duration:O,position:D,gap:$,loadingIcon:L,expandByDefault:M,classNames:R,icons:B,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:U}
vendor: 4,206 bytes, line 436
436=e,[q,ee]=I.useState(null),[de,ce]=I.useState(null),[G,ie]=I.useState(!1),[X,te]=I.useState(!1),[Z,F]=I.useState(!1),[me,pe]=I.useState(!1),[Y,he]=I.useState(!1),[_e,We]=I.useState(0),[Fe,Et]=I.useState(0),jt=I.useRef(m.duration||O||Rk),er=I.useRef(null),Kt=I.useRef(null),js=w===0,Ns=w+1<=y,tr=m.type,mn=m.dismissible!==!1,ll=m.className||"",Ia=m.descriptionClassName||"",Mr=I.useMemo(()=>x.findIndex(ye=>ye.toastId===m.id)||0,[x,m.id]),$a=I.useMemo(()=>{var ye;return(ye=m.closeButton)!=null?ye:P},[m.closeButton,P]),Ys=I.useMemo(()=>m.duration||O||Rk,[m.duration,O]),Dn=I.useRef(0),Ln=I.useRef(0),Ki=I.useRef(0),Fn=I.useRef(null),[cl,Pt]=D.split("-"),Yi=I.useMemo(()=>x.reduce((ye,$e,nt)=>nt>=Mr?ye:ye+$e.height,0),[x,Mr]),Pe=XW(),Ma=m.invert||h,pn=tr==="loading";Ln.current=I.useMemo(()=>Mr*$+Yi,[Mr,Yi]),I.useEffect(()=>{jt.current=Ys},[Ys]),I.useEffect(()=>{ie(!0)},[]),I.useEffect(()=>{let ye=Kt.current;if(ye){let $e=ye.getBoundingClientRect().height;return Et($e),v(nt=>[{toastId:m.id,height:$e,position:m.position},...nt]),()=>v(nt=>nt.filter(Bn=>Bn.toastId!==m.id))}},[v,m.id]),I.useLayoutEffect(()=>{if(!G)return;let ye=Kt.current,$e=ye.style.height;ye.style.height="auto";let nt=ye.getBoundingClientRect().height;ye.style.height=$e,Et(nt),v(Bn=>Bn.find(zn=>zn.toastId===m.id)?Bn.map(zn=>zn.toastId===m.id?{...zn,height:nt}:zn):[{toastId:m.id,height:nt,position:m.position},...Bn])},[G,m.title,m.description,v,m.id]);let ke=I.useCallback(()=>{te(!0),We(Ln.current),v(ye=>ye.filter($e=>$e.toastId!==m.id)),setTimeout(()=>{S(m)},u9)},[m,S,v,Ln]);I.useEffect(()=>{if(m.promise&&tr==="loading"||m.duration===1/0||m.type==="loading")return;let ye;return j||p||U&&Pe?(()=>{if(Ki.current<Dn.current){let $e=new Date().getTime()-Dn.current;jt.current=jt.current-$e}Ki.current=new Date().getTime()})():jt.current!==1/0&&(Dn.current=new Date().getTime(),ye=setTimeout(()=>{var $e;($e=m.onAutoClose)==null||$e.call(m,m),ke()},jt.current)),()=>clearTimeout(ye)},[j,p,m,tr,U,Pe,ke]),I.useEffect(()=>{m.delete&&ke()},[ke,m.delete]);function br(){var ye,$e,nt;return B!=null&&B.loading?I.createElement("div",{className:Vn(R==null?void 0:R.loader,(ye=m==null?void 0:m.classNames)==null?void 0:ye.loader,"sonner-loader"),"data-visible":tr==="loading"},B.loading):L?I.createElement("div",{className:Vn(R==null?void 0:R.loader,($e=m==null?void 0:m.classNames)==null?void 0:$e.loader,"sonner-loader"),"data-visible":tr==="loading"},L):I.createElement(VW,{className:Vn(R==null?void 0:R.loader,(nt=m==null?void 0:m.classNames)==null?void 0:nt.loader),visible:tr==="loading"})}return I.createElement("li",{tabIndex:0,ref:Kt,className:Vn(T,ll,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[tr],(r=m==null?void 0:m.classNames)==null?void 0:r[tr]),"data-sonner-toast":"","data-rich-colors":(n=m.richColors)!=null?n:_,"data-styled":!(m.jsx||m.unstyled||g),"data-mounted":G,"data-promise":!!m.promise,"data-swiped":Y,"data-removed":X,"data-visible":Ns,"data-y-position":cl,"data-x-position":Pt,"data-index":w,"data-front":js,"data-swiping":Z,"data-dismissible":mn,"data-type":tr,"data-invert":Ma,"data-swipe-out":me,"data-swipe-direction":de,"data-expanded":!!(j||M&&G),style:{"--index":w,"--toasts-before":w,"--z-index":N.length-w,"--offset":`${X?_e:Ln.current}px`,"--initial-height":M?"auto":`${Fe}px`,...k,...m.style},onDragEnd:()=>{F(!1),ee(null),Fn.current=null},onPointerDown:ye=>{pn||!mn||(er.current=new Date,We(Ln.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(F(!0),Fn.current={x:ye.clientX,y:ye.clientY}))},onPointerUp:()=>{var ye,$e,nt,Bn;if(me||!mn)return;Fn.current=null;let zn=Number(((ye=Kt.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ra=Number((($e=Kt.current)==null?void 0:$e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Xi=new Date().getTime()-((nt=er.current)==null?void 0:nt.getTime()),Un=q==="x"?zn:Ra,Da=Math.abs(Un)/Xi;if(Math.abs(Un)>=c9||Da>.11){We(Ln.current),(Bn=m.onDismiss)==null||Bn.call(m,m),ce(q==="x"?zn>0?"right":"left":Ra>0?"down":"up"),ke(),pe(!0),he(!1);return}F(!1),ee(null)},onPointerMove:ye=>{var $e,nt,Bn,zn;
436if(!Fn.current||!mn||(($e=window.getSelection())==null?void 0:$e.toString().length)>0)return;let Ra=ye.clientY-Fn.current.y,Xi=ye.clientX-Fn.current.x,Un=(nt=e.swipeDirections)!=null?nt:d9(D);!q&&(Math.abs(Xi)>1||Math.abs(Ra)>1)&&ee(Math.abs(Xi)>Math.abs(Ra)?"x":"y");let Da={x:0,y:0};q==="y"?(Un.includes("top")||Un.includes("bottom"))&&(Un.includes("top")&&Ra<0||Un.includes("bottom")&&Ra>0)&&(Da.y=Ra):q==="x"&&(Un.includes("left")||Un.includes("right"))&&(Un.includes("left")&&Xi<0||Un.includes("right")&&Xi>0)&&(Da.x=Xi),(Math.abs(Da.x)>0||Math.abs(Da.y)>0)&&he(!0),(Bn=Kt.current)==null||Bn.style.setProperty("--swipe-amount-x",`${Da.x}px`),(zn=Kt.current)==null||zn.style.setProperty("--swipe-amount-y",`${Da.y}px`)}},$a&&!m.jsx?I.createElement("button",{"aria-label":H,"data-disabled":pn,"data-close-button":!0,onClick:pn||!mn?()=>{}:()=>{var ye;ke(),(ye=m.onDismiss)==null||ye.call(m,m)},className:Vn(R==null?void 0:R.closeButton,(a=m==null?void 0:m.classNames)==null?void 0:a.closeButton)},(i=B==null?void 0:B.close)!=null?i:YW):null,m.jsx||b.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:I.createElement(I.Fragment,null,tr||m.icon||m.promise?I.createElement("div",{"data-icon":"",className:Vn(R==null?void 0:R.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||br():null,m.type!=="loading"?m.
436icon||(B==null?void 0:B[tr])||UW(tr):null):null,I.createElement("div",{"data-content":"",className:Vn(R==null?void 0:R.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},I.createElement("div",{"data-title":"",className:Vn(R==null?void 0:R.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?I.createElement("div",{"data-description":"",className:Vn(E,Ia,R==null?void 0:R.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),b.isValidElement(m.cancel)?m.cancel:m.cancel&&tm(m.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||A,onClick:ye=>{var $e,nt;tm(m.cancel)&&mn&&((nt=($e=m.cancel).onClick)==null||nt.call($e,ye),ke())},className:Vn(R==null?void 0:R.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,b.isValidElement(m.action)?m.action:m.action&&tm(m.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||C,onClick:ye=>{var $e,nt;tm(m.action)&&((nt=($e=m.action).onClick)==null||nt.call($e,ye),!ye.defaultPrevented&&ke())},className:Vn(R==null?void 0:R.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Dk(){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 h9(e,t){let r={};return[e,t].forEach((n,a)=>
vendor: 5,146 bytes, line 436
436{let i=a===1,o=i?"--mobile-offset":"--offset",l=i?i9:a9;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=l:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var m9=b.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:m,visibleToasts:g=s9,toastOptions:p,dir:v=Dk(),gap:y=l9,loadingIcon:x,icons:w,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:j}=e,[S,_]=I.useState([]),P=I.useMemo(()=>Array.from(new Set([n].concat(S.filter(U=>U.position).map(U=>U.position)))),[S,n]),[k,A]=I.useState([]),[C,T]=I.useState(!1),[E,O]=I.useState(!1),[D,$]=I.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=I.useRef(null),M=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=I.useRef(null),B=I.useRef(!1),H=I.useCallback(U=>{_(q=>{var ee;return(ee=q.find(de=>de.id===U.id))!=null&&ee.delete||Rr.dismiss(U.id),q.filter(({id:de})=>de!==U.id)})},[]);return I.useEffect(()=>Rr.subscribe(U=>{if(U.dismiss){_(q=>q.map(ee=>ee.id===U.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{_I.flushSync(()=>{_(q=>{let ee=q.findIndex(de=>de.id===U.id);return ee!==-1?[...q.slice(0,ee),{...q[ee],...U},...q.slice(ee+1)]:[U,...q]})})})}),[]),I.useEffect(()=>{if(d!=="system"){$(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let U=window.matchMedia("(prefers-color-scheme: dark)");try{U.addEventListener("change",({matches:q})=>{$(q?"dark":"light")})}catch{U.addListener(({matches:ee})=>{try{$(ee?"dark":"light")}catch(de){console.error(de)}})}},[d]),I.useEffect(()=>{S.length<=1&&T(!1)},[S]),I.useEffect(()=>{let U=q=>{var ee,de;a.every(ce=>q[ce]||q.code===ce)&&(T(!0),(ee=L.current)==null||ee.focus()),q.code==="Escape"&&(document.activeElement===L.current||(de=L.current)!=null&&de.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[a]),I.useEffect(()=>{if(L.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,B.current=!1)}},[L.current]),I.createElement("section",{ref:t,"aria-label":`${N} ${M}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((U,q)=>{var ee;let[de,ce]=U.split("-");return S.length?I.createElement("ol",{key:U,dir:v==="auto"?Dk():v,tabIndex:-1,ref:L,className:l,"data-sonner-toaster":!0,"data-theme":D,"data-y-position":de,"data-lifted":C&&S.length>1&&!i,"data-x-position":ce,style:{"--front-toast-height":`${((ee=k[0])==null?void 0:ee.height)||0}px`,"--width":`${o9}px`,"--gap":`${y}px`,...m,...h9(c,u)},onBlur:G=>{B.current&&!G.currentTarget.contains(G.relatedTarget)&&(B.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||B.current||(B.current=!0,R.current=G.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{E||T(!1)},onDragEnd:()=>T(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||O(!0)},onPointerUp:()=>O(!1)},S.filter(G=>!G.position&&q===0||G.position===U).map((G,ie)=>{var X,te;return I.createElement(f9,{key:G.id,icons:w,index:ie,toast:G,defaultRichColors:f,duration:(X=p==null?void 0:p.duration)!=null?X:h,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:r,visibleToasts:g,closeButton:(te=p==null?void 0:p.closeButton)!=null?te:o,interacting:E,position:U,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:H,toasts:S.filter(Z=>Z.position==G.position),heights:k.filter(Z=>Z.position==G.position),setHeights:A,expandByDefault:i,gap:y,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const p9=({...e})=>{const{theme:t="system"}=zW();return s.jsx(m9,{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 g9=Kj[" useId ".trim().toString()]||(()=>{}),v9=0;function qr(e){const[t,r]=b.useState(g9());return At(()=>{e||r(n=>n??String(v9++))},[e]),e||(t?`radix-${t}`:"")}const x9=["top","right","bottom","left"],_i=Math.min,Zr=Math.max,bp=Math.round,rm=Math.floor,Ds=e=>({x:e,y:e}
vendor: 9,030 bytes, line 436
436),y9={left:"right",right:"left",bottom:"top",top:"bottom"},b9={start:"end",end:"start"};function E0(e,t,r){return Zr(e,_i(t,r))}function wa(e,t){return typeof e=="function"?e(t):e}function ja(e){return e.split("-")[0]}function lu(e){return e.split("-")[1]}function Y1(e){return e==="x"?"y":"x"}function X1(e){return e==="y"?"height":"width"}const w9=new Set(["top","bottom"]);function Is(e){return w9.has(ja(e))?"y":"x"}function Q1(e){return Y1(Is(e))}function j9(e,t,r){r===void 0&&(r=!1);const n=lu(e),a=Q1(e),i=X1(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=wp(o)),[o,wp(o)]}function N9(e){const t=wp(e);return[T0(e),t,T0(t)]}function T0(e){return e.replace(/start|end/g,t=>b9[t])}const Lk=["left","right"],Fk=["right","left"],S9=["top","bottom"],_9=["bottom","top"];function k9(e,t,r){switch(e){case"top":case"bottom":return r?t?Fk:Lk:t?Lk:Fk;case"left":case"right":return t?S9:_9;default:return[]}}function P9(e,t,r,n){const a=lu(e);let i=k9(ja(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(T0)))),i}function wp(e){return e.replace(/left|right|bottom|top/g,t=>y9[t])}function C9(e){return{top:0,right:0,bottom:0,left:0,...e}}function N$(e){return typeof e!="number"?C9(e):{top:e,right:e,bottom:e,left:e}}function jp(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Bk(e,t,r){let{reference:n,floating:a}=e;const i=Is(t),o=Q1(t),l=X1(o),c=ja(t),u=i==="y",d=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,h=n[l]/2-a[l]/2;let m;switch(c){case"top":m={x:d,y:n.y-a.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-a.width,y:f};break;default:m={x:n.x,y:n.y}}switch(lu(t)){case"start":m[o]-=h*(r&&u?-1:1);break;case"end":m[o]+=h*(r&&u?-1:1);break}return m}const O9=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Bk(u,n,c),h=n,m={},g=0;for(let p=0;p<l.length;p++){const{name:v,fn:y}=l[p],{x,y:w,data:N,reset:j}=await y({x:d,y:f,initialPlacement:n,placement:h,strategy:a,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});d=x??d,f=w??f,m={...m,[v]:{...m[v],...N}},j&&g<=50&&(g++,typeof j=="object"&&(j.placement&&(h=j.placement),j.rects&&(u=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):j.rects),{x:d,y:f}=Bk(u,h,c)),p=-1)}return{x:d,y:f,placement:h,strategy:a,middlewareData:m}};async function Kd(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=wa(t,e),g=N$(m),v=l[h?f==="floating"?"reference":"floating":f],y=jp(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),N=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},j=jp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-j.top+g.top)/N.y,bottom:(j.bottom-y.bottom+g.bottom)/N.y,left:(y.left-j.left+g.left)/N.x,right:(j.right-y.right+g.right)/N.x}}const A9=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=wa(e,t)||{};if(u==null)return{};const f=N$(d),h={x:r,y:n},m=Q1(a),g=X1(m),p=await o.getDimensions(u),v=m==="y",y=v?"top":"left",x=v?"bottom":"right",w=v?"clientHeight":"clientWidth",N=i.reference[g]+i.reference[m]-h[m]-i.floating[g],j=h[m]-i.reference[m],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=S?S[w]:0;(!_||!await(o.isElement==null?void 0:o.isElement(S)))&&(_=l.floating[w]||i.floating[g]);const P=N/2-j/2,k=_/2-p[g]/2-1,A=_i(f[y],k),C=_i(f[x],k),T=A,E=_-p[g]-C,O=_/2-p[g]/2+P,D=E0(T,O,E),$=!c.arrow&&lu(a)!=null&&O!==D&&i.reference[g]/2-(O<T?A:C)-p[g]/2<0,L=$?O<T?O-T:O-E:0;return{[m]:h[m]+L,data:{[m]:D,centerOffset:O-D-L,...$&&{alignmentOffset:L}},reset:$}}}),E9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=wa(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=ja(a),x=Is(l),w=ja(l)===l,N=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=h||(w||!p?[wp(l)]:N9(l)),S=g!=="none";!h&&S&&j.push(...P9(l,p,g,N));const _=[l,...j],P=await Kd(t,v),k=[];let A=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&k.push(P[y]),f){const O=j9(a,o,N);k.push(P[O[0]],P[O[1]])}if(A=[...A,{placement:a,overflows:k}],!k.every(O=>O<=0)){var C,T;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,D=_[O];if(D&&(!(f==="alignment"?x!==Is(D):!1)||A.every(M=>M.overflows[0]>0&&Is(M.placement)===x)))return{data:{index:O,overflows:A},reset:{placement:D}};let $=(T=A.filter(L=>L.overflows[0]<=0).sort((L,M)=>L.overflows[1]-M.overflows[1])[0])==null?void 0:T.placement;if(!$)switch(m){case"bestFit":{var E;const L=(E=A.filter(M=>{if(S){const R=Is(M.placement);return R===x||R==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((M,R)=>M[1]-R[1])[0])==null?void 0:E[0];L&&($=L);break}case"initialPlacement":$=l;break}if(a!==$)return{reset:{placement:$}}}return{}}}};function zk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uk(e){return x9.some(t=>e[t]>=0)}const T9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=wa(e,t);switch(n){case"referenceHidden":{const i=await Kd(t,{...a,elementContext:"reference"}),o=zk(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uk(o)}}}case"escaped":{const i=await Kd(t,{...a,altBoundary:!0}),o=zk(i,r.floating);return{data:{escapedOffsets:o,escaped:Uk(o)}}}default:return{}}}}},S$=new Set(["left","top"]);async function I9(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=ja(r),l=lu(r),c=Is(r)==="y",u=S$.has(o)?-1:1,d=i&&c?-1:1,f=wa(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}const $9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:l}=t,c=await I9(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},M9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=wa(e,t),u={x:r,y:n},d=await Kd(t,c),f=Is(ja(a)),h=Y1(f);let m=u[h],g=u[f];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=m+d[v],w=m-d[y];m=E0(x,m,w)}if(o){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=g+d[v],w=g-d[y];g=E0(x,g,w)}const p=l.fn({...t,[h]:m,[f]:g});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:i,[f]:o}}}}}},R9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=wa(e,t),d={x:r,y:n},f=Is(a),h=Y1(f);let m=d[h],g=d[f];const p=wa(l,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=h==="y"?"height":"width",N=i.reference[h]-i.floating[w]+v.mainAxis,j=i.reference[h]+i.reference[w]-v.mainAxis;m<N?m=N:m>j&&(m=j)}if(u){var y,x;const w=h==="y"?"width":"height",N=S$.has(ja(a)),j=i.reference[f]-i.floating[w]+(N&&((y=o.offset)==null?void 0:y[f])||0)+(N?0:v.crossAxis),S=i.reference[f]+i.reference[w]+(N?0:((x=o.offset)==null?void 0:x[f])||0)-(N?v.crossAxis:0);g<j?g=j:g>S&&(g=S)}return{[h]:m,[f]:g}}}},D9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=wa(e,t),d=await Kd(t,u),f=ja(a),h=lu(a),m=Is(a)==="y",{width:g,height:p}=i.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=h===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=f,v=h==="end"?"top":"bottom");
vendor: 5,435 bytes, line 436
436const x=p-d.top-d.bottom,w=g-d.left-d.right,N=_i(p-d[v],x),j=_i(g-d[y],w),S=!t.middlewareData.shift;let _=N,P=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=x),S&&!h){const A=Zr(d.left,0),C=Zr(d.right,0),T=Zr(d.top,0),E=Zr(d.bottom,0);m?P=g-2*(A!==0||C!==0?A+C:Zr(d.left,d.right)):_=p-2*(T!==0||E!==0?T+E:Zr(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:_});const k=await o.getDimensions(l.floating);return g!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function fv(){return typeof window<"u"}function cu(e){return _$(e)?(e.nodeName||"").toLowerCase():"#document"}function ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qs(e){var t;return(t=(_$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _$(e){return fv()?e instanceof Node||e instanceof ln(e).Node:!1}function ms(e){return fv()?e instanceof Element||e instanceof ln(e).Element:!1}function Ws(e){return fv()?e instanceof HTMLElement||e instanceof ln(e).HTMLElement:!1}function Wk(e){return!fv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ln(e).ShadowRoot}const L9=new Set(["inline","contents"]);function ah(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ps(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!L9.has(a)}const F9=new Set(["table","td","th"]);function B9(e){return F9.has(cu(e))}const z9=[":popover-open",":modal"];function hv(e){return z9.some(t=>{try{return e.matches(t)}catch{return!1}})}const U9=["transform","translate","scale","rotate","perspective"],W9=["transform","translate","scale","rotate","perspective","filter"],V9=["paint","layout","strict","content"];function J1(e){const t=Z1(),r=ms(e)?ps(e):e;return U9.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)||W9.some(n=>(r.willChange||"").includes(n))||V9.some(n=>(r.contain||"").includes(n))}function H9(e){let t=ki(e);for(;Ws(t)&&!Nc(t);){if(J1(t))return t;if(hv(t))return null;t=ki(t)}return null}function Z1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const q9=new Set(["html","body","#document"]);function Nc(e){return q9.has(cu(e))}function ps(e){return ln(e).getComputedStyle(e)}function mv(e){return ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ki(e){if(cu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wk(e)&&e.host||qs(e);return Wk(t)?t.host:t}function k$(e){const t=ki(e);return Nc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ws(t)&&ah(t)?t:k$(t)}function Yd(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=k$(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=ln(a);if(i){const l=I0(o);return t.concat(o,o.visualViewport||[],ah(a)?a:[],l&&r?Yd(l):[])}return t.concat(a,Yd(a,[],r))}function I0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function P$(e){const t=ps(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Ws(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,l=bp(r)!==i||bp(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function eN(e){return ms(e)?e:e.contextElement}function Jl(e){const t=eN(e);if(!Ws(t))return Ds(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=P$(t);let o=(i?bp(r.width):r.width)/n,l=(i?bp(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const G9=Ds(0);function C$(e){const t=ln(e);return!Z1()||!t.visualViewport?G9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K9(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ln(e)?!1:t}function Do(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=eN(e);let o=Ds(1);t&&(n?ms(n)&&(o=Jl(n)):o=Jl(e));const l=K9(i,r,n)?C$(i):Ds(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,f=a.height/o.y;if(i){const h=ln(i),m=n&&ms(n)?ln(n):n;let g=h,p=I0(g);for(;p&&n&&m!==g;){const v=Jl(p),y=p.getBoundingClientRect(),x=ps(p),w=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,N=y.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,f*=v.y,c+=w,u+=N,g=ln(p),p=I0(g)}}return jp({width:d,height:f,x:c,y:u})}function tN(e,t){const r=mv(e).scrollLeft;return t?t.left+r:Do(qs(e)).left+r}function O$(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-(r?0:tN(e,n)),i=n.top+t.scrollTop;return{x:a,y:i}}function Y9(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=qs(n),l=t?hv(t.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=Ds(1);const d=Ds(0),f=Ws(n);if((f||!f&&!i)&&((cu(n)!=="body"||ah(o))&&(c=mv(n)),Ws(n))){const m=Do(n);u=Jl(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const h=o&&!f&&!i?O$(o,c,!0):Ds(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-c.scrollTop*u.y+d.y+h.y}}function X9(e){return Array.from(e.getClientRects())}function Q9(e){const t=qs(e),r=mv(e),n=e.ownerDocument.body,a=Zr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Zr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+tN(e);const l=-r.scrollTop;return ps(n).direction==="rtl"&&(o+=Zr(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}
vendor: 4,850 bytes, line 436
436function J9(e,t){const r=ln(e),n=qs(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const u=Z1();(!u||u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}const Z9=new Set(["absolute","fixed"]);function eV(e,t){const r=Do(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Ws(e)?Jl(e):Ds(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=n*i.y;return{width:o,height:l,x:c,y:u}}function Vk(e,t,r){let n;if(t==="viewport")n=J9(e,r);else if(t==="document")n=Q9(qs(e));else if(ms(t))n=eV(t,r);else{const a=C$(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return jp(n)}function A$(e,t){const r=ki(e);return r===t||!ms(r)||Nc(r)?!1:ps(r).position==="fixed"||A$(r,t)}function tV(e,t){const r=t.get(e);if(r)return r;let n=Yd(e,[],!1).filter(l=>ms(l)&&cu(l)!=="body"),a=null;const i=ps(e).position==="fixed";let o=i?ki(e):e;for(;ms(o)&&!Nc(o);){const l=ps(o),c=J1(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&Z9.has(a.position)||ah(o)&&!c&&A$(e,o))?n=n.filter(d=>d!==o):a=l,o=ki(o)}return t.set(e,n),n}function rV(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?hv(t)?[]:tV(t,this._c):[].concat(r),n],l=o[0],c=o.reduce((u,d)=>{const f=Vk(t,d,a);return u.top=Zr(f.top,u.top),u.right=_i(f.right,u.right),u.bottom=_i(f.bottom,u.bottom),u.left=Zr(f.left,u.left),u},Vk(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nV(e){const{width:t,height:r}=P$(e);return{width:t,height:r}}function sV(e,t,r){const n=Ws(t),a=qs(t),i=r==="fixed",o=Do(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Ds(0);function u(){c.x=tN(a)}if(n||!n&&!i)if((cu(t)!=="body"||ah(a))&&(l=mv(t)),n){const m=Do(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else a&&u();i&&!n&&a&&u();const d=a&&!n&&!i?O$(a,l):Ds(0),f=o.left+l.scrollLeft-c.x-d.x,h=o.top+l.scrollTop-c.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function Ey(e){return ps(e).position==="static"}function Hk(e,t){if(!Ws(e)||ps(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qs(e)===r&&(r=r.ownerDocument.body),r}function E$(e,t){const r=ln(e);if(hv(e))return r;if(!Ws(e)){let a=ki(e);for(;a&&!Nc(a);){if(ms(a)&&!Ey(a))return a;a=ki(a)}return r}let n=Hk(e,t);for(;n&&B9(n)&&Ey(n);)n=Hk(n,t);return n&&Nc(n)&&Ey(n)&&!J1(n)?r:n||H9(e)||r}const aV=async function(e){const t=this.getOffsetParent||E$,r=this.getDimensions,n=await r(e.floating);return{reference:sV(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function iV(e){return ps(e).direction==="rtl"}const oV={convertOffsetParentRelativeRectToViewportRelativeRect:Y9,getDocumentElement:qs,getClippingRect:rV,getOffsetParent:E$,getElementRects:aV,getClientRects:X9,getDimensions:nV,getScale:Jl,isElement:ms,isRTL:iV};function T$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lV(e,t){let r=null,n;const a=qs(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=u;if(l||t(),!h||!m)return;const g=rm(f),p=rm(a.clientWidth-(d+h)),v=rm(a.clientHeight-(f+m)),y=rm(d),w={rootMargin:-g+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Zr(0,_i(1,c))||1};let N=!0;function j(S){const _=S[0].intersectionRatio;if(_!==c){if(!N)return o();_?o(!1,_):n=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!T$(u,e.getBoundingClientRect())&&o(),N=!1}try{r=new IntersectionObserver(j,{...w,root:a.ownerDocument})}catch{r=new IntersectionObserver(j,w)}r.observe(e)}return o(!0),i}function cV(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=eN(e),d=a||i?[...u?Yd(u):[],...Yd(t)]:[];d.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const f=u&&l?lV(u,r):null;let h=-1,m=null;o&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let g,p=c?Do(e):null;c&&v();function v(){const y=Do(e);p&&!T$(p,y)&&r(),p=y,g=requestAnimationFrame(v)}return r(),()=>{var y;d.forEach(x=>{a&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const uV=$9,dV=M9,fV=E9,hV=D9,mV=T9,qk=A9,pV=R9,gV=(e,t,r)=>{const n=new Map,a={platform:oV,...r},i={...a.platform,_c:n};return O9(e,t,{...a,platform:i})};var vV=typeof document<"u",xV=function(){},Wm=vV?b.useLayoutEffect:xV;function Np(e,t){if(e===t)return!0;
vendor: 4,143 bytes, line 436
436if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;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(!Np(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!Np(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function I$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gk(e,t){const r=I$(e);return Math.round(t*r)/r}function Ty(e){const t=b.useRef(e);return Wm(()=>{t.current=e}),t}function yV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=b.useState(n);Np(h,n)||m(n);const[g,p]=b.useState(null),[v,y]=b.useState(null),x=b.useCallback(M=>{M!==S.current&&(S.current=M,p(M))},[]),w=b.useCallback(M=>{M!==_.current&&(_.current=M,y(M))},[]),N=i||g,j=o||v,S=b.useRef(null),_=b.useRef(null),P=b.useRef(d),k=c!=null,A=Ty(c),C=Ty(a),T=Ty(u),E=b.useCallback(()=>{if(!S.current||!_.current)return;const M={placement:t,strategy:r,middleware:h};C.current&&(M.platform=C.current),gV(S.current,_.current,M).then(R=>{const B={...R,isPositioned:T.current!==!1};O.current&&!Np(P.current,B)&&(P.current=B,Xo.flushSync(()=>{f(B)}))})},[h,t,r,C,T]);Wm(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const O=b.useRef(!1);Wm(()=>(O.current=!0,()=>{O.current=!1}),[]),Wm(()=>{if(N&&(S.current=N),j&&(_.current=j),N&&j){if(A.current)return A.current(N,j,E);E()}},[N,j,E,A,k]);const D=b.useMemo(()=>({reference:S,floating:_,setReference:x,setFloating:w}),[x,w]),$=b.useMemo(()=>({reference:N,floating:j}),[N,j]),L=b.useMemo(()=>{const M={position:r,left:0,top:0};if(!$.floating)return M;const R=Gk($.floating,d.x),B=Gk($.floating,d.y);return l?{...M,transform:"translate("+R+"px, "+B+"px)",...I$($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:R,top:B}},[r,l,$.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:E,refs:D,elements:$,floatingStyles:L}),[d,E,D,$,L])}const bV=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?qk({element:n.current,padding:a}).fn(r):{}:n?qk({element:n,padding:a}).fn(r):{}}}},wV=(e,t)=>({...uV(e),options:[e,t]}),jV=(e,t)=>({...dV(e),options:[e,t]}),NV=(e,t)=>({...pV(e),options:[e,t]}),SV=(e,t)=>({...fV(e),options:[e,t]}),_V=(e,t)=>({...hV(e),options:[e,t]}),kV=(e,t)=>({...mV(e),options:[e,t]}),PV=(e,t)=>({...bV(e),options:[e,t]});var CV="Arrow",$$=b.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return s.jsx(xe.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});$$.displayName=CV;var OV=$$;function rN(e){const[t,r]=b.useState(void 0);return At(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;r({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var nN="Popper",[M$,Ii]=qt(nN),[AV,R$]=M$(nN),D$=e=>{const{__scopePopper:t,children:r}=e,[n,a]=b.useState(null);return s.jsx(AV,{scope:t,anchor:n,onAnchorChange:a,children:r})};D$.displayName=nN;var L$="PopperAnchor",F$=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=R$(L$,r),o=b.useRef(null),l=Te(t,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:s.jsx(xe.div,{...a,ref:l})});F$.displayName=L$;var sN="PopperContent",[EV,TV]=M$(sN),B$=b.forwardRef((e,t)=>
vendor: 4,203 bytes, line 436
436{var G,ie,X,te,Z,F;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=e,v=R$(sN,r),[y,x]=b.useState(null),w=Te(t,me=>x(me)),[N,j]=b.useState(null),S=rN(N),_=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,k=n+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},C=Array.isArray(u)?u:[u],T=C.length>0,E={padding:A,boundary:C.filter($V),altBoundary:T},{refs:O,floatingStyles:D,placement:$,isPositioned:L,middlewareData:M}=yV({strategy:"fixed",placement:k,whileElementsMounted:(...me)=>cV(...me,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[wV({mainAxis:a+P,alignmentAxis:o}),c&&jV({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?NV():void 0,...E}),c&&SV({...E}),_V({...E,apply:({elements:me,rects:pe,availableWidth:Y,availableHeight:he})=>{const{width:_e,height:We}=pe.reference,Fe=me.floating.style;Fe.setProperty("--radix-popper-available-width",`${Y}px`),Fe.setProperty("--radix-popper-available-height",`${he}px`),Fe.setProperty("--radix-popper-anchor-width",`${_e}px`),Fe.setProperty("--radix-popper-anchor-height",`${We}px`)}}),N&&PV({element:N,padding:l}),MV({arrowWidth:_,arrowHeight:P}),h&&kV({strategy:"referenceHidden",...E})]}),[R,B]=W$($),H=Er(g);At(()=>{L&&(H==null||H())},[L,H]);const U=(G=M.arrow)==null?void 0:G.x,q=(ie=M.arrow)==null?void 0:ie.y,ee=((X=M.arrow)==null?void 0:X.centerOffset)!==0,[de,ce]=b.useState();return At(()=>{y&&ce(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(te=M.transformOrigin)==null?void 0:te.x,(Z=M.transformOrigin)==null?void 0:Z.y].join(" "),...((F=M.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(EV,{scope:r,placedSide:R,onArrowChange:j,arrowX:U,arrowY:q,shouldHideArrow:ee,children:s.jsx(xe.div,{"data-side":R,"data-align":B,...p,ref:w,style:{...p.style,animation:L?void 0:"none"}})})})});B$.displayName=sN;var z$="PopperArrow",IV={top:"bottom",right:"left",bottom:"top",left:"right"},U$=b.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=TV(z$,n),o=IV[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(OV,{...a,ref:r,style:{...a.style,display:"block"}})})});U$.displayName=z$;function $V(e){return e!==null}var MV=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:r,rects:n,middlewareData:a}=t,o=((v=a.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=W$(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=a.arrow)==null?void 0:y.x)??0)+l/2,m=(((x=a.arrow)==null?void 0:x.y)??0)+c/2;let g="",p="";return u==="bottom"?(g=o?f:`${h}px`,p=`${-c}px`):u==="top"?(g=o?f:`${h}px`,p=`${n.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=o?f:`${m}px`):u==="left"&&(g=`${n.floating.width+c}px`,p=o?f:`${m}px`),{data:{x:g,y:p}}}});function W$(e){const[t,r="center"]=e.split("-");return[t,r]}var pv=D$,ih=F$,gv=B$,vv=U$,[xv,PCe]=qt("Tooltip",[Ii]),yv=Ii(),V$="TooltipProvider",RV=700,$0="tooltip.open",[DV,aN]=xv(V$),H$=e=>{const{__scopeTooltip:t,delayDuration:r=RV,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=e,o=b.useRef(!0),l=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),s.jsx(DV,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,050 bytes, line 436
436o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:b.useCallback(u=>{l.current=u},[]),disableHoverableContent:a,children:i})};H$.displayName=V$;var Xd="Tooltip",[LV,bv]=xv(Xd),q$=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=e,c=aN(Xd,e.__scopeTooltip),u=yv(t),[d,f]=b.useState(null),h=qr(),m=b.useRef(0),g=o??c.disableHoverableContent,p=l??c.delayDuration,v=b.useRef(!1),[y,x]=Gr({prop:n,defaultProp:a??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent($0))):c.onClose(),i==null||i(_)},caller:Xd}),w=b.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),N=b.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),j=b.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),S=b.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return b.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(pv,{...u,children:s.jsx(LV,{scope:t,contentId:h,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?S():N()},[c.isOpenDelayedRef,S,N]),onTriggerLeave:b.useCallback(()=>{g?j():(window.clearTimeout(m.current),m.current=0)},[j,g]),onOpen:N,onClose:j,disableHoverableContent:g,children:r})})};q$.displayName=Xd;var M0="TooltipTrigger",G$=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=bv(M0,r),i=aN(M0,r),o=yv(r),l=b.useRef(null),c=Te(t,l,a.onTriggerChange),u=b.useRef(!1),d=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(ih,{asChild:!0,...o,children:s.jsx(xe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:se(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:se(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:se(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:se(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:se(e.onBlur,a.onClose),onClick:se(e.onClick,a.onClose)})})});G$.displayName=M0;var FV="TooltipPortal",[CCe,BV]=xv(FV,{forceMount:void 0}),Sc="TooltipContent",K$=b.forwardRef((e,t)=>{const r=BV(Sc,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=e,o=bv(Sc,e.__scopeTooltip);return s.jsx(yr,{present:n||o.open,children:o.disableHoverableContent?s.jsx(Y$,{side:a,...i,ref:t}):s.jsx(zV,{side:a,...i,ref:t})})}),zV=b.forwardRef((e,t)=>{const r=bv(Sc,e.__scopeTooltip),n=aN(Sc,e.__scopeTooltip),a=b.useRef(null),i=Te(t,a),[o,l]=b.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:f}=n,h=b.useCallback(()=>{l(null),f(!1)},[f]),m=b.useCallback((g,p)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=qV(y,v.getBoundingClientRect()),w=GV(y,x),N=KV(p.getBoundingClientRect()),j=XV([...w,...N]);l(j),f(!0)},[f]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(c&&d){const g=v=>m(v,d),p=v=>m(v,c);return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",p)}}},[c,d,m,h]),b.useEffect(()=>{if(o){const g=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),w=!YV(y,o);x?h():w&&(h(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,o,u,h]),s.jsx(Y$,{...e,ref:i})}),[UV,WV]=xv(Xd,{isInside:!1}),VV=CI("TooltipContent"),Y$=b.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=bv(Sc,r),u=yv(r),{onClose:d}=c;return b.useEffect(()=>(document.addEventListener($0,d),()=>document.removeEventListener($0,d)),[d]),b.useEffect(()=>{if(c.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),s.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:s.jsxs(gv,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(VV,{children:n}),s.jsx(UV,{scope:r,isInside:!0,children:s.jsx(gU,{id:c.contentId,role:"tooltip",children:a||n})})]})})});K$.displayName=Sc;var X$="TooltipArrow",HV=b.forwardRef((e,t)=>
436{const{__scopeTooltip:r,...n}=e,a=yv(r);return WV(X$,r).isInside?null:s.jsx(vv,{...a,...n,ref:t})});HV.displayName=X$;function qV(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function GV(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 KV(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function YV(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,f=c.x,h=c.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(a=!a)}return a}function XV(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),QV(t)}function QV(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}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 JV=H$,ZV=q$,e7=G$,Q$=K$;const wv=JV,iN=ZV,oN=e7,jv=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(Q$,{ref:n,sideOffset:t,className:J("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}));jv.displayName=Q$.displayName;var Nv=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(){}},Sv=typeof window>"u"||"Deno"in globalThis;function Yn(){}function t7(e,t){return typeof e=="function"?e(t):e}function r7(e){return typeof e=="number"&&e>=0&&e!==1/0}function n7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function R0(e,t){return typeof e=="function"?e(t):e}function s7(e,t){return typeof e=="function"?e(t):e}function Kk(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==lN(o,t.options))return!1}else if(!Jd(t.queryKey,o))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function Yk(e,t){const{exact:r,status:n,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Qd(t.options.mutationKey)!==Qd(i))return!1}else if(!Jd(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function lN(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qd)(e)}function Qd(e){return JSON.stringify(e,(t,r)=>D0(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Jd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Jd(e[r],t[r])):!1}function J$(e,t){if(e===t)return e;const r=Xk(e)&&Xk(t);if(r||D0(e)&&D0(t)){const n=r?e:Object.keys(e),a=n.length,i=r?t:Object.keys(t),o=i.length,l=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<o;d++){const f=r?d:i[d];(!r&&c.has(f)||r)&&e[f]===void 0&&t[f]===void 0?(l[f]=void 0,u++):(l[f]=J$(e[f],t[f]),l[f]===e[f]&&e[f]!==void 0&&u++)}return a===o&&u===a?e:l}return t}function Xk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function D0(e){if(!Qk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;
vendor: 15,262 bytes, line 436
436return!(!Qk(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qk(e){return Object.prototype.toString.call(e)==="[object Object]"}function a7(e){return new Promise(t=>{setTimeout(t,e)})}function i7(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?J$(e,t):t}function o7(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function l7(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var cN=Symbol();function Z$(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cN?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bo,Za,ac,aE,c7=(aE=class extends Nv{constructor(){super();Be(this,bo);Be(this,Za);Be(this,ac);Oe(this,ac,t=>{if(!Sv&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Q(this,Za)||this.setEventListener(Q(this,ac))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,Za))==null||t.call(this),Oe(this,Za,void 0))}setEventListener(t){var r;Oe(this,ac,t),(r=Q(this,Za))==null||r.call(this),Oe(this,Za,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Q(this,bo)!==t&&(Oe(this,bo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Q(this,bo)=="boolean"?Q(this,bo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bo=new WeakMap,Za=new WeakMap,ac=new WeakMap,aE),eM=new c7,ic,ei,oc,iE,u7=(iE=class extends Nv{constructor(){super();Be(this,ic,!0);Be(this,ei);Be(this,oc);Oe(this,oc,t=>{if(!Sv&&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(){Q(this,ei)||this.setEventListener(Q(this,oc))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ei))==null||t.call(this),Oe(this,ei,void 0))}setEventListener(t){var r;Oe(this,oc,t),(r=Q(this,ei))==null||r.call(this),Oe(this,ei,t(this.setOnline.bind(this)))}setOnline(t){Q(this,ic)!==t&&(Oe(this,ic,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Q(this,ic)}},ic=new WeakMap,ei=new WeakMap,oc=new WeakMap,iE),Sp=new u7;function d7(){let e,t;const r=new Promise((a,i)=>{e=a,t=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function f7(e){return Math.min(1e3*2**e,3e4)}function tM(e){return(e??"online")==="online"?Sp.isOnline():!0}var rM=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Iy(e){return e instanceof rM}function nM(e){let t=!1,r=0,n=!1,a;const i=d7(),o=p=>{var v;n||(h(new rM(p)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>eM.isFocused()&&(e.networkMode==="always"||Sp.isOnline())&&e.canRun(),d=()=>tM(e.networkMode)&&e.canRun(),f=p=>{var v;n||(n=!0,(v=e.onSuccess)==null||v.call(e,p),a==null||a(),i.resolve(p))},h=p=>{var v;n||(n=!0,(v=e.onError)==null||v.call(e,p),a==null||a(),i.reject(p))},m=()=>new Promise(p=>{var v;a=y=>{(n||u())&&p(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var p;a=void 0,n||(p=e.onContinue)==null||p.call(e)}),g=()=>{if(n)return;let p;const v=r===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(f).catch(y=>{var S;if(n)return;const x=e.retry??(Sv?0:3),w=e.retryDelay??f7,N=typeof w=="function"?w(r,y):w,j=x===!0||typeof x=="number"&&r<x||typeof x=="function"&&x(r,y);if(t||!j){h(y);return}r++,(S=e.onFail)==null||S.call(e,r,y),a7(N).then(()=>u()?void 0:m()).then(()=>{t?h(y):g()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?g():m().then(g),i)}}var h7=e=>setTimeout(e,0);function m7(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=h7;const i=l=>{t?e.push(l):a(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var Sr=m7(),wo,oE,sM=(oE=class{constructor(){Be(this,wo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r7(this.gcTime)&&Oe(this,wo,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sv?1/0:5*60*1e3))}clearGcTimeout(){Q(this,wo)&&(clearTimeout(Q(this,wo)),Oe(this,wo,void 0))}},wo=new WeakMap,oE),lc,jo,yn,No,cr,qf,So,Xn,Js,lE,p7=(lE=class extends sM{constructor(t){super();Be(this,Xn);Be(this,lc);Be(this,jo);Be(this,yn);Be(this,No);Be(this,cr);Be(this,qf);Be(this,So);Oe(this,So,!1),Oe(this,qf,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,No,t.client),Oe(this,yn,Q(this,No).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,lc,v7(this.options)),this.state=t.state??Q(this,lc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,cr))==null?void 0:t.promise}setOptions(t){this.options={...Q(this,qf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,yn).remove(this)}setData(t,r){const n=i7(this.state.data,t,this.options);return ir(this,Xn,Js).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ir(this,Xn,Js).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=Q(this,cr))==null?void 0:n.promise;return(a=Q(this,cr))==null||a.cancel(t),r?r.then(Yn).catch(Yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Q(this,lc))}isActive(){return this.observers.some(t=>s7(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>R0(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:!n7(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,cr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,cr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,yn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Q(this,cr)&&(Q(this,So)?Q(this,cr).cancel({revert:!0}):Q(this,cr).cancelRetry()),this.scheduleGc()),Q(this,yn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ir(this,Xn,Js).call(this,{type:"invalidate"})}fetch(t,r){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Q(this,cr))return Q(this,cr).continueRetry(),Q(this,cr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Oe(this,So,!0),n.signal)})},i=()=>{const h=Z$(this.options,r),g=(()=>{const p={client:Q(this,No),queryKey:this.queryKey,meta:this.meta};return a(p),p})();return Oe(this,So,!1),this.options.persister?this.options.persister(h,g,this):h(g)},l=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Q(this,No),state:this.state,fetchFn:i};return a(h),h})();(u=this.options.behavior)==null||u.onFetch(l,this),Oe(this,jo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&ir(this,Xn,Js).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const c=h=>{var m,g,p,v;Iy(h)&&h.silent||ir(this,Xn,Js).call(this,{type:"error",error:h}),Iy(h)||((g=(m=Q(this,yn).config).onError)==null||g.call(m,h,this),(v=(p=Q(this,yn).config).onSettled)==null||v.call(p,this.state.data,h,this)),this.scheduleGc()};return Oe(this,cr,nM({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var m,g,p,v;if(h===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(y){c(y);return}(g=(m=Q(this,yn).config).onSuccess)==null||g.call(m,h,this),(v=(p=Q(this,yn).config).onSettled)==null||v.call(p,h,this.state.error,this),this.scheduleGc()},onError:c,onFail:(h,m)=>{ir(this,Xn,Js).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{ir(this,Xn,Js).call(this,{type:"pause"})},onContinue:()=>{ir(this,Xn,Js).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Q(this,cr).start()}},lc=new WeakMap,jo=new WeakMap,yn=new WeakMap,No=new WeakMap,cr=new WeakMap,qf=new WeakMap,So=new WeakMap,Xn=new WeakSet,Js=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,...g7(n.data,this.options),fetchMeta:t.meta??null};case"success":return Oe(this,jo,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 a=t.error;return Iy(a)&&a.revert&&Q(this,jo)?{...Q(this,jo),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Sr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Q(this,yn).notify({query:this,type:"updated",action:t})})},lE);function g7(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v7(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 Ps,cE,x7=(cE=class extends Nv{constructor(t={}){super();Be(this,Ps);this.config=t,Oe(this,Ps,new Map)}build(t,r,n){const a=r.queryKey,i=r.queryHash??lN(a,r);let o=this.get(i);return o||(o=new p7({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){Q(this,Ps).has(t.queryHash)||(Q(this,Ps).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Q(this,Ps).get(t.queryHash);r&&(t.destroy(),r===t&&Q(this,Ps).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Sr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,Ps).get(t)}getAll(){return[...Q(this,Ps).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Kk(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Kk(t,n)):r}notify(t){Sr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Sr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ps=new WeakMap,cE),Cs,jr,_o,Os,Wa,uE,y7=(uE=class extends sM{constructor(t){super();Be(this,Os);Be(this,Cs);Be(this,jr);Be(this,_o);this.mutationId=t.mutationId,Oe(this,jr,t.mutationCache),Oe(this,Cs,[]),this.state=t.state||b7(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,Cs).includes(t)||(Q(this,Cs).push(t),this.clearGcTimeout(),Q(this,jr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,Cs,Q(this,Cs).filter(r=>r!==t)),this.scheduleGc(),Q(this,jr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,Cs).length||(this.state.status==="pending"?this.scheduleGc():Q(this,jr).remove(this))}continue(){var t;return((t=Q(this,_o))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,u,d,f,h,m,g,p,v,y,x,w,N,j,S,_,P;const r=()=>{ir(this,Os,Wa).call(this,{type:"continue"})};Oe(this,_o,nM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,A)=>{ir(this,Os,Wa).call(this,{type:"failed",failureCount:k,error:A})},onPause:()=>{ir(this,Os,Wa).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,jr).canRun(this)}));const n=this.state.status==="pending",a=!Q(this,_o).canStart();try{if(n)r();else{ir(this,Os,Wa).call(this,{type:"pending",variables:t,isPaused:a}),await((o=(i=Q(this,jr).config).onMutate)==null?void 0:o.call(i,t,this));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));A!==this.state.context&&ir(this,Os,Wa).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const k=await Q(this,_o).start();return await((d=(u=Q(this,jr).config).onSuccess)==null?void 0:d.call(u,k,t,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,k,t,this.state.context)),await((g=(m=Q(this,jr).config).onSettled)==null?void 0:g.call(m,k,null,this.state.variables,this.state.context,this)),await((v=(p=this.options).onSettled)==null?void 0:v.call(p,k,null,t,this.state.context)),ir(this,Os,Wa).call(this,{type:"success",data:k}),k}catch(k){try{throw await((x=(y=Q(this,jr).config).onError)==null?void 0:x.call(y,k,t,this.state.context,this)),await((N=(w=this.options).onError)==null?void 0:N.call(w,k,t,this.state.context)),await((S=(j=Q(this,jr).config).onSettled)==null?void 0:S.call(j,void 0,k,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,k,t,this.state.context)),k}finally{ir(this,Os,Wa).call(this,{type:"error",error:k})}}finally{Q(this,jr).runNext(this)}}}
436,Cs=new WeakMap,jr=new WeakMap,_o=new WeakMap,Os=new WeakSet,Wa=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),Sr.batch(()=>{Q(this,Cs).forEach(n=>{n.onMutationUpdate(t)}),Q(this,jr).notify({mutation:this,type:"updated",action:t})})},uE);function b7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var aa,Qn,Gf,dE,w7=(dE=class extends Nv{constructor(t={}){super();Be(this,aa);Be(this,Qn);Be(this,Gf);this.config=t,Oe(this,aa,new Set),Oe(this,Qn,new Map),Oe(this,Gf,0)}build(t,r,n){const a=new y7({mutationCache:this,mutationId:++Mh(this,Gf)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Q(this,aa).add(t);const r=nm(t);if(typeof r=="string"){const n=Q(this,Qn).get(r);n?n.push(t):Q(this,Qn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,aa).delete(t)){const r=nm(t);if(typeof r=="string"){const n=Q(this,Qn).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&Q(this,Qn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=nm(t);if(typeof r=="string"){const n=Q(this,Qn).get(r),a=n==null?void 0:n.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=nm(t);if(typeof r=="string"){const a=(n=Q(this,Qn).get(r))==null?void 0:n.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Sr.batch(()=>{Q(this,aa).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,aa).clear(),Q(this,Qn).clear()})}getAll(){return Array.from(Q(this,aa))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Yk(r,n))}findAll(t={}){return this.getAll().filter(r=>Yk(t,r))}notify(t){Sr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 4,438 bytes, line 436
436r.state.isPaused);return Sr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Yn))))}},aa=new WeakMap,Qn=new WeakMap,Gf=new WeakMap,dE);function nm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Jk(e){return{onFetch:(t,r)=>{var d,f,h,m,g;const n=t.options,a=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=Z$(t.options,t.fetchOptions),x=async(w,N,j)=>{if(p)return Promise.reject();if(N==null&&w.pages.length)return Promise.resolve(w);const _=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:N,direction:j?"backward":"forward",meta:t.options.meta};return v(C),C})(),P=await y(_),{maxPages:k}=t.options,A=j?l7:o7;return{pages:A(w.pages,P,k),pageParams:A(w.pageParams,N,k)}};if(a&&i.length){const w=a==="backward",N=w?j7:Zk,j={pages:i,pageParams:o},S=N(n,j);l=await x(j,S,w)}else{const w=e??i.length;do{const N=c===0?o[0]??n.initialPageParam:Zk(n,l);if(c>0&&N==null)break;l=await x(l,N),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>{var p,v;return(v=(p=t.options).persister)==null?void 0:v.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function Zk(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 j7(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 Nt,ti,ri,cc,uc,ni,dc,fc,fE,N7=(fE=class{constructor(e={}){Be(this,Nt);Be(this,ti);Be(this,ri);Be(this,cc);Be(this,uc);Be(this,ni);Be(this,dc);Be(this,fc);Oe(this,Nt,e.queryCache||new x7),Oe(this,ti,e.mutationCache||new w7),Oe(this,ri,e.defaultOptions||{}),Oe(this,cc,new Map),Oe(this,uc,new Map),Oe(this,ni,0)}mount(){Mh(this,ni)._++,Q(this,ni)===1&&(Oe(this,dc,eM.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Nt).onFocus())})),Oe(this,fc,Sp.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Nt).onOnline())})))}unmount(){var e,t;Mh(this,ni)._--,Q(this,ni)===0&&((e=Q(this,dc))==null||e.call(this),Oe(this,dc,void 0),(t=Q(this,fc))==null||t.call(this),Oe(this,fc,void 0))}isFetching(e){return Q(this,Nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,ti).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Nt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Q(this,Nt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(R0(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Q(this,Nt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Q(this,Nt).get(n.queryHash),i=a==null?void 0:a.state.data,o=t7(t,i);if(o!==void 0)return Q(this,Nt).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Sr.batch(()=>Q(this,Nt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Nt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Q(this,Nt);Sr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Q(this,Nt);return Sr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Sr.batch(()=>Q(this,Nt).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Yn).catch(Yn)}invalidateQueries(e,t={}){return Sr.batch(()=>(Q(this,Nt).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=Sr.batch(()=>Q(this,Nt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch(Yn)),a.state.fetchStatus==="paused"?Promise.resolve():i}
436));return Promise.all(n).then(Yn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Q(this,Nt).build(this,t);return r.isStaleByTime(R0(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yn).catch(Yn)}fetchInfiniteQuery(e){return e.behavior=Jk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yn).catch(Yn)}ensureInfiniteQueryData(e){return e.behavior=Jk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Sp.isOnline()?Q(this,ti).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,Nt)}getMutationCache(){return Q(this,ti)}getDefaultOptions(){return Q(this,ri)}setDefaultOptions(e){Oe(this,ri,e)}setQueryDefaults(e,t){Q(this,cc).set(Qd(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,cc).values()],r={};return t.forEach(n=>{Jd(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Q(this,uc).set(Qd(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,uc).values()],r={};return t.forEach(n=>{Jd(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lN(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===cN&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,Nt).clear(),Q(this,ti).clear()}},Nt=new WeakMap,ti=new WeakMap,ri=new WeakMap,cc=new WeakMap,uc=new WeakMap,ni=new WeakMap,dc=new WeakMap,fc=new WeakMap,fE),S7=b.createContext(void 0),_7=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(S7.Provider,{value:e,children:t}));/**
437 * @remix-run/router v1.23.0
438 *
439 * Copyright (c) Remix Software Inc.
440 *
441 * This source code is licensed under the MIT license found in the
442 * LICENSE.md file in the root directory of this source tree.
443 *
444 * @license MIT
445 */function Zd(){return Zd=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},Zd.apply(this,arguments)}var ii;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ii||(ii={}));const e2="popstate";function k7(e){e===void 0&&(e={});function t(n,a){let{pathname:i,search:o,hash:l}=n.location;return L0("",{pathname:i,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:_p(a)}return C7(t,r,null,e)}function kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function aM(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function P7(){return Math.random().toString(36).substr(2,8)}function t2(e,t){return{usr:e.state,key:e.key,idx:t}}function L0(e,t,r,n){return r===void 0&&(r=null),Zd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uu(t):t,{state:r,key:t&&t.key||n||P7()})}function _p(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 uu(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 C7(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,l=ii.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(Zd({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){l=ii.Pop;let v=d(),y=v==null?null:v-u;u=v,c&&c({action:l,location:p.location,delta:y})}function h(v,y){l=ii.Push;let x=L0(p.location,v,y);u=d()+1;let w=t2(x,u),N=p.createHref(x);try{o.pushState(w,"",N)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;a.location.assign(N)}i&&c&&c({action:l,location:p.location,delta:1})}function m(v,y){l=ii.Replace;let x=L0(p.location,v,y);u=d();let w=t2(x,u),N=p.createHref(x);o.replaceState(w,"",N),i&&c&&c({action:l,location:p.location,delta:0})}function g(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof v=="string"?v:_p(v);return x=x.replace(/ $/,"%20"),kt(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let p={get action(){return l},get location(){return e(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(e2,f),c=v,()=>{a.removeEventListener(e2,f),c=null}},createHref(v){return t(a,v)},createURL:g,encodeLocation(v){let y=g(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(v){return o.go(v)}};return p}var r2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(r2||(r2={}));function O7(e,t,r){return r===void 0&&(r="/"),A7(e,t,r,!1)}function A7(e,t,r,n){let a=typeof t=="string"?uu(t):t,i=_c(a.pathname||"/",r);if(i==null)return null;let o=iM(e);E7(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=U7(i);l=B7(o[c],u,n)}return l}function iM(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(kt(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not val
445id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=vi([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(kt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),iM(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:L7(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let c of oM(i.path))a(i,o,c)}),t}function oM(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=oM(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function E7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:F7(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const T7=/^:[\w-]+$/,I7=3,$7=2,M7=1,R7=10,D7=-2,n2=e=>e==="*";function L7(e,t){let r=e.split("/"),n=r.length;return r.some(n2)&&(n+=D7),t&&(n+=$7),r.filter(a=>!n2(a)).reduce((a,i)=>a+(T7.test(i)?I7:i===""?M7:R7),n)}function F7(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function B7(e,t,r){let{routesMeta:n}=e,a={},i="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=kp({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),h=c.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=kp({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;
vendor: 9,495 bytes, lines 445-454
445Object.assign(a,f.params),o.push({params:a,pathname:vi([i,f.pathname]),pathnameBase:q7(vi([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=vi([i,f.pathnameBase]))}return o}function kp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=z7(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:h,isOptional:m}=d;if(h==="*"){let p=l[f]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const g=l[f];return m&&!g?u[h]=void 0:u[h]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function z7(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),aM(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function U7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return aM(!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 _c(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 W7(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?uu(e):e;return{pathname:r?r.startsWith("/")?r:V7(r,t):t,search:G7(n),hash:K7(a)}}function V7(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function $y(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 H7(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function lM(e,t){let r=H7(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function cM(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=uu(e):(a=Zd({},e),kt(!a.pathname||!a.pathname.includes("?"),$y("?","pathname","search",a)),kt(!a.pathname||!a.pathname.includes("#"),$y("#","pathname","hash",a)),kt(!a.search||!a.search.includes("#"),$y("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=W7(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const vi=e=>e.join("/").replace(/\/\/+/g,"/"),q7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Y7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uM=["post","put","patch","delete"];new Set(uM);const X7=["get",...uM];new Set(X7);/**
446 * React Router v6.30.1
447 *
448 * Copyright (c) Remix Software Inc.
449 *
450 * This source code is licensed under the MIT license found in the
451 * LICENSE.md file in the root directory of this source tree.
452 *
453 * @license MIT
454 */function ef(){return ef=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},ef.apply(this,arguments)}const _v=b.createContext(null),dM=b.createContext(null),$i=b.createContext(null),kv=b.createContext(null),Mi=b.createContext({outlet:null,matches:[],isDataRoute:!1}),fM=b.createContext(null);function Q7(e,t){let{relative:r}=t===void 0?{}:t;oh()||kt(!1);let{basename:n,navigator:a}=b.useContext($i),{hash:i,pathname:o,search:l}=Pv(e,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:vi([n,o])),a.createHref({pathname:c,search:l,hash:i})}function oh(){return b.useContext(kv)!=null}function Pa(){return oh()||kt(!1),b.useContext(kv).location}function hM(e){b.useContext($i).static||b.useLayoutEffect(e)}function gt(){let{isDataRoute:e}=b.useContext(Mi);return e?uH():J7()}function J7(){oh()||kt(!1);let e=b.useContext(_v),{basename:t,future:r,navigator:n}=b.useContext($i),{matches:a}=b.useContext(Mi),{pathname:i}=Pa(),o=JSON.stringify(lM(a,r.v7_relativeSplatPath)),l=b.useRef(!1);return hM(()=>{l.current=!0}),b.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let f=cM(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vi([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,i,e])}function uN(){let{matches:e}=b.useContext(Mi),t=e[e.length-1];return t?t.params:{}}function Pv(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=b.useContext($i),{matches:a}=b.useContext(Mi),{pathname:i}=Pa(),o=JSON.stringify(lM(a,n.v7_relativeSplatPath));return b.useMemo(()=>cM(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function Z7(e,t){return eH(e,t)}function eH(e,t,r,n){oh()||kt(!1);let{navigator:a}=b.useContext($i),{matches:i}=b.useContext(Mi),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=Pa(),d;if(t){var f;let v=typeof t=="string"?uu(t):t;c==="/"||(f=v.pathname)!=null&&f.startsWith(c)||kt(!1),d=v}else d=u;let h=d.pathname||"/",m=h;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=O7(e,{pathname:m}),p=aH(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:vi([c,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:vi([c,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r,n);return t&&p?b.createElement(kv.Provider,{value:{location:ef({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ii.Pop}},p):p}function tH(){let e=cH(),t=Y7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:a},r):null,null)}const rH=b.createElement(tH,null);class nH extends b.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?b.createElement(Mi.Provider,{value:this.props.routeContext},b.createElement(fM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sH(e){let{routeContext:t,match:r,children:n}=e,a=b.useContext(_v);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Mi.Provider,{value:t},n)}function aH(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||kt(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:m}=r,g=f.route.loader&&h[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let m,g=!1,p=null,v=null;r&&(m=l&&f.route.id?l[f.route.id]:void 0,p=f.route.errorElement||rH,c&&(u<0&&h===0?(g=!0,v=null):u===h&&(g=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,h+1)),x=()=>{let w;return m?w=p:g?w=v:f.route.Component?w=b.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,b.createElement(sH,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?b.createElement(nH,{location:r.location,revalidation:r.revalidation,component:p,error:m,children:x(),routeC
454ontext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var mM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mM||{}),Pp=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}(Pp||{});function iH(e){let t=b.useContext(_v);return t||kt(!1),t}function oH(e){let t=b.useContext(dM);return t||kt(!1),t}function lH(e){let t=b.useContext(Mi);return t||kt(!1),t}function pM(e){let t=lH(),r=t.matches[t.matches.length-1];return r.route.id||kt(!1),r.route.id}function cH(){var e;let t=b.useContext(fM),r=oH(Pp.UseRouteError),n=pM(Pp.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function uH(){let{router:e}=iH(mM.UseNavigateStable),t=pM(Pp.UseNavigateStable),r=b.useRef(!1);return hM(()=>{r.current=!0}),b.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ef({fromRouteId:t},i)))},[e,t])}function dH(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ze(e){kt(!1)}function fH(e){let{basename:t="/",children:r=null,location:n,navigationType:a=ii.Pop,navigator:i,static:o=!1,future:l}=e;oh()&&kt(!1);let c=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:c,navigator:i,static:o,future:ef({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof n=="string"&&(n=uu(n));let{pathname:d="/",search:f="",hash:h="",state:m=null,key:g="default"}=n,p=b.useMemo(()=>{let v=_c(d,c);return v==null?null:{location:{pathname:v,search:f,hash:h,state:m,key:g},navigationType:a}},[c,d,f,h,m,g,a]);return p==null?null:b.createElement($i.Provider,{value:u},b.createElement(kv.Provider,{children:r,value:p}))}function hH(e){let{children:t,location:r}=e;return Z7(F0(t),r)}new Promise(()=>{});function F0(e,t){t===void 0&&(t=[]);let r=[];return b.Children.forEach(e,(n,a)=>{if(!b.isValidElement(n))return;let i=[...t,a];if(n.type===b.Fragment){r.push.apply(r,F0(n.props.children,i));return}n.type!==Ze&&kt(!1),!n.props.index||!n.props.children||kt(!1);let o={id:n.props.id||i.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=F0(n.props.children,i)),r.push(o)}),r}/**
455 * React Router DOM v6.30.1
456 *
457 * Copyright (c) Remix Software Inc.
458 *
459 * This source code is licensed under the MIT license found in the
460 * LICENSE.md file in the root directory of this source tree.
461 *
462 * @license MIT
463 */function Cp(){return Cp=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},Cp.apply(this,arguments)}function gM(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function mH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pH(e,t){return e.button===0&&(!t||t==="_self")&&!mH(e)}function B0(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function gH(e,t){let r=B0(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(i=>{r.append(a,i)})}),r}const vH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],xH=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],yH="6";try{window.__reactRouterVersion=yH}catch{}const bH=b.createContext({isTransitioning:!1}),wH="startTransition",s2=Kj[wH];function jH(e){let{basename:t,children:r,future:n,window:a}=e,i=b.useRef();i.current==null&&(i.current=k7({window:a,v5Compat:!0}));let o=i.current,[l,c]=b.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=b.useCallback(f=>{u&&s2?s2(()=>c(f)):c(f)},[c,u]);return b.useLayoutEffect(()=>o.listen(d),[o,d]),b.useEffect(()=>dH(n),[n]),b.createElement(fH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const NH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zl=b.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,h=gM(t,vH),{basename:m}=b.useContext($i),g,p=!1;if(typeof u=="string"&&SH.test(u)&&(g=u,NH))try{let w=new URL(window.location.href),N=u.startsWith("//")?new URL(w.protocol+u):new URL(u),j=_c(N.pathname,m);N.origin===w.origin&&j!=null?u=j+N.search+N.hash:p=!0}catch{}let v=Q7(u,{relative:a}),y=kH(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:f});function x(w){n&&n(w),w.defaultPrevented||y(w)}return b.createElement("a",Cp({},h,{href:g||v,onClick:p||i?n:x,ref:r,target:c}))}),My=b.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:o=!1,style:l,to:c,viewTransition:u,children:d}=t,f=gM(t,xH),h=Pv(c,{relative:f.relative}),m=Pa(),g=b.useContext(dM),{navigator:p,basename:v}=b.useContext($i),y=g!=null&&PH(h)&&u===!0,x=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,w=m.pathname,N=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;a||(w=w.toLowerCase(),N=N?N.toLowerCase():null,x=x.toLowerCase()),N&&v&&(N=_c(N,v)||N);const j=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let S=w===x||!o&&w.startsWith(x)&&w.charAt(j)==="/",_=N!=null&&(N===x||!o&&N.startsWith(x)&&N.charAt(x.length)==="/"),P={isActive:S,isPending:_,isTransitioning:y},k=S?n:void 0,A;typeof i=="function"?A=i(P):A=[i,S?"active":null,_?"pending":null,y?"transitioning":null].filter(
463Boolean).join(" ");let C=typeof l=="function"?l(P):l;return b.createElement(Zl,Cp({},f,{"aria-current":k,className:A,ref:r,style:C,to:c,viewTransition:u}),typeof d=="function"?d(P):d)});var z0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(z0||(z0={}));var a2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(a2||(a2={}));function _H(e){let t=b.useContext(_v);return t||kt(!1),t}function kH(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=gt(),u=Pa(),d=Pv(e,{relative:o});return b.useCallback(f=>{if(pH(f,r)){f.preventDefault();let h=n!==void 0?n:_p(u)===_p(d);c(e,{replace:h,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,n,a,r,e,i,o,l])}function lh(e){let t=b.useRef(B0(e)),r=b.useRef(!1),n=Pa(),a=b.useMemo(()=>gH(n.search,r.current?null:t.current),[n.search]),i=gt(),o=b.useCallback((l,c)=>{const u=B0(typeof l=="function"?l(a):l);r.current=!0,i("?"+u,c)},[i,a]);return[a,o]}function PH(e,t){t===void 0&&(t={});let r=b.useContext(bH);r==null&&kt(!1);let{basename:n}=_H(z0.useViewTransitionState),a=Pv(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=_c(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=_c(r.nextLocation.pathname,n)||r.nextLocation.pathname;return kp(a.pathname,o)!=null||kp(a.pathname,i)!=null}const dN=Jo("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-primary text-primary-foreground hover:shadow-glow hover:scale-105 transition-all duration-300",gradient:"bg-gradient-primary text-primary-foreground hover:bg-gradient-hero hover:shadow-elegant transition-smooth"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),W=b.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...a},i)=>{const o=n?nu:"button";return s.jsx(o,{className:J(dN({variant:t,size:r,className:e})),ref:i,...a})});W.displayName="Button";var CH=b.createContext(void 0);function du(e){const t=b.useContext(CH);return e||t||"ltr"}var Ry=0;function Cv(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??i2()),document.body.insertAdjacentElement("beforeend",e[1]??i2()),Ry++,()=>{Ry===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ry--}},[])}function i2(){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 Dy="focusScope.autoFocusOnMount",Ly="focusScope.autoFocusOnUnmount",o2={bubbles:!1,cancelable:!0},OH="FocusScope",ch=b.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,c]=b.useState(null),u=Er(a),d=Er(i),f=b.useRef(null),h=Te(t,p=>c(p)),m=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(n){let p=function(w){if(m.paused||!l)return;const N=w.target;l.contains(N)?f.current=N:Va(f.current,{select:!0})},v=function(w){if(m.paused||!l)return;const N=w.relatedTarget;N!==null&&(l.contains(N)||Va(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const j of w)j.removedNodes.length>0&&Va(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const x=new MutationObserver(y);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[n,l,m.paused]),b.useEffect(()=>{if(l){c2.add(m);const p=document.activeElement;if(!l.contains(p)){const y=new CustomEvent(Dy,o2);
vendor: 5,938 bytes, line 463
463l.addEventListener(Dy,u),l.dispatchEvent(y),y.defaultPrevented||(AH(MH(vM(l)),{select:!0}),document.activeElement===p&&Va(l))}return()=>{l.removeEventListener(Dy,u),setTimeout(()=>{const y=new CustomEvent(Ly,o2);l.addEventListener(Ly,d),l.dispatchEvent(y),y.defaultPrevented||Va(p??document.body,{select:!0}),l.removeEventListener(Ly,d),c2.remove(m)},0)}}},[l,u,d,m]);const g=b.useCallback(p=>{if(!r&&!n||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const x=p.currentTarget,[w,N]=EH(x);w&&N?!p.shiftKey&&y===N?(p.preventDefault(),r&&Va(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),r&&Va(N,{select:!0})):y===x&&p.preventDefault()}},[r,n,m.paused]);return s.jsx(xe.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});ch.displayName=OH;function AH(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Va(n,{select:t}),document.activeElement!==r)return}function EH(e){const t=vM(e),r=l2(t,e),n=l2(t.reverse(),e);return[r,n]}function vM(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function l2(e,t){for(const r of e)if(!TH(r,{upTo:t}))return r}function TH(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 IH(e){return e instanceof HTMLInputElement&&"select"in e}function Va(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&IH(e)&&t&&e.select()}}var c2=$H();function $H(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=u2(e,t),e.unshift(t)},remove(t){var r;e=u2(e,t),(r=e[0])==null||r.resume()}}}function u2(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function MH(e){return e.filter(t=>t.tagName!=="A")}var Fy="rovingFocusGroup.onEntryFocus",RH={bubbles:!1,cancelable:!0},uh="RovingFocusGroup",[U0,xM,DH]=Zf(uh),[LH,fu]=qt(uh,[DH]),[FH,BH]=LH(uh),yM=b.forwardRef((e,t)=>s.jsx(U0.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(U0.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(zH,{...e,ref:t})})}));yM.displayName=uh;var zH=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=b.useRef(null),m=Te(t,h),g=du(i),[p,v]=Gr({prop:o,defaultProp:l??null,onChange:c,caller:uh}),[y,x]=b.useState(!1),w=Er(u),N=xM(r),j=b.useRef(!1),[S,_]=b.useState(0);return b.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Fy,w),()=>P.removeEventListener(Fy,w)},[w]),s.jsx(FH,{scope:r,orientation:n,dir:g,loop:a,currentTabStopId:p,onItemFocus:b.useCallback(P=>v(P),[v]),onItemShiftTab:b.useCallback(()=>x(!0),[]),onFocusableItemAdd:b.useCallback(()=>_(P=>P+1),[]),onFocusableItemRemove:b.useCallback(()=>_(P=>P-1),[]),children:s.jsx(xe.div,{tabIndex:y||S===0?-1:0,"data-orientation":n,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:se(e.onMouseDown,()=>{j.current=!0}),onFocus:se(e.onFocus,P=>{const k=!j.current;if(P.target===P.currentTarget&&k&&!y){const A=new CustomEvent(Fy,RH);if(P.currentTarget.dispatchEvent(A),!A.defaultPrevented){const C=N().filter($=>$.focusable),T=C.find($=>$.active),E=C.find($=>$.id===p),D=[T,E,...C].filter(Boolean).map($=>$.ref.current);jM(D,d)}}j.current=!1}),onBlur:se(e.onBlur,()=>x(!1))})})}),bM="RovingFocusGroupItem",wM=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:i,children:o,...l}=e,c=qr(),u=i||c,d=BH(bM,r),f=d.currentTabStopId===u,h=xM(r),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:p}=d;return b.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),s.jsx(U0.ItemSlot,{scope:r,id:u,focusable:n,active:a,children:s.jsx(xe.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:se(e.onMouseDown,v=>{n?d.onItemFocus(u):v.preventDefault()}),onFocus:se(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:se(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){d.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=VH(v,d.orientation,d.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=h().filter(N=>N.focusable).map(N=>N.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const N=w.indexOf(v.currentTarget);w=d.loop?HH(w,N+1):w.slice(N+1)}setTimeout(()=>jM(w))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:p!=null}):o})})});wM.displayName=bM;var UH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function WH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function VH(e,t,r){const n=WH(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return UH[n]}function jM(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function HH(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var fN=yM,hN=wM,qH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dl=new WeakMap,sm=new WeakMap,am={},By=0,NM=function(e){return e&&(e.host||NM(e.parentNode))},GH=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=NM(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})},KH=function(e,t,r,n){var a=GH(t,Array.isArray(e)?e:[e]);am[r]||(am[r]=new WeakMap);
vendor: 13,409 bytes, lines 463-503
463var i=am[r],o=[],l=new Set,c=new Set(a),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};a.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var m=h.getAttribute(n),g=m!==null&&m!=="false",p=(dl.get(h)||0)+1,v=(i.get(h)||0)+1;dl.set(h,p),i.set(h,v),o.push(h),p===1&&g&&sm.set(h,!0),v===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),l.clear(),By++,function(){o.forEach(function(f){var h=dl.get(f)-1,m=i.get(f)-1;dl.set(f,h),i.set(f,m),h||(sm.has(f)||f.removeAttribute(n),sm.delete(f)),m||f.removeAttribute(r)}),By--,By||(dl=new WeakMap,dl=new WeakMap,sm=new WeakMap,am={})}},Ov=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=qH(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),KH(n,a,r,"aria-hidden")):function(){return null}},Ts=function(){return Ts=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ts.apply(this,arguments)};function SM(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function YH(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Vm="right-scroll-bar-position",Hm="width-before-scroll-bar",XH="with-scroll-bars-hidden",QH="--removed-body-scroll-bar-size";function zy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JH(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var ZH=typeof window<"u"?b.useLayoutEffect:b.useEffect,d2=new WeakMap;function eq(e,t){var r=JH(null,function(n){return e.forEach(function(a){return zy(a,n)})});return ZH(function(){var n=d2.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(l){i.has(l)||zy(l,null)}),i.forEach(function(l){a.has(l)||zy(l,o)})}d2.set(r,e)},[e]),r}function tq(e){return e}function rq(e,t){t===void 0&&(t=tq);var r=[],n=!1,a={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(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return a}function nq(e){e===void 0&&(e={});var t=rq(null);return t.options=Ts({async:!0,ssr:!1},e),t}var _M=function(e){var t=e.sideCar,r=SM(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 b.createElement(n,Ts({},r))};_M.isSideCarExport=!0;function sq(e,t){return e.useMedium(t),_M}var kM=nq(),Uy=function(){},Av=b.forwardRef(function(e,t){var r=b.useRef(null),n=b.useState({onScrollCapture:Uy,onWheelCapture:Uy,onTouchMoveCapture:Uy}),a=n[0],i=n[1],o=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,g=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,N=SM(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=h,S=eq([r,t]),_=Ts(Ts({},N),a);return b.createElement(b.Fragment,null,d&&b.createElement(j,{sideCar:kM,removeScrollBar:u,shards:f,noRelative:m,noIsolation:g,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:w}),o?b.cloneElement(b.Children.only(l),Ts(Ts({},_),{ref:S})):b.createElement(x,Ts({},_,{className:c,ref:S}),l))});Av.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Av.classNames={fullWidth:Hm,zeroRight:Vm};var aq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=aq();return t&&e.setAttribute("nonce",t),e}function oq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cq=function(){var e=0,t=null;return{add:function(r){e==0&&(t=iq())&&(oq(t,r),lq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},uq=function(){var e=cq();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},PM=function(){var e=uq(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},dq={left:0,top:0,right:0,gap:0},Wy=function(e){return parseInt(e||"",10)||0},fq=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Wy(r),Wy(n),Wy(a)]},hq=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dq;var t=fq(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])}},mq=PM(),ec="data-scroll-locked",pq=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),`
464  .`.concat(XH,` {
465   overflow: hidden `).concat(n,`;
466   padding-right: `).concat(l,"px ").concat(n,`;
467  }
468  body[`).concat(ec,`] {
469    overflow: hidden `).concat(n,`;
470    overscroll-behavior: contain;
471    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
472    padding-left: `.concat(a,`px;
473    padding-top: `).concat(i,`px;
474    padding-right: `).concat(o,`px;
475    margin-left:0;
476    margin-top:0;
477    margin-right: `).concat(l,"px ").concat(n,`;
478    `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
479  }
480  
481  .`).concat(Vm,` {
482    right: `).concat(l,"px ").concat(n,`;
483  }
484  
485  .`).concat(Hm,` {
486    margin-right: `).concat(l,"px ").concat(n,`;
487  }
488  
489  .`).concat(Vm," .").concat(Vm,` {
490    right: 0 `).concat(n,`;
491  }
492  
493  .`).concat(Hm," .").concat(Hm,` {
494    margin-right: 0 `).concat(n,`;
495  }
496  
497  body[`).concat(ec,`] {
498    `).concat(QH,": ").concat(l,`px;
499  }
500`)},f2=function(){var e=parseInt(document.body.getAttribute(ec)||"0",10);return isFinite(e)?e:0},gq=function(){b.useEffect(function(){return document.body.setAttribute(ec,(f2()+1).toString()),function(){var e=f2()-1;e<=0?document.body.removeAttribute(ec):document.body.setAttribute(ec,e.toString())}},[])},vq=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;gq();var i=b.useMemo(function(){return hq(a)},[a]);return b.createElement(mq,{styles:pq(i,!t,a,r?"":"!important")})},W0=!1;if(typeof window<"u")try{var im=Object.defineProperty({},"passive",{get:function(){return W0=!0,!0}});window.addEventListener("test",im,im),window.removeEventListener("test",im,im)}catch{W0=!1}var fl=W0?{passive:!1}:!1,xq=function(e){return e.tagName==="TEXTAREA"},CM=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!xq(e)&&r[t]==="visible")},yq=function(e){return CM(e,"overflowY")},bq=function(e){return CM(e,"overflowX")},h2=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=OM(e,n);if(a){var i=AM(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wq=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},jq=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},OM=function(e,t){return e==="v"?yq(t):bq(t)},AM=function(e,t){return e==="v"?wq(t):jq(t)},Nq=function(e,t){return e==="h"&&t==="rtl"?-1:1},Sq=function(e,t,r,n,a){var i=Nq(e,window.getComputedStyle(t).direction),o=i*n,l=r.target,c=t.contains(l),u=!1,d=o>0,f=0,h=0;do{if(!l)break;var m=AM(e,l),g=m[0],p=m[1],v=m[2],y=p-v-i*g;(g||y)&&OM(e,l)&&(f+=y,h+=g);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&(Math.abs(f)<1||!a)||!d&&(Math.abs(h)<1||!a))&&(u=!0),u},om=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},m2=function(e){return[e.deltaX,e.deltaY]},p2=function(e){return e&&"current"in e?e.current:e},_q=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kq=function(e){return`
501  .block-interactivity-`.concat(e,` {pointer-events: none;}
502  .allow-interactivity-`).concat(e,` {pointer-events: all;}
503`)},Pq=0,hl=[];function Cq(e){var t=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),a=b.useState(Pq++)[0],i=b.useState(PM)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=YH([e.lockRef.current],(e.shards||[]).map(p2),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=om(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-y[0],N="deltaY"in p?p.deltaY:x[1]-y[1],j,S=p.target,_=Math.abs(w)>Math.abs(N)?"h":"v";if("touches"in p&&_==="h"&&S.type==="range")return!1;var P=h2(_,S);if(!P)return!0;if(P?j=_:(j=_==="v"?"h":"v",P=h2(_,S)),!P)return!1;if(!n.current&&"changedTouches"in p&&(w||N)&&(n.current=j),!j)return!0;var k=n.current||j;return Sq(k,v,p,k==="h"?w:N,!0)},[]),c=b.useCallback(function(p){var v=p;if(!(!hl.length||hl[hl.length-1]!==i)){var y="deltaY"in v?m2(v):om(v),x=t.current.filter(function(j){return j.name===v.type&&(j.target===v.target||v.target===j.shadowParent)&&_q(j.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var w=(o.current.shards||[]).map(p2).filter(Boolean).filter(function(j){return j.contains(v.target)}),N=w.length>0?l(v,w[0]):!o.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),u=b.useCallback(function(p,v,y,x){var w={name:p,delta:v,target:y,should:x,shadowParent:Oq(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(N){return N!==w})},1)},[]),d=b.useCallback(function(p){r.current=om(p),n.current=void 0},[]),f=b.useCallback(function(p){u(p.type,m2(p),p.target,l(p,e.lockRef.current))},[]),h=b.useCallback(function(p){u(p.type,om(p),p.target,l(p,e.lockRef.current))},[]);b.useEffect(function(){return hl.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,fl),document.addEventListener("touchmove",c,fl),document.addEventListener("touchstart",d,fl),function(){hl=hl.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,fl),document.removeEventListener("touchmove",c,fl),document.removeEventListener("touchstart",d,fl)}},[]);var m=e.removeScrollBar,g=e.inert;return b.createElement(b.Fragment,null,g?b.createElement(i,{styles:kq(a)}):null,m?b.createElement(vq,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Oq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Aq=sq(kM,Cq);var dh=b.forwardRef(function(e,t){return b.createElement(Av,Ts({},e,{ref:t,sideCar:Aq}))});dh.classNames=Av.classNames;var V0=["Enter"," "],Eq=["ArrowDown","PageUp","Home"],EM=["ArrowUp","PageDown","End"],Tq=[...Eq,...EM],Iq={ltr:[...V0,"ArrowRight"],rtl:[...V0,"ArrowLeft"]},$q={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fh="Menu",[tf,Mq,Rq]=Zf(fh),[Zo,TM]=qt(fh,[Rq,Ii,fu]),Ev=Ii(),IM=fu(),[Dq,el]=Zo(fh),[Lq,hh]=Zo(fh),$M=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:i,modal:o=!0}=e,l=Ev(t),[c,u]=b.useState(null),d=b.useRef(!1),f=Er(i),h=du(a);return b.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),s.jsx(pv,{...l,children:s.jsx(Dq,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:s.jsx(Lq,{scope:t,onClose:b.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:o,children:n})})})};$M.displayName=fh;var Fq="MenuAnchor",mN=b.forwardRef((e,t)=>
vendor: 15,368 bytes, line 503
503{const{__scopeMenu:r,...n}=e,a=Ev(r);return s.jsx(ih,{...a,...n,ref:t})});mN.displayName=Fq;var pN="MenuPortal",[Bq,MM]=Zo(pN,{forceMount:void 0}),RM=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,i=el(pN,t);return s.jsx(Bq,{scope:t,forceMount:r,children:s.jsx(yr,{present:r||i.open,children:s.jsx(su,{asChild:!0,container:a,children:n})})})};RM.displayName=pN;var Cn="MenuContent",[zq,gN]=Zo(Cn),DM=b.forwardRef((e,t)=>{const r=MM(Cn,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=el(Cn,e.__scopeMenu),o=hh(Cn,e.__scopeMenu);return s.jsx(tf.Provider,{scope:e.__scopeMenu,children:s.jsx(yr,{present:n||i.open,children:s.jsx(tf.Slot,{scope:e.__scopeMenu,children:o.modal?s.jsx(Uq,{...a,ref:t}):s.jsx(Wq,{...a,ref:t})})})})}),Uq=b.forwardRef((e,t)=>{const r=el(Cn,e.__scopeMenu),n=b.useRef(null),a=Te(t,n);return b.useEffect(()=>{const i=n.current;if(i)return Ov(i)},[]),s.jsx(vN,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:se(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Wq=b.forwardRef((e,t)=>{const r=el(Cn,e.__scopeMenu);return s.jsx(vN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Vq=Ni("MenuContent.ScrollLock"),vN=b.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...p}=e,v=el(Cn,r),y=hh(Cn,r),x=Ev(r),w=IM(r),N=Mq(r),[j,S]=b.useState(null),_=b.useRef(null),P=Te(t,_,v.onContentChange),k=b.useRef(0),A=b.useRef(""),C=b.useRef(0),T=b.useRef(null),E=b.useRef("right"),O=b.useRef(0),D=g?dh:b.Fragment,$=g?{as:Vq,allowPinchZoom:!0}:void 0,L=R=>{var G,ie;const B=A.current+R,H=N().filter(X=>!X.disabled),U=document.activeElement,q=(G=H.find(X=>X.ref.current===U))==null?void 0:G.textValue,ee=H.map(X=>X.textValue),de=rG(ee,B,q),ce=(ie=H.find(X=>X.textValue===de))==null?void 0:ie.ref.current;(function X(te){A.current=te,window.clearTimeout(k.current),te!==""&&(k.current=window.setTimeout(()=>X(""),1e3))})(B),ce&&setTimeout(()=>ce.focus())};b.useEffect(()=>()=>window.clearTimeout(k.current),[]),Cv();const M=b.useCallback(R=>{var H,U;return E.current===((H=T.current)==null?void 0:H.side)&&sG(R,(U=T.current)==null?void 0:U.area)},[]);return s.jsx(zq,{scope:r,searchRef:A,onItemEnter:b.useCallback(R=>{M(R)&&R.preventDefault()},[M]),onItemLeave:b.useCallback(R=>{var B;M(R)||((B=_.current)==null||B.focus(),S(null))},[M]),onTriggerLeave:b.useCallback(R=>{M(R)&&R.preventDefault()},[M]),pointerGraceTimerRef:C,onPointerGraceIntentChange:b.useCallback(R=>{T.current=R},[]),children:s.jsx(D,{...$,children:s.jsx(ch,{asChild:!0,trapped:a,onMountAutoFocus:se(i,R=>{var B;R.preventDefault(),(B=_.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:s.jsx(fN,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:se(c,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(gv,{role:"menu","aria-orientation":"vertical","data-state":ZM(v.open),"data-radix-menu-content":"",dir:y.dir,...x,...p,ref:P,style:{outline:"none",...p.style},onKeyDown:se(p.onKeyDown,R=>{const H=R.target.closest("[data-radix-menu-content]")===R.currentTarget,U=R.ctrlKey||R.altKey||R.metaKey,q=R.key.length===1;H&&(R.key==="Tab"&&R.preventDefault(),!U&&q&&L(R.key));const ee=_.current;if(R.target!==ee||!Tq.includes(R.key))return;R.preventDefault();const ce=N().filter(G=>!G.disabled).map(G=>G.ref.current);EM.includes(R.key)&&ce.reverse(),eG(ce)}),onBlur:se(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(k.current),A.current="")}),onPointerMove:se(e.onPointerMove,rf(R=>{const B=R.target,H=O.current!==R.clientX;if(R.currentTarget.contains(B)&&H){const U=R.clientX>O.current?"right":"left";E.current=U,O.current=R.clientX}}))})})})})})})});DM.displayName=Cn;var Hq="MenuGroup",xN=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(xe.div,{role:"group",...n,ref:t})});xN.displayName=Hq;var qq="MenuLabel",LM=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(xe.div,{...n,ref:t})});LM.displayName=qq;var Op="MenuItem",g2="menu.itemSelect",Tv=b.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,i=b.useRef(null),o=hh(Op,e.__scopeMenu),l=gN(Op,e.__scopeMenu),c=Te(t,i),u=b.useRef(!1),d=()=>{const f=i.current;if(!r&&f){const h=new CustomEvent(g2,{bubbles:!0,cancelable:!0});f.addEventListener(g2,m=>n==null?void 0:n(m),{once:!0}),F1(f,h),h.defaultPrevented?u.current=!1:o.onClose()}};return s.jsx(FM,{...a,ref:c,disabled:r,onClick:se(e.onClick,d),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),u.current=!0},onPointerUp:se(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:se(e.onKeyDown,f=>{const h=l.searchRef.current!=="";r||h&&f.key===" "||V0.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Tv.displayName=Op;var FM=b.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...i}=e,o=gN(Op,r),l=IM(r),c=b.useRef(null),u=Te(t,c),[d,f]=b.useState(!1),[h,m]=b.useState("");return b.useEffect(()=>{const g=c.current;g&&m((g.textContent??"").trim())},[i.children]),s.jsx(tf.ItemSlot,{scope:r,disabled:n,textValue:a??h,children:s.jsx(hN,{asChild:!0,...l,focusable:!n,children:s.jsx(xe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:u,onPointerMove:se(e.onPointerMove,rf(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:se(e.onPointerLeave,rf(g=>o.onItemLeave(g))),onFocus:se(e.onFocus,()=>f(!0)),onBlur:se(e.onBlur,()=>f(!1))})})})}),Gq="MenuCheckboxItem",BM=b.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return s.jsx(HM,{scope:e.__scopeMenu,checked:r,children:s.jsx(Tv,{role:"menuitemcheckbox","aria-checked":Ap(r)?"mixed":r,...a,ref:t,"data-state":bN(r),onSelect:se(a.onSelect,()=>n==null?void 0:n(Ap(r)?!0:!r),{checkForDefaultPrevented:!1})})})});BM.displayName=Gq;var zM="MenuRadioGroup",[Kq,Yq]=Zo(zM,{value:void 0,onValueChange:()=>{}}),UM=b.forwardRef((e,t)=>{const{value:r,onValueChange:n,...a}=e,i=Er(n);return s.jsx(Kq,{scope:e.__scopeMenu,value:r,onValueChange:i,children:s.jsx(xN,{...a,ref:t})})});UM.displayName=zM;var WM="MenuRadioItem",VM=b.forwardRef((e,t)=>{const{value:r,...n}=e,a=Yq(WM,e.__scopeMenu),i=r===a.value;return s.jsx(HM,{scope:e.__scopeMenu,checked:i,children:s.jsx(Tv,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":bN(i),onSelect:se(n.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,r)},{checkForDefaultPrevented:!1})})})});VM.displayName=WM;var yN="MenuItemIndicator",[HM,Xq]=Zo(yN,{checked:!1}),qM=b.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,i=Xq(yN,r);return s.jsx(yr,{present:n||Ap(i.checked)||i.checked===!0,children:s.jsx(xe.span,{...a,ref:t,"data-state":bN(i.checked)})})});qM.displayName=yN;var Qq="MenuSeparator",GM=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(xe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});GM.displayName=Qq;var Jq="MenuArrow",KM=b.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=Ev(r);return s.jsx(vv,{...a,...n,ref:t})});KM.displayName=Jq;var Zq="MenuSub",[OCe,YM]=Zo(Zq),nd="MenuSubTrigger",XM=b.forwardRef((e,t)=>{const r=el(nd,e.__scopeMenu),n=hh(nd,e.__scopeMenu),a=YM(nd,e.__scopeMenu),i=gN(nd,e.__scopeMenu),o=b.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},d=b.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return b.useEffect(()=>d,[d]),b.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),s.jsx(mN,{asChild:!0,...u,children:s.jsx(FM,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":ZM(r.open),...e,ref:lv(t,a.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:se(e.onPointerMove,rf(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:se(e.onPointerLeave,rf(f=>{var m,g;d();const h=(m=r.content)==null?void 0:m.getBoundingClientRect();if(h){const p=(g=r.content)==null?void 0:g.dataset.side,v=p==="right",y=v?-5:5,x=h[v?"left":"right"],w=h[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x,y:h.top},{x:w,y:h.top},{x:w,y:h.bottom},{x,y:h.bottom}],side:p}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:se(e.onKeyDown,f=>{var m;const h=i.searchRef.current!=="";e.disabled||h&&f.key===" "||Iq[n.dir].includes(f.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),f.preventDefault())})})})});XM.displayName=nd;var QM="MenuSubContent",JM=b.forwardRef((e,t)=>{const r=MM(Cn,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,i=el(Cn,e.__scopeMenu),o=hh(Cn,e.__scopeMenu),l=YM(QM,e.__scopeMenu),c=b.useRef(null),u=Te(t,c);return s.jsx(tf.Provider,{scope:e.__scopeMenu,children:s.jsx(yr,{present:n||i.open,children:s.jsx(tf.Slot,{scope:e.__scopeMenu,children:s.jsx(vN,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:se(e.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:se(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:se(e.onKeyDown,d=>{var m;const f=d.currentTarget.contains(d.target),h=$q[o.dir].includes(d.key);f&&h&&(i.onOpenChange(!1),(m=l.trigger)==null||m.focus(),d.preventDefault())})})})})})});JM.displayName=QM;function ZM(e){return e?"open":"closed"}function Ap(e){return e==="indeterminate"}function bN(e){return Ap(e)?"indeterminate":e?"checked":"unchecked"}function eG(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function tG(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function rG(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=tG(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function nG(e,t){const{x:r,y:n}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],u=l.x,d=l.y,f=c.x,h=c.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(a=!a)}return a}function sG(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return nG(r,t)}function rf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var aG=$M,iG=mN,oG=RM,lG=DM,cG=xN,uG=LM,dG=Tv,fG=BM,hG=UM,mG=VM,pG=qM,gG=GM,vG=KM,xG=XM,yG=JM,Iv="DropdownMenu",[bG,ACe]=qt(Iv,[TM]),$r=TM(),[wG,eR]=bG(Iv),tR=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=$r(t),u=b.useRef(null),[d,f]=Gr({prop:a,defaultProp:i??!1,onChange:o,caller:Iv});return s.jsx(wG,{scope:t,triggerId:qr(),triggerRef:u,contentId:qr(),open:d,onOpenChange:f,onOpenToggle:b.useCallback(()=>f(h=>!h),[f]),modal:l,children:s.jsx(aG,{...c,open:d,onOpenChange:f,dir:n,modal:l,children:r})})};tR.displayName=Iv;var rR="DropdownMenuTrigger",nR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,i=eR(rR,r),o=$r(r);return s.jsx(iG,{asChild:!0,...o,children:s.jsx(xe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:lv(t,i.triggerRef),onPointerDown:se(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:se(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});nR.displayName=rR;var jG="DropdownMenuPortal",sR=e=>{const{__scopeDropdownMenu:t,...r}=e,n=$r(t);return s.jsx(oG,{...n,...r})};sR.displayName=jG;var aR="DropdownMenuContent",iR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=eR(aR,r),i=$r(r),o=b.useRef(!1);return s.jsx(lG,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...n,ref:t,onCloseAutoFocus:se(e.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:se(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!a.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iR.displayName=aR;var NG="DropdownMenuGroup",SG=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(cG,{...a,...n,ref:t})});SG.displayName=NG;var _G="DropdownMenuLabel",oR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(uG,{...a,...n,ref:t})});oR.displayName=_G;var kG="DropdownMenuItem",lR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(dG,{...a,...n,ref:t})});lR.displayName=kG;var PG="DropdownMenuCheckboxItem",cR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(fG,{...a,...n,ref:t})});cR.displayName=PG;var CG="DropdownMenuRadioGroup",OG=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(hG,{...a,...n,ref:t})});OG.displayName=CG;var AG="DropdownMenuRadioItem",uR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(mG,{...a,...n,ref:t})});uR.displayName=AG;var EG="DropdownMenuItemIndicator",dR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(pG,{...a,...n,ref:t})});dR.displayName=EG;var TG="DropdownMenuSeparator",fR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(gG,{...a,...n,ref:t})});fR.displayName=TG;var IG="DropdownMenuArrow",$G=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(vG,{...a,...n,ref:t})});$G.displayName=IG;var MG="DropdownMenuSubTrigger",hR=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(xG,{...a,...n,ref:t})});hR.displayName=MG;var RG="DropdownMenuSubContent",mR=b.forwardRef((e,t)=>
503{const{__scopeDropdownMenu:r,...n}=e,a=$r(r);return s.jsx(yG,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mR.displayName=RG;var DG=tR,LG=nR,FG=sR,pR=iR,gR=oR,vR=lR,xR=cR,yR=uR,bR=dR,wR=fR,jR=hR,NR=mR;const Ep=DG,Tp=LG,BG=b.forwardRef(({className:e,inset:t,children:r,...n},a)=>s.jsxs(jR,{ref:a,className:J("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,s.jsx(sa,{className:"ml-auto h-4 w-4"})]}));BG.displayName=jR.displayName;const zG=b.forwardRef(({className:e,...t},r)=>s.jsx(NR,{ref:r,className:J("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));zG.displayName=NR.displayName;const nf=b.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(FG,{children:s.jsx(pR,{ref:n,sideOffset:t,className:J("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...r})}));nf.displayName=pR.displayName;const oi=b.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(vR,{ref:n,className:J("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));oi.displayName=vR.displayName;const UG=b.forwardRef(({className:e,children:t,checked:r,...n},a)=>s.jsxs(xR,{ref:a,className:J("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(bR,{children:s.jsx(It,{className:"h-4 w-4"})})}),t]}));UG.displayName=xR.displayName;const WG=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(yR,{ref:n,className:J("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(bR,{children:s.jsx(t$,{className:"h-2 w-2 fill-current"})})}),t]}));WG.displayName=yR.displayName;const SR=b.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(gR,{ref:n,className:J("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));SR.displayName=gR.displayName;const H0=b.forwardRef(({className:e,...t},r)=>s.jsx(wR,{ref:r,className:J("-mx-1 my-1 h-px bg-muted",e),...t}));H0.displayName=wR.displayName;const VG="modulepreload",HG=function(e){return"/"+e},v2={},mh=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(r.map(c=>{if(c=HG(c),c in v2)return;v2[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":VG,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((h,m)=>{f.addEventListener("load",h),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},qG=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>mh(async()=>{const{default:n}=await Promise.resolve().then(()=>hu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)};
503class wN extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class GG extends wN{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class x2 extends wN{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class y2 extends wN{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var q0;(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"})(q0||(q0={}));var KG=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class YG{constructor(t,{headers:r={},customFetch:n,region:a=q0.Any}={}){this.url=t,this.headers=r,this.region=a,this.fetch=qG(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,r={}){var n;return KG(this,void 0,void 0,function*(){try{const{headers:a,method:i,body:o}=r;let l={},{region:c}=r;c||(c=this.region);const u=new URL(`${this.url}/${t}`);c&&c!=="any"&&(l["x-region"]=c,u.searchParams.set("forceFunctionRegion",c));let d;o&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(l["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(l["Content-Type"]="application/json",d=JSON.stringify(o)));const f=yield this.fetch(u.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),a),body:d}).catch(p=>{throw new GG(p)}),h=f.headers.get("x-relay-error");if(h&&h==="true")throw new x2(f);if(!f.ok)throw new y2(f);let m=((n=f.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),g;return m==="application/json"?g=yield f.json():m==="application/octet-stream"?g=yield f.blob():m==="text/event-stream"?g=f:m==="multipart/form-data"?g=yield f.formData():g=yield f.text(),{data:g,error:null,response:f}}catch(a){return{data:null,error:a,response:a instanceof y2||a instanceof x2?a.context:void 0}}})}}var Lr={},jN={},$v={},ph={},Mv={},Rv={},XG=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},kc=XG();const QG=kc.fetch,_R=kc.fetch.bind(kc),kR=kc.Headers,JG=kc.Request,ZG=kc.Response,hu=Object.freeze(Object.defineProperty({__proto__:null,Headers:kR,Request:JG,Response:ZG,default:_R,fetch:QG},Symbol.toStringTag,{value:"Module"})),eK=pB(hu);var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});let tK=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
503de=t.code}};Dv.default=tK;var PR=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rv,"__esModule",{value:!0});const rK=PR(eK),nK=PR(Dv);let sK=class{constructor(t){var r,n;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(r=t.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=t.signal,this.isMaybeSingle=(n=t.isMaybeSingle)!==null&&n!==void 0?n:!1,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=rK.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,r){return this.headers=new Headers(this.headers),this.headers.set(t,r),this}then(t,r){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");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,l,c,u;let d=null,f=null,h=null,m=i.status,g=i.statusText;if(i.ok){if(this.method!=="HEAD"){const x=await i.text();x===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=x:f=JSON.parse(x))}const v=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),y=(c=i.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");v&&y&&y.length>1&&(h=parseInt(y[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,h=null,m=406,g="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const v=await i.text();try{d=JSON.parse(v),Array.isArray(d)&&i.status===404&&(f=[],d=null,m=200,g="OK")}catch{i.status===404&&v===""?(m=204,g="No Content"):d={message:v}}if(d&&this.isMaybeSingle&&(!((u=d==null?void 0:d.details)===null||u===void 0)&&u.includes("0 rows"))&&(d=null,m=200,g="OK"),d&&this.shouldThrowOnError)throw new nK.default(d)}return{error:d,data:f,count:h,status:m,statusText:g}});return this.shouldThrowOnError||(a=a.catch(i=>{var o,l,c;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(l=i==null?void 0:i.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=i==null?void 0:i.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),a.then(t,r)}returns(){return this}overrideTypes(){return this}};Rv.default=sK;var aK=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mv,"__esModule",{value:!0});const iK=aK(Rv);let oK=class extends iK.default{select(t){let r=!1;const n=(t??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:r=!0,nullsFirst:n,foreignTable:a,referencedTable:i=a}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${t}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this}range(t,r,{foreignTable:n,referencedTable:a=n}={}){const i=typeof a>"u"?"offset":`${a}.offset`,o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${r-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
503explain({analyze:t=!1,verbose:r=!1,settings:n=!1,buffers:a=!1,wal:i=!1,format:o="text"}={}){var l;const c=[t?"analyze":null,r?"verbose":null,n?"settings":null,a?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${c};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};Mv.default=oK;var lK=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ph,"__esModule",{value:!0});const cK=lK(Mv);let uK=class extends cK.default{eq(t,r){return this.url.searchParams.append(t,`eq.${r}`),this}neq(t,r){return this.url.searchParams.append(t,`neq.${r}`),this}gt(t,r){return this.url.searchParams.append(t,`gt.${r}`),this}gte(t,r){return this.url.searchParams.append(t,`gte.${r}`),this}lt(t,r){return this.url.searchParams.append(t,`lt.${r}`),this}lte(t,r){return this.url.searchParams.append(t,`lte.${r}`),this}like(t,r){return this.url.searchParams.append(t,`like.${r}`),this}likeAllOf(t,r){return this.url.searchParams.append(t,`like(all).{${r.join(",")}}`),this}likeAnyOf(t,r){return this.url.searchParams.append(t,`like(any).{${r.join(",")}}`),this}ilike(t,r){return this.url.searchParams.append(t,`ilike.${r}`),this}ilikeAllOf(t,r){return this.url.searchParams.append(t,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(t,r){return this.url.searchParams.append(t,`ilike(any).{${r.join(",")}}`),this}is(t,r){return this.url.searchParams.append(t,`is.${r}`),this}in(t,r){const n=Array.from(new Set(r)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(t,`in.(${n})`),this}contains(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cs.{${r.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(r)}`),this}containedBy(t,r){return typeof r=="string"?this.url.searchParams.append(t,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(t,`cd.{${r.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(r)}`),this}rangeGt(t,r){return this.url.searchParams.append(t,`sr.${r}`),this}rangeGte(t,r){return this.url.searchParams.append(t,`nxl.${r}`),this}rangeLt(t,r){return this.url.searchParams.append(t,`sl.${r}`),this}rangeLte(t,r){return this.url.searchParams.append(t,`nxr.${r}`),this}rangeAdjacent(t,r){return this.url.searchParams.append(t,`adj.${r}`),this}overlaps(t,r){return typeof r=="string"?this.url.searchParams.append(t,`ov.${r}`):this.url.searchParams.append(t,`ov.{${r.join(",")}}`),this}textSearch(t,r,{config:n,type:a}={}){let i="";a==="plain"?i="pl":a==="phrase"?i="ph":a==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(t,`${i}fts${o}.${r}`),this}match(t){return Object.entries(t).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(t,r,n){return this.url.searchParams.append(t,`not.${r}.${n}`),this}or(t,{foreignTable:r,referencedTable:n=r}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${t})`),this}filter(t,r,n){return this.url.searchParams.append(t,`${r}.${n}`),this}};ph.default=uK;var dK=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($v,"__esModule",{value:!0});const Fu=dK(ph);let fK=class{constructor(t,{headers:r={},schema:n,fetch:a}){this.url=t,this.headers=new Headers(r),this.schema=n,this.fetch=a}select(t,{head:r=!1,count:n}={}){const a=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",o),n&&this.headers.append("Prefer",`count=${n}`),new Fu.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:r,defaultToNull:n=!0}={}){var a;const i="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const o=t.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new Fu.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch})}upsert(t,{onConflict:r,ignoreDuplicates:n=!1,count:a,defaultToNull:i=!0}={}){var o;const l="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),a&&this.headers.append("Prefer",`count=${a}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const c=t.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Fu.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(t,{count:r}={}){var n;const a="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new Fu.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:t}={}){var r;const n="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Fu.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};$v.default=fK;
503var CR=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jN,"__esModule",{value:!0});const hK=CR($v),mK=CR(ph);let pK=class OR{constructor(t,{headers:r={},schema:n,fetch:a}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.fetch=a}from(t){const r=new URL(`${this.url}/${t}`);return new hK.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new OR(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,r={},{head:n=!1,get:a=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let u;n||a?(l=n?"HEAD":"GET",Object.entries(r).filter(([f,h])=>h!==void 0).map(([f,h])=>[f,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([f,h])=>{c.searchParams.append(f,h)})):(l="POST",u=r);const d=new Headers(this.headers);return i&&d.set("Prefer",`count=${i}`),new mK.default({method:l,url:c,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};jN.default=pK;var mu=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.PostgrestError=Lr.PostgrestBuilder=Lr.PostgrestTransformBuilder=Lr.PostgrestFilterBuilder=Lr.PostgrestQueryBuilder=Lr.PostgrestClient=void 0;const AR=mu(jN);Lr.PostgrestClient=AR.default;const ER=mu($v);Lr.PostgrestQueryBuilder=ER.default;const TR=mu(ph);Lr.PostgrestFilterBuilder=TR.default;const IR=mu(Mv);Lr.PostgrestTransformBuilder=IR.default;const $R=mu(Rv);Lr.PostgrestBuilder=$R.default;const MR=mu(Dv);Lr.PostgrestError=MR.default;var gK=Lr.default={PostgrestClient:AR.default,PostgrestQueryBuilder:ER.default,PostgrestFilterBuilder:TR.default,PostgrestTransformBuilder:IR.default,PostgrestBuilder:$R.default,PostgrestError:MR.default};const{PostgrestClient:vK,PostgrestQueryBuilder:RCe,PostgrestFilterBuilder:DCe,PostgrestTransformBuilder:LCe,PostgrestBuilder:FCe,PostgrestError:BCe}=gK;class xK{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."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,a=parseInt(n.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:
504import ws from "ws"
505new 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+=`
506
507Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const yK="2.15.5",bK=`realtime-js/${yK}`,wK="1.0.0",G0=1e4,jK=1e3,NK=100;var yd;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(yd||(yd={}));var Ft;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ft||(Ft={}));var Zn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Zn||(Zn={}));var K0;(function(e){e.websocket="websocket"})(K0||(K0={}));var co;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(co||(co={}));class SK{constructor(){this.HEADER_LENGTH=1}decode(t,r){return t.constructor===ArrayBuffer?r(this._binaryDecode(t)):r(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const r=new DataView(t),n=new TextDecoder;return this._decodeBroadcast(t,r,n)}_decodeBroadcast(t,r,n){const a=r.getUint8(1),i=r.getUint8(2);let o=this.HEADER_LENGTH+2;const l=n.decode(t.slice(o,o+a));o=o+a;const c=n.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(n.decode(t.slice(o,t.byteLength)));return{ref:null,topic:l,event:c,payload:u}}}class RR{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var st;(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"})(st||(st={}));const b2=(e,t,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(t).reduce((i,o)=>(i[o]=_K(o,e,t,a),i),{})},_K=(e,t,r,n)=>{const a=t.find(l=>
vendor: 4,552 bytes, line 507
507l.name===e),i=a==null?void 0:a.type,o=r[e];return i&&!n.includes(i)?DR(i,o):Y0(o)},DR=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return OK(t,r)}switch(e){case st.bool:return kK(t);case st.float4:case st.float8:case st.int2:case st.int4:case st.int8:case st.numeric:case st.oid:return PK(t);case st.json:case st.jsonb:return CK(t);case st.timestamp:return AK(t);case st.abstime:case st.date:case st.daterange:case st.int4range:case st.int8range:case st.money:case st.reltime:case st.text:case st.time:case st.timestamptz:case st.timetz:case st.tsrange:case st.tstzrange:return Y0(t);default:return Y0(t)}},Y0=e=>e,kK=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},PK=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},CK=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},OK=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let i;const o=e.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>DR(t,l))}return e},AK=e=>typeof e=="string"?e.replace(" ","T"):e,LR=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class Vy{constructor(t,r,n={},a=G0){this.channel=t,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,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()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var w2;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(w2||(w2={}));class bd{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=bd.syncState(this.state,a,i,o),this.pendingDiffs.forEach(c=>{this.state=bd.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=bd.syncDiff(this.state,a,i,o),l())}),this.onJoin((a,i,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:o})}),this.onLeave((a,i,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,a){const i=this.cloneDeep(t),o=this.transformState(r),l={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const f=i[u];if(f){const h=d.map(v=>v.presence_ref),m=f.map(v=>v.presence_ref),g=d.filter(v=>m.indexOf(v.presence_ref)<0),p=f.filter(v=>h.indexOf(v.presence_ref)<0);g.length>0&&(l[u]=g),p.length>0&&(c[u]=p)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},n,a)}static syncDiff(t,r,n,a){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(i,(l,c)=>{var u;
507const d=(u=t[l])!==null&&u!==void 0?u:[];if(t[l]=this.cloneDeep(c),d.length>0){const f=t[l].map(m=>m.presence_ref),h=d.filter(m=>f.indexOf(m.presence_ref)<0);t[l].unshift(...h)}n(l,d,c)}),this.map(o,(l,c)=>{let u=t[l];if(!u)return;const d=c.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),t[l]=u,a(l,u,c),u.length===0&&delete t[l]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const a=t[n];return"metas"in a?r[n]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=a,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var j2;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(j2||(j2={}));var wd;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wd||(wd={}));var ta;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(ta||(ta={}));class NN{constructor(t,r={config:{}},n){this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Ft.closed,this.joinedOnce=!1,this.pushBuffer=[],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.timeout=this.socket.timeout,this.joinPush=new Vy(this,Zn.join,this.params,this.timeout),this.rejoinTimer=new RR(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ft.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ft.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Ft.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ft.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Ft.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Zn.reply,{},(a,i)=>{this._trigger(this._replyEventName(i),a)}),this.presence=new bd(this),this.broadcastEndpointURL=LR(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(t,r=this.timeout){var n,a,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Ft.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(m=>m.filter))!==null&&a!==void 0?a:[],d=!!this.bindings[wd.PRESENCE]&&this.bindings[wd.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(m=>t==null?void 0:t(ta.CHANNEL_ERROR,m)),this._onClose(()=>t==null?void 0:t(ta.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:m})=>{var g;if(this.socket.setAuth(),m===void 0){t==null||t(ta.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,v=(g=p==null?void 0:p.length)!==null&&g!==void 0?g:0,y=[];for(let x=0;x<v;x++){const w=p[x],{filter:{event:N,schema:j,table:S,filter:_}}=w,P=m&&m[x];if(P&&P.event===N&&P.schema===j&&P.table===S&&P.filter===_)y.push(Object.assign(Object.assign({},w),{id:P.id}));else{this.unsubscribe(),this.state=Ft.errored,t==null||t(ta.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=y,t&&t(ta.SUBSCRIBED);return}}).receive("error",m=>{this.state=Ft.errored,t==null||t(ta.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(ta.TIMED_OUT)})}return this}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){return this.state===Ft.joined&&t===wd.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(t,r,n)}async send(t,r={}){var n,a;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=u.body)===null||a===void 0?void 0:a.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ft.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Zn.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(a=>{n=new Vy(this,Zn.leave,{},t),n.receive("ok",()=>{r(),a("ok")}).receive("timeout",()=>{r(),a("timed out")}).receive("error",()=>{a("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ft.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const a=new AbortController,i=setTimeout(()=>a.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new Vy(this,t,r,n);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>NK){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var a,i;const o=t.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=Zn;if(n&&[l,c,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(m=>{var g,p,v;return((g=m.filter)===null||g===void 0?void 0:g.event)==="*"||((v=(p=m.filter)===null||p===void 0?void 0:p.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(m=>m.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var g,p,v,y,x,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const N=m.id,j=(g=m.filter)===null||g===void 0?void 0:g.event;return N&&((p=r.ids)===null||p===void 0?void 0:p.includes(N))&&(j==="*"||(j==null?void 0:j.toLocaleLowerCase())===((v=r.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const N=(x=(y=m==null?void 0:m.filter)===null||y===void 0?void 0:y.event)===null||x===void 0?void 0:x.toLocaleLowerCase();return N==="*"||N===((w=r==null?void 0:r.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof h=="object"&&"ids"in h){const g=h.data,{schema:p,table:v,commit_timestamp:y,type:x,errors:w}=g;h=Object.assign(Object.assign({},{schema:p,table:v,commit_timestamp:y,eventType:x,new:{},old:{},errors:w}),this._getPayloadRecords(g))}m.callback(h,n)})}_isClosed(){return this.state===Ft.closed}_isJoined(){return this.state===Ft.joined}_isJoining(){return this.state===Ft.joining}_isLeaving(){return this.state===Ft.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const a=t.toLocaleLowerCase(),i={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&NN.isEqual(a.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Zn.close,{},t)}_onError(t){this._on(Zn.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ft.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=b2(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=b2(t.columns,t.old_record)),r}}const Hy=()=>{},lm={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},EK=[1e3,2e3,5e3,1e4],TK=1e4,IK=`
508  addEventListener("message", (e) => {
509    if (e.data.event === "start") {
510      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
511    }
512  });`;class $K{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=G0,this.transport=null,this.heartbeatIntervalMs=lm.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Hy,this.ref=0,this.reconnectTimer=null,this.logger=Hy,this.conn=null,this.sendBuffer=[],this.serializer
512=new SK,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>{let i;return a?i=a:typeof fetch>"u"?i=(...o)=>mh(async()=>{const{default:l}=await Promise.resolve().then(()=>hu);return{default:l}},void 0).then(({default:l})=>l(...o)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...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,this.endPoint=`${t}/${K0.websocket}`,this.httpEndpoint=LR(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=xK.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r}
513
514To use Realtime in Node.js, you need to provide a WebSocket implementation:
515
516Option 1: Use Node.js 22+ which has native WebSocket support
517Option 2: Install and provide the "ws" package:
518
519  npm install ws
520
521  import ws from "ws"
522  const client = new RealtimeClient(url, {
523    ...options,
524    transport: ws
525  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:wK}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},t?this.conn.close(t,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case yd.connecting:return co.Connecting;case yd.open:return co.Open;case yd.closing:return co.Closing;default:return co.Closed}}isConnected(){return this.connectionState()===co.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,a=this.getChannels().find(i=>i.topic===n);if(a)return a;{const i=new NN(`realtime:${t}`,r,this);return this.channels.push(i),i}}push(t){const{topic:r,event:n,payload:a,ref:i}=t,o=()=>{this.encode(t,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(jK,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
525heduleTimeout()},lm.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:a,payload:i,ref:o}=r,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${n} ${a} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(a,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),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))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_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.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
525heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}_triggerChanError(){this.channels.forEach(t=>t._trigger(Zn.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${t}${n}${a}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([IK],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r;t?r=t:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const a={access_token:r,version:bK};r&&n.updateJoinPayload(a),n.joinedOnce&&n._isJoined()&&n._push(Zn.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(a){this.log("error",`error in ${t} callback`,a)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new RR(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},lm.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,a,i,o,l,c,u,d;if(this.transport=(r=t==null?void 0:t.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:G0,this.heartbeatIntervalMs=(a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:lm.HEARTBEAT_INTERVAL,this.worker=(i=t==null?void 0:t.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=t==null?void 0:t.heartbeatCallback)!==null&&l!==void 0?l:Hy,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(c=t==null?void 0:t.reconnectAfterMs)!==null&&c!==void 0?c:f=>EK[f-1]||TK,this.encode=(u=t==null?void 0:t.encode)!==null&&u!==void 0?u:(f,h)=>h(JSON.stringify(f)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}class SN extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Bt(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class MK extends SN{constructor(t,r,n){super(t),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class X0 extends SN{constructor(t,r){super(t),this.name="StorageUnknownError",this.originalError=r}}var RK=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const FR=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>mh(async()=>{const{default:n}=await Promise.resolve().then(()=>hu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},DK=()=>RK(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield mh(()=>Promise.resolve().then(()=>hu),void 0)).Response:Response}),Q0=e=>{if(Array.isArray(e))return e.map(r=>Q0(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[a]=Q0(n)}),t},LK=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
525return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var tl=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const qy=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),FK=(e,t,r)=>tl(void 0,void 0,void 0,function*(){const n=yield DK();e instanceof n&&!(r!=null&&r.noResolveJson)?e.json().then(a=>{const i=e.status||500,o=(a==null?void 0:a.statusCode)||i+"";t(new MK(qy(a),i,o))}).catch(a=>{t(new X0(qy(a),a))}):t(new X0(qy(e),e))}),BK=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!n?a:(LK(n)?(a.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),a.body=JSON.stringify(n)):a.body=n,t!=null&&t.duplex&&(a.duplex=t.duplex),Object.assign(Object.assign({},a),r))};function gh(e,t,r,n,a,i){return tl(this,void 0,void 0,function*(){return new Promise((o,l)=>{e(r,BK(t,n,a,i)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>FK(c,l,n))})})}function Ip(e,t,r,n){return tl(this,void 0,void 0,function*(){return gh(e,"GET",t,r,n)})}function ks(e,t,r,n,a){return tl(this,void 0,void 0,function*(){return gh(e,"POST",t,n,a,r)})}function J0(e,t,r,n,a){return tl(this,void 0,void 0,function*(){return gh(e,"PUT",t,n,a,r)})}function zK(e,t,r,n){return tl(this,void 0,void 0,function*(){return gh(e,"HEAD",t,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function BR(e,t,r,n,a){return tl(this,void 0,void 0,function*(){return gh(e,"DELETE",t,n,a,r)})}var wr=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const UK={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},N2={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class WK{constructor(t,r={},n,a){this.shouldThrowOnError=!1,this.url=t,this.headers=r,this.bucketId=n,this.fetch=FR(a)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(t,r,n,a){return wr(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},N2),a);let l=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),a!=null&&a.headers&&(l=Object.assign(Object.assign({},l),a.headers));const u=this._removeEmptyFolders(r),d=this._getFinalPath(u),f=yield(t=="PUT"?J0:ks)(this.fetch,`${this.url}/object/${d}`,i,Object.assign({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Bt(i))return{data:null,error:i};throw i}})}upload(t,r,n){return wr(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,r,n)})}uploadToSignedUrl(t,r,n,a){return wr(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",r);try{let c;const u=Object.assign({upsert:N2.upsert},a),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",u.cacheControl)):(c=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield J0(this.fetch,l.toString(),c,{headers:d});return{data:{path:i,fullPath:f.Key},error:null}}catch(c){if(this.shouldThrowOnError)throw c;if(Bt(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(t,r){return wr(this,void 0,void 0,function*(){try{let n=this._getFinalPath(t);const a=Object.assign({},this.headers);r!=null&&r.upsert&&(a["x-upsert"]="true");const i=yield ks(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:a}),o=new URL(this.url+i.url),l=o.searchParams.get("token");if(!l)throw new SN("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n))return{data:null,error:n};throw n}})}update(t,r,n){return wr(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,r,n)})}move(t,r,n){return wr(this,void 0,void 0,function*(){try{return{data:yield ks(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Bt(a))return{data:null,error:a};throw a}})}copy(t,r,n){return wr(this,void 0,void 0,function*(){try{return{data:{path:(yield ks(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Bt(a))return{data:null,error:a};throw a}})}createSignedUrl(t,r,n){return wr(this,void 0,void 0,function*(){try{let a=this._getFinalPath(t),i=yield ks(this.fetch,`${this.url}/object/sign/${a}
525`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Bt(a))return{data:null,error:a};throw a}})}createSignedUrls(t,r,n){return wr(this,void 0,void 0,function*(){try{const a=yield ks(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:t},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:a.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Bt(a))return{data:null,error:a};throw a}})}download(t,r){return wr(this,void 0,void 0,function*(){const a=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"";try{const l=this._getFinalPath(t);return{data:yield(yield Ip(this.fetch,`${this.url}/${a}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Bt(l))return{data:null,error:l};throw l}})}info(t){return wr(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{const n=yield Ip(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Q0(n),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n))return{data:null,error:n};throw n}})}exists(t){return wr(this,void 0,void 0,function*(){const r=this._getFinalPath(t);try{return yield zK(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n)&&n instanceof X0){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}})}getPublicUrl(t,r){const n=this._getFinalPath(t),a=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&a.push(i);const l=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});c!==""&&a.push(c);let u=a.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}${u}`)}}}remove(t){return wr(this,void 0,void 0,function*(){try{return{data:yield BR(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bt(r))return{data:null,error:r};throw r}})}list(t,r,n){return wr(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},UK),r),{prefix:t||""});return{data:yield ks(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},n),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Bt(a))return{data:null,error:a};throw a}})}listV2(t,r){return wr(this,void 0,void 0,function*(){try{const n=Object.assign({},t);return{data:yield ks(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n))return{data:null,error:n};throw n}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const r=[];return t.width&&r.push(`width=${t.width}`),t.height&&r.push(`height=${t.height}`),t.resize&&r.push(`resize=${t.resize}`),t.format&&r.push(`format=${t.format}`),t.quality&&r.push(`quality=${t.quality}`),r.join("&")}}const VK="2.12.1",HK={"X-Client-Info":`storage-js/${VK}`};var ml=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class qK{constructor(t,r={},n,a){this.shouldThrowOnError=!1;const i=new URL(t);a!=null&&a.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},HK),r),this.fetch=FR(n)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return ml(this,void 0,void 0,function*(){try{return{data:yield Ip(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(Bt(t))return{data:null,error:t};throw t}})}getBucket(t){return ml(this,void 0,void 0,function*(){try{return{data:yield Ip(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bt(r))return{data:null,error:r};throw r}})}createBucket(t,r={public:!1}){return ml(this,void 0,void 0,function*(){try{return{data:yield ks(this.fetch,`${this.url}/bucket`,{id:t,name:t,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n))return{data:null,error:n};throw n}})}updateBucket(t,r){return ml(this,void 0,void 0,function*(){try{return{data:yield J0(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Bt(n))return{data:null,error:n};throw n}})}emptyBucket(t){return ml(this,void 0,void 0,function*(){try{return{data:yield ks(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bt(r))return{data:null,error:r};throw r}})}deleteBucket(t){return ml(this,void 0,void 0,function*(){try{return{data:yield BR(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Bt(r))return{data:null,error:r};throw r}})}}class GK extends qK{constructor(t,r={},n,a){super(t,r,n,a)}from(t){return new WK(this.url,this.headers,t,this.fetch)}}const KK="2.57.4";let sd="";typeof Deno<"u"?sd="deno":typeof document<"u"?sd="web":typeof navigator<"u"&&navigator.product==="ReactNative"?sd="react-native":sd="node";const YK={"X-Client-Info":`supabase-js-${sd}/${KK}`},XK={headers:YK},QK={schema:"public"},JK={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},ZK={};var eY=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const tY=e=>{let t;return e?t=e:typeof fetch>"u"?t=_R:t=fetch,(...r)=>t(...r)},rY=()=>typeof Headers>"u"?kR:Headers,nY=(e,t,r)=>{const n=tY(r),a=rY();return(i,o)=>eY(void 0,void 0,void 0,function*(){var l;const c=(l=yield t())!==null&&l!==void 0?l:e;let u=new a(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(i,Object.assign(Object.assign({},o),{headers:u}))})};var sY=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};function aY(e){return e.endsWith("/")?e:e+"/"}function iY(e,t){var r,n;const{db:a,auth:i,realtime:o,global:l}=e,{db:c,auth:u,realtime:d,global:f}=t,h={db:Object.assign(Object.assign({},c),a),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),l),{headers:Object.assign(Object.assign({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>sY(this,void 0,void 0,function*(){return""})};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function oY(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");
525if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(aY(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const zR="2.71.1",Sl=30*1e3,Z0=3,Gy=Z0*Sl,lY="http://localhost:9999",cY="supabase.auth.token",uY={"X-Client-Info":`gotrue-js/${zR}`},ew="X-Supabase-Api-Version",UR={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},dY=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,fY=10*60*1e3;class _N extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function Ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class hY extends _N{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function mY(e){return Ee(e)&&e.name==="AuthApiError"}class WR extends _N{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Ri extends _N{constructor(t,r,n,a){super(t,n,a),this.name=r,this.status=n}}class Ha extends Ri{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function pY(e){return Ee(e)&&e.name==="AuthSessionMissingError"}class cm extends Ri{constructor(){super("Auth session or user missing","AuthInvalidToken
525ResponseError",500,void 0)}}class um extends Ri{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class dm extends Ri{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function gY(e){return Ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class S2 extends Ri{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tw extends Ri{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function Ky(e){return Ee(e)&&e.name==="AuthRetryableFetchError"}class _2 extends Ri{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class rw extends Ri{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const $p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),k2=` 	
526\r=`.split(""),vY=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<k2.length;t+=1)e[k2[t].charCodeAt(0)]=-2;for(let t=0;t<$p.length;t+=1)e[$p[t].charCodeAt(0)]=t;return e})();function P2(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($p[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($p[n]),t.queuedBits-=6}}function VR(e,t,r){const n=vY[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 C2(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},i=o=>{bY(o,n,r)};for(let o=0;o<e.length;o+=1)VR(e.charCodeAt(o),a,i);return t.join("")}function xY(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 yY(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const a=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|a)+65536,r+=1}xY(n,t)}}function bY(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 wY(e){const t=[],r={queue:0,queuedBits:0},n=a=>{t.push(a)};for(let a=0;a<e.length;a+=1)VR(e.charCodeAt(a),r,n);return new Uint8Array(t)}function jY(e){const t=[];return yY(e,r=>t.push(r)),new Uint8Array(t)}function NY(e){const t=[],r={queue:0,queuedBits:0},n=a=>{t.push(a)};return e.forEach(a=>P2(a,r,n)),P2(null,r,n),t.join("")}function SY(e){return Math.round(Date.now()/1e3)+e}function _Y(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const qn=()=>typeof window<"u"&&typeof document<"u",Qi={tested:!1,writable:!1},HR=()=>
526{if(!qn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Qi.tested)return Qi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Qi.tested=!0,Qi.writable=!0}catch{Qi.tested=!0,Qi.writable=!1}return Qi.writable};function kY(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((a,i)=>{t[i]=a})}catch{}return r.searchParams.forEach((n,a)=>{t[a]=n}),t}const qR=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...r)=>mh(async()=>{const{default:n}=await Promise.resolve().then(()=>hu);return{default:n}},void 0).then(({default:n})=>n(...r)):t=fetch,(...r)=>t(...r)},PY=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",_l=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Ji=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},za=async(e,t)=>{await e.removeItem(t)};class Lv{constructor(){this.promise=new Lv.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Lv.promiseConstructor=Promise;function Yy(e){const t=e.split(".");if(t.length!==3)throw new rw("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!dY.test(t[n]))throw new rw("JWT not in base64url format");return{header:JSON.parse(C2(t[0])),payload:JSON.parse(C2(t[1])),signature:wY(t[2]),raw:{header:t[0],payload:t[1]}}}async function CY(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function OY(e,t){return new Promise((n,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){n(o);return}}catch(o){if(!t(i,o)){a(o);return}}})()})}function AY(e){return("0"+e.toString(16)).substr(-2)}function EY(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let i=0;i<56;i++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(t),Array.from(t,AY).join("")}async function TY(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}async function IY(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 TY(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function pl(e,t,r=!1){const n=EY();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await _l(e,`${t}-code-verifier`,a);const i=await IY(n);return[i,n===i?"plain":"s256"]}const $Y=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function MY(e){const t=e.headers.get(ew);if(!t||!t.match($Y))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function RY(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 DY(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 LY=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function gl(e){if(!LY.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Xy(){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 O2(e){return JSON.parse(JSON.stringify(e))}var FY=function(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const so=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),BY=[502,503,504];async function A2(e){var t;if(!PY(e))throw new tw(so(e),0);if(BY.includes(e.status))throw new tw(so(e),e.status);let r;try{r=await e.json()}catch(i){throw new WR(so(i),i)}let n;const a=MY(e);if(a&&a.getTime()>=UR["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 _2(so(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Ha}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((i,o)=>
526i&&typeof o=="string",!0))throw new _2(so(r),e.status,r.weak_password.reasons);throw new hY(so(r),e.status||500,n)}const zY=(e,t,r,n)=>{const a={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function Me(e,t,r,n){var a;const i=Object.assign({},n==null?void 0:n.headers);i[ew]||(i[ew]=UR["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await UY(e,t,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function UY(e,t,r,n,a,i){const o=zY(t,n,a,i);let l;try{l=await e(r,Object.assign({},o))}catch(c){throw console.error(c),new tw(so(c),0)}if(l.ok||await A2(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await A2(c)}}function Zs(e){var t;let r=null;qY(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=SY(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function E2(e){const t=Zs(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 Qa(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function WY(e){return{data:e,error:null}}function VY(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i}=e,o=FY(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function HY(e){return e}function qY(e){return e.access_token&&e.refresh_token&&e.expires_in}const Qy=["global","local","others"];var GY=function(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};class KY{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=qR(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,r=Qy[0]){if(Qy.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Qy.join(", ")}`);try{return await Me(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await Me(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Qa})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=GY(t,["options"]),a=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(a.new_email=n==null?void 0:n.newEmail,delete a.newEmail),await Me(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:VY,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(Ee(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await Me(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Qa})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,a,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await Me(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:(i=(a=t==null?void 0:t.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:HY});if(d.error)throw d.error;const f=await d.json(),h=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(g=>{const p=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(g.split(";")[1].split("=")[1]);u[`${v}Page`]=p}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(Ee(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){gl(t);try{return await Me(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Qa})}catch(r){if(Ee(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){gl(t);try{return await Me(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Qa})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}
526async deleteUser(t,r=!1){gl(t);try{return await Me(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Qa})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){gl(t.userId);try{const{data:r,error:n}=await Me(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _deleteFactor(t){gl(t.userId),gl(t.id);try{return{data:await Me(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(Ee(r))return{data:null,error:r};throw r}}}function T2(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}function YY(){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)}}const vl={debug:!!(globalThis&&HR()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class GR extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class XY extends GR{}async function QY(e,t,r){vl.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;return t>0&&setTimeout(()=>{n.abort(),vl.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){vl.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await r()}finally{vl.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw vl.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new XY(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vl.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}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"),await r()}}))}YY();const JY={url:lY,storageKey:cY,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:uY,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function I2(e,t,r){return await r()}const xl={};class sf{constructor(t){var r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=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,this.instanceID=sf.nextInstanceID,sf.nextInstanceID+=1,this.instanceID>0&&qn()&&console.warn("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.");const a=Object.assign(Object.assign({},JY),t);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new KY({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=qR(a.fetch),this.lock=a.lock||I2,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:qn()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=QY:this.lock=I2,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)},this.persistSession?(a.storage?this.storage=a.storage:HR()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=T2(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=T2(this.memoryStorage)),qn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,r;return(r=(t=xl[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){xl[this.storageKey]=Object.assign(Object.assign({},xl[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=xl[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){xl[this.storageKey]=Object.assign(Object.assign({},xl[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${zR}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const r=kY(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),qn()&&this.detectSessionInUrl&&n!=="none"){const{data:a,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),gY(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="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 Ee(r)?{error:r}:{error:new WR("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,a;try{const i=await Me(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:(a=t==null?void 0:t.options)===null||a===void 0?void 0:a.captchaToken}},xform:Zs}),{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(Ee(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var r,n,a;try{let i;if("email"in t){const{email:d,password:f,options:h}=t;let m=null,g=null;this.flowType==="pkce"&&([m,g]=await pl(this.storage,this.storageKey)),i=await Me(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,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:m,code_challenge_method:g},xform:Zs})}else if("phone"in t){const{phone:d,password:f,options:h}=t;i=await Me(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(a=h==null?void 0:h.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Zs})}else throw new um("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(i){if(Ee(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let r;if("email"in t){const{email:i,password:o,options:l}=t;r=await Me(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:E2})}else if("phone"in t){const{phone:i,password:o,options:l}=t;r=await Me(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:E2})}else throw new um("You must provide either an email or phone number and a password");const{data:n,error:a}=r;return a?{data:{user:null,session:null},error:a}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new cm}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(Ee(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(t){var r,n,a,i;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:(a=t.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;if(r==="solana")return await this.signInWithSolana(t);throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}async signInWithSolana(t){var r,n,a,i,o,l,c,u,d,f,h,m;let g,p;if("message"in t)g=t.message,p=t.signature;else{const{chain:v,wallet:y,statement:x,options:w}=t;let N;if(qn())if(typeof y=="object")N=y;else{const S=window;if("solana"in S&&typeof S.solana=="object"&&("signIn"in S.solana&&typeof S.solana.signIn=="function"||"signMessage"in S.solana&&typeof S.solana.signMessage=="function"))N=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 y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");N=y}const j=new URL((r=w==null?void 0:w.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in N&&N.signIn){const S=await N.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),x?{statement:x}:null));let _;if(Array.isArray(S)&&S[0]&&typeof S[0]=="object")_=S[0];else if(S&&typeof S=="object"&&"signedMessage"in S&&"signature"in S)_=S;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),p=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in N)||typeof N.signMessage!="function"||!("publicKey"in N)||typeof N!="object"||!N.publicKey||!("toBase58"in N.publicKey)||typeof N.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${j.host} wants you to sign in with your Solana account:`,N.publicKey.toBase58(),...x?["",x,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(a=(n=w==null?void 0:w.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((i=w==null?void 0:w.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((u=w==null?void 0:w.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((f=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...w.sign
526InWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
527`);const S=await N.signMessage(new TextEncoder().encode(g),"utf8");if(!S||!(S instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=S}}try{const{data:v,error:y}=await Me(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:NY(p)},!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=t.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:Zs});if(y)throw y;return!v||!v.session||!v.user?{data:{user:null,session:null},error:new cm}:(v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),{data:Object.assign({},v),error:y})}catch(v){if(Ee(v))return{data:{user:null,session:null},error:v};throw v}}async _exchangeCodeForSession(t){const r=await Ji(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{const{data:i,error:o}=await Me(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Zs});if(await za(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new cm}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:o})}catch(i){if(Ee(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:r,provider:n,token:a,access_token:i,nonce:o}=t,l=await Me(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Zs}),{data:c,error:u}=l;return u?{data:{user:null,session:null},error:u}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new cm}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:u})}catch(r){if(Ee(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(t){var r,n,a,i,o;try{if("email"in t){const{email:l,options:c}=t;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await pl(this.storage,this.storageKey));const{error:f}=await Me(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:l,options:c}=t,{data:u,error:d}=await Me(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new um("You must provide either an email or phone number.")}catch(l){if(Ee(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(t){var r,n;try{let a,i;"options"in t&&(a=(r=t.options)===null||r===void 0?void 0:r.redirectTo,i=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await Me(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:Zs});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:u,session:c},error:null}}catch(a){if(Ee(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(t){var r,n,a;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await pl(this.storage,this.storageKey)),await Me(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}),!((a=t==null?void 0:t.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:WY})}catch(i){if(Ee(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,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 Ha;const{error:a}=await Me(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:a}})}catch(t){if(Ee(t))return{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:a,options:i}=t,{error:o}=await Me(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:n,type:a,options:i}=t,{data:o,error:l}=await Me(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new um("You must provide either an email or phone number and a type")}catch(r){if(Ee(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,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(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}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 a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.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 Ji(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
527id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<Gy:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await Ji(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Xy()}if(this.storage.isServer&&t.user){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(c,u,d)=>(!o&&u==="user"&&(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."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,u,d))})}return{data:{session:t},error:null}}const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await Me(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Qa}):await this._useSession(async r=>{var n,a,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ha}:await Me(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:Qa})})}catch(r){if(Ee(r))return pY(r)&&(await this._removeSession(),await za(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:a,error:i}=n;if(i)throw i;if(!a.session)throw new Ha;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await pl(this.storage,this.storageKey));const{data:u,error:d}=await Me(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Qa});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(Ee(n))return{data:{user:null},error:n};throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Ha;const r=Date.now()/1e3;let n=r,a=!0,i=null;const{payload:o}=Yy(t.access_token);if(o.exp&&(n=o.exp,a=n<=r),a){const{session:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)throw c;i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(Ee(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:l}=r;if(l)throw l;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Ha;const{session:a,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(Ee(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(t,r){try{if(!qn())throw new dm("No browser detected.");
527if(t.error||t.error_description||t.error_code)throw new dm(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 S2("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new dm("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 S2("No code detected.");const{data:x,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const N=new URL(window.location.href);return N.searchParams.delete("code"),window.history.replaceState(window.history.state,"",N.toString()),{data:{session:x.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:a,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=t;if(!i||!l||!o||!u)throw new dm("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(l);let h=d+f;c&&(h=parseInt(c));const m=h-d;m*1e3<=Sl&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${f}s`);const g=h-f;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,h,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,h,d);const{data:p,error:v}=await this._getUser(i);if(v)throw v;const y={provider_token:n,provider_refresh_token:a,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:t.type},error:null}}catch(n){if(Ee(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Ji(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{error:i};const o=(n=a.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(mY(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return t!=="others"&&(await this._removeSession(),await za(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const r=_Y(),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(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,a;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(t))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await pl(this.storage,this.storageKey,!0));try{return await Me(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(Ee(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async linkIdentity(t){var r;try{const{data:n,error:a}=await this._useSession(async i=>{var o,l,c,u,d;const{data:f,error:h}=i;if(h)throw h;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await Me(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(a)throw a;return qn()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:t.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(Ee(n))return{data:{provider:t.provider,url:null},error:n};throw n}}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)throw o;
527return await Me(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(a=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(Ee(r))return{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 OY(async a=>(a>0&&await CY(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await Me(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Zs})),(a,i)=>{const o=200*Math.pow(2,a);return i&&Ky(i)&&Date.now()+o-n<Sl})}catch(n){if(this._debug(r,"error",n),Ee(n))return{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),qn()&&!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 a=await Ji(this.storage,this.storageKey);if(a&&this.userStorage){let o=await Ji(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:a.user},await _l(this.userStorage,this.storageKey+"-user",o)),a.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Xy()}else if(a&&!a.user&&!a.user){const o=await Ji(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(a.user=o.user,await za(this.storage,this.storageKey+"-user"),await _l(this.storage,this.storageKey,a)):a.user=Xy()}if(this._debug(n,"session from storage",a),!this._isValidSession(a)){this._debug(n,"session is not valid"),a!==null&&await this._removeSession();return}const i=((r=a.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Gy;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Gy}s`),i){if(this.autoRefreshToken&&a.refresh_token){const{error:o}=await this._callRefreshToken(a.refresh_token);o&&(console.error(o),Ky(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(a.access_token);!l&&(o!=null&&o.user)?(a.user=o.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):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",a)}catch(a){this._debug(n,"error",a),console.error(a);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Ha;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Lv;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Ha;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={session:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(a,"error",i),Ee(i)){const o={session:null,error:i};return Ky(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(t,r,n=!0){const a=`#_notifyAllSubscribers(${t})`;this._debug(a,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(a,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await _l(this.userStorage,this.storageKey+"-user",{user:r.user});const a=Object.assign({},r);delete a.user;const i=O2(a);await _l(this.storage,this.storageKey,i)}else{const a=O2(r);await _l(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),await za(this.storage,this.storageKey),await za(this.storage,this.storageKey+"-code-verifier"),await za(this.storage,this.storageKey+"-user"),this.userStorage&&await za(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&qn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
527catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Sl);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}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 a=Math.floor((n.expires_at*1e3-t)/Sl);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Sl}ms, refresh threshold is ${Z0} ticks`),a<=Z0&&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 GR)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!qn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),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(-1,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 a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await pl(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);a.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${a.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await Me(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:c,error:u}=await Me(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{data:null,error:i};const{data:o,error:l}=await Me(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await Me(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Ee(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?{data:null,error:n}:await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(t==null?void 0:t.factors)||[],a=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:a,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var r,n;const{data:{session:a},error:i}=t;if(i)return{data:null,error:i};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Yy(a.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((n=(r=a.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(c="aal2");const d=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(l=>l.kid===t);if(n)return n;const a=Date.now();if(n=this.jwks.keys.find(l=>l.kid===t),n&&this.jwks_cached_at+fY>a)return n;const{data:i,error:o}=await Me(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=a,n=i.keys.find(l=>l.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:m,error:g}
527=await this.getSession();if(g||!m.session)return{data:null,error:g};n=m.session.access_token}const{header:a,payload:i,signature:o,raw:{header:l,payload:c}}=Yy(n);r!=null&&r.allowExpired||RY(i.exp);const u=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:m}=await this.getUser(n);if(m)throw m;return{data:{claims:i,header:a,signature:o},error:null}}const d=DY(a.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,jY(`${l}.${c}`)))throw new rw("Invalid JWT signature");return{data:{claims:i,header:a,signature:o},error:null}}catch(n){if(Ee(n))return{data:null,error:n};throw n}}}sf.nextInstanceID=0;const ZY=sf;class eX extends ZY{constructor(t){super(t)}}var tX=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(f){o(f)}}function c(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};class rX{constructor(t,r,n){var a,i,o;this.supabaseUrl=t,this.supabaseKey=r;const l=oY(t);if(!r)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:QK,realtime:ZK,auth:Object.assign(Object.assign({},JK),{storageKey:c}),global:XK},d=iY(n??{},u);this.storageKey=(a=d.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(i=d.global.headers)!==null&&i!==void 0?i:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=d.auth)!==null&&o!==void 0?o:{},this.headers,d.global.fetch),this.fetch=nY(r,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new vK(new URL("rest/v1",l).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),this.storage=new GK(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),d.accessToken||this._listenForAuthEvents()}get functions(){return new YG(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,r={},n={}){return this.rest.rpc(t,r,n)}channel(t,r={config:{}}){return this.realtime.channel(t,r)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,r;return tX(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(t=n.session)===null||t===void 0?void 0:t.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,userStorage:i,storageKey:o,flowType:l,lock:c,debug:u},d,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new eX({url:this.authUrl.href,headers:Object.assign(Object.assign({},h),d),storageKey:o,autoRefreshToken:t,persistSession:r,detectSessionInUrl:n,storage:a,userStorage:i,flowType:l,lock:c,debug:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new $K(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(t,r,n){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:t==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const nX=(e,t,r)=>new rX(e,t,r);function sX(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}sX()&&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 N
527ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const aX="https://nybqhfvewxyqcklwwcnu.supabase.co",iX="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im55YnFoZnZld3h5cWNrbHd3Y251Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTc3MzkyMTMsImV4cCI6MjA3MzMxNTIxM30.-dPqjHABFiUUTOIL_EjGeim9e1NvFJSdzejjz6cUEQU",ne=nX(aX,iX,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),$2="/assets/clientli-logo-CTz5wTNF.png",M2=[{name:"Features",href:"/#features"},{name:"How it Works",href:"/#how-it-works"},{name:"Pricing",href:"/pricing"}],R2=[{name:"Proposal Acceleration",href:"/features/proposal-builder"},{name:"Stakeholder Management",href:"/features/stakeholder-management"},{name:"Value-Tied Pricing",href:"/features/value-tied-pricing"},{name:"Repeatable GTM Engine",href:"/features/repeatable-gtm-engine"}],cs=()=>{const[e,t]=b.useState(!1),[r,n]=b.useState(null);b.useEffect(()=>{ne.auth.getSession().then(({data:{session:o}})=>{n((o==null?void 0:o.user)??null)});const{data:{subscription:i}}=ne.auth.onAuthStateChange((o,l)=>{n((l==null?void 0:l.user)??null)});return()=>i.unsubscribe()},[]);const a=async()=>{await ne.auth.signOut()};return s.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b",children:[s.jsx("div",{className:"mt-6 flex justify-center",children:s.jsx("a",{href:"https://theresanaiforthat.com/ai/clientli/?ref=featured&v=1877551",target:"_blank",rel:"nofollow",children:s.jsx("img",{width:"300",src:"https://media.theresanaiforthat.com/featured-on-taaft.png?width=600",alt:"Featured on There's an AI for That"})})}),s.jsxs("nav",{className:"container mx-auto px-6 lg:px-8","aria-label":"Global",children:[s.jsxs("div",{className:"flex items-center justify-between h-16",children:[s.jsx("div",{className:"flex lg:flex-1",children:s.jsxs("a",{href:"/",className:"-m-1.5 p-1.5 flex items-center gap-2",children:[s.jsx("img",{src:$2,alt:"Clientli",className:"h-8 w-8"}),s.jsx("span",{className:"text-2xl font-bold bg-gradient-primary bg-clip-text text-transparent",children:"Clientli"})]})}),s.jsx("div",{className:"flex lg:hidden",children:s.jsxs("button",{type:"button",className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-foreground",onClick:()=>t(!0),children:[s.jsx("span",{className:"sr-only",children:"Open main menu"}),s.jsx(XU,{className:"h-6 w-6","aria-hidden":"true"})]})}),s.jsxs("div",{className:"hidden lg:flex lg:gap-x-12 lg:items-center",children:[M2.map(i=>s.jsx("a",{href:i.href,className:"text-sm font-semibold leading-6 text-foreground hover:text-primary transition-colors",children:i.name},i.name)),s.jsxs(Ep,{children:[s.jsxs(Tp,{className:"flex items-center text-sm font-semibold leading-6 text-foreground hover:text-primary transition-colors",children:["Use Cases",s.jsx(Mo,{className:"ml-1 h-4 w-4"})]}),s.jsx(nf,{align:"start",className:"w-56",children:R2.map(i=>s.jsx(oi,{asChild:!0,children:s.jsx("a",{href:i.href,className:"w-full",children:i.name})},i.name))})]})]}),s.jsx("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end lg:gap-x-4",children:r?s.jsxs(Ep,{children:[s.jsxs(Tp,{className:"flex items-center text-sm font-semibold leading-6 text-foreground hover:text-primary transition-colors",children:[s.jsx(C0,{className:"mr-2 h-4 w-4"}),r.email,s.jsx(Mo,{className:"ml-1 h-4 w-4"})]}),s.jsxs(nf,{align:"end",className:"w-56",children:[s.jsx(oi,{asChild:!0,children:s.jsx("a",{href:"/founding-members",className:"w-full",children:"Founding Members"})}),s.jsx(oi,{asChild:!0,children:s.jsx("a",{href:"/#video-demo",className:"w-full",children:"View Demo"})}),s.jsxs(oi,{onClick:a,className:"w-full text-destructive focus:text-destructive",children:[s.jsx(P0,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(W,{variant:"ghost",onClick:()=>window.location.href="/auth",children:"Log in"}),s.jsx(W,{variant:"gradient",onClick:()=>window.location.href="/auth",children:"Sign up"})]})})]}),e&&s.jsxs("div",{className:"lg:hidden",children:[s.jsx("div",{className:"fixed inset-0 z-50"}),s.jsxs("div",{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-background px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-border",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("a",{href:"/",className:"-m-1.5 p-1.5 flex items-center gap-2",children:[s.jsx("img",{src:$2,alt:"Clientli",className:"h-8 w-8"}),s.jsx("span",{className:"text-2xl font-bold bg-gradient-primary bg-clip-text text-transparent",children:"Clientli"})]}),s.jsxs("button",{type:"button",className:"-m-2.5 rounded-md p-2.5 text-foreground",onClick:()=>t(!1),children:[s.jsx("span",{className:"sr-only",children:"Close menu"}),s.jsx(iu,{className:"h-6 w-6","aria-hidden":"true"})]})]}),s.jsx("div",{className:"mt-6 flow-root",children:s.jsxs("div",{className:"-my-6 divide-y divide-border",children:[s.jsxs("div",{className:"space-y-2 py-6",children:[M2.map(i=>s.jsx("a",{href:i.href,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-foreground hover:bg-muted",onClick:()=>t(!1),children:i.name},i.name)),s.jsxs("div",{className:"-mx-3 block rounded-lg px-3 py-2",children:[s.jsx("div",{className:"text-base font-semibold leading-7 text-foreground mb-2",children:"Use Cases"}),s.jsx("div",{className:"space-y-1 pl-4",children:R2.map(i=>s.jsx("a",{href:i.href,className:"block rounded-lg px-3 py-2 text-sm text-foreground hover:bg-muted",onClick:()=>t(!1),children:i.name},i.name))})]})]}),s.jsx("div",{className:"py-6 space-y-4",children:r?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center px-3 py-2 text-sm font-semibold text-foreground",children:[s.jsx(C0,{className:"mr-2 h-4 w-4"}),r.email]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{window.location.href="/founding-members",t(!1)},children:"Founding Members"}),s.jsx(W,{variant:"ghost",className:"w-full justify-start",onClick:()=>{window.location.href="/#video-demo",t(!1)},children:"View Demo"}),s.jsxs(W,{variant:"ghost",className:"w-full justify-start text-destructive hover:text-destructive",onClick:()=>{a(),t(!1)},children:[s.jsx(P0,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(W,{variant:"ghost",className:"w-full",onClick:()=>window.location.href="/auth",children:"Log in"}),s.jsx(W,{variant:"gradient",className:"w-full",onClick:()=>window.location.href="/auth",children:"Sign up"})]})})]})})]})]})]})]})},oX="/assets/hero-video-call-TYiAqxdb.png",lX=()=>s.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden bg-gradient-hero",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background/90 via-background/50 to-background/90"}),s.jsx("div",{className:"container relative z-10 mx-auto px-6 lg:px-8",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"text-center lg:text-left",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-secondary/50 text-secondary-foreground mb-6 animate-scale-in",children:[s.jsx(tW,{className:"w-4 h-4 text-primary"}),s.jsx("span",{className:"text-sm font-medium",children:"For Freelance Consultants & Fractional COOs"})]}),s.jsxs("h1",{className:"text-4xl lg:text-6xl font-bold tracking-tight mb-6",children:["Tired of Spending Hours on"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Client Discovery Calls & writing proposals?"})]}),s.jsx("p",{className:"text-xl text-foreground max-w-2xl mb-8",children:"Automated proposal writing Copilot that gets smarter with every deal that analyzes calls, learns from your wins & loses, to improve your success rate."}),s.jsxs("div",{className:"space-y-3 mb-8 max-w-2xl",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Sn,{className:"w-5 h-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-lg text-foreground",children:"Save 20–40 hours per client"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(qe,{className:"w-5 h-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-lg text-foreground",children:"Less unpaid discovery work"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ba,{className:"w-5 h-5 text-primary flex-shrink-0"}),s.jsx("span",{className:"text-lg text-foreground",children:"Higher proposal conversion"})]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start items-center sm:items-start",children:[s.jsxs(W,{variant:"hero",size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Sign Up Now",s.jsx(Ht,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]}),s.jsx(W,{variant:"outline",size:"lg",className:"group",onClick:()=>window.location.href="/pricing",children:"Try Clientli For Free"})]}),s.jsxs("div",{className:"flex items-center justify-center lg:justify-start gap-8 mt-12 text-sm text-muted-foreground",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-foreground",children:"80+"}),s.jsx("div",{children:"Consultants"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-foreground",children:"7X"}),s.jsx("div",{children:"Avg ROI Generated"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-foreground",children:"4.8★"}),s.jsx("div",{children:"Client Rating"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"relative rounded-2xl overflow-hidden shadow-elegant",children:s.jsxs("div",{className:"relative h-[500px] w-full",children:[s.jsx("img",{src:oX,alt:"Video call interface showing team collaboration and discovery session",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/80 via-background/20 to-transparent"})]})}),s.jsx("div",{className:"absolute -top-4 -left-4 bg-card p-4 rounded-xl shadow-card border backdrop-blur-sm",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-3 h-3 bg-primary rounded-full animate-pulse"}),s.jsx("span",{className:"text-sm font-medium",children:"AI-Powered Analysis"})]})}),s.jsx("div",{className:"absolute -bottom-4 -right-4 bg-card p-4 rounded-xl shadow-card border backdrop-blur-sm",children:s.jsxs("div",{className:"text-sm",children:[s.jsx("div",{className:"font-semibold text-primary",children:"Potential Savings"}),s.jsx("div",{className:"text-2xl font-bold",children:"$20K"})]})})]})]})})]}),cX=()=>s.jsx("section",{className:"py-16 bg-card/50 border-b",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-6",children:"Stop Reinventing Sales. Start Converting Faster."}),s.jsx("p",{children:"We’ve lived consulting pains — We’ve helped streamline discovery-to-close for experts across sectors"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Consultants and fractional COOs lose hours in unpaid discovery calls that don't convert. Clientli fixes this by combining speed, value, and predictability in one platform."})]})})}),z=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:J("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
527z.displayName="Card";const oe=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:J("flex flex-col space-y-1.5 p-6",e),...t}));oe.displayName="CardHeader";const le=b.forwardRef(({className:e,...t},r)=>s.jsx("h3",{ref:r,className:J("text-2xl font-semibold leading-none tracking-tight",e),...t}));le.displayName="CardTitle";const _n=b.forwardRef(({className:e,...t},r)=>s.jsx("p",{ref:r,className:J("text-sm text-muted-foreground",e),...t}));_n.displayName="CardDescription";const V=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:J("p-6 pt-0",e),...t}));V.displayName="CardContent";const uX=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:J("flex items-center p-6 pt-0",e),...t}));uX.displayName="CardFooter";const dX=()=>s.jsx("section",{className:"py-24 bg-gradient-subtle",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 border border-primary/20 backdrop-blur-sm mb-4",children:[s.jsx(Ro,{className:"h-4 w-4 text-primary"}),s.jsx("span",{className:"text-sm font-medium text-primary",children:"Product Walkthrough"})]}),s.jsx("h2",{className:"text-3xl lg:text-5xl font-bold mb-4",children:"See Clientli in Action"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Watch how consultants are turning discovery calls into winning proposals in minutes, not hours"})]}),s.jsxs("div",{className:"max-w-5xl mx-auto",children:[s.jsx(z,{className:"overflow-hidden shadow-elegant border-0",children:s.jsxs("div",{className:"aspect-video w-full bg-muted relative group",children:[s.jsx("iframe",{src:"https://www.youtube.com/embed/8vrThil2y6I",title:"Clientli Product Walkthrough",className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/20 to-transparent pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity"})]})}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[s.jsxs("div",{className:"text-center p-6",children:[s.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"5 min"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Average setup time"})]}),s.jsxs("div",{className:"text-center p-6",children:[s.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"90%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Time saved on proposals"})]}),s.jsxs("div",{className:"text-center p-6",children:[s.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"3X"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster client closes"})]})]})]})]})}),D2=[{icon:Si,title:"Upload Discovery Calls & Notes",description:"Clientli automatically extracts pains, c
527ontext, and blockers.",step:"01"},{icon:rt,title:"Generate Customised Proposals",description:"Instant drafts that highlight quick wins and link price to value.",step:"02"},{icon:qe,title:"Send & Scale with Confidence",description:"Deliver proposals faster, win trust, and repeat the process predictably.",step:"03"}],fX=()=>s.jsx("section",{id:"how-it-works",className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:["How It"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Works"})]}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"From Call to Closed Deal in 3 Steps"})]}),s.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:D2.map((e,t)=>s.jsxs("div",{className:"relative text-center",children:[t<D2.length-1&&s.jsx("div",{className:"hidden lg:block absolute top-16 left-full w-full h-0.5 bg-gradient-to-r from-primary/30 to-transparent -translate-x-1/2 -translate-y-1/2"}),s.jsxs("div",{className:"relative z-10 mb-6 flex items-center justify-center gap-4",children:[s.jsx("div",{className:"w-8 h-8 bg-primary rounded-full flex items-center justify-center text-sm font-bold text-primary-foreground",children:e.step}),s.jsx("div",{className:"w-20 h-20 bg-gradient-primary rounded-full flex items-center justify-center shadow-glow",children:s.jsx(e.icon,{className:"h-8 w-8 text-primary-foreground"})})]}),s.jsx("h3",{className:"text-xl font-semibold mb-3",children:e.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.description})]},t))})]})});var Fv="Tabs",[hX,zCe]=qt(Fv,[fu]),KR=fu(),[mX,kN]=hX(Fv),YR=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=du(l),[f,h]=Gr({prop:n,onChange:a,defaultProp:i??"",caller:Fv});return s.jsx(mX,{scope:r,baseId:qr(),value:f,onValueChange:h,orientation:o,dir:d,activationMode:c,children:s.jsx(xe.div,{dir:d,"data-orientation":o,...u,ref:t})})});YR.displayName=Fv;var XR="TabsList",QR=b.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...a}=e,i=kN(XR,r),o=KR(r);return s.jsx(fN,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:s.jsx(xe.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});QR.displayName=XR;var JR="TabsTrigger",ZR=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:a=!1,...i}=e,o=kN(JR,r),l=KR(r),c=r4(o.baseId,n),u=n4(o.baseId,n),d=n===o.value;return s.jsx(hN,{asChild:!0,...l,focusable:!a,active:d,children:s.jsx(xe.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:t,onMouseDown:se(e.onMouseDown,f=>{!a&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:se(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:se(e.onFocus,()=>{const f=o.activationMode!=="manual";!d&&!a&&f&&o.onValueChange(n)})})})});ZR.displayName=JR;var e4="TabsContent",t4=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:a,children:i,...o}=e,l=kN(e4,r),c=r4(l.baseId,n),u=n4(l.baseId,n),d=n===l.value,f=b.useRef(d);return b.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),s.jsx(yr,{present:a||d,children:({present:h})=>s.jsx(xe.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&i})})});t4.displayName=e4;function r4(e,t){return`${e}-trigger-${t}`}function n4(e,t){return`${e}-content-${t}`}var pX=YR,s4=QR,a4=ZR,i4=t4;const gs=pX,In=b.forwardRef(({className:e,...t},r)=>s.jsx(s4,{ref:r,className:J("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));In.displayName=s4.displayName;const Ve=b.forwardRef(({className:e,...t},r)=>s.jsx(a4,{ref:r,className:J("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Ve.displayName=a4.displayName;const He=b.forwardRef(({className:e,...t},r)=>s.jsx(i4,{ref:r,className:J("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));He.displayName=i4.displayName;const gX=Jo("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ue({className:e,variant:t,...r}){return s.jsx("div",{className:J(gX({variant:t}),e),...r})}var o4={exports:{}},l4={};/**
528 * @license React
529 * use-sync-external-store-shim.production.js
530 *
531 * Copyright (c) Meta Platforms, Inc. and affiliates.
532 *
533 * This source code is licensed under the MIT license found in the
534 * LICENSE file in the root directory of this source tree.
535 */var Pc=b;function vX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xX=typeof Object.is=="function"?Object.is:vX,yX=Pc.useState,bX=Pc.useEffect,wX=Pc.useLayoutEffect,jX=Pc.useDebugValue;function NX(e,t){var r=t(),n=yX({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];
535return wX(function(){a.value=r,a.getSnapshot=t,Jy(a)&&i({inst:a})},[e,r,t]),bX(function(){return Jy(a)&&i({inst:a}),e(function(){Jy(a)&&i({inst:a})})},[e]),jX(r),r}function Jy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!xX(e,r)}catch{return!0}}function SX(e,t){return t()}var _X=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?SX:NX;l4.useSyncExternalStore=Pc.useSyncExternalStore!==void 0?Pc.useSyncExternalStore:_X;o4.exports=l4;var kX=o4.exports;function PX(){return kX.useSyncExternalStore(CX,()=>!0,()=>!1)}function CX(){return()=>{}}var PN="Avatar",[OX,UCe]=qt(PN),[AX,c4]=OX(PN),u4=b.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[a,i]=b.useState("idle");return s.jsx(AX,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:s.jsx(xe.span,{...n,ref:t})})});u4.displayName=PN;var d4="AvatarImage",f4=b.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:a=()=>{},...i}=e,o=c4(d4,r),l=EX(n,i),c=Er(u=>{a(u),o.onImageLoadingStatusChange(u)});return At(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?s.jsx(xe.img,{...i,ref:t,src:n}):null});f4.displayName=d4;var h4="AvatarFallback",m4=b.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...a}=e,i=c4(h4,r),[o,l]=b.useState(n===void 0);return b.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&i.imageLoadingStatus!=="loaded"?s.jsx(xe.span,{...a,ref:t}):null});m4.displayName=h4;function L2(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function EX(e,{referrerPolicy:t,crossOrigin:r}){const n=PX(),a=b.useRef(null),i=n?(a.current||(a.current=new window.Image),a.current):null,[o,l]=b.useState(()=>L2(i,e));return At(()=>{l(L2(i,e))},[i,e]),At(()=>{const c=f=>()=>{l(f)};if(!i)return;const u=c("loaded"),d=c("error");return i.addEventListener("load",u),i.addEventListener("error",d),t&&(i.referrerPolicy=t),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,r,t]),o}var p4=u4,g4=f4,v4=m4;const Bv=b.forwardRef(({className:e,...t},r)=>s.jsx(p4,{ref:r,className:J("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Bv.displayName=p4.displayName;const CN=b.forwardRef(({className:e,...t},r)=>s.jsx(g4,{ref:r,className:J("aspect-square h-full w-full",e),...t}));CN.displayName=g4.displayName;const zv=b.forwardRef(({className:e,...t},r)=>s.jsx(v4,{ref:r,className:J("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));zv.displayName=v4.displayName;var ON="Progress",AN=100,[TX,WCe]=qt(ON),[IX,$X]=TX(ON),x4=b.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:a,getValueLabel:i=MX,...o}=e;(a||a===0)&&!F2(a)&&console.error(RX(`${a}`,"Progress"));const l=F2(a)?a:AN;n!==null&&!B2(n,l)&&console.error(DX(`${n}`,"Progress"));const c=B2(n,l)?n:null,u=Mp(c)?i(c,l):void 0;return s.jsx(IX,{scope:r,value:c,max:l,children:s.jsx(xe.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Mp(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":w4(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});x4.displayName=ON;var y4="ProgressIndicator",b4=b.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,a=$X(y4,r);return s.jsx(xe.div,{"data-state":w4(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...n,ref:t})});b4.displayName=y4;function MX(e,t){return`${Math.round(e/t*100)}%`}function w4(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Mp(e){return typeof e=="number"}function F2(e){return Mp(e)&&!isNaN(e)&&e>0}function B2(e,t){return Mp(e)&&!isNaN(e)&&e<=t&&e>=0}function RX(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${AN}\`.`}function DX(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
536  - a positive number
537  - less than the value passed to \`max\` (or ${AN} if no \`max\` prop is set)
538  - \`null\` or \`undefined\` if the progress is indeterminate.
539
540Defaulting to \`null\`.`}var j4=x4,LX=b4;const vs=b.forwardRef(({className:e,value:t,...r},n)=>s.jsx(j4,{ref:n,className:J("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:s.jsx(LX,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));vs.displayName=j4.displayName;const Zy="/assets/avatar-sarah-dKq2KTtm.jpg",z2="/assets/avatar-james-B0WqBgg7.jpg",FX=[{id:1,speaker:"Sarah Chen",role:"Head of Operations",avatar:Zy,time:"0:00",text:"We're struggling with data inconsistency across our supplier network. Each regional team uses different formats, and it's creating massive delays in our monthly reporting.",tag:"Data inconsistency",type:"challenge"},{id:2,speaker:"James Rodriguez",role:"IT Director",avatar:z2,time:"1:45",text:"The security audit last quarter flagged our data handling processes. We need a centralized system that maintains compliance while still giving teams flexibility.",tag:"Security concerns",type:"challenge"},{id:3,speaker:"Sarah Chen",role:"Head of Operations",avatar:Zy,time:"3:20",text:"If we could automate just the data validation step, I estimate we'd save about 120 hours per month across the team. That's real ROI 
540we can measure.",tag:"Automation ROI",type:"outcome"},{id:4,speaker:"James Rodriguez",role:"IT Director",avatar:z2,time:"5:10",text:"My biggest concern is adoption. We've rolled out new systems before and gotten pushback from the regional managers. They're worried about learning curves.",tag:"Change resistance",type:"challenge"},{id:5,speaker:"Sarah Chen",role:"Head of Operations",avatar:Zy,time:"6:35",text:"There's a huge opportunity here. If we standardize the data entry process, we could potentially expand to 15 new supplier partnerships next year instead of just 5.",tag:"Growth opportunity",type:"opportunity"}],BX=e=>{switch(e){case"challenge":return"border-l-destructive bg-destructive/5";case"outcome":return"border-l-primary bg-primary/5";case"opportunity":return"border-l-chart-2 bg-chart-2/5";default:return"border-l-muted"}},zX=e=>{switch(e){case"challenge":return"destructive";case"outcome":return"default";case"opportunity":return"secondary";default:return"outline"}},UX=()=>{const[e,t]=b.useState(!1);return s.jsxs("div",{className:"bg-background",children:[s.jsx("div",{className:"absolute top-4 right-4 z-10",children:s.jsx(ue,{variant:"outline",className:"bg-background/95 backdrop-blur",children:"Preview Mode"})}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 p-6",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"overflow-hidden",children:s.jsxs("div",{className:"aspect-video bg-muted flex items-center justify-center relative",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 to-transparent"}),s.jsx(W,{variant:"outline",size:"lg",className:"cursor-not-allowed z-10",onClick:r=>{r.preventDefault(),t(!e)},children:e?s.jsx(Gd,{className:"h-8 w-8"}):s.jsx(Ro,{className:"h-8 w-8"})}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-background/95 to-transparent",children:[s.jsx(vs,{value:35,className:"mb-2"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"3:42 / 10:28"})]})]})}),s.jsxs(z,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"font-semibold",children:"Transcript"}),s.jsxs(W,{variant:"outline",size:"sm",className:"cursor-not-allowed",children:[s.jsx(W1,{className:"h-4 w-4 mr-2"}),"Copy"]})]}),s.jsx("div",{className:"space-y-3 max-h-[400px] overflow-y-auto",children:FX.map(r=>s.jsx("div",{className:`p-3 rounded-lg border-l-4 ${BX(r.type)}`,children:s.jsxs("div",{className:"flex items-start gap-3 mb-2",children:[s.jsxs(Bv,{className:"h-8 w-8",children:[s.jsx(CN,{src:r.avatar,alt:r.speaker}),s.jsx(zv,{children:r.speaker[0]})]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"font-medium text-sm",children:r.speaker}),s.jsx("span",{className:"text-xs text-muted-foreground",children:r.time})]}),s.jsx("p",{className:"text-sm text-foreground mb-2",children:r.text}),s.jsx(ue,{variant:zX(r.type),className:"text-xs",children:r.tag})]})]})},r.id))})]})]}),s.jsx("div",{children:s.jsxs(z,{className:"p-6",children:[s.jsxs(gs,{defaultValue:"lean",children:[s.jsxs(In,{className:"grid w-full grid-cols-3 mb-6",children:[s.jsx(Ve,{value:"lean",children:"Lean Thinking"}),s.jsx(Ve,{value:"change",children:"Change Mgmt"}),s.jsx(Ve,{value:"recs",children:"Actions"})]}),s.jsxs(He,{value:"lean",className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2 text-chart-2",children:"Strengths"}),s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-chart-2 mt-2"}),s.jsx("span",{children:"Clear value stream identified in supplier data flow"})]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-chart-2 mt-2"}),s.jsx("span",{children:"Quantified waste: 120 hours/month in manual validation"})]})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2 text-primary",children:"Growth Areas"}),s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-2"}
vendor: 8,283 bytes, line 540
540),s.jsx("span",{children:"Map complete end-to-end process before automation"})]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary mt-2"}),s.jsx("span",{children:"Identify bottlenecks beyond data validation step"})]})]})]})]}),s.jsxs(He,{value:"change",className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2 text-chart-2",children:"Readiness Indicators"}),s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-chart-2 mt-2"}),s.jsx("span",{children:"Leadership alignment on problem (Sarah & James)"})]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-chart-2 mt-2"}),s.jsx("span",{children:"Clear pain point with measurable impact"})]})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2 text-destructive",children:"Resistance Risks"}),s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-destructive mt-2"}),s.jsx("span",{children:"Regional managers concerned about learning curve"})]}),s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-destructive mt-2"}),s.jsx("span",{children:"Previous system rollouts faced pushback"})]})]})]})]}),s.jsxs(He,{value:"recs",className:"space-y-3",children:[s.jsxs(z,{className:"p-4 bg-primary/5 border-primary/20",children:[s.jsx("h4",{className:"font-semibold text-sm mb-2",children:"Immediate Action"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Schedule stakeholder workshop with regional managers to address concerns"}),s.jsx(W,{size:"sm",className:"cursor-not-allowed w-full",children:"Add to Proposal"})]}),s.jsxs(z,{className:"p-4 bg-secondary/5 border-secondary/20",children:[s.jsx("h4",{className:"font-semibold text-sm mb-2",children:"Follow-up Discovery"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Deep-dive session on current data validation process steps"}),s.jsx(W,{size:"sm",variant:"secondary",className:"cursor-not-allowed w-full",children:"Schedule Call"})]}),s.jsxs(z,{className:"p-4 bg-muted/50",children:[s.jsx("h4",{className:"font-semibold text-sm mb-2",children:"Proposal Focus"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Lead with ROI story (120 hrs/month), address change management in implementation plan"})]})]})]}),s.jsx("div",{className:"mt-6 pt-6 border-t",children:s.jsxs(W,{className:"w-full cursor-not-allowed",size:"lg",children:[s.jsx(rh,{className:"mr-2 h-4 w-4"}),"Export to Proposal Builder"]})})]})})]})]})};var WX=Array.isArray,Kr=WX,VX=typeof mr=="object"&&mr&&mr.Object===Object&&mr,N4=VX,HX=N4,qX=typeof self=="object"&&self&&self.Object===Object&&self,GX=HX||qX||Function("return this")(),Gs=GX,KX=Gs,YX=KX.Symbol,vh=YX,U2=vh,S4=Object.prototype,XX=S4.hasOwnProperty,QX=S4.toString,Bu=U2?U2.toStringTag:void 0;function JX(e){var t=XX.call(e,Bu),r=e[Bu];try{e[Bu]=void 0;var n=!0}catch{}var a=QX.call(e);return n&&(t?e[Bu]=r:delete e[Bu]),a}var ZX=JX,eQ=Object.prototype,tQ=eQ.toString;function rQ(e){return tQ.call(e)}var nQ=rQ,W2=vh,sQ=ZX,aQ=nQ,iQ="[object Null]",oQ="[object Undefined]",V2=W2?W2.toStringTag:void 0;function lQ(e){return e==null?e===void 0?oQ:iQ:V2&&V2 in Object(e)?sQ(e):aQ(e)}var Ca=lQ;function cQ(e){return e!=null&&typeof e=="object"}var Oa=cQ,uQ=Ca,dQ=Oa,fQ="[object Symbol]";function hQ(e){return typeof e=="symbol"||dQ(e)&&uQ(e)==fQ}var pu=hQ,mQ=Kr,pQ=pu,gQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vQ=/^\w*$/;function xQ(e,t){if(mQ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pQ(e)?!0:vQ.test(e)||!gQ.test(e)||t!=null&&e in Object(t)}var EN=xQ;function yQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Di=yQ;const gu=Ke(Di);var bQ=Ca,wQ=Di,jQ="[object AsyncFunction]",NQ="[object Function]",SQ="[object GeneratorFunction]",_Q="[object Proxy]";function kQ(e){if(!wQ(e))return!1;var t=bQ(e);return t==NQ||t==SQ||t==jQ||t==_Q}var TN=kQ;const Se=Ke(TN);var PQ=Gs,CQ=PQ["__core-js_shared__"],OQ=CQ,eb=OQ,H2=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AQ(e){return!!H2&&H2 in e}var EQ=AQ,TQ=Function.prototype,IQ=TQ.toString;function $Q(e){if(e!=null){try{return IQ.call(e)}catch{}try{return e+""}catch{}}return""}var _4=$Q,MQ=TN,RQ=EQ,DQ=Di,LQ=_4,FQ=/[\\^$.*+?()[\]{}|]/g,BQ=/^\[object .+?Constructor\]$/,zQ=Function.prototype,UQ=Object.prototype,WQ=zQ.toString,VQ=UQ.hasOwnProperty,HQ=RegExp("^"+WQ.call(VQ).replace(FQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qQ(e){if(!DQ(e)||RQ(e))return!1;var t=MQ(e)?HQ:BQ;return t.test(LQ(e))}var GQ=qQ;function KQ(e,t){return e==null?void 0:e[t]}var YQ=KQ,XQ=GQ,QQ=YQ;function JQ(e,t){var r=QQ(e,t);return XQ(r)?r:void 0}var rl=JQ,ZQ=rl,eJ=ZQ(Object,"create"),Uv=eJ,q2=Uv;function tJ(){this.__data__=q2?q2(null):{},this.size=0}var rJ=tJ;function nJ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sJ=nJ,aJ=Uv,iJ="__lodash_hash_undefined__",oJ=Object.prototype,lJ=oJ.hasOwnProperty;function cJ(e){var t=this.__data__;if(aJ){var r=t[e];return r===iJ?void 0:r}return lJ.call(t,e)?t[e]:void 0}var uJ=cJ,dJ=Uv,fJ=Object.prototype,hJ=fJ.hasOwnProperty;function mJ(e){var t=this.__data__;return dJ?t[e]!==void 0:hJ.call(t,e)}var pJ=mJ,gJ=Uv,vJ="__lodash_hash_undefined__";function xJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gJ&&t===void 0?vJ:t,this}var yJ=xJ,bJ=rJ,wJ=sJ,jJ=uJ,NJ=pJ,SJ=yJ;function vu(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])}}vu.prototype.clear=bJ;vu.prototype.delete=wJ;vu.prototype.get=jJ;vu.prototype.has=NJ;vu.prototype.set=SJ;var _J=vu;function kJ(){this.__data__=[],this.size=0}var PJ=kJ;function CJ(e,t){return e===t||e!==e&&t!==t}var IN=CJ,OJ=IN;function AJ(e,t){for(var r=e.length;r--;)if(OJ(e[r][0],t))return r;return-1}var Wv=AJ,EJ=Wv,TJ=Array.prototype,IJ=TJ.splice;function $J(e){var t=this.__data__,r=EJ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():IJ.call(t,r,1),--this.size,!0}var MJ=$J,RJ=Wv;function DJ(e){var t=this.__data__,r=RJ(t,e);return r<0?void 0:t[r][1]}var LJ=DJ,FJ=Wv;function BJ(e){return FJ(this.__data__,e)>-1}var zJ=BJ,UJ=Wv;function WJ(e,t){var r=this.__data__,n=UJ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VJ=WJ,HJ=PJ,qJ=MJ,GJ=LJ,KJ=zJ,YJ=VJ;function xu(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])}}xu.prototype.clear=HJ;xu.prototype.delete=qJ;xu.prototype.get=GJ;xu.prototype.has=KJ;xu.prototype.set=YJ;var Vv=xu,XJ=rl,QJ=Gs,JJ=XJ(QJ,"Map"),$N=JJ,G2=_J,ZJ=Vv,eZ=$N;function tZ(){this.size=0,this.__data__={hash:new G2,map:new(eZ||ZJ),string:new G2}}var rZ=tZ;function nZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sZ=nZ,aZ=sZ;function iZ(e,t){var r=e.__data__;return aZ(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Hv=iZ,oZ=Hv;function lZ(e){var t=oZ(this,e).delete(e);return this.size-=t?1:0,t}var cZ=lZ,uZ=Hv;function dZ(e){return uZ(this,e).get(e)}var fZ=dZ,hZ=Hv;function mZ(e){return hZ(this,e).has(e)}var pZ=mZ,gZ=Hv;function vZ(e,t){var r=gZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xZ=vZ,yZ=rZ,bZ=cZ,wZ=fZ,jZ=pZ,NZ=xZ;function yu(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])}}yu.prototype.clear=yZ;yu.prototype.delete=bZ;yu.prototype.get=wZ;yu.prototype.has=jZ;yu.prototype.set=NZ;var MN=yu,k4=MN,SZ="Expected a function";function RN(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(SZ);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(RN.Cache||k4),r}RN.Cache=k4;var P4=RN;const _Z=Ke(P4);var kZ=P4,PZ=500;function CZ(e){var t=kZ(e,function(n){return r.size===PZ&&r.clear(),n}
vendor: 6,699 bytes, lines 540-548
540),r=t.cache;return t}var OZ=CZ,AZ=OZ,EZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TZ=/\\(\\)?/g,IZ=AZ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EZ,function(r,n,a,i){t.push(a?i.replace(TZ,"$1"):n||r)}),t}),$Z=IZ;function MZ(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var DN=MZ,K2=vh,RZ=DN,DZ=Kr,LZ=pu,FZ=1/0,Y2=K2?K2.prototype:void 0,X2=Y2?Y2.toString:void 0;function C4(e){if(typeof e=="string")return e;if(DZ(e))return RZ(e,C4)+"";if(LZ(e))return X2?X2.call(e):"";var t=e+"";return t=="0"&&1/e==-FZ?"-0":t}var BZ=C4,zZ=BZ;function UZ(e){return e==null?"":zZ(e)}var O4=UZ,WZ=Kr,VZ=EN,HZ=$Z,qZ=O4;function GZ(e,t){return WZ(e)?e:VZ(e,t)?[e]:HZ(qZ(e))}var A4=GZ,KZ=pu,YZ=1/0;function XZ(e){if(typeof e=="string"||KZ(e))return e;var t=e+"";return t=="0"&&1/e==-YZ?"-0":t}var qv=XZ,QZ=A4,JZ=qv;function ZZ(e,t){t=QZ(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[JZ(t[r++])];return r&&r==n?e:void 0}var LN=ZZ,eee=LN;function tee(e,t,r){var n=e==null?void 0:eee(e,t);return n===void 0?r:n}var E4=tee;const cn=Ke(E4);function ree(e){return e==null}var nee=ree;const Ce=Ke(nee);var see=Ca,aee=Kr,iee=Oa,oee="[object String]";function lee(e){return typeof e=="string"||!aee(e)&&iee(e)&&see(e)==oee}var cee=lee;const Lo=Ke(cee);var T4={exports:{}},Qe={};/**
541 * @license React
542 * react-is.production.min.js
543 *
544 * Copyright (c) Facebook, Inc. and its affiliates.
545 *
546 * This source code is licensed under the MIT license found in the
547 * LICENSE file in the root directory of this source tree.
548 */var FN=Symbol.for("react.element"),BN=Symbol.for("react.portal"),Gv=Symbol.for("react.fragment"),Kv=Symbol.for("react.strict_mode"),Yv=Symbol.for("react.profiler"),Xv=Symbol.for("react.provider"),Qv=Symbol.for("react.context"),uee=Symbol.for("react.server_context"),Jv=Symbol.for("react.forward_ref"),Zv=Symbol.for("react.suspense"),ex=Symbol.for("react.suspense_list"),tx=Symbol.for("react.memo"),rx=Symbol.for("react.lazy"),dee=Symbol.for("react.offscreen"),I4;I4=Symbol.for("react.module.reference");function Mn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FN:switch(e=e.type,e){case Gv:case Yv:case Kv:case Zv:case ex:return e;default:switch(e=e&&e.$$typeof,e){case uee:case Qv:case Jv:case rx:case tx:case Xv:return e;default:return t}}case BN:return t}}}Qe.ContextConsumer=Qv;Qe.ContextProvider=Xv;Qe.Element=FN;Qe.ForwardRef=Jv;Qe.Fragment=Gv;Qe.Lazy=rx;Qe.Memo=tx;Qe.Portal=BN;Qe.Profiler=Yv;Qe.StrictMode=Kv;Qe.Suspense=Zv;Qe.SuspenseList=ex;Qe.isAsyncMode=function(){return!1};Qe.isConcurrentMode=function(){return!1};Qe.isContextConsumer=function(e){return Mn(e)===Qv};Qe.isContextProvider=function(e){return Mn(e)===Xv};Qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FN};Qe.isForwardRef=function(e){return Mn(e)===Jv};Qe.isFragment=function(e){return Mn(e)===Gv};Qe.isLazy=function(e){return Mn(e)===rx};Qe.isMemo=function(e){return Mn(e)===tx};Qe.isPortal=function(e){return Mn(e)===BN};Qe.isProfiler=function(e){return Mn(e)===Yv};Qe.isStrictMode=function(e){return Mn(e)===Kv};Qe.isSuspense=function(e){return Mn(e)===Zv};Qe.isSuspenseList=function(e){return Mn(e)===ex};Qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gv||e===Yv||e===Kv||e===Zv||e===ex||e===dee||typeof e=="object"&&e!==null&&(e.$$typeof===rx||e.$$typeof===tx||e.$$typeof===Xv||e.$$typeof===Qv||e.$$typeof===Jv||e.$$typeof===I4||e.getModuleId!==void 0)};Qe.typeOf=Mn;T4.exports=Qe;var fee=T4.exports,hee=Ca,mee=Oa,pee="[object Number]";function gee(e){return typeof e=="number"||mee(e)&&hee(e)==pee}var $4=gee;const vee=Ke($4);var xee=$4;function yee(e){return xee(e)&&e!=+e}var bee=yee;const xh=Ke(bee);var _r=function(t){return t===0?0:t>0?1:-1},po=function(t){return Lo(t)&&t.indexOf("%")===t.length-1},ae=function(t){return vee(t)&&!xh(t)},wee=function(t){return Ce(t)},Vt=function(t){return ae(t)||Lo(t)},jee=0,bu=function(t){var r=++jee;return"".concat(t||"").concat(r)},kr=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ae(t)&&!Lo(t))return n;var i;if(po(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return xh(i)&&(i=n),a&&i>r&&(i=r),i},Ja=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Nee=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},en=function(t,r){return ae(t)&&ae(r)?function(n){return t+n*(r-t)}:function(){return r}};function Rp(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):cn(n,t))===r})}var See=function(t,r){return ae(t)&&ae(r)?t-r:Lo(t)&&Lo(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function tc(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 nw(e){"@babel/helpers - typeof";return nw=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},nw(e)}var _ee=["viewBox","children"],kee=["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
548dering","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"],Q2=["points","pathLength"],tb={svg:_ee,polygon:Q2,polyline:Q2},zN=["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
548Capture","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"],Dp=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(b.isValidElement(t)&&(n=t.props),!gu(n))return null;var a={};return Object.keys(n).forEach(function(i){zN.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},Pee=function(t,r,n){return function(a){return t(r,n,a),null}},Fo=function(t,r,n){if(!gu(t)||nw(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];zN.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=Pee(o,r,n))}),a},Cee=["children"],Oee=["children"];function J2(e,t){if(e==null)return{};var r=Aee(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aee(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 sw(e){"@babel/helpers - typeof";return sw=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},sw(e)}var Z2={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"},fa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},eP=null,rb=null,UN=function e(t){if(t===eP&&Array.isArray(rb))return rb;var r=[];return b.Children.forEach(t,function(n){Ce(n)||(fee.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),rb=r,eP=t,r};function un(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return fa(a)}):n=[fa(t)],UN(e).forEach(function(a){var i=cn(a,"type.displayName")||cn(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function Jr(e,t){var r=un(e,t);return r&&r[0]}var tP=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!ae(n)||n<=0||!ae(a)||a<=0)},Eee=["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"],Tee=function(t){return t&&t.type&&Lo(t.type)&&Eee.indexOf(t.type)>=0},Iee=function(t){return t&&sw(t)==="object"&&"clipDot"in t},$ee=function(t,r,n,a){var i,o=(i=tb==null?void 0:tb[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!Se(t)&&(a&&o.includes(r)||kee.includes(r))||n&&zN.includes(r)},be=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(b.isValidElement(t)&&(a=t.props),!gu(a))return null;var i={};
548return Object.keys(a).forEach(function(o){var l;$ee((l=a)===null||l===void 0?void 0:l[o],o,r,n)&&(i[o]=a[o])}),i},aw=function e(t,r){if(t===r)return!0;var n=b.Children.count(t);if(n!==b.Children.count(r))return!1;if(n===0)return!0;if(n===1)return rP(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!rP(i,o))return!1}return!0},rP=function(t,r){if(Ce(t)&&Ce(r))return!0;if(!Ce(t)&&!Ce(r)){var n=t.props||{},a=n.children,i=J2(n,Cee),o=r.props||{},l=o.children,c=J2(o,Oee);return a&&l?tc(i,c)&&aw(a,l):!a&&!l?tc(i,c):!1}return!1},nP=function(t,r){var n=[],a={};return UN(t).forEach(function(i,o){if(Tee(i))n.push(i);else if(i){var l=fa(i.type),c=r[l]||{},u=c.handler,d=c.once;if(u&&(!d||!a[l])){var f=u(i,l,o);n.push(f),a[l]=!0}}}),n},Mee=function(t){var r=t&&t.type;return r&&Z2[r]?Z2[r]:null},Ree=function(t,r){return UN(r).indexOf(t)},Dee=["children","width","height","viewBox","className","style","title","desc"];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 Lee(e,t){if(e==null)return{};var r=Fee(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fee(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 ow(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,c=e.desc,u=Lee(e,Dee),d=a||{width:r,height:n,x:0,y:0},f=Ae("recharts-surface",i);return I.createElement("svg",iw({},be(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),I.createElement("title",null,l),I.createElement("desc",null,c),t)}var Bee=["children","className"];function lw(){return lw=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},lw.apply(this,arguments)}function zee(e,t){if(e==null)return{};var r=Uee(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uee(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 ze=I.forwardRef(function(e,t){var r=e.children,n=e.className,a=zee(e,Bee),i=Ae("recharts-layer",n);return I.createElement("g",lw({className:i},be(a,!0),{ref:t}),r)}),us=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function Wee(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}var Vee=Wee,Hee=Vee;function qee(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Hee(e,t,r)}var Gee=qee,Kee="\\ud800-\\udfff",Yee="\\u0300-\\u036f",Xee="\\ufe20-\\ufe2f",Qee="\\u20d0-\\u20ff",Jee=Yee+Xee+Qee,Zee="\\ufe0e\\ufe0f",ete="\\u200d",tte=RegExp("["+ete+Kee+Jee+Zee+"]");function rte(e){return tte.test(e)}var M4=rte;function nte(e){return e.split("")}var ste=nte,R4="\\ud800-\\udfff",ate="\\u0300-\\u036f",ite="\\ufe20-\\ufe2f",ote="\\u20d0-\\u20ff",lte=ate+ite+ote,cte="\\ufe0e\\ufe0f",ute="["+R4+"]",cw="["+lte+"]",uw="\\ud83c[\\udffb-\\udfff]",dte="(?:"+cw+"|"+uw+")",D4="[^"+R4+"]",L4="(?:\\ud83c[\\udde6-\\uddff]){2}",F4="[\\ud800-\\udbff][\\udc00-\\udfff]",fte="\\u200d",B4=dte+"?",z4="["+cte+"]?",hte="(?:"+fte+"(?:"+[D4,L4,F4].join("|")+")"+z4+B4+")*",mte=z4+B4+hte,pte="(?:"+[D4+cw+"?",cw,L4,F4,ute].join("|")+")",gte=RegExp(uw+"(?="+uw+")|"+pte+mte,"g");function vte(e){return e.match(gte)||[]}var xte=vte,yte=ste,bte=M4,wte=xte;function jte(e){return bte(e)?wte(e):yte(e)}var Nte=jte,Ste=Gee,_te=M4,kte=Nte,Pte=O4;function Cte(e){return function(t){t=Pte(t);var r=_te(t)?kte(t):void 0,n=r?r[0]:t.charAt(0),a=r?Ste(r,1).join(""):t.slice(1);return n[e]()+a}}var Ote=Cte,Ate=Ote,Ete=Ate("toUpperCase"),Tte=Ete;const nx=Ke(Tte);function it(e){return function(){return e}}const U4=Math.cos,Lp=Math.sin,xs=Math.sqrt,Fp=Math.PI,sx=2*Fp,dw=Math.PI,fw=2*dw,ao=1e-6,Ite=fw-ao;function W4(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $te(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return W4;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class Mte{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?W4:$te(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,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n}
548,${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-t,u=a-r,d=o-t,f=l-r,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>ao)if(!(Math.abs(f*c-u*d)>ao)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,g=a-l,p=c*c+u*u,v=m*m+g*g,y=Math.sqrt(p),x=Math.sqrt(h),w=i*Math.tan((dw-Math.acos((p+h-v)/(2*y*x)))/2),N=w/x,j=w/y;Math.abs(N-1)>ao&&this._append`L${t+N*d},${r+N*f}`,this._append`A${i},${i},0,0,${+(f*m>d*g)},${this._x1=t+j*c},${this._y1=r+j*u}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(a),c=n*Math.sin(a),u=t+l,d=r+c,f=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>ao||Math.abs(this._y1-d)>ao)&&this._append`L${u},${d}`,n&&(h<0&&(h=h%fw+fw),h>Ite?this._append`A${n},${n},0,1,${f},${t-l},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:h>ao&&this._append`A${n},${n},0,${+(h>=dw)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function WN(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 Mte(t)}function VN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function V4(e){this._context=e}V4.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 ax(e){return new V4(e)}function H4(e){return e[0]}function q4(e){return e[1]}function G4(e,t){var r=it(!0),n=null,a=ax,i=null,o=WN(l);e=typeof e=="function"?e:e===void 0?H4:it(e),t=typeof t=="function"?t:t===void 0?q4:it(t);function l(c){var u,d=(c=VN(c)).length,f,h=!1,m;
548for(n==null&&(i=a(m=o())),u=0;u<=d;++u)!(u<d&&r(f=c[u],u,c))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,u,c),+t(f,u,c));if(m)return i=null,m+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:it(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:it(+c),l):t},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:it(!!c),l):r},l.curve=function(c){return arguments.length?(a=c,n!=null&&(i=a(n)),l):a},l.context=function(c){return arguments.length?(c==null?n=i=null:i=a(n=c),l):n},l}function fm(e,t,r){var n=null,a=it(!0),i=null,o=ax,l=null,c=WN(u);e=typeof e=="function"?e:e===void 0?H4:it(+e),t=typeof t=="function"?t:it(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?q4:it(+r);function u(f){var h,m,g,p=(f=VN(f)).length,v,y=!1,x,w=new Array(p),N=new Array(p);for(i==null&&(l=o(x=c())),h=0;h<=p;++h){if(!(h<p&&a(v=f[h],h,f))===y)if(y=!y)m=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=h-1;g>=m;--g)l.point(w[g],N[g]);l.lineEnd(),l.areaEnd()}y&&(w[h]=+e(v,h,f),N[h]=+t(v,h,f),l.point(n?+n(v,h,f):w[h],r?+r(v,h,f):N[h]))}if(x)return l=null,x+""||null}function d(){return G4().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:it(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:it(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:it(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:it(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:it(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:it(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(r)},u.lineX1=function(){return d().x(n).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:it(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class K4{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 Rte(e){return new K4(e,!0)}function Dte(e){return new K4(e,!1)}const HN={draw(e,t){const r=xs(t/Fp);e.moveTo(r,0),e.arc(0,0,r,0,sx)}},Lte={draw(e,t){const r=xs(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()}},Y4=xs(1/3),Fte=Y4*2,Bte={draw(e,t){const r=xs(t/Fte),n=r*Y4;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},zte={draw(e,t){const r=xs(t),n=-r/2;e.rect(n,n,r,r)}},Ute=.8908130915292852,X4=Lp(Fp/10)/Lp(7*Fp/10),Wte=Lp(sx/10)*X4,Vte=-U4(sx/10)*X4,Hte={draw(e,t){const r=xs(t*Ute),n=Wte*r,a=Vte*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=sx*i/5,l=U4(o),c=Lp(o);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*a,c*n+l*a)}e.closePath()}},nb=xs(3),qte={draw(e,t){const r=-xs(t/(nb*3));e.moveTo(0,r*2),e.lineTo(-nb*r,-r),e.lineTo(nb*r,-r),e.closePath()}},gn=-.5,vn=xs(3)/2,hw=1/xs(12),Gte=(hw/2+1)*3,Kte={draw(e,t){const r=xs(t/Gte),n=r/2,a=r*hw,i=n,o=r*hw+r,l=-i,c=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,c),e.lineTo(gn*n-vn*a,vn*n+gn*a),e.lineTo(gn*i-vn*o,vn*i+gn*o),e.lineTo(gn*l-vn*c,vn*l+gn*c),e.lineTo(gn*n+vn*a,gn*a-vn*n),e.lineTo(gn*i+vn*o,gn*o-vn*i),e.lineTo(gn*l+vn*c,gn*c-vn*l),e.closePath()}};function Yte(e,t){let r=null,n=WN(a);e=typeof e=="function"?e:it(e||HN),t=typeof t=="function"?t:it(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:it(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:it(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Bp(){}function zp(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 Q4(e){this._context=e}Q4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zp(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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xte(e){return new Q4(e)}function J4(e){this._context=e}J4.prototype={areaStart:Bp,areaEnd:Bp,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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qte(e){return new J4(e)}function Z4(e){this._context=e}Z4.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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jte(e){return new Z4(e)}function eD(e){this._context=e}eD.prototype={areaStart:Bp,areaEnd:Bp,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 Zte(e){return new eD(e)}function sP(e){return e<0?-1:1}function aP(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),l=(i*a+o*n)/(n+a);return(sP(i)+sP(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function iP(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}
548function sb(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,a+l*t,i-l,o-l*r,i,o)}function Up(e){this._context=e}Up.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:sb(this,this._t0,iP(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,sb(this,iP(this,r=aP(this,e,t)),r);break;default:sb(this,this._t0,r=aP(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tD(e){this._context=new rD(e)}(tD.prototype=Object.create(Up.prototype)).point=function(e,t){Up.prototype.point.call(this,t,e)};function rD(e){this._context=e}rD.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,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function ere(e){return new Up(e)}function tre(e){return new tD(e)}function nD(e){this._context=e}nD.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=oP(e),a=oP(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],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 oP(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function rre(e){return new nD(e)}function ix(e,t){this._context=e,this._t=t}ix.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;default:{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 nre(e){return new ix(e,.5)}function sre(e){return new ix(e,0)}function are(e){return new ix(e,1)}function Cc(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function mw(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function ire(e,t){return e[t]}function ore(e){const t=[];return t.key=e,t}function lre(){var e=it([]),t=mw,r=Cc,n=ire;function a(i){var o=Array.from(e.apply(this,arguments),ore),l,c=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(f,o[l].key,u,i)]).data=f;for(l=0,d=VN(t(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:it(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:it(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?mw:typeof i=="function"?i:it(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Cc,a):r},a}function cre(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Cc(e,t)}}function ure(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Cc(e,t)}}function dre(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=e[t[l]],f=d[n][1]||0,h=d[n-1][1]||0,m=(f-h)/2,g=0;g<l;++g){var p=e[t[g]],v=p[n][1]||0,y=p[n-1][1]||0;m+=v-y}c+=f,u+=m*f}a[n-1][1]+=a[n-1][0]=r,c&&(r-=u/c)}a[n-1][1]+=a[n-1][0]=r,Cc(e,t)}}function af(e){"@babel/helpers - typeof";return af=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},af(e)}var fre=["type","size","sizeType"];function pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 6,896 bytes, lines 548-551
548for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pw.apply(this,arguments)}function lP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function cP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(r),!0).forEach(function(n){hre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hre(e,t,r){return t=mre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mre(e){var t=pre(e,"string");return af(t)=="symbol"?t:t+""}function pre(e,t){if(af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gre(e,t){if(e==null)return{};var r=vre(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vre(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 sD={symbolCircle:HN,symbolCross:Lte,symbolDiamond:Bte,symbolSquare:zte,symbolStar:Hte,symbolTriangle:qte,symbolWye:Kte},xre=Math.PI/180,yre=function(t){var r="symbol".concat(nx(t));return sD[r]||HN},bre=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 a=18*xre;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},wre=function(t,r){sD["symbol".concat(nx(t))]=r},qN=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,c=gre(t,fre),u=cP(cP({},c),{},{type:n,size:i,sizeType:l}),d=function(){var v=yre(n),y=Yte().type(v).size(bre(i,l,n));return y()},f=u.className,h=u.cx,m=u.cy,g=be(u,!0);return h===+h&&m===+m&&i===+i?I.createElement("path",pw({},g,{className:Ae("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:d()})):null};qN.registerSymbol=wre;function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}function gw(){return gw=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},gw.apply(this,arguments)}function uP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sre(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,iD(n.key),n)}}function _re(e,t,r){return t&&Sre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kre(e,t,r){return t=Wp(t),Pre(e,aD()?Reflect.construct(t,r||[],Wp(e).constructor):t.apply(e,r))}function Pre(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cre(e)}function Cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aD=function(){return!!e})()}function Wp(e){return Wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wp(e)}function Ore(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&&vw(e,t)}function vw(e,t){return vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},vw(e,t)}function of(e,t,r){return t=iD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iD(e){var t=Are(e,"string");return Oc(t)=="symbol"?t:t+""}function Are(e,t){if(Oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xn=32,GN=function(e){function t(){return Nre(this,t),kre(this,t,arguments)}return Ore(t,e),_re(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=xn/2,o=xn/6,l=xn/3,c=n.inactive?a:n.color;if(n.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:xn,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,`
549            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
550            H`).concat(xn,"M").concat(2*l,",").concat(i,`
551            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return I.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(xn/8,"h").concat(xn,"v").concat(xn*3/4,"h").concat(-xn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(n.legendIcon)){var u=jre({},n);return delete u.legendIcon,I.cloneElement(n.legendIcon,u)}return I.createElement(qN,{fill:c,cx:i,cy:i,size:xn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,c=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:xn,height:xn}
551,f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(m,g){var p=m.formatter||c,v=Ae(of(of({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",m.inactive));if(m.type==="none")return null;var y=Se(m.value)?null:m.value;us(!Se(m.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 x=m.inactive?u:m.color;return I.createElement("li",gw({className:v,style:f,key:"legend-item-".concat(g)},Fo(n.props,m,g)),I.createElement(ow,{width:o,height:o,viewBox:d,style:h},n.renderIcon(m)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},p?p(y,m,g):y))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(b.PureComponent);of(GN,"displayName","Legend");of(GN,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ere=Vv;function Tre(){this.__data__=new Ere,this.size=0}var Ire=Tre;function $re(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Mre=$re;function Rre(e){return this.__data__.get(e)}var Dre=Rre;function Lre(e){return this.__data__.has(e)}var Fre=Lre,Bre=Vv,zre=$N,Ure=MN,Wre=200;function Vre(e,t){var r=this.__data__;if(r instanceof Bre){var n=r.__data__;if(!zre||n.length<Wre-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ure(n)}return r.set(e,t),this.size=r.size,this}var Hre=Vre,qre=Vv,Gre=Ire,Kre=Mre,Yre=Dre,Xre=Fre,Qre=Hre;function wu(e){var t=this.__data__=new qre(e);this.size=t.size}wu.prototype.clear=Gre;wu.prototype.delete=Kre;wu.prototype.get=Yre;wu.prototype.has=Xre;wu.prototype.set=Qre;var oD=wu,Jre="__lodash_hash_undefined__";function Zre(e){return this.__data__.set(e,Jre),this}var ene=Zre;function tne(e){return this.__data__.has(e)}var rne=tne,nne=MN,sne=ene,ane=rne;function Vp(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nne;++t<r;)this.add(e[t])}Vp.prototype.add=Vp.prototype.push=sne;Vp.prototype.has=ane;var lD=Vp;function ine(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 cD=ine;function one(e,t){return e.has(t)}var uD=one,lne=lD,cne=cD,une=uD,dne=1,fne=2;function hne(e,t,r,n,a,i){var o=r&dne,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,m=r&fne?new lne:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],p=t[f];if(n)var v=o?n(p,g,f,t,e,i):n(g,p,f,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(m){if(!cne(t,function(y,x){if(!une(m,x)&&(g===y||a(g,y,r,n,i)))return m.push(x)})){h=!1;break}}else if(!(g===p||a(g,p,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var dD=hne,mne=Gs,pne=mne.Uint8Array,gne=pne;function vne(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var xne=vne;function yne(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var KN=yne,dP=vh,fP=gne,bne=IN,wne=dD,jne=xne,Nne=KN,Sne=1,_ne=2,kne="[object Boolean]",Pne="[object Date]",Cne="[object Error]",One="[object Map]",Ane="[object Number]",Ene="[object RegExp]",Tne="[object Set]",Ine="[object String]",$ne="[object Symbol]",Mne="[object ArrayBuffer]",Rne="[object DataView]",hP=dP?dP.prototype:void 0,ab=hP?hP.valueOf:void 0;function Dne(e,t,r,n,a,i,o){switch(r){case Rne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mne:return!(e.byteLength!=t.byteLength||!i(new fP(e),new fP(t)));case kne:case Pne:case Ane:return bne(+e,+t);case Cne:return e.name==t.name&&e.message==t.message;case Ene:case Ine:return e==t+"";case One:var l=jne;case Tne:var c=n&Sne;if(l||(l=Nne),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=_ne,o.set(e,t);var d=wne(l(e),l(t),n,a,i,o);return o.delete(e),d;case $ne:if(ab)return ab.call(e)==ab.call(t)}return!1}var Lne=Dne;function Fne(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var fD=Fne,Bne=fD,zne=Kr;function Une(e,t,r){var n=t(e);return zne(e)?n:Bne(n,r(e))}var Wne=Une;function Vne(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var Hne=Vne;function qne(){return[]}var Gne=qne,Kne=Hne,Yne=Gne,Xne=Object.prototype,Qne=Xne.propertyIsEnumerable,mP=Object.getOwnPropertySymbols,Jne=mP?function(e){return e==null?[]:(e=Object(e),Kne(mP(e),function(t){return Qne.call(e,t)}))}:Yne,Zne=Jne;function ese(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var tse=ese,rse=Ca,nse=Oa,sse="[object Arguments]";function ase(e){return nse(e)&&rse(e)==sse}var ise=ase,pP=ise,ose=Oa,hD=Object.prototype,lse=hD.hasOwnProperty,cse=hD.propertyIsEnumerable,use=pP(function(){return arguments}())?pP:function(e){return ose(e)&&lse.call(e,"callee")&&!cse.call(e,"callee")},YN=use,Hp={exports:{}};function dse(){return!1}var fse=dse;Hp.exports;(function(e,t){var r=Gs,n=fse,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;e.exports=u}
vendor: 4,194 bytes, line 551
551)(Hp,Hp.exports);var mD=Hp.exports,hse=9007199254740991,mse=/^(?:0|[1-9]\d*)$/;function pse(e,t){var r=typeof e;return t=t??hse,!!t&&(r=="number"||r!="symbol"&&mse.test(e))&&e>-1&&e%1==0&&e<t}var XN=pse,gse=9007199254740991;function vse(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gse}var QN=vse,xse=Ca,yse=QN,bse=Oa,wse="[object Arguments]",jse="[object Array]",Nse="[object Boolean]",Sse="[object Date]",_se="[object Error]",kse="[object Function]",Pse="[object Map]",Cse="[object Number]",Ose="[object Object]",Ase="[object RegExp]",Ese="[object Set]",Tse="[object String]",Ise="[object WeakMap]",$se="[object ArrayBuffer]",Mse="[object DataView]",Rse="[object Float32Array]",Dse="[object Float64Array]",Lse="[object Int8Array]",Fse="[object Int16Array]",Bse="[object Int32Array]",zse="[object Uint8Array]",Use="[object Uint8ClampedArray]",Wse="[object Uint16Array]",Vse="[object Uint32Array]",dt={};dt[Rse]=dt[Dse]=dt[Lse]=dt[Fse]=dt[Bse]=dt[zse]=dt[Use]=dt[Wse]=dt[Vse]=!0;dt[wse]=dt[jse]=dt[$se]=dt[Nse]=dt[Mse]=dt[Sse]=dt[_se]=dt[kse]=dt[Pse]=dt[Cse]=dt[Ose]=dt[Ase]=dt[Ese]=dt[Tse]=dt[Ise]=!1;function Hse(e){return bse(e)&&yse(e.length)&&!!dt[xse(e)]}var qse=Hse;function Gse(e){return function(t){return e(t)}}var pD=Gse,qp={exports:{}};qp.exports;(function(e,t){var r=N4,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(qp,qp.exports);var Kse=qp.exports,Yse=qse,Xse=pD,gP=Kse,vP=gP&&gP.isTypedArray,Qse=vP?Xse(vP):Yse,gD=Qse,Jse=tse,Zse=YN,eae=Kr,tae=mD,rae=XN,nae=gD,sae=Object.prototype,aae=sae.hasOwnProperty;function iae(e,t){var r=eae(e),n=!r&&Zse(e),a=!r&&!n&&tae(e),i=!r&&!n&&!a&&nae(e),o=r||n||a||i,l=o?Jse(e.length,String):[],c=l.length;for(var u in e)(t||aae.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rae(u,c)))&&l.push(u);return l}var oae=iae,lae=Object.prototype;function cae(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lae;return e===r}var uae=cae;function dae(e,t){return function(r){return e(t(r))}}var vD=dae,fae=vD,hae=fae(Object.keys,Object),mae=hae,pae=uae,gae=mae,vae=Object.prototype,xae=vae.hasOwnProperty;function yae(e){if(!pae(e))return gae(e);var t=[];for(var r in Object(e))xae.call(e,r)&&r!="constructor"&&t.push(r);return t}var bae=yae,wae=TN,jae=QN;function Nae(e){return e!=null&&jae(e.length)&&!wae(e)}var yh=Nae,Sae=oae,_ae=bae,kae=yh;function Pae(e){return kae(e)?Sae(e):_ae(e)}var ox=Pae,Cae=Wne,Oae=Zne,Aae=ox;function Eae(e){return Cae(e,Aae,Oae)}var Tae=Eae,xP=Tae,Iae=1,$ae=Object.prototype,Mae=$ae.hasOwnProperty;function Rae(e,t,r,n,a,i){var o=r&Iae,l=xP(e),c=l.length,u=xP(t),d=u.length;if(c!=d&&!o)return!1;for(var f=c;f--;){var h=l[f];if(!(o?h in t:Mae.call(t,h)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var p=!0;i.set(e,t),i.set(t,e);for(var v=o;++f<c;){h=l[f];var y=e[h],x=t[h];if(n)var w=o?n(x,y,h,t,e,i):n(y,x,h,e,t,i);if(!(w===void 0?y===x||a(y,x,r,n,i):w)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var N=e.constructor,j=t.constructor;N!=j&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof j=="function"&&j instanceof j)&&(p=!1)}return i.delete(e),i.delete(t),p}var Dae=Rae,Lae=rl,Fae=Gs,Bae=Lae(Fae,"DataView"),zae=Bae,Uae=rl,Wae=Gs,Vae=Uae(Wae,"Promise"),Hae=Vae,qae=rl,Gae=Gs,Kae=qae(Gae,"Set"),xD=Kae,Yae=rl,Xae=Gs,Qae=Yae(Xae,"WeakMap"),Jae=Qae,xw=zae,yw=$N,bw=Hae,ww=xD,jw=Jae,yD=Ca,ju=_4,yP="[object Map]",Zae="[object Object]",bP="[object Promise]",wP="[object Set]",jP="[object WeakMap]",NP="[object DataView]",eie=ju(xw),tie=ju(yw),rie=ju(bw),nie=ju(ww),sie=ju(jw),io=yD;(xw&&io(new xw(new ArrayBuffer(1)))!=NP||yw&&io(new yw)!=yP||bw&&io(bw.resolve())!=bP||ww&&io(new ww)!=wP||jw&&io(new jw)!=jP)&&(io=function(e){var t=yD(e),r=t==Zae?e.constructor:void 0,n=r?ju(r):"";if(n)switch(n){case eie:return NP;case tie:return yP;case rie:return bP;case nie:return wP;case sie:return jP}return t});var aie=io,ib=oD,iie=dD,oie=Lne,lie=Dae,SP=aie,_P=Kr,kP=mD,cie=gD,uie=1,PP="[object Arguments]",CP="[object Array]",hm
vendor: 4,322 bytes, line 551
551="[object Object]",die=Object.prototype,OP=die.hasOwnProperty;function fie(e,t,r,n,a,i){var o=_P(e),l=_P(t),c=o?CP:SP(e),u=l?CP:SP(t);c=c==PP?hm:c,u=u==PP?hm:u;var d=c==hm,f=u==hm,h=c==u;if(h&&kP(e)){if(!kP(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new ib),o||cie(e)?iie(e,t,r,n,a,i):oie(e,t,c,r,n,a,i);if(!(r&uie)){var m=d&&OP.call(e,"__wrapped__"),g=f&&OP.call(t,"__wrapped__");if(m||g){var p=m?e.value():e,v=g?t.value():t;return i||(i=new ib),a(p,v,r,n,i)}}return h?(i||(i=new ib),lie(e,t,r,n,a,i)):!1}var hie=fie,mie=hie,AP=Oa;function bD(e,t,r,n,a){return e===t?!0:e==null||t==null||!AP(e)&&!AP(t)?e!==e&&t!==t:mie(e,t,r,n,bD,a)}var JN=bD,pie=oD,gie=JN,vie=1,xie=2;function yie(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=r[a];var c=l[0],u=e[c],d=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new pie;if(n)var h=n(u,d,c,e,t,f);if(!(h===void 0?gie(d,u,vie|xie,n,f):h))return!1}}return!0}var bie=yie,wie=Di;function jie(e){return e===e&&!wie(e)}var wD=jie,Nie=wD,Sie=ox;function _ie(e){for(var t=Sie(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Nie(a)]}return t}var kie=_ie;function Pie(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var jD=Pie,Cie=bie,Oie=kie,Aie=jD;function Eie(e){var t=Oie(e);return t.length==1&&t[0][2]?Aie(t[0][0],t[0][1]):function(r){return r===e||Cie(r,e,t)}}var Tie=Eie;function Iie(e,t){return e!=null&&t in Object(e)}var $ie=Iie,Mie=A4,Rie=YN,Die=Kr,Lie=XN,Fie=QN,Bie=qv;function zie(e,t,r){t=Mie(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=Bie(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&Fie(a)&&Lie(o,a)&&(Die(e)||Rie(e)))}var Uie=zie,Wie=$ie,Vie=Uie;function Hie(e,t){return e!=null&&Vie(e,t,Wie)}var qie=Hie,Gie=JN,Kie=E4,Yie=qie,Xie=EN,Qie=wD,Jie=jD,Zie=qv,eoe=1,toe=2;function roe(e,t){return Xie(e)&&Qie(t)?Jie(Zie(e),t):function(r){var n=Kie(r,e);return n===void 0&&n===t?Yie(r,e):Gie(t,n,eoe|toe)}}var noe=roe;function soe(e){return e}var Nu=soe;function aoe(e){return function(t){return t==null?void 0:t[e]}}var ioe=aoe,ooe=LN;function loe(e){return function(t){return ooe(t,e)}}var coe=loe,uoe=ioe,doe=coe,foe=EN,hoe=qv;function moe(e){return foe(e)?uoe(hoe(e)):doe(e)}var poe=moe,goe=Tie,voe=noe,xoe=Nu,yoe=Kr,boe=poe;function woe(e){return typeof e=="function"?e:e==null?xoe:typeof e=="object"?yoe(e)?voe(e[0],e[1]):goe(e):boe(e)}var Ks=woe;function joe(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var ND=joe;function Noe(e){return e!==e}var Soe=Noe;function _oe(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var koe=_oe,Poe=ND,Coe=Soe,Ooe=koe;function Aoe(e,t,r){return t===t?Ooe(e,t,r):Poe(e,Coe,r)}var Eoe=Aoe,Toe=Eoe;function Ioe(e,t){var r=e==null?0:e.length;return!!r&&Toe(e,t,0)>-1}var $oe=Ioe;function Moe(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var Roe=Moe;function Doe(){}var Loe=Doe,ob=xD,Foe=Loe,Boe=KN,zoe=1/0,Uoe=ob&&1/Boe(new ob([,-0]))[1]==zoe?function(e){return new ob(e)}:Foe,Woe=Uoe,Voe=lD,Hoe=$oe,qoe=Roe,Goe=uD,Koe=Woe,Yoe=KN,Xoe=200;function Qoe(e,t,r){var n=-1,a=Hoe,i=e.length,o=!0,l=[],c=l;if(r)o=!1,a=qoe;else if(i>=Xoe){var u=t?null:Koe(e);if(u)return Yoe(u);o=!1,a=Goe,c=new Voe}else c=t?[]:l;e:for(;++n<i;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),l.push(d)}else a(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}var Joe=Qoe,Zoe=Ks,ele=Joe;function tle(e,t){return e&&e.length?ele(e,Zoe(t)):[]}var rle=tle;const EP=Ke(rle);function SD(e,t,r){return t===!0?EP(e,r):Se(t)?EP(e,t):e}function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}var nle=["ref"];function TP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,101 bytes, line 551
551t%2?TP(Object(r),!0).forEach(function(n){lx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IP(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,kD(n.key),n)}}function ale(e,t,r){return t&&IP(e.prototype,t),r&&IP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ile(e,t,r){return t=Gp(t),ole(e,_D()?Reflect.construct(t,r||[],Gp(e).constructor):t.apply(e,r))}function ole(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lle(e)}function lle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_D=function(){return!!e})()}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gp(e)}function cle(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&&Nw(e,t)}function Nw(e,t){return Nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nw(e,t)}function lx(e,t,r){return t=kD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kD(e){var t=ule(e,"string");return Ac(t)=="symbol"?t:t+""}function ule(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dle(e,t){if(e==null)return{};var r=fle(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fle(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 hle(e){return e.value}function mle(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var r=dle(t,nle);return I.createElement(GN,r)}var $P=1,xi=function(e){function t(){var r;sle(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=ile(this,t,[].concat(a)),lx(r,"lastBoundingBox",{width:-1,height:-1}),r}return cle(t,e),ale(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>$P||Math.abs(a.height-this.lastBoundingBox.height)>$P)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(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?Qs({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,c=a.margin,u=a.chartWidth,d=a.chartHe
551ight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();f={left:((u||0)-m.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var g=this.getBBoxSnapshot();h={top:((d||0)-g.height)/2}}else h=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Qs(Qs({},f),h)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,l=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,f=Qs(Qs({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return I.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){n.wrapperNode=m}},mle(i,Qs(Qs({},this.props),{},{payload:SD(d,u,hle)})))}}],[{key:"getWithHeight",value:function(n,a){var i=Qs(Qs({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&ae(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])}(b.PureComponent);lx(xi,"displayName","Legend");lx(xi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var MP=vh,ple=YN,gle=Kr,RP=MP?MP.isConcatSpreadable:void 0;function vle(e){return gle(e)||ple(e)||!!(RP&&e&&e[RP])}var xle=vle,yle=fD,ble=xle;function PD(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=ble),a||(a=[]);++i<o;){var l=e[i];t>0&&r(l)?t>1?PD(l,t-1,r,n,a):yle(a,l):n||(a[a.length]=l)}return a}var CD=PD;function wle(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),l=o.length;l--;){var c=o[e?l:++a];if(r(i[c],c,i)===!1)break}return t}}var jle=wle,Nle=jle,Sle=Nle(),_le=Sle,kle=_le,Ple=ox;function Cle(e,t){return e&&kle(e,t,Ple)}var OD=Cle,Ole=yh;function Ale(e,t){return function(r,n){if(r==null)return r;if(!Ole(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var Ele=Ale,Tle=OD,Ile=Ele,$le=Ile(Tle),ZN=$le,Mle=ZN,Rle=yh;function Dle(e,t){var r=-1,n=Rle(e)?Array(e.length):[];return Mle(e,function(a,i,o){n[++r]=t(a,i,o)}),n}var AD=Dle;function Lle(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Fle=Lle,DP=pu;function Ble(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=DP(e),o=t!==void 0,l=t===null,c=t===t,u=DP(t);if(!l&&!u&&!i&&e>t||i&&o&&c&&!l&&!u||n&&o&&c||!r&&c||!a)return 1;if(!n&&!i&&!u&&e<t||u&&r&&a&&!n&&!i||l&&r&&a||!o&&a||!c)return-1}return 0}var zle=Ble,Ule=zle;function Wle(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,l=r.length;++n<o;){var c=Ule(a[n],i[n]);if(c){if(n>=l)return c;var u=r[n];return c*(u=="desc"?-1:1)}}return e.index-t.index}var Vle=Wle,lb=DN,Hle=LN,qle=Ks,Gle=AD,Kle=Fle,Yle=pD,Xle=Vle,Qle=Nu,Jle=Kr;function Zle(e,t,r){t.length?t=lb(t,function(i){return Jle(i)?function(o){return Hle(o,i.length===1?i[0]:i)}:i}):t=[Qle];var n=-1;t=lb(t,Yle(qle));var a=Gle(e,function(i,o,l){var c=lb(t,function(u){return u(i)});return{criteria:c,index:++n,value:i}});return Kle(a,function(i,o){return Xle(i,o,r)})}var ece=Zle;function tce(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 rce=tce,nce=rce,LP=Math.max;function sce(e,t,r){return t=LP(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=LP(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),nce(e,this,l)}}var ace=sce;function ice(e){return function(){return e}}var oce=ice,lce=rl,cce=function(){try{var e=lce(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ED=cce,uce=oce,FP=ED,dce=Nu,fce=FP?function(e,t){return FP(e,"toString",{configurable:!0,enumerable:!1,value:uce(t),writable:!0})}:dce,hce=fce,mce=800,pce=16,gce=Date.now;function vce(e){var t=0,r=0;return function(){var n=gce(),a=pce-(n-r);if(r=n,a>0){if(++t>=mce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xce=vce,yce=hce,bce=xce,wce=bce(yce),jce=wce,Nce=Nu,Sce=ace,_ce=jce;function kce(e,t){return _ce(Sce(e,t,Nce),e+"")}var Pce=kce,Cce=IN,Oce=yh,Ace=XN,Ece=Di;function Tce(e,t,r){if(!Ece(r))return!1;var n=typeof t;return(n=="number"?Oce(r)&&Ace(t,r.length):n=="string"&&t in r)?Cce(r[t],e):!1}var cx=Tce,Ice=CD,$ce=ece,Mce=Pce,BP=cx,Rce=Mce(function(e,t){if(e==null)return[];var r=t.length;return r>1&&BP(e,t[0],t[1])?t=[]:r>2&&BP(t[0],t[1],t[2])&&(t=[t[0]]),$ce(e,Ice(t,1),[])}),Dce=Rce;const eS=Ke(Dce);function lf(e){"@babel/helpers - typeof";return lf=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},lf(e)}function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 32,883 bytes, lines 551-559
551for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sw.apply(this,arguments)}function Lce(e,t){return Uce(e)||zce(e,t)||Bce(e,t)||Fce()}function Fce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
552In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bce(e,t){if(e){if(typeof e=="string")return zP(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 zP(e,t)}}function zP(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 zce(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Uce(e){if(Array.isArray(e))return e}function UP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function cb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(r),!0).forEach(function(n){Wce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wce(e,t,r){return t=Vce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vce(e){var t=Hce(e,"string");return lf(t)=="symbol"?t:t+""}function Hce(e,t){if(lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qce(e){return Array.isArray(e)&&Vt(e[0])&&Vt(e[1])?e.join(" ~ "):e}var Gce=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,d=t.payload,f=t.formatter,h=t.itemSorter,m=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(d&&d.length){var T={padding:0,margin:0},E=(h?eS(d,h):d).map(function(O,D){if(O.type==="none")return null;var $=cb({display:"block",paddingTop:4,paddingBottom:4,color:O.color||"#000"},l),L=O.formatter||f||qce,M=O.value,R=O.name,B=M,H=R;if(L&&B!=null&&H!=null){var U=L(M,R,O,D,d);if(Array.isArray(U)){var q=Lce(U,2);B=q[0],H=q[1]}else B=U}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:$},Vt(H)?I.createElement("span",{className:"recharts-tooltip-item-name"},H):null,Vt(H)?I.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,I.createElement("span",{className:"recharts-tooltip-item-value"},B),I.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:T},E)}return null},N=cb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),j=cb({margin:0},u),S=!Ce(p),_=S?p:"",P=Ae("recharts-default-tooltip",m),k=Ae("recharts-tooltip-label",g);S&&v&&d!==void 0&&d!==null&&(_=v(p,d));var A=x?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",Sw({className:P,style:N},A),I.createElement("p",{className:k,style:j},I.isValidElement(_)?_:"".concat(_)),w())};function cf(e){"@babel/helpers - typeof";return cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(e)}function mm(e,t,r){return t=Kce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kce(e){var t=Yce(e,"string");return cf(t)=="symbol"?t:t+""}function Yce(e,t){if(cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zu="recharts-tooltip-wrapper",Xce={visibility:"hidden"};function Qce(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ae(zu,mm(mm(mm(mm({},"".concat(zu,"-right"),ae(r)&&t&&ae(t.x)&&r>=t.x),"".concat(zu,"-left"),ae(r)&&t&&ae(t.x)&&r<t.x),"".concat(zu,"-bottom"),ae(n)&&t&&ae(t.y)&&n>=t.y),"".concat(zu,"-top"),ae(n)&&t&&ae(t.y)&&n<t.y))}function WP(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&ae(i[n]))return i[n];var d=r[n]-l-a,f=r[n]+a;if(t[n])return o[n]?d:f;if(o[n]){var h=d,m=c[n];return h<m?Math.max(f,c[n]):Math.max(d,c[n])}var g=f+l,p=c[n]+u;return g>p?Math.max(d,c[n]):Math.max(f,c[n])}function Jce(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 Zce(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,d,f;return o.height>0&&o.width>0&&r?(d=WP({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=WP({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=Jce({translateX:d,translateY:f,useTranslate3d:l})):u=Xce,{cssProperties:u,cssClasses:Qce({translateX:d,translateY:f,coordinate:r})}}function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(e)}function VP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function HP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(r),!0).forEach(function(n){kw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tue(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,ID(n.key),n)}}function rue(e,t,r){return t&&tue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nue(e,t,r){return t=Kp(t),sue(e,TD()?Reflect.construct(t,r||[],Kp(e).constructor):t.apply(e,r))}function sue(e,t){if(t&&(Ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aue(e)}function aue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TD=function(){return!!e})()}function Kp(e){return Kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kp(e)}function iue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_w(e,t)}function _w(e,t){return _w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_w(e,t)}function kw(e,t,r){return t=ID(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ID(e){var t=oue(e,"string");return Ec(t)=="symbol"?t:t+""}function oue(e,t){if(Ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qP=1,lue=function(e){function t(){var r;eue(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=nue(this,t,[].concat(a)),kw(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),kw(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),r}return iue(t,e),rue(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>qP||Math.abs(n.height-this.state.lastBoundingBox.height)>qP)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.children,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,m=a.offset,g=a.position,p=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,x=a.wrapperStyle,w=Zce({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:m,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),N=w.cssClasses,j=w.cssProperties,S=HP(HP({transition:h&&i?"transform ".concat(l,"ms ").concat(c):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return I.createElement("div",{tabIndex:-1,className:N,style:S,ref:function(P){n.wrapperNode=P}},u)}}])}(b.PureComponent),cue=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ls={isSsr:cue(),get:function(t){return Ls[t]},set:function(t,r){if(typeof t=="string")Ls[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){Ls[a]=t[a]})}}};function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}function GP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function KP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GP(Object(r),!0).forEach(function(n){tS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function due(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,MD(n.key),n)}}function fue(e,t,r){return t&&due(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hue(e,t,r){return t=Yp(t),mue(e,$D()?Reflect.construct(t,r||[],Yp(e).constructor):t.apply(e,r))}function mue(e,t){if(t&&(Tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pue(e)}function pue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($D=function(){return!!e})()}function Yp(e){return Yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yp(e)}function gue(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&&Pw(e,t)}function Pw(e,t){return Pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Pw(e,t)}function tS(e,t,r){return t=MD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e){var t=vue(e,"string");return Tc(t)=="symbol"?t:t+""}function vue(e,t){if(Tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xue(e){return e.dataKey}function yue(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(Gce,t)}var dr=function(e){function t(){return uue(this,t),hue(this,t,arguments)}return gue(t,e),fue(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.content,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,m=a.offset,g=a.payload,p=a.payloadUniqBy,v=a.position,y=a.reverseDirection,x=a.useTranslate3d,w=a.viewBox,N=a.wrapperStyle,j=g??[];f&&j.length&&(j=SD(g.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),p,xue));var S=j.length>0;return I.createElement(lue,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:h,active:i,coordinate:d,hasPayload:S,offset:m,position:v,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:N},yue(u,KP(KP({},this.props),{},{payload:j})))}}])}(b.PureComponent);tS(dr,"displayName","Tooltip");tS(dr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ls.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 bue=Gs,wue=function(){return bue.Date.now()},jue=wue,Nue=/\s/;function Sue(e){for(var t=e.length;t--&&Nue.test(e.charAt(t)););return t}var _ue=Sue,kue=_ue,Pue=/^\s+/;function Cue(e){return e&&e.slice(0,kue(e)+1).replace(Pue,"")}var Oue=Cue,Aue=Oue,YP=Di,Eue=pu,XP=NaN,Tue=/^[-+]0x[0-9a-f]+$/i,Iue=/^0b[01]+$/i,$ue=/^0o[0-7]+$/i,Mue=parseInt;function Rue(e){if(typeof e=="number")return e;if(Eue(e))return XP;if(YP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=YP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Aue(e);var r=Iue.test(e);return r||$ue.test(e)?Mue(e.slice(2),r?2:8):Tue.test(e)?XP:+e}var RD=Rue,Due=Di,ub=jue,QP=RD,Lue="Expected a function",Fue=Math.max,Bue=Math.min;function zue(e,t,r){var n,a,i,o,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Lue);t=QP(t)||0,Due(r)&&(d=!!r.leading,f="maxWait"in r,i=f?Fue(QP(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h);function m(S){var _=n,P=a;return n=a=void 0,u=S,o=e.apply(P,_),o}function g(S){return u=S,l=setTimeout(y,t),d?m(S):o}function p(S){var _=S-c,P=S-u,k=t-_;return f?Bue(k,i-P):k}function v(S){var _=S-c,P=S-u;return c===void 0||_>=t||_<0||f&&P>=i}function y(){var S=ub();if(v(S))return x(S);l=setTimeout(y,p(S))}function x(S){return l=void 0,h&&n?m(S):(n=a=void 0,o)}function w(){l!==void 0&&clearTimeout(l),u=0,n=c=a=l=void 0}function N(){return l===void 0?o:x(ub())}function j(){var S=ub(),_=v(S);if(n=arguments,a=this,c=S,_){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(y,t),m(c)}return l===void 0&&(l=setTimeout(y,t)),o}return j.cancel=w,j.flush=N,j}var Uue=zue,Wue=Uue,Vue=Di,Hue="Expected a function";function que(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Hue);return Vue(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Wue(e,t,{leading:n,maxWait:t,trailing:a})}var Gue=que;const DD=Ke(Gue);function uf(e){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uf(e)}function JP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(r),!0).forEach(function(n){Kue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kue(e,t,r){return t=Yue(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yue(e){var t=Xue(e,"string");return uf(t)=="symbol"?t:t+""}function Xue(e,t){if(uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Que(e,t){return tde(e)||ede(e,t)||Zue(e,t)||Jue()}function Jue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
553In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zue(e,t){if(e){if(typeof e=="string")return ZP(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 ZP(e,t)}}function ZP(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 ede(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function tde(e){if(Array.isArray(e))return e}var Fs=b.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,m=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,y=e.className,x=e.onResize,w=e.style,N=w===void 0?{}:w,j=b.useRef(null),S=b.useRef();S.current=x,b.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var _=b.useState({containerWidth:a.width,containerHeight:a.height}),P=Que(_,2),k=P[0],A=P[1],C=b.useCallback(function(E,O){A(function(D){var $=Math.round(E),L=Math.round(O);return D.containerWidth===$&&D.containerHeight===L?D:{containerWidth:$,containerHeight:L}})},[]);b.useEffect(function(){var E=function(R){var B,H=R[0].contentRect,U=H.width,q=H.height;C(U,q),(B=S.current)===null||B===void 0||B.call(S,U,q)};p>0&&(E=DD(E,p,{trailing:!0,leading:!1}));var O=new ResizeObserver(E),D=j.current.getBoundingClientRect(),$=D.width,L=D.height;return C($,L),O.observe(j.current),function(){O.disconnect()}},[C,p]);var T=b.useMemo(function(){var E=k.containerWidth,O=k.containerHeight;if(E<0||O<0)return null;us(po(o)||po(c),`The width(%s) and height(%s) are both fixed numbers,
554       maybe you don't need to use a ResponsiveContainer.`,o,c),us(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=po(o)?E:o,$=po(c)?O:c;r&&r>0&&(D?$=D/r:$&&(D=$*r),h&&$>h&&($=h)),us(D>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
555       please check the style of container, or the props width(%s) and height(%s),
556       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
557       height and width.`,D,$,o,c,d,f,r);var L=!Array.isArray(m)&&fa(m.type).endsWith("Chart");return I.Children.map(m,function(M){return I.isValidElement(M)?b.cloneElement(M,pm({width:D,height:$},L?{style:pm({height:"100%",width:"100%",maxHeight:$,maxWidth:D},M.props.style)}:{})):M})},[r,m,c,h,f,d,k,o]);return I.createElement("div",{id:v?"".concat(v):void 0,className:Ae("recharts-responsive-container",y),style:pm(pm({},N),{},{width:o,height:c,minWidth:d,minHeight:f,maxHeight:h}),ref:j},T)}),ux=function(t){return null};ux.displayName="Cell";function df(e){"@babel/helpers - typeof";return df=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},df(e)}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Cw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eC(Object(r),!0).forEach(function(n){rde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rde(e,t,r){return t=nde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nde(e){var t=sde(e,"string");return df(t)=="symbol"?t:t+""}function sde(e,t){if(df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yl={widthCache:{},cacheCount:0},ade=2e3,ide={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},tC="recharts_measurement_span";function ode(e){var t=Cw({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var jd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ls.isSsr)return{width:0,height:0};var n=ode(r),a=JSON.stringify({text:t,copyStyle:n});if(yl.widthCache[a])return yl.widthCache[a];try{var i=document.getElementById(tC);i||(i=document.createElement("span"),i.setAttribute("id",tC),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Cw(Cw({},ide),n);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),c={width:l.width,height:l.height};return yl.widthCache[a]=c,++yl.cacheCount>ade&&(yl.cacheCount=0,yl.widthCache={}),c}catch{return{width:0,height:0}}},lde=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function Xp(e,t){return fde(e)||dde(e,t)||ude(e,t)||cde()}function cde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
558In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ude(e,t){if(e){if(typeof e=="string")return rC(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 rC(e,t)}}function rC(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 dde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function fde(e){if(Array.isArray(e))return e}function hde(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,pde(n.key),n)}}function mde(e,t,r){return t&&nC(e.prototype,t),r&&nC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pde(e){var t=gde(e,"string");return ff(t)=="symbol"?t:t+""}function gde(e,t){if(ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sC=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aC=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,vde=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,xde=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yde=Object.keys(LD),Ll="NaN";function bde(e,t){return e*LD[t]}var gm=function(){function e(t,r){hde(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!vde.test(r)&&(this.num=NaN,this.unit=""),yde.includes(r)&&(this.num=bde(t,r),this.unit="px")}return mde(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,a=(n=xde.exec(r))!==null&&n!==void 0?n:[],i=Xp(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function FD(e){if(e.includes(Ll))return Ll;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=sC.exec(t))!==null&&r!==void 0?r:[],a=Xp(n,4),i=a[1],o=a[2],l=a[3],c=gm.parse(i??""),u=gm.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return Ll;t=t.replace(sC,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=aC.exec(t))!==null&&f!==void 0?f:[],m=Xp(h,4),g=m[1],p=m[2],v=m[3],y=gm.parse(g??""),x=gm.parse(v??""),w=p==="+"?y.add(x):y.subtract(x);if(w.isNaN())return Ll;t=t.replace(aC,w.toString())}return t}var iC=/\(([^()]*)\)/;function wde(e){for(var t=e;t.includes("(");){var r=iC.exec(t),n=Xp(r,2),a=n[1];t=t.replace(iC,FD(a))}return t}function jde(e){var t=e.replace(/\s+/g,"");return t=wde(t),t=FD(t),t}function Nde(e){try{return jde(e)}catch{return Ll}}function db(e){var t=Nde(e.slice(5,-1));return t===Ll?"":t}var Sde=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],_de=["dx","dy","angle","className","breakAll"];function Ow(){return Ow=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},Ow.apply(this,arguments)}function oC(e,t){if(e==null)return{};var r=kde(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kde(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 lC(e,t){return Ade(e)||Ode(e,t)||Cde(e,t)||Pde()}function Pde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
559In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cde(e,t){if(e){if(typeof e=="string")return cC(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 cC(e,t)}}function cC(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 Ode(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ade(e){if(Array.isArray(e))return e}var BD=/[ \f\n\r\t\v\u2028\u2029]+/,zD=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];Ce(r)||(n?i=r.toString().split(""):i=r.toString().split(BD));var o=i.map(function(c){return{word:c,width:jd(c,a).width}}),l=n?0:jd(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},Ede=function(t,r,n,a,i){var o=t.maxLines,l=t.children,c=t.style,u=t.breakAll,d=ae(o),f=l,h=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function($,L){var M=L.word,R=L.width,B=$[$.length-1];if(B&&(a==null||i||B.width+R+n<Number(a)))B.words.push(M),B.width+=R+n;else{var H={words:[M],width:R};$.push(H)}return $},[])},m=h(r),g=function(D){return D.reduce(function($,L){return $.width>L.width?$:L})};if(!d)return m;for(var p="…",v=function(D){var $=f.slice(0,D),L=zD({breakAll:u,style:c,children:$+p}).wordsWithComputedWidth,M=h(L),R=M.length>o||g(M).width>Number(a);return[R,M]},y=0,x=f.length-1,w=0,N;y<=x&&w<=f.length-1;){var j=Math.floor((y+x)/2),S=j-1,_=v(S),P=lC(_,2),k=P[0],A=P[1],C=v(j),T=lC(C,1),E=T[0];if(!k&&!E&&(y=j+1),k&&E&&(x=j-1),!k&&E){N=A;break}w++}return N||m},uC=function(t){var r=Ce(t)?[]:t.toString().split(BD);return[{words:r}]},Tde=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!Ls.isSsr){var c,u,d=zD({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;c=f,u=h}else return uC(a);return Ede({breakAll:o,children:a,maxLines:l,style:i},c,u,r,n)}return uC(a)},dC="#808080",Bo=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,y=v===void 0?dC:v,x=oC(t,Sde),w=b.useMemo(function(){return Tde({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),N=x.dx,j=x.dy,S=x.angle,_=x.className,P=x.breakAll,k=oC(x,_de);if(!Vt(n)||!Vt(i))return null;var A=n+(ae(N)?N:0),C=i+(ae(j)?j:0),T;
559switch(p){case"start":T=db("calc(".concat(u,")"));break;case"middle":T=db("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:T=db("calc(".concat(w.length-1," * -").concat(l,")"));break}var E=[];if(f){var O=w[0].width,D=x.width;E.push("scale(".concat((ae(D)?D/O:1)/O,")"))}return S&&E.push("rotate(".concat(S,", ").concat(A,", ").concat(C,")")),E.length&&(k.transform=E.join(" ")),I.createElement("text",Ow({},be(k,!0),{x:A,y:C,className:Ae("recharts-text",_),textAnchor:m,fill:y.includes("url")?dC:y}),w.map(function($,L){var M=$.words.join(P?"":" ");return I.createElement("tspan",{x:A,dy:L===0?T:l,key:"".concat(M,"-").concat(L)},M)}))};function yi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ide(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rS(e){let t,r,n;e.length!==2?(t=yi,r=(l,c)=>yi(e(l),c),n=(l,c)=>e(l)-c):(t=e===yi||e===Ide?e:$de,r=e,n=e);function a(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<0?u=f+1:d=f}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,c,u=0,d=l.length){const f=a(l,c,u,d-1);return f>u&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:a,center:o,right:i}}function $de(){return 0}function UD(e){return e===null?NaN:+e}function*Mde(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Rde=rS(yi),bh=Rde.right;rS(UD).center;class fC extends Map{constructor(t,r=Fde){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(hC(this,t))}has(t){return super.has(hC(this,t))}set(t,r){return super.set(Dde(this,t),r)}delete(t){return super.delete(Lde(this,t))}}function hC({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Dde({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Lde({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Fde(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Bde(e=yi){if(e===yi)return WD;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 WD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const zde=Math.sqrt(50),Ude=Math.sqrt(10),Wde=Math.sqrt(2);function Qp(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=zde?10:i>=Ude?5:i>=Wde?2:1;let l,c,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=r&&r<2?Qp(e,t,r*2):[l,c,u]}function Aw(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?Qp(t,e,r):Qp(e,t,r);if(!(i>=a))return[];const l=i-a+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(a+u)/-o;else for(let u=0;u<l;++u)c[u]=(a+u)*o;return c}function Ew(e,t,r){return t=+t,e=+e,r=+r,Qp(e,t,r)[2]}function Tw(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Ew(t,e,r):Ew(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function mC(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function pC(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function VD(e,t,r=0,n=1/0,a){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(a=a===void 0?WD:Bde(a);n>r;){if(n-r>600){const c=n-r+1,u=t-r+1,d=Math.log(c),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(c-f)/c)*(u-c/2<0?-1:1),m=Math.max(r,Math.floor(t-u*f/c+h)),g=Math.min(n,Math.floor(t+(c-u)*f/c+h));VD(e,t,m,g,a)}const i=e[t];let o=r,l=n;for(Uu(e,r,t),a(e[n],i)>0&&Uu(e,r,n);o<l;){for(Uu(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?Uu(e,r,l):(++l,Uu(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Uu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Vde(e,t,r){if(e=Float64Array.from(Mde(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return pC(e);if(t>=1)return mC(e);var n,a=(n-1)*t,i=Math.floor(a),o=mC(VD(e,i).subarray(0,i+1)),l=pC(e.subarray(i+1));return o+(l-o)*(a-i)}}function Hde(e,t,r=UD){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function qde(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function Rn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Aa(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 9,454 bytes, line 559
559const Iw=Symbol("implicit");function nS(){var e=new fC,t=[],r=[],n=Iw;function a(i){let o=e.get(i);if(o===void 0){if(n!==Iw)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new fC;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return nS(t,r).unknown(n)},Rn.apply(a,arguments),a}function hf(){var e=nS().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,l=!1,c=0,u=0,d=.5;delete e.unknown;function f(){var h=t().length,m=a<n,g=m?a:n,p=m?n:a;i=(p-g)/Math.max(1,h-c+u*2),l&&(i=Math.floor(i)),g+=(p-g-i*(h-c))*d,o=i*(1-c),l&&(g=Math.round(g),o=Math.round(o));var v=qde(h).map(function(y){return g+i*y});return r(m?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,a]=h,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(h){return[n,a]=h,n=+n,a=+a,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),f()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return hf(t(),[n,a]).round(l).paddingInner(c).paddingOuter(u).align(d)},Rn.apply(f(),arguments)}function HD(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return HD(t())},e}function Nd(){return HD(hf.apply(null,arguments).paddingInner(1))}function sS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function qD(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function wh(){}var mf=.7,Jp=1/mf,rc="\\s*([+-]?\\d+)\\s*",pf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gde=/^#([0-9a-f]{3,8})$/,Kde=new RegExp(`^rgb\\(${rc},${rc},${rc}\\)$`),Yde=new RegExp(`^rgb\\(${Bs},${Bs},${Bs}\\)$`),Xde=new RegExp(`^rgba\\(${rc},${rc},${rc},${pf}\\)$`),Qde=new RegExp(`^rgba\\(${Bs},${Bs},${Bs},${pf}\\)$`),Jde=new RegExp(`^hsl\\(${pf},${Bs},${Bs}\\)$`),Zde=new RegExp(`^hsla\\(${pf},${Bs},${Bs},${pf}\\)$`),gC={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};sS(wh,gf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vC,formatHex:vC,formatHex8:efe,formatHsl:tfe,formatRgb:xC,toString:xC});function vC(){return this.rgb().formatHex()}function efe(){return this.rgb().formatHex8()}function tfe(){return GD(this).formatHsl()}function xC(){return this.rgb().formatRgb()}function gf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Gde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?yC(t):r===3?new Ur(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vm(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=Kde.exec(e))?new Ur(t[1],t[2],t[3],1):(t=Yde.exec(e))?new Ur(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xde.exec(e))?vm(t[1],t[2],t[3],t[4]):(t=Qde.exec(e))?vm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Jde.exec(e))?jC(t[1],t[2]/100,t[3]/100,1):(t=Zde.exec(e))?jC(t[1],t[2]/100,t[3]/100,t[4]):gC.hasOwnProperty(e)?yC(gC[e]):e==="transparent"?new Ur(NaN,NaN,NaN,0):null}function yC(e){return new Ur(e>>16&255,e>>8&255,e&255,1)}function vm(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ur(e,t,r,n)}function rfe(e){return e instanceof wh||(e=gf(e)),e?(e=e.rgb(),new Ur(e.r,e.g,e.b,e.opacity)):new Ur}function $w(e,t,r,n){return arguments.length===1?rfe(e):new Ur(e,t,r,n??1)}function Ur(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sS(Ur,$w,qD(wh,{brighter(e){return e=e==null?Jp:Math.pow(Jp,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mf:Math.pow(mf,e),new Ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ur(Co(this.r),Co(this.g),Co(this.b),Zp(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:bC,formatHex:bC,formatHex8:nfe,formatRgb:wC,toString:wC}));function bC(){return`#${go(this.r)}${go(this.g)}${go(this.b)}`}function nfe(){return`#${go(this.r)}${go(this.g)}${go(this.b)}${go((isNaN(this.opacity)?1:this.opacity)*255)}`}function wC(){const e=Zp(this.opacity);return`${e===1?"rgb(":"rgba("}${Co(this.r)}, ${Co(this.g)}, ${Co(this.b)}${e===1?")":`, ${e})`}`}function Zp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Co(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function go(e){return e=Co(e),(e<16?"0":"")+e.toString(16)}function jC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new as(e,t,r,n)}function GD(e){if(e instanceof as)return new as(e.h,e.s,e.l,e.opacity);if(e instanceof wh||(e=gf(e)),!e)return new as;if(e instanceof as)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,l=i-a,c=(i+a)/2;return l?(t===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-t)/l+2:o=(t-r)/l+4,l/=c<.5?i+a:2-i-a,o*=60):l=c>0&&c<1?0:o,new as(o,l,c,e.opacity)}function sfe(e,t,r,n){return arguments.length===1?GD(e):new as(e,t,r,n??1)}function as(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sS(as,sfe,qD(wh,{brighter(e){return e=e==null?Jp:Math.pow(Jp,e),new as(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mf:Math.pow(mf,e),new as(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,a=2*r-n;return new Ur(fb(e>=240?e-240:e+120,a,n),fb(e,a,n),fb(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new as(NC(this.h),xm(this.s),xm(this.l),Zp(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=Zp(this.opacity);return`${e===1?"hsl(":"hsla("}${NC(this.h)}, ${xm(this.s)*100}%, ${xm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function NC(e){return e=(e||0)%360,e<0?e+360:e}function xm(e){return Math.max(0,Math.min(1,e||0))}function fb(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 aS=e=>()=>e;function afe(e,t){return function(r){return e+r*t}}function ife(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 ofe(e){return(e=+e)==1?KD:function(t,r){return r-t?ife(t,r,e):aS(isNaN(t)?r:t)}}function KD(e,t){var r=t-e;return r?afe(e,r):aS(isNaN(e)?t:e)}const SC=function e(t){var r=ofe(t);
vendor: 5,773 bytes, line 559
559function n(a,i){var o=r((a=$w(a)).r,(i=$w(i)).r),l=r(a.g,i.g),c=r(a.b,i.b),u=KD(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return n.gamma=e,n}(1);function lfe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function cfe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ufe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Su(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(l){for(o=0;o<n;++o)i[o]=a[o](l);return i}}function dfe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function eg(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function ffe(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Su(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var Mw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hb=new RegExp(Mw.source,"g");function hfe(e){return function(){return e}}function mfe(e){return function(t){return e(t)+""}}function pfe(e,t){var r=Mw.lastIndex=hb.lastIndex=0,n,a,i,o=-1,l=[],c=[];for(e=e+"",t=t+"";(n=Mw.exec(e))&&(a=hb.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,c.push({i:o,x:eg(n,a)})),r=hb.lastIndex;return r<t.length&&(i=t.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?mfe(c[0].x):hfe(t):(t=c.length,function(u){for(var d=0,f;d<t;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}function Su(e,t){var r=typeof t,n;return t==null||r==="boolean"?aS(t):(r==="number"?eg:r==="string"?(n=gf(t))?(t=n,SC):pfe:t instanceof gf?SC:t instanceof Date?dfe:cfe(t)?lfe:Array.isArray(t)?ufe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ffe:eg)(e,t)}function iS(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function gfe(e,t){t===void 0&&(t=e,e=Su);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function vfe(e){return function(){return e}}function tg(e){return+e}var _C=[0,1];function Pr(e){return e}function Rw(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:vfe(isNaN(t)?NaN:.5)}function xfe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function yfe(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=Rw(a,n),i=r(o,i)):(n=Rw(n,a),i=r(i,o)),function(l){return i(n(l))}}function bfe(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=Rw(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(l){var c=bh(e,l,1,n)-1;return i[c](a[c](l))}}function jh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dx(){var e=_C,t=_C,r=Su,n,a,i,o=Pr,l,c,u;function d(){var h=Math.min(e.length,t.length);return o!==Pr&&(o=xfe(e[0],e[h-1])),l=h>2?bfe:yfe,c=u=null,f}function f(h){return h==null||isNaN(h=+h)?i:(c||(c=l(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(a((u||(u=l(t,e.map(n),eg)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,tg),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=iS,d()},f.clamp=function(h){return arguments.length?(o=h?!0:Pr,d()):o!==Pr},f.interpolate=function(h){return arguments.length?(r=h,d()):r},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,m){return n=h,a=m,d()}}function oS(){return dx()(Pr,Pr)}function wfe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function rg(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 Ic(e){return e=rg(Math.abs(e)),e?e[1]:NaN}function jfe(e,t){return function(r,n){for(var a=r.length,i=[],o=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(r.substring(a-=l,a+l)),!((c+=l+1)>n));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Nfe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sfe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vf(e){if(!(t=Sfe.exec(e)))throw new Error("invalid format: "+e);var t;return new lS({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]})}vf.prototype=lS.prototype;function lS(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+""}lS.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 _fe(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var YD;function kfe(e,t){var r=rg(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(YD=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>
vendor: 5,906 bytes, line 559
5590?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+rg(e,Math.max(0,t+i-1))[0]}function kC(e,t){var r=rg(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const PC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:wfe,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)=>kC(e*100,t),r:kC,s:kfe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function CC(e){return e}var OC=Array.prototype.map,AC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pfe(e){var t=e.grouping===void 0||e.thousands===void 0?CC:jfe(OC.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?CC:Nfe(OC.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(f){f=vf(f);var h=f.fill,m=f.align,g=f.sign,p=f.symbol,v=f.zero,y=f.width,x=f.comma,w=f.precision,N=f.trim,j=f.type;j==="n"?(x=!0,j="g"):PC[j]||(w===void 0&&(w=12),N=!0,j="g"),(v||h==="0"&&m==="=")&&(v=!0,h="0",m="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",_=p==="$"?n:/[%p]/.test(j)?o:"",P=PC[j],k=/[defgprs%]/.test(j);w=w===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function A(C){var T=S,E=_,O,D,$;if(j==="c")E=P(C)+E,C="";else{C=+C;var L=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),w),N&&(C=_fe(C)),L&&+C==0&&g!=="+"&&(L=!1),T=(L?g==="("?g:l:g==="-"||g==="("?"":g)+T,E=(j==="s"?AC[8+YD/3]:"")+E+(L&&g==="("?")":""),k){for(O=-1,D=C.length;++O<D;)if($=C.charCodeAt(O),48>$||$>57){E=($===46?a+C.slice(O+1):C.slice(O))+E,C=C.slice(0,O);break}}}x&&!v&&(C=t(C,1/0));var M=T.length+C.length+E.length,R=M<y?new Array(y-M+1).join(h):"";switch(x&&v&&(C=t(R+C,R.length?y-E.length:1/0),R=""),m){case"<":C=T+C+E+R;break;case"=":C=T+R+C+E;break;case"^":C=R.slice(0,M=R.length>>1)+T+C+E+R.slice(M);break;default:C=R+T+C+E;break}return i(C)}return A.toString=function(){return f+""},A}function d(f,h){var m=u((f=vf(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Ic(h)/3)))*3,p=Math.pow(10,-g),v=AC[8+g/3];return function(y){return m(p*y)+v}}return{format:u,formatPrefix:d}}var ym,cS,XD;Cfe({thousands:",",grouping:[3],currency:["$",""]});function Cfe(e){return ym=Pfe(e),cS=ym.format,XD=ym.formatPrefix,ym}function Ofe(e){return Math.max(0,-Ic(Math.abs(e)))}function Afe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ic(t)/3)))*3-Ic(Math.abs(e)))}function Efe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ic(t)-Ic(e))+1}function QD(e,t,r,n){var a=Tw(e,t,r),i;switch(n=vf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Afe(a,o))&&(n.precision=i),XD(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Efe(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Ofe(a))&&(n.precision=i-(n.type==="%")*2);break}}return cS(n)}function Li(e){var t=e.domain;return e.ticks=function(r){var n=t();return Aw(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return QD(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],l=n[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=Ew(o,l,r),u===c)return n[a]=o,n[i]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function ng(){var e=oS();return e.copy=function(){return jh(e,ng())},Rn.apply(e,arguments),Li(e)}function JD(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,tg),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return JD(e).unknown(t)},e=arguments.length?Array.from(e,tg):[0,1],Li(r)}function ZD(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function EC(e){return Math.log(e)}function TC(e){return Math.exp(e)}function Tfe(e){return-Math.log(-e)}function Ife(e){return-Math.exp(-e)}function $fe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Mfe(e){return e===10?$fe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Rfe(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 IC(e){return(t,r)=>-e(-t,r)}function uS(e){const t=e(EC,TC),r=t.domain;let n=10,a,i;function o(){return a=Rfe(n),i=Mfe(n),r()[0]<0?(a=IC(a),i=IC(i),e(Tfe,Ife)):e(EC,TC),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const f=d<u;f&&([u,d]=[d,u]);let h=a(u),m=a(d),g,p;const v=l==null?10:+l;let y=[];if(!(n%1)&&m-h<v){if(h=Math.floor(h),m=Math.ceil(m),u>0){for(;h<=m;++h)for(g=1;g<n;++g)if(p=h<0?g/i(-h):g*i(h),!(p<u)){if(p>d)break;y.push(p)}}else for(;h<=m;++h)for(g=n-1;g>=1;--g)if(p=h>0?g/i(-h):g*i(h),!(p<u)){if(p>d)break;y.push(p)}y.length*2<v&&(y=Aw(u,d,v))}else y=Aw(h,m,Math.min(m-h,v)).map(i);return f?y.reverse():y},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=vf(c)).precision==null&&(c.trim=!0),c=cS(c)),l===1/0)return c;const u=Math.max(1,n*l/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*n<n-.5&&(f*=n),f<=u?c(d):""}},t.nice=()=>r(ZD(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function e3(){const e=uS(dx()).domain([1,10]);return e.copy=()=>jh(e,e3()).base(e.base()),Rn.apply(e,arguments),e}
559function $C(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function MC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function dS(e){var t=1,r=e($C(t),MC(t));return r.constant=function(n){return arguments.length?e($C(t=+n),MC(t)):t},Li(r)}function t3(){var e=dS(dx());return e.copy=function(){return jh(e,t3()).constant(e.constant())},Rn.apply(e,arguments)}function RC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Dfe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Lfe(e){return e<0?-e*e:e*e}function fS(e){var t=e(Pr,Pr),r=1;function n(){return r===1?e(Pr,Pr):r===.5?e(Dfe,Lfe):e(RC(r),RC(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},Li(t)}function hS(){var e=fS(dx());return e.copy=function(){return jh(e,hS()).exponent(e.exponent())},Rn.apply(e,arguments),e}function Ffe(){return hS.apply(null,arguments).exponent(.5)}function DC(e){return Math.sign(e)*e*e}function Bfe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function r3(){var e=oS(),t=[0,1],r=!1,n;function a(i){var o=Bfe(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(DC(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,tg)).map(DC)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return r3(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Rn.apply(a,arguments),Li(a)}function n3(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=Hde(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[bh(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(yi),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return n3().domain(e).range(t).unknown(n)},Rn.apply(i,arguments)}function s3(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(c){return c!=null&&c<=c?a[bh(n,c,0,r)]:i}function l(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(r=(a=Array.from(c)).length-1,l()):a.slice()},o.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return s3().domain([e,t]).range(a).unknown(i)},Rn.apply(Li(o),arguments)}function a3(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[bh(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return a3().domain(e).range(t).unknown(r)},Rn.apply(a,arguments)}const mb=new Date,pb=new Date;function Gt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const c=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return c},a.filter=i=>Gt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(mb.setTime(+i),pb.setTime(+o),e(mb),e(pb),Math.floor(r(mb,pb))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const sg=Gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):sg);sg.range;const la=1e3,kn=la*60,ca=kn*60,Na=ca*24,mS=Na*7,LC=Na*30,gb=Na*365,vo=Gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*la)},(e,t)=>(t-e)/la,e=>e.getUTCSeconds());vo.range;const pS=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*la)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getMinutes());pS.range;const gS=Gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getUTCMinutes());gS.range;const vS=Gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*la-e.getMinutes()*kn)},(e,t)=>{e.setTime(+e+t*ca)},(e,t)=>(t-e)/ca,e=>e.getHours());vS.range;const xS=Gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ca)},(e,t)=>(t-e)/ca,e=>e.getUTCHours());xS.range;const Nh=Gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kn)/Na,e=>e.getDate()-1);Nh.range;const fx=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Na,e=>e.getUTCDate()-1);fx.range;const i3=Gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Na,e=>Math.floor(e/Na));i3.range;function nl(e){return Gt(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())*kn)/mS)}const hx=nl(0),ag=nl(1),zfe=nl(2),Ufe=nl(3),$c=nl(4),Wfe=nl(5),Vfe=nl(6);hx.range;ag.range;zfe.range;Ufe.range;$c.range;Wfe.range;Vfe.range;function sl(e){return Gt(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)/mS)}const mx=sl(0),ig=sl(1),Hfe=sl(2),qfe=sl(3),Mc=sl(4),Gfe=sl(5),Kfe=sl(6);mx.range;ig.range;Hfe.range;qfe.range;Mc.range;Gfe.range;Kfe.range;const yS=Gt(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());yS.range;const bS=Gt(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());bS.range;const Sa=Gt(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());Sa.every=e=>
vendor: 1,788 bytes, line 559
559!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(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)});Sa.range;const _a=Gt(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());_a.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gt(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)});_a.range;function o3(e,t,r,n,a,i){const o=[[vo,1,la],[vo,5,5*la],[vo,15,15*la],[vo,30,30*la],[i,1,kn],[i,5,5*kn],[i,15,15*kn],[i,30,30*kn],[a,1,ca],[a,3,3*ca],[a,6,6*ca],[a,12,12*ca],[n,1,Na],[n,2,2*Na],[r,1,mS],[t,1,LC],[t,3,3*LC],[e,1,gb]];function l(u,d,f){const h=d<u;h&&([u,d]=[d,u]);const m=f&&typeof f.range=="function"?f:c(u,d,f),g=m?m.range(u,+d+1):[];return h?g.reverse():g}function c(u,d,f){const h=Math.abs(d-u)/f,m=rS(([,,v])=>v).right(o,h);if(m===o.length)return e.every(Tw(u/gb,d/gb,f));if(m===0)return sg.every(Math.max(Tw(u,d,f),1));const[g,p]=o[h/o[m-1][2]<o[m][2]/h?m-1:m];return g.every(p)}return[l,c]}const[Yfe,Xfe]=o3(_a,bS,mx,i3,xS,gS),[Qfe,Jfe]=o3(Sa,yS,hx,Nh,vS,pS);function vb(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 xb(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 Wu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Zfe(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,u=Vu(a),d=Hu(a),f=Vu(i),h=Hu(i),m=Vu(o
vendor: 8,310 bytes, line 559
559),g=Hu(o),p=Vu(l),v=Hu(l),y=Vu(c),x=Hu(c),w={a:L,A:M,b:R,B,c:null,d:VC,e:VC,f:jhe,g:The,G:$he,H:yhe,I:bhe,j:whe,L:l3,m:Nhe,M:She,p:H,q:U,Q:GC,s:KC,S:_he,u:khe,U:Phe,V:Che,w:Ohe,W:Ahe,x:null,X:null,y:Ehe,Y:Ihe,Z:Mhe,"%":qC},N={a:q,A:ee,b:de,B:ce,c:null,d:HC,e:HC,f:Fhe,g:Yhe,G:Qhe,H:Rhe,I:Dhe,j:Lhe,L:u3,m:Bhe,M:zhe,p:G,q:ie,Q:GC,s:KC,S:Uhe,u:Whe,U:Vhe,V:Hhe,w:qhe,W:Ghe,x:null,X:null,y:Khe,Y:Xhe,Z:Jhe,"%":qC},j={a:A,A:C,b:T,B:E,c:O,d:UC,e:UC,f:phe,g:zC,G:BC,H:WC,I:WC,j:dhe,L:mhe,m:uhe,M:fhe,p:k,q:che,Q:vhe,s:xhe,S:hhe,u:she,U:ahe,V:ihe,w:nhe,W:ohe,x:D,X:$,y:zC,Y:BC,Z:lhe,"%":ghe};w.x=S(r,w),w.X=S(n,w),w.c=S(t,w),N.x=S(r,N),N.X=S(n,N),N.c=S(t,N);function S(X,te){return function(Z){var F=[],me=-1,pe=0,Y=X.length,he,_e,We;for(Z instanceof Date||(Z=new Date(+Z));++me<Y;)X.charCodeAt(me)===37&&(F.push(X.slice(pe,me)),(_e=FC[he=X.charAt(++me)])!=null?he=X.charAt(++me):_e=he==="e"?" ":"0",(We=te[he])&&(he=We(Z,_e)),F.push(he),pe=me+1);return F.push(X.slice(pe,me)),F.join("")}}function _(X,te){return function(Z){var F=Wu(1900,void 0,1),me=P(F,X,Z+="",0),pe,Y;if(me!=Z.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(te&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(pe=xb(Wu(F.y,0,1)),Y=pe.getUTCDay(),pe=Y>4||Y===0?ig.ceil(pe):ig(pe),pe=fx.offset(pe,(F.V-1)*7),F.y=pe.getUTCFullYear(),F.m=pe.getUTCMonth(),F.d=pe.getUTCDate()+(F.w+6)%7):(pe=vb(Wu(F.y,0,1)),Y=pe.getDay(),pe=Y>4||Y===0?ag.ceil(pe):ag(pe),pe=Nh.offset(pe,(F.V-1)*7),F.y=pe.getFullYear(),F.m=pe.getMonth(),F.d=pe.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Y="Z"in F?xb(Wu(F.y,0,1)).getUTCDay():vb(Wu(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Y+5)%7:F.w+F.U*7-(Y+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,xb(F)):vb(F)}}function P(X,te,Z,F){for(var me=0,pe=te.length,Y=Z.length,he,_e;me<pe;){if(F>=Y)return-1;if(he=te.charCodeAt(me++),he===37){if(he=te.charAt(me++),_e=j[he in FC?te.charAt(me++):he],!_e||(F=_e(X,Z,F))<0)return-1}else if(he!=Z.charCodeAt(F++))return-1}return F}function k(X,te,Z){var F=u.exec(te.slice(Z));return F?(X.p=d.get(F[0].toLowerCase()),Z+F[0].length):-1}function A(X,te,Z){var F=m.exec(te.slice(Z));return F?(X.w=g.get(F[0].toLowerCase()),Z+F[0].length):-1}function C(X,te,Z){var F=f.exec(te.slice(Z));return F?(X.w=h.get(F[0].toLowerCase()),Z+F[0].length):-1}function T(X,te,Z){var F=y.exec(te.slice(Z));return F?(X.m=x.get(F[0].toLowerCase()),Z+F[0].length):-1}function E(X,te,Z){var F=p.exec(te.slice(Z));return F?(X.m=v.get(F[0].toLowerCase()),Z+F[0].length):-1}function O(X,te,Z){return P(X,t,te,Z)}function D(X,te,Z){return P(X,r,te,Z)}function $(X,te,Z){return P(X,n,te,Z)}function L(X){return o[X.getDay()]}function M(X){return i[X.getDay()]}function R(X){return c[X.getMonth()]}function B(X){return l[X.getMonth()]}function H(X){return a[+(X.getHours()>=12)]}function U(X){return 1+~~(X.getMonth()/3)}function q(X){return o[X.getUTCDay()]}function ee(X){return i[X.getUTCDay()]}function de(X){return c[X.getUTCMonth()]}function ce(X){return l[X.getUTCMonth()]}function G(X){return a[+(X.getUTCHours()>=12)]}function ie(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var te=S(X+="",w);return te.toString=function(){return X},te},parse:function(X){var te=_(X+="",!1);return te.toString=function(){return X},te},utcFormat:function(X){var te=S(X+="",N);return te.toString=function(){return X},te},utcParse:function(X){var te=_(X+="",!0);return te.toString=function(){return X},te}}}var FC={"-":"",_:" ",0:"0"},Zt=/^\s*\d+/,ehe=/^%/,the=/[\\^$*+?|[\]().{}]/g;function Ue(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function rhe(e){return e.replace(the,"\\$&")}function Vu(e){return new RegExp("^(?:"+e.map(rhe).join("|")+")","i")}function Hu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function nhe(e,t,r){var n=Zt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function she(e,t,r){var n=Zt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ahe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ihe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ohe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function BC(e,t,r){var n=Zt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zC(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lhe(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 che(e,t,r){var n=Zt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function uhe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function UC(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dhe(e,t,r){var n=Zt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function WC(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function fhe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function hhe(e,t,r){var n=Zt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function mhe(e,t,r){var n=Zt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function phe(e,t,r){var n=Zt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ghe(e,t,r){var n=ehe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function vhe(e,t,r){var n=Zt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function xhe(e,t,r){var n=Zt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function VC(e,t){return Ue(e.getDate(),t,2)}function yhe(e,t){return Ue(e.getHours(),t,2)}function bhe(e,t){return Ue(e.getHours()%12||12,t,2)}function whe(e,t){return Ue(1+Nh.count(Sa(e),e),t,3)}function l3(e,t){return Ue(e.getMilliseconds(),t,3)}function jhe(e,t){return l3(e,t)+"000"}function Nhe(e,t){return Ue(e.getMonth()+1,t,2)}function She(e,t){return Ue(e.getMinutes(),t,2)}function _he(e,t){return Ue(e.getSeconds(),t,2)}function khe(e){var t=e.getDay();return t===0?7:t}function Phe(e,t){return Ue(hx.count(Sa(e)-1,e),t,2)}function c3(e){var t=e.getDay();return t>=4||t===0?$c(e):$c.ceil(e)}function Che(e,t){return e=c3(e),Ue($c.count(Sa(e),e)+(Sa(e).getDay()===4),t,2)}function Ohe(e){return e.getDay()}function Ahe(e,t){return Ue(ag.count(Sa(e)-1,e),t,2)}function Ehe(e,t){return Ue(e.getFullYear()%100,t,2)}function The(e,t){return e=c3(e),Ue(e.getFullYear()%100,t,2)}function Ihe(e,t){return Ue(e.getFullYear()%1e4,t,4)}function $he(e,t){var r=e.getDay();return e=r>=4||r===0?$c(e):$c.ceil(e),Ue(e.getFullYear()%1e4,t,4)}function Mhe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ue(t/60|0,"0",2)+Ue(t%60,"0",2)}function HC(e,t){return Ue(e.getUTCDate(),t,2)}function Rhe(e,t){return Ue(e.getUTCHours(),t,2)}function Dhe(e,t){return Ue(e.getUTCHours()%12||12,t,2)}function Lhe(e,t){return Ue(1+fx.count(_a(e),e),t,3)}function u3(e,t){return Ue(e.getUTCMilliseconds(),t,3)}function Fhe(e,t){return u3(e,t)+"000"}function Bhe(e,t){return Ue(e.getUTCMonth()+1,t,2)}function zhe(e,t){return Ue(e.getUTCMinutes(),t,2)}function Uhe(e,t){return Ue(e.getUTCSeconds(),t,2)}function Whe(e){var t=e.getUTCDay();return t===0?7:t}function Vhe(e,t){return Ue(mx.count(_a(e)-1,e),t,2)}function d3(e){var t=e.getUTCDay();return t>=4||t===0?Mc(e):Mc.ceil(e)}function Hhe(e,t){return e=d3(e),Ue(Mc.count(_a(e),e)+(_a(e).getUTCDay()===4),t,2)}function qhe(e){return e.getUTCDay()}function Ghe(e,t){return Ue(ig.count(_a(e)-1,e),t,2)}function Khe(e,t){return Ue(e.getUTCFullYear()%100,t,2)}function Yhe(e,t){return e=d3(e),Ue(e.getUTCFullYear()%100,t,2)}function Xhe(e,t){return Ue(e.getUTCFullYear()%1e4,t,4)}function Qhe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Mc(e):Mc.ceil(e),Ue(e.getUTCFullYear()%1e4,t,4)}function Jhe(){return"+0000"}function qC(){return"%"}function GC(e){return+e}function KC(e){return Math.floor(+e/1e3)}var bl,f3,h3;Zhe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
559ay","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 Zhe(e){return bl=Zfe(e),f3=bl.format,bl.parse,h3=bl.utcFormat,bl.utcParse,bl}function eme(e){return new Date(e)}function tme(e){return e instanceof Date?+e:+new Date(+e)}function wS(e,t,r,n,a,i,o,l,c,u){var d=oS(),f=d.invert,h=d.domain,m=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),x=u("%b %d"),w=u("%B"),N=u("%Y");function j(S){return(c(S)<S?m:l(S)<S?g:o(S)<S?p:i(S)<S?v:n(S)<S?a(S)<S?y:x:r(S)<S?w:N)(S)}return d.invert=function(S){return new Date(f(S))},d.domain=function(S){return arguments.length?h(Array.from(S,tme)):h().map(eme)},d.ticks=function(S){var _=h();return e(_[0],_[_.length-1],S??10)},d.tickFormat=function(S,_){return _==null?j:u(_)},d.nice=function(S){var _=h();return(!S||typeof S.range!="function")&&(S=t(_[0],_[_.length-1],S??10)),S?h(ZD(_,S)):d},d.copy=function(){return jh(d,wS(e,t,r,n,a,i,o,l,c,u))},d}function rme(){return Rn.apply(wS(Qfe,Jfe,Sa,yS,hx,Nh,vS,pS,vo,f3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nme(){return Rn.apply(wS(Yfe,Xfe,_a,bS,mx,fx,xS,gS,vo,h3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function px(){var e=0,t=1,r,n,a,i,o=Pr,l=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(a===0?.5:(f=(i(f)-r)*a,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(h){var m,g;return arguments.length?([m,g]=h,o=f(m,g),u):[o(0),o(1)]}}return u.range=d(Su),u.rangeRound=d(iS),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function Fi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function m3(){var e=Li(px()(Pr));return e.copy=function(){return Fi(e,m3())},Aa.apply(e,arguments)}function p3(){var e=uS(px()).domain([1,10]);return e.copy=function(){return Fi(e,p3()).base(e.base())},Aa.apply(e,arguments)}function g3(){var e=dS(px());return e.copy=function(){return Fi(e,g3()).constant(e.constant())},Aa.apply(e,arguments)}function jS(){var e=fS(px());return e.copy=function(){return Fi(e,jS()).exponent(e.exponent())},Aa.apply(e,arguments)}function sme(){return jS.apply(null,arguments).exponent(.5)}function v3(){var e=[],t=Pr;function r(n){if(n!=null&&!isNaN(n=+n))return t((bh(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(yi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Vde(e,i/n))},r.copy=function(){return v3(t).domain(e)},Aa.apply(r,arguments)}function gx(){var e=0,t=.5,r=1,n=1,a,i,o,l,c,u=Pr,d,f=!1,h;function m(p){return isNaN(p=+p)?h:(p=.5+((p=+d(p))-i)*(n*p<n*i?l:c),u(f?Math.max(0,Math.min(1,p)):p))}m.domain=function(p){return arguments.length?([e,t,r]=p,a=d(e=+e),i=d(t=+t),o=d(r=+r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,m):[e,t,r]},m.clamp=function(p){return arguments.length?(f=!!p,m):f},m.interpolator=function(p){return arguments.length?(u=p,m):u};function g(p){return function(v){var y,x,w;return arguments.length?([y,x,w]=v,u=gfe(p,[y,x,w]),m):[u(0),u(.5),u(1)]}}return m.range=g(Su),m.rangeRound=g(iS),m.unknown=function(p){return arguments.length?(h=p,m):h},function(p){return d=p,a=p(e),i=p(t),o=p(r),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),n=i<a?-1:1,m}}function x3(){var e=Li(gx()(Pr));return e.copy=function(){return Fi(e,x3())},Aa.apply(e,arguments)}function y3(){var e=uS(gx()).domain([.1,1,10]);return e.copy=function(){return Fi(e,y3()).base(e.base())},Aa.apply(e,arguments)}function b3(){var e=dS(gx());return e.copy=function(){return Fi(e,b3()).constant(e.constant())},Aa.apply(e,arguments)}function NS(){var e=fS(gx());return e.copy=function(){return Fi(e,NS()).exponent(e.exponent())},Aa.apply(e,arguments)}function ame(){return NS.apply(null,arguments).exponent(.5)}const YC=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:hf,scaleDiverging:x3,scaleDivergingLog:y3,scaleDivergingPow:NS,scaleDivergingSqrt:ame,scaleDivergingSymlog:b3,scaleIdentity:JD,scaleImplicit:Iw,scaleLinear:ng,scaleLog:e3,scaleOrdinal:nS,scalePoint:Nd,scalePow:hS,scaleQuantile:n3,scaleQuantize:s3,scaleRadial:r3,scaleSequential:m3,scaleSequentialLog:p3,scaleSequentialPow:jS,scaleSequentialQuantile:v3,scaleSequentialSqrt:sme,scaleSequentialSymlog:g3,scaleSqrt:Ffe,scaleSymlog:t3,scaleThreshold:a3,scaleTime:rme,scaleUtc:nme,tickFormat:QD},Symbol.toStringTag,{value:"Module"}));var ime=pu;function ome(e,t,r){for(var n=-1,a=e.length;++n<a;){var i=e[n],o=t(i);if(o!=null&&(l===void 0?o===o&&!ime(o):r(o,l)))var l=o,c=i}return c}var vx=ome;function lme(e,t){return e>t}var w3=lme,cme=vx,ume=w3,dme=Nu;function fme(e){return e&&e.length?cme(e,dme,ume):void 0}var hme=fme;const xx=Ke(hme);function mme(e,t){return e<t}var j3=mme,pme=vx,gme=j3,vme=Nu;function xme(e){return e&&e.length?pme(e,vme,gme):void 0}var yme=xme;const yx=Ke(yme);var bme=DN,wme=Ks,jme=AD,Nme=Kr;function Sme(e,t){var r=Nme(e)?bme:jme;return r(e,wme(t))}var _me=Sme,kme=CD,Pme=_me;function Cme(e,t){return kme(Pme(e,t),1)}var Ome=Cme;const Ame=Ke(Ome);var Eme=JN;function Tme(e,t){return Eme(e,t)}var Ime=Tme;const Sh=Ke(Ime);
vendor: 62,900 bytes, lines 559-586
559var _u=1e9,$me={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_S,pt=!0,$n="[DecimalError] ",Oo=$n+"Invalid argument: ",SS=$n+"Exponent out of range: ",ku=Math.floor,oo=Math.pow,Mme=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tn,Yt=1e7,ft=7,N3=9007199254740991,og=ku(N3/ft),ve={};ve.absoluteValue=ve.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ve.comparedTo=ve.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};ve.decimalPlaces=ve.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ve.dividedBy=ve.div=function(e){return ha(this,new this.constructor(e))};ve.dividedToIntegerBy=ve.idiv=function(e){var t=this,r=t.constructor;return et(ha(t,new r(e),0,1),r.precision)};ve.equals=ve.eq=function(e){return!this.cmp(e)};ve.exponent=function(){return Rt(this)};ve.greaterThan=ve.gt=function(e){return this.cmp(e)>0};ve.greaterThanOrEqualTo=ve.gte=function(e){return this.cmp(e)>=0};ve.isInteger=ve.isint=function(){return this.e>this.d.length-2};ve.isNegative=ve.isneg=function(){return this.s<0};ve.isPositive=ve.ispos=function(){return this.s>0};ve.isZero=function(){return this.s===0};ve.lessThan=ve.lt=function(e){return this.cmp(e)<0};ve.lessThanOrEqualTo=ve.lte=function(e){return this.cmp(e)<1};ve.logarithm=ve.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(tn))throw Error($n+"NaN");if(r.s<1)throw Error($n+(r.s?"NaN":"-Infinity"));return r.eq(tn)?new n(0):(pt=!1,t=ha(xf(r,i),xf(e,i),i),pt=!0,et(t,a))};ve.minus=ve.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k3(t,e):S3(t,(e.s=-e.s,e))};ve.modulo=ve.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error($n+"NaN");return r.s?(pt=!1,t=ha(r,e,0,1).times(e),pt=!0,r.minus(t)):et(new n(r),a)};ve.naturalExponential=ve.exp=function(){return _3(this)};ve.naturalLogarithm=ve.ln=function(){return xf(this)};ve.negated=ve.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ve.plus=ve.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S3(t,e):k3(t,(e.s=-e.s,e))};ve.precision=ve.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oo+e);if(t=Rt(a)+1,n=a.d.length-1,r=n*ft+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ve.squareRoot=ve.sqrt=function(){var e,t,r,n,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error($n+"NaN")}for(e=Rt(l),pt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=$s(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=ku((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(a.toString()),r=c.precision,a=o=r+3;;)if(i=n,n=i.plus(ha(l,i,o+2)).times(.5),$s(i.d).slice(0,o)===(t=$s(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(et(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if(t!="9999")break;o+=4}return pt=!0,et(n,r)};ve.times=ve.mul=function(e){var t,r,n,a,i,o,l,c,u,d=this,f=d.constructor,h=d.d,m=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,r=d.e+e.e,c=h.length,u=m.length,c<u&&(i=h,h=m,m=i,o=c,c=u,u=o),i=[],o=c+u,n=o;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,a=c+n;a>n;)l=i[a]+m[n]*h[a-n-1]+t,i[a--]=l%Yt|0,t=l/Yt|0;i[a]=(i[a]+t)%Yt|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,pt?et(e,f.precision):e};ve.toDecimalPlaces=ve.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vs(e,0,_u),t===void 0?t=n.rounding:Vs(t,0,8),et(r,e+Rt(r)+1,t))};ve.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=zo(n,!0):(Vs(e,0,_u),t===void 0?t=a.rounding:Vs(t,0,8),n=et(new a(n),e+1,t),r=zo(n,!0,e+1)),r};ve.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?zo(a):(Vs(e,0,_u),t===void 0?t=i.rounding:Vs(t,0,8),n=et(new i(a),e+Rt(a)+1,t),r=zo(n.abs(),!1,e+Rt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};ve.toInteger=ve.toint=function(){var e=this,t=e.constructor;return et(new t(e),Rt(e)+1,t.rounding)};ve.toNumber=function(){return+this};ve.toPower=ve.pow=function(e){var t,r,n,a,i,o,l=this,c=l.constructor,u=12,d=+(e=new c(e));if(!e.s)return new c(tn);if(l=new c(l),!l.s){if(e.s<1)throw Error($n+"Infinity");return l}if(l.eq(tn))return l;if(n=c.precision,e.eq(tn))return et(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=l.s,o){if((r=d<0?-d:d)<=N3){for(a=new c(tn),t=Math.ceil(n/ft+4),pt=!1;r%2&&(a=a.times(l),QC(a.d,t)),r=ku(r/2),r!==0;)l=l.times(l),QC(l.d,t);return pt=!0,e.s<0?new c(tn).div(a):et(a,n)}}else if(i<0)throw Error($n+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,pt=!1,a=e.times(xf(l,n+u)),pt=!0,a=_3(a),a.s=i,a};ve.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=Rt(a),n=zo(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vs(e,1,_u),t===void 0?t=i.rounding:Vs(t,0,8),a=et(new i(a),e,t),r=Rt(a),n=zo(a,e<=r||r<=i.toExpNeg,e)),n};ve.toSignificantDigits=ve.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vs(e,1,_u),t===void 0?t=n.rounding:Vs(t,0,8)),et(new n(r),e,t)};ve.toString=ve.valueOf=ve.val=ve.toJSON=ve[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Rt(e),r=e.constructor;return zo(e,t<=r.toExpNeg||t>=r.toExpPos)};function S3(e,t){var r,n,a,i,o,l,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),pt?et(t,f):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),i=o-a,i){for(i<0?(n=c,i=-i,l=u.length):(n=u,a=o,l=c.length),o=Math.ceil(f/ft),l=o>l?o+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=c.length,i=u.length,l-i<0&&(i=l,n=u,u=c,c=n),r=0;i;)r=(c[--i]=c[i]+u[i]+r)/Yt|0,c[i]%=Yt;for(r&&(c.unshift(r),++a),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=a,pt?et(t,f):t}function Vs(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Oo+e)}function $s(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=ft-n.length,r&&(i+=Ka(r)),i+=n;o=e[t],n=o+"",r=ft-n.length,r&&(i+=Ka(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ha=function(){function e(n,a){var i,o=0,l=n.length;for(n=n.slice();l--;)i=n[l]*a+o,n[l]=i%Yt|0,o=i/Yt|0;return o&&n.unshift(o),n}function t(n,a,i,o){var l,c;if(i!=o)c=i>o?1:-1;else for(l=c=0;l<i;l++)if(n[l]!=a[l]){c=n[l]>a[l]?1:-1;break}return c}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*Yt+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var l,c,u,d,f,h,m,g,p,v,y,x,w,N,j,S,_,P,k=n.constructor,A=n.s==a.s?1:-1,C=n.d,T=a.d;if(!n.s)return new k(n);if(!a.s)throw Error($n+"Division by zero");for(c=n.e-a.e,_=T.length,j=C.length,m=new k(A),g=m.d=[],u=0;T[u]==(C[u]||0);)++u;if(T[u]>(C[u]||0)&&--c,i==null?x=i=k.precision:o?x=i+(Rt(n)-Rt(a))+1:x=i,x<0)return new k(0);if(x=x/ft+2|0,u=0,_==1)for(d=0,T=T[0],x++;(u<j||d)&&x--;u++)w=d*Yt+(C[u]||0),g[u]=w/T|0,d=w%T|0;else{for(d=Yt/(T[0]+1)|0,d>1&&(T=e(T,d),C=e(C,d),_=T.length,j=C.length),N=_,p=C.slice(0,_),v=p.length;v<_;)p[v++]=0;P=T.slice(),P.unshift(0),S=T[0],T[1]>=Yt/2&&++S;do d=0,l=t(T,p,_,v),l<0?(y=p[0],_!=v&&(y=y*Yt+(p[1]||0)),d=y/S|0,d>1?(d>=Yt&&(d=Yt-1),f=e(T,d),h=f.length,v=p.length,l=t(f,p,h,v),l==1&&(d--,r(f,_<h?P:T,h))):(d==0&&(l=d=1),f=T.slice()),h=f.length,h<v&&f.unshift(0),r(p,f,v),l==-1&&(v=p.length,l=t(T,p,_,v),l<1&&(d++,r(p,_<v?P:T,v))),v=p.length):l===0&&(d++,p=[0]),g[u++]=d,l&&p[0]?p[v++]=C[N]||0:(p=[C[N]],v=1);while((N++<j||p[0]!==void 0)&&x--)}return g[0]||g.shift(),m.e=c,et(m,o?i+Rt(m)+1:i)}}();function _3(e,t){var r,n,a,i,o,l,c=0,u=0,d=e.constructor,f=d.precision;if(Rt(e)>16)throw Error(SS+Rt(e));if(!e.s)return new d(tn);for(t==null?(pt=!1,l=f):l=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(oo(2,u))/Math.LN10*2+5|0,l+=n,r=a=i=new d(tn),d.precision=l;;){if(a=et(a.times(e),l),r=r.times(++c),o=i.plus(ha(a,r,l)),$s(o.d).slice(0,l)===$s(i.d).slice(0,l)){for(;u--;)i=et(i.times(i),l);return d.precision=f,t==null?(pt=!0,et(i,f)):i}i=o}}function Rt(e){for(var t=e.e*ft,r=e.d[0];r>=10;r/=10)t++;return t}function yb(e,t,r){if(t>e.LN10.sd())throw pt=!0,r&&(e.precision=r),Error($n+"LN10 precision limit exceeded");return et(new e(e.LN10),t)}function Ka(e){for(var t="";e--;)t+="0";return t}function xf(e,t){var r,n,a,i,o,l,c,u,d,f=1,h=10,m=e,g=m.d,p=m.constructor,v=p.precision;if(m.s<1)throw Error($n+(m.s?"NaN":"-Infinity"));if(m.eq(tn))return new p(0);if(t==null?(pt=!1,u=v):u=t,m.eq(10))return t==null&&(pt=!0),yb(p,u);if(u+=h,p.precision=u,r=$s(g),n=r.charAt(0),i=Rt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=$s(m.d),n=r.charAt(0),f++;i=Rt(m),n>1?(m=new p("0."+r),i++):m=new p(n+"."+r.slice(1))}else return c=yb(p,u+2,v).times(i+""),m=xf(new p(n+"."+r.slice(1)),u-h).plus(c),p.precision=v,t==null?(pt=!0,et(m,v)):m;for(l=o=m=ha(m.minus(tn),m.plus(tn),u),d=et(m.times(m),u),a=3;;){if(o=et(o.times(d),u),c=l.plus(ha(o,new p(a),u)),$s(c.d).slice(0,u)===$s(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(yb(p,u+2,v).times(i+""))),l=ha(l,new p(f),u),p.precision=v,t==null?(pt=!0,et(l,v)):l;l=c,a+=2}}function XC(e,t){var r,n,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=ku(r/ft),e.d=[],n=(r+1)%ft,r<0&&(n+=ft),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=ft;n<a;)e.d.push(+t.slice(n,n+=ft));t=t.slice(n),n=ft-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),pt&&(e.e>og||e.e<-og))throw Error(SS+r)}else e.s=0,e.e=0,e.d=[0];return e}function et(e,t,r){var n,a,i,o,l,c,u,d,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ft,a=t,u=f[d=0];else{if(d=Math.ceil((n+1)/ft),i=f.length,d>=i)return e;for(u=i=f[d],o=1;i>=10;i/=10)o++;n%=ft,a=n-ft+o}if(r!==void 0&&(i=oo(10,o-a-1),l=u/i%10|0,c=t<0||f[d+1]!==void 0||u%i,c=r<4?(l||c)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||c||r==6&&(n>0?a>0?u/oo(10,o-a):0:f[d-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(i=Rt(e),f.length=1,t=t-i-1,f[0]=oo(10,(ft-t%ft)%ft),e.e=ku(-t/ft)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=d,i=1,d--):(f.length=d+1,i=oo(10,ft-n),f[d]=a>0?(u/oo(10,o-a)%oo(10,a)|0)*i:0),c)for(;;)if(d==0){(f[0]+=i)==Yt&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Yt)break;f[d--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(pt&&(e.e>og||e.e<-og))throw Error(SS+Rt(e));return e}function k3(e,t){var r,n,a,i,o,l,c,u,d,f,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),pt?et(t,m):t;if(c=e.d,f=t.d,n=t.e,u=e.e,c=c.slice(),o=u-n,o){for(d=o<0,d?(r=c,o=-o,l=f.length):(r=f,n=u,l=c.length),a=Math.max(Math.ceil(m/ft),l)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=c.length,l=f.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(c[a]!=f[a]){d=c[a]<f[a];break}o=0}for(d&&(r=c,c=f,f=r,t.s=-t.s),l=c.length,a=f.length-l;a>0;--a)c[l++]=0;for(a=f.length;a>o;){if(c[--a]<f[a]){for(i=a;i&&c[--i]===0;)c[i]=Yt-1;--c[i],c[a]+=Yt}c[a]-=f[a]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,pt?et(t,m):t):new h(0)}function zo(e,t,r){var n,a=Rt(e),i=$s(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+Ka(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ka(-a-1)+i,r&&(n=r-o)>0&&(i+=Ka(n))):a>=o?(i+=Ka(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+Ka(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=Ka(n))),e.s<0?"-"+i:i}function QC(e,t){if(e.length>t)return e.length=t,!0}function P3(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Oo+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return XC(o,i.toString())}else if(typeof i!="string")throw Error(Oo+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,Mme.test(i))XC(o,i);else throw Error(Oo+i)}if(a.prototype=ve,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=P3,a.config=a.set=Rme,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 a.config(e),a}function Rme(e){if(!e||typeof e!="object")throw Error($n+"Object expected");var t,r,n,a=["precision",1,_u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(ku(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Oo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oo+r+": "+n);return this}var _S=P3($me);tn=new _S(1);const Je=_S;function Dme(e){return zme(e)||Bme(e)||Fme(e)||Lme()}function Lme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
560In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fme(e,t){if(e){if(typeof e=="string")return Dw(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 Dw(e,t)}}function Bme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function zme(e){if(Array.isArray(e))return Dw(e)}function Dw(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 Ume=function(t){return t},C3={"@@functional/placeholder":!0},O3=function(t){return t===C3},JC=function(t){return function r(){return arguments.length===0||arguments.length===1&&O3(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Wme=function e(t,r){return t===1?r:JC(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==C3}).length;return o>=t?r.apply(void 0,a):e(t-o,JC(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=a.map(function(f){return O3(f)?c.shift():f});return r.apply(void 0,Dme(d).concat(c))}))})},bx=function(t){return Wme(t.length,t)},Lw=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},Vme=bx(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Hme=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Ume;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,c){return c(l)},i.apply(void 0,arguments))}},Fw=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},A3=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(l,c){return l===r[c]})||(r=i,n=t.apply(void 0,i)),n}};function qme(e){var t;return e===0?t=1:t=Math.floor(new Je(e).abs().log(10).toNumber())+1,t}function Gme(e,t,r){for(var n=new Je(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var Kme=bx(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),Yme=bx(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Xme=bx(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const wx={rangeStep:Gme,getDigitCount:qme,interpolateNumber:Kme,uninterpolateNumber:Yme,uninterpolateTruncation:Xme};function Bw(e){return Zme(e)||Jme(e)||E3(e)||Qme()}function Qme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
561In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Zme(e){if(Array.isArray(e))return zw(e)}function yf(e,t){return rpe(e)||tpe(e,t)||E3(e,t)||epe()}function epe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
562In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E3(e,t){if(e){if(typeof e=="string")return zw(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 zw(e,t)}}function zw(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 tpe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(c){a=!0,i=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function rpe(e){if(Array.isArray(e))return e}function T3(e){var t=yf(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function I3(e,t,r){if(e.lte(0))return new Je(0);var n=wx.getDigitCount(e.toNumber()),a=new Je(10).pow(n),i=e.div(a),o=n!==1?.05:.1,l=new Je(Math.ceil(i.div(o).toNumber())).add(r).mul(o),c=l.mul(a);return t?c:new Je(Math.ceil(c))}function npe(e,t,r){var n=1,a=new Je(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Je(10).pow(wx.getDigitCount(e)-1),a=new Je(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Je(Math.floor(e)))}else e===0?a=new Je(Math.floor((t-1)/2)):r||(a=new Je(Math.floor(e)));var o=Math.floor((t-1)/2),l=Hme(Vme(function(c){return a.add(new Je(c-o).mul(n)).toNumber()}),Lw);return l(0,t)}function $3(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Je(0),tickMin:new Je(0),tickMax:new Je(0)};var i=I3(new Je(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Je(0):(o=new Je(e).add(t).div(2),o=o.sub(new Je(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),c=Math.ceil(new Je(t).sub(o).div(i).toNumber()),u=l+c+1;return u>r?$3(e,t,r,n,a+1):(u<r&&(c=t>0?c+(r-u):c,l=t>0?l:l+(r-u)),{step:i,tickMin:o.sub(new Je(l).mul(i)),tickMax:o.add(new Je(c).mul(i))})}function spe(e){var t=yf(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=T3([r,n]),c=yf(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Bw(Lw(0,a-1).map(function(){return 1/0}))):[].concat(Bw(Lw(0,a-1).map(function(){return-1/0})),[d]);return r>n?Fw(f):f}if(u===d)return npe(u,a,i);var h=$3(u,d,o,i),m=h.step,g=h.tickMin,p=h.tickMax,v=wx.rangeStep(g,p.add(new Je(.1).mul(m)),m);return r>n?Fw(v):v}function ape(e,t){var r=yf(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=T3([n,a]),l=yf(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[n,a];if(c===u)return[c];var d=Math.max(t,2),f=I3(new Je(u).sub(c).div(d-1),i,0),h=[].concat(Bw(wx.rangeStep(new Je(c),new Je(u).sub(new Je(.99).mul(f)),f)),[u]);return n>a?Fw(h):h}var ipe=A3(spe),ope=A3(ape),lpe="Invariant failed";function Uo(e,t){throw new Error(lpe)}var cpe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}function lg(){return lg=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},lg.apply(this,arguments)}function upe(e,t){return mpe(e)||hpe(e,t)||fpe(e,t)||dpe()}function dpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
563In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fpe(e,t){if(e){if(typeof e=="string")return ZC(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 ZC(e,t)}}function ZC(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 hpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function mpe(e){if(Array.isArray(e))return e}function ppe(e,t){if(e==null)return{};var r=gpe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gpe(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 vpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xpe(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,D3(n.key),n)}}function ype(e,t,r){return t&&xpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bpe(e,t,r){return t=cg(t),wpe(e,M3()?Reflect.construct(t,r||[],cg(e).constructor):t.apply(e,r))}function wpe(e,t){if(t&&(Rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jpe(e)}function jpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M3=function(){return!!e})()}function cg(e){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cg(e)}function Npe(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&&Uw(e,t)}function Uw(e,t){return Uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uw(e,t)}function R3(e,t,r){return t=D3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D3(e){var t=Spe(e,"string");return Rc(t)=="symbol"?t:t+""}function Spe(e,t){if(Rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _h=function(e){function t(){return vpe(this,t),bpe(this,t,arguments)}return Npe(t,e),ype(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,l=n.dataKey,c=n.data,u=n.dataPointFormatter,d=n.xAxis,f=n.yAxis,h=ppe(n,cpe),m=be(h,!1);this.props.direction==="x"&&d.type!=="number"&&Uo();var g=c.map(function(p){var v=u(p,l),y=v.x,x=v.y,w=v.value,N=v.errorVal;if(!N)return null;var j=[],S,_;if(Array.isArray(N)){var P=upe(N,2);S=P[0],_=P[1]}else S=_=N;if(i==="vertical"){var k=d.scale,A=x+a,C=A+o,T=A-o,E=k(w-S),O=k(w+_);j.push({x1:O,y1:C,x2:O,y2:T}),j.push({x1:E,y1:A,x2:O,y2:A}),j.push({x1:E,y1:C,x2:E,y2:T})}else if(i==="horizontal"){var D=f.scale,$=y+a,L=$-o,M=$+o,R=D(w-S),B=D(w+_);j.push({x1:L,y1:B,x2:M,y2:B}),j.push({x1:$,y1:R,x2:$,y2:B}),j.push({x1:L,y1:R,x2:M,y2:R})}return I.createElement(ze,lg({className:"recharts-errorBar",key:"bar-".concat(j.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},m),j.map(function(H){return I.createElement("line",lg({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return I.createElement(ze,{className:"recharts-errorBars"},g)}}])}(I.Component);R3(_h,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});R3(_h,"displayName","ErrorBar");function bf(e){"@babel/helpers - typeof";return bf=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},bf(e)}function eO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(r),!0).forEach(function(n){_pe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _pe(e,t,r){return t=kpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kpe(e){var t=Ppe(e,"string");return bf(t)=="symbol"?t:t+""}function Ppe(e,t){if(bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L3=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=Jr(r,xi);if(!o)return null;var l=xi.defaultProps,c=l!==void 0?Zi(Zi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(n||[]).reduce(function(d,f){var h=f.item,m=f.props,g=m.sectors||m.data||[];return d.concat(g.map(function(p){return{type:o.props.iconType||h.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(d){var f=d.item,h=f.type.defaultProps,m=h!==void 0?Zi(Zi({},h),f.props):{},g=m.dataKey,p=m.name,v=m.legendType,y=m.hide;return{inactive:y,dataKey:g,type:c.iconType||v||"square",color:kS(f),value:p||g,payload:m}}),Zi(Zi(Zi({},c),xi.getWithHeight(o,a)),{},{payload:u,item:o})};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 tO(e){return Epe(e)||Ape(e)||Ope(e)||Cpe()}function Cpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
564In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ope(e,t){if(e){if(typeof e=="string")return Ww(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 Ww(e,t)}}function Ape(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Epe(e){if(Array.isArray(e))return Ww(e)}function Ww(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 rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rO(Object(r),!0).forEach(function(n){nc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nc(e,t,r){return t=Tpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tpe(e){var t=Ipe(e,"string");return wf(t)=="symbol"?t:t+""}function Ipe(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)}function Ut(e,t,r){return Ce(e)||Ce(t)?r:Vt(t)?cn(e,t,r):Se(t)?t(e):r}function Sd(e,t,r,n){var a=Ame(e,function(l){return Ut(l,t)});if(r==="number"){var i=a.filter(function(l){return ae(l)||parseFloat(l)});return i.length?[yx(i),xx(i)]:[1/0,-1/0]}var o=n?a.filter(function(l){return!Ce(l)}):a;return o.map(function(l){return Vt(l)||l instanceof Date?l:""})}var $pe=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<l;u++){var d=u>0?a[u-1].coordinate:a[l-1].coordinate,f=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,m=void 0;if(_r(f-d)!==_r(h-f)){var g=[];if(_r(h-f)===_r(c[1]-c[0])){m=h;var p=f+c[1]-c[0];g[0]=Math.min(p,(p+d)/2),g[1]=Math.max(p,(p+d)/2)}else{m=d;var v=h+c[1]-c[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(m+f)/2),Math.max(f,(m+f)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=a[u].index;break}}else{var x=Math.min(d,h),w=Math.max(d,h);if(t>(x+f)/2&&t<=(w+f)/2){o=a[u].index;break}}}else for(var N=0;N<l;N++)if(N===0&&t<=(n[N].coordinate+n[N+1].coordinate)/2||N>0&&N<l-1&&t>(n[N].coordinate+n[N-1].coordinate)/2&&t<=(n[N].coordinate+n[N+1].coordinate)/2||N===l-1&&t>(n[N].coordinate+n[N-1].coordinate)/2){o=n[N].index;break}return o},kS=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,c;switch(a){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},Mpe=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),c=0,u=l.length;c<u;c++)for(var d=i[l[c]].stackGroups,f=Object.keys(d),h=0,m=f.length;h<m;h++){var g=d[f[h]],p=g.items,v=g.cateAxisId,y=p.filter(function(_){return fa(_.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,w=x!==void 0?_t(_t({},x),y[0].props):y[0].props,N=w.barSize,j=w[v];o[j]||(o[j]=[]);var S=Ce(N)?r:N;o[j].push({item:y[0],stackList:y.slice(1),barSize:Ce(S)?void 0:kr(S,n,0)})}}return o},Rpe=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,c=o.length;if(c<1)return null;var u=kr(r,a,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=a/c,g=o.reduce(function(N,j){return N+j.barSize||0},0);g+=(c-1)*u,g>=a&&(g-=(c-1)*u,u=0),g>=a&&m>0&&(h=!0,m*=.9,g=c*m);var p=(a-g)/2>>0,v={offset:p-u,size:0};d=o.reduce(function(N,j){var S={item:j.item,position:{offset:v.offset+v.size+u,size:h?m:j.barSize}},_=[].concat(tO(N),[S]);return v=_[_.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){_.push({item:P,position:v})}),_},f)}else{var y=kr(n,a,0,!0);a-2*y-(c-1)*u<=0&&(u=0);var x=(a-2*y-(c-1)*u)/c;x>1&&(x>>=0);var w=l===+l?Math.min(x,l):x;d=o.reduce(function(N,j,S){var _=[].concat(tO(N),[{item:j.item,position:{offset:y+(x+u)*S+(x-w)/2,size:w}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){_.push({item:P,position:_[_.length-1].position})}),_},f)}return d},Dpe=function(t,r,n,a){var i=n.children,o=n.width,l=n.margin,c=o-(l.left||0)-(l.right||0),u=L3({children:i,legendWidth:c});if(u){var d=a||{},f=d.width,h=d.height,m=u.align,g=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&m!=="center"&&ae(t[m]))return _t(_t({},t),{},nc({},m,t[m]+(f||0)));if((p==="horizontal"||p==="vertical"&&m==="center")&&g!=="middle"&&ae(t[g]))return _t(_t({},t),{},nc({},g,t[g]+(h||0)))}return t},Lpe=function(t,r,n){return Ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},F3=function(t,r,n,a,i){var o=r.props.children,l=un(o,_h).filter(function(u){return Lpe(a,i,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=Ut(d,n);if(Ce(f))return u;var h=Array.isArray(f)?[yx(f),xx(f)]:[f,f],m=c.reduce(function(g,p){var v=Ut(d,p,0),y=h[0]-Math.abs(Array.isArray(v)?v[0]:v),x=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},Fpe=function(t,r,n,a,i){var o=r.map(function(l){return F3(t,l,n,i,a)}).filter(function(l){return!Ce(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},B3=function(t,r,n,a,i){var o=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&F3(t,c,u,a)||Sd(t,u,n,i)});if(n==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},z3=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},U3=function(t,r,n,a){if(a)return t.map(function(c){return c.coordinate});var i,o,l=t.map(function(c){return c.coordinate===r&&(i=!0),c.coordinate===n&&(o=!0),c.coordinate});return i||l.push(r),o||l.push(n),l},ua=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?_r(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:a(h)+u,value:f,offset:u}});return d.filter(function(f){return!xh(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:a(f)+u,value:f,index:h,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,h){return{coordinate:a(f)+u,value:i?i[f]:f,index:h,offset:u}})},bb=new WeakMap,bm=function(t,r){if(typeof r!="function")return t;bb.has(t)||bb.set(t,new WeakMap);var n=bb.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},W3=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:hf(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ng(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Nd(),realScaleType:"point"}:i==="category"?{scale:hf(),realScaleType:"band"}:{scale:ng(),realScaleType:"linear"};if(Lo(a)){var c="scale".concat(nx(a));return{scale:(YC[c]||Nd)(),realScaleType:YC[c]?c:"point"}}return Se(a)?{scale:a}:{scale:Nd(),realScaleType:"point"}},nO=1e-4,V3=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-nO,o=Math.max(a[0],a[1])+nO,l=t(r[0]),c=t(r[n-1]);(l<i||l>o||c<i||c>o)&&t.domain([r[0],r[n-1]])}},Bpe=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},zpe=function(t,r){if(!r||r.length!==2||!ae(r[0])||!ae(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!ae(t[0])||t[0]<n)&&(i[0]=n),(!ae(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},Upe=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,l=0;l<r;++l){var c=xh(t[l][n][1])?t[l][n][0]:t[l][n][1];c>=0?(t[l][n][0]=i,t[l][n][1]=i+c,i=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+c,o=t[l][n][1])}},Wpe=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var l=xh(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=i,t[o][n][1]=i+l,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Vpe={sign:Upe,expand:cre,none:Cc,silhouette:ure,wiggle:dre,positive:Wpe},Hpe=function(t,r,n){var a=r.map(function(l){return l.props.dataKey}),i=Vpe[n],o=lre().keys(a).value(function(l,c){return+Ut(l,c,0)}).order(mw).offset(i);return o(t)},qpe=function(t,r,n,a,i,o){if(!t)return null;var l=o?r.reverse():r,c={},u=l.reduce(function(f,h){var m,g=(m=h.type)!==null&&m!==void 0&&m.defaultProps?_t(_t({},h.type.defaultProps),h.props):h.props,p=g.stackId,v=g.hide;if(v)return f;var y=g[n],x=f[y]||{hasStack:!1,stackGroups:{}};if(Vt(p)){var w=x.stackGroups[p]||{numericAxisId:n,cateAxisId:a,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[p]=w}else x.stackGroups[bu("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[h]};return _t(_t({},f),{},nc({},y,x))},c),d={};return Object.keys(u).reduce(function(f,h){var m=u[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(p,v){var y=m.stackGroups[v];return _t(_t({},p),{},nc({},v,{numericAxisId:n,cateAxisId:a,items:y.items,stackedData:Hpe(t,y.items,i)}))},g)}return _t(_t({},f),{},nc({},h,m))},d)},H3=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,l=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=ipe(u,i,l);return t.domain([yx(d),xx(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=ope(f,i,l);return{niceTicks:h}}return null};function sO(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ce(a[t.dataKey])){var l=Rp(r,"value",a[t.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=Ut(a,Ce(o)?t.dataKey:o);return Ce(c)?null:t.scale(c)}var aO=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+a:null;var c=Ut(o,r.dataKey,r.domain[l]);return Ce(c)?null:r.scale(c)-i/2+a},Gpe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},Kpe=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Vt(i)){var o=r[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},Ype=function(t){return t.reduce(function(r,n){return[yx(n.concat([r[0]]).filter(ae)),xx(n.concat([r[1]]).filter(ae))]},[1/0,-1/0])},q3=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,c=l.reduce(function(u,d){var f=Ype(d.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},iO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vw=function(t,r,n){if(Se(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(ae(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(iO.test(t[0])){var i=+iO.exec(t[0])[1];a[0]=r[0]-i}else Se(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(ae(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(oO.test(t[1])){var o=+oO.exec(t[1])[1];a[1]=r[1]+o}else Se(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},ug=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=eS(r,function(f){return f.coordinate}),o=1/0,l=1,c=i.length;l<c;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},lO=function(t,r,n){return!t||!t.length||Sh(t,cn(n,"type.defaultProps.domain"))?r:t},G3=function(t,r){var n=t.type.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,l=n.formatter,c=n.tooltipType,u=n.chartType,d=n.hide;return _t(_t({},be(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:kS(t),value:Ut(r,a),type:c,payload:r,chartType:u,hide:d})};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 cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(n){K3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K3(e,t,r){return t=Xpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xpe(e){var t=Qpe(e,"string");return jf(t)=="symbol"?t:t+""}function Qpe(e,t){if(jf(e)!="object"||!e)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)}function Jpe(e,t){return rge(e)||tge(e,t)||ege(e,t)||Zpe()}function Zpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
565In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ege(e,t){if(e){if(typeof e=="string")return uO(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 uO(e,t)}}function uO(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 tge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function rge(e){if(Array.isArray(e))return e}var dg=Math.PI/180,nge=function(t){return t*180/Math.PI},lt=function(t,r,n,a){return{x:t+Math.cos(-dg*a)*n,y:r+Math.sin(-dg*a)*n}},Y3=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},sge=function(t,r,n,a,i){var o=t.width,l=t.height,c=t.startAngle,u=t.endAngle,d=kr(t.cx,o,o/2),f=kr(t.cy,l,l/2),h=Y3(o,l,n),m=kr(t.innerRadius,h,0),g=kr(t.outerRadius,h,h*.8),p=Object.keys(r);return p.reduce(function(v,y){var x=r[y],w=x.domain,N=x.reversed,j;if(Ce(x.range))a==="angleAxis"?j=[c,u]:a==="radiusAxis"&&(j=[m,g]),N&&(j=[j[1],j[0]]);else{j=x.range;var S=j,_=Jpe(S,2);c=_[0],u=_[1]}var P=W3(x,i),k=P.realScaleType,A=P.scale;A.domain(w).range(j),V3(A);var C=H3(A,ra(ra({},x),{},{realScaleType:k})),T=ra(ra(ra({},x),C),{},{range:j,radius:g,realScaleType:k,scale:A,cx:d,cy:f,innerRadius:m,outerRadius:g,startAngle:c,endAngle:u});return ra(ra({},v),{},K3({},y,T))},{})},age=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},ige=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,l=age({x:n,y:a},{x:i,y:o});if(l<=0)return{radius:l};var c=(n-i)/l,u=Math.acos(c);return a>o&&(u=2*Math.PI-u),{radius:l,angle:nge(u),angleInRadian:u}},oge=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},lge=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},dO=function(t,r){var n=t.x,a=t.y,i=ige({x:n,y:a},r),o=i.radius,l=i.angle,c=r.innerRadius,u=r.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=oge(r),f=d.startAngle,h=d.endAngle,m=l,g;if(f<=h){for(;m>h;)m-=360;for(;m<f;)m+=360;g=m>=f&&m<=h}else{for(;m>f;)m-=360;for(;m<h;)m+=360;g=m>=h&&m<=f}return g?ra(ra({},r),{},{radius:o,angle:lge(m,r)}):null},X3=function(t){return!b.isValidElement(t)&&!Se(t)&&typeof t!="boolean"?t.className:""};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)}var cge=["offset"];function uge(e){return mge(e)||hge(e)||fge(e)||dge()}function dge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
566In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fge(e,t){if(e){if(typeof e=="string")return Hw(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 Hw(e,t)}}function hge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mge(e){if(Array.isArray(e))return Hw(e)}function Hw(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 pge(e,t){if(e==null)return{};var r=gge(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gge(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 fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){vge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vge(e,t,r){return t=xge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xge(e){var t=yge(e,"string");return Nf(t)=="symbol"?t:t+""}function yge(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 Sf(){return Sf=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},Sf.apply(this,arguments)}var bge=function(t){var r=t.value,n=t.formatter,a=Ce(t.children)?r:t.children;return Se(n)?n(a):a},wge=function(t,r){var n=_r(r-t),a=Math.min(Math.abs(r-t),360);return n*a},jge=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,c=i,u=c.cx,d=c.cy,f=c.innerRadius,h=c.outerRadius,m=c.startAngle,g=c.endAngle,p=c.clockWise,v=(f+h)/2,y=wge(m,g),x=y>=0?1:-1,w,N;a==="insideStart"?(w=m+x*o,N=p):a==="insideEnd"?(w=g-x*o,N=!p):a==="end"&&(w=g+x*o,N=p),N=y<=0?N:!N;var j=lt(u,d,v,w),S=lt(u,d,v,w+(N?1:-1)*359),_="M".concat(j.x,",").concat(j.y,`
567    A`).concat(v,",").concat(v,",0,1,").concat(N?0:1,`,
568    `).concat(S.x,",").concat(S.y),P=Ce(t.id)?bu("recharts-radial-line-"):t.id;return I.createElement("text",Sf({},n,{dominantBaseline:"central",className:Ae("recharts-radial-bar-label",l)}),I.createElement("defs",null,I.createElement("path",{id:P,d:_})),I.createElement("textPath",{xlinkHref:"#".concat(P)},r))},Nge=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,l=i.cy,c=i.innerRadius,u=i.outerRadius,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var m=lt(o,l,u+n,h),g=m.x,p=m.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,y=lt(o,l,v,h),x=y.x,w=y.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Sge=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,l=o.x,c=o.y,u=o.width,d=o.height,f=d>=0?1:-1,h=f*a,m=f>0?"end":"start",g=f>0?"start":"end",p=u>=0?1:-1,v=p*a,y=p>0?"end":"start",x=p>0?"start":"end";if(i==="top"){var w={x:l+u/2,y:c-f*a,textAnchor:"middle",verticalAnchor:m};return Lt(Lt({},w),n?{height:Math.max(c-n.y,0),width:u}:{})}if(i==="bottom"){var N={x:l+u/2,y:c+d+h,textAnchor:"middle",verticalAnchor:g};return Lt(Lt({},N),n?{height:Math.max(n.y+n.height-(c+d),0),width:u}:{})}if(i==="left"){var j={x:l-v,y:c+d/2,textAnchor:y,verticalAnchor:"middle"};return Lt(Lt({},j),n?{width:Math.max(j.x-n.x,0),height:d}:{})}if(i==="right"){var S={x:l+u+v,y:c+d/2,textAnchor:x,verticalAnchor:"middle"};return Lt(Lt({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:d}:{})}var _=n?{width:u,height:d}:{};return i==="insideLeft"?Lt({x:l+v,y:c+d/2,textAnchor:x,verticalAnchor:"middle"},_):i==="insideRight"?Lt({x:l+u-v,y:c+d/2,textAnchor:y,verticalAnchor:"middle"},_):i==="insideTop"?Lt({x:l+u/2,y:c+h,textAnchor:"middle",verticalAnchor:g},_):i==="insideBottom"?Lt({x:l+u/2,y:c+d-h,textAnchor:"middle",verticalAnchor:m},_):i==="insideTopLeft"?Lt({x:l+v,y:c+h,textAnchor:x,verticalAnchor:g},_):i==="insideTopRight"?Lt({x:l+u-v,y:c+h,textAnchor:y,verticalAnchor:g},_):i==="insideBottomLeft"?Lt({x:l+v,y:c+d-h,textAnchor:x,verticalAnchor:m},_):i==="insideBottomRight"?Lt({x:l+u-v,y:c+d-h,textAnchor:y,verticalAnchor:m},_):gu(i)&&(ae(i.x)||po(i.x))&&(ae(i.y)||po(i.y))?Lt({x:l+kr(i.x,u),y:c+kr(i.y,d),textAnchor:"end",verticalAnchor:"end"},_):Lt({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},_)},_ge=function(t){return"cx"in t&&ae(t.cx)};function Qt(e){var t=e.offset,r=t===void 0?5:t,n=pge(e,cge),a=Lt({offset:r},n),i=a.viewBox,o=a.position,l=a.value,c=a.children,u=a.content,d=a.className,f=d===void 0?"":d,h=a.textBreakAll;if(!i||Ce(l)&&Ce(c)&&!b.isValidElement(u)&&!Se(u))return null;if(b.isValidElement(u))return b.cloneElement(u,a);var m;if(Se(u)){if(m=b.createElement(u,a),b.isValidElement(m))return m}else m=bge(a);var g=_ge(i),p=be(a,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return jge(a,m,p);var v=g?Nge(a):Sge(a);return I.createElement(Bo,Sf({className:Ae("recharts-label",f)},p,v,{breakAll:h}),m)}Qt.displayName="Label";var Q3=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,h=t.y,m=t.top,g=t.left,p=t.width,v=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(ae(p)&&ae(v)){if(ae(f)&&ae(h))return{x:f,y:h,width:p,height:v};if(ae(m)&&ae(g))return{x:m,y:g,width:p,height:v}}return ae(f)&&ae(h)?{x:f,y:h,width:0,height:0}:ae(r)&&ae(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},kge=function(t,r){return t?t===!0?I.createElement(Qt,{key:"label-implicit",viewBox:r}):Vt(t)?I.createElement(Qt,{key:"label-implicit",viewBox:r,value:t}):b.isValidElement(t)?t.type===Qt?b.cloneElement(t,{key:"label-implicit",viewBox:r}):I.createElement(Qt,{key:"label-implicit",content:t,viewBox:r}):Se(t)?I.createElement(Qt,{key:"label-implicit",content:t,viewBox:r}):gu(t)?I.createElement(Qt,Sf({viewBox:r},t,{key:"label-implicit"})):null:null},Pge=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 a=t.children,i=Q3(t),o=un(a,Qt).map(function(c,u){return b.cloneElement(c,{viewBox:r||i,key:"label-".concat(u)})});if(!n)return o;var l=kge(t.label,r||i);return[l].concat(uge(o))};Qt.parseViewBox=Q3;Qt.renderCallByParent=Pge;function Cge(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Oge=Cge;const Age=Ke(Oge);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)}var Ege=["valueAccessor"],Tge=["data","dataKey","clockWise","id","textBreakAll"];function Ige(e){return Dge(e)||Rge(e)||Mge(e)||$ge()}function $ge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
569In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mge(e,t){if(e){if(typeof e=="string")return qw(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 qw(e,t)}}function Rge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dge(e){if(Array.isArray(e))return qw(e)}function qw(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 fg(){return fg=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},fg.apply(this,arguments)}function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){Lge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lge(e,t,r){return t=Fge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fge(e){var t=Bge(e,"string");return _f(t)=="symbol"?t:t+""}function Bge(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)}function pO(e,t){if(e==null)return{};var r=zge(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zge(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 Uge=function(t){return Array.isArray(t.value)?Age(t.value):t.value};function ma(e){var t=e.valueAccessor,r=t===void 0?Uge:t,n=pO(e,Ege),a=n.data,i=n.dataKey,o=n.clockWise,l=n.id,c=n.textBreakAll,u=pO(n,Tge);return!a||!a.length?null:I.createElement(ze,{className:"recharts-label-list"},a.map(function(d,f){var h=Ce(i)?r(d,f):Ut(d&&d.payload,i),m=Ce(l)?{}:{id:"".concat(l,"-").concat(f)};return I.createElement(Qt,fg({},be(d,!0),u,m,{parentViewBox:d.parentViewBox,value:h,textBreakAll:c,viewBox:Qt.parseViewBox(Ce(o)?d:mO(mO({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ma.displayName="LabelList";function Wge(e,t){return e?e===!0?I.createElement(ma,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Se(e)?I.createElement(ma,{key:"labelList-implicit",data:t,content:e}):gu(e)?I.createElement(ma,fg({data:t},e,{key:"labelList-implicit"})):null:null}function Vge(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,a=un(n,ma).map(function(o,l){return b.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return a;var i=Wge(e.label,t);return[i].concat(Ige(a))}ma.renderCallByParent=Vge;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)}function Gw(){return Gw=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},Gw.apply(this,arguments)}function gO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){Hge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hge(e,t,r){return t=qge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qge(e){var t=Gge(e,"string");return kf(t)=="symbol"?t:t+""}function Gge(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)}var Kge=function(t,r){var n=_r(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},wm=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,d=c*(l?1:-1)+a,f=Math.asin(c/d)/dg,h=u?i:i+o*f,m=lt(r,n,d,h),g=lt(r,n,a,h),p=u?i-o*f:i,v=lt(r,n,d*Math.cos(f*dg),p);return{center:m,circleTangency:g,lineTangency:v,theta:f}},J3=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,c=Kge(o,l),u=o+c,d=lt(r,n,i,o),f=lt(r,n,i,u),h="M ".concat(d.x,",").concat(d.y,`
570    A `).concat(i,",").concat(i,`,0,
571    `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`,
572    `).concat(f.x,",").concat(f.y,`
573  `);if(a>0){var m=lt(r,n,a,o),g=lt(r,n,a,u);h+="L ".concat(g.x,",").concat(g.y,`
574            A `).concat(a,",").concat(a,`,0,
575            `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`,
576            `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},Yge=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=_r(d-u),h=wm({cx:r,cy:n,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:c}),m=h.circleTangency,g=h.lineTangency,p=h.theta,v=wm({cx:r,cy:n,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,x=v.lineTangency,w=v.theta,N=c?Math.abs(u-d):Math.abs(u-d)-p-w;if(N<0)return l?"M ".concat(g.x,",").concat(g.y,`
577        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
578        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
579      `):J3({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var j="M ".concat(g.x,",").concat(g.y,`
580    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
581    A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
582    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
583  `);if(a>0){var S=wm({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=S.circleTangency,P=S.lineTangency,k=S.theta,A=wm({cx:r,cy:n,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),C=A.circleTangency,T=A.lineTangency,E=A.theta,O=c?Math.abs(u-d):Math.abs(u-d)-k-E;if(O<0&&o===0)return"".concat(j,"L").concat(r,",").concat(n,"Z");j+="L".concat(T.x,",").concat(T.y,`
584      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
585      A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(f>0),",").concat(_.x,",").concat(_.y,`
586      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else j+="L".concat(r,",").concat(n,"Z");return j},Xge={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Z3=function(t){var r=vO(vO({},Xge),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,f=r.endAngle,h=r.className;if(o<i||d===f)return null;var m=Ae("recharts-sector",h),g=o-i,p=kr(l,g,0,!0),v;return p>0&&Math.abs(d-f)<360?v=Yge({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:f}):v=J3({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),I.createElement("path",Gw({},be(r,!0),{className:m,d:v,role:"img"}))};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)}function Kw(){return Kw=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},Kw.apply(this,arguments)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){Qge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEac
586h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qge(e,t,r){return t=Jge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jge(e){var t=Zge(e,"string");return Pf(t)=="symbol"?t:t+""}function Zge(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)}var bO={curveBasisClosed:Qte,curveBasisOpen:Jte,curveBasis:Xte,curveBumpX:Rte,curveBumpY:Dte,curveLinearClosed:Zte,curveLinear:ax,curveMonotoneX:ere,curveMonotoneY:tre,curveNatural:rre,curveStep:nre,curveStepAfter:are,curveStepBefore:sre},jm=function(t){return t.x===+t.x&&t.y===+t.y},qu=function(t){return t.x},Gu=function(t){return t.y},eve=function(t,r){if(Se(t))return t;var n="curve".concat(nx(t));return(n==="curveMonotone"||n==="curveBump")&&r?bO["".concat(n).concat(r==="vertical"?"Y":"X")]:bO[n]||ax},tve=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,d=eve(n,l),f=u?i.filter(function(p){return jm(p)}):i,h;if(Array.isArray(o)){var m=u?o.filter(function(p){return jm(p)}):o,g=f.map(function(p,v){return yO(yO({},p),{},{base:m[v]})});return l==="vertical"?h=fm().y(Gu).x1(qu).x0(function(p){return p.base.x}):h=fm().x(qu).y1(Gu).y0(function(p){return p.base.y}),h.defined(jm).curve(d),h(g)}return l==="vertical"&&ae(o)?h=fm().y(Gu).x1(qu).x0(o):ae(o)?h=fm().x(qu).y1(Gu).y0(o):h=G4().x(qu).y(Gu),h.defined(jm).curve(d),h(f)},hg=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?tve(t):a;return b.createElement("path",Kw({},be(t,!1),Dp(t),{className:Ae("recharts-curve",r),d:o,ref:i}))},eL={exports:{}},rve="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nve=rve,sve=nve;function tL(){}function rL(){}rL.resetWarningCache=tL;var ave=function(){function e(n,a,i,o,l,c){if(c!==sve){var u=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 u.name="Invariant Violation",u}}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:rL,resetWarningCache:tL};return r.PropTypes=r,r};eL.exports=ave();var ive=eL.exports;const Ge=Ke(ive);var ove=Object.getOwnPropertyNames,lve=Object.getOwnPropertySymbols,cve=Object.prototype.hasOwnProperty;function wO(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function Nm(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var i=a.cache,o=i.get(r),l=i.get(n);if(o&&l)return o===n&&l===r;i.set(r,n),i.set(n,r);var c=e(r,n,a);return i.delete(r),i.delete(n),c}}function jO(e){return ove(e).concat(lve(e))}var uve=Object.hasOwn||function(e,t){return cve.call(e,t)};function al(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var dve="__v",fve="__o",hve="_owner",NO=Object.getOwnPropertyDescriptor,SO=Object.keys;function mve(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 pve(e,t){return al(e.getTime(),t.getTime())}function gve(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function vve(e,t){return e===t}function _O(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),o,l,c=0;(o=i.next())&&!o.done;){for(var u=t.entries(),d=!1,f=0;(l=u.next())&&!l.done;){if(a[f]){f++;continue}var h=o.value,m=l.value;if(r.equals(h[0],m[0],c,f,e,t,r)&&r.equals(h[1],m[1],h[0],m[0],e,t,r)){d=a[f]=!0;break}f++}if(!d)return!1;c++}return!0}var xve=al;function yve(e,t,r){var n=SO(e),a=n.length;if(SO(t).length!==a)return!1;for(;a-- >0;)if(!nL(e,t,r,n[a]))return!1;return!0}function Ku(e,t,r){var n=jO(e),a=n.length;if(jO(t).length!==a)return!1;for(var i,o,l;a-- >0;)if(i=n[a],!nL(e,t,r,i)||(o=NO(e,i),l=NO(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function bve(e,t){return al(e.valueOf(),t.valueOf())}function wve(e,t){return e.source===t.source&&e.flags===t.flags}function kO(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),o,l;(o=i.next())&&!o.done;){for(var c=t.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function jve(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 Nve(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 nL(e,t,r,n){return(n===hve||n===fve||n===dve)&&(e.$$typeof||t.$$typeof)?!0:uve(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Sve="[object Arguments]",_ve="[object Boolean]",kve="[object Date]",Pve="[object Error]",Cve="[object Map]",Ove="[object Number]",Ave="[object Object]",Eve="[object RegExp]",Tve="[object Set]",Ive="[object String]",$ve="[object URL]",Mve=Array.isArray,PO=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,CO=Object.assign,Rve=Object.prototype.toString.call.bind(Object.prototype.toString);function Dve(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(g,p,v){if(g===p)return!0;
586if(g==null||p==null)return!1;var y=typeof g;if(y!==typeof p)return!1;if(y!=="object")return y==="number"?o(g,p,v):y==="function"?a(g,p,v):!1;var x=g.constructor;if(x!==p.constructor)return!1;if(x===Object)return l(g,p,v);if(Mve(g))return t(g,p,v);if(PO!=null&&PO(g))return f(g,p,v);if(x===Date)return r(g,p,v);if(x===RegExp)return u(g,p,v);if(x===Map)return i(g,p,v);if(x===Set)return d(g,p,v);var w=Rve(g);return w===kve?r(g,p,v):w===Eve?u(g,p,v):w===Cve?i(g,p,v):w===Tve?d(g,p,v):w===Ave?typeof g.then!="function"&&typeof p.then!="function"&&l(g,p,v):w===$ve?h(g,p,v):w===Pve?n(g,p,v):w===Sve?l(g,p,v):w===_ve||w===Ove||w===Ive?c(g,p,v):!1}}function Lve(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Ku:mve,areDatesEqual:pve,areErrorsEqual:gve,areFunctionsEqual:vve,areMapsEqual:n?wO(_O,Ku):_O,areNumbersEqual:xve,areObjectsEqual:n?Ku:yve,arePrimitiveWrappersEqual:bve,areRegExpsEqual:wve,areSetsEqual:n?wO(kO,Ku):kO,areTypedArraysEqual:n?Ku:jve,areUrlsEqual:Nve};if(r&&(a=CO({},a,r(a))),t){var i=Nm(a.areArraysEqual),o=Nm(a.areMapsEqual),l=Nm(a.areObjectsEqual),c=Nm(a.areSetsEqual);a=CO({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return a}function Fve(e){return function(t,r,n,a,i,o,l){return e(t,r,l)}}function Bve(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(c,u){var d=n(),f=d.cache,h=f===void 0?t?new WeakMap:void 0:f,m=d.meta;return r(c,u,{cache:h,equals:a,meta:m,strict:i})};if(t)return function(c,u){return r(c,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(c,u){return r(c,u,o)}}var zve=Bi();Bi({strict:!0});Bi({circular:!0});Bi({circular:!0,strict:!0});Bi({createInternalComparator:function(){return al}});Bi({strict:!0,createInternalComparator:function(){return al}});Bi({circular:!0,createInternalComparator:function(){return al}});Bi({circular:!0,createInternalComparator:function(){return al},strict:!0});function Bi(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,l=Lve(e),c=Dve(l),u=n?n(c):Fve(c);return Bve({circular:r,comparator:c,createState:a,equals:u,strict:o})}function Uve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Uve(a)};requestAnimationFrame(n)}function Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}function Wve(e){return Gve(e)||qve(e)||Hve(e)||Vve()}function Vve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
587In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hve(e,t){if(e){if(typeof e=="string")return AO(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 AO(e,t)}}function AO(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 qve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gve(e){if(Array.isArray(e))return e}function Kve(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,l=Wve(o),c=l[0],u=l.slice(1);if(typeof c=="number"){OO(a.bind(null,u),c);return}a(c),OO(a.bind(null,u));return}Yw(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function TO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,702 bytes, lines 587-605
587t%2?EO(Object(r),!0).forEach(function(n){sL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sL(e,t,r){return t=Yve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yve(e){var t=Xve(e,"string");return Cf(t)==="symbol"?t:String(t)}function Xve(e,t){if(Cf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qve=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},Jve=function(t){return t},Zve=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},_d=function(t,r){return Object.keys(r).reduce(function(n,a){return TO(TO({},n),{},sL({},a,t(a,r[a])))},{})},IO=function(t,r,n){return t.map(function(a){return"".concat(Zve(a)," ").concat(r,"ms ").concat(n)}).join(",")};function exe(e,t){return nxe(e)||rxe(e,t)||aL(e,t)||txe()}function txe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
588In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rxe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function nxe(e){if(Array.isArray(e))return e}function sxe(e){return oxe(e)||ixe(e)||aL(e)||axe()}function axe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
589In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aL(e,t){if(e){if(typeof e=="string")return Xw(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 Xw(e,t)}}function ixe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oxe(e){if(Array.isArray(e))return Xw(e)}function Xw(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 mg=1e-4,iL=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oL=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},$O=function(t,r){return function(n){var a=iL(t,r);return oL(a,n)}},lxe=function(t,r){return function(n){var a=iL(t,r),i=[].concat(sxe(a.map(function(o,l){return o*l}).slice(1)),[0]);return oL(i,n)}},MO=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),d=exe(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=$O(a,o),h=$O(i,l),m=lxe(a,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var x=y>1?1:y,w=x,N=0;N<8;++N){var j=f(w)-x,S=m(w);if(Math.abs(j-x)<mg||S<mg)return h(w);w=g(w-j/S)}return h(w)};return p.isStepper=!1,p},cxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,c=function(d,f,h){var m=-(d-f)*n,g=h*i,p=h+(m-g)*l/1e3,v=h*l/1e3+d;return Math.abs(v-f)<mg&&Math.abs(p)<mg?[f,0]:[v,p]};return c.isStepper=!0,c.dt=l,c},uxe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MO(a);case"spring":return cxe();default:if(a.split("(")[0]==="cubic-bezier")return MO(a)}return typeof a=="function"?a:null};function Of(e){"@babel/helpers - typeof";return Of=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},Of(e)}function RO(e){return hxe(e)||fxe(e)||lL(e)||dxe()}function dxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
590In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hxe(e){if(Array.isArray(e))return Jw(e)}function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){Qw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qw(e,t,r){return t=mxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mxe(e){var t=pxe(e,"string");return Of(t)==="symbol"?t:String(t)}function pxe(e,t){if(Of(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Of(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gxe(e,t){return yxe(e)||xxe(e,t)||lL(e,t)||vxe()}function vxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
591In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lL(e,t){if(e){if(typeof e=="string")return Jw(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 Jw(e,t)}}function Jw(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 xxe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function yxe(e){if(Array.isArray(e))return e}var pg=function(t,r,n){return t+(r-t)*n},Zw=function(t){var r=t.from,n=t.to;return r!==n},bxe=function e(t,r,n){var a=_d(function(i,o){if(Zw(o)){var l=t(o.from,o.to,o.velocity),c=gxe(l,2),u=c[0],d=c[1];return rr(rr({},o),{},{from:u,velocity:d})}return o},r);return n<1?_d(function(i,o){return Zw(o)?rr(rr({},o),{},{velocity:pg(o.velocity,a[i].velocity,n),from:pg(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const wxe=function(e,t,r,n,a){var i=Qve(e,t),o=i.reduce(function(v,y){return rr(rr({},v),{},Qw({},y,[e[y],t[y]]))},{}),l=i.reduce(function(v,y){return rr(rr({},v),{},Qw({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,d,f=function(){return null},h=function(){return _d(function(y,x){return x.from},l)},m=function(){return!Object.values(l).filter(Zw).length},g=function(y){u||(u=y);var x=y-u,w=x/r.dt;l=bxe(r,l,w),a(rr(rr(rr({},e),t),h())),u=y,m()||(c=requestAnimationFrame(f))},p=function(y){d||(d=y);var x=(y-d)/n,w=_d(function(j,S){return pg.apply(void 0,RO(S).concat([r(x)]))},o);if(a(rr(rr(rr({},e),t),w)),x<1)c=requestAnimationFrame(f);else{var N=_d(function(j,S){return pg.apply(void 0,RO(S).concat([r(1)]))},o);a(rr(rr(rr({},e),t),N))}};return f=r.isStepper?g:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function Dc(e){"@babel/helpers - typeof";return Dc=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},Dc(e)}var jxe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Nxe(e,t){if(e==null)return{};var r=Sxe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sxe(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function wb(e){return Cxe(e)||Pxe(e)||kxe(e)||_xe()}function _xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
592In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kxe(e,t){if(e){if(typeof e=="string")return ej(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 ej(e,t)}}function Pxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cxe(e){if(Array.isArray(e))return ej(e)}function ej(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 LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){ad(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ad(e,t,r){return t=cL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Axe(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,cL(n.key),n)}}function Exe(e,t,r){return t&&Axe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cL(e){var t=Txe(e,"string");return Dc(t)==="symbol"?t:String(t)}function Txe(e,t){if(Dc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ixe(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&&tj(e,t)}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},tj(e,t)}function $xe(e){var t=Mxe();return function(){var n=gg(e),a;if(t){var i=gg(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return rj(this,a)}}function rj(e,t){if(t&&(Dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nj(e)}function nj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mxe(){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 gg(e){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gg(e)}var Hs=function(e){Ixe(r,e);var t=$xe(r);function r(n,a){var i;Oxe(this,r),i=t.call(this,n,a);var o=i.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,f=o.steps,h=o.children,m=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(nj(i)),i.changeStyle=i.changeStyle.bind(nj(i)),!l||m<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),rj(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},rj(i);i.state={style:c?ad({},c,u):u}}else i.state={style:{}};return i}return Exe(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,d=i.to,f=i.from,h=this.state.style;if(l){if(!o){var m={style:c?ad({},c,d):d};this.state&&h&&(c&&h[c]!==d||!c&&h!==d)&&this.setState(m);return}if(!(zve(a.to,d)&&a.canBegin&&a.isActive)){var g=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||u?f:a.to;if(this.state&&h){var v={style:c?ad({},c,p):p};(c&&h[c]!==p||!c&&h!==p)&&this.setState(v)}this.runAnimation(Hn(Hn({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,c=a.duration,u=a.easing,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,m=wxe(o,l,uxe(u),c,this.changeStyle),g=function(){i.stopJSAnimation=m()};this.manager.start([h,d,g,c,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,c=a.onAnimationStart,u=o[0],d=u.style,f=u.duration,h=f===void 0?0:f,m=function(p,v,y){if(y===0)return p;var x=v.duration,w=v.easing,N=w===void 0?"ease":w,j=v.style,S=v.properties,_=v.onAnimationEnd,P=y>0?o[y-1]:v,k=S||Object.keys(j);if(typeof N=="function"||N==="spring")return[].concat(wb(p),[i.runJSAnimation.bind(i,{from:P.style,to:j,duration:x,easing:N}),x]);var A=IO(k,x,N),C=Hn(Hn(Hn({},P.style),j),{},{transition:A});return[].concat(wb(p),[C,x,_]).filter(Jve)};return this.manager.start([c].concat(wb(o.reduce(m,[d,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Kve());var i=a.begin,o=a.duration,l=a.attributeName,c=a.to,u=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,h=a.steps,m=a.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var p=l?ad({},l,c):c,v=IO(Object.keys(p),o,u);g.start([d,i,Hn(Hn({},p),{},{transition:v}),o,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=Nxe(a,jxe),u=b.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var f=function(m){var g=m.props,p=g.style,v=p===void 0?{}:p,y=g.className,x=b.cloneElement(m,Hn(Hn({},c),{},{style:Hn(Hn({},v),d),className:y}));return x};return u===1?f(b.Children.only(i)):I.createElement("div",null,b.Children.map(i,function(h){return f(h)}))}}]),r}(b.PureComponent);Hs.displayName="Animate";Hs.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Hs.propTypes={from:Ge.oneOfType([Ge.object,Ge.string]),to:Ge.oneOfType([Ge.object,Ge.string]),attributeName:Ge.string,duration:Ge.number,begin:Ge.number,easing:Ge.oneOfType([Ge.string,Ge.func]),steps:Ge.arrayOf(Ge.shape({duration:Ge.number.isRequired,style:Ge.object.isRequired,easing:Ge.oneOfType([Ge.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ge.func]),properties:Ge.arrayOf("string"),onAnimationEnd:Ge.func})),children:Ge.oneOfType([Ge.node,Ge.func]),isActive:Ge.bool,canBegin:Ge.bool,onAnimationEnd:Ge.func,shouldReAnimate:Ge.bool,onAnimationStart:Ge.func,onAnimationReStart:Ge.func};function Af(e){"@babel/helpers - typeof";return Af=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},Af(e)}function vg(){return vg=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},vg.apply(this,arguments)}function Rxe(e,t){return Bxe(e)||Fxe(e,t)||Lxe(e,t)||Dxe()}function Dxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
593In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lxe(e,t){if(e){if(typeof e=="string")return FO(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 FO(e,t)}}function FO(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 Fxe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Bxe(e){if(Array.isArray(e))return e}function BO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?BO(Object(r),!0).forEach(function(n){zxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zxe(e,t,r){return t=Uxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uxe(e){var t=Wxe(e,"string");return Af(t)=="symbol"?t:t+""}function Wxe(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UO=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),l=a>=0?1:-1,c=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,m=4;h<m;h++)f[h]=i[h]>o?o:i[h];d="M".concat(t,",").concat(r+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+c*f[0],",").concat(r)),d+="L ".concat(t+n-c*f[1],",").concat(r),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
594        `).concat(t+n,",").concat(r+l*f[1])),d+="L ".concat(t+n,",").concat(r+a-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
595        `).concat(t+n-c*f[2],",").concat(r+a)),d+="L ".concat(t+c*f[3],",").concat(r+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
596        `).concat(t,",").concat(r+a-l*f[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var g=Math.min(o,i);d="M ".concat(t,",").concat(r+l*g,`
597            A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+c*g,",").concat(r,`
598            L `).concat(t+n-c*g,",").concat(r,`
599            A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*g,`
600            L `).concat(t+n,",").concat(r+a-l*g,`
601            A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-c*g,",").concat(r+a,`
602            L `).concat(t+c*g,",").concat(r+a,`
603            A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+a-l*g," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},Vxe=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,l=r.width,c=r.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(i,i+l),d=Math.max(i,i+l),f=Math.min(o,o+c),h=Math.max(o,o+c);return n>=u&&n<=d&&a>=f&&a<=h}return!1},Hxe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PS=function(t){var r=zO(zO({},Hxe),t),n=b.useRef(),a=b.useState(-1),i=Rxe(a,2),o=i[0],l=i[1];b.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var N=n.current.getTotalLength();N&&l(N)}catch{}},[]);var c=r.x,u=r.y,d=r.width,f=r.height,h=r.radius,m=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var w=Ae("recharts-rectangle",m);return x?I.createElement(Hs,{canBegin:o>0,from:{width:d,height:f,x:c,y:u},to:{width:d,height:f,x:c,y:u},duration:p,animationEasing:g,isActive:x},function(N){var j=N.width,S=N.height,_=N.x,P=N.y;return I.createElement(Hs,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:g},I.createElement("path",vg({},be(r,!0),{className:w,d:UO(_,P,j,S,h),ref:n})))}):I.createElement("path",vg({},be(r,!0),{className:w,d:UO(c,u,d,f,h)}))},qxe=["points","className","baseLinePoints","connectNulls"];function Fl(){return Fl=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},Fl.apply(this,arguments)}function Gxe(e,t){if(e==null)return{};var r=Kxe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kxe(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 WO(e){return Jxe(e)||Qxe(e)||Xxe(e)||Yxe()}function Yxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
604In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xxe(e,t){if(e){if(typeof e=="string")return sj(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 sj(e,t)}}function Qxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jxe(e){if(Array.isArray(e))return sj(e)}function sj(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 VO=function(t){return t&&t.x===+t.x&&t.y===+t.y},Zxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){VO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),VO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},kd=function(t,r){var n=Zxe(t);r&&(n=[n.reduce(function(i,o){return[].concat(WO(i),WO(o))},[])]);var a=n.map(function(i){return i.reduce(function(o,l,c){return"".concat(o).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(a,"Z"):a},eye=function(t,r,n){var a=kd(t,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(kd(r.reverse(),n).slice(1))},tye=function(t){var r=t.points,n=t.className,a=t.baseLinePoints,i=t.connectNulls,o=Gxe(t,qxe);if(!r||!r.length)return null;var l=Ae("recharts-polygon",n);if(a&&a.length){var c=o.stroke&&o.stroke!=="none",u=eye(r,a,i);return I.createElement("g",{className:l},I.createElement("path",Fl({},be(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),c?I.createElement("path",Fl({},be(o,!0),{fill:"none",d:kd(r,i)})):null,c?I.createElement("path",Fl({},be(o,!0),{fill:"none",d:kd(a,i)})):null)}var d=kd(r,i);return I.createElement("path",Fl({},be(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function aj(){return aj=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},aj.apply(this,arguments)}var jx=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=Ae("recharts-dot",i);return r===+r&&n===+n&&a===+a?b.createElement("circle",aj({},be(t,!1),Dp(t),{className:o,cx:r,cy:n,r:a})):null};function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}var rye=["x","y","top","left","width","height","className"];function ij(){return ij=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},ij.apply(this,arguments)}function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){sye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sye(e,t,r){return t=aye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aye(e){var t=iye(e,"string");return Ef(t)=="symbol"?t:t+""}function iye(e,t){if(Ef(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ef(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oye(e,t){if(e==null)return{};var r=lye(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lye(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 cye=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},uye=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,c=t.left,u=c===void 0?0:c,d=t.width,f=d===void 0?0:d,h=t.height,m=h===void 0?0:h,g=t.className,p=oye(t,rye),v=nye({x:n,y:i,top:l,left:u,width:f,height:m},p);return!ae(n)||!ae(i)||!ae(f)||!ae(m)||!ae(l)||!ae(u)?null:I.createElement("path",ij({},be(v,!0),{className:Ae("recharts-cross",g),d:cye(n,i,f,m,l,u)}))},dye=vx,fye=w3,hye=Ks;function mye(e,t){return e&&e.length?dye(e,hye(t),fye):void 0}var pye=mye;const gye=Ke(pye);var vye=vx,xye=Ks,yye=j3;function bye(e,t){return e&&e.length?vye(e,xye(t),yye):void 0}var wye=bye;const jye=Ke(wye);var Nye=["cx","cy","angle","ticks","axisLine"],Sye=["ticks","tick","angle","tickFormatter","stroke"];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 Pd(){return Pd=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},Pd.apply(this,arguments)}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){Nx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GO(e,t){if(e==null)return{};var r=_ye(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _ye(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 kye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KO(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,dL(n.key),n)}}function Pye(e,t,r){return t&&KO(e.prototype,t),r&&KO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cye(e,t,r){return t=xg(t),Oye(e,uL()?Reflect.construct(t,r||[],xg(e).constructor):t.apply(e,r))}function Oye(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 Aye(e)}function Aye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uL=function(){return!!e})()}function xg(e){return xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xg(e)}function Eye(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&&oj(e,t)}function oj(e,t){return oj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},oj(e,t)}function Nx(e,t,r){return t=dL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dL(e){var t=Tye(e,"string");return Lc(t)=="symbol"?t:t+""}function Tye(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 Sx=function(e){function t(){return kye(this,t),Cye(this,t,arguments)}return Eye(t,e),Pye(t,[{key:"getTickValueCoord",value:function(n){var a=n.coordinate,i=this.props,o=i.angle,l=i.cx,c=i.cy;return lt(l,c,a,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,a;switch(n){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=gye(l,function(d){return d.coordinate||0}),u=jye(l,function(d){return d.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=n.axisLine,u=GO(n,Nye),d=l.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),f=lt(a,i,d[0],o),h=lt(a,i,d[1],o),m=eo(eo(eo({},be(u,!1)),{},{fill:"none"},be(c,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return I.createElement("line",Pd({className:"recharts-polar-radius-axis-line"},m))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,c=a.tickFormatter,u=a.stroke,d=GO(a,Sye),f=this.getTickTextAnchor(),h=be(d,!1),m=be(o,!1),g=i.map(function(p,v){var y=n.getTickValueCoord(p),x=eo(eo(eo(eo({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},m),{},{index:v},y),{},{payload:p});return I.createElement(ze,Pd({className:Ae("recharts-polar-radius-axis-tick",X3(o)),key:"tick-".concat(p.coordinate)},Fo(n.props,p,v)),t.renderTickItem(o,x,c?c(p.value,v):p.value))});return I.createElement(ze,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.axisLine,o=n.tick;return!a||!a.length?null:I.createElement(ze,{className:Ae("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return I.isValidElement(n)?o=I.cloneElement(n,a):Se(n)?o=n(a):o=I.createElement(Bo,Pd({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(b.PureComponent);Nx(Sx,"displayName","PolarRadiusAxis");Nx(Sx,"axisType","radiusAxis");Nx(Sx,"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 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 uo(){return uo=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},uo.apply(this,arguments)}function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){_x(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XO(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,hL(n.key),n)}}function $ye(e,t,r){return t&&XO(e.prototype,t),r&&XO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mye(e,t,r){return t=yg(t),Rye(e,fL()?Reflect.construct(t,r||[],yg(e).constructor):t.apply(e,r))}function Rye(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 Dye(e)}function Dye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fL=function(){return!!e})()}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yg(e)}function Lye(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&&lj(e,t)}function lj(e,t){return lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},lj(e,t)}function _x(e,t,r){return t=hL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hL(e){var t=Fye(e,"string");return Fc(t)=="symbol"?t:t+""}function Fye(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 Bye=Math.PI/180,QO=1e-5,kx=function(e){function t(){return Iye(this,t),Mye(this,t,arguments)}return Lye(t,e),$ye(t,[{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.cx,o=a.cy,l=a.radius,c=a.orientation,u=a.tickSize,d=u||8,f=lt(i,o,l,n.coordinate),h=lt(i,o,l+(c==="inner"?-1:1)*d,n.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var a=this.props.orientation,i=Math.cos(-n.coordinate*Bye),o;return i>QO?o=a==="outer"?"start":"end":i<-QO?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.radius,l=n.axisLine,c=n.axisLineType,u=to(to({},be(this.props,!1)),{},{fill:"none"},be(l,!1));if(c==="circle")return I.createElement(jx,uo({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var d=this.props.ticks,f=d.map(function(h){return lt(a,i,o,h.coordinate)});return I.createElement(tye,uo({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,c=a.tickFormatter,u=a.stroke,d=be(this.props,!1),f=be(o,!1),h=to(to({},d),{},{fill:"none"},be(l,!1)),m=i.map(function(g,p){var v=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),x=to(to(to({textAnchor:y},d),{},{stroke:"none",fill:u},f),{},{index:p,payload:g,x:v.x2,y:v.y2});return I.createElement(ze,uo({className:Ae("recharts-polar-angle-axis-tick",X3(o)),key:"tick-".concat(g.coordinate)},Fo(n.props,g,p)),l&&I.createElement("line",uo({className:"recharts-polar-angle-axis-tick-line"},h,v)),o&&t.renderTickItem(o,x,c?c(g.value,p):g.value))});return I.createElement(ze,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!a||!a.length?null:I.createElement(ze,{className:Ae("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var o;return I.isValidElement(n)?o=I.cloneElement(n,a):Se(n)?o=n(a):o=I.createElement(Bo,uo({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(b.PureComponent);_x(kx,"displayName","PolarAngleAxis");_x(kx,"axisType","angleAxis");_x(kx,"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 zye=vD,Uye=zye(Object.getPrototypeOf,Object),Wye=Uye,Vye=Ca,Hye=Wye,qye=Oa,Gye="[object Object]",Kye=Function.prototype,Yye=Object.prototype,mL=Kye.toString,Xye=Yye.hasOwnProperty,Qye=mL.call(Object);function Jye(e){if(!qye(e)||Vye(e)!=Gye)return!1;var t=Hye(e);if(t===null)return!0;var r=Xye.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&mL.call(r)==Qye}var Zye=Jye;const ebe=Ke(Zye);var tbe=Ca,rbe=Oa,nbe="[object Boolean]";function sbe(e){return e===!0||e===!1||rbe(e)&&tbe(e)==nbe}var abe=sbe;const ibe=Ke(abe);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 bg(){return bg=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},bg.apply(this,arguments)}function obe(e,t){return dbe(e)||ube(e,t)||cbe(e,t)||lbe()}function lbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
605In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cbe(e,t){if(e){if(typeof e=="string")return JO(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 JO(e,t)}}function JO(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 ube(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function dbe(e){if(Array.isArray(e))return e}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?ZO(Object(r),!0).forEach(function(n){fbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fbe(e,t,r){return t=hbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hbe(e){var t=mbe(e,"string");return Tf(t)=="symbol"?t:t+""}function mbe(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)}var tA=function(t,r,n,a,i){var o=n-a,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+i),l+="L ".concat(t+n-o/2-a,",").concat(r+i),l+="L ".concat(t,",").concat(r," Z"),l},pbe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gbe=function(t){var r=eA(eA({},pbe),t),n=b.useRef(),a=b.useState(-1),i=obe(a,2),o=i[0],l=i[1];b.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&l(w)}catch{}},[]);var c=r.x,u=r.y,d=r.upperWidth,f=r.lowerWidth,h=r.height,m=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var x=Ae("recharts-trapezoid",m);return y?I.createElement(Hs,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:c,y:u},duration:p,animationEasing:g,isActive:y},function(w){var N=w.upperWidth,j=w.lowerWidth,S=w.height,_=w.x,P=w.y;return I.createElement(Hs,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},I.createElement("path",bg({},be(r,!0),{className:x,d:tA(_,P,N,j,S),ref:n})))}):I.createElement("g",null,I.createElement("path",bg({},be(r,!0),{className:x,d:tA(c,u,d,f,h)})))},vbe=["option","shapeType","propTransformer","activeClassName","isActive"];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 xbe(e,t){if(e==null)return{};var r=ybe(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ybe(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 rA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(r),!0).forEach(function(n){bbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bbe(e,t,r){return t=wbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wbe(e){var t=jbe(e,"string");return If(t)=="symbol"?t:t+""}function jbe(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 Nbe(e,t){return wg(wg({},t),e)}function Sbe(e,t){return e==="symbols"}function nA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return I.createElement(PS,r);case"trapezoid":return I.createElement(gbe,r);case"sector":return I.createElement(Z3,r);case"symbols":if(Sbe(t))return I.createElement(qN,r);break;default:return null}}function _be(e){return b.isValidElement(e)?e.props:e}function pL(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?Nbe:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,c=xbe(e,vbe),u;if(b.isValidElement(t))u=b.cloneElement(t,wg(wg({},c),_be(t)));else if(Se(t))u=t(c);else if(ebe(t)&&!ibe(t)){var d=a(t,c);u=I.createElement(nA,{shapeType:r,elementProps:d})}else{var f=c;u=I.createElement(nA,{shapeType:r,elementProps:f})}return l?I.createElement(ze,{className:o},u):u}function Px(e,t){return t!=null&&"trapezoids"in e.props}function Cx(e,t){return t!=null&&"sectors"in e.props}function $f(e,t){return t!=null&&"points"in e.props}function kbe(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function Pbe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Cbe(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function Obe(e,t){var r;return Px(e,t)?r=kbe:Cx(e,t)?r=Pbe:$f(e,t)&&(r=Cbe),r}function Abe(e,t){var r;return Px(e,t)?r="trapezoids":Cx(e,t)?r="sectors":$f(e,t)&&(r="points"),r}function Ebe(e,t){if(Px(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(Cx(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 $f(e,t)?t.payload:{}}function Tbe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=Abe(r,t),i=Ebe(r,t),o=n.filter(function(c,u){var d=Sh(i,c),f=r.props[a].filter(function(g){var p=Obe(r,t);return p(g,t)}),h=r.props[a].indexOf(f[f.length-1]),m=u===h;return d&&m}),l=n.indexOf(o[o.length-1]);return l}var qm;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)}function Bl(){return Bl=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},Bl.apply(this,arguments)}function sA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?sA(Object(r),!0).forEach(function(n){jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ibe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(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,vL(n.key),n)}}function $be(e,t,r){return t&&aA(e.prototype,t),r&&aA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mbe(e,t,r){return t=jg(t),Rbe(e,gL()?Reflect.construct(t,r||[],jg(e).constructor):t.apply(e,r))}function Rbe(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 Dbe(e)}function Dbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gL=function(){return!!e})()}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jg(e)}function Lbe(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&&cj(e,t)}function cj(e,t){return cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cj(e,t)}function jn(e,t,r){return t=vL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vL(e){var t=Fbe(e,"string");return Bc(t)=="symbol"?t:t+""}function Fbe(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)}var Ea=function(e){function t(r){var n;return Ibe(this,t),n=Mbe(this,t,[r]),jn(n,"pieRef",null),jn(n,"sectorRefs",[]),jn(n,"id",bu("recharts-pie-")),jn(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Se(a)&&a()}),jn(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Se(a)&&a()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Lbe(t,e),$be(t,[{key:"isActiveIndex",value:function(n){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(n)!==-1:n===a}},{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 a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,c=i.dataKey,u=i.valueKey,d=be(this.props,!1),f=be(o,!1),h=be(l,!1),m=o&&o.offsetRadius||20,g=n.map(function(p,v){var y=(p.startAngle+p.endAngle)/2,x=lt(p.cx,p.cy,p.outerRadius+m,y),w=at(at(at(at({},d),p),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(x.x,p.cx)},x),N=at(at(at(at({},d),p),{},{fill:"none",stroke:p.fill},h),{},{index:v,points:[lt(p.cx,p.cy,p.outerRadius,y),x]}),j=c;return Ce(c)&&Ce(u)?j="value":Ce(c)&&(j=u),I.createElement(ze,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},l&&t.renderLabelLineItem(l,N,"line"),t.renderLabelItem(o,w,Ut(p,j)))});return I.createElement(ze,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(n){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,c=i.inactiveShape;return n.map(function(u,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var f=a.isActiveIndex(d),h=c&&a.hasActiveIndex()?c:null,m=f?o:h,g=at(at({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return I.createElement(ze,Bl({ref:function(v){v&&!a.sectorRefs.includes(v)&&a.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Fo(a.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),I.createElement(pL,Bl({option:m,isActive:f,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,f=this.state,h=f.prevSectors,m=f.prevIsAnimationActive;return I.createElement(Hs,{begin:l,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(m),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var p=g.t,v=[],y=i&&i[0],x=y.startAngle;return i.forEach(function(w,N){var j=h&&h[N],S=N>0?cn(w,"paddingAngle",0):0;if(j){var _=en(j.endAngle-j.startAngle,w.endAngle-w.startAngle),P=at(at({},w),{},{startAngle:x+S,endAngle:x+_(p)+S});v.push(P),x=P.endAngle}else{var k=w.endAngle,A=w.startAngle,C=en(0,k-A),T=C(p),E=at(at({},w),{},{startAngle:x+S,endAngle:x+T+S});v.push(E),x=E.endAngle}}),I.createElement(ze,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var a=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,a=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Sh(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,c=a.label,u=a.cx,d=a.cy,f=a.innerRadius,h=a.outerRadius,m=a.isAnimationActive,g=this.state.isAnimationFinished;if(i||!o||!o.length||!ae(u)||!ae(d)||!ae(f)||!ae(h))return null;var p=Ae("recharts-pie",l);return I.createElement(ze,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),c&&this.renderLabels(o),Qt.renderCallByParent(this.props,null,!1),(!m||g)&&ma.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return a.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:n.sectors!==a.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,a){return n>a?"start":n<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,a,i){if(I.isValidElement(n))return I.cloneElement(n,a);if(Se(n))return n(a);var o=Ae("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return I.createElement(hg,Bl({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,a,i){if(I.isValidElement(n))return I.cloneElement(n,a);var o=i;if(Se(n)&&(o=n(a),I.isValidElement(o)))return o;var l=Ae("recharts-pie-label-text",typeof n!="boolean"&&!Se(n)?n.className:"");return I.createElement(Bo,Bl({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(b.PureComponent);qm=Ea;jn(Ea,"displayName","Pie");jn(Ea,"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:!Ls.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});jn(Ea,"parseDeltaAngle",function(e,t){var r=_r(t-e),n=Math.min(Math.abs(t-e),360);return r*n});jn(Ea,"getRealPieData",function(e){var t=e.data,r=e.children,n=be(e,!1),a=un(r,ux);return t&&t.length?t.map(function(i,o){return at(at(at({payload:i},n),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return at(at({},n),i.props)}):[]});jn(Ea,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,a=t.width,i=t.height,o=Y3(a,i),l=n+kr(e.cx,a,a/2),c=r+kr(e.cy,i,i/2),u=kr(e.innerRadius,o,0),d=kr(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}});jn(Ea,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?at(at({},t.type.defaultProps),t.props):t.props,a=qm.getRealPieData(n);if(!a||!a.length)return null;var i=n.cornerRadius,o=n.startAngle,l=n.endAngle,c=n.paddingAngle,u=n.dataKey,d=n.nameKey,f=n.valueKey,h=n.tooltipType,m=Math.abs(n.minAngle),g=qm.parseCoordinateOfPie(n,r),p=qm.parseDeltaAngle(o,l),v=Math.abs(p),y=u;Ce(u)&&Ce(f)?(us(!1,`Use "dataKey" to specify the value of pie,
606      the props "valueKey" will be deprecated in 1.1.0`),y="value"):Ce(u)&&(us(!1,`Use "dataKey" to specify the value of pie,
607      the props "valueKey" will be deprecated in 1.1.0`),y=f);var x=a.filter(function(P){return Ut(P,y,0)!==0}).length,w=(v>=360?x:x-1)*c,N=v-x*m-w,j=a.reduce(function(P,k){var A=Ut(k,y,0);return P+(ae(A)?A:0)},0),S;if(j>0){var _;S=a.map(function(P,k){var A=Ut(P,y,0),C=Ut(P,d,k),T=(ae(A)?A:0)/j,E;k?E=_.endAngle+_r(p)*c*(A!==0?1:0):E=o;var O=E+_r(p)*((A!==0?m:0)+T*N),D=(E+O)/2,$=(g.innerRadius+g.outerRadius)/2,L=[{name:C,value:A,payload:P,dataKey:y,type:h}],M=lt(g.cx,g.cy,$,D);return _=at(at(at({percent:T,cornerRadius:i,name:C,tooltipPayload:L,midAngle:D,middleRadius:$,tooltipPosition:M},P),g),{},{value:Ut(P,y),startAngle:E,endAngle:O,payload:P,paddingAngle:_r(p)*c}),_})}return at(at({},g),{},{sectors:S,data:a})});var Bbe=Math.ceil,zbe=Math.max;function Ube(e,t,r,n){for(var a=-1,i=zbe(Bbe((t-e)/(r||1)),0),o=Array(i);i--;)o[n?i:++a]=e,e+=r;return o}var Wbe=Ube,Vbe=RD,iA=1/0,Hbe=17976931348623157e292;function qbe(e){if(!e)return e===0?e:0;if(e=Vbe(e),e===iA||e===-iA){var t=e<0?-1:1;return t*Hbe}return e===e?e:0}var xL=qbe,Gbe=Wbe,Kbe=cx,jb=xL;function Ybe(e){return function(t,r,n){return n&&typeof n!="number"&&Kbe(t,r,n)&&(r=n=void 0),t=jb(t),r===void 0?(r=t,t=0):r=jb(r),n=n===void 0?t<r?1:-1:jb(n),Gbe(t,r,n,e)}}var Xbe=Ybe,Qbe=Xbe,Jbe=Qbe(),Zbe=Jbe;const Ng=Ke(Zbe);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 oA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(r),!0).forEach(function(n){yL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yL(e,t,r){return t=e0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e0e(e){var t=t0e(e,"string");return Mf(t)=="symbol"?t:t+""}function t0e(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r0e=["Webkit","Moz","O","ms"],n0e=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=r0e.reduce(function(i,o){return lA(lA({},i),{},yL({},o+n,r))},{});return a[t]=r,a};function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function Sg(){return Sg=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},Sg.apply(this,arguments)}function cA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cA(Object(r),!0).forEach(function(n){Xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uA(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,wL(n.key),n)}}function a0e(e,t,r){return t&&uA(e.prototype,t),r&&uA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i0e(e,t,r){return t=_g(t),o0e(e,bL()?Reflect.construct(t,r||[],_g(e).constructor):t.apply(e,r))}function o0e(e,t){if(t&&(zc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l0e(e)}function l0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bL=function(){return!!e})()}function _g(e){return _g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_g(e)}function c0e(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&&uj(e,t)}
vendor: 9,625 bytes, line 607
607function uj(e,t){return uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},uj(e,t)}function Xr(e,t,r){return t=wL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wL(e){var t=u0e(e,"string");return zc(t)=="symbol"?t:t+""}function u0e(e,t){if(zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d0e=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=Nd().domain(Ng(0,c)).range([i,i+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:d}},dA=function(t){return t.changedTouches&&!!t.changedTouches.length},Uc=function(e){function t(r){var n;return s0e(this,t),n=i0e(this,t,[r]),Xr(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Xr(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Xr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),Xr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Xr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Xr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Xr(n,"handleSlideDragStart",function(a){var i=dA(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return c0e(t,e),a0e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,f=Math.min(a,i),h=Math.max(a,i),m=t.getIndexInRange(o,f),g=t.getIndexInRange(o,h);return{startIndex:m-m%c,endIndex:g===d?d:g-g%c}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,c=Ut(i[n],l,n);return Se(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,c=this.props,u=c.x,d=c.width,f=c.travellerWidth,h=c.startIndex,m=c.endIndex,g=c.onChange,p=n.pageX-i;p>0?p=Math.min(p,u+d-f-l,u+d-f-o):p<0&&(p=Math.max(p,u-o,u-l));var v=this.getIndex({startX:o+p,endX:l+p});(v.startIndex!==h||v.endIndex!==m)&&g&&g(v),this.setState({startX:o+p,endX:l+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=dA(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,c=a.startX,u=this.state[o],d=this.props,f=d.x,h=d.width,m=d.travellerWidth,g=d.onChange,p=d.gap,v=d.data,y={startX:this.state.startX,endX:this.state.endX},x=n.pageX-i;x>0?x=Math.min(x,f+h-m-u):x<0&&(x=Math.max(x,f-u)),y[o]=u+x;var w=this.getIndex(y),N=w.startIndex,j=w.endIndex,S=function(){var P=v.length-1;return o==="startX"&&(l>c?N%p===0:j%p===0)||l<c&&j===P||o==="endX"&&(l>c?j%p===0:N%p===0)||l>c&&j===P};this.setState(Xr(Xr({},o,u+x),"brushMoveStartX",n.pageX),function(){g&&S()&&g(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[a],f=l.indexOf(d);if(f!==-1){var h=f+n;if(!(h===-1||h>=l.length)){var m=l[h];a==="startX"&&m>=u||a==="endX"&&m<=c||this.setState(Xr({},a,m),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.fill,u=n.stroke;return I.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.data,u=n.children,d=n.padding,f=b.Children.only(u);return f?I.cloneElement(f,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,f=c.height,h=c.traveller,m=c.ariaLabel,g=c.data,p=c.startIndex,v=c.endIndex,y=Math.max(n,this.props.x),x=Nb(Nb({},be(this.props,!1)),{},{x:y,y:u,width:d,height:f}),w=m||"Min value: ".concat((i=g[p])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return I.createElement(ze,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),l.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,l=i.height,c=i.stroke,u=i.travellerWidth,d=Math.min(n,a)+u,f=Math.max(Math.abs(a-n)-u,0);return I.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:f,height:l})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,l=n.height,c=n.travellerWidth,u=n.stroke,d=this.state,f=d.startX,h=d.endX,m=5,g={pointerEvents:"none",fill:u};return I.createElement(ze,{className:"recharts-brush-texts"},I.createElement(Bo,Sg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:o+l/2},g),this.getTextOfTick(a)),I.createElement(Bo,Sg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+c+m,y:o+l/2},g),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,l=n.x,c=n.y,u=n.width,d=n.height,f=n.alwaysShowText,h=this.state,m=h.startX,g=h.endX,p=h.isTextActive,v=h.isSlideMoving,y=h.isTravellerMoving,x=h.isTravellerFocused;if(!a||!a.length||!ae(l)||!ae(c)||!ae(u)||!ae(d)||u<=0||d<=0)return null;var w=Ae("recharts-brush",i),N=I.Children.count(o)===1,j=n0e("userSelect","none");return I.createElement(ze,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),N&&this.renderPanorama(),this.renderSlide(m,g),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||y||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,l=n.height,c=n.stroke,u=Math.floor(i+l/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:a,y:i,width:o,height:l,fill:c,stroke:"none"}),I.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return I.isValidElement(n)?i=I.cloneElement(n,a):Se(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,l=n.x,c=n.travellerWidth,u=n.updateId,d=n.startIndex,f=n.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Nb({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?d0e({data:i,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([l,l+o-c]);var h=a.scale.domain().map(function(m){return a.scale(m)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,l=i-1;l-o>1;){var c=Math.floor((o+l)/2);n[c]>a?l=c:o=c}return a>=n[l]?l:o}}])}(b.PureComponent);Xr(Uc,"displayName","Brush");Xr(Uc,"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 f0e=ZN;function h0e(e,t){var r;return f0e(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}
607var m0e=h0e,p0e=cD,g0e=Ks,v0e=m0e,x0e=Kr,y0e=cx;function b0e(e,t,r){var n=x0e(e)?p0e:v0e;return r&&y0e(e,t,r)&&(t=void 0),n(e,g0e(t))}var w0e=b0e;const j0e=Ke(w0e);var zs=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},fA=ED;function N0e(e,t,r){t=="__proto__"&&fA?fA(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var S0e=N0e,_0e=S0e,k0e=OD,P0e=Ks;function C0e(e,t){var r={};return t=P0e(t),k0e(e,function(n,a,i){_0e(r,a,t(n,a,i))}),r}var O0e=C0e;const A0e=Ke(O0e);function E0e(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 T0e=E0e,I0e=ZN;function $0e(e,t){var r=!0;return I0e(e,function(n,a,i){return r=!!t(n,a,i),r}),r}var M0e=$0e,R0e=T0e,D0e=M0e,L0e=Ks,F0e=Kr,B0e=cx;function z0e(e,t,r){var n=F0e(e)?R0e:D0e;return r&&B0e(e,t,r)&&(t=void 0),n(e,L0e(t))}var U0e=z0e;const jL=Ke(U0e);var W0e=["x","y"];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 dj(){return dj=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},dj.apply(this,arguments)}function hA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(r),!0).forEach(function(n){V0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V0e(e,t,r){return t=H0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H0e(e){var t=q0e(e,"string");return Rf(t)=="symbol"?t:t+""}function q0e(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)}function G0e(e,t){if(e==null)return{};var r=K0e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K0e(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 Y0e(e,t){var r=e.x,n=e.y,a=G0e(e,W0e),i="".concat(r),o=parseInt(i,10),l="".concat(n),c=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Yu(Yu(Yu(Yu(Yu({},t),a),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function mA(e){return I.createElement(pL,dj({shapeType:"rectangle",propTransformer:Y0e,activeClassName:"recharts-active-bar"},e))}var X0e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=ae(n)||wee(n);return i?t(n,a):(i||Uo(),r)}},Q0e=["value","background"],NL;function Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}function J0e(e,t){if(e==null)return{};var r=Z0e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z0e(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 kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 109,329 bytes, lines 607-612
607for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kg.apply(this,arguments)}function pA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pA(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ewe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gA(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,_L(n.key),n)}}function twe(e,t,r){return t&&gA(e.prototype,t),r&&gA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rwe(e,t,r){return t=Pg(t),nwe(e,SL()?Reflect.construct(t,r||[],Pg(e).constructor):t.apply(e,r))}function nwe(e,t){if(t&&(Wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return swe(e)}function swe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SL=function(){return!!e})()}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pg(e)}function awe(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&&fj(e,t)}function fj(e,t){return fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fj(e,t)}function li(e,t,r){return t=_L(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _L(e){var t=iwe(e,"string");return Wc(t)=="symbol"?t:t+""}function iwe(e,t){if(Wc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Or=function(e){function t(){var r;ewe(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=rwe(this,t,[].concat(a)),li(r,"state",{isAnimationFinished:!1}),li(r,"id",bu("recharts-bar-")),li(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),li(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return awe(t,e),twe(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,l=i.dataKey,c=i.activeIndex,u=i.activeBar,d=be(this.props,!1);return n&&n.map(function(f,h){var m=h===c,g=m?u:o,p=Tt(Tt(Tt({},d),f),{},{isActive:m,option:g,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return I.createElement(ze,kg({className:"recharts-bar-rectangle"},Fo(a.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),I.createElement(mA,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return I.createElement(Hs,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var g=m.t,p=i.map(function(v,y){var x=h&&h[y];if(x){var w=en(x.x,v.x),N=en(x.y,v.y),j=en(x.width,v.width),S=en(x.height,v.height);return Tt(Tt({},v),{},{x:w(g),y:N(g),width:j(g),height:S(g)})}if(o==="horizontal"){var _=en(0,v.height),P=_(g);return Tt(Tt({},v),{},{y:v.y+v.height-P,height:P})}var k=en(0,v.width),A=k(g);return Tt(Tt({},v),{},{width:A})});return I.createElement(ze,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Sh(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,c=be(this.props.background,!1);return i.map(function(u,d){u.value;var f=u.background,h=J0e(u,Q0e);if(!f)return null;var m=Tt(Tt(Tt(Tt(Tt({},h),{},{fill:"#eee"},f),c),Fo(n.props,u,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return I.createElement(mA,kg({key:"background-bar-".concat(d),option:n.props.background,isActive:d===l},m))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,f=un(d,_h);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,m=function(v,y){var x=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:x,errorVal:Ut(v,y)}},g={clipPath:n?"url(#clipPath-".concat(a,")"):null};return I.createElement(ze,g,f.map(function(p){return I.cloneElement(p,{key:"error-bar-".concat(a,"-").concat(p.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:h,dataPointFormatter:m})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,l=n.xAxis,c=n.yAxis,u=n.left,d=n.top,f=n.width,h=n.height,m=n.isAnimationActive,g=n.background,p=n.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,y=Ae("recharts-bar",o),x=l&&l.allowDataOverflow,w=c&&c.allowDataOverflow,N=x||w,j=Ce(p)?this.id:p;return I.createElement(ze,{className:y},x||w?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(j)},I.createElement("rect",{x:x?u:u-f/2,y:w?d:d-h/2,width:x?f:f*2,height:w?h:h*2}))):null,I.createElement(ze,{className:"recharts-bar-rectangles",clipPath:N?"url(#clipPath-".concat(j,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(N,j),(!m||v)&&ma.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])}(b.PureComponent);NL=Or;li(Or,"displayName","Bar");li(Or,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ls.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});li(Or,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,m=Bpe(n,r);if(!m)return null;var g=t.layout,p=r.type.defaultProps,v=p!==void 0?Tt(Tt({},p),r.props):r.props,y=v.dataKey,x=v.children,w=v.minPointSize,N=g==="horizontal"?o:i,j=u?N.scale.domain():null,S=Gpe({numericAxis:N}),_=un(x,ux),P=f.map(function(k,A){var C,T,E,O,D,$;u?C=zpe(u[d+A],j):(C=Ut(k,y),Array.isArray(C)||(C=[S,C]));var L=X0e(w,NL.defaultProps.minPointSize)(C[1],A);if(g==="horizontal"){var M,R=[o.scale(C[0]),o.scale(C[1])],B=R[0],H=R[1];T=aO({axis:i,ticks:l,bandSize:a,offset:m.offset,entry:k,index:A}),E=(M=H??B)!==null&&M!==void 0?M:void 0,O=m.size;var U=B-H;if(D=Number.isNaN(U)?0:U,$={x:T,y:o.y,width:O,height:o.height},Math.abs(L)>0&&Math.abs(D)<Math.abs(L)){var q=_r(D||L)*(Math.abs(L)-Math.abs(D));E-=q,D+=q}}else{var ee=[i.scale(C[0]),i.scale(C[1])],de=ee[0],ce=ee[1];if(T=de,E=aO({axis:o,ticks:c,bandSize:a,offset:m.offset,entry:k,index:A}),O=ce-de,D=m.size,$={x:i.x,y:E,width:i.width,height:D},Math.abs(L)>0&&Math.abs(O)<Math.abs(L)){var G=_r(O||L)*(Math.abs(L)-Math.abs(O));O+=G}}return Tt(Tt(Tt({},k),{},{x:T,y:E,width:O,height:D,value:u?C:C[1],payload:k,background:$},_&&_[A]&&_[A].props),{},{tooltipPayload:[G3(r,k)],tooltipPosition:{x:T+O/2,y:E+D/2}})});return Tt({data:P,layout:g},h)});function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}function owe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vA(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,kL(n.key),n)}}function lwe(e,t,r){return t&&vA(e.prototype,t),r&&vA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xA(Object(r),!0).forEach(function(n){Ox(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ox(e,t,r){return t=kL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kL(e){var t=cwe(e,"string");return Df(t)=="symbol"?t:t+""}function cwe(e,t){if(Df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PL=function(t,r,n,a,i){var o=t.width,l=t.height,c=t.layout,u=t.children,d=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},h=!!Jr(u,Or);return d.reduce(function(m,g){var p=r[g],v=p.orientation,y=p.domain,x=p.padding,w=x===void 0?{}:x,N=p.mirror,j=p.reversed,S="".concat(v).concat(N?"Mirror":""),_,P,k,A,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var T=y[1]-y[0],E=1/0,O=p.categoricalDomain.sort(See);if(O.forEach(function(ee,de){de>0&&(E=Math.min((ee||0)-(O[de-1]||0),E))}),Number.isFinite(E)){var D=E/T,$=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(_=D*$/2),p.padding==="no-gap"){var L=kr(t.barCategoryGap,D*$),M=D*$/2;_=M-L-(M-L)/$*L}}}a==="xAxis"?P=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:a==="yAxis"?P=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:P=p.range,j&&(P=[P[1],P[0]]);var R=W3(p,i,h),B=R.scale,H=R.realScaleType;B.domain(y).range(P),V3(B);var U=H3(B,es(es({},p),{},{realScaleType:H}));a==="xAxis"?(C=v==="top"&&!N||v==="bottom"&&N,k=n.left,A=f[S]-C*p.height):a==="yAxis"&&(C=v==="left"&&!N||v==="right"&&N,k=f[S]-C*p.width,A=n.top);var q=es(es(es({},p),U),{},{realScaleType:H,x:k,y:A,scale:B,width:a==="xAxis"?n.width:p.width,height:a==="yAxis"?n.height:p.height});return q.bandSize=ug(q,U),!p.hide&&a==="xAxis"?f[S]+=(C?-1:1)*q.height:p.hide||(f[S]+=(C?-1:1)*q.width),es(es({},m),{},Ox({},g,q))},{})},CL=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},uwe=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return CL({x:r,y:n},{x:a,y:i})},OL=function(){function e(t){owe(this,e),this.scale=t}return lwe(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]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();Ox(OL,"EPS",1e-4);var CS=function(t){var r=Object.keys(t).reduce(function(n,a){return es(es({},n),{},Ox({},a,OL.create(t[a])))},{});return es(es({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return A0e(a,function(c,u){return r[u].apply(c,{bandAware:o,position:l})})},isInRange:function(a){return jL(a,function(i,o){return r[o].isInRange(i)})}})};function dwe(e){return(e%180+180)%180}var fwe=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=dwe(a),o=i*Math.PI/180,l=Math.atan(n/r),c=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},hwe=Ks,mwe=yh,pwe=ox;function gwe(e){return function(t,r,n){var a=Object(t);if(!mwe(t)){var i=hwe(r);t=pwe(t),r=function(l){return i(a[l],l,a)}}var o=e(t,r,n);return o>-1?a[i?t[o]:o]:void 0}}var vwe=gwe,xwe=xL;function ywe(e){var t=xwe(e),r=t%1;return t===t?r?t-r:t:0}var bwe=ywe,wwe=ND,jwe=Ks,Nwe=bwe,Swe=Math.max;function _we(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:Nwe(r);return a<0&&(a=Swe(n+a,0)),wwe(e,jwe(t),a)}var kwe=_we,Pwe=vwe,Cwe=kwe,Owe=Pwe(Cwe),Awe=Owe;const Ewe=Ke(Awe);var Twe=_Z(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("")}),OS=b.createContext(void 0),AS=b.createContext(void 0),AL=b.createContext(void 0),EL=b.createContext({}),TL=b.createContext(void 0),IL=b.createContext(0),$L=b.createContext(0),yA=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,l=t.children,c=t.width,u=t.height,d=Twe(i);return I.createElement(OS.Provider,{value:n},I.createElement(AS.Provider,{value:a},I.createElement(EL.Provider,{value:i},I.createElement(AL.Provider,{value:d},I.createElement(TL.Provider,{value:o},I.createElement(IL.Provider,{value:u},I.createElement($L.Provider,{value:c},l)))))))},Iwe=function(){return b.useContext(TL)},ML=function(t){var r=b.useContext(OS);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},$we=function(){var t=b.useContext(OS);return Ja(t)},Mwe=function(){var t=b.useContext(AS),r=Ewe(t,function(n){return jL(n.domain,Number.isFinite)});return r||Ja(t)},RL=function(t){var r=b.useContext(AS);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},Rwe=function(){var t=b.useContext(AL);return t},Dwe=function(){return b.useContext(EL)},ES=function(){return b.useContext($L)},TS=function(){return b.useContext(IL)};function Vc(e){"@babel/helpers - typeof";return Vc=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},Vc(e)}function Lwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fwe(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,LL(n.key),n)}}function Bwe(e,t,r){return t&&Fwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zwe(e,t,r){return t=Cg(t),Uwe(e,DL()?Reflect.construct(t,r||[],Cg(e).constructor):t.apply(e,r))}function Uwe(e,t){if(t&&(Vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wwe(e)}function Wwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DL=function(){return!!e})()}function Cg(e){return Cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cg(e)}function Vwe(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&&hj(e,t)}function hj(e,t){return hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},hj(e,t)}function bA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(r),!0).forEach(function(n){IS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IS(e,t,r){return t=LL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LL(e){var t=Hwe(e,"string");return Vc(t)=="symbol"?t:t+""}function Hwe(e,t){if(Vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qwe(e,t){return Xwe(e)||Ywe(e,t)||Kwe(e,t)||Gwe()}function Gwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
608In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kwe(e,t){if(e){if(typeof e=="string")return jA(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 jA(e,t)}}function jA(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 Ywe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Xwe(e){if(Array.isArray(e))return e}function mj(){return mj=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},mj.apply(this,arguments)}var Qwe=function(t,r){var n;return I.isValidElement(t)?n=I.cloneElement(t,r):Se(t)?n=t(r):n=I.createElement("line",mj({},r,{className:"recharts-reference-line-line"})),n},Jwe=function(t,r,n,a,i,o,l,c,u){var d=i.x,f=i.y,h=i.width,m=i.height;if(n){var g=u.y,p=t.y.apply(g,{position:o});if(zs(u,"discard")&&!t.y.isInRange(p))return null;var v=[{x:d+h,y:p},{x:d,y:p}];return c==="left"?v.reverse():v}if(r){var y=u.x,x=t.x.apply(y,{position:o});if(zs(u,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:f+m},{x,y:f}];return l==="top"?w.reverse():w}if(a){var N=u.segment,j=N.map(function(S){return t.apply(S,{position:o})});return zs(u,"discard")&&j0e(j,function(S){return!t.isInRange(S)})?null:j}return null};function Zwe(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,u=Iwe(),d=ML(a),f=RL(i),h=Rwe();if(!u||!h)return null;us(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=CS({x:d.scale,y:f.scale}),g=Vt(t),p=Vt(r),v=n&&n.length===2,y=Jwe(m,g,p,v,h,e.position,d.orientation,f.orientation,e);if(!y)return null;var x=qwe(y,2),w=x[0],N=w.x,j=w.y,S=x[1],_=S.x,P=S.y,k=zs(e,"hidden")?"url(#".concat(u,")"):void 0,A=wA(wA({clipPath:k},be(e,!0)),{},{x1:N,y1:j,x2:_,y2:P});return I.createElement(ze,{className:Ae("recharts-reference-line",l)},Qwe(o,A),Qt.renderCallByParent(e,uwe({x1:N,y1:j,x2:_,y2:P})))}var $S=function(e){function t(){return Lwe(this,t),zwe(this,t,arguments)}return Vwe(t,e),Bwe(t,[{key:"render",value:function(){return I.createElement(Zwe,this.props)}}])}(I.Component);IS($S,"displayName","ReferenceLine");IS($S,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function pj(){return pj=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},pj.apply(this,arguments)}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 NA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function SA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(r),!0).forEach(function(n){Ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tje(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,BL(n.key),n)}}function rje(e,t,r){return t&&tje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nje(e,t,r){return t=Og(t),sje(e,FL()?Reflect.construct(t,r||[],Og(e).constructor):t.apply(e,r))}function sje(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 aje(e)}function aje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FL=function(){return!!e})()}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Og(e)}function ije(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&&gj(e,t)}function gj(e,t){return gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},gj(e,t)}function Ax(e,t,r){return t=BL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BL(e){var t=oje(e,"string");return Hc(t)=="symbol"?t:t+""}function oje(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 lje=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=CS({x:a.scale,y:i.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return zs(t,"discard")&&!o.isInRange(l)?null:l},Ex=function(e){function t(){return eje(this,t),nje(this,t,arguments)}return ije(t,e),rje(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,l=n.alwaysShow,c=n.clipPathId,u=Vt(a),d=Vt(i);if(us(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=lje(this.props);if(!f)return null;var h=f.x,m=f.y,g=this.props,p=g.shape,v=g.className,y=zs(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=SA(SA({clipPath:y},be(this.props,!0)),{},{cx:h,cy:m});return I.createElement(ze,{className:Ae("recharts-reference-dot",v)},t.renderDot(p,x),Qt.renderCallByParent(this.props,{x:h-o,y:m-o,width:2*o,height:2*o}))}}])}(I.Component);Ax(Ex,"displayName","ReferenceDot");Ax(Ex,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ax(Ex,"renderDot",function(e,t){var r;return I.isValidElement(e)?r=I.cloneElement(e,t):Se(e)?r=e(t):r=I.createElement(jx,pj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function vj(){return vj=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},vj.apply(this,arguments)}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 _A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(r),!0).forEach(function(n){Tx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uje(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,UL(n.key),n)}}function dje(e,t,r){return t&&uje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fje(e,t,r){return t=Ag(t),hje(e,zL()?Reflect.construct(t,r||[],Ag(e).constructor):t.apply(e,r))}function hje(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 mje(e)}function mje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zL=function(){return!!e})()}function Ag(e){return Ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ag(e)}function pje(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&&xj(e,t)}function xj(e,t){return xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xj(e,t)}function Tx(e,t,r){return t=UL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UL(e){var t=gje(e,"string");return qc(t)=="symbol"?t:t+""}function gje(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)}var vje=function(t,r,n,a,i){var o=i.x1,l=i.x2,c=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=CS({x:d.scale,y:f.scale}),m={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},g={x:r?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return zs(i,"discard")&&(!h.isInRange(m)||!h.isInRange(g))?null:CL(m,g)},Ix=function(e){function t(){return cje(this,t),fje(this,t,arguments)}return pje(t,e),dje(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,l=n.y2,c=n.className,u=n.alwaysShow,d=n.clipPathId;us(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Vt(a),h=Vt(i),m=Vt(o),g=Vt(l),p=this.props.shape;if(!f&&!h&&!m&&!g&&!p)return null;var v=vje(f,h,m,g,this.props);if(!v&&!p)return null;var y=zs(this.props,"hidden")?"url(#".concat(d,")"):void 0;return I.createElement(ze,{className:Ae("recharts-reference-area",c)},t.renderRect(p,kA(kA({clipPath:y},be(this.props,!0)),v)),Qt.renderCallByParent(this.props,v))}}])}(I.Component);Tx(Ix,"displayName","ReferenceArea");Tx(Ix,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tx(Ix,"renderRect",function(e,t){var r;return I.isValidElement(e)?r=I.cloneElement(e,t):Se(e)?r=e(t):r=I.createElement(PS,vj({},t,{className:"recharts-reference-area-rect"})),r});function WL(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function xje(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return fwe(n,r)}function yje(e,t,r){var n=r==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:n?a:i,end:n?a+o:i+l}:{start:n?a+o:i+l,end:n?a:i}}function Eg(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function bje(e,t){return WL(e,t+1)}function wje(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,l=t.end,c=0,u=1,d=o,f=function(){var g=n==null?void 0:n[c];if(g===void 0)return{v:WL(n,u)};var p=c,v,y=function(){return v===void 0&&(v=r(g,p)),v},x=g.coordinate,w=c===0||Eg(e,x,y,d,l);w||(c=0,d=o,u+=1),w&&(d=x+e*(y()/2+a),c+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}function PA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(r),!0).forEach(function(n){jje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jje(e,t,r){return t=Nje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nje(e){var t=Sje(e,"string");return Lf(t)=="symbol"?t:t+""}function Sje(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _je(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,l=t.start,c=t.end,u=function(h){var m=i[h],g,p=function(){return g===void 0&&(g=r(m,h)),g};if(h===o-1){var v=e*(m.coordinate+e*p()/2-c);i[h]=m=ur(ur({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate})}else i[h]=m=ur(ur({},m),{},{tickCoord:m.coordinate});var y=Eg(e,m.tickCoord,p,l,c);y&&(c=m.tickCoord-e*(p()/2+a),i[h]=ur(ur({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function kje(e,t,r,n,a,i){var o=(n||[]).slice(),l=o.length,c=t.start,u=t.end;if(i){var d=n[l-1],f=r(d,l-1),h=e*(d.coordinate+e*f/2-u);o[l-1]=d=ur(ur({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var m=Eg(e,d.tickCoord,function(){return f},c,u);m&&(u=d.tickCoord-e*(f/2+a),o[l-1]=ur(ur({},d),{},{isShow:!0}))}for(var g=i?l-1:l,p=function(x){var w=o[x],N,j=function(){return N===void 0&&(N=r(w,x)),N};if(x===0){var S=e*(w.coordinate-e*j()/2-c);o[x]=w=ur(ur({},w),{},{tickCoord:S<0?w.coordinate-S*e:w.coordinate})}else o[x]=w=ur(ur({},w),{},{tickCoord:w.coordinate});var _=Eg(e,w.tickCoord,j,c,u);_&&(c=w.tickCoord+e*(j()/2+a),o[x]=ur(ur({},w),{},{isShow:!0}))},v=0;v<g;v++)p(v);return o}function MS(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!a||!a.length||!n)return[];if(ae(c)||Ls.isSsr)return bje(a,typeof c=="number"&&ae(c)?c:0);var h=[],m=l==="top"||l==="bottom"?"width":"height",g=d&&m==="width"?jd(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,N){var j=Se(u)?u(w.value,N):w.value;return m==="width"?xje(jd(j,{fontSize:t,letterSpacing:r}),g,f):jd(j,{fontSize:t,letterSpacing:r})[m]},v=a.length>=2?_r(a[1].coordinate-a[0].coordinate):1,y=yje(i,v,m);return c==="equidistantPreserveStart"?wje(v,y,p,a,o):(c==="preserveStart"||c==="preserveStartEnd"?h=kje(v,y,p,a,o,c==="preserveStartEnd"):h=_je(v,y,p,a,o),h.filter(function(x){return x.isShow}))}var Pje=["viewBox"],Cje=["viewBox"],Oje=["ticks"];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 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 CA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(r),!0).forEach(function(n){RS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sb(e,t){if(e==null)return{};var r=Aje(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aje(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 Eje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OA(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,HL(n.key),n)}}function Tje(e,t,r){return t&&OA(e.prototype,t),r&&OA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ije(e,t,r){return t=Tg(t),$je(e,VL()?Reflect.construct(t,r||[],Tg(e).constructor):t.apply(e,r))}function $je(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 Mje(e)}function Mje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VL=function(){return!!e})()}function Tg(e){return Tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tg(e)}function Rje(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&&yj(e,t)}function yj(e,t){return yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yj(e,t)}function RS(e,t,r){return t=HL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HL(e){var t=Dje(e,"string");return Gc(t)=="symbol"?t:t+""}function Dje(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 Pu=function(e){function t(r){var n;return Eje(this,t),n=Ije(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Rje(t,e),Tje(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=Sb(n,Pje),l=this.props,c=l.viewBox,u=Sb(l,Cje);return!tc(i,c)||!tc(o,u)||!tc(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,l=a.width,c=a.height,u=a.orientation,d=a.tickSize,f=a.mirror,h=a.tickMargin,m,g,p,v,y,x,w=f?-1:1,N=n.tickSize||d,j=ae(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":m=g=n.coordinate,v=o+ +!f*c,p=v-w*N,x=p-w*h,y=j;break;case"left":p=v=n.coordinate,g=i+ +!f*l,m=g-w*N,y=m-w*h,x=j;break;case"right":p=v=n.coordinate,g=i+ +f*l,m=g+w*N,y=m+w*h,x=j;break;default:m=g=n.coordinate,v=o+ +f*c,p=v+w*N,x=p+w*h,y=j;break}return{line:{x1:m,y1:p,x2:g,y2:v},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,l=n.height,c=n.orientation,u=n.mirror,d=n.axisLine,f=Dt(Dt(Dt({},be(this.props,!1)),be(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!u||c==="bottom"&&u);f=Dt(Dt({},f),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var m=+(c==="left"&&!u||c==="right"&&u);f=Dt(Dt({},f),{},{x1:a+m*o,y1:i,x2:a+m*o,y2:i+l})}return I.createElement("line",zl({},f,{className:Ae("recharts-cartesian-axis-line",cn(d,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,h=l.unit,m=MS(Dt(Dt({},this.props),{},{ticks:n}),a,i),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=be(this.props,!1),y=be(d,!1),x=Dt(Dt({},v),{},{fill:"none"},be(c,!1)),w=m.map(function(N,j){var S=o.getTickLineCoord(N),_=S.line,P=S.tick,k=Dt(Dt(Dt(Dt({textAnchor:g,verticalAnchor:p},v),{},{stroke:"none",fill:u},y),P),{},{index:j,payload:N,visibleTicksCount:m.length,tickFormatter:f});return I.createElement(ze,zl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(N.value,"-").concat(N.coordinate,"-").concat(N.tickCoord)},Fo(o.props,N,j)),c&&I.createElement("line",zl({},x,_,{className:Ae("recharts-cartesian-axis-tick-line",cn(c,"className"))})),d&&t.renderTickItem(d,k,"".concat(Se(f)?f(N.value,j):N.value).concat(h||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,c=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,m=Sb(f,Oje),g=h;return Se(c)&&(g=h&&h.length>0?c(this.props):c(m)),o<=0||l<=0||!g||!g.length?null:I.createElement(ze,{className:Ae("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o,l=Ae(a.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(n)?o=I.cloneElement(n,Dt(Dt({},a),{},{className:l})):Se(n)?o=n(Dt(Dt({},a),{},{className:l})):o=I.createElement(Bo,zl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(b.Component);RS(Pu,"displayName","CartesianAxis");RS(Pu,"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 Lje=["x1","y1","x2","y2","key"],Fje=["offset"];function Wo(e){"@babel/helpers - typeof";return Wo=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},Wo(e)}function AA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(r),!0).forEach(function(n){Bje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bje(e,t,r){return t=zje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zje(e){var t=Uje(e,"string");return Wo(t)=="symbol"?t:t+""}function Uje(e,t){if(Wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xo(){return xo=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},xo.apply(this,arguments)}function EA(e,t){if(e==null)return{};var r=Wje(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wje(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 Vje=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return I.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function qL(e,t){var r;if(I.isValidElement(e))r=I.cloneElement(e,t);else if(Se(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,l=t.key,c=EA(t,Lje),u=be(c,!1);u.offset;var d=EA(u,Fje);r=I.createElement("line",xo({},d,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:l}))}return r}function Hje(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=hr(hr({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(c),index:c});return qL(a,u)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function qje(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=hr(hr({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(c),index:c});return qL(a,u)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Gje(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var d=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,m){return h-m});a!==d[0]&&d.unshift(0);var f=d.map(function(h,m){var g=!d[m+1],p=g?a+o-h:d[m+1]-h;if(p<=0)return null;var v=m%t.length;return I.createElement("rect",{key:"react-".concat(m),y:h,x:n,height:p,width:i,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Kje(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,m){return h-m});i!==d[0]&&d.unshift(0);var f=d.map(function(h,m){var g=!d[m+1],p=g?i+l-h:d[m+1]-h;if(p<=0)return null;var v=m%n.length;return I.createElement("rect",{key:"react-".concat(m),x:h,y:o,width:p,height:c,stroke:"none",fill:n[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Yje=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return U3(MS(hr(hr(hr({},Pu.defaultProps),n),{},{ticks:ua(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},Xje=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return U3(MS(hr(hr(hr({},Pu.defaultProps),n),{},{ticks:ua(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},wl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function pa(e){var t,r,n,a,i,o,l=ES(),c=TS(),u=Dwe(),d=hr(hr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:wl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:wl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:wl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:wl.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:wl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:wl.verticalFill,x:ae(e.x)?e.x:u.left,y:ae(e.y)?e.y:u.top,width:ae(e.width)?e.width:u.width,height:ae(e.height)?e.height:u.height}),f=d.x,h=d.y,m=d.width,g=d.height,p=d.syncWithTicks,v=d.horizontalValues,y=d.verticalValues,x=$we(),w=Mwe();if(!ae(m)||m<=0||!ae(g)||g<=0||!ae(f)||f!==+f||!ae(h)||h!==+h)return null;var N=d.verticalCoordinatesGenerator||Yje,j=d.horizontalCoordinatesGenerator||Xje,S=d.horizontalPoints,_=d.verticalPoints;if((!S||!S.length)&&Se(j)){var P=v&&v.length,k=j({yAxis:w?hr(hr({},w),{},{ticks:P?v:w.ticks}):void 0,width:l,height:c,offset:u},P?!0:p);us(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Wo(k),"]")),Array.isArray(k)&&(S=k)}if((!_||!_.length)&&Se(N)){var A=y&&y.length,C=N({xAxis:x?hr(hr({},x),{},{ticks:A?y:x.ticks}):void 0,width:l,height:c,offset:u},A?!0:p);us(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Wo(C),"]")),Array.isArray(C)&&(_=C)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(Vje,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),I.createElement(Hje,xo({},d,{offset:u,horizontalPoints:S,xAxis:x,yAxis:w})),I.createElement(qje,xo({},d,{offset:u,verticalPoints:_,xAxis:x,yAxis:w})),I.createElement(Gje,xo({},d,{horizontalPoints:S})),I.createElement(Kje,xo({},d,{verticalPoints:_})))}pa.displayName="CartesianGrid";var Qje=["type","layout","connectNulls","ref"],Jje=["key"];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 TA(e,t){if(e==null)return{};var r=Zje(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zje(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 Cd(){return Cd=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},Cd.apply(this,arguments)}function IA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?IA(Object(r),!0).forEach(function(n){ts(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jl(e){return n1e(e)||r1e(e)||t1e(e)||e1e()}function e1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
609In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t1e(e,t){if(e){if(typeof e=="string")return bj(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 bj(e,t)}}function r1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n1e(e){if(Array.isArray(e))return bj(e)}function bj(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 s1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $A(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,KL(n.key),n)}}function a1e(e,t,r){return t&&$A(e.prototype,t),r&&$A(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i1e(e,t,r){return t=Ig(t),o1e(e,GL()?Reflect.construct(t,r||[],Ig(e).constructor):t.apply(e,r))}function o1e(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 l1e(e)}function l1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GL=function(){return!!e})()}function Ig(e){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ig(e)}function c1e(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&&wj(e,t)}function wj(e,t){return wj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wj(e,t)}function ts(e,t,r){return t=KL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e){var t=u1e(e,"string");return Kc(t)=="symbol"?t:t+""}function u1e(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 is=function(e){function t(){var r;s1e(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=i1e(this,t,[].concat(a)),ts(r,"state",{isAnimationFinished:!0,totalLength:0}),ts(r,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),ts(r,"getStrokeDasharray",function(o,l,c){var u=c.reduce(function(y,x){return y+x});if(!u)return r.generateSimpleStrokeDasharray(l,o);for(var d=Math.floor(o/u),f=o%u,h=l-o,m=[],g=0,p=0;g<c.length;p+=c[g],++g)if(p+c[g]>f){m=[].concat(jl(c.slice(0,g)),[f-p]);break}var v=m.length%2===0?[0,h]:[h];return[].concat(jl(t.repeat(c,d)),jl(m),v).map(function(y){return"".concat(y,"px")}).join(", ")}),ts(r,"id",bu("recharts-line-")),ts(r,"pathRef",function(o){r.mainCurve=o}),ts(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ts(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return c1e(t,e),a1e(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,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,f=un(d,_h);if(!f)return null;var h=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:Ut(p.payload,v)}},m={clipPath:n?"url(#clipPath-".concat(a,")"):null};return I.createElement(ze,m,f.map(function(g){return I.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,f=be(this.props,!1),h=be(c,!0),m=u.map(function(p,v){var y=Yr(Yr(Yr({key:"dot-".concat(v),r:3},f),h),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:d,payload:p.payload,points:u});return t.renderDotItem(c,y)}),g={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return I.createElement(ze,Cd({className:"recharts-line-dots",key:"dots"},g),m)}},{key:"renderCurveStatically",value:function(n,a,i,o){var l=this.props,c=l.type,u=l.layout,d=l.connectNulls;l.ref;var f=TA(l,Qje),h=Yr(Yr(Yr({},be(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:c,layout:u,connectNulls:d});return I.createElement(hg,Cd({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,o=this.props,l=o.points,c=o.strokeDasharray,u=o.isAnimationActive,d=o.animationBegin,f=o.animationDuration,h=o.animationEasing,m=o.animationId,g=o.animateNewValues,p=o.width,v=o.height,y=this.state,x=y.prevPoints,w=y.totalLength;return I.createElement(Hs,{begin:d,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(N){var j=N.t;if(x){var S=x.length/l.length,_=l.map(function(T,E){var O=Math.floor(E*S);if(x[O]){var D=x[O],$=en(D.x,T.x),L=en(D.y,T.y);return Yr(Yr({},T),{},{x:$(j),y:L(j)})}if(g){var M=en(p*2,T.x),R=en(v/2,T.y);return Yr(Yr({},T),{},{x:M(j),y:R(j)})}return Yr(Yr({},T),{},{x:T.x,y:T.y})});return i.renderCurveStatically(_,n,a)}var P=en(0,w),k=P(j),A;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});A=i.getStrokeDasharray(k,w,C)}else A=i.generateSimpleStrokeDasharray(w,k);return i.renderCurveStatically(l,n,a,{strokeDasharray:A})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,l=i.isAnimationActive,c=this.state,u=c.prevPoints,d=c.totalLength;return l&&o&&o.length&&(!u&&d>0||!Sh(u,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.xAxis,d=a.yAxis,f=a.top,h=a.left,m=a.width,g=a.height,p=a.isAnimationActive,v=a.id;if(i||!l||!l.length)return null;var y=this.state.isAnimationFinished,x=l.length===1,w=Ae("recharts-line",c),N=u&&u.allowDataOverflow,j=d&&d.allowDataOverflow,S=N||j,_=Ce(v)?this.id:v,P=(n=be(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},k=P.r,A=k===void 0?3:k,C=P.strokeWidth,T=C===void 0?2:C,E=Iee(o)?o:{},O=E.clipDot,D=O===void 0?!0:O,$=A*2+T;return I.createElement(ze,{className:w},N||j?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(_)},I.createElement("rect",{x:N?h:h-m/2,y:j?f:f-g/2,width:N?m:m*2,height:j?g:g*2})),!D&&I.createElement("clipPath",{id:"clipPath-dots-".concat(_)},I.createElement("rect",{x:h-$/2,y:f-$/2,width:m+$,height:g+$}))):null,!x&&this.renderCurve(S,_),this.renderErrorBar(S,_),(x||o)&&this.renderDots(S,D,_),(!p||y)&&ma.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(jl(n),[0]):n,o=[],l=0;l<a;++l)o=[].concat(jl(o),jl(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(I.isValidElement(n))i=I.cloneElement(n,a);else if(Se(n))i=n(a);else{var o=a.key,l=TA(a,Jje),c=Ae("recharts-line-dot",typeof n!="boolean"?n.className:"");i=I.createElement(jx,Cd({key:o},l,{className:c}))}return i}}])}(b.PureComponent);ts(is,"displayName","Line");ts(is,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ls.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ts(is,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,l=e.bandSize,c=e.displayedData,u=e.offset,d=t.layout,f=c.map(function(h,m){var g=Ut(h,o);return d==="horizontal"?{x:sO({axis:r,ticks:a,bandSize:l,entry:h,index:m}),y:Ce(g)?null:n.scale(g),value:g,payload:h}:{x:Ce(g)?null:r.scale(g),y:sO({axis:n,ticks:i,bandSize:l,entry:h,index:m}),value:g,payload:h}});return Yr({points:f,layout:d},u)});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 d1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f1e(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,QL(n.key),n)}}function h1e(e,t,r){return t&&f1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function m1e(e,t,r){return t=$g(t),p1e(e,YL()?Reflect.construct(t,r||[],$g(e).constructor):t.apply(e,r))}function p1e(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 g1e(e)}function g1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YL=function(){return!!e})()}function $g(e){return $g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$g(e)}function v1e(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&&jj(e,t)}function jj(e,t){return jj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},jj(e,t)}function XL(e,t,r){return t=QL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QL(e){var t=x1e(e,"string");return Yc(t)=="symbol"?t:t+""}function x1e(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)}function Nj(){return Nj=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},Nj.apply(this,arguments)}function y1e(e){var t=e.xAxisId,r=ES(),n=TS(),a=ML(t);return a==null?null:b.createElement(Pu,Nj({},a,{className:Ae("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ua(o,!0)}}))}var On=function(e){function t(){return d1e(this,t),m1e(this,t,arguments)}return v1e(t,e),h1e(t,[{key:"render",value:function(){return b.createElement(y1e,this.props)}}])}(b.Component);XL(On,"displayName","XAxis");XL(On,"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 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 b1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1e(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,e5(n.key),n)}}function j1e(e,t,r){return t&&w1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N1e(e,t,r){return t=Mg(t),S1e(e,JL()?Reflect.construct(t,r||[],Mg(e).constructor):t.apply(e,r))}function S1e(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 _1e(e)}function _1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JL=function(){return!!e})()}function Mg(e){return Mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mg(e)}function k1e(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&&Sj(e,t)}function Sj(e,t){return Sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sj(e,t)}function ZL(e,t,r){return t=e5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e5(e){var t=P1e(e,"string");return Xc(t)=="symbol"?t:t+""}function P1e(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)}function _j(){return _j=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},_j.apply(this,arguments)}var C1e=function(t){var r=t.yAxisId,n=ES(),a=TS(),i=RL(r);return i==null?null:b.createElement(Pu,_j({},i,{className:Ae("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(l){return ua(l,!0)}}))},An=function(e){function t(){return b1e(this,t),N1e(this,t,arguments)}return k1e(t,e),j1e(t,[{key:"render",value:function(){return b.createElement(C1e,this.props)}}])}(b.Component);ZL(An,"displayName","YAxis");ZL(An,"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 MA(e){return T1e(e)||E1e(e)||A1e(e)||O1e()}function O1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
610In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A1e(e,t){if(e){if(typeof e=="string")return kj(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 kj(e,t)}}function E1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T1e(e){if(Array.isArray(e))return kj(e)}function kj(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 Pj=function(t,r,n,a,i){var o=un(t,$S),l=un(t,Ex),c=[].concat(MA(o),MA(l)),u=un(t,Ix),d="".concat(a,"Id"),f=a[0],h=r;if(c.length&&(h=c.reduce(function(p,v){if(v.props[d]===n&&zs(v.props,"extendDomain")&&ae(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},h)),u.length){var m="".concat(f,"1"),g="".concat(f,"2");h=u.reduce(function(p,v){if(v.props[d]===n&&zs(v.props,"extendDomain")&&ae(v.props[m])&&ae(v.props[g])){var y=v.props[m],x=v.props[g];return[Math.min(p[0],y,x),Math.max(p[1],y,x)]}return p},h)}return i&&i.length&&(h=i.reduce(function(p,v){return ae(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},h)),h},t5={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new a(d,f||c,h),g=r?r+u:u;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],m]:c._events[g].push(m):(c._events[g]=m,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=r?r+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,m=f.length,g=new Array(m);h<m;h++)g[h]=f[h].fn;return g},l.prototype.listenerCount=function(u){var d=r?r+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,h,m,g){var p=r?r+u:u;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,x,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,h),!0;case 5:return v.fn.call(v.context,d,f,h,m),!0;case 6:return v.fn.call(v.context,d,f,h,m,g),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];v.fn.apply(v.context,x)}else{var N=v.length,j;for(w=0;w<N;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),y){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,d);break;case 3:v[w].fn.call(v[w].context,d,f);break;case 4:v[w].fn.call(v[w].context,d,f,h);break;default:if(!x)for(j=1,x=new Array(y-1);j<y;j++)x[j-1]=arguments[j];v[w].fn.apply(v[w].context,x)}}return!0},l.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,h){var m=r?r+u:u;if(!this._events[m])return this;if(!d)return o(this,m),this;var g=this._events[m];if(g.fn)g.fn===d&&(!h||g.once)&&(!f||g.context===f)&&o(this,m);else{for(var p=0,v=[],y=g.length;p<y;p++)(g[p].fn!==d||h&&!g[p].once||f&&g[p].context!==f)&&v.push(g[p]);v.length?this._events[m]=v.length===1?v[0]:v:o(this,m)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=r?r+u:u,this._events[d]&&o(this,d)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(t5);var I1e=t5.exports;const $1e=Ke(I1e);var _b=new $1e,kb="recharts.syncMouseEvents";function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function M1e(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,r5(n.key),n)}}function D1e(e,t,r){return t&&R1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pb(e,t,r){return t=r5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r5(e){var t=L1e(e,"string");return Ff(t)=="symbol"?t:t+""}function L1e(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var F1e=function(){function e(){M1e(this,e),Pb(this,"activeIndex",0),Pb(this,"coordinateList",[]),Pb(this,"layout","horizontal")}return D1e(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,l=o===void 0?null:o,c=r.layout,u=c===void 0?null:c,d=r.offset,f=d===void 0?null:d,h=r.mouseHandlerCallback,m=h===void 0?null:h;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=m??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 a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+c+u,h=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function B1e(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&ae(n)&&ae(a))return!0}return!1}function z1e(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function n5(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=lt(t,r,n,a),l=lt(t,r,n,i);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function U1e(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,d=t.outerRadius,f=t.angle,h=lt(l,c,u,f),m=lt(l,c,d,f);n=h.x,a=h.y,i=m.x,o=m.y}else return n5(t);return[{x:n,y:a},{x:i,y:o}]}function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function RA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(r),!0).forEach(function(n){W1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W1e(e,t,r){return t=V1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V1e(e){var t=H1e(e,"string");return Bf(t)=="symbol"?t:t+""}function H1e(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q1e(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,m=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!m||!i||!o||h!=="ScatterChart"&&a!=="axis")return null;var g,p=hg;if(h==="ScatterChart")g=o,p=uye;else if(h==="BarChart")g=z1e(f,o,c,d),p=PS;else if(f==="radial"){var v=n5(o),y=v.cx,x=v.cy,w=v.radius,N=v.startAngle,j=v.endAngle;g={cx:y,cy:x,startAngle:N,endAngle:j,innerRadius:w,outerRadius:w},p=Z3}else g={points:U1e(f,o,c)},p=hg;var S=Sm(Sm(Sm(Sm({stroke:"#ccc",pointerEvents:"none"},c),g),be(m,!1)),{},{payload:l,payloadIndex:u,className:Ae("recharts-tooltip-cursor",m.className)});return b.isValidElement(m)?b.cloneElement(m,S):b.createElement(p,S)}var G1e=["item"],K1e=["children","className","width","height","style","compact","title","desc"];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 Ul(){return Ul=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},Ul.apply(this,arguments)}function DA(e,t){return Q1e(e)||X1e(e,t)||a5(e,t)||Y1e()}function Y1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
611In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Q1e(e){if(Array.isArray(e))return e}function LA(e,t){if(e==null)return{};var r=J1e(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J1e(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 Z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eNe(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,i5(n.key),n)}}function tNe(e,t,r){return t&&eNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rNe(e,t,r){return t=Rg(t),nNe(e,s5()?Reflect.construct(t,r||[],Rg(e).constructor):t.apply(e,r))}function nNe(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 sNe(e)}function sNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s5=function(){return!!e})()}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rg(e)}function aNe(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&&Cj(e,t)}function Cj(e,t){return Cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Cj(e,t)}function Jc(e){return lNe(e)||oNe(e)||a5(e)||iNe()}function iNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
612In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a5(e,t){if(e){if(typeof e=="string")return Oj(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 Oj(e,t)}}function oNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lNe(e){if(Array.isArray(e))return Oj(e)}function Oj(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 FA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(r),!0).forEach(function(n){we(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function we(e,t,r){return t=i5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i5(e){var t=cNe(e,"string");return Qc(t)=="symbol"?t:t+""}function cNe(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)}var uNe={xAxis:["bottom","top"],yAxis:["left","right"]},dNe={width:"100%",height:"100%"},o5={x:0,y:0};function _m(e){return e}var fNe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},hNe=function(t,r,n,a){var i=r.find(function(d){return d&&d.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return K(K(K({},a),lt(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,u=a.angle;return K(K(K({},a),lt(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return o5},$x=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(Jc(l),Jc(u)):l},[]);return o.length>0?o:t&&t.length&&ae(a)&&ae(i)?t.slice(a,i+1):[]};function l5(e){return e==="number"?[0,"auto"]:void 0}var Aj=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,l=$x(r,t);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(c,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var m=f===void 0?l:f;h=Rp(m,o.dataKey,a)}else h=f&&f[n]||l[n];return h?[].concat(Jc(c),[G3(u,h)]):c},[])},BA=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=fNe(i,n),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,d=$pe(o,l,u,c);if(d>=0&&u){var f=u[d]&&u[d].value,h=Aj(t,r,d,f),m=hNe(n,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:m}}return null},mNe=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,h=t.stackOffset,m=z3(d,i);return n.reduce(function(g,p){var v,y=p.type.defaultProps!==void 0?K(K({},p.type.defaultProps),p.props):p.props,x=y.type,w=y.dataKey,N=y.allowDataOverflow,j=y.allowDuplicatedCategory,S=y.scale,_=y.ticks,P=y.includeHidden,k=y[o];if(g[k])return g;var A=$x(t.data,{graphicalItems:a.filter(function(U){var q,ee=o in U.props?U.props[o]:(q=U.type.defaultProps)===null||q===void 0?void 0:q[o];return ee===k}),dataStartIndex:c,dataEndIndex:u}),C=A.length,T,E,O;B1e(y.domain,N,x)&&(T=Vw(y.domain,null,N),m&&(x==="number"||S!=="auto")&&(O=Sd(A,w,"category")));var D=l5(x);if(!T||T.length===0){var $,L=($=y.domain)!==null&&$!==void 0?$:D;if(w){if(T=Sd(A,w,x),x==="category"&&m){var M=Nee(T);j&&M?(E=T,T=Ng(0,C)):j||(T=lO(L,T,p).reduce(function(U,q){return U.indexOf(q)>=0?U:[].concat(Jc(U),[q])},[]))}else if(x==="category")j?T=T.filter(function(U){return U!==""&&!Ce(U)}):T=lO(L,T,p).reduce(function(U,q){return U.indexOf(q)>=0||q===""||Ce(q)?U:[].concat(Jc(U),[q])},[]);else if(x==="number"){var R=Fpe(A,a.filter(function(U){var q,ee,de=o in U.props?U.props[o]:(q=U.type.defaultProps)===null||q===void 0?void 0:q[o],ce="hide"in U.props?U.props.hide:(ee=U.type.defaultProps)===null||ee===void 0?void 0:ee.hide;return de===k&&(P||!ce)}),w,i,d);R&&(T=R)}m&&(x==="number"||S!=="auto")&&(O=Sd(A,w,"category"))}else m?T=Ng(0,C):l&&l[k]&&l[k].hasStack&&x==="number"?T=h==="expand"?[0,1]:q3(l[k].stackGroups,c,u):T=B3(A,a.filter(function(U){var q=o in U.props?U.props[o]:U.type.defaultProps[o],ee="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return q===k&&(P||!ee)}),x,d,!0);if(x==="number")T=Pj(f,T,k,i,_),L&&(T=Vw(L,T,N));else if(x==="category"&&L){var B=L,H=T.every(function(U){return B.indexOf(U)>=0});H&&(T=B)}}return K(K({},g),{},we({},k,K(K({},y),{},{axisType:i,domain:T,categoricalDomain:O,duplicateDomain:E,originalDomain:(v=y.domain)!==null&&v!==void 0?v:D,isCategorical:m,layout:d})))},{})},pNe=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,h=$x(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),m=h.length,g=z3(d,i),p=-1;return n.reduce(function(v,y){var x=y.type.defaultProps!==void 0?K(K({},y.type.defaultProps),y.props):y.props,w=x[o],N=l5("number");if(!v[w]){p++;var j;return g?j=Ng(0,m):l&&l[w]&&l[w].hasStack?(j=q3(l[w].stackGroups,c,u),j=Pj(f,j,w,i)):(j=Vw(N,B3(h,n.filter(function(S){var _,P,k=o in S.props?S.props[o]:(_=S.type.defaultProps)===null||_===void 0?void 0:_[o],A="hide"in S.props?S.props.hide:(P=S.type.defaultProps)===null||P===void 0?void 0:P.hide;return k===w&&!A}),"number",d),a.defaultProps.allowDataOverflow),j=Pj(f,j,w,i)),K(K({},v),{},we({},w,K(K({axisType:i},a.defaultProps),{},{hide:!0,orientation:cn(uNe,"".concat(i,".").concat(p%2),null),domain:j,originalDomain:N,isCategorical:g,layout:d})))}return v},{})},gNe=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,d=t.children,f="".concat(a,"Id"),h=un(d,i),m={};return h&&h.length?m=mNe(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(m=pNe(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),m},vNe=function(t){var r=Ja(t),n=ua(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:eS(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ug(r,n)}},zA=function(t){var r=t.children,n=t.defaultShowTooltip,a=Jr(r,Uc),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},xNe=function(t){return!t||!t.length?!1:t.some(function(r){var n=fa(r&&r.type);return n&&n.indexOf("Bar")>=0})},UA=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"}},yNe=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,c=l===void 0?{}:l,u=n.width,d=n.height,f=n.children,h=n.margin||{},m=Jr(f,Uc),g=Jr(f,xi),p=Object.keys(c).reduce(function(j,S){var _=c[S],P=_.orientation;return!_.mirror&&!_.hide?K(K({},j),{},we({},P,j[P]+_.width)):j},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(j,S){var _=o[S],P=_.orientation;return!_.mirror&&!_.hide?K(K({},j),{},we({},P,cn(j,"".concat(P))+_.height)):j},{top:h.top||0,bottom:h.bottom||0}),y=K(K({},v),p),x=y.bottom;m&&(y.bottom+=m.props.height||Uc.defaultProps.height),g&&r&&(y=Dpe(y,a,n,r));var w=u-y.left-y.right,N=d-y.top-y.bottom;return K(K({brushBottom:x},y),{},{width:Math.max(w,0),height:Math.max(N,0)})},bNe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},DS=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,h=function(y,x){var w=x.graphicalItems,N=x.stackGroups,j=x.offset,S=x.updateId,_=x.dataStartIndex,P=x.dataEndIndex,k=y.barSize,A=y.layout,C=y.barGap,T=y.barCategoryGap,E=y.maxBarSize,O=UA(A),D=O.numericAxisName,$=O.cateAxisName,L=xNe(w),M=[];return w.forEach(function(R,B){var H=$x(y.data,{graphicalItems:[R],dataStartIndex:_,dataEndIndex:P}),U=R.type.defaultProps!==void 0?K(K({},R.type.defaultProps),R.props):R.props,q=U.dataKey,ee=U.maxBarSize,de=U["".concat(D,"Id")],ce=U["".concat($,"Id")],G={},ie=c.reduce(function(jt,er){var Kt=x["".concat(er.axisType,"Map")],js=U["".concat(er.axisType,"Id")];Kt&&Kt[js]||er.axisType==="zAxis"||Uo();var Ns=Kt[js];return K(K({},jt),{},we(we({},er.axisType,Ns),"".concat(er.axisType,"Ticks"),ua(Ns)))},G),X=ie[$],te=ie["".concat($,"Ticks")],Z=N&&N[de]&&N[de].hasStack&&Kpe(R,N[de].stackGroups),F=fa(R.type).indexOf("Bar")>=0,me=ug(X,te),pe=[],Y=L&&Mpe({barSize:k,stackGroups:N,totalSize:bNe(ie,$)});if(F){var he,_e,We=Ce(ee)?E:ee,Fe=(he=(_e=ug(X,te,!0))!==null&&_e!==void 0?_e:We)!==null&&he!==void 0?he:0;pe=Rpe({barGap:C,barCategoryGap:T,bandSize:Fe!==me?Fe:me,sizeList:Y[ce],maxBarSize:We}),Fe!==me&&(pe=pe.map(function(jt){return K(K({},jt),{},{position:K(K({},jt.position),{},{offset:jt.position.offset-Fe/2})})}))}var Et=R&&R.type&&R.type.getComposedData;Et&&M.push({props:K(K({},Et(K(K({},ie),{},{displayedData:H,props:y,dataKey:q,item:R,bandSize:me,barPosition:pe,offset:j,stackedData:Z,layout:A,dataStartIndex:_,dataEndIndex:P}))),{},we(we(we({key:R.key||"item-".concat(B)},D,ie[D]),$,ie[$]),"animationId",S)),childIndex:Ree(R,y.children),item:R})}),M},m=function(y,x){var w=y.props,N=y.dataStartIndex,j=y.dataEndIndex,S=y.updateId;if(!tP({props:w}))return null;var _=w.children,P=w.layout,k=w.stackOffset,A=w.data,C=w.reverseStackOrder,T=UA(P),E=T.numericAxisName,O=T.cateAxisName,D=un(_,n),$=qpe(A,D,"".concat(E,"Id"),"".concat(O,"Id"),k,C),L=c.reduce(function(U,q){var ee="".concat(q.axisType,"Map");return K(K({},U),{},we({},ee,gNe(w,K(K({},q),{},{graphicalItems:D,stackGroups:q.axisType===E&&$,dataStartIndex:N,dataEndIndex:j}))))},{}),M=yNe(K(K({},L),{},{props:w,graphicalItems:D}),x==null?void 0:x.legendBBox);Object.keys(L).forEach(function(U){L[U]=d(w,L[U],M,U.replace("Map",""),r)});var R=L["".concat(O,"Map")],B=vNe(R),H=h(w,K(K({},L),{},{dataStartIndex:N,dataEndIndex:j,updateId:S,graphicalItems:D,stackGroups:$,offset:M}));return K(K({formattedGraphicalItems:H,graphicalItems:D,offset:M,stackGroups:$},B),L)},g=function(v){function y(x){var w,N,j;return Z1e(this,y),j=rNe(this,y,[x]),we(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),we(j,"accessibilityManager",new F1e),we(j,"handleLegendBBoxUpdate",function(S){if(S){var _=j.state,P=_.dataStartIndex,k=_.dataEndIndex,A=_.updateId;j.setState(K({legendBBox:S},m({props:j.props,dataStartIndex:P,dataEndIndex:k,updateId:A},K(K({},j.state),{},{legendBBox:S}))))}}),we(j,"handleReceiveSyncEvent",function(S,_,P){if(j.props.syncId===S){if(P===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(_)}}),we(j,"handleBrushChange",function(S){var _=S.startIndex,P=S.endIndex;if(_!==j.state.dataStartIndex||P!==j.state.dataEndIndex){var k=j.state.updateId;j.setState(function(){return K({dataStartIndex:_,dataEndIndex:P},m({props:j.props,dataStartIndex:_,dataEndIndex:P,updateId:k},j.state))}),j.triggerSyncEvent({dataStartIndex:_,dataEndIndex:P})}}),we(j,"handleMouseEnter",function(S){var _=j.getMouseInfo(S);if(_){var P=K(K({},_),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var k=j.props.onMouseEnter;Se(k)&&k(P,S)}}),we(j,"triggeredAfterMouseMove",function(S){var _=j.getMouseInfo(S),P=_?K(K({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(P),j.triggerSyncEvent(P);var k=j.props.onMouseMove;Se(k)&&k(P,S)}),we(j,"handleItemMouseEnter",function(S){j.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),we(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),we(j,"handleMouseMove",function(S){S.persist(),j.throttleTriggeredAfterMouseMove(S)}),we(j,"handleMouseLeave",function(S){j.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};j.setState(_),j.triggerSyncEvent(_);var P=j.props.onMouseLeave;Se(P)&&P(_,S)}),we(j,"handleOuterEvent",function(S){var _=Mee(S),P=cn(j.props,"".concat(_));if(_&&Se(P)){var k,A;/.*touch.*/i.test(_)?A=j.getMouseInfo(S.changedTouches[0]):A=j.getMouseInfo(S),P((k=A)!==null&&k!==void 0?k:{},S)}}),we(j,"handleClick",function(S){var _=j.getMouseInfo(S);if(_){var P=K(K({},_),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var k=j.props.onClick;Se(k)&&k(P,S)}}),we(j,"handleMouseDown",function(S){var _=j.props.onMouseDown;if(Se(_)){var P=j.getMouseInfo(S);_(P,S)}}),we(j,"handleMouseUp",function(S){var _=j.props.onMouseUp;if(Se(_)){var P=j.getMouseInfo(S);_(P,S)}}),we(j,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),we(j,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&j.handleMouseDown(S.changedTouches[0])}),we(j,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&j.handleMouseUp(S.changedTouches[0])}),we(j,"handleDoubleClick",function(S){var _=j.props.onDoubleClick;if(Se(_)){var P=j.getMouseInfo(S);_(P,S)}}),we(j,"handleContextMenu",function(S){var _=j.props.onContextMenu;if(Se(_)){var P=j.getMouseInfo(S);_(P,S)}}),we(j,"triggerSyncEvent",function(S){j.props.syncId!==void 0&&_b.emit(kb,j.props.syncId,S,j.eventEmitterSymbol)}),we(j,"applySyncEvent",function(S){var _=j.props,P=_.layout,k=_.syncMethod,A=j.state.updateId,C=S.dataStartIndex,T=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)j.setState(K({dataStartIndex:C,dataEndIndex:T},m({props:j.props,dataStartIndex:C,dataEndIndex:T,updateId:A},j.state)));else if(S.activeTooltipIndex!==void 0){var E=S.chartX,O=S.chartY,D=S.activeTooltipIndex,$=j.state,L=$.offset,M=$.tooltipTicks;if(!L)return;if(typeof k=="function")D=k(M,S);else if(k==="value"){D=-1;for(var R=0;R<M.length;R++)if(M[R].value===S.activeLabel){D=R;break}}var B=K(K({},L),{},{x:L.left,y:L.top}),H=Math.min(E,B.x+B.width),U=Math.min(O,B.y+B.height),q=M[D]&&M[D].value,ee=Aj(j.state,j.props.data,D),de=M[D]?{x:P==="horizontal"?M[D].coordinate:H,y:P==="horizontal"?U:M[D].coordinate}:o5;j.setState(K(K({},S),{},{activeLabel:q,activeCoordinate:de,activePayload:ee,activeTooltipIndex:D}))}else j.setState(S)}),we(j,"renderCursor",function(S){var _,P=j.state,k=P.isTooltipActive,A=P.activeCoordinate,C=P.activePayload,T=P.offset,E=P.activeTooltipIndex,O=P.tooltipAxisBandSize,D=j.getTooltipEventType(),$=(_=S.props.active)!==null&&_!==void 0?_:k,L=j.props.layout,M=S.key||"_recharts-cursor";return I.createElement(q1e,{key:M,activeCoordinate:A,activePayload:C,activeTooltipIndex:E,chartName:r,element:S,isActive:$,layout:L,offset:T,tooltipAxisBandSize:O,tooltipEventType:D})}),we(j,"renderPolarAxis",function(S,_,P){var k=cn(S,"type.axisType"),A=cn(j.state,"".concat(k,"Map")),C=S.type.defaultProps,T=C!==void 0?K(K({},C),S.props):S.props,E=A&&A[T["".concat(k,"Id")]];return b.cloneElement(S,K(K({},E),{},{className:Ae(k,E.className),key:S.key||"".concat(_,"-").concat(P),ticks:ua(E,!0)}))}),we(j,"renderPolarGrid",function(S){var _=S.props,P=_.radialLines,k=_.polarAngles,A=_.polarRadius,C=j.state,T=C.radiusAxisMap,E=C.angleAxisMap,O=Ja(T),D=Ja(E),$=D.cx,L=D.cy,M=D.innerRadius,R=D.outerRadius;return b.cloneElement(S,{polarAngles:Array.isArray(k)?k:ua(D,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(A)?A:ua(O,!0).map(function(B){return B.coordinate}),cx:$,cy:L,innerRadius:M,outerRadius:R,key:S.key||"polar-grid",radialLines:P})}),we(j,"renderLegend",function(){var S=j.state.formattedGraphicalItems,_=j.props,P=_.children,k=_.width,A=_.height,C=j.props.margin||{},T=k-(C.left||0)-(C.right||0),E=L3({children:P,formattedGraphicalItems:S,legendWidth:T,legendContent:u});if(!E)return null;var O=E.item,D=LA(E,G1e);return b.cloneElement(O,K(K({},D),{},{chartWidth:k,chartHeight:A,margin:C,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),we(j,"renderTooltip",function(){var S,_=j.props,P=_.children,k=_.accessibilityLayer,A=Jr(P,dr);if(!A)return null;var C=j.state,T=C.isTooltipActive,E=C.activeCoordinate,O=C.activePayload,D=C.activeLabel,$=C.offset,L=(S=A.props.active)!==null&&S!==void 0?S:T;return b.cloneElement(A,{viewBox:K(K({},$),{},{x:$.left,y:$.top}),active:L,label:D,payload:L?O:[],coordinate:E,accessibilityLayer:k})}),we(j,"renderBrush",function(S){var _=j.props,P=_.margin,k=_.data,A=j.state,C=A.offset,T=A.dataStartIndex,E=A.dataEndIndex,O=A.updateId;return b.cloneElement(S,{key:S.key||"_recharts-brush",onChange:bm(j.handleBrushChange,S.props.onChange),data:k,x:ae(S.props.x)?S.props.x:C.left,y:ae(S.props.y)?S.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:ae(S.props.width)?S.props.width:C.width,startIndex:T,endIndex:E,updateId:"brush-".concat(O)})}),we(j,"renderReferenceElement",function(S,_,P){if(!S)return null;var k=j,A=k.clipPathId,C=j.state,T=C.xAxisMap,E=C.yAxisMap,O=C.offset,D=S.type.defaultProps||{},$=S.props,L=$.xAxisId,M=L===void 0?D.xAxisId:L,R=$.yAxisId,B=R===void 0?D.yAxisId:R;return b.cloneElement(S,{key:S.key||"".concat(_,"-").concat(P),xAxis:T[M],yAxis:E[B],viewBox:{x:O.left,y:O.top,width:O.width,height:O.height},clipPathId:A})}),we(j,"renderActivePoints",function(S){var _=S.item,P=S.activePoint,k=S.basePoint,A=S.childIndex,C=S.isRange,T=[],E=_.props.key,O=_.item.type.defaultProps!==void 0?K(K({},_.item.type.defaultProps),_.item.props):_.item.props,D=O.activeDot,$=O.dataKey,L=K(K({index:A,dataKey:$,cx:P.x,cy:P.y,r:4,fill:kS(_.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},be(D,!1)),Dp(D));return T.push(y.renderActiveDot(D,L,"".concat(E,"-activePoint-").concat(A))),k?T.push(y.renderActiveDot(D,K(K({},L),{},{cx:k.x,cy:k.y}),"".concat(E,"-basePoint-").concat(A))):C&&T.push(null),T}),we(j,"renderGraphicChild",function(S,_,P){var k=j.filterFormatItem(S,_,P);if(!k)return null;var A=j.getTooltipEventType(),C=j.state,T=C.isTooltipActive,E=C.tooltipAxis,O=C.activeTooltipIndex,D=C.activeLabel,$=j.props.children,L=Jr($,dr),M=k.props,R=M.points,B=M.isRange,H=M.baseLine,U=k.item.type.defaultProps!==void 0?K(K({},k.item.type.defaultProps),k.item.props):k.item.props,q=U.activeDot,ee=U.hide,de=U.activeBar,ce=U.activeShape,G=!!(!ee&&T&&L&&(q||de||ce)),ie={};A!=="axis"&&L&&L.props.trigger==="click"?ie={onClick:bm(j.handleItemMouseEnter,S.props.onClick)}:A!=="axis"&&(ie={onMouseLeave:bm(j.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:bm(j.handleItemMouseEnter,S.props.onMouseEnter)});var X=b.cloneElement(S,K(K({},k.props),ie));function te(er){return typeof E.dataKey=="function"?E.dataKey(er.payload):null}if(G)if(O>=0){var Z,F;if(E.dataKey&&!E.allowDuplicatedCategory){var me=typeof E.dataKey=="function"?te:"payload.".concat(E.dataKey.toString());Z=Rp(R,me,D),F=B&&H&&Rp(H,me,D)}else Z=R==null?void 0:R[O],F=B&&H&&H[O];if(ce||de){var pe=S.props.activeIndex!==void 0?S.props.activeIndex:O;return[b.cloneElement(S,K(K(K({},k.props),ie),{},{activeIndex:pe})),null,null]}if(!Ce(Z))return[X].concat(Jc(j.renderActivePoints({item:k,activePoint:Z,basePoint:F,childIndex:O,isRange:B})))}else{var Y,he=(Y=j.getItemByXY(j.state.activeCoordinate))!==null&&Y!==void 0?Y:{graphicalItem:X},_e=he.graphicalItem,We=_e.item,Fe=We===void 0?S:We,Et=_e.childIndex,jt=K(K(K({},k.props),ie),{},{activeIndex:Et});return[b.cloneElement(Fe,jt),null,null]}return B?[X,null,null]:[X,null]}),we(j,"renderCustomized",function(S,_,P){return b.cloneElement(S,K(K({key:"recharts-customized-".concat(P)},j.props),j.state))}),we(j,"renderMap",{CartesianGrid:{handler:_m,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:_m},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:_m},YAxis:{handler:_m},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:bu("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=DD(j.triggeredAfterMouseMove,(N=x.throttleDelay)!==null&&N!==void 0?N:1e3/60),j.state={},j}return aNe(y,v),tNe(y,[{key:"componentDidMount",value:function(){var w,N;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,N=w.children,j=w.data,S=w.height,_=w.layout,P=Jr(N,dr);if(P){var k=P.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,C=Aj(this.state,j,k,A),T=this.state.tooltipTicks[k].coordinate,E=(this.state.offset.top+S)/2,O=_==="horizontal",D=O?{x:T,y:E}:{y:T,x:E},$=this.state.formattedGraphicalItems.find(function(M){var R=M.item;return R.type.name==="Scatter"});$&&(D=K(K({},D),$.props.points[k].tooltipPosition),C=$.props.points[k].tooltipPayload);var L={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:A,activePayload:C,activeCoordinate:D};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,N){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==N.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var j,S;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(w){aw([Jr(w.children,dr)],[Jr(this.props.children,dr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Jr(this.props.children,dr);if(w&&typeof w.props.shared=="boolean"){var N=w.props.shared?"axis":"item";return l.indexOf(N)>=0?N:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var N=this.container,j=N.getBoundingClientRect(),S=lde(j),_={chartX:Math.round(w.pageX-S.left),chartY:Math.round(w.pageY-S.top)},P=j.width/N.offsetWidth||1,k=this.inRange(_.chartX,_.chartY,P);if(!k)return null;var A=this.state,C=A.xAxisMap,T=A.yAxisMap,E=this.getTooltipEventType(),O=BA(this.state,this.props.data,this.props.layout,k);if(E!=="axis"&&C&&T){var D=Ja(C).scale,$=Ja(T).scale,L=D&&D.invert?D.invert(_.chartX):null,M=$&&$.invert?$.invert(_.chartY):null;return K(K({},_),{},{xValue:L,yValue:M},O)}return O?K(K({},_),O):null}},{key:"inRange",value:function(w,N){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,_=w/j,P=N/j;if(S==="horizontal"||S==="vertical"){var k=this.state.offset,A=_>=k.left&&_<=k.left+k.width&&P>=k.top&&P<=k.top+k.height;return A?{x:_,y:P}:null}var C=this.state,T=C.angleAxisMap,E=C.radiusAxisMap;if(T&&E){var O=Ja(T);return dO({x:_,y:P},O)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,N=this.getTooltipEventType(),j=Jr(w,dr),S={};j&&N==="axis"&&(j.props.trigger==="click"?S={onClick:this.handleClick}:S={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 _=Dp(this.props,this.handleOuterEvent);return K(K({},_),S)}},{key:"addListener",value:function(){_b.on(kb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){_b.removeListener(kb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,N,j){for(var S=this.state.formattedGraphicalItems,_=0,P=S.length;_<P;_++){var k=S[_];if(k.item===w||k.props.key===w.key||N===fa(k.item.type)&&j===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,N=this.state.offset,j=N.left,S=N.top,_=N.height,P=N.width;return I.createElement("defs",null,I.createElement("clipPath",{id:w},I.createElement("rect",{x:j,y:S,height:_,width:P})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(N,j){var S=DA(j,2),_=S[0],P=S[1];return K(K({},N),{},we({},_,P.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(N,j){var S=DA(j,2),_=S[0],P=S[1];return K(K({},N),{},we({},_,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var N;return(N=this.state.xAxisMap)===null||N===void 0||(N=N[w])===null||N===void 0?void 0:N.scale}},{key:"getYScaleByAxisId",value:function(w){var N;return(N=this.state.yAxisMap)===null||N===void 0||(N=N[w])===null||N===void 0?void 0:N.scale}},{key:"getItemByXY",value:function(w){var N=this.state,j=N.formattedGraphicalItems,S=N.activeItem;if(j&&j.length)for(var _=0,P=j.length;_<P;_++){var k=j[_],A=k.props,C=k.item,T=C.type.defaultProps!==void 0?K(K({},C.type.defaultProps),C.props):C.props,E=fa(C.type);if(E==="Bar"){var O=(A.data||[]).find(function(M){return Vxe(w,M)});if(O)return{graphicalItem:k,payload:O}}else if(E==="RadialBar"){var D=(A.data||[]).find(function(M){return dO(w,M)});if(D)return{graphicalItem:k,payload:D}}else if(Px(k,S)||Cx(k,S)||$f(k,S)){var $=Tbe({graphicalItem:k,activeTooltipItem:S,itemData:T.data}),L=T.activeIndex===void 0?$:T.activeIndex;return{graphicalItem:K(K({},k),{},{childIndex:L}),payload:$f(k,S)?T.data[$]:k.props.data[$]}}}return null}},{key:"render",value:function(){var w=this;if(!tP(this))return null;var N=this.props,j=N.children,S=N.className,_=N.width,P=N.height,k=N.style,A=N.compact,C=N.title,T=N.desc,E=LA(N,K1e),O=be(E,!1);if(A)return I.createElement(yA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(ow,Ul({},O,{width:_,height:P,title:C,desc:T}),this.renderClipPath(),nP(j,this.renderMap)));if(this.props.accessibilityLayer){var D,$;O.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,O.role=($=this.props.role)!==null&&$!==void 0?$:"application",O.onKeyDown=function(M){w.accessibilityManager.keyboardEvent(M)},O.onFocus=function(){w.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return I.createElement(yA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",Ul({className:Ae("recharts-wrapper",S),style:K({position:"relative",cursor:"default",width:_,height:P},k)},L,{ref:function(R){w.container=R}}),I.createElement(ow,Ul({},O,{width:_,height:P,title:C,desc:T,style:dNe}),this.renderClipPath(),nP(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(b.Component);we(g,"displayName",r),we(g,"defaultProps",K({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),we(g,"getDerivedStateFromProps",function(v,y){var x=v.dataKey,w=v.data,N=v.children,j=v.width,S=v.height,_=v.layout,P=v.stackOffset,k=v.margin,A=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var T=zA(v);return K(K(K({},T),{},{updateId:0},m(K(K({props:v},T),{},{updateId:0}),y)),{},{prevDataKey:x,prevData:w,prevWidth:j,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:k,prevChildren:N})}if(x!==y.prevDataKey||w!==y.prevData||j!==y.prevWidth||S!==y.prevHeight||_!==y.prevLayout||P!==y.prevStackOffset||!tc(k,y.prevMargin)){var E=zA(v),O={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},D=K(K({},BA(y,w,_)),{},{updateId:y.updateId+1}),$=K(K(K({},E),O),D);return K(K(K({},$),m(K({props:v},$),y)),{},{prevDataKey:x,prevData:w,prevWidth:j,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:k,prevChildren:N})}if(!aw(N,y.prevChildren)){var L,M,R,B,H=Jr(N,Uc),U=H&&(L=(M=H.props)===null||M===void 0?void 0:M.startIndex)!==null&&L!==void 0?L:A,q=H&&(R=(B=H.props)===null||B===void 0?void 0:B.endIndex)!==null&&R!==void 0?R:C,ee=U!==A||q!==C,de=!Ce(w),ce=de&&!ee?y.updateId:y.updateId+1;return K(K({updateId:ce},m(K(K({props:v},y),{},{updateId:ce,dataStartIndex:U,dataEndIndex:q}),y)),{},{prevChildren:N,dataStartIndex:U,dataEndIndex:q})}return null}),we(g,"renderActiveDot",function(v,y,x){var w;return b.isValidElement(v)?w=b.cloneElement(v,y):Se(v)?w=v(y):w=I.createElement(jx,y),I.createElement(ze,{className:"recharts-active-dot",key:x},w)});var p=b.forwardRef(function(y,x){return I.createElement(g,Ul({},y,{ref:x}))});return p.displayName=g.displayName,p},Dg=DS({chartName:"LineChart",GraphicalChild:is,axisComponents:[{axisType:"xAxis",AxisComp:On},{axisType:"yAxis",AxisComp:An}],formatAxisMap:PL}),Mx=DS({chartName:"BarChart",GraphicalChild:Or,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:On},{axisType:"yAxis",AxisComp:An}],formatAxisMap:PL}),wNe=DS({chartName:"PieChart",GraphicalChild:Ea,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:kx},{axisType:"radiusAxis",AxisComp:Sx}],formatAxisMap:sge,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}
612);const jNe=[{name:"TechCorp",advocates:7,neutral:3,skeptics:2},{name:"DataFlow Inc",advocates:5,neutral:4,skeptics:1},{name:"CloudSys",advocates:8,neutral:2,skeptics:1},{name:"AutomateNow",advocates:4,neutral:5,skeptics:3}],NNe=[{month:"Jan",opportunities:12,signed:8},{month:"Feb",opportunities:15,signed:10},{month:"Mar",opportunities:18,signed:12},{month:"Apr",opportunities:22,signed:15}],SNe=[{type:"risk",icon:As,title:"3 influential skeptics at TechCorp need attention",description:"CFO and VP Operations showing resistance to automation initiative",action:"Schedule 1:1 stakeholder calls this week",cta:"View Stakeholders",color:"destructive"},{type:"opportunity",icon:qe,title:"DataFlow Inc ready to expand scope",description:"8/10 stakeholders are advocates. CEO mentioned budget for Q2 expansion",action:"Prepare upsell proposal with 3 additional use cases",cta:"Build Proposal",color:"chart-2"},{type:"success",icon:Yl,title:"CloudSys project signed off",description:"All decision-makers approved. Implementation starts next week",action:"Send onboarding materials and schedule kickoff",cta:"Start Project",color:"primary"}],_Ne=()=>s.jsxs("div",{className:"bg-background p-6 space-y-6",children:[s.jsx("div",{className:"absolute top-4 right-4 z-10",children:s.jsx(ue,{variant:"outline",className:"bg-background/95 backdrop-blur",children:"Preview Mode"})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Active Accounts"}),s.jsx(bt,{className:"h-4 w-4 text-muted-foreground"})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:"24"}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(qe,{className:"h-3 w-3 text-chart-2"}),s.jsx("span",{className:"text-chart-2",children:"+3 this month"})]})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Open Opportunities"}),s.jsx(LU,{className:"h-4 w-4 text-muted-foreground"})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:"18"}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(qe,{className:"h-3 w-3 text-primary"}),s.jsx("span",{className:"text-primary",children:"+22% vs last month"})]})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"At-Risk Stakeholders"}),s.jsx(As,{className:"h-4 w-4 text-muted-foreground"})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:"6"}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(dv,{className:"h-3 w-3 text-destructive"}),s.jsx("span",{className:"text-destructive",children:"Needs attention"})]})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Projects Signed Off"}),s.jsx(Mt,{className:"h-4 w-4 text-muted-foreground"})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:"12"}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(Sn,{className:"h-3 w-3 text-muted-foreground"}),s.jsx("span",{children:"This quarter"})]})]})]})]}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Stakeholder Buy-In by Account"})}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:250,children:s.jsxs(Mx,{data:jNe,children:[s.jsx(pa,{strokeDasharray:"3 3",className:"stroke-muted"}),s.jsx(On,{dataKey:"name",className:"text-xs"}),s.jsx(An,{className:"text-xs"}),s.jsx(dr,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),s.jsx(Or,{dataKey:"advocates",stackId:"a",fill:"hsl(var(--primary))",name:"Advocates"}),s.jsx(Or,{dataKey:"neutral",stackId:"a",fill:"hsl(var(--muted))",name:"Neutral"}),s.jsx(Or,{dataKey:"skeptics",stackId:"a",fill:"hsl(var(--destructive))",name:"Skeptics"})]})})})]}),s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Opportunity Pipeline Trend"})}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:250,children:s.jsxs(Dg,{data:NNe,children:[s.jsx(pa,{strokeDasharray:"3 3",className:"stroke-muted"}),s.jsx(On,{dataKey:"month",className:"text-xs"}),s.jsx(An,{className:"text-xs"}),s.jsx(dr,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"6px"}}),s.jsx(is,{type:"monotone",dataKey:"opportunities",stroke:"hsl(var(--chart-2))",strokeWidth:2,name:"Opportunities"}),s.jsx(is,{type:"monotone",dataKey:"signed",stroke:"hsl(var(--primary))",strokeWidth:2,name:"Signed"})]})})})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold",children:"AI-Generated Action Insights"}),s.jsx(ue,{variant:"secondary",children:"Updated 2 hours ago"})]}),s.jsx("div",{className:"grid gap-4",children:SNe.map((e,t)=>{const r=e.icon;return s.jsx(z,{className:`border-l-4 border-l-${e.color}`,children:s.jsx(V,{className:"p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:`p-2 rounded-lg bg-${e.color}/10`,children:s.jsx(r,{className:`h-5 w-5 text-${e.color}`})}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-start justify-between gap-4 mb-2",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:e.title}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),s.jsxs("p",{className:"text-sm font-medium text-foreground",children:["💡 ",e.action]})]}),s.jsx(W,{size:"sm",className:"cursor-not-allowed flex-shrink-0",children:e.cta})]})})]})})},t)})})]})]}),De=b.forwardRef(({className:e,type:t,...r},n)=>s.jsx("input",{type:t,className:J("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}));De.displayName="Input";const kNe="/assets/avatar-emily-BeWV9TC2.jpg",PNe="/assets/avatar-michael-CSn8Iz6R.jpg",CNe="/assets/avatar-david-CJpWazWm.jpg",ONe="/assets/avatar-lisa-D5-LkUde.jpg",ANe="/assets/avatar-robert-C3Y2i8ay.jpg",ENe="/assets/avatar-priya-BORtI0Jx.jpg",TNe=[{id:1,name:"Emily Torres",title:"VP of Digital Transformation",avatar:kNe,influence:9,interest:8,role:"champion",personality:"Visionary",notes:"Strong advocate for automation initiatives. Budget owner for digital transformation.",company:"TechCorp"}
612,{id:2,name:"Michael Chen",title:"Operations Director",avatar:PNe,influence:7,interest:9,role:"champion",personality:"Analytical",notes:"Sees ROI potential in process improvements. Needs data to support decisions.",company:"DataFlow Inc"},{id:3,name:"David Thompson",title:"CFO",avatar:CNe,influence:9,interest:4,role:"skeptic",personality:"Driver",notes:"Concerned about implementation costs. Wants clear ROI projections.",company:"TechCorp"},{id:4,name:"Lisa Martinez",title:"IT Program Manager",avatar:ONe,influence:5,interest:7,role:"neutral",personality:"Amiable",notes:"Supportive but concerned about team capacity during rollout.",company:"CloudSys"},{id:5,name:"Robert Hassan",title:"VP of Operations",avatar:ANe,influence:8,interest:5,role:"skeptic",personality:"Expressive",notes:"Burned by previous automation projects. Needs proof of concept.",company:"TechCorp"},{id:6,name:"Priya Sharma",title:"CTO",avatar:ENe,influence:10,interest:8,role:"champion",personality:"Analytical",notes:"Technical champion. Evaluating solution architecture and scalability.",company:"DataFlow Inc"}],INe=e=>{switch(e){case"champion":return"default";case"neutral":return"secondary";case"skeptic":return"destructive";default:return"outline"}},$Ne=()=>s.jsxs("div",{className:"bg-background p-6 space-y-6",children:[s.jsx("div",{className:"absolute top-4 right-4 z-10",children:s.jsx(ue,{variant:"outline",className:"bg-background/95 backdrop-blur",children:"Preview Mode"})}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(au,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(De,{placeholder:"Search stakeholders...",className:"pl-10 cursor-not-allowed",disabled:!0})]}),s.jsxs(W,{variant:"outline",className:"cursor-not-allowed",children:[s.jsx(H1,{className:"mr-2 h-4 w-4"}),"Filter"]}),s.jsxs(W,{className:"cursor-not-allowed",children:[s.jsx(wc,{className:"mr-2 h-4 w-4"}),"Add Stakeholder"]})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsx(z,{children:s.jsxs(V,{className:"p-4",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"3"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Champions"})]})}),s.jsx(z,{children:s.jsxs(V,{className:"p-4",children:[s.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:"1"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Neutral"})]})}),s.jsx(z,{children:s.jsxs(V,{className:"p-4",children:[s.jsx("div",{className:"text-2xl font-bold text-destructive",children:"2"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Skeptics"})]})})]}),s.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:TNe.map(e=>s.jsxs(z,{className:"hover:shadow-lg transition-shadow",children:[s.jsx(oe,{className:"pb-3",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsxs(Bv,{className:"h-16 w-16",children:[s.jsx(CN,{src:e.avatar,alt:e.name}),s.jsx(zv,{children:e.name.split(" ").map(t=>t[0]).join("")})]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx(le,{className:"text-lg mb-1",children:e.name}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:e.title}),s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx(ue,{variant:INe(e.role),children:e.role}),s.jsx(ue,{variant:"outline",children:e.personality}),s.jsx("span",{className:"text-xs text-muted-foreground",children:e.company})]})]})]})}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium",children:"Influence"}),s.jsxs("span",{className:"text-sm font-bold",children:[e.influence,"/10"]})]}),s.jsx(vs,{value:e.influence*10})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium",children:"Interest"}),s.jsxs("span",{className:"text-sm font-bold",children:[e.interest,"/10"]})]}),s.jsx(vs,{value:e.interest*10})]}),s.jsx("div",{className:"pt-2 border-t",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:e.notes})}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(W,{size:"sm",variant:"outline",className:"flex-1 cursor-not-allowed",children:"View Details"}),s.jsx(W,{size:"sm",className:"flex-1 cursor-not-allowed",children:"Update Status"})]})]})]},e.id))}),s.jsxs(z,{className:"bg-primary/5 border-primary/20",children:[s.jsx(oe,{children:s.jsx(le,{className:"text-base",children:"AI Strategic Recommendations"})}),s.jsxs(V,{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-2 h-2 bg-destructive rounded-full mt-2"}),s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Priority Action:"})," Schedule 1:1s with David Thompson and Robert Hassan to address their concerns before proposal presentation."]})]}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-2"}),s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Leverage Champions:"})," Emily Torres and Priya Sharma can influence skeptics. Consider joint presentation strategy."]})]}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-2 h-2 bg-chart-2 rounded-full mt-2"}),s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Messaging Strategy:"})," Lead with ROI data for David, proof of concept for Robert, technical scalability for Priya."]})]})]})]})]}),WA=[{id:"discovery",icon:Si,title:"Discovery Call Analysis",description:"Upload recordings or transcripts. AI analyzes pain points, goals, and opportunities in minutes.",component:UX,benefits:["Auto-tagged transcript segments","Lean thinking insights","Change management recommendations","Export directly to proposals"]},{id:"dashboard",icon:th,title:"Client Engagement Dashboard",description:"Track client engagement across buy-in, opportunities, and deal progress with AI-powered insights.",component:_Ne,benefits:["Real-time stakeholder advocacy vs skepticism tracking","Opportunity pipeline with conversion metrics","AI-generated action insights and next steps","Portfolio-wide engagement analytics"]},{id:"stakeholders",icon:bt,title:"Stakeholder Mapping",description:"Track influence, interest, and engagement for every decision-maker in your accounts.",component:$Ne,benefits:["Influence & interest scoring","Champion identification","Messaging strategy recommendations","Decision maker tracking"]}],MNe=()=>{const e=gt();return s.jsx("section",{className:"py-24 bg-background",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 mb-4",children:[s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full animate-pulse"}),s.jsx("span",{className:"text-sm font-medium",children:"Live in Beta"})]}),s.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:["Inside Your ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Clientli Portal"})]}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"See exactly what you get when you sign up. Upload your first discovery call and watch the AI work."})]}),s.jsxs(gs,{defaultValue:"discovery",className:"w-full",children:[s.jsx(In,{className:"grid w-full grid-cols-3 max-w-2xl mx-auto mb-8",children:WA.map(t=>s.jsxs(Ve,{value:t.id,className:"flex items-center gap-2",children:[s.jsx(t.icon,{className:"w-4 h-4"}),s.jsx("span",{className:"hidden sm:inline",children:t.title.split(" ")[0]})]},t.id))}),WA.map(t=>{const r=t.component;return s.jsxs(He,{value:t.id,className:"space-y-8",children:[s.jsx("div",{className:"relative rounded-xl overflow-hidden shadow-elegant border bg-background",children:s.jsx(r,{})}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-2xl font-bold mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground mb-6",children:t.description}),s.jsxs(W,{size:"lg",className:"group",onClick:()=>e("/auth"),children:["Start Using This Now",s.jsx(Ht,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h4",{className:"font-semibold text-lg mb-4",children:"What You Get:"}),t.benefits.map((n,a)=>s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-5 h-5 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full"})}),s.jsx("span",{className:"text-muted-foreground",children:n})]},a))]})]})]},t.id)})]}),s.jsxs("div",{className:"mt-16 text-center",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Join 80+ consultants already using Clientli to close deals faster"}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-8 md:gap-12",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold",children:"50%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Time Saved on Proposals"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold",children:"7X"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Average ROI Generated"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold",children:"4.8★"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Client Satisfaction"})]})]})]})]})})},RNe="/assets/hero-value-tied-pricing-DljmnDDa.png",DNe="/assets/hero-gtm-engine-CBVikzO-.png",LNe=[{icon:"⚡",title:"Proposal Acceleration",pain:"Proposals eat 20–40 hours and still feel generic.",solution:"Clientli analyses discovery calls and client data to draft personalised proposals in minutes, not days.",outcome:"Win more work without drowning in proposal writing."},{icon:"🎯",title:"Value-Tied Pricing",pain:"Pricing feels misaligned — clients push back, margins leak.",solution:"Surface customised quick wins tied to each client's unique pains, so you can anchor your fees to measurable outcomes.",outcome:"Pricing that clients trust, margins you can defend."},{icon:"🔁",title:"Repeatable GTM Engine",pain:"Sales pipelines collapse without referrals or founder hustle.",solution:"Clientli builds a repeatable, de-risked GTM motion with consistent proposals, pricing, and outreach — still personalised to each client.",outcome:"Predictable growth without fragile pipelines."}],FNe=()=>s.jsx("section",{id:"features",className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:["Why Choose ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Clientli"})]})}),s.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-3 gap-8 mb-12",children:LNe.map((e,t)=>s.jsxs("div",{className:"group relative p-8 rounded-xl bg-card border shadow-card hover:shadow-elegant transition-all duration-300 hover:scale-105 flex flex-col",children:[s.jsx("div",{className:"mb-6",children:s.jsx("div",{className:"w-14 h-14 roun
612ded-lg bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary/20 transition-colors",children:s.jsx("span",{className:"text-2xl",children:e.icon})})}),s.jsxs("div",{className:"mb-6 flex-1 flex items-center justify-center",children:[t===0&&s.jsxs("div",{className:"w-full max-w-xs",children:[s.jsx("img",{src:RNe,alt:"Proposal Acceleration Dashboard",className:"w-full h-auto rounded-lg border shadow-sm"}),s.jsx("div",{className:"text-center mt-2 text-xs text-green-600 font-medium",children:"AI Discovery Active"})]}),t===1&&s.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg border p-4 w-full max-w-xs",children:[s.jsxs("div",{className:"text-center mb-3",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"$1.2M"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Annual Savings Potential"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between text-xs",children:[s.jsx("span",{children:"Efficiency Gains"}),s.jsx("span",{className:"text-green-600 font-medium",children:"34%"})]}),s.jsxs("div",{className:"flex justify-between text-xs",children:[s.jsx("span",{children:"ROI Projection"}),s.jsx("span",{className:"text-blue-600 font-medium",children:"245%"})]}),s.jsxs("div",{className:"flex justify-between text-xs",children:[s.jsx("span",{children:"Payback Period"}),s.jsx("span",{className:"text-purple-600 font-medium",children:"8 months"})]})]}),s.jsx("div",{className:"text-center mt-2 text-xs text-green-600 font-medium",children:"Value Anchored"})]}),t===2&&s.jsxs("div",{className:"w-full max-w-xs",children:[s.jsx("img",{src:DNe,alt:"Repeatable GTM Engine",className:"w-full h-auto rounded-lg border shadow-sm"}),s.jsx("div",{className:"text-center mt-2 text-xs text-blue-600 font-medium",children:"Engine Running"})]})]}),s.jsxs("div",{className:"relative z-10",children:[s.jsx("h3",{className:"text-xl font-semibold mb-3 text-foreground",children:e.title}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3 italic",children:e.pain}),s.jsx("p",{className:"text-muted-foreground leading-relaxed mb-3",children:e.solution}),s.jsx("p",{className:"text-sm font-medium text-primary mb-4",children:e.outcome}),s.jsxs("div",{className:"flex gap-2 mt-4",children:[s.jsx(W,{variant:"outline",size:"sm",onClick:()=>window.location.href=t===0?"/discovery-call-analysis":t===1?"/value-tied-pricing":"/repeatable-gtm-engine",children:"Try Demo"}),s.jsx(W,{size:"sm",onClick:async()=>{const{data:{session:r}}=await ne.auth.getSession();r!=null&&r.user?window.location.href="/pricing?tab=founding":window.location.href="/auth"},children:"Get Full Access"})]})]})]},t))}),s.jsx("div",{className:"text-center",children:s.jsx(W,{size:"lg",className:"px-8 py-3",onClick:()=>window.location.href="/auth",children:"Try Clientli Now"})})]})}),BNe="/assets/testimonial-sarah-Dn5cGyKX.jpg",zNe="/assets/testimonial-mike-BNm_J3lP.jpg",UNe="/assets/testimonial-lisa-Bd5HZVp0.jpg",WNe=[{name:"Sarah Mitchell",role:"Fractional COO",company:"SME Consulting",content:"This saved me 30 hours on a single proposal — and I finally had a way to justify pricing that the client didn't push back on.",rating:5,avatar:BNe},{name:"Mike Chen",role:"Operations Consultant",company:"Strategic Partners",content:"My proposals used to take weeks and still felt generic. Now I generate personalized drafts in minutes that actually address what clients told me in discovery calls.",rating:5,avatar:zNe},{name:"Lisa Park",role:"Fractional VP Operations",company:"LP Consulting",content:"I went from feast-or-famine referral dependency to a predictable pipeline. Same quality proposals, but now I can scale without burning out on proposal writing.",rating:5,avatar:UNe}],VNe=()=>s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:["Success"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Stories"})]}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Real freelance consultants and fractional COOs sharing their beta experience with Clientli's AI-powered tools."})]}),s.jsx("div",{className:"grid lg:grid-cols-3 gap-8",children:WNe.map((e,t)=>s.jsxs("div",{className:"relative p-8 rounded-xl bg-card border shadow-card hover:shadow-elegant transition-all duration-300",children:[s.jsx(ZU,{className:"absolute top-6 right-6 h-8 w-8 text-primary/20"}),s.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(e.rating)].map((r,n)=>s.jsx(jc,{className:"h-4 w-4 fill-primary text-primary"},n))}),s.jsxs("p",{className:"text-muted-foreground leading-relaxed mb-6",children:['"',e.content,'"']}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden",children:s.jsx("img",{src:e.avatar,alt:e.name,className:"w-full h-full object-cover"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:e.name}),s.jsxs("div",{className:"text-sm text-muted-foreground",children:[e.role," at ",e.company]})]})]})]},t))})]})}),c5="/assets/hero-expansion-dashboard-UpI4agcQ.png",HNe=["No setup fees","Cancel anytime","Full AI capabilities"],LS=()=>s.jsxs("section",{className:"py-24 bg-gradient-hero relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background/90 via-background/50 to-background/90"}),s.jsx("div",{className:"container relative z-10 mx-auto px-6 lg:px-8",children:s.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center max-w-6xl mx-auto",children:[s.jsxs("div",{className:"text-center md:text-left",children:[s.jsxs("h2",{className:"text-3xl lg:text-5xl font-bold mb-6",children:["Ready to"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"Accelerate Sales?"})]}),s.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Join 80+ consultants who are closing bigger deals with Clientli's AI-powered sales platform."}),s.jsx("div",{className:"flex flex-wrap justify-center md:justify-start gap-6 mb-10",children:HNe.map((e,t)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary"}),s.jsx("span",{className:"text-sm font-medium",children:e})]},t))}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center md:justify-start",children:[s.jsxs(W,{variant:"hero",size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Start Your Beta Access",s.jsx(Ht,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]}),s.jsx(W,{variant:"outline",size:"lg",onClick:()=>window.location.href="/discovery-call-analysis",children:"View Demo"})]}),s.jsx("p",{className:"text-sm text-muted-foreground mt-6",children:"Trusted by consultants and fractional COOs at small boutiques"})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:c5,alt:"Clientli Portal Dashboard",className:"rounded-xl shadow-elegant border"}),s.jsxs("div",{className:"absolute -bottom-4 -right-4 bg-primary text-primary-foreground p-4 rounded-lg shadow-glow",children:[s.jsx("div",{className:"text-sm font-medium",children:"Live in Beta"}),s.jsx("div",{className:"text-2xl font-bold",children:"Get Access Now"})]})]})]})})]}),qNe=()=>s.jsx("footer",{className:"bg-muted/30 border-t",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-8 py-8",children:s.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:"© 2024 Clientli. All rights reserved."}),s.jsxs("div",{className:"flex space-x-6",children:[s.jsx(Zl,{to:"/privacy",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Privacy & Terms"}),s.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Contact"})]})]})})}),GNe=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsxs("main",{className:"pt-36",children:[s.jsx(lX,{}),s.jsx(cX,{}),s.jsx(dX,{}),s.jsx(fX,{}),s.jsx(MNe,{}),s.jsx(FNe,{}),s.jsx(VNe,{}),s.jsx(LS,{})]}),s.jsx(qNe,{})]});var KNe="Label",u5=b.forwardRef((e,t)=>
612s.jsx(xe.label,{...e,ref:t,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));u5.displayName=KNe;var d5=u5;const YNe=Jo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),je=b.forwardRef(({className:e,...t},r)=>s.jsx(d5,{ref:r,className:J(YNe(),e),...t}));je.displayName=d5.displayName;const Ej=e=>{const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return e?t.test(e)?e.length>254?{isValid:!1,error:"Email address is too long"}:{isValid:!0}:{isValid:!1,error:"Please enter a valid email address"}:{isValid:!1,error:"Email is required"}},VA=e=>{const t=[];e.length<8&&t.push("At least 8 characters long"),/[a-z]/.test(e)||t.push("Include lowercase letters"),/[A-Z]/.test(e)||t.push("Include uppercase letters"),/[0-9]/.test(e)||t.push("Include numbers"),/[^a-zA-Z0-9]/.test(e)||t.push("Include special characters");let r="weak";return e.length>=8&&t.length<=2&&(r="medium"),e.length>=12&&t.length===0&&(r="strong"),{isValid:t.length===0,strength:r,errors:t}},Gm=e=>e.trim().replace(/[<>]/g,""),XNe=({password:e,strength:t,errors:r,className:n})=>{if(!e)return null;const a=()=>{switch(t){case"weak":return"bg-destructive";case"medium":return"bg-yellow-500";case"strong":return"bg-green-500";default:return"bg-muted"}},i=()=>{switch(t){case"weak":return"w-1/3";case"medium":return"w-2/3";case"strong":return"w-full";default:return"w-0"}};return s.jsxs("div",{className:J("space-y-2",n),children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-muted-foreground",children:"Password strength:"}),s.jsx("span",{className:J("text-sm font-medium",t==="weak"&&"text-destructive",t==="medium"&&"text-yellow-600",t==="strong"&&"text-green-600"),children:t.charAt(0).toUpperCase()+t.slice(1)})]}),s.jsx("div",{className:"w-full bg-muted rounded-full h-2",children:s.jsx("div",{className:J("h-2 rounded-full transition-all duration-300",a(),i())})}),r.length>0&&s.jsx("ul",{className:"text-xs text-muted-foreground space-y-1",children:r.map((o,l)=>s.jsxs("li",{className:"flex items-center gap-1",children:[s.jsx("span",{className:"text-destructive",children:"•"}),o]},l))})]})},QNe=()=>{const e=gt(),{toast:t}=xr(),[r]=lh(),[n,a]=b.useState(!1),[i,o]=b.useState(null),[l,c]=b.useState(""),[u,d]=b.useState("");b.useState("");const[f,h]=b.useState({isValid:!0,strength:"weak",errors:[]}),m=r.get("reset")==="true";b.useEffect(()=>{ne.auth.getSession().then(({data:{session:w}})=>{if(w!=null&&w.user&&!m){o(w.user);const N=sessionStorage.getItem("selectedBetaPlan"),j=sessionStorage.getItem("demoAnalysisId");if(N)return;e(j?"/pricing":"/portal/dashboard")}});const{data:{subscription:x}}=ne.auth.onAuthStateChange((w,N)=>{if(w!=="PASSWORD_RECOVERY")if(N!=null&&N.user&&!m){o(N.user);const j=sessionStorage.getItem("selectedBetaPlan"),S=sessionStorage.getItem("selectedFreeTier"),_=sessionStorage.getItem("demoAnalysisId");j?p(N.user):S?(sessionStorage.removeItem("selectedFreeTier"),e("/portal/dashboard")):e(_?"/pricing":"/portal/dashboard")}else o(null)});return()=>x.unsubscribe()},[e,m]);const g=async x=>{x.preventDefault(),a(!0);const w=new FormData(x.currentTarget),N=Gm(w.get("email")),j=w.get("password"),S=Gm(w.get("fullName")),_=Ej(N);if(!_.isValid){t({title:"Invalid Email",description:_.error,variant:"destructive"}),a(!1);return}if(!VA(j).isValid){t({title:"Password Requirements",description:"Please ensure your password meets all requirements",variant:"destructive"}),a(!1);return}try{const{data:k,error:A}=await ne.auth.signUp({email:N,password:j,options:{emailRedirectTo:`${window.location.origin}/pricing`,data:{full_name:S}}});if(A)t({title:"Error",description:A.message,variant:"destructive"});else if(k.user&&!k.session)t({title:"Check your email",description:"Please check your email to confirm your account before signing in."});else if(k.session){const C=sessionStorage.getItem("selectedBetaPlan"),T=sessionStorage.getItem("selectedFreeTier"),E=sessionStorage.getItem("demoAnalysisId");if(C)t({title:"Success",description:"Account created! Redirecting to checkout..."}),await p(k.session.user);else if(T){const{data:O}=await ne.from("user_credits").select("balance").eq("user_id",k.session.user.id).maybeSingle();O||await ne.rpc("initialize_user_credits",{p_user_id:k.session.user.id,p_plan_allocation:10}),sessionStorage.removeItem("selectedFreeTier"),t({title:"Success",description:"Welcome to Clientli! You have 10 free credits to get started."}),e("/portal/dashboard")}else{const{data:O}=await ne.from("user_credits").select("balance").eq("user_id",k.session.user.id).maybeSingle();O||await ne.rpc("initialize_user_credits",{p_user_id:k.session.user.id,p_plan_allocation:10}),t({title:"Success",description:"Welcome to Clientli! You have 10 free credits to get started."}),e("/portal/dashboard")}}}catch{t({title:"Error",description:"An unexpected error occurred",variant:"destructive"})}finally{a(!1)}},p=async x=>{const w=sessionStorage.getItem("selectedBetaPriceId");if(sessionStorage.getItem("selectedBetaPlan"),!w){t({title:"Error",description:"Plan information missing. Please select a plan again.",variant:"destructive"}),e("/pricing");return}try{a(!0);const{data:N,error:j}=await ne.functions.invoke("create-beta-checkout",{body:{priceId:w}});if(j)throw j;N!=null&&N.url&&(sessionStorage.removeItem("selectedBetaPlan"),sessionStorage.removeItem("selectedBetaPriceId"),window.location.href=N.url)}catch(N){console.error("Checkout error:",N),t({title:"Checkout Error",description:"Unable to start checkout. Please try again.",variant:"destructive"}),e("/pricing")}finally{a(!1)}},v=async x=>{x.preventDefault(),a(!0);const w=new FormData(x.currentTarget),N=Gm(w.get("email")),j=w.get("password"),S=Ej(N);if(!S.isValid){t({title:"Invalid Email",description:S.error,variant:"destructive"}),a(!1);return}try{const{error:_}=await ne.auth.signInWithPassword({email:N,password:j});if(_)t({title:"Error",description:_.message,variant:"destructive"});else{const P=sessionStorage.getItem("demoAnalysisId");e(P?"/pricing":"/portal/dashboard")}}catch{t({title:"Error",description:"An unexpected error occurred",variant:"destructive"})}finally{a(!1)}},y=async x=>{if(x.preventDefault(),l!==u){t({title:"Error",description:"Passwords don't match",variant:"destructive"});return}if(l.length<6){t({title:"Error",description:"Password must be at least 6 characters",variant:"destructive"});return}a(!0);try{const{error:w}=await ne.auth.updateUser({password:l});w?t({title:"Error",description:w.message,variant:"destructive"}):(t({title:"Success",description:"Password updated successfully!"}),e("/pricing?tab=founding"))}catch{t({title:"Error",description:"An unexpected error occurred",variant:"destructive"})}finally{a(!1)}};return s.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[s.jsx("header",{className:"border-b border-border",children:s.jsx("div",{className:"container mx-auto px-4 py-4",children:s.jsxs(W,{variant:"ghost",onClick:()=>e("/"),className:"flex items-center gap-2",children:[s.jsx(Us,{className:"h-4 w-4"}),"Back to Home"]})})}),s.jsx("main",{className:"flex-1 flex items-center justify-center p-4",children:s.jsxs(z,{className:"w-full max-w-md",children:[s.jsxs(oe,{className:"text-center",children:[s.jsx(le,{className:"text-2xl font-bold bg-gradient-primary bg-clip-text text-transparent",children:m?"Reset Your Password":"Welcome to Clientli"}),s.jsx(_n,{children:m?"Enter your new password below":"Create your account to start discovery sessions"})]}),s.jsx(V,{children:m?s.jsxs("form",{onSubmit:y,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"new-password",children:"New Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(KU,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"new-password",type:"password",placeholder:"Enter new password",value:l,onCh
612ange:x=>c(x.target.value),required:!0,className:"pl-10",minLength:6})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"confirm-password",children:"Confirm New Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(Um,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"confirm-password",type:"password",placeholder:"Confirm new password",value:u,onChange:x=>d(x.target.value),required:!0,className:"pl-10",minLength:6})]})]}),s.jsx(W,{type:"submit",className:"w-full",disabled:n,children:n?"Updating Password...":"Update Password"})]}):s.jsxs(gs,{defaultValue:"signup",className:"space-y-4",children:[s.jsxs(In,{className:"grid w-full grid-cols-2",children:[s.jsx(Ve,{value:"signup",children:"Sign Up"}),s.jsx(Ve,{value:"signin",children:"Sign In"})]}),s.jsx(He,{value:"signup",children:s.jsxs("form",{onSubmit:g,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"fullName",children:"Full Name"}),s.jsxs("div",{className:"relative",children:[s.jsx(C0,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"fullName",name:"fullName",type:"text",placeholder:"John Doe",required:!0,className:"pl-10"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"signup-email",children:"Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(yp,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"signup-email",name:"email",type:"email",placeholder:"[email protected]",required:!0,className:"pl-10"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"signup-password",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(Um,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"signup-password",name:"password",type:"password",placeholder:"••••••••",required:!0,className:"pl-10",minLength:8,value:l,onChange:x=>{const w=x.target.value;c(w),h(VA(w))}})]}),s.jsx(XNe,{password:l,strength:f.strength,errors:f.errors})]}),s.jsx(W,{type:"submit",className:"w-full",disabled:n,children:n?"Creating Account...":"Create Account"})]})}),s.jsx(He,{value:"signin",children:s.jsxs("form",{onSubmit:v,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"signin-email",children:"Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(yp,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"signin-email",name:"email",type:"email",placeholder:"[email protected]",required:!0,className:"pl-10"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"signin-password",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(Um,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),s.jsx(De,{id:"signin-password",name:"password",type:"password",placeholder:"••••••••",required:!0,className:"pl-10"})]})]}),s.jsx(W,{type:"submit",className:"w-full",disabled:n,children:n?"Signing In...":"Sign In"}),s.jsx("div",{className:"text-center",children:s.jsx(Zl,{to:"/reset-password",className:"text-sm text-muted-foreground hover:text-primary transition-colors",children:"Forgot your password?"})})]})})]})})]})})]})};var Rx="Collapsible",[JNe,f5]=qt(Rx),[ZNe,FS]=JNe(Rx),h5=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:i,onOpenChange:o,...l}=e,[c,u]=Gr({prop:n,defaultProp:a??!1,onChange:o,caller:Rx});return s.jsx(ZNe,{scope:r,disabled:i,contentId:qr(),open:c,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),children:s.jsx(xe.div,{"data-state":zS(c),"data-disabled":i?"":void 0,...l,ref:t})})});h5.displayName=Rx;var m5="CollapsibleTrigger",p5=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,a=FS(m5,r);return s.jsx(xe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":zS(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:se(e.onClick,a.onOpenToggle)})});p5.displayName=m5;var BS="CollapsibleContent",g5=b.forwardRef((e,t)=>
vendor: 4,112 bytes, line 612
612{const{forceMount:r,...n}=e,a=FS(BS,e.__scopeCollapsible);return s.jsx(yr,{present:r||a.open,children:({present:i})=>s.jsx(eSe,{...n,ref:t,present:i})})});g5.displayName=BS;var eSe=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:a,...i}=e,o=FS(BS,r),[l,c]=b.useState(n),u=b.useRef(null),d=Te(t,u),f=b.useRef(0),h=f.current,m=b.useRef(0),g=m.current,p=o.open||l,v=b.useRef(p),y=b.useRef(void 0);return b.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),At(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();f.current=w.height,m.current=w.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(n)}},[o.open,n]),s.jsx(xe.div,{"data-state":zS(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:p&&a})});function zS(e){return e?"open":"closed"}var tSe=h5,rSe=p5,nSe=g5,ys="Accordion",sSe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[US,aSe,iSe]=Zf(ys),[Dx,VCe]=qt(ys,[iSe,f5]),WS=f5(),v5=I.forwardRef((e,t)=>{const{type:r,...n}=e,a=n,i=n;return s.jsx(US.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(uSe,{...i,ref:t}):s.jsx(cSe,{...a,ref:t})})});v5.displayName=ys;var[x5,oSe]=Dx(ys),[y5,lSe]=Dx(ys,{collapsible:!1}),cSe=I.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:i=!1,...o}=e,[l,c]=Gr({prop:r,defaultProp:n??"",onChange:a,caller:ys});return s.jsx(x5,{scope:e.__scopeAccordion,value:I.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:I.useCallback(()=>i&&c(""),[i,c]),children:s.jsx(y5,{scope:e.__scopeAccordion,collapsible:i,children:s.jsx(b5,{...o,ref:t})})})}),uSe=I.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...i}=e,[o,l]=Gr({prop:r,defaultProp:n??[],onChange:a,caller:ys}),c=I.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=I.useCallback(d=>l((f=[])=>f.filter(h=>h!==d)),[l]);return s.jsx(x5,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:s.jsx(y5,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(b5,{...i,ref:t})})})}),[dSe,Lx]=Dx(ys),b5=I.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:i="vertical",...o}=e,l=I.useRef(null),c=Te(l,t),u=aSe(r),f=du(a)==="ltr",h=se(e.onKeyDown,m=>{var P;if(!sSe.includes(m.key))return;const g=m.target,p=u().filter(k=>{var A;return!((A=k.ref.current)!=null&&A.disabled)}),v=p.findIndex(k=>k.ref.current===g),y=p.length;if(v===-1)return;m.preventDefault();let x=v;const w=0,N=y-1,j=()=>{x=v+1,x>N&&(x=w)},S=()=>{x=v-1,x<w&&(x=N)};switch(m.key){case"Home":x=w;break;case"End":x=N;break;case"ArrowRight":i==="horizontal"&&(f?j():S());break;case"ArrowDown":i==="vertical"&&j();break;case"ArrowLeft":i==="horizontal"&&(f?S():j());break;case"ArrowUp":i==="vertical"&&S();break}const _=x%y;(P=p[_].ref.current)==null||P.focus()});return s.jsx(dSe,{scope:r,disabled:n,direction:a,orientation:i,children:s.jsx(US.Slot,{scope:r,children:s.jsx(xe.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:h})})})}),Lg="AccordionItem",[fSe,VS]=Dx(Lg),w5=I.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...a}=e,i=Lx(Lg,r),o=oSe(Lg,r),l=WS(r),c=qr(),u=n&&o.value.includes(n)||!1,d=i.disabled||e.disabled;return s.jsx(fSe,{scope:r,open:u,disabled:d,triggerId:c,children:s.jsx(tSe,{"data-orientation":i.orientation,"data-state":P5(u),...l,...a,ref:t,disabled:d,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});w5.displayName=Lg;var j5="AccordionHeader",N5=I.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Lx(ys,r),i=VS(j5,r);return s.jsx(xe.h3,{"data-orientation":a.orientation,"data-state":P5(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});N5.displayName=j5;var Tj="AccordionTrigger",S5=I.forwardRef((e,t)=>
vendor: 6,252 bytes, line 612
612{const{__scopeAccordion:r,...n}=e,a=Lx(ys,r),i=VS(Tj,r),o=lSe(Tj,r),l=WS(r);return s.jsx(US.ItemSlot,{scope:r,children:s.jsx(rSe,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...n,ref:t})})});S5.displayName=Tj;var _5="AccordionContent",k5=I.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,a=Lx(ys,r),i=VS(_5,r),o=WS(r);return s.jsx(nSe,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});k5.displayName=_5;function P5(e){return e?"open":"closed"}var hSe=v5,mSe=w5,pSe=N5,C5=S5,O5=k5;const gSe=hSe,Ij=b.forwardRef(({className:e,...t},r)=>s.jsx(mSe,{ref:r,className:J("border-b",e),...t}));Ij.displayName="AccordionItem";const $j=b.forwardRef(({className:e,children:t,...r},n)=>s.jsx(pSe,{className:"flex",children:s.jsxs(C5,{ref:n,className:J("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,s.jsx(Mo,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));$j.displayName=C5.displayName;const Mj=b.forwardRef(({className:e,children:t,...r},n)=>s.jsx(O5,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:s.jsx("div",{className:J("pb-4 pt-0",e),children:t})}));Mj.displayName=O5.displayName;function vSe(e){return Object.prototype.toString.call(e)==="[object Object]"}function HA(e){return vSe(e)||Array.isArray(e)}function xSe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function HS(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==i?!1:r.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!HA(l)||!HA(c)?l===c:HS(l,c)})}function qA(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function ySe(e,t){if(e.length!==t.length)return!1;const r=qA(e),n=qA(t);return r.every((a,i)=>{const o=n[i];return HS(a,o)})}function qS(e){return typeof e=="number"}function Rj(e){return typeof e=="string"}function Fx(e){return typeof e=="boolean"}function GA(e){return Object.prototype.toString.call(e)==="[object Object]"}function xt(e){return Math.abs(e)}function GS(e){return Math.sign(e)}function Od(e,t){return xt(e-t)}function bSe(e,t){if(e===0||t===0||xt(e)<=xt(t))return 0;const r=Od(xt(e),xt(t));return xt(r/e)}function wSe(e){return Math.round(e*100)/100}function zf(e){return Uf(e).map(Number)}function ds(e){return e[kh(e)]}function kh(e){return Math.max(0,e.length-1)}function KS(e,t){return t===kh(e)}function KA(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function Uf(e){return Object.keys(e)}function A5(e,t){return[e,t].reduce((r,n)=>(Uf(n).forEach(a=>{const i=r[a],o=n[a],l=GA(i)&&GA(o);r[a]=l?A5(i,o):o}),r),{})}function Dj(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function jSe(e,t){const r={start:n,center:a,end:i};function n(){return 0}function a(c){return i(c)/2}function i(c){return t-c}function o(c,u){return Rj(e)?r[e](c):e(t,c,u)}return{measure:o}}function Wf(){let e=[];function t(a,i,o,l={passive:!0}){let c;if("addEventListener"in a)a.addEventListener(i,o,l),c=()=>a.removeEventListener(i,o,l);else{const u=a;u.addListener(o),c=()=>u.removeListener(o)}return e.push(c),n}function r(){e=e.filter(a=>a())}const n={add:t,clear:r};return n}function NSe(e,t,r,n){const a=Wf(),i=1e3/60;let o=null,l=0,c=0;function u(){a.add(e,"visibilitychange",()=>{e.hidden&&g()})}function d(){m(),a.clear()}function f(v){if(!c)return;o||(o=v,r(),r());const y=v-o;for(o=v,l+=y;l>=i;)r(),l-=i;const x=l/i;n(x),c&&(c=t.requestAnimationFrame(f))}function h(){c||(c=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function g(){o=null,l=0}return{init:u,destroy:d,start:h,stop:m,update:r,render:n}}function SSe(e,t){const r=t==="rtl",n=e==="y",a=n?"y":"x",i=n?"x":"y",o=!n&&r?-1:1,l=d(),c=f();function u(g){const{height:p,width:v}=g;return n?p:v}function d(){return n?"top":r?"right":"left"}function f(){return n?"bottom":r?"left":"right"}function h(g){return g*o}return{scroll:a,cross:i,startEdge:l,endEdge:c,measureSize:u,direction:h}}function Vo(e=0,t=0){const r=xt(e-t);function n(u){return u<e}function a(u){return u>t}function i(u){return n(u)||a(u)}function o(u){return i(u)?n(u)?e:t:u}function l(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:o,reachedAny:i,reachedMax:a,reachedMin:n,removeOffset:l}}function E5(e,t,r){const{constrain:n}=Vo(0,e),a=e+1;let i=o(t);function o(h){return r?xt((a+h)%a):n(h)}function l(){return i}function c(h){return i=o(h),f}function u(h){return d().set(l()+h)}function d(){return E5(e,l(),r)}const f={get:l,set:c,add:u,clone:d};return f}function _Se(e,t,r,n,a,i,o,l,c,u,d,f,h,m,g,p,v,y,x){const{cross:w,direction:N}=e,j=["INPUT","SELECT","TEXTAREA"],S={passive:!1},_=Wf(),P=Wf(),k=Vo(50,225).constrain(m.measure(20)),A={mouse:300,touch:400},C={mouse:500,touch:600},T=g?43:25;let E=!1,O=0,D=0,$=!1,L=!1,M=!1,R=!1;function B(F){if(!x)return;function me(Y){(Fx(x)||x(F,Y))&&ce(Y)}const pe=t;_.add(pe,"dragstart",Y=>Y.preventDefault(),S).add(pe,"touchmove",()=>{},S).add(pe,"touchend",()=>{}).add(pe,"touchstart",me).add(pe,"mousedown",me).add(pe,"touchcancel",ie).add(pe,"contextmenu",ie).add(pe,"click",X,!0)}function H(){_.clear(),P.clear()}function U(){const F=R?r:t;P.add(F,"touchmove",G,S).add(F,"touchend",ie).add(F,"mousemove",G,S).add(F,"mouseup",ie)}function q(F){const me=F.nodeName||"";return j.includes(me)}function ee(){return(g?C:A)[R?"mouse":"touch"]}function de(F,me){const pe=f.add(GS(F)*-1),Y=d.byDistance(F,!g).distance;return g||xt(F)<k?Y:v&&me?Y*.5:d.byIndex(pe.get(),0).distance}function ce(F){const me=Dj(F,n);R=me,M=g&&me&&!F.buttons&&E,E=Od(a.get(),o.get())>=2,!(me&&F.button!==0)&&(q(F.target)||($=!0,i.pointerDown(F),u.useFriction(0).useDuration(0),a.set(o),U(),O=i.readPoint(F),D=i.readPoint(F,w),h.emit
vendor: 14,676 bytes, line 612
612("pointerDown")))}function G(F){if(!Dj(F,n)&&F.touches.length>=2)return ie(F);const pe=i.readPoint(F),Y=i.readPoint(F,w),he=Od(pe,O),_e=Od(Y,D);if(!L&&!R&&(!F.cancelable||(L=he>_e,!L)))return ie(F);const We=i.pointerMove(F);he>p&&(M=!0),u.useFriction(.3).useDuration(.75),l.start(),a.add(N(We)),F.preventDefault()}function ie(F){const pe=d.byDistance(0,!1).index!==f.get(),Y=i.pointerUp(F)*ee(),he=de(N(Y),pe),_e=bSe(Y,he),We=T-10*_e,Fe=y+_e/50;L=!1,$=!1,P.clear(),u.useDuration(We).useFriction(Fe),c.distance(he,!g),R=!1,h.emit("pointerUp")}function X(F){M&&(F.stopPropagation(),F.preventDefault(),M=!1)}function te(){return $}return{init:B,destroy:H,pointerDown:te}}function kSe(e,t){let n,a;function i(f){return f.timeStamp}function o(f,h){const g=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(Dj(f,t)?f:f.touches[0])[g]}function l(f){return n=f,a=f,o(f)}function c(f){const h=o(f)-o(a),m=i(f)-i(n)>170;return a=f,m&&(n=f),h}function u(f){if(!n||!a)return 0;const h=o(a)-o(n),m=i(f)-i(n),g=i(f)-i(a)>170,p=h/m;return m&&!g&&xt(p)>.1?p:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:o}}function PSe(){function e(r){const{offsetTop:n,offsetLeft:a,offsetWidth:i,offsetHeight:o}=r;return{top:n,right:a+i,bottom:n+o,left:a,width:i,height:o}}return{measure:e}}function CSe(e){function t(n){return e*(n/100)}return{measure:t}}function OSe(e,t,r,n,a,i,o){const l=[e].concat(n);let c,u,d=[],f=!1;function h(v){return a.measureSize(o.measure(v))}function m(v){if(!i)return;u=h(e),d=n.map(h);function y(x){for(const w of x){if(f)return;const N=w.target===e,j=n.indexOf(w.target),S=N?u:d[j],_=h(N?e:n[j]);if(xt(_-S)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(Fx(i)||i(v,x))&&y(x)}),r.requestAnimationFrame(()=>{l.forEach(x=>c.observe(x))})}function g(){f=!0,c&&c.disconnect()}return{init:m,destroy:g}}function ASe(e,t,r,n,a,i){let o=0,l=0,c=a,u=i,d=e.get(),f=0;function h(){const S=n.get()-e.get(),_=!c;let P=0;return _?(o=0,r.set(n),e.set(n),P=S):(r.set(e),o+=S/c,o*=u,d+=o,e.add(o),P=d-f),l=GS(P),f=d,j}function m(){const S=n.get()-t.get();return xt(S)<.001}function g(){return c}function p(){return l}function v(){return o}function y(){return w(a)}function x(){return N(i)}function w(S){return c=S,j}function N(S){return u=S,j}const j={direction:p,duration:g,velocity:v,seek:h,settled:m,useBaseFriction:x,useBaseDuration:y,useFriction:N,useDuration:w};return j}function ESe(e,t,r,n,a){const i=a.measure(10),o=a.measure(50),l=Vo(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function d(m){if(!u())return;const g=e.reachedMin(t.get())?"min":"max",p=xt(e[g]-t.get()),v=r.get()-t.get(),y=l.constrain(p/o);r.subtract(v*y),!m&&xt(v)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function f(m){c=!m}return{shouldConstrain:u,constrain:d,toggleActive:f}}function TSe(e,t,r,n,a){const i=Vo(-t+e,0),o=f(),l=d(),c=h();function u(g,p){return Od(g,p)<=1}function d(){const g=o[0],p=ds(o),v=o.lastIndexOf(g),y=o.indexOf(p)+1;return Vo(v,y)}function f(){return r.map((g,p)=>{const{min:v,max:y}=i,x=i.constrain(g),w=!p,N=KS(r,p);return w?y:N||u(v,x)?v:u(y,x)?y:x}).map(g=>parseFloat(g.toFixed(3)))}function h(){if(t<=e+a)return[i.max];if(n==="keepSnaps")return o;const{min:g,max:p}=l;return o.slice(g,p)}return{snapsContained:c,scrollContainLimit:l}}function ISe(e,t,r){const n=t[0],a=r?n-e:ds(t);return{limit:Vo(a,n)}}function $Se(e,t,r,n){const i=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=Vo(i,o);function u(h){return h===1?c(r.get()):h===-1?l(r.get()):!1}function d(h){if(!u(h))return;const m=e*(h*-1);n.forEach(g=>g.add(m))}return{loop:d}}function MSe(e){const{max:t,length:r}=e;function n(i){const o=i-t;return r?o/-r:0}return{get:n}}function RSe(e,t,r,n,a){const{startEdge:i,endEdge:o}=e,{groupSlides:l}=a,c=f().map(t.measure),u=h(),d=m();function f(){return l(n).map(p=>ds(p)[o]-p[0][i]).map(xt)}function h(){return n.map(p=>r[i]-p[i]).map(p=>-xt(p))}function m(){return l(u).map(p=>p[0]).map((p,v)=>p+c[v])}return{snaps:u,snapsAligned:d}}function DSe(e,t,r,n,a,i){const{groupSlides:o}=a,{min:l,max:c}=n,u=d();function d(){const h=o(i),m=!e||t==="keepSnaps";return r.length===1?[i]:m?h:h.slice(l,c).map((g,p,v)=>{const y=!p,x=KS(v,p);if(y){const w=ds(v[0])+1;return KA(w)}if(x){const w=kh(i)-ds(v)[0]+1;return KA(w,ds(v)[0])}return g})}return{slideRegistry:u}}function LSe(e,t,r,n,a){const{reachedAny:i,removeOffset:o,constrain:l}=n;function c(g){return g.concat().sort((p,v)=>xt(p)-xt(v))[0]}function u(g){const p=e?o(g):l(g),v=t.map((x,w)=>({diff:d(x-p,0),index:w})).sort((x,w)=>xt(x.diff)-xt(w.diff)),{index:y}=v[0];return{index:y,distance:p}}function d(g,p){const v=[g,g+r,g-r];if(!e)return g;if(!p)return c(v);const y=v.filter(x=>GS(x)===p);return y.length?c(y):ds(v)-r}function f(g,p){const v=t[g]-a.get(),y=d(v,p);return{index:g,distance:y}}function h(g,p){const v=a.get()+g,{index:y,distance:x}=u(v),w=!e&&i(v);if(!p||w)return{index:y,distance:g};const N=t[y]-x,j=g+d(N,0);return{index:y,distance:j}}return{byDistance:h,byIndex:f,shortcut:d}}function FSe(e,t,r,n,a,i,o){function l(f){const h=f.distance,m=f.index!==t.get();i.add(h),h&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(r.set(t.get()),t.set(f.index),o.emit("select"))}function c(f,h){const m=a.byDistance(f,h);l(m)}function u(f,h){const m=t.clone().set(f),g=a.byIndex(m.get(),h);l(g)}return{distance:c,index:u}}function BSe(e,t,r,n,a,i,o,l){const c={passive:!0,capture:!0};let u=0;function d(m){if(!l)return;function g(p){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const x=r.findIndex(w=>w.includes(p));qS(x)&&(a.useDuration(0),n.index(x,0),o.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((p,v)=>{i.add(p,"focus",y=>{(Fx(l)||l(m,y))&&g(v)},c)})}function f(m){m.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function id(e){let t=e;function r(){return t}function n(c){t=o(c)}function a(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return qS(c)?c:c.get()}return{get:r,set:n,add:a,subtract:i}}function T5(e,t){const r=e.scroll==="x"?o:l,n=t.style;let a=null,i=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function l(h){return`translate3d(0px,${h}px,0px)`}function c(h){if(i)return;const m=wSe(e.direction(h));m!==a&&(n.transform=r(m),a=m)}function u(h){i=!h}function d(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:c,toggleActive:u}}function zSe(e,t,r,n,a,i,o,l,c){const d=zf(a),f=zf(a).reverse(),h=y().concat(x());function m(_,P){return _.reduce((k,A)=>k-a[A],P)}function g(_,P){return _.reduce((k,A)=>m(k,P)>0?k.concat([A]):k,[])}function p(_){return i.map((P,k)=>({start:P-n[k]+.5+_,end:P+t-.5+_}))}function v(_,P,k){const A=p(P);return _.map(C=>{const T=k?0:-r,E=k?r:0,O=k?"end":"start",D=A[C][O];return{index:C,loopPoint:D,slideLocation:id(-1),translate:T5(e,c[C]),target:()=>l.get()>D?T:E}})}function y(){const _=o[0],P=g(f,_);return v(P,r,!1)}function x(){const _=t-o[0]-1,P=g(d,_);return v(P,-r,!0)}function w(){return h.every(({index:_})=>{const P=d.filter(k=>k!==_);return m(P,t)<=.1})}function N(){h.forEach(_=>{const{target:P,translate:k,slideLocation:A}=_,C=P();C!==A.get()&&(k.to(C),A.set(C))})}function j(){h.forEach(_=>_.translate.clear())}return{canLoop:w,clear:j,loop:N,loopPoints:h}}function USe(e,t,r){let n,a=!1;function i(c){if(!r)return;function u(d){for(const f of d)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(d=>{a||(Fx(r)||r(c,d))&&u(d)}),n.observe(e,{childList:!0})}function o(){n&&n.disconnect(),a=!0}return{init:i,destroy:o}}function WSe(e,t,r,n){const a={};let i=null,o=null,l,c=!1;function u(){l=new IntersectionObserver(g=>{c||(g.forEach(p=>{const v=t.indexOf(p.target);a[v]=p}),i=null,o=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(g=>l.observe(g))}function d(){l&&l.disconnect(),c=!0}function f(g){return Uf(a).reduce((p,v)=>{const y=parseInt(v),{isIntersecting:x}=a[y];return(g&&x||!g&&!x)&&p.push(y),p},[])}function h(g=!0){if(g&&i)return i;if(!g&&o)return o;const p=f(g);return g&&(i=p),g||(o=p),p}return{init:u,destroy:d,get:h}}function VSe(e,t,r,n,a,i){const{measureSize:o,startEdge:l,endEdge:c}=e,u=r[0]&&a,d=g(),f=p(),h=r.map(o),m=v();function g(){if(!u)return 0;const x=r[0];return xt(t[l]-x[l])}function p(){if(!u)return 0;const x=i.getComputedStyle(ds(n));return parseFloat(x.getPropertyValue(`margin-${c}`))}function v(){return r.map((x,w,N)=>{const j=!w,S=KS(N,w);return j?h[w]+d:S?h[w]+f:N[w+1][l]-x[l]}).map(xt)}return{slideSizes:h,slideSizesWithGaps:m,startGap:d,endGap:f}}function HSe(e,t,r,n,a,i,o,l,c){const{startEdge:u,endEdge:d,direction:f}=e,h=qS(r);function m(y,x){return zf(y).filter(w=>w%x===0).map(w=>y.slice(w,w+x))}function g(y){return y.length?zf(y).reduce((x,w,N)=>{const j=ds(x)||0,S=j===0,_=w===kh(y),P=a[u]-i[j][u],k=a[u]-i[w][d],A=!n&&S?f(o):0,C=!n&&_?f(l):0,T=xt(k-C-(P+A));return N&&T>t+c&&x.push(w),_&&x.push(y.length),x},[]).map((x,w,N)=>{const j=Math.max(N[w-1]||0);return y.slice(j,x)}):[]}function p(y){return h?m(y,r):g(y)}return{groupSlides:p}}function qSe(e,t,r,n,a,i,o){const{align:l,axis:c,direction:u,startIndex:d,loop:f,duration:h,dragFree:m,dragThreshold:g,inViewThreshold:p,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:w,watchSlides:N,watchDrag:j,watchFocus:S}=i,_=2,P=PSe(),k=P.measure(t),A=r.map(P.measure),C=SSe(c,u),T=C.measureSize(k),E=CSe(T),O=jSe(l,T),D=!f&&!!x,$=f||!!x,{slideSizes:L,slideSizesWithGaps:M,startGap:R,endGap:B}=VSe(C,k,A,r,$,a),H=HSe(C,T,v,f,k,A,R,B,_),{snaps:U,snapsAligned:q}=RSe(C,O,k,A,H),ee=-ds(U)+ds(M),{snapsContained:de,scrollContainLimit:ce}=TSe(T,ee,q,x,_),G=D?de:q,{limit:ie}=ISe(ee,G,f),X=E5(kh(G),d,f),te=X.clone(),Z=zf(r),F=({dragHandler:Mr,scrollBody:$a,scrollBounds:Ys,options:{loop:Dn}})=>{Dn||Ys.constrain(Mr.pointerDown()),$a.seek()},me=({scrollBody:Mr,translate:$a,location:Ys,offsetLocation:Dn,previousLocation:Ln,scrollLooper:Ki,slideLooper:Fn,dragHandler:cl,animation:Pt,eventHandler:Yi,scrollBounds:Pe,options:{loop:Ma}},pn)=>{const ke=Mr.settled(),br=!Pe.shouldConstrain(),ye=Ma?ke:ke&&br,$e=ye&&!cl.pointerDown();$e&&Pt.stop();const nt=Ys.get()*pn+Ln.get()*(1-pn);Dn.set(nt),Ma&&(Ki.loop(Mr.direction()),Fn.loop()),$a.to(Dn.get()),$e&&Yi.emit("settle"),ye||Yi.emit("scroll")},pe=NSe(n,a,()=>F(Ia),Mr=>me(Ia,Mr)),Y=.68,he=G[X.get()],_e=id(he),We=id(he),Fe=id(he),Et=id(he),jt=ASe(_e,Fe,We,Et,h,Y),er=LSe(f,G,ee,ie,Et),Kt=FSe(pe,X,te,jt,er,Et,o),js=MSe(ie),Ns=Wf(),tr=WSe(t,r,o,p),{slideRegistry:mn}=DSe(D,x,G,ce,H,Z),ll=BSe(e,r,mn,Kt,jt,Ns,o,S),Ia={ownerDocument:n,ownerWindow:a,eventHandler:o,containerRect:k,slideRects:A,animation:pe,axis:C,dragHandler:_Se(C,e,n,a,Et,kSe(C,a),_e,pe,Kt,jt,er,X,o,E,m,g,y,Y,j),eventStore:Ns,percentOfView:E,index:X,indexPrevious:te,limit:ie,location:_e,offsetLocation:Fe,previousLocation:We,options:i,resizeHandler:OSe(t,o,a,r,C,w,P),scrollBody:jt,scrollBounds:ESe(ie,Fe,Et,jt,E),scrollLooper:$Se(ee,ie,Fe,[_e,Fe,We,Et]),scrollProgress:js,scrollSnapList:G.map(js.get),scrollSnaps:G,scrollTarget:er,scrollTo:Kt,slideLooper:zSe(C,T,ee,L,M,U,G,Fe,r),slideFocus:ll,slidesHandler:USe(t,o,N),slidesInView:tr,slideIndexes:Z,slideRegistry:mn,slidesToScroll:H,target:Et,translate:T5(C,t)};return Ia}function GSe(){let e={},t;function r(u){t=u}function n(u){return e[u]||[]}function a(u){return n(u).forEach(d=>d(t,u)),c}function i(u,d){return e[u]=n(u).concat([d]),c}function o(u,d){return e[u]=n(u).filter(f=>f!==d),c}function l(){e={}}const c={init:r,emit:a,off:o,on:i,clear:l};return c}const KSe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function YSe(e){function t(i,o){return A5(i,o||{})}function r(i){const o=i.breakpoints||{},l=Uf(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>t(c,u),{});return t(i,l)}function n(i){return i.map(o=>Uf(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function XSe(e){let t=[];function r(i,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function n(){t=t.filter(i=>i.destroy())}return{init:r,destroy:n}}function Fg(e,t,r){const n=e.ownerDocument,a=n.defaultView,i=YSe(a),o=XSe(i),l=Wf(),c=GSe(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=i,{on:h,off:m,emit:g}=c,p=C;let v=!1,y,x=u(KSe,Fg.globalOptions),w=u(x),N=[],j,S,_;function P(){const{container:Z,slides:F}=w;S=(Rj(Z)?e.querySelector(Z):Z)||e.children[0];const pe=Rj(F)?S.querySelectorAll(F):F;_=[].slice.call(pe||S.children)}function k(Z){const F=qSe(e,S,_,n,a,Z,c);if(Z.loop&&!F.slideLooper.canLoop()){const me=Object.assign({},Z,{loop:!1});return k(me)}return F}function A(Z,F){v||(x=u(x,Z),w=d(x),N=F||N,P(),y=k(w),f([x,...N.map(({options:me})=>me)]).forEach(me=>l.add(me,"change",C)),w.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(te),y.eventHandler.init(te),y.resizeHandler.init(te),y.slidesHandler.init(te),y.options.loop&&y.slideLooper.loop(),S.offsetParent&&_.length&&y.dragHandler.init(te),j=o.init(te,N)))}function C(Z,F){const me=H();T(),A(u({startIndex:me},Z),F),c.emit("reInit")}function T(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),l.clear()}function E(){v||(v=!0,l.clear(),T(),c.emit("destroy"),c.clear())}function O(Z,F,me){!w.active||v||(y.scrollBody.useBaseFriction().useDuration(F===!0?0:w.duration),y.scrollTo.index(Z,me||0))}function D(Z){const F=y.index.add(1).get();O(F,Z,-1)}function $(Z){const F=y.index.add(-1).get();O(F,Z,1)}function L(){return y.index.add(1).get()!==H()}function M(){return y.index.add(-1).get()!==H()}function R(){return y.scrollSnapList}function B(){return y.scrollProgress.get(y.offsetLocation.get())}function H(){return y.index.get()}function U(){return y.indexPrevious.get()}function q(){return y.slidesInView.get()}function ee(){return y.slidesInView.get(!1)}function de(){return j}function ce(){return y}function G(){return e}function ie(){return S}function X(){return _}const te={canScrollNext:L,canScrollPrev:M,containerNode:ie,internalEngine:ce,destroy:E,off:m,on:h,emit:g,plugins:de,previousScrollSnap:U,reInit:p,rootNode:G,scrollNext:D,scrollPrev:$,scrollProgress:B,scrollSnapList:R,scrollTo:O,selectedScrollSnap:H,slideNo
612des:X,slidesInView:q,slidesNotInView:ee};return A(t,r),setTimeout(()=>c.emit("init"),0),te}Fg.globalOptions=void 0;function YS(e={},t=[]){const r=b.useRef(e),n=b.useRef(t),[a,i]=b.useState(),[o,l]=b.useState(),c=b.useCallback(()=>{a&&a.reInit(r.current,n.current)},[a]);return b.useEffect(()=>{HS(r.current,e)||(r.current=e,c())},[e,c]),b.useEffect(()=>{ySe(n.current,t)||(n.current=t,c())},[t,c]),b.useEffect(()=>{if(xSe()&&o){Fg.globalOptions=YS.globalOptions;const u=Fg(o,r.current,n.current);return i(u),()=>u.destroy()}else i(void 0)},[o,i]),[l,a]}YS.globalOptions=void 0;const I5=b.createContext(null);function Bx(){const e=b.useContext(I5);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const XS=b.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:a,children:i,...o},l)=>{const[c,u]=YS({...t,axis:e==="horizontal"?"x":"y"},n),[d,f]=b.useState(!1),[h,m]=b.useState(!1),g=b.useCallback(x=>{x&&(f(x.canScrollPrev()),m(x.canScrollNext()))},[]),p=b.useCallback(()=>{u==null||u.scrollPrev()},[u]),v=b.useCallback(()=>{u==null||u.scrollNext()},[u]),y=b.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),p()):x.key==="ArrowRight"&&(x.preventDefault(),v())},[p,v]);return b.useEffect(()=>{!u||!r||r(u)},[u,r]),b.useEffect(()=>{if(u)return g(u),u.on("reInit",g),u.on("select",g),()=>{u==null||u.off("select",g)}},[u,g]),s.jsx(I5.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:v,canScrollPrev:d,canScrollNext:h},children:s.jsx("div",{ref:l,onKeyDownCapture:y,className:J("relative",a),role:"region","aria-roledescription":"carousel",...o,children:i})})});XS.displayName="Carousel";const QS=b.forwardRef(({className:e,...t},r)=>{const{carouselRef:n,orientation:a}=Bx();return s.jsx("div",{ref:n,className:"overflow-hidden",children:s.jsx("div",{ref:r,className:J("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});QS.displayName="CarouselContent";const JS=b.forwardRef(({className:e,...t},r)=>{const{orientation:n}=Bx();return s.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:J("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});JS.displayName="CarouselItem";const $5=b.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},a)=>{const{orientation:i,scrollPrev:o,canScrollPrev:l}=Bx();return s.jsxs(W,{ref:a,variant:t,size:r,className:J("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[s.jsx(Us,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Previous slide"})]})});$5.displayName="CarouselPrevious";const M5=b.forwardRef(({className:e,variant:t="outline",size:r="icon",...n},a)=>{const{orientation:i,scrollNext:o,canScrollNext:l}=Bx();return s.jsxs(W,{ref:a,variant:t,size:r,className:J("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[s.jsx(Ht,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Next slide"})]})});M5.displayName="CarouselNext";const QSe=Jo("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Bg=b.forwardRef(({className:e,variant:t,...r},n)=>s.jsx("div",{ref:n,role:"alert",className:J(QSe({variant:t}),e),...r}));Bg.displayName="Alert";const R5=b.forwardRef(({className:e,...t},r)=>s.jsx("h5",{ref:r,className:J("mb-1 font-medium leading-none tracking-tight",e),...t}));R5.displayName="AlertTitle";const zg=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:J("text-sm [&_p]:leading-relaxed",e),...t}));zg.displayName="AlertDescription";var zx="Dialog",[D5,L5]=qt(zx),[JSe,bs]=D5(zx),F5=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,l=b.useRef(null),c=b.useRef(null),[u,d]=Gr({prop:n,defaultProp:a??!1,onChange:i,caller:zx});return s.jsx(JSe,{scope:t,triggerRef:l,contentRef:c,contentId:qr(),titleId:qr(),descriptionId:qr(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(f=>!f),[d]),modal:o,children:r})};F5.displayName=zx;var B5="DialogTrigger",z5=b.forwardRef((e,t)=>
vendor: 5,541 bytes, lines 612-616
612{const{__scopeDialog:r,...n}=e,a=bs(B5,r),i=Te(t,a.triggerRef);return s.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":t_(a.open),...n,ref:i,onClick:se(e.onClick,a.onOpenToggle)})});z5.displayName=B5;var ZS="DialogPortal",[ZSe,U5]=D5(ZS,{forceMount:void 0}),W5=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=bs(ZS,t);return s.jsx(ZSe,{scope:t,forceMount:r,children:b.Children.map(n,o=>s.jsx(yr,{present:r||i.open,children:s.jsx(su,{asChild:!0,container:a,children:o})}))})};W5.displayName=ZS;var Ug="DialogOverlay",V5=b.forwardRef((e,t)=>{const r=U5(Ug,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=bs(Ug,e.__scopeDialog);return i.modal?s.jsx(yr,{present:n||i.open,children:s.jsx(t_e,{...a,ref:t})}):null});V5.displayName=Ug;var e_e=Ni("DialogOverlay.RemoveScroll"),t_e=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=bs(Ug,r);return s.jsx(dh,{as:e_e,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(xe.div,{"data-state":t_(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ho="DialogContent",H5=b.forwardRef((e,t)=>{const r=U5(Ho,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=bs(Ho,e.__scopeDialog);return s.jsx(yr,{present:n||i.open,children:i.modal?s.jsx(r_e,{...a,ref:t}):s.jsx(n_e,{...a,ref:t})})});H5.displayName=Ho;var r_e=b.forwardRef((e,t)=>{const r=bs(Ho,e.__scopeDialog),n=b.useRef(null),a=Te(t,r.contentRef,n);return b.useEffect(()=>{const i=n.current;if(i)return Ov(i)},[]),s.jsx(q5,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:se(e.onFocusOutside,i=>i.preventDefault())})}),n_e=b.forwardRef((e,t)=>{const r=bs(Ho,e.__scopeDialog),n=b.useRef(!1),a=b.useRef(!1);return s.jsx(q5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),q5=b.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,l=bs(Ho,r),c=b.useRef(null),u=Te(t,c);return Cv(),s.jsxs(s.Fragment,{children:[s.jsx(ch,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(Qo,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":t_(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(a_e,{titleId:l.titleId}),s.jsx(o_e,{contentRef:c,descriptionId:l.descriptionId})]})]})}),e_="DialogTitle",G5=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=bs(e_,r);return s.jsx(xe.h2,{id:a.titleId,...n,ref:t})});G5.displayName=e_;var K5="DialogDescription",Y5=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=bs(K5,r);return s.jsx(xe.p,{id:a.descriptionId,...n,ref:t})});Y5.displayName=K5;var X5="DialogClose",Q5=b.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=bs(X5,r);return s.jsx(xe.button,{type:"button",...n,ref:t,onClick:se(e.onClick,()=>a.onOpenChange(!1))})});Q5.displayName=X5;function t_(e){return e?"open":"closed"}var J5="DialogTitleWarning",[s_e,Z5]=qz(J5,{contentName:Ho,titleName:e_,docsSlug:"dialog"}),a_e=({titleId:e})=>{const t=Z5(J5),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
613
614If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
615
616For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},i_e="DialogDescriptionWarning",o_e=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z5(i_e).contentName}}.`;return b.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},r_=F5,eF=z5,n_=W5,Ph=V5,Ch=H5,Oh=G5,Ah=Y5,Ux=Q5;const il=r_,s_=eF,l_e=n_,tF=b.forwardRef(({className:e,...t},r)=>s.jsx(Ph,{ref:r,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));tF.displayName=Ph.displayName;const zi=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(l_e,{children:[s.jsx(tF,{}),s.jsxs(Ch,{ref:n,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
616nded-lg",e),...r,children:[t,s.jsxs(Ux,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(iu,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));zi.displayName=Ch.displayName;const Ui=({className:e,...t})=>s.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ui.displayName="DialogHeader";const Wx=({className:e,...t})=>s.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wx.displayName="DialogFooter";const Wi=b.forwardRef(({className:e,...t},r)=>s.jsx(Oh,{ref:r,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));Wi.displayName=Oh.displayName;const ol=b.forwardRef(({className:e,...t},r)=>s.jsx(Ah,{ref:r,className:J("text-sm text-muted-foreground",e),...t}));ol.displayName=Ah.displayName;const c_e=({open:e,onOpenChange:t,analysisId:r,action:n,clientName:a})=>{const[i,o]=b.useState(""),[l,c]=b.useState(""),[u,d]=b.useState(""),[f,h]=b.useState(""),[m,g]=b.useState(!1),[p,v]=b.useState(!0),y=gt(),x=async w=>{w.preventDefault(),g(!0);try{const{data:{session:N}}=await ne.auth.getSession();if(!N){if(p){const{error:P}=await ne.auth.signUp({email:i,password:l,options:{emailRedirectTo:`${window.location.origin}/pricing`}});if(P){ss.error(P.message);return}ss.success("Account created! Please check your email to verify.")}else{const{error:P}=await ne.auth.signInWithPassword({email:i,password:l});if(P){ss.error(P.message);return}}await new Promise(P=>setTimeout(P,1e3))}const j=n==="colleague"?u:i,S=n==="colleague"?f:void 0,{error:_}=await ne.functions.invoke("send-proposal-pdf",{body:{analysisId:r,recipientEmail:j,recipientName:S,senderName:n==="colleague"?i:void 0}});if(_){ss.error("Failed to send email. Please try again."),console.error(_);return}sessionStorage.setItem("demoAnalysisId",r),sessionStorage.setItem("demoClientName",a),ss.success(n==="colleague"?`Proposal sent to ${f||u}!`:"Proposal sent to your email!"),t(!1),setTimeout(()=>{y("/pricing")},1e3)}catch(N){console.error("Error:",N),ss.error(N.message||"Something went wrong")}finally{g(!1)}};return s.jsx(il,{open:e,onOpenChange:t,children:s.jsxs(zi,{className:"sm:max-w-md",children:[s.jsxs(Ui,{children:[s.jsx(Wi,{children:n==="colleague"?"Share Proposal with Colleague":"Email Proposal to Yourself"}),s.jsx(ol,{children:n==="colleague"?"Enter your colleague's email to share this proposal analysis.":"Create an account to receive your complete proposal analysis and unlock all features."})]}),s.jsxs("form",{onSubmit:x,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"email",children:"Your Email *"}),s.jsx(De,{id:"email",type:"email",placeholder:"[email protected]",value:i,onChange:w=>o(w.target.value),required:!0})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"password",children:"Password *"}),s.jsx(De,{id:"password",type:"password",placeholder:"Min. 6 characters",value:l,onChange:w=>c(w.target.value),required:!0,minLength:6})]}),n==="colleague"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"colleagueEmail",children:"Colleague's Email *"}),s.jsx(De,{id:"colleagueEmail",type:"email",placeholder:"[email protected]",value:u,onChange:w=>d(w.target.value),required:!0})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"colleagueName",children:"Colleague's Name (optional)"}),s.jsx(De,{id:"colleagueName",type:"text",placeholder:"John Doe",value:f,onChange:w=>h(w.target.value)})]})]}),s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:[p?"Already have an account?":"Don't have an account?"," ",s.jsx("button",{type:"button",onClick:()=>v(!p),className:"text-primary hover:underline",children:p?"Sign in":"Sign up"})]}),s.jsx(W,{type:"submit",className:"w-full",disabled:m,children:m?s.jsxs(s.Fragment,{children:[s.jsx(an,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):n==="colleague"?"Send to Colleague":"Send to My Email"})]})]})})},u_e=()=>{var A;const e=Pa(),t=gt(),[r,n]=b.useState("beta"),[a,i]=b.useState(null),[o,l]=b.useState(23),[c,u]=b.useState([]),[d,f]=b.useState(""),[h,m]=b.useState(""),[g,p]=b.useState(!1),[v,y]=b.useState("self");b.useEffect(()=>{const C=sessionStorage.getItem("demoAnalysisId"),T=sessionStorage.getItem("demoAccessToken"),E=sessionStorage.getItem("demoClientName");C&&T&&E&&(f(C),m(E),(async()=>{const{data:R,error:B}=await ne.functions.invoke("get-demo-analysis",{body:{accessToken:T,anal
616ysisId:C}});if(B){console.error("Failed to fetch analysis:",B),ss.error("Failed to load your proposal analysis");return}if(R!=null&&R.success&&R.analysis){const H=R.analysis.analysis_result;u((H==null?void 0:H.slides)||[]),ss.success("Your proposal analysis is ready!")}})()),(async()=>{const{data:{session:M}}=await ne.auth.getSession();i((M==null?void 0:M.user)||null)})(),(async()=>{try{const{count:M}=await ne.from("profiles").select("*",{count:"exact",head:!0}),R=Math.max(0,9-(M||0));l(R)}catch(M){console.error("Error fetching spots:",M),l(9)}})(),new URLSearchParams(window.location.search).get("tab")==="founding"&&n("founding");const{data:{subscription:L}}=ne.auth.onAuthStateChange((M,R)=>{i((R==null?void 0:R.user)||null)});return()=>L.unsubscribe()},[]);const x=()=>{a?window.location.href="/founding-members":window.location.href="/auth"},w=[{name:"Free",price:"£0",priceId:null,period:"month",description:"Try Clientli's core features with limited credits",credits:"10 credits/month",seats:"1 seat",features:["Proposal Acceleration: 1 proposal draft (watermarked)","Value-Tied Pricing: 1 discovery analysis (≈1 hour)","Repeatable GTM: Track up to 2 clients","Basic Persona Builder","Community support","Upgrade anytime"],cta:"Join Clientli Free",popular:!1,isFree:!0},{name:"Starter",price:"£49",priceId:"price_1SHXDaGzwihjwu5p4LXUrmAT",period:"month",description:"Ideal for solo users exploring AI proposals",credits:"50 credits/month",seats:"1 seat",features:["Proposal Acceleration: 5 branded exports/mo","Value-Tied Pricing: 5 discovery analyses (≈5 hours)","Repeatable GTM: Track up to 5 clients","Persona Builder (basic)","Full Beta access","Cancel anytime"],cta:"Start Beta Access",popular:!1},{name:"Growth",price:"£99",priceId:"price_1SHXDcGzwihjwu5pgnZwRr69",period:"month",description:"For small teams building automation workflows",credits:"100 credits/month",seats:"1 seat",features:["Proposal Acceleration: 15 branded exports/mo","Value-Tied Pricing: 10 analyses/mo (≈10 hours)","Repeatable GTM: Track up to 10 clients","Persona & Playbook Builder","ROI tracker automations","Priority support"],cta:"Start Beta Access",popular:!0},{name:"Pro",price:"£199",priceId:"price_1SHXDeGzwihjwu5paN2iGAUI",period:"month",description:"Agencies or consultants using Clientli across clients",credits:"500 credits/month",seats:"up to 5 seats",features:["Proposal Acceleration: Unlimited exports","Value-Tied Pricing: 50 analyses/mo (≈50 hours)","Repeatable GTM: Track up to 25 clients","White-label exports","Team workspaces","Client Engagement Portal","Priority support"],cta:"Start Beta Access",popular:!1}],N={name:"Founding Member",subtitle:s.jsxs(s.Fragment,{children:["Limited to ",s.jsx("span",{className:"line-through text-muted-foreground",children:"First 100"})," ",s.jsxs("span",{className:"font-medium text-destructive",children:[o," spaces left"]})]}),originalPrice:"£1,999",price:"£500",period:"first 12 months",savings:"£1,499",features:["12-month access begins from official launch in Q4","Lock in early access at heavily discounted rate","Full access to all Clientli features","Proposal Builder with unlimited exports","Expansion Radar and ROI tracking","Persona & Playbook Builder","Priority support and feature requests","Founding Member badge and recognition"],cta:"Secure Your Founding Membership",ctaVariant:"default"},j=[{icon:rt,label:"Discovery analysis",cost:"1 credit",description:"per processed call/transcript"},{icon:rt,label:"Proposal export",cost:"2 credits",description:"branded PDF/PPT section"},{icon:qe,label:"Expansion Opportunity",cost:"1 credit",description:"card created"},{icon:bt,label:"Stakeholder persona",cost:"1 credit",description:"generated"},{icon:Mt,label:"Playbook export",cost:"1 credit",description:"persona-based comms/objection pack"},{icon:qe,label:"ROI/Value report",cost:"2 credits",description:"export"},{icon:u$,label:"Client Engagement",cost:"1 credit",description:"share-link (new link)"}],S=[{icon:jc,title:"Priority Access",description:"First access to new features as they launch"},{icon:bc,title:"Shape Roadmap",description:"We'll interview you; your pains drive build order"},{icon:Xl,title:"Discounted Pricing",description:"Locked pricing for 12 months with Founding Member badge"}],_=[{question:"What does the Free tier include?",answer:"The Free tier gives you 10 credits per month to try Clientli's core features. This is enough for 1 discovery call analysis, 1 proposal draft (with watermark), and tracking up to 2 clients. It's perfect for testing Clientli with a real client project before upgrading to a paid plan."},{question:"Can I upgrade from Free to a paid plan?",answer:"Yes! You can upgrade to any paid plan at any time. Your remaining free credits will be replaced by your new plan's credit allocation. All your data, proposals, and client records will be preserved during the upgrade."},{question:"What's the difference between Beta Access and Founding Membership?",answer:"Beta Access is a monthly subscription that gives you full access to Clientli with flexible cancellation. Founding Membership is a limited-time offer (100 spots only) that includes lifetime benef
616its, roadmap influence, priority support, and significant cost savings over 12 months."},{question:"Can I cancel my Beta Access subscription anytime?",answer:"Yes! You can cancel your monthly subscription at any time with no penalties or long-term commitments. Your access will continue until the end of your current billing period."},{question:"How do credits work with my monthly plan?",answer:"Each plan includes a monthly credit allocation (Starter: 50, Growth: 100, Pro: 500). Credits are only used for high-value actions like proposal exports, discovery analysis, and ROI reports. Viewing, organizing, and browsing are completely free and don't use credits."},{question:"What happens if I run out of credits?",answer:"If you exhaust your monthly credits, you can either upgrade to a higher plan with more credits, or wait until your credits refresh at the start of your next billing cycle. We'll notify you before you run out."},{question:"Can I upgrade from Beta Access to Founding Member later?",answer:`Yes! As long as founding member spots are available (currently ${o} left), you can upgrade at any time. However, spots are limited and filling quickly, so we recommend securing your founding membership if you're interested in the exclusive benefits.`},{question:"When will I get access after signing up?",answer:"Immediately! Once you complete payment, you'll receive login credentials and can start using Clientli right away. All features in your plan are available from day one."},{question:"Is my data secure?",answer:"Yes — GDPR compliant, role-based access, and pseudonymised exports. Enterprise security options available for larger consultancies."},{question:"What makes Clientli different from other consulting tools?",answer:"Clientli combines AI-powered proposal generation, expansion tracking, and ROI analysis in one platform. We automate the busy work (discovery analysis, opportunity tracking) so you can focus on high-value client interactions and closing deals."}],P=[{question:"When will I get access to Clientli?",answer:"We're rolling features out in phases over the coming months. As a founding member, you'll get priority invites before anyone else as each feature goes live."},{question:"Can I get a refund if I change my mind?",answer:"Yes — anytime before your access period starts, your £500 pre-payment is fully refundable with no questions asked. We want zero risk for you."},{question:"How will I stay updated on progress?",answer:"You'll receive regular progress emails with transparent updates on what's shipping, what we're testing, and how your feedback is shaping the product. Plus access to a private founder-only channel."},{question:"What happens to my £500 pre-payment?",answer:"Your payment is held securely and secures 12-months discounted priority access, no matter how pricing evolves. It's refundable anytime before launch if you change your mind."},{question:"How does the founding member input process work?",answer:"You'll have the chance to vote on priorities and share your client pain points so we focus on what matters most. You're helping shape the product, not just using it."},{question:"Is my data secure?",answer:"Yes — GDPR compliant, role-based access, and pseudonymised exports. Enterprise security options available for larger consultancies."},{question:"What makes this different from other consulting tools?",answer:"We're building Clientli with you, not just for you. Your founding member status means direct input on features, priority access, and locked-in pricing as we scale."},{question:"What do I do after joining as a founding member?",answer:"Sit tight — you'll hear from us shortly with onboarding instructions. Think of a client project where Clientli could save you time, because you'll test it there first."}],k=C=>{y(C),p(!0)};return s.jsxs("div",{className:"min-h-screen bg-background pt-32",children:[s.jsx(cs,{}),c.length>0&&s.jsx("section",{className:"py-12 px-4 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto max-w-4xl",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsxs("h2",{className:"text-3xl font-bold mb-2",children:["Your Proposal Analysis for ",h]}),s.jsx("p",{className:"text-muted-foreground",children:"Swipe through all 5 strategic slides below. Email yourself or share with a colleague."})]}),s.jsxs(XS,{className:"mb-8",children:[s.jsx(QS,{children:c.map(C=>s.jsx(JS,{children:s.jsxs(z,{children:[s.jsxs(oe,{className:"bg-gradient-to-r from-primary to-primary/80 text-primary-foreground",children:[s.jsxs("div",{className:"text-xs opacity-90 mb-1",children:["SLIDE ",C.slideNumber," OF 5"]}),s.jsx(le,{className:"text-xl",children:C.title})]}),s.jsxs(V,{className:"pt-6 space-y-4",children:[s.jsx("p",{className:"font-semibold text-lg",children:C.content.headline}),s.jsx("ul",{className:"space-y-2",children:C.content.bullets.map((T,E)=>s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx("span",{className:"text-primary text-xl mt-0.5",children:"▸"}),s.jsx("span",{className:"text-muted-foreground",children:T})]},E))}),s.jsx("div",{className:"bg-muted p-4 rounded-lg border-l-4 border-primary",children:s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Key Insight:"})," ",C.content.insight]})})]})]})},C.slideNumber))}),s.jsx($5,{}),s.jsx(M5,{})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs(W,{size:"lg",onClick:()=>k("self"),className:"gap-2",children:[s.jsx(yp,{className:"w-4 h-4"}),"Email to Me"]}),s.jsxs(W,{size:"lg",variant:"outline",onClick:()=>k("colleague"),className:"gap-2",children:[s.jsx(l$,{className:"w-4 h-4"}),"Email to Colleague"]})]})]})}),((A=e.state)==null?void 0:A.message)&&s.jsx("div",{className:"container mx-auto max-w-4xl px-4 mb-6",children:s.jsxs(Bg,{className:"border-primary/50 bg-primary/5",children:[s.jsx(As,{className:"h-4 w-4 text-primary"}),s.jsx(R5,{className:"text-primary",children:"Access Required"}),s.jsx(zg,{className:"text-foreground",children:e.state.message})]})}),s.jsxs("section",{className:"relative py-20 px-4 overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-background to-secondary/5"}),s.jsxs("div",{className:"container mx-auto max-w-4xl relative z-10",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx(ue,{className:"mb-4",variant:"outline",children:"Private Beta — Limited Access"}),s.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Choose How You'd Like to Join Clientli"}),s.jsxs("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:["Start using Clientli today to explore proposals, automation, and ROI tools.",s.jsx("br",{}),"Or join as a Founding Member to shape the roadmap and lock in lifetime benef
616its."]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 max-w-2xl mx-auto mb-8",children:[s.jsxs(W,{size:"lg",className:`flex-1 h-16 text-lg transition-all duration-300 ${r==="beta"?"bg-primary text-primary-foreground shadow-lg scale-105":"bg-transparent border-2 border-primary text-primary hover:scale-105"}`,onClick:()=>n("beta"),children:[s.jsx(ba,{className:"mr-2 h-5 w-5"}),"Try Clientli (Beta Access)"]}),s.jsxs(W,{size:"lg",className:`flex-1 h-16 text-lg transition-all duration-300 ${r==="founding"?"bg-primary text-primary-foreground shadow-lg scale-105":"bg-transparent border-2 border-primary text-primary hover:scale-105"}`,onClick:()=>n("founding"),children:[s.jsx(Xl,{className:"mr-2 h-5 w-5"}),"Become a Founding Member"]})]}),s.jsx("div",{className:"text-center",children:r==="beta"?s.jsx("p",{className:"text-muted-foreground",children:"Monthly subscription • Full access during Beta • Cancel anytime"}):s.jsxs("p",{className:"text-muted-foreground",children:["Limited to 100 members • Only ",o," spaces left • Exclusive benefits"]})})]})]}),s.jsx("section",{className:"py-20 px-4",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[r==="beta"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Choose Your Plan"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Start free or schedule a call for custom plans"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:[w.filter(C=>C.isFree).map((C,T)=>s.jsxs(z,{className:`relative ${C.popular?"border-primary shadow-lg":""}`,children:[C.popular&&s.jsxs(ue,{className:"absolute -top-3 left-1/2 transform -translate-x-1/2 bg-primary",children:[s.jsx(jc,{className:"h-3 w-3 mr-1"}),"Most Popular"]}),C.isFree&&s.jsx(ue,{className:"absolute -top-3 left-1/2 transform -translate-x-1/2 bg-green-500",children:"Risk-Free Start"}),s.jsxs(oe,{className:"text-center pb-4",children:[s.jsx(le,{className:"text-xl",children:C.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:C.description}),s.jsxs("div",{className:"py-4",children:[s.jsxs("div",{className:"text-3xl font-bold",children:[C.price,s.jsxs("span",{className:"text-lg font-normal text-muted-foreground",children:[" / ",C.period]})]}),s.jsxs("div",{className:"text-sm text-muted-foreground mt-2",children:[C.credits," · ",C.seats]})]})]}),s.jsxs(V,{className:"space-y-4",children:[s.jsx("div",{className:"space-y-3",children:C.features.map((E,O)=>s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:E})]},O))}),s.jsx(W,{className:"w-full",variant:C.isFree||C.popular?"default":"outline",onClick:async()=>{if(C.isFree){const{data:{session:E}}=await ne.auth.getSession();if(E!=null&&E.user){const{data:O}=await ne.from("user_credits").select("balance, plan_allocation").eq("user_id",E.user.id).maybeSingle();if(O&&O.plan_allocation>0)ss.success("You already have access! Redirecting to portal..."),t("/portal/dashboard");else try{const{error:D}=await ne.rpc("initialize_user_credits",{p_user_id:E.user.id,p_plan_allocation:10});if(D)throw D;ss.success("Welcome to Clientli! You have 10 free credits to get started."),t("/portal/dashboard")}catch(D){console.error("Error initializing free credits:",D),ss.error("Failed to set up free account. Please try again.")}}else sessionStorage.setItem("selectedFreeTier","true"),t("/auth")}else sessionStorage.setItem("selectedBetaPlan",C.name.toLowerCase()),sessionStorage.setItem("selectedBetaPriceId",C.priceId),t(`/auth?plan=${C.name.toLowerCase()}`)},children:C.cta})]})]},T)),s.jsxs(z,{className:"relative border-2 border-primary/50",children:[s.jsxs(oe,{className:"text-center pb-4",children:[s.jsx(le,{className:"text-xl",children:"Need More?"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Custom plans for agencies and teams"}),s.jsxs("div",{className:"py-4",children:[s.jsx("div",{className:"text-3xl font-bold",children:"Custom"}),s.jsx("div",{className:"text-sm text-muted-foreground mt-2",children:"Let's discuss your needs"})]})]}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Higher credit allocations"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Multiple team seats"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"White-label options"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Priority support"})]})]}),s.jsx(W,{className:"w-full",variant:"outline",onClick:()=>window.open("https://calendly.com/tony_leania/","_blank"),children:"Schedule a Call"})]})]})]}),s.jsx("div",{className:"text-center mt-8",children:s.jsx(ue,{variant:"outline",className:"text-sm",children:"✅ Full access during Beta • All features unlocked"})})]}),r==="founding"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Become a Founding Member"}),s.jsxs("p",{className:"text-xl text-muted-foreground mb-2",children:["Limited to 100 members — ",s.jsxs("span",{className:"font-semibold text-foreground",children:[o," spaces left"]})]})]}),s.jsx("div",{className:"flex justify-center",children:s.jsxs(z,{className:"max-w-lg border-2 border-primary shadow-2xl relative",children:[s.jsxs(ue,{className:"absolute -top-3 left-1/2 transform -translate-x-1/2 bg-gradient-to-r from-yellow-600 to-yellow-400 text-white",children:[s.jsx(Xl,{className:"h-3 w-3 mr-1"}),"Limited Offer"]}),s.jsxs(oe,{className:"text-center pb-4",children:[s.jsx(le,{className:"text-2xl font-bold",children:N.name}),s.jsx("div",{className:"text-sm text-muted-foreground",children:N.subtitle}),s.jsxs("div",{className:"py-4",children:[s.jsxs("div",{className:"text-sm text-muted-foreground line-through mb-1",children:["Instead of ",N.originalPrice,"/year"]}),s.jsx("div",{className:"text-4xl font-bold text-primary",children:N.price}),s.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["for your ",N.period]}),s.jsxs("div",{className:"text-sm font-medium text-green-600 mt-2",children:["Save ",N.savings]})]})]}),s.jsxs(V,{className:"space-y-4",children:[s.jsx("div",{className:"space-y-3",children:N.features.map((C,T)=>s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:C})]},T))}),s.jsx(W,{variant:N.ctaVariant,className:"w-full",size:"lg",onClick:x,children:N.cta})]})]})}),s.jsxs("div",{className:"text-center mt-8 space-y-2",children:[s.jsxs("p",{className:"text-sm text-muted-foreground",children:["⏰ Only ",o," spaces remaining"]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Founding Members get roadmap influence, recognition, and early access pricing."})]})]})]})}),s.jsx("section",{className:"py-20 px-4 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How Credits Work"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-2",children:"Only metered on high-value actions (viewing/organising is free)."}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"You only spend credits when you create client-ready assets."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:j.map((C,T)=>{const E=C.icon;return s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-6",children:[s.jsx(E,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:C.label}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:C.description}),s.jsx(ue,{variant:"outline",children:C.cost})]})},T)})}),s.jsxs("div",{className:"bg-card border rounded-xl p-6 text-center",children:[s.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Top-ups"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[s.jsx("div",{className:"text-sm",children:s.jsx("span",{className:"font-medium",children:"£20 → 50 credits"})}),s.jsx("div",{className:"text-sm",children:s.jsx("span",{className:"font-medium",children:"£75 → 250 credits"})}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Credits roll over for 3 months"})]})]})]})}),s.jsx("section",{className:"py-20 px-4",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Founding Member Perks (
616Beta)"})}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:S.map((C,T)=>{const E=C.icon;return s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-8",children:[s.jsx(E,{className:"h-16 w-16 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-3",children:C.title}),s.jsx("p",{className:"text-muted-foreground",children:C.description})]})},T)})}),s.jsx("div",{className:"text-center",children:s.jsx(W,{size:"lg",className:"text-lg px-8",onClick:x,children:"Apply for Founding Access"})})]})}),s.jsx("section",{className:"py-20 px-4 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto max-w-4xl",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What's in Beta Right Now"})}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(It,{className:"h-5 w-5 text-green-600"}),"Live Features"]})}),s.jsx(V,{children:s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsx("li",{children:"• Proposal Builder (drafts)"}),s.jsx("li",{children:"• Discovery analysis"}),s.jsx("li",{children:"• Expansion Radar (opportunity cards)"}),s.jsx("li",{children:"• Personas/Playbooks (v1)"}),s.jsx("li",{children:"• Exports (PDF)"})]})})]}),s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(bc,{className:"h-5 w-5 text-primary"}),"Rolling Out"]})}),s.jsxs(V,{children:[s.jsxs("ul",{className:"space-y-2 text-sm",children:[s.jsx("li",{children:"• Engagement Portal share-links"}),s.jsx("li",{children:"• ROI tracker automations"}),s.jsx("li",{children:"• White-label"}),s.jsx("li",{children:"• Team workspaces"})]}),s.jsx(W,{variant:"link",className:"p-0 h-auto mt-4 text-primary",children:"See roadmap →"})]})]})]})]})}),s.jsx("section",{className:"py-20 px-4",children:s.jsxs("div",{className:"container mx-auto max-w-4xl",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Frequently Asked Questions"}),r==="beta"&&s.jsx("p",{className:"text-muted-foreground",children:"Questions about Beta Access subscriptions"}),r==="founding"&&s.jsx("p",{className:"text-muted-foreground",children:"Questions about Founding Membership"})]}),s.jsx(gSe,{type:"single",collapsible:!0,className:"w-full",children:r==="beta"?_.map((C,T)=>s.jsxs(Ij,{value:`item-${T}`,children:[s.jsx($j,{className:"text-left",children:C.question}),s.jsx(Mj,{className:"text-muted-foreground",children:C.answer})]},T)):P.map((C,T)=>s.jsxs(Ij,{value:`item-${T}`,children:[s.jsx($j,{className:"text-left",children:C.question}),s.jsx(Mj,{className:"text-muted-foreground",children:C.answer})]},T))})]})}),r==="beta"?s.jsx("section",{className:"py-20 px-4 bg-gradient-to-br from-primary/5 via-background to-secondary/5",children:s.jsxs("div",{className:"container mx-auto max-w-4xl text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Ready to Start Your Beta Access?"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Choose a plan above and start exploring Clientli today."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(W,{size:"lg",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"View Plans"}),s.jsx(W,{size:"lg",variant:"outline",onClick:()=>n("founding"),children:"Or Become a Founding Member"})]})]})}):s.jsx(LS,{}),s.jsx(c_e,{open:g,onOpenChange:p,analysisId:d,action:v,clientName:h})]})},d_e="/assets/hero-proposal-generator-BOqflNZl.jpg",f_e=[{icon:rt,title:"Auto-Transcript Analysis",description:"Scans uploaded transcripts or call notes. Extracts pain points, goals, and triggers."},{icon:qe,title:"ROI Framing Engine",description:"Quantifies potential savings, efficiencies, or revenue growth. Maps outcomes directly to client objectives."},{icon:ba,title:"Proposal Draft Generator",description:"Creates structured documents: executive summary, solution fit, ROI case. Outputs in slide or PDF format."}
616,{icon:Mt,title:"Template Library",description:"Access pre-built templates for RFPs, proposals, and one-pagers. Customisable for firm branding and tone."},{icon:bt,title:"Collaboration Mode",description:"Share draft proposals with colleagues for edits. Track changes and finalise before client send-out."}],h_e=[{title:"For Consultants / Sales Teams",description:"Save days of manual writing; respond faster to opportunities."},{title:"For Account Managers",description:"Standardise proposals while tailoring ROI for each client."},{title:"For Clients",description:"Receive compelling, data-backed proposals that speak to leadership priorities."}],m_e=["Sales consultant uploads a discovery call transcript",'Proposal Builder extracts: "Manual invoice approval delays", "Ops team overburdened"','ROI Framing Engine calculates: "£180K annual savings / 40% faster approval"',"Clientli generates a deck with Executive Summary, Proposed Solution, ROI Impact, Next Steps","Consultant reviews, applies client logo, and exports"],p_e=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsxs("main",{children:[s.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden bg-gradient-hero",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background/90 via-background/50 to-background/90"}),s.jsx("div",{className:"container relative z-10 mx-auto px-6 lg:px-8",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"text-center lg:text-left",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-card border backdrop-blur-sm mb-6",children:[s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full animate-pulse"}),s.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Proposal Builder"})]}),s.jsxs("h1",{className:"text-4xl lg:text-6xl font-bold tracking-tight mb-6",children:["Turn discovery calls into"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"client-ready proposals"})," ","in minutes"]}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mb-8",children:"Proposal Builder transforms transcripts, notes, and discovery insights into polished, ROI-driven proposals. Consultants and sales teams can skip the manual prep and go straight to client-ready decks that win deals."}),s.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center lg:justify-start",children:s.jsxs(W,{variant:"hero",size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Generate a Proposal",s.jsx(Ht,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})})]}),s.jsx("div",{className:"relative",children:s.jsxs("div",{className:"relative rounded-2xl overflow-hidden shadow-elegant",children:[s.jsx("img",{src:d_e,alt:"Proposal Builder Dashboard",className:"w-full h-auto"}),s.jsx("div",{className:"absolute -bottom-4 -right-4 bg-card p-4 rounded-xl shadow-card border backdrop-blur-sm",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-3 h-3 bg-primary rounded-full animate-pulse"}),s.jsx("span",{className:"text-sm font-medium",children:"Proposal Generated"})]})})]})})]})})]}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"What It Does"})}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-card rounded-xl flex items-center justify-center mx-auto mb-4",children:s.jsx(rt,{className:"h-8 w-8 text-primary"})}),s.jsx("p",{className:"text-muted-foreground",children:"Listens to discovery calls or ingests transcripts/notes"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-card rounded-xl flex items-center justify-center mx-auto mb-4",children:s.jsx(Mt,{className:"h-8 w-8 text-primary"})}),s.jsx("p",{className:"text-muted-foreground",children:"Identifies client pain points, inefficiencies, and ROI opportunities"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-card rounded-xl flex items-center justify-center mx-auto mb-4",children:s.jsx(ba,{className:"h-8 w-8 text-primary"})}),s.jsx("p",{className:"text-muted-foreground",children:"Generates tailored proposals aligned to your services or offerings"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-card rounded-xl flex items-center justify-center mx-auto mb-4",children:s.jsx(qe,{className:"h-8 w-8 text-primary"})}),s.jsx("p",{className:"text-muted-foreground",children:"Produces exec-ready decks, RFP responses, and sales collateral"})]})]})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"Key Features"})}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:f_e.map((e,t)=>s.jsxs("div",{className:"group p-6 rounded-xl bg-card border shadow-card hover:shadow-elegant transition-all duration-300 hover:scale-105",children:[s.jsx("div",{className:"mb-4",children:s.jsx("div",{className:"w-12 h-12 bg-gradient-card rounded-lg flex items-center justify-center group-hover:bg-gradient-primary transition-all duration-300",children:s.jsx(e.icon,{className:"h-6 w-6 text-primary group-hover:text-primary-foreground transition-colors"})})}),s.jsx("h3",{className:"text-xl font-semibold mb-3",children:e.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.description})]},t))})]})}),s.jsx("section",{className:"py-24 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"Why It Matters"})}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:h_e.map((e,t)=>s.jsxs("div",{className:"p-6 rounded-xl bg-card border shadow-card",children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:e.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.description})]},t))})]})}),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",children:"Example User Journey"})}),s.jsx("div",{className:"max-w-4xl mx-auto",children:m_e.map((e,t)=>s.jsxs("div",{className:"flex items-start gap-6 mb-8 last:mb-0",children:[s.jsx("div",{className:"w-8 h-8 bg-gradient-primary rounded-full flex items-center justify-center text-primary-foreground font-bold text-sm flex-shrink-0",children:t+1}),s.jsx("div",{className:"pt-1",children:s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e})})]},t))})]})}),s.jsxs("section",{className:"py-24 bg-gradient-hero relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background/90 via-background/50 to-background/90"}),s.jsxs("div",{className:"container relative z-10 mx-auto px-6 lg:px-8 text-center",children:[s.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold mb-6",children:["Ready to transform your"," ",s.jsx("span",{className:"bg-gradient-primary bg-clip-text text-transparent",children:"proposal process?"})]}),s.jsx("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Join hundreds of consultants and sales teams who've streamlined their proposal workflow with Clientli."}),s.jsxs(W,{variant:"hero",size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Start Building Proposals",s.jsx(Ht,{className:"ml-2 h-4 w-4 group-hover:translate-x-1 transition-transform"})]})]})]})]})]}),g_e=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsxs("main",{children:[s.jsxs("section",{className:"relative py-20 overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-accent/5"}),s.jsx("div",{className:"container mx-auto px-4 relative",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx(ue,{variant:"outline",className:"text-primary border-primary/20",children:"Clientli – Expansion Radar"}),s.jsxs("h1",{className:"text-4xl md:text-6xl font-bold leading-tight",children:["Spot upsell opportunities"," ",s.jsx("span",{className:"text-primary",children:"before your client asks"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed",children:"Expansion Radar scans client conversations, workflows, and adoption data to surface new revenue opportunities — helping consultants and sales teams grow accounts systematically."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(W,{size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Discover Expansion Opportunities",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{variant:"outline",size:"lg",onClick:()=>window.location.href="/discovery-call-analysis",children:"View Demo"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 pt-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"85%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Opportunity Detection Rate"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"£150K"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Avg. Pipeline Growth"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"3x"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster Expansion"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-primary/20 to-accent/20 rounded-3xl blur-3xl transform rotate-3"}),s.jsx("img",{src:c5,alt:"Expansion Radar Dashboard",className:"relative rounded-2xl shadow-2xl border border-border/50"})]})]})})]}),s.jsx("section",{className:"py-20 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What It Does"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Transform client data into revenue opportunities with AI-powered expansion intelligence"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[s.jsx(z,{className:"text-center p-6",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(Mt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Analyses Conversations"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Scans meeting transcripts, client workflows, and adoption metrics to identify gaps"})]})}),s.jsx(z,{className:"text-center p-6",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(qe,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Surfaces Opportunities"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Identifies cross-sell and upsell opportunities aligned with your offerings"})]})}),s.jsx(z,{className:"text-center p-6",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(bt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Prioritises by Impact"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Ranks opportunities by ROI impact, client readiness, and leadership alignment"})]})}),s.jsx(z,{className:"text-center p-6",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(rt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Generates Decks"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Creates client-facing expansion decks to simplify executive buy-in"})]})})]})]})}),s.jsx("section",{className:"py-20",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Key Features"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Everything you need to systematically grow your client accounts"})]}),s.jsxs("div",{className:"space-y-12",children:[s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ba,{className:"h-8 w-8 text-primary"}),s.jsx("h3",{className:"text-2xl font-bold",children:"Signal Detection"})]}),s.jsx("p",{className:"text-lg text-muted-foreground",children:`AI scans transcripts for phrases like "manual reporting takes too long" or "we're struggling with data handoffs" and converts signals into potential opportunities.`}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary"}),s.jsx("span",{children:"Real-time conversation analysis"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary"}),s.jsx("span",{children:"Pain point identification"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary"}),s.jsx("span",{children:"Opportunity signal scoring"})]})]})]}),s.jsx(z,{className:"p-6",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsx("span",{className:"text-sm",children:'"Manual reporting takes too long"'}),s.jsx(ue,{variant:"secondary",children:"High Signal"})]}),s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsx("span",{className:"text-sm",children:'"Struggling with data handoffs"'}),s.jsx(ue,{variant:"secondary",children:"Medium Signal"})]}),s.jsxs("div",{className:"flex justify-between items-center p-3 bg-muted rounded-lg",children:[s.jsx("span",{className:"text-sm",children:'"Need better automation"'}),s.jsx(ue,{variant:"secondary",children:"High Signal"})]})]})})})]}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx(z,{className:"p-6 lg:order-2",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex justify-between items-center p-4 border rounded-lg",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:"CRM Automation"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"£75K ROI potential"})]}),s.jsx(ue,{className:"bg-green-100 text-green-800",children:"Qu
616ick Win"})]}),s.jsxs("div",{className:"flex justify-between items-center p-4 border rounded-lg",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold",children:"Data Integration"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"£40K ROI potential"})]}),s.jsx(ue,{variant:"outline",children:"Strategic"})]})]})})}),s.jsxs("div",{className:"space-y-6 lg:order-1",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(qe,{className:"h-8 w-8 text-primary"}),s.jsx("h3",{className:"text-2xl font-bold",children:"Opportunity Prioritisation"})]}),s.jsx("p",{className:"text-lg text-muted-foreground",children:'Ranks expansion plays by ROI vs. effort, highlighting "quick win" upsells vs. strategic long-term projects.'})]})]}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Mt,{className:"h-8 w-8 text-primary"}),s.jsx("h3",{className:"text-2xl font-bold",children:"Expansion Scorecard"})]}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Each account gets an Expansion Score showing readiness with breakdown: Potential Value, Adoption Gaps, Stakeholder Support."})]}),s.jsx(z,{className:"p-6",children:s.jsxs(V,{className:"pt-6",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("div",{className:"text-3xl font-bold text-primary",children:"8.5/10"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Expansion Score"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Potential Value"}),s.jsx("span",{className:"text-sm font-semibold",children:"High"})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Adoption Gaps"}),s.jsx("span",{className:"text-sm font-semibold",children:"Medium"})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Stakeholder Support"}),s.jsx("span",{className:"text-sm font-semibold",children:"High"})]})]})]})})]})]})]})}),s.jsx("section",{className:"py-20 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Why It Matters"})}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsx(z,{className:"text-center p-8",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(bt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-bold mb-4",children:"For Consultants"}),s.jsx("p",{className:"text-muted-foreground",children:"Expand client relationships by proactively finding new projects and revenue opportunities."})]})}),s.jsx(z,{className:"text-center p-8",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(qe,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-bold mb-4",children:"For Sales Teams"}),s.jsx("p",{className:"text-muted-foreground",children:'Reduce reliance on "reactive upsells" — systematically uncover growth opportunities.'})]})}),s.jsx(z,{className:"text-center p-8",children:s.jsxs(V,{className:"pt-6",children:[s.jsx(Mt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-bold mb-4",children:"For Clients"}),s.jsx("p",{className:"text-muted-foreground",children:"Get clear, quantified recommendations tied to ROI, not vague sales pushes."})]})})]})]})}),s.jsx("section",{className:"py-20",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Example User Journey"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"From discovery to expansion in four simple steps"})]}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-xl font-bold",children:"1"}),s.jsx("h3",{className:"font-semibold",children:"Upload Data"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Account Manager uploads discovery transcripts and adoption metrics"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-xl font-bold",children:"2"}),s.jsx("h3",{className:"font-semibold",children:"AI Detection"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Expansion Radar detects ops team struggling with manual reconciliations (£85K savings)"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-xl font-bold",children:"3"}),s.jsx("h3",{className:"font-semibold",children:"Score Assignment"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Clientli assigns Expansion Score: 8/10 – High Readiness for upselling"})]}),s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center mx-auto text-xl font-bold",children:"4"}),s.jsx("h3",{className:"font-semibold",children:"Export & Present"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Consultant exports Expansion Deck → positions upsell in quarterly business review (QBR)"})]})]})]})}),s.jsx("section",{className:"py-20 bg-primary text-primary-foreground",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Ready to unlock your expansion potential?"}),s.jsx("p",{className:"text-xl mb-8 opacity-90",children:"Start identifying revenue opportunities systematically with Expansion Radar"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs(W,{size:"lg",variant:"secondary",className:"group",onClick:()=>window.location.href="/auth",children:["Get Started with Expansion Radar",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{size:"lg",variant:"outline",className:"border-primary-foreground text-primary-foreground hover:bg-primary-foreground hover:text-primary",onClick:()=>window.open("https://calendly.com/tony_leania/","_blank"),children:"Schedule Demo"})]})]})})]})]}),v_e="/assets/hero-stakeholder-map-C-hTTTMw.jpg",x_e=()=>
616{const e=[{icon:Mt,title:"Influence–Interest Mapping",description:"Automatically positions stakeholders on a 2x2 grid. Highlights power players vs. peripheral voices."},{icon:QU,title:"Sentiment & Resistance Analysis",description:"Analyses transcripts for cues: 'concerned about cost', 'needs faster reporting'. Flags adoption risks and champions."},{icon:bt,title:"Persona Cards for Leaders",description:"Generates exec profiles with goals & KPIs, pain points, likely objections, and tailored messaging style."},{icon:rt,title:"Comms Playbooks",description:"Pre-built engagement strategies for C-suite: CFO → ROI, COO → efficiency, CIO → integrations & security."}],t=[{role:"Consultants & Sales Teams",benefit:"De-risk deals by showing clients you understand their leadership dynamics"},{role:"Account Managers",benefit:"Align renewal/expansion efforts with executive priorities"},{role:"Clients",benefit:"Ensures proposals speak directly to leadership concerns, making buy-in faster"}],r=[{step:"1",title:"Upload Discovery Data",description:"Sales lead uploads transcript from discovery call"},{step:"2",title:"AI Detection",description:"Clientli detects CFO skepticism, COO support, IT Director security concerns"},{step:"3",title:"Stakeholder Mapping",description:"Visual map shows power dynamics and sentiment analysis"},{step:"4",title:"Export Playbooks",description:"Tailored engagement strategies for each executive persona"}];return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background/95 to-accent/5",children:[s.jsx(cs,{}),s.jsx("section",{className:"relative px-6 py-20 lg:py-32",children:s.jsx("div",{className:"mx-auto max-w-7xl",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs(ue,{variant:"secondary",className:"w-fit",children:[s.jsx(d$,{className:"w-3 h-3 mr-1"}),"Stakeholder Management"]}),s.jsx("h1",{className:"text-4xl lg:text-6xl font-bold leading-tight bg-gradient-to-r from-primary via-primary to-secondary bg-clip-text text-transparent",children:"Win senior leadership buy-in with data-driven stakeholder insights"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Clientli maps out decision-makers, influencers, and blockers inside your client's organisation. It helps you understand who holds the power, what motivates them, and how to align them to your proposals."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(W,{size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Map Your Stakeholders",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{variant:"outline",size:"lg",onClick:()=>window.location.href="/discovery-call-analysis",children:"View Demo"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"95%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster executive alignment"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"3x"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Higher proposal acceptance"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:v_e,alt:"Stakeholder influence mapping dashboard",className:"w-full h-auto rounded-2xl shadow-2xl border border-border/20"}),s.jsxs("div",{className:"absolute -bottom-4 -right-4 bg-card border border-border rounded-lg p-4 shadow-lg",children:[s.jsx("div",{className:"text-sm font-medium",children:"Executive Alignment Score"}),s.jsx("div",{className:"text-2xl font-bold text-green-600",children:"8.2/10"})]})]})]})})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"What Stakeholder Management Does"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Turn complex organisational dynamics into clear, actionable insights that drive executive buy-in"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:["Collects data from discovery calls, org charts, and transcripts","Identifies who influences buying decisions and how supportive they are","Surfaces resistance risks and provides tailored comms strategies","Helps you frame proposals in leadership's language (ROI, compliance, efficiency)"].map((n,a)=>s.jsx(z,{className:"p-6 hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:s.jsx(Ct,{className:"w-5 h-5 text-primary"})}),s.jsx("p",{className:"text-sm leading-relaxed",children:n})]})},a))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Key Features"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Advanced stakeholder intelligence that reveals the hidden dynamics of decision-making"})]}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map((n,a)=>s.jsx(z,{className:"p-8 hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:s.jsx(V,{className:"p-0",children:s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-lg flex items-center justify-center shrink-0",children:s.jsx(n.icon,{className:"w-6 h-6 text-primary-foreground"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold",children:n.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.description})]})]})})},a))})]})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Why Stakeholder Management Matters"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Transform how you navigate complex organisational structures and decision-making processes"})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((n,a)=>s.jsx(z,{className:"p-6 text-center hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-primary rounded-full flex items-center justify-center mx-auto",children:s.jsx(qe,{className:"w-8 h-8 text-primary-foreground"})}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-lg font-semibold mb-2",children:["For ",n.role]}
616),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n.benefit})]})]})},a))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"How It Works"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"From discovery call to executive alignment in four simple steps"})]}),s.jsx("div",{className:"grid md:grid-cols-4 gap-8",children:r.map((n,a)=>s.jsxs("div",{className:"relative",children:[s.jsx(z,{className:"p-6 text-center hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-full flex items-center justify-center mx-auto text-lg font-bold text-primary-foreground",children:n.step}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:n.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.description})]})]})}),a<r.length-1&&s.jsx("div",{className:"hidden md:block absolute top-14 -right-4 w-8 h-0.5 bg-gradient-to-r from-primary to-secondary"})]},a))})]})}),s.jsx("section",{className:"px-6 py-20 bg-gradient-primary",children:s.jsx("div",{className:"mx-auto max-w-4xl text-center",children:s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-primary-foreground",children:"Ready to Win Executive Buy-In?"}),s.jsx("p",{className:"text-lg text-primary-foreground/90 max-w-2xl mx-auto",children:"Join leading consultants and sales teams who use Clientli to navigate complex stakeholder dynamics and secure executive alignment."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[s.jsxs(W,{size:"lg",variant:"secondary",className:"group",onClick:()=>window.location.href="/auth",children:["Start Mapping Stakeholders",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{size:"lg",variant:"outline",className:"bg-transparent border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10",onClick:()=>window.open("https://calendly.com/tony_leania/","_blank"),children:"Schedule Demo"})]})]})})})]})},y_e="/assets/hero-stakeholder-influence-map-fkLBZTlI.png",b_e=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsx("section",{className:"relative py-20 px-4 bg-gradient-to-br from-primary/5 via-background to-secondary/5 overflow-hidden",children:s.jsx("div",{className:"container mx-auto max-w-7xl",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Transform raw discovery into"," ",s.jsx("span",{className:"bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:"orchestrated client workflows"})]}),s.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed",children:"Clientli doesn't just identify opportunities — it maps them across entire workflows, showing where to intervene, how to prioritise, and what ROI each change unlocks. Perfect for building trust in proposals and expansion plays."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(W,{size:"lg",className:"text-lg px-8",onClick:()=>window.location.href="/auth",children:["Optimise Client Workflows",s.jsx(Ht,{className:"ml-2 h-5 w-5"})]}),s.jsx(W,{variant:"outline",size:"lg",className:"text-lg px-8",children:"View Demo"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 pt-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold text-primary",children:"12%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster Cycle Time"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold text-primary",children:"£180K"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Annual Savings"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl font-bold text-primary",children:"40%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Less Manual Work"})]})]})]}),s.jsx("div",{className:"relative",children:s.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden shadow-2xl",children:s.jsx("img",{src:y_e,alt:"Workflow optimization dashboard showing before and after workflow diagrams",className:"w-full h-full object-cover"})})})]})})}),s.jsx("section",{className:"py-20 px-4",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"What It Does"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Transform discovery insights into actionable workflow orchestration with AI-powered analysis"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-6",children:[s.jsx(Ek,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Workflow Mapping"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Converts discovery transcripts & app inventories into as-is workflow maps"})]})}),s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-6",children:[s.jsx(Mt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Bottleneck Detection"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Highlights inefficiencies, bottlenecks, and overlaps across end-to-e
616nd value chains"})]})}),s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-6",children:[s.jsx(ba,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Orchestration Design"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Proposes to-be workflows with automation, simplification, and orchestration"})]})}),s.jsx(z,{className:"text-center",children:s.jsxs(V,{className:"p-6",children:[s.jsx(rt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"ROI Playbooks"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Generates ROI-backed orchestration playbooks for client leadership"})]})})]})]})}),s.jsx("section",{className:"py-20 px-4 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Key Features"})}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(Ek,{className:"h-6 w-6 text-primary mr-3"}),"As-Is Workflow Capture"]}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"AI ingests meeting notes, process maps, and app lists"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Reconstructs how work really flows across departments"]})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(qe,{className:"h-6 w-6 text-primary mr-3"}),"Bottleneck & ROI Analysis"]}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Surfaces manual handoffs, delays, and redundant systems"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Tags each with potential time/cost savings"]})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(ba,{className:"h-6 w-6 text-primary mr-3"}),"To-Be Orchestration"]}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Suggests optimised workflows: automation, integration, standardisation"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Shows interdependencies across sales, ops, and finance"]})]})]})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(bt,{className:"h-6 w-6 text-primary mr-3"}),"Executive Playbooks"]}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Links each workflow change to leadership objectives"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"CFO savings, COO efficiency, CIO system alignment"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Generates exec-ready slides for proposals and QBRs"]})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(Mt,{className:"h-6 w-6 text-primary mr-3"}),"Change Alignment"]}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Flags stakeholders impacted in each workflow"]}),s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Provides comms & training recommendations"]})]})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-xl font-semibold mb-3 flex items-center",children:[s.jsx(rt,{className:"h-6 w-6 text-primary mr-3"}),"Client-Ready Export"]}),s.jsx("ul",{className:"space-y-2 text-muted-foreground",children:s.jsxs("li",{className:"flex items-start",children:[s.jsx(Ct,{className:"h-5 w-5 text-primary mr-2 mt-0.5 flex-shrink-0"}),"Visual workflow map + engagement plan for boardroom slides"]})})]})]})]})]})}),s.jsx("section",{className:"py-20 px-4",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Why It Matters"})}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsx(z,{children:s.jsxs(V,{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-semibold mb-3 text-primary",children:"For Consultants & Sales Teams"}),s.jsx("p",{className:"text-muted-foreground",children:"Prove credibility by showing you understand the client's business end-to-e
616nd. Differentiate proposals with quantified, workflow-level ROI."})]})}),s.jsx(z,{children:s.jsxs(V,{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-semibold mb-3 text-primary",children:"For Account Managers"}),s.jsx("p",{className:"text-muted-foreground",children:"Align renewal/expansion efforts with executive priorities and demonstrate ongoing value through workflow optimization."})]})}),s.jsx(z,{children:s.jsxs(V,{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-semibold mb-3 text-primary",children:"For Clients"}),s.jsx("p",{className:"text-muted-foreground",children:"See exactly how transformation plays out across their organisation with clear ROI and implementation paths."})]})})]})]})}),s.jsx("section",{className:"py-20 px-4 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How It Works"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"From discovery to executive presentation in four simple steps"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-primary text-primary-foreground rounded-full w-12 h-12 flex items-center justify-center mx-auto mb-4 text-xl font-bold",children:"1"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Upload Discovery"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Consultant uploads client's app list + SME transcript from discovery call"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-primary text-primary-foreground rounded-full w-12 h-12 flex items-center justify-center mx-auto mb-4 text-xl font-bold",children:"2"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Workflow Analysis"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Clientli reconstructs as-is order-to-cash workflow and identifies bottlenecks"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-primary text-primary-foreground rounded-full w-12 h-12 flex items-center justify-center mx-auto mb-4 text-xl font-bold",children:"3"}),s.jsx("h3",{className:"font-semibold mb-2",children:"ROI Optimization"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Orchestration engine proposes automated approvals and ERP-CRM integration"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-primary text-primary-foreground rounded-full w-12 h-12 flex items-center justify-center mx-auto mb-4 text-xl font-bold",children:"4"}),s.jsx("h3",{className:"font-semibold mb-2",children:"Executive Export"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Export Executive Workflow Playbook for proposal to CFO + COO"})]})]})]})}),s.jsx(LS,{})]}),Eh=b.forwardRef(({className:e,...t},r)=>s.jsx("textarea",{className:J("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
616ing-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}));Eh.displayName="Textarea";function a_(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var i_="Radio",[w_e,rF]=qt(i_),[j_e,N_e]=w_e(i_),nF=b.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:a=!1,required:i,disabled:o,value:l="on",onCheck:c,form:u,...d}=e,[f,h]=b.useState(null),m=Te(t,v=>h(v)),g=b.useRef(!1),p=f?u||!!f.closest("form"):!0;return s.jsxs(j_e,{scope:r,checked:a,disabled:o,children:[s.jsx(xe.button,{type:"button",role:"radio","aria-checked":a,"data-state":oF(a),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:m,onClick:se(e.onClick,v=>{a||c==null||c(),p&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),p&&s.jsx(iF,{control:f,bubbles:!g.current,name:n,value:l,checked:a,required:i,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});nF.displayName=i_;var sF="RadioIndicator",aF=b.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...a}=e,i=N_e(sF,r);return s.jsx(yr,{present:n||i.checked,children:s.jsx(xe.span,{"data-state":oF(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t})})});aF.displayName=sF;var S_e="RadioBubbleInput",iF=b.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...a},i)=>{const o=b.useRef(null),l=Te(o,i),c=a_(r),u=rN(t);return b.useEffect(()=>{const d=o.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(c!==r&&m){const g=new Event("click",{bubbles:n});m.call(d,r),d.dispatchEvent(g)}},[c,r,n]),s.jsx(xe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iF.displayName=S_e;function oF(e){return e?"checked":"unchecked"}var __e=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Vx="RadioGroup",[k_e,HCe]=qt(Vx,[fu,rF]),lF=fu(),cF=rF(),[P_e,C_e]=k_e(Vx),uF=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:a,value:i,required:o=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:f,...h}=e,m=lF(r),g=du(u),[p,v]=Gr({prop:i,defaultProp:a??null,onChange:f,caller:Vx});return s.jsx(P_e,{scope:r,name:n,required:o,disabled:l,value:p,onValueChange:v,children:s.jsx(fN,{asChild:!0,...m,orientation:c,dir:g,loop:d,children:s.jsx(xe.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":l?"":void 0,dir:g,...h,ref:t})})})});uF.displayName=Vx;var dF="RadioGroupItem",fF=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...a}=e,i=C_e(dF,r),o=i.disabled||n,l=lF(r),c=cF(r),u=b.useRef(null),d=Te(t,u),f=i.value===a.value,h=b.useRef(!1);return b.useEffect(()=>{const m=p=>{__e.includes(p.key)&&(h.current=!0)},g=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",g)}},[]),s.jsx(hN,{asChild:!0,...l,focusable:!o,active:f,children:s.jsx(nF,{disabled:o,required:i.required,
vendor: 4,832 bytes, line 616
616checked:f,...c,...a,name:i.name,ref:d,onCheck:()=>i.onValueChange(a.value),onKeyDown:se(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:se(a.onFocus,()=>{var m;h.current&&((m=u.current)==null||m.click())})})})});fF.displayName=dF;var O_e="RadioGroupIndicator",hF=b.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,a=cF(r);return s.jsx(aF,{...a,...n,ref:t})});hF.displayName=O_e;var mF=uF,pF=fF,A_e=hF;const gF=b.forwardRef(({className:e,...t},r)=>s.jsx(mF,{className:J("grid gap-2",e),...t,ref:r}));gF.displayName=mF.displayName;const od=b.forwardRef(({className:e,...t},r)=>s.jsx(pF,{ref:r,className:J("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(A_e,{className:"flex items-center justify-center",children:s.jsx(t$,{className:"h-2.5 w-2.5 fill-current text-current"})})}));od.displayName=pF.displayName;var Hx="Checkbox",[E_e,qCe]=qt(Hx),[T_e,o_]=E_e(Hx);function I_e(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:a,disabled:i,form:o,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:f}=e,[h,m]=Gr({prop:r,defaultProp:a??!1,onChange:c,caller:Hx}),[g,p]=b.useState(null),[v,y]=b.useState(null),x=b.useRef(!1),w=g?!!o||!!g.closest("form"):!0,N={checked:h,disabled:i,setChecked:m,control:g,setControl:p,name:l,form:o,value:d,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:bi(a)?!1:a,isFormControl:w,bubbleInput:v,setBubbleInput:y};return s.jsx(T_e,{scope:t,...N,children:$_e(f)?f(N):n})}var vF="CheckboxTrigger",xF=b.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},a)=>{const{control:i,value:o,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:g}=o_(vF,e),p=Te(a,d),v=b.useRef(c);return b.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>f(v.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,f]),s.jsx(xe.button,{type:"button",role:"checkbox","aria-checked":bi(c)?"mixed":c,"aria-required":u,"data-state":NF(c),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:p,onKeyDown:se(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:se(r,y=>{f(x=>bi(x)?!0:!x),g&&m&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});xF.displayName=vF;var l_=b.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:a,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return s.jsx(I_e,{__scopeCheckbox:r,checked:a,defaultChecked:i,disabled:l,required:o,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:h})=>s.jsxs(s.Fragment,{children:[s.jsx(xF,{...f,ref:t,__scopeCheckbox:r}),h&&s.jsx(jF,{__scopeCheckbox:r})]})})});l_.displayName=Hx;var yF="CheckboxIndicator",bF=b.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...a}=e,i=o_(yF,r);return s.jsx(yr,{present:n||bi(i.checked)||i.checked===!0,children:s.jsx(xe.span,{"data-state":NF(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});bF.displayName=yF;var wF="CheckboxBubbleInput",jF=b.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:l,disabled:c,name:u,value:d,form:f,bubbleInput:h,setBubbleInput:m}=o_(wF,e),g=Te(r,m),p=a_(i),v=rN(n);b.useEffect(()=>{const x=h;if(!x)return;const w=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(w,"checked").set,S=!a.current;if(p!==i&&j){const _=new Event("click",{bubbles:S});x.indeterminate=bi(i),j.call(x,bi(i)?!1:i),x.dispatchEvent(_)}},[h,p,i,a]);const y=b.useRef(bi(i)?!1:i);return s.jsx(xe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:l,disabled:c,name:u,value:d,form:f,...t,tabIndex:-1,ref:g,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});jF.displayName=wF;function $_e(e){return typeof e=="function"}function bi(e){return e==="indeterminate"}function NF(e){return bi(e)?"indeterminate":e?"checked":"unchecked"}const Vf=b.forwardRef(({className:e,...t},r)=>s.jsx(l_,{ref:r,className:J("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-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),...t,children:s.jsx(bF,{className:J("flex items-center justify-center text-current"),children:s.jsx(It,{className:"h-4 w-4"})})}));Vf.displayName=l_.displayName;function M_e({open:e,onOpenChange:t}
616){const r=[{name:"Free",subtitle:"Try Clientli",price:"£0",period:"month",credits:"10 credits / month",seats:"1 seat",features:["Proposal Acceleration: 1 proposal draft (watermarked)","Value-Tied Pricing: 1 discovery call analysis (up to 60 mins)","Repeatable GTM: Track up to 2 clients in My Clientlis"],cta:"Join Clientli",popular:!1},{name:"Pro",subtitle:"Seller's Copilot",price:"£99",period:"month",credits:"100 credits / month",seats:"1 seat",features:["Proposal Acceleration: Unlimited drafts, 5 branded exports/mo","Value-Tied Pricing: ROI & Value Tracker + Expansion Radar (10 analyses/mo ≈ 10 hours)","Repeatable GTM: Up to 10 clients, Persona & Playbook Builder"],cta:"Apply for Founding Access",note:"Private Beta — shape the roadmap.",popular:!0},{name:"Team",subtitle:"Advisory Partner",price:"£199",period:"month",credits:"500 credits / month",seats:"up to 5 seats",features:["Proposal Acceleration: Unlimited drafts, white-label exports","Value-Tied Pricing: ROI/Value reports, custom playbooks","Repeatable GTM: Shared workspaces, Client Engagement Portal, up to 25 clients"],cta:"Apply for Founding Access",popular:!1},{name:"Enterprise",subtitle:"Scale GTM",price:"Custom",period:"pricing",credits:"Unlimited seats",seats:"",features:["Proposal Acceleration: Enterprise-grade proposal builder","Value-Tied Pricing: Full ROI automation + API integrations","Repeatable GTM: SSO, audit logs, dedicated success manager, unlimited clients"],cta:"Talk to Sales",popular:!1}],n=["1 hour of discovery analysis = 10 credits (pro-rated by minutes)","Exports & client-facing assets (proposals, ROI reports, playbooks, share-links) = 5 credits each","Drafting, organising, and editing inside Clientli = free/unmetered"];return s.jsx(il,{open:e,onOpenChange:t,children:s.jsxs(zi,{className:"max-w-6xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Ui,{children:[s.jsx(Wi,{className:"text-2xl font-bold text-center",children:"Clientli Plans & Pricing"}),s.jsx(ol,{className:"text-center text-lg",children:"Clientli is your Proposal Copilot: save 20–40 hours per client, tie pricing to client value, and build a predictable GTM engine."})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:r.map((a,i)=>s.jsxs(z,{className:`relative ${a.popular?"border-primary shadow-lg":""}`,children:[a.popular&&s.jsxs(ue,{className:"absolute -top-3 left-1/2 transform -translate-x-1/2 bg-primary",children:[s.jsx(jc,{className:"h-3 w-3 mr-1"}),"Most Popular"]}),s.jsxs(oe,{className:"text-center pb-4",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2",children:[s.jsx("div",{className:"text-primary",children:"🔹"}),s.jsx(le,{className:"text-xl",children:a.name}),s.jsxs("span",{className:"text-muted-foreground",children:["— ",a.subtitle]})]}),s.jsxs("div",{className:"py-4",children:[s.jsxs("div",{className:"text-3xl font-bold",children:[a.price,a.period!=="pricing"&&s.jsxs("span",{className:"text-lg font-normal text-muted-foreground",children:[" / ",a.period]})]}),s.jsxs("div",{className:"text-sm text-muted-foreground mt-2",children:[a.credits," ",a.seats&&`· ${a.seats}`]})]})]}),s.jsxs(V,{className:"space-y-4",children:[s.jsx("div",{className:"space-y-3",children:a.features.map((o,l)=>s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:o})]},l))}),s.jsx(W,{className:"w-full",variant:a.popular?"default":"outline",children:a.cta}),a.note&&s.jsxs("p",{className:"text-xs text-muted-foreground text-center italic",children:["Note: ",a.note]})]})]},i))}),s.jsxs(z,{className:"mt-8 border-accent/20 bg-accent/5",children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(ba,{className:"h-5 w-5 text-accent"}),"How Credits Work (Simplified)"]})}),s.jsxs(V,{children:[s.jsx("div",{className:"space-y-2",children:n.map((a,i)=>s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-accent mt-2 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:a})]},i))}),s.jsxs("div",{className:"mt-6 pt-4 border-t border-border",children:[s.jsx("h4",{className:"font-medium mb-3",children:"Top-ups available:"}),s.jsxs("div",{className:"space-y-1 text-sm",children:[s.jsx("div",{children:"£20 → 50 credits"}),s.jsx("div",{children:"£75 → 250 credits"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"(Credits roll over for 3 months)"})]})]})]})]})]})})}const R_e=()=>{const[e,t]=b.useState(!1),[r,n]=b.useState(null),[a,i]=b.useState(!0),[o,l]=b.useState(!1),[c,u]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(!1),{toast:g}=xr(),p=gt(),[v]=lh(),[y,x]=b.useState({name:"",email:"",company:"",plan:"",readyToPay:"",importantFeatures:[],leastImportantFeatures:[],biggestChallenge:""}),w=[{icon:Sn,title:"Priority Access",description:"Early entry to new features before public launch"}
616,{icon:Mt,title:"Influence the Roadmap",description:"Your challenges help decide what we build next"},{icon:qe,title:"Discounted Pricing",description:"Founding Member rates locked for 12 months"},{icon:GU,title:"Exclusive Support",description:"Direct onboarding with our product team"}],N=[{icon:rt,title:"Proposal Builder",description:"Drafts & branded exports",status:"live"},{icon:th,title:"Expansion Radar",description:"Upsell/cross-sell insights",status:"live"},{icon:bt,title:"Stakeholder Mapping & Playbooks",description:"Client relationship intelligence",status:"live"},{icon:qe,title:"ROI & Value Tracker",description:"Pilot version",status:"live"},{icon:YU,title:"Client Engagement Portal",description:"Share-links for clients",status:"coming"}],j=["Proposals","Expansion","Stakeholder Maps","ROI Tracker","Engagement Portal"],S=async()=>{var A;if(r){u(!0);try{const{data:C,error:T}=await ne.functions.invoke("check-founding-member-payment",{headers:{Authorization:`Bearer ${(A=(await ne.auth.getSession()).data.session)==null?void 0:A.access_token}`}});if(T)throw T;f((C==null?void 0:C.hasPaid)||!1)}catch(C){console.error("Error checking payment status:",C),f(!1)}finally{u(!1)}}};b.useEffect(()=>{(async()=>{var O;const{data:{session:T}}=await ne.auth.getSession();if(n((T==null?void 0:T.user)||null),T!=null&&T.user){await S();try{const{data:D}=await ne.from("founding_members").select("*").eq("user_id",T.user.id).maybeSingle();D?(x({name:((O=T.user.user_metadata)==null?void 0:O.full_name)||"",email:T.user.email||"",company:"",plan:D.plan_interest||"",readyToPay:D.ready_to_pay||"",importantFeatures:D.important_features||[],leastImportantFeatures:D.least_important_features||[],biggestChallenge:D.biggest_challenge||""}),D.plan_interest&&D.ready_to_pay&&D.activated&&t(!0)):x($=>{var L;return{...$,name:((L=T.user.user_metadata)==null?void 0:L.full_name)||"",email:T.user.email||""}})}catch(D){console.error("Error loading existing data:",D)}}i(!1);const E=v.get("payment");E==="success"?(g({title:"Payment Successful! 🎉",description:"Your £500 founding member fee has been processed. You now have access to the form!"}),T!=null&&T.user&&await S(),window.history.replaceState({},"","/founding-members")):E==="cancelled"&&(g({title:"Payment Cancelled",description:"No charge has been made. You can try again anytime.",variant:"destructive"}),window.history.replaceState({},"","/founding-members"))})();const{data:{subscription:C}}=ne.auth.onAuthStateChange((T,E)=>{n((E==null?void 0:E.user)||null),E!=null&&E.user&&S()});return()=>C.unsubscribe()},[v,g]);const _=async()=>{var A;if(!r){p("/auth");return}l(!0);try{const{data:C,error:T}=await ne.functions.invoke("founding-member-payment",{headers:{Authorization:`Bearer ${(A=(await ne.auth.getSession()).data.session)==null?void 0:A.access_token}`}});if(T)throw T;C!=null&&C.url&&window.open(C.url,"_blank")}catch(C){console.error("Error processing payment:",C),g({title:"Payment Error",description:"There was an issue processing your payment. Please try again.",variant:"destructive"})}finally{l(!1)}},P=(A,C)=>{x(T=>{const E=C==="important"?"importantFeatures":"leastImportantFeatures",O=T[E];return O.includes(A)?{...T,[E]:O.filter(D=>D!==A)}:{...T,[E]:[...O,A]}})},k=async A=>{if(A.preventDefault(),!r){p("/auth");return}if(!d){g({title:"Payment Required",description:"Please pay the founding member fee first to submit the form.",variant:"destructive"});return}if(!y.plan||!y.readyToPay){g({title:"Missing Information",description:"Please fill in all required fields before submitting.",variant:"destructive"});return}try{const{error:C}=await ne.from("founding_members").upsert({user_id:r.id,plan_interest:y.plan,ready_to_pay:y.readyToPay,important_features:y.importantFeatures,least_important_features:y.leastImportantFeatures,biggest_challenge:y.biggestChallenge||null,activated:!0},{onConflict:"user_id"});if(C)throw console.error("Database error:",C),C;t(!0),g({title:"Success!",description:"Your information has been saved. We'll be in touch soon!"})}catch(C){console.error("Error saving form:",C),g({title:"Error",description:"There was an issue saving your information. Please try again.",variant:"destructive"})}};return a||c?s.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx(an,{className:"h-8 w-8 animate-spin mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:c?"Checking payment status...":"Loading..."})]})}):e?s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsx("main",{className:"pt-20",children:s.jsx("section",{className:"py-24 px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("div",{className:"mb-8",children:s.jsxs(ue,{variant:"secondary",className:"mb-4",children:[s.jsx(jc,{className:"h-4 w-4 mr-2"}),"Founding Member"]})}),s.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent",children:"Welcome to the Founding Members! 🎉"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-12 max-w-3xl mx-auto",children:"Thank y
616ou for your founding member investment. We'll be in touch within 24 hours to start your onboarding process and discuss your specific needs."}),s.jsxs("div",{className:"space-y-6",children:[s.jsx(z,{className:"border-primary/20 bg-primary/5",children:s.jsx(V,{className:"p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(It,{className:"h-6 w-6 text-primary mt-1"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:"What Happens Next"}),s.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1 text-left",children:[s.jsx("li",{children:"• Our team will reach out within 24 hours"}),s.jsx("li",{children:"• We'll schedule your personalized onboarding session"}),s.jsx("li",{children:"• You'll get early access to new features as they launch"}),s.jsx("li",{children:"• Your feedback will directly influence our roadmap"})]})]})]})})}),s.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Your 12-month access begins from our official launch in Q4 2025"})]})]})})})]}):r&&!d?s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsx("main",{className:"pt-20",children:s.jsx("section",{className:"py-24 px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("div",{className:"mb-8",children:s.jsxs(ue,{variant:"secondary",className:"mb-4",children:[s.jsx(Um,{className:"h-4 w-4 mr-2"}),"Payment Required"]})}),s.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent",children:"Secure Your Founding Member Access"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-12 max-w-3xl mx-auto",children:"Complete your founding member payment to access the form and secure your heavily discounted rate."}),s.jsxs(z,{className:"max-w-md mx-auto border-primary shadow-lg",children:[s.jsxs(oe,{className:"text-center pb-4",children:[s.jsx(le,{className:"text-2xl font-bold",children:"Founding Member"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Limited to First 100"}),s.jsxs("div",{className:"py-4",children:[s.jsx("div",{className:"text-sm text-muted-foreground line-through mb-1",children:"Instead of £1,999/year"}),s.jsx("div",{className:"text-4xl font-bold text-primary",children:"£500"}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"for your first 12 months"}),s.jsx("div",{className:"text-sm font-medium text-green-600 mt-2",children:"Save £1,499"})]})]}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"12-month access begins from official launch in Q4"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Lock in early access at heavily discounted rate"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Full access to all Clientli features"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Priority support and feature requests"})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(It,{className:"h-4 w-4 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:"Founding Member badge and recognition"})]})]}),s.jsxs(W,{className:"w-full",size:"lg",onClick:_,disabled:o,children:[o&&s.jsx(an,{className:"mr-2 h-5 w-5 animate-spin"}),"Pay £500 & Access Form",s.jsx(Ak,{className:"ml-2 h-5 w-5"})]}),s.jsx("div",{className:"text-center",children:s.jsxs(W,{variant:"link",size:"sm",onClick:()=>S(),disabled:c,children:[c&&s.jsx(an,{className:"mr-2 h-3 w-3 animate-spin"}),"Already paid? Check status"]})})]})]})]})})})]}):s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(cs,{}),s.jsxs("main",{className:"pt-20",children:[s.jsxs("section",{className:"py-24 px-4 sm:px-6 lg:px-8 relative overflow-hidden",children:[s.jsx("div",{className:"absolute top-4 right-4",children:s.jsx(ue,{variant:"secondary",children:"Private Beta"})}),s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("div",{className:"mb-8",children:s.jsxs(ue,{variant:"secondary",className:"mb-4",children:[s.jsx(jc,{className:"h-4 w-4 mr-2"}),"Founding Member"]})}),s.jsx("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold mb-6 bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent",children:"Become a Founding Member of Clientli"}),s.jsx("p",{className:"text-xl text-muted-foreground mb-12 max-w-3xl mx-auto",children:"We're building the AI copilot for sales and client growth. As a Founding Member, you'll shape the roadmap, lock in discounted pricing, and get early access to features that turn discovery into proposals, expansions, and ROI proof."}),s.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:r?d?s.jsxs(W,{size:"lg",className:"text-lg px-8 py-6",onClick:()=>{var A;
616return(A=document.getElementById("founding-form"))==null?void 0:A.scrollIntoView({behavior:"smooth"})},children:["Complete Your Application",s.jsx(Ht,{className:"ml-2 h-5 w-5"})]}):s.jsxs(W,{size:"lg",className:"text-lg px-8 py-6",onClick:_,disabled:o,children:[o&&s.jsx(an,{className:"mr-2 h-5 w-5 animate-spin"}),"Pay £500 to Join",s.jsx(Ak,{className:"ml-2 h-5 w-5"})]}):s.jsxs(W,{size:"lg",className:"text-lg px-8 py-6",onClick:()=>p("/auth"),children:["Sign Up to Join Founding Members",s.jsx(Ht,{className:"ml-2 h-5 w-5"})]})})]})]}),s.jsx("section",{className:"py-24 px-4 sm:px-6 lg:px-8 bg-muted/30",children:s.jsxs("div",{className:"max-w-6xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-4",children:"Why Join as a Founding Member"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Shape the future of sales AI while securing exclusive benefits"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:w.map((A,C)=>s.jsxs(z,{className:"text-center hover:shadow-lg transition-all duration-300",children:[s.jsxs(oe,{children:[s.jsx("div",{className:"mx-auto mb-4 p-3 bg-primary/10 rounded-full w-fit",children:s.jsx(A.icon,{className:"h-8 w-8 text-primary"})}),s.jsx(le,{className:"text-lg",children:A.title})]}),s.jsx(V,{children:s.jsx(_n,{className:"text-sm",children:A.description})})]},C))})]})}),s.jsx("section",{className:"py-24 px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-4",children:"What You'll Get in Beta"}),s.jsx("p",{className:"text-xl text-muted-foreground",children:"Access to cutting-edge features as they're developed"})]}),s.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:N.map((A,C)=>s.jsx(z,{className:"hover:shadow-lg transition-all duration-300",children:s.jsx(V,{className:"p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"p-2 bg-primary/10 rounded-lg",children:s.jsx(A.icon,{className:"h-6 w-6 text-primary"})}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h3",{className:"font-semibold",children:A.title}),A.status==="live"?s.jsxs(ue,{variant:"secondary",className:"text-xs",children:[s.jsx(It,{className:"h-3 w-3 mr-1"}),"Live Now"]}):s.jsxs(ue,{variant:"outline",className:"text-xs",children:[s.jsx(eW,{className:"h-3 w-3 mr-1"}),"Coming Soon"]})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:A.description})]})]})})},C))})]})}),r&&d&&s.jsx("section",{id:"founding-form",className:"py-24 px-4 sm:px-6 lg:px-8 bg-muted/30",children:s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsxs(ue,{variant:"secondary",className:"mb-4",children:[s.jsx(It,{className:"h-4 w-4 mr-2"}),"Payment Confirmed"]}),s.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-4",children:"Complete Your Founding Member Application"}),s.jsx("p",{className:"text-lg text-muted-foreground",children:"Help us understand your needs and challenges"})]}),s.jsx(z,{children:s.jsx(V,{className:"p-8",children:s.jsxs("form",{onSubmit:k,className:"space-y-6",children:[s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(je,{htmlFor:"name",children:"Name *"}),s.jsx(De,{id:"name",required:!0,value:y.name,onChange:A=>x(C=>({...C,name:A.target.value}))})]}),s.jsxs("div",{children:[s.jsx(je,{htmlFor:"email",children:"Email *"}),s.jsx(De,{id:"email",type:"email",value:(r==null?void 0:r.email)||"",disabled:!0,className:"bg-muted"})]})]}),s.jsxs("div",{children:[s.jsx(je,{htmlFor:"company",children:"Company"}),s.jsx(De,{id:"company",value:y.company,onChange:A=>x(C=>({...C,company:A.target.value}))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx(je,{className:"text-base font-semibold",children:"Which plan would you most likely use?"}),s.jsxs(W,{type:"button",variant:"outline",size:"sm",onClick:()=>m(!0),className:"text-xs",children:[s.jsx(q1,{className:"h-3 w-3 mr-1"}),"View All Plans"]})]}),s.jsxs(gF,{value:y.plan,onValueChange:A=>x(C=>({...C,plan:A})),className:"mt-3",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(od,{value:"free",id:"free"}),s.jsx(je,{htmlFor:"free",children:"Free"})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(od,{value:"pro",id:"pro"}),s.jsx(je,{htmlFor:"pro",children:"Pro £99/month (£990/year)"})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(od,{value:"team",id:"team"}),s.jsx(je,{htmlFor:"team",children:"Team £199/month (£1,999/year)"})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(od,{value:"enterprise",id:"enterprise"}),s.jsx(je,{htmlFor:"enterprise",children:"Enterprise £3,999+/year "})]})]})]}),s.jsxs("div",{children:[s.jsx(je,{className:"text-base font-semibold",children:"Which features are most valuable to you?"}),s.jsx("div",{className:"mt-3 space-y-2",children:j.map(A=>s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Vf,{id:`important-${A}`,checked:y.importantFeatures.includes(A),onCheckedChange:()=>P(A,"important")}),s.jsx(je,{htmlFor:`important-${A}`,children:A})]},A))})]}),s.jsxs("div",{children:[s.jsx(je,{className:"text-base font-semibold",children:"Which features are least important right now?"}),s.jsx("div",{className:"mt-3 space-y-2",children:j.map(A=>s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Vf,{id:`least-${A}`,checked:y.leastImportantFeatures.includes(A),onCheckedChange:()=>P(A,"leastImportant")}),s.jsx(je,{htmlFor:`least-${A}`,children:A})]},A))})]}),s.jsxs("div",{children:[s.jsx(je,{htmlFor:"challenge",className:"text-base font-semibold",children:"What's your biggest challenge in sales/client growth today?"}
616),s.jsx(Eh,{id:"challenge",rows:4,value:y.biggestChallenge,onChange:A=>x(C=>({...C,biggestChallenge:A.target.value})),className:"mt-2"})]}),s.jsx("div",{className:"border-t pt-6",children:s.jsxs(W,{type:"submit",size:"lg",className:"w-full text-lg py-6",children:["Complete Application",s.jsx(Ht,{className:"ml-2 h-5 w-5"})]})})]})})})]})}),s.jsx(M_e,{open:h,onOpenChange:m})]})]})},D_e=()=>{const[e,t]=b.useState(!1),[r,n]=b.useState(""),[a,i]=b.useState(""),[o,l]=b.useState(!1),c=gt(),{toast:u}=xr();b.useEffect(()=>{(async()=>{const{data:{session:h}}=await ne.auth.getSession();h&&c("/")})()},[c]);const d=async f=>{f.preventDefault();const h=Gm(r),m=Ej(h);if(!m.isValid){i(m.error||"Please enter a valid email address");return}t(!0),i("");const g="https://7292177c-cf11-4c09-b270-ba0218b200c0.sandbox.lovable.dev/auth?reset=true",{error:p}=await ne.auth.resetPasswordForEmail(h,{redirectTo:g});p?i(p.message):(l(!0),u({title:"Reset email sent!",description:"Check your email for password reset instructions."})),t(!1)};return o?s.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsx("div",{className:"mb-6",children:s.jsxs(Zl,{to:"/auth",className:"flex items-center text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx(Us,{className:"h-4 w-4 mr-2"}),"Back to login"]})}),s.jsxs(z,{children:[s.jsxs(oe,{className:"text-center",children:[s.jsx("div",{className:"mx-auto mb-4 p-3 bg-primary/10 rounded-full w-fit",children:s.jsx(Ct,{className:"h-8 w-8 text-primary"})}),s.jsx(le,{className:"text-2xl font-bold",children:"Check your email"}),s.jsxs(_n,{children:["We've sent password reset instructions to ",r]})]}),s.jsx(V,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs(Bg,{children:[s.jsx(yp,{className:"h-4 w-4"}),s.jsx(zg,{children:"Follow the link in your email to reset your password. The link will expire in 1 hour."})]}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(W,{variant:"outline",onClick:()=>l(!1),children:"Try different email"}),s.jsx(Zl,{to:"/auth",children:s.jsx(W,{variant:"ghost",className:"w-full",children:"Back to login"})})]})]})})]})]})}):s.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-md",children:[s.jsx("div",{className:"mb-6",children:s.jsxs(Zl,{to:"/auth",className:"flex items-center text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx(Us,{className:"h-4 w-4 mr-2"}),"Back to login"]})}),s.jsxs(z,{children:[s.jsxs(oe,{className:"text-center",children:[s.jsx(le,{className:"text-2xl font-bold",children:"Reset your password"}),s.jsx(_n,{children:"Enter your email address and we'll send you a link to reset your password"})]}),s.jsx(V,{children:s.jsxs("form",{onSubmit:d,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(je,{htmlFor:"reset-email",children:"Email address"}),s.jsx(De,{id:"reset-email",type:"email",placeholder:"Enter your email",value:r,onChange:f=>{n(f.target.value),i("")},required:!0})]}),a&&s.jsx(Bg,{variant:"destructive",children:s.jsx(zg,{children:a})}),s.jsxs(W,{type:"submit",className:"w-full",disabled:e,children:[e&&s.jsx(an,{className:"mr-2 h-4 w-4 animate-spin"}),"Send reset email"]})]})})]})]})})},Cb=768;function L_e(){const[e,t]=b.useState(void 0);return b.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Cb-1}px)`),n=()=>{t(window.innerWidth<Cb)};return r.addEventListener("change",n),t(window.innerWidth<Cb),()=>r.removeEventListener("change",n)},[]),!!e}var F_e="Separator",YA="horizontal",B_e=["horizontal","vertical"],SF=b.forwardRef((e,t)=>{const{decorative:r,orientation:n=YA,...a}=e,i=z_e(n)?n:YA,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return s.jsx(xe.div,{"data-orientation":i,...l,...a,ref:t})});SF.displayName=F_e;function z_e(e){return B_e.includes(e)}var _F=SF;const qx=b.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>s.jsx(_F,{ref:a,decorative:r,orientation:t,className:J("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));qx.displayName=_F.displayName;const U_e=r_,W_e=n_,kF=b.forwardRef(({className:e,...t},r)=>s.jsx(Ph,{className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));kF.displayName=Ph.displayName;const V_e=Jo("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),PF=b.forwardRef(({side:e="right",className:t,children:r,...n},a)=>s.jsxs(W_e,{children:[s.jsx(kF,{}),s.jsxs(Ch,{ref:a,className:J(V_e({side:e}),t),...n,children:[r,s.jsxs(Ux,{className:"absolute right-4 top-4 roun
616ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(iu,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));PF.displayName=Ch.displayName;const H_e=b.forwardRef(({className:e,...t},r)=>s.jsx(Oh,{ref:r,className:J("text-lg font-semibold text-foreground",e),...t}));H_e.displayName=Oh.displayName;const q_e=b.forwardRef(({className:e,...t},r)=>s.jsx(Ah,{ref:r,className:J("text-sm text-muted-foreground",e),...t}));q_e.displayName=Ah.displayName;function XA({className:e,...t}){return s.jsx("div",{className:J("animate-pulse rounded-md bg-muted",e),...t})}const G_e="sidebar:state",K_e=60*60*24*7,Y_e="16rem",X_e="18rem",Q_e="3rem",J_e="b",CF=b.createContext(null);function Th(){const e=b.useContext(CF);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const gr=b.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:a,children:i,...o},l)=>{const c=L_e(),[u,d]=b.useState(!1),[f,h]=b.useState(e),m=t??f,g=b.useCallback(x=>{const w=typeof x=="function"?x(m):x;r?r(w):h(w),document.cookie=`${G_e}=${w}; path=/; max-age=${K_e}`},[r,m]),p=b.useCallback(()=>c?d(x=>!x):g(x=>!x),[c,g,d]);b.useEffect(()=>{const x=w=>{w.key===J_e&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),p())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[p]);const v=m?"expanded":"collapsed",y=b.useMemo(()=>({state:v,open:m,setOpen:g,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:p}),[v,m,g,c,u,d,p]);return s.jsx(CF.Provider,{value:y,children:s.jsx(wv,{delayDuration:0,children:s.jsx("div",{style:{"--sidebar-width":Y_e,"--sidebar-width-icon":Q_e,...a},className:J("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:l,...o,children:i})})})});gr.displayName="SidebarProvider";const OF=b.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:a,...i},o)=>{const{isMobile:l,state:c,openMobile:u,setOpenMobile:d}=Th();return r==="none"?s.jsx("div",{className:J("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:o,...i,children:a}):l?s.jsx(U_e,{open:u,onOpenChange:d,...i,children:s.jsx(PF,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":X_e},side:e,children:s.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):s.jsxs("div",{ref:o,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[s.jsx("div",{className:J("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),s.jsx("div",{className:J("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...i,children:s.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})});OF.displayName="Sidebar";const ws=b.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:a}=Th();return s.jsxs(W,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:J("h-7 w-7",e),onClick:i=>{t==null||t(i),a()},...r,children:[s.jsx(JU,{}),s.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ws.displayName="SidebarTrigger";const Z_e=b.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=Th();return s.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:J("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Z_e.displayName="SidebarRail";const eke=b.forwardRef(({className:e,...t},r)=>s.jsx("main",{ref:r,className:J("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
616h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));eke.displayName="SidebarInset";const tke=b.forwardRef(({className:e,...t},r)=>s.jsx(De,{ref:r,"data-sidebar":"input",className:J("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));tke.displayName="SidebarInput";const rke=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"header",className:J("flex flex-col gap-2 p-2",e),...t}));rke.displayName="SidebarHeader";const nke=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"footer",className:J("flex flex-col gap-2 p-2",e),...t}));nke.displayName="SidebarFooter";const ske=b.forwardRef(({className:e,...t},r)=>s.jsx(qx,{ref:r,"data-sidebar":"separator",className:J("mx-2 w-auto bg-sidebar-border",e),...t}));ske.displayName="SidebarSeparator";const AF=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"content",className:J("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));AF.displayName="SidebarContent";const EF=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"group",className:J("relative flex w-full min-w-0 flex-col p-2",e),...t}));EF.displayName="SidebarGroup";const ake=b.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const a=t?nu:"div";return s.jsx(a,{ref:n,"data-sidebar":"group-label",className:J("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});ake.displayName="SidebarGroupLabel";const ike=b.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const a=t?nu:"button";return s.jsx(a,{ref:n,"data-sidebar":"group-action",className:J("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});ike.displayName="SidebarGroupAction";const TF=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"group-content",className:J("w-full text-sm",e),...t}));TF.displayName="SidebarGroupContent";const IF=b.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,"data-sidebar":"menu",className:J("flex w-full min-w-0 flex-col gap-1",e),...t}));IF.displayName="SidebarMenu";const $F=b.forwardRef(({className:e,...t},r)=>s.jsx("li",{ref:r,"data-sidebar":"menu-item",className:J("group/menu-item relative",e),...t}));$F.displayName="SidebarMenuItem";const oke=Jo("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),MF=b.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:a,className:i,...o},l)=>{const c=e?nu:"button",{isMobile:u,state:d}=Th(),f=s.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:J(oke({variant:r,size:n}),i),...o});
616return a?(typeof a=="string"&&(a={children:a}),s.jsxs(iN,{children:[s.jsx(oN,{asChild:!0,children:f}),s.jsx(jv,{side:"right",align:"center",hidden:d!=="collapsed"||u,...a})]})):f});MF.displayName="SidebarMenuButton";const lke=b.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},a)=>{const i=t?nu:"button";return s.jsx(i,{ref:a,"data-sidebar":"menu-action",className:J("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});lke.displayName="SidebarMenuAction";const cke=b.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:J("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));cke.displayName="SidebarMenuBadge";const uke=b.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const a=b.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return s.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:J("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&s.jsx(XA,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),s.jsx(XA,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});uke.displayName="SidebarMenuSkeleton";const dke=b.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:J("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));dke.displayName="SidebarMenuSub";const fke=b.forwardRef(({...e},t)=>s.jsx("li",{ref:t,...e}));fke.displayName="SidebarMenuSubItem";const hke=b.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...a},i)=>{const o=e?nu:"a";return s.jsx(o,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:J("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...a})});hke.displayName="SidebarMenuSubButton";const mke=[{title:"Dashboard",url:"/portal/dashboard",icon:s$},{title:"Discovery Calls",url:"/portal/discovery-calls",icon:Si},{title:"Workflows",url:"/portal/workflows",icon:Ti},{title:"Stakeholders",url:"/portal/stakeholders",icon:bt},{title:"Proposals",url:"/portal/proposals",icon:rt}],pke=[{title:"Upload Call",url:"/portal/discovery-calls?upload=true",icon:G1},{title:"Sales Proposal",url:"/portal/proposals",icon:rt},{title:"End to End Workflow Optimisation",url:"/portal/workflows",icon:Ti},{title:"Upsell",url:"/portal/dashboard",icon:qe},{title:"Leadership Buy-in",url:"/portal/stakeholders",icon:Xl}],gke=[{title:"Dashboard",url:"/dashboard",icon:s$},{title:"Discovery Calls",url:"/discovery-call-analysis",icon:Si},{title:"Workflows",url:"/workflow-analysis",icon:Ti},{title:"Stakeholders",url:"/stakeholders",icon:bt},{title:"Proposals",url:"/features/proposal-builder",icon:rt}],vke=[{title:"Sales Proposal",url:"/features/proposal-builder",icon:rt},{title:"End to End Workflow Optimisation",url:"/workflow-analysis",icon:Ti},{title:"Upsell",url:"/dashboard",icon:qe},{title:"Leadership Buy-in",url:"/stakeholders",icon:Xl}];function Ar({isDemoMode:e=!1}){const{state:t}=Th();Pa().pathname;const n=t==="collapsed",[a,i]=b.useState(!1),o=e?gke:mke,l=e?vke:pke,c=({isActive:u})=>u?"bg-muted text-primary font-medium":"hover:bg-muted/50 text-muted-foreground hover:text-foreground";return s.jsx(OF,{variant:"sidebar",collapsible:"icon",children:s.jsxs(AF,{className:"bg-background border-r",children:[s.jsx("div",{className:"p-4 border-b",children:s.jsxs(My,{to:"/",className:"flex items-center gap-3 hover:opacity-80 transition-opacity",children:[s.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-primary to-primary/80 rounded-lg flex items-center justify-center",children:s.jsx(Si,{className:"h-4 w-4 text-primary-foreground"})}),!n&&s.jsx("div",{children:s.jsx("h2",{className:"text-lg font-bold",children:"Clientli"})})]})}),s.jsx("div",{className:"p-4",children:s.jsxs(W,{className:"w-full bg-gradient-to-r from-primary to-purple-600 hover:from-primary/90 hover:to-purple-600/90 text-white shadow-lg",size:n?"icon":"default",onClick:()=>!n&&i(!a),children:[s.jsx(Si,{className:"h-4 w-4"}),!n&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"ml-2",children:"Prepare"}),a?s.jsx(Mo,{className:"ml-auto h-4 w-4"}):s.jsx(sa,{className:"ml-auto h-4 w-4"})]})]})}),!n&&a&&s.jsx("div",{className:"px-4 pb-4",children:s.jsx("div",{className:"bg-muted/50 rounded-lg p-2 space-y-1",children:l.map(u=>s.jsxs(My,{to:u.url,className:({isActive:d})=>`flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ${d?"bg-primary text-primary-foreground":"hover:bg-muted text-muted-foreground hover:text-foreground"}`,onClick:()=>i(!1),children:[s.jsx(u.icon,{className:"h-4 w-4 flex-shrink-0"}),s.jsx("span",{className:"truncate",children:u.title})]},u.title))})}),s.jsx(EF,{children:s.jsx(TF,{children:s.jsx(IF,{children:o.map(u=>s.jsx($F,{children:s.jsx(MF,{asChild:!0,children:s.jsxs(My,{to:u.url,end:!0,className:({isActive:d})=>`flex items-center gap-3 px-3 py-2 rounded-lg transition-colors ${c({isActive:d})}`,children:[s.jsx(u.icon,{className:"h-4 w-4 flex-shrink-0"}),!n&&s.jsx("span",{children:u.title})]})})},u.title))})})})]})})}const Gx=({pageTitle:e})=>{const t=[{name:"Dashboard",href:"/dashboard",icon:th},{name:"Discovery Call Analysis",href:"/discovery-call-analysis",icon:i$},{name:"Workflow Analysis",href:"/workflow-analysis",icon:Ti},{name:"Stakeholders",href:"/stakeholders",icon:bt}];return s.jsx("header",{className:"sticky top-0 z-50 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:s.jsx("div",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs(W,{variant:"ghost",size:"sm",onClick:()=>window.location.href="/",className:"gap-2",children:[s.jsx(Us,{className:"h-4 w-4"}),"Back to Homepage"]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ue,{variant:"secondary",className:"bg-amber-100 text-amber-800 border-amber-300",children:"DEMO"}),s.jsx("h1",{className:"text-xl font-semibold",children:e})]})]}),s.jsxs(Ep,{children:[s.jsxs(Tp,{className:"flex items-center gap-2 text-sm font-semibold leading-6 text-foreground hover:text-primary transition-colors",children:["Demo Pages",s.jsx(Mo,{className:"h-4 w-4"})]}),s.jsx(nf,{align:"end",className:"w-56",children:t.map(r=>{const n=r.icon;return s.jsx(oi,{asChild:!0,children:s.jsxs("a",{href:r.href,className:"w-full flex items-center gap-2",children:[s.jsx(n,{className:"h-4 w-4"}),r.name]})},r.name)})})]})]})})})},xke=()=>{gt();const[e,t]=b.useState(!1),[r,n]=b.useState("0:00"),[a,i]=b.useState("discoveries"),o=[{speaker:"Speaker 1",time:"0:00",text:"We are really struggling with the amount of data we receive in varied formats. There's no consistency",type:"challenge",tag:"Data inconsistency"},{speaker:"Speaker 2",time:"0:04",text:"Yes – and, and we have data providers that don't stick to our contract arrangements and send the data to use in their own preferred format via email. IT aren't happy with this for obvious security reasons",type:"challenge",tag:"Security concerns"},{speaker:"Speaker 1",time:"2:15",text:"Our goal is to standardize all supplier data intake by Q2 next year",type:"outcome",tag:"Standardization goal"},{speaker:"Speaker 2",time:"3:22",text:"If we could automate the supplier onboarding process, it would save us at least 12 hours per week",type:"opportunity",tag:"Automation ROI"}],l=c=>{switch(c){case"challenge":return"text-destructive bg-destructive/10";case"outcome":return"text-green-600 bg-green-50";case"opportunity":return"text-primary bg-primary/10";default:return"text-muted-foreground bg-muted"}};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Gx,{pageTitle:"Sales Discovery Call with AtoZ accounting"}),s.jsx(gr,{children:s.jsxs("div",{className:"flex w-full",children:[s.jsx(Ar,{isDemoMode:!0}),s.jsxs("main",{className:"flex-1 flex flex-col",children:[s.jsx("div",{className:"border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:s.jsx("div",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsx("div",{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"11 September 2025 at 12:11"})}),s.jsxs(ue,{variant:"secondary",className:"gap-1",children:[s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full animate-pulse"}),"Auto-analyzed transcript"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(W,{variant:"outline",size:"sm",className:"gap-2",children:[s.jsx(e$,{className:"h-4 w-4"}),"Set next call"]}),s.jsxs(W,{variant:"outline",size:"sm",className:"gap-2",children:[s.jsx(u$,{className:"h-4 w-4"}),"Share"]}),s.jsxs(W,{size:"sm",className:"gap-2",children:[s.jsx(rh,{className:"h-4 w-4"}),"Export to Proposal"]})]})]})})}),s.jsx("div",{className:"px-6 py-6 flex-1",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 h-[calc(100vh-200px)]",children:[s.jsx("div",{className:"space-y-4",children:s.jsxs(z,{className:"h-full",children:[s.jsx(oe,{className:"pb-4",children:s.jsx(le,{className:"text-lg",children:"Call Recording & Transcript"})}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{className:"bg-slate-900 rounded-lg p-4 aspect-video flex items-center justify-center relative",children:[s.jsxs("div",{className:"text-white text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mb-2 mx-auto",children:e?s.jsx(Gd,{className:"h-8 w-8"}):s.jsx(Ro,{className:"h-8 w-8"})}),s.jsx("p",{className:"text-sm opacity-80",children:"Discovery Call Recording"})]}),s.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:s.jsxs("div",{className:"flex items-center gap-3 text-white",children:[s.jsx(W,{size:"sm",variant:"ghost",className:"h-8 w-8 p-0 text-white hover:bg-white/20",onClick:()=>t(!e),children:e?s.jsx(Gd,{className:"h-4 w-4"}):s.jsx(Ro,{className:"h-4 w-4"})}),s.jsx("span",{className:"text-sm",children:r}),s.jsx("div",{className:"flex-1 h-1 bg-white/30 rounded-full",children:s.jsx("div",{className:"h-1 bg-primary rounded-full w-1/4"})}),s.jsx("span",{className:"text-sm",children:"35:17"}),s.jsx(f$,{className:"h-4 w-4"})]})})]}),s.jsxs("div",{className:"space-y-3 max-h-[400px] overflow-y-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{className:"font-medium",children:"Auto-synced transcript"}),s.jsxs(W,{variant:"outline",size:"sm",className:"gap-2",children:[s.jsx(W1,{className:"h-4 w-4"}),"Copy transcript"]})]}),o.map((c,u)=>s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ue,{variant:"outline",className:"text-xs",children:c.speaker}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.time}),s.jsx(ue,{className:`text-xs ${l(c.type)}`,children:c.tag})]}),s.jsx("p",{className:"text-sm leading-relaxed pl-4 border-l-2 border-muted",children:c.text})]},u))]})]})]})}),s.jsx("div",{className:"space-y-4",children:s.jsxs(z,{className:"h-full",children:[s.jsx(oe,{className:"pb-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(le,{className:"text-lg",children:"Insights from AtoZ team call"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(ue,{variant:a==="discoveries"?"default":"outline",className:"gap-1 cursor-pointer",onClick:()=>i("discoveries"),children:[s.jsx(pr,{className:"h-3 w-3"}),"Discoveries"]}),s.jsxs(ue,{variant:a==="analytics"?"default":"outline",className:"gap-1 cursor-pointer text-primary",onClick:()=>i("analytics"),children:[s.jsx(qe,{className:"h-3 w-3"}),"Analytics"]})]})]})}),s.jsx(V,{children:a==="discoveries"?s.jsxs(gs,{defaultValue:"lean-thinking",className:"h-full",children:[s.jsxs(In,{className:"grid w-full grid-cols-3",children:[s.jsx(Ve,{value:"lean-thinking",children:"Lean Thinking"}),s.jsx(Ve,{value:"change-management",children:"Change Management"}),s.jsx(Ve,{value:"recommendations",children:"Recommendations"})]}
616),s.jsx(He,{value:"lean-thinking",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"border-l-4 border-l-green-500 bg-green-50/50",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-green-100 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-green-600 text-xs font-bold",children:"✓"})}),s.jsx("h4",{className:"font-semibold text-green-700",children:"Strength"})]}),s.jsx("h5",{className:"font-medium mb-2",children:"Existing Contractual Standards"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Standards for data submission already exist in contracts, so there is a baseline to enforce rather than starting from scratch."}),s.jsx("p",{className:"text-sm italic text-muted-foreground",children:"This keeps things straight forward! Nice"})]})}),s.jsx(z,{className:"border-l-4 border-l-orange-500 bg-orange-50/50",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-orange-100 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-orange-600 text-xs",children:"🏁"})}),s.jsx("h4",{className:"font-semibold text-orange-700",children:"Growth Area"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{children:s.jsxs("h5",{className:"font-medium mb-2",children:[s.jsx("strong",{children:"Standardisation of data inputs from suppliers:"})," Create a clear, enforced standard for data submission formats (aligned with contracts) to reduce rework and inconsistency."]})}),s.jsx("div",{children:s.jsxs("h5",{className:"font-medium mb-2",children:[s.jsx("strong",{children:"Automation of data ingestion through secure challenges:"})," Implement automated intake workflows (e.g. secure portals, APIs, or ETL pipelines) to remove manual email handling."]})})]})]})})]})}),s.jsx(He,{value:"change-management",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"border-l-4 border-l-green-500 bg-green-50/50",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-green-100 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-green-600 text-xs font-bold",children:"✓"})}),s.jsx("h4",{className:"font-semibold text-green-700",children:"Strength"})]}),s.jsx("h5",{className:"font-medium mb-2",children:"Client's Awareness & Understanding:"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"The AtoZ team now recognises why inconsistent data formats and email submissions were causing rework and security risks. Stakeholders clearly understand the need for change."}),s.jsx("p",{className:"text-sm italic text-muted-foreground",children:"This makes your job easier! Nice"})]})}),s.jsx(z,{className:"border-l-4 border-l-orange-500 bg-orange-50/50",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-orange-100 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-orange-600 text-xs",children:"🏁"})}),s.jsx("h4",{className:"font-semibold text-orange-700",children:"Growth Area"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium mb-2",children:"Stakeholder Engagement to align on data ingestion changes:"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Involve both IT and data providers early to align on why consistency and security are critical. Highlight risks of the current approach (rework, compliance breaches, security exposure)."})]}),s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium mb-2",children:"Clear Standards & Communication with suppliers:"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Reinforce contract terms with simple, well-communicated data format standards. Provide examples/templates so providers understand expectations."})]}),s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium mb-2",children:"Training & Support to aid change:"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Offer brief onboarding or refresher sessions for providers to reduce resistance and make compliance easier."})]})]})]})})]})}
616),s.jsx(He,{value:"recommendations",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"border border-green-200 bg-green-50/30",children:s.jsxs(V,{className:"p-4",children:[s.jsx("h4",{className:"font-semibold text-green-700 mb-3",children:"Optimise Existing Tools (Oracle ETL)"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Standardised Data Pipelines:"})," They mentioned using Oracle ETL. Perhaps you can look at configuring Oracle ETL (ODI or similar) to enforce ",s.jsx("em",{children:"input schema validation"})," at the point of ingestion, rejecting or flagging non-compliant files. Look to replace email submissions with a ",s.jsx("strong",{children:"secure portal or SFTP connection"})," linked directly to Oracle ETL."]}),s.jsx(W,{variant:"link",className:"h-auto p-0 text-primary",children:"Learn More"})]})]})}),s.jsx(z,{className:"border border-green-200 bg-green-50/30",children:s.jsxs(V,{className:"p-4",children:[s.jsx("h4",{className:"font-semibold text-green-700 mb-3",children:"Leverage Automation"}),s.jsx("div",{className:"space-y-3",children:s.jsxs("div",{children:[s.jsxs("p",{className:"text-sm mb-2",children:[s.jsx("strong",{children:"RPA (UiPath / Power Automate):"})," Put an automated communication loop in place so suppliers gradually shift away from email and into your secure SFTP channel. That way, you remove the waste of chasing them manually while reinforcing compliance."]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(W,{variant:"link",className:"h-auto p-0 text-primary text-xs",children:"Learn More"}),s.jsx(W,{variant:"link",className:"h-auto p-0 text-primary text-xs",children:"Visit Power Automate"}),s.jsx(W,{variant:"link",className:"h-auto p-0 text-primary text-xs",children:"Visit UiPath"})]})]})})]})})]})})]}):s.jsxs(gs,{defaultValue:"challenges",className:"h-full",children:[s.jsxs(In,{className:"grid w-full grid-cols-4",children:[s.jsx(Ve,{value:"challenges",children:"Challenges"}),s.jsx(Ve,{value:"outcomes",children:"Outcomes"}),s.jsx(Ve,{value:"opportunities",children:"Opportunities"}),s.jsx(Ve,{value:"stakeholders",children:"Stakeholders"})]}),s.jsx(He,{value:"challenges",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-3",children:[s.jsx(z,{className:"border-l-4 border-l-red-500",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(pr,{className:"h-4 w-4 text-red-500"}),s.jsx("h4",{className:"font-semibold",children:"Data Inconsistency"}),s.jsx(ue,{variant:"destructive",className:"text-xs",children:"High Impact"})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Suppliers send data in varied formats, creating processing inefficiencies and security risks."}),s.jsx(W,{size:"sm",variant:"outline",children:"Add to Proposal"})]})}),s.jsx(z,{className:"border-l-4 border-l-orange-500",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(pr,{className:"h-4 w-4 text-orange-500"}),s.jsx("h4",{className:"font-semibold",children:"Security Concerns"}),s.jsx(ue,{variant:"secondary",className:"text-xs",children:"Medium Impact"})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Email-based data transfer violates IT security policies and creates compliance risks."}),s.jsx(W,{size:"sm",variant:"outline",children:"Add to Proposal"})]})})]})}),s.jsx(He,{value:"outcomes",className:"space-y-4 mt-4",children:s.jsx("div",{className:"space-y-3",children:s.jsx(z,{className:"border-l-4 border-l-green-500",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(Mt,{className:"h-4 w-4 text-green-500"}),s.jsx("h4",{className:"font-semibold",children:"Standardization Goal"}),s.jsx(ue,{className:"text-xs bg-green-100 text-green-700",children:"Q2 Target"})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Standardize all supplier data intake by Q2 next year to improve efficiency."}),s.jsx(W,{size:"sm",variant:"outline",children:"Add to Proposal"})]})})})}
vendor: 20,274 bytes, line 616
616),s.jsx(He,{value:"opportunities",className:"space-y-4 mt-4",children:s.jsx("div",{className:"space-y-3",children:s.jsx(z,{className:"border-l-4 border-l-blue-500",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(nh,{className:"h-4 w-4 text-blue-500"}),s.jsx("h4",{className:"font-semibold",children:"Automation ROI"}),s.jsx(ue,{className:"text-xs bg-blue-100 text-blue-700",children:"12hrs/week saved"})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Automating supplier onboarding could save 12 hours per week in manual processing."}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(W,{size:"sm",variant:"outline",children:"Add to Proposal"}),s.jsx(W,{size:"sm",variant:"outline",children:"Send to Expansion Radar"})]})]})})})}),s.jsx(He,{value:"stakeholders",className:"space-y-4 mt-4",children:s.jsx("div",{className:"space-y-3",children:s.jsx(z,{children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(bt,{className:"h-4 w-4"}),s.jsx("h4",{className:"font-semibold",children:"Stakeholder Map"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"p-3 bg-green-50 rounded-lg",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),s.jsx("span",{className:"text-sm font-medium",children:"Champion"})]}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Speaker 1 - Data Manager"})]}),s.jsxs("div",{className:"p-3 bg-blue-50 rounded-lg",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),s.jsx("span",{className:"text-sm font-medium",children:"Influencer"})]}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Speaker 2 - IT Security"})]})]})]})})})})]})})]})})]})})]})]})})]})};function QA(e,[t,r]){return Math.min(r,Math.max(t,e))}var yke=[" ","Enter","ArrowUp","ArrowDown"],bke=[" ","Enter"],qo="Select",[Kx,Yx,wke]=Zf(qo),[Cu,GCe]=qt(qo,[wke,Ii]),Xx=Ii(),[jke,Vi]=Cu(qo),[Nke,Ske]=Cu(qo),RF=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:h,required:m,form:g}=e,p=Xx(t),[v,y]=b.useState(null),[x,w]=b.useState(null),[N,j]=b.useState(!1),S=du(u),[_,P]=Gr({prop:n,defaultProp:a??!1,onChange:i,caller:qo}),[k,A]=Gr({prop:o,defaultProp:l,onChange:c,caller:qo}),C=b.useRef(null),T=v?g||!!v.closest("form"):!0,[E,O]=b.useState(new Set),D=Array.from(E).map($=>$.props.value).join(";");return s.jsx(pv,{...p,children:s.jsxs(jke,{required:m,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:N,onValueNodeHasChildrenChange:j,contentId:qr(),value:k,onValueChange:A,open:_,onOpenChange:P,dir:S,triggerPointerDownPosRef:C,disabled:h,children:[s.jsx(Kx.Provider,{scope:t,children:s.jsx(Nke,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback($=>{O(L=>new Set(L).add($))},[]),onNativeOptionRemove:b.useCallback($=>{O(L=>{const M=new Set(L);return M.delete($),M})},[]),children:r})}),T?s.jsxs(i6,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:k,onChange:$=>A($.target.value),disabled:h,form:g,children:[k===void 0?s.jsx("option",{value:""}):null,Array.from(E)]},D):null]})})};RF.displayName=qo;var DF="SelectTrigger",LF=b.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...a}=e,i=Xx(r),o=Vi(DF,r),l=o.disabled||n,c=Te(t,o.onTriggerChange),u=Yx(r),d=b.useRef("touch"),[f,h,m]=l6(p=>{const v=u().filter(w=>!w.disabled),y=v.find(w=>w.value===o.value),x=c6(v,p,y);x!==void 0&&o.onValueChange(x.value)}),g=p=>{l||(o.onOpenChange(!0),m()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return s.jsx(ih,{asChild:!0,...i,children:s.jsx(xe.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:l,"data-disabled":l?"":void 0,"data-placeholder":o6(o.value)?"":void 0,...a,ref:c,onClick:se(a.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&g(p)}),onPointerDown:se(a.onPointerDown,p=>{d.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(g(p),p.preventDefault())}),onKeyDown:se(a.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(v&&p.key===" ")&&yke.includes(p.key)&&(g(),p.preventDefault())})})})});LF.displayName=DF;var FF="SelectValue",BF=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...l}=e,c=Vi(FF,r),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=Te(t,c.onValueNodeChange);return At(()=>{u(d)},[u,d]),s.jsx(xe.span,{...l,ref:f,style:{pointerEvents:"none"},children:o6(c.value)?s.jsx(s.Fragment,{children:o}):i})});BF.displayName=FF;var _ke="SelectIcon",zF=b.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return s.jsx(xe.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})});zF.displayName=_ke;var kke="SelectPortal",UF=e=>s.jsx(su,{asChild:!0,...e});UF.displayName=kke;var Go="SelectContent",WF=b.forwardRef((e,t)=>{const r=Vi(Go,e.__scopeSelect),[n,a]=b.useState();if(At(()=>{a(new DocumentFragment)},[]),!r.open){const i=n;return i?Xo.createPortal(s.jsx(VF,{scope:e.__scopeSelect,children:s.jsx(Kx.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),i):null}return s.jsx(HF,{...e,ref:t})});WF.displayName=Go;var Gn=10,[VF,Hi]=Cu(Go),Pke="SelectContentImpl",Cke=Ni("SelectContent.RemoveScroll"),HF=b.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:v,...y}=e,x=Vi(Go,r),[w,N]=b.useState(null),[j,S]=b.useState(null),_=Te(t,G=>N(G)),[P,k]=b.useState(null),[A,C]=b.useState(null),T=Yx(r),[E,O]=b.useState(!1),D=b.useRef(!1);b.useEffect(()=>{if(w)return Ov(w)},[w]),Cv();const $=b.useCallback(G=>{const[ie,...X]=T().map(F=>F.ref.current),[te]=X.slice(-1),Z=document.activeElement;for(const F of G)if(F===Z||(F==null||F.scrollIntoView({block:"nearest"}),F===ie&&j&&(j.scrollTop=0),F===te&&j&&(j.scrollTop=j.scrollHeight),F==null||F.focus(),document.activeElement!==Z))return},[T,j]),L=b.useCallback(()=>$([P,w]),[$,P,w]);b.useEffect(()=>{E&&L()},[E,L]);const{onOpenChange:M,triggerPointerDownPosRef:R}=x;b.useEffect(()=>{if(w){let G={x:0,y:0};const ie=te=>{var Z,F;G={x:Math.abs(Math.round(te.pageX)-(((Z=R.current)==null?void 0:Z.x)??0)),y:Math.abs(Math.round(te.pageY)-(((F=R.current)==null?void 0:F.y)??0))}},X=te=>{G.x<=10&&G.y<=10?te.preventDefault():w.contains(te.target)||M(!1),document.removeEventListener("pointermove",ie),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",X,{capture:!0})}}},[w,M,R]),b.useEffect(()=>{const G=()=>M(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[M]);const[B,H]=l6(G=>{const ie=T().filter(Z=>!Z.disabled),X=ie.find(Z=>Z.ref.current===document.activeElement),te=c6(ie,G,X);te&&setTimeout(()=>te.ref.current.focus())}),U=b.useCallback((G,ie,X)=>{const te=!D.current&&!X;(x.value!==void 0&&x.value===ie||te)&&(k(G),te&&(D.current=!0))},[x.value]),q=b.useCallback(()=>w==null?void 0:w.focus(),[w]),ee=b.useCallback((G,ie,X)=>{const te=!D.current&&!X;(x.value!==void 0&&x.value===ie||te)&&C(G)},[x.value]),de=n==="popper"?Lj:qF,ce=de===Lj?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:p,avoidCollisions:v}:{};return s.jsx(VF,{scope:r,content:w,viewport:j,onViewportChange:S,itemRefCallback:U,selectedItem:P,onItemLeave:q,itemTextRefCallback:ee,focusSelectedItem:L,selectedItemText:A,position:n,isPositioned:E,searchRef:B,children:s.jsx(dh,{as:Cke,allowPinchZoom:!0,children:s.jsx(ch,{asChild:!0,trapped:x.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:se(a,G=>{var ie;(ie=x.trigger)==null||ie.focus({preventScroll:!0}),G.preventDefault()}),children:s.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:s.jsx(de,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:G=>G.preventDefault(),...y,...ce,onPlaced:()=>O(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:se(y.onKeyDown,G=>{const ie=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ie&&G.key.length===1&&H(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let te=T().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(G.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const Z=G.target,F=te.indexOf(Z);te=te.slice(F+1)}setTimeout(()=>$(te)),G.preventDefault()}})})})})})})});HF.displayName=Pke;var Oke="SelectItemAlignedPosition",qF=b.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,i=Vi(Go,r),o=Hi(Go,r),[l,c]=b.useState(null),[u,d]=b.useState(null),f=Te(t,_=>d(_)),h=Yx(r),m=b.useRef(!1),g=b.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=o,w=b.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&y){const _=i.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),k=i.valueNode.getBoundingClientRect(),A=y.getBoundingClientRect();if(i.dir!=="rtl"){const Z=A.left-P.left,F=k.left-Z,me=_.left-F,pe=_.width+me,Y=Math.max(pe,P.width),he=window.innerWidth-Gn,_e=QA(F,[Gn,Math.max(Gn,he-Y)]);l.style.minWidth=pe+"px",l.style.left=_e+"px"}else{const Z=P.right-A.right,F=window.innerWidth-k.right-Z,me=window.innerWidth-_.right-F,pe=_.width+me,Y=Math.max(pe,P.width),he=window.innerWidth-Gn,_e=QA(F,[Gn,Math.max(Gn,he-Y)]);l.style.minWidth=pe+"px",l.style.right=_e+"px"}const C=h(),T=window.innerHeight-Gn*2,E=p.scrollHeight,O=window.getComputedStyle(u),D=parseInt(O.borderTopWidth,10),$=parseInt(O.paddingTop,10),L=parseInt(O.borderBottomWidth,10),M=parseInt(O.paddingBottom,10),R=D+$+E+M+L,B=Math.min(v.offsetHeight*5,R),H=window.getComputedStyle(p),U=parseInt(H.paddingTop,10),q=parseInt(H.paddingBottom,10),ee=_.top+_.height/2-Gn,de=T-ee,ce=v.offsetHeight/2,G=v.offsetTop+ce,ie=D+$+G,X=R-ie;if(ie<=ee){const Z=C.length>0&&v===C[C.length-1].ref.current;l.style.bottom="0px";const F=u.clientHeight-p.offsetTop-p.offsetHeight,me=Math.max(de,ce+(Z?q:0)+F+L),pe=ie+me;l.style.height=pe+"px"}else{const Z=C.length>0&&v===C[0].ref.current;l.style.top="0px";const me=Math.max(ee,D+p.offsetTop+(Z?U:0)+ce)+X;l.style.height=me+"px",p.scrollTop=ie-ee+p.offsetTop}l.style.margin=`${Gn}px 0`,l.style.minHeight=B+"px",l.style.maxHeight=T+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[h,i.trigger,i.valueNode,l,u,p,v,y,i.dir,n]);At(()=>w(),[w]);const[N,j]=b.useState();At(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const S=b.useCallback(_=>{_&&g.current===!0&&(w(),x==null||x(),g.current=!1)},[w,x]);return s.jsx(Eke,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:s.jsx(xe.div,{...a,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});qF.displayName=Oke;var Ake="SelectPopperPosition",Lj=b.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Gn,...i}=e,o=Xx(r);return s.jsx(gv,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.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)"}})});Lj.displayName=Ake;var[Eke,c_]=Cu(Go,{}),Fj="SelectViewport",GF=b.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,i=Hi(Fj,r),o=c_(Fj,r),l=Te(t,i.onViewportChange),c=b.useRef(0);return s.jsxs(s.Fragment,{children:[s.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}),s.jsx(Kx.Slot,{scope:r,children:s.jsx(xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:se(a.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const g=window.innerHeight-Gn*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<g){const x=y+m,w=Math.min(g,x),N=x-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=N>0?N:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});GF.displayName=Fj;var KF="SelectGroup",[Tke,Ike]=Cu(KF),$ke=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=qr();return s.jsx(Tke,{scope:r,id:a,children:s.jsx(xe.div,{role:"group","aria-labelledby":a,...n,ref:t})})});$ke.displayName=KF;var YF="SelectLabel",XF=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=Ike(YF,r);return s.jsx(xe.div,{id:a.id,...n,ref:t})});XF.displayName=YF;var Wg="SelectItem",[Mke,QF]=Cu(Wg),JF=b.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:i,...o}=e,l=Vi(Wg,r),c=Hi(Wg,r),u=l.value===n,[d,f]=b.useState(i??""),[h,m]=b.useState(!1),g=Te(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,n,a)}),p=qr(),v=b.useRef("touch"),y=()=>{a||(l.onValueChange(n),l.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 s.jsx(Mke,{scope:r,value:n,disabled:a,textId:p,isSelected:u,onItemTextChange:b.useCallback(x=>{f(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:s.jsx(Kx.ItemSlot,{scope:r,value:n,disabled:a,textValue:d,children:s.jsx(xe.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:g,onFocus:se(o.onFocus,()=>m(!0)),onBlur:se(o.onBlur,()=>m(!1)),onClick:se(o.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:se(o.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:se(o.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:se(o.onPointerMove,x=>{var w;v.current=x.pointerType,a?(w=c.onItemLeave)==null||w.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(o.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:se(o.onKeyDown,x=>{var N;((N=c.searchRef)==null?void 0:N.current)!==""&&x.key===" "||(bke.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});JF.displayName=Wg;var ld="SelectItemText",ZF=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...i}=e,o=Vi(ld,r),l=Hi(ld,r),c=QF(ld,r),u=Ske(ld,r),[d,f]=b.useState(null),h=Te(t,y=>f(y),c.onItemTextChange,y=>{var x;return(x=l.itemTextRefCallback)==null?void 0:x.call(l,y,c.value,c.disabled)}),m=d==null?void 0:d.textContent,g=b.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return At(()=>(p(g),()=>v(g)),[p,v,g]),s.jsxs(s.Fragment,{children:[s.jsx(xe.span,{id:c.textId,...i,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Xo.createPortal(i.children,o.valueNode):null]})});ZF.displayName=ld;var e6="SelectItemIndicator",t6=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return QF(e6,r).isSelected?s.jsx(xe.span,{"aria-hidden":!0,...n,ref:t}):null});t6.displayName=e6;var Bj="SelectScrollUpButton",r6=b.forwardRef((e,t)=>{const r=Hi(Bj,e.__scopeSelect),n=c_(Bj,e.__scopeSelect),[a,i]=b.useState(!1),o=Te(t,n.onScrollButtonChange);return At(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?s.jsx(s6,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});r6.displayName=Bj;var zj="SelectScrollDownButton",n6=b.forwardRef((e,t)=>{const r=Hi(zj,e.__scopeSelect),n=c_(zj,e.__scopeSelect),[a,i]=b.useState(!1),o=Te(t,n.onScrollButtonChange);return At(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?s.jsx(s6,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});n6.displayName=zj;var s6=b.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,i=Hi("SelectScrollButton",r),o=b.useRef(null),l=Yx(r),c=b.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return b.useEffect(()=>()=>c(),[c]),At(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),s.jsx(xe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:se(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:se(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:se(a.onPointerLeave,()=>{c()})})}),Rke="SelectSeparator",a6=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return s.jsx(xe.div,{"aria-hidden":!0,...n,ref:t})});a6.displayName=Rke;var Uj="SelectArrow",Dke=b.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=Xx(r),i=Vi(Uj,r),o=Hi(Uj,r);return i.open&&o.position==="popper"?s.jsx(vv,{...a,...n,ref:t}):null});Dke.displayName=Uj;var Lke="SelectBubbleInput",i6=b.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const a=b.useRef(null),i=Te(n,a),o=a_(t);return b.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&d){const f=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(f)}},[o,t]),s.jsx(xe.select,{...r,style:{...TI,...r.style},ref:i,defaultValue:t})});i6.displayName=Lke;function o6(e){return e===""||e===void 0}function l6(e){const t=Er(e),r=b.useRef(""),n=b.useRef(0),a=b.useCallback(o=>{const l=r.current+o;t(l),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),i=b.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}function c6(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=Fke(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function Fke(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Bke=RF,u6=LF,zke=BF,Uke=zF,Wke=UF,d6=WF,Vke=GF,f6=XF,h6=JF,Hke=ZF,qke=t6,m6=r6,p6=n6,g6=a6;const rn=Bke,nn=zke,Fr=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(u6,{ref:n,className:J("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
616ing-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,s.jsx(Uke,{asChild:!0,children:s.jsx(Mo,{className:"h-4 w-4 opacity-50"})})]}));Fr.displayName=u6.displayName;const v6=b.forwardRef(({className:e,...t},r)=>s.jsx(m6,{ref:r,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(zU,{className:"h-4 w-4"})}));v6.displayName=m6.displayName;const x6=b.forwardRef(({className:e,...t},r)=>s.jsx(p6,{ref:r,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(Mo,{className:"h-4 w-4"})}));x6.displayName=p6.displayName;const Br=b.forwardRef(({className:e,children:t,position:r="popper",...n},a)=>s.jsx(Wke,{children:s.jsxs(d6,{ref:a,className:J("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:[s.jsx(v6,{}),s.jsx(Vke,{className:J("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(x6,{})]})}));Br.displayName=d6.displayName;const Gke=b.forwardRef(({className:e,...t},r)=>s.jsx(f6,{ref:r,className:J("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Gke.displayName=f6.displayName;const Ne=b.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(h6,{ref:n,className:J("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:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(qke,{children:s.jsx(It,{className:"h-4 w-4"})})}),s.jsx(Hke,{children:t})]}));Ne.displayName=h6.displayName;const Kke=b.forwardRef(({className:e,...t},r)=>s.jsx(g6,{ref:r,className:J("-mx-1 my-1 h-px bg-muted",e),...t}));Kke.displayName=g6.displayName;const Yke=()=>{gt();const[e,t]=b.useState(""),[r,n]=b.useState("influence"),[a,i]=b.useState("all"),[o,l]=b.useState("cards"),[c,u]=b.useState(null),d=[{id:"1",name:"Ian Yates",title:"Head of Digital Innovation",influence:9,interest:8,role:"champion",personality:"Analytical",department:"IT",seniority:"executive",decisionMaker:!0,notes:"Strong advocate for automation and digital transformation"},{id:"2",name:"Tessa Moreno",title:"Operations Team Manager",influence:7,interest:9,role:"champion",personality:"Assertive",department:"Operations",seniority:"senior",decisionMaker:!0,notes:"Sees immediate value in process improvement"},{id:"3",name:"Marc",title:"Recruitment Agent",influence:4,interest:6,role:"neutral",personality:"Curious",department:"HR",seniority:"mid",decisionMaker:!1,notes:"Open to learning about new solutions"},{id:"4",name:"Sandra",title:"Process Design & Optimization Delivery Lead, AVP",influence:8,interest:7,role:"champion",personality:"Analytical",department:"Operations",seniority:"executive",decisionMaker:!0,notes:"Process optimization expert, understands value proposition"},{id:"5",name:"Michael",title:"Program Manager",influence:6,interest:5,role:"neutral",personality:"Assertive",department:"Operations",seniority:"senior",decisionMaker:!1,notes:"Focused on timeline and budget considerations"},{id:"6",name:"Agnes Potts",title:"VP of Sales",influence:9,interest:8,role:"champion",personality:"Enthusiastic",department:"Sales",seniority:"executive",decisionMaker:!0,notes:"Advocate for automation, wants faster onboarding"}],f=v=>{switch(v){case"champion":return"bg-green-100 text-green-700 border-green-300";case"ambassador":return"bg-blue-100 text-blue-700 border-blue-300";case"neutral":return"bg-gray-100 text-gray-700 border-gray-300";
616case"skeptical":return"bg-orange-100 text-orange-700 border-orange-300";case"blocker":return"bg-red-100 text-red-700 border-red-300";default:return"bg-gray-100 text-gray-700 border-gray-300"}},h=v=>{switch(v.toLowerCase()){case"analytical":return"bg-blue-50 text-blue-600";case"assertive":return"bg-purple-50 text-purple-600";case"curious":return"bg-yellow-50 text-yellow-600";case"enthusiastic":return"bg-green-50 text-green-600";default:return"bg-gray-50 text-gray-600"}},m=d.filter(v=>v.name.toLowerCase().includes(e.toLowerCase())||v.title.toLowerCase().includes(e.toLowerCase())).filter(v=>a==="all"||v.role===a).sort((v,y)=>{switch(r){case"influence":return y.influence-v.influence;case"interest":return y.interest-v.interest;case"name":return v.name.localeCompare(y.name);default:return 0}}),g=d.reduce((v,y)=>(v[y.role]=(v[y.role]||0)+1,v),{}),p=v=>v.split(" ").map(y=>y[0]).join("").toUpperCase();return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Gx,{pageTitle:"AtoZ Accounting – Stakeholders"}),s.jsx(gr,{children:s.jsxs("div",{className:"flex w-full",children:[s.jsx(Ar,{isDemoMode:!0}),s.jsxs("main",{className:"flex-1 flex flex-col",children:[s.jsx("div",{className:"border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:s.jsx("div",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsx("div",{children:s.jsxs(ue,{variant:"secondary",className:"gap-1 mt-1",children:[s.jsx(bt,{className:"h-3 w-3"}),d.length," Stakeholders mapped, ",g.champion||0," Champions, ",g.skeptical||0," Skeptical"]})})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(W,{variant:"outline",size:"sm",className:"gap-2",onClick:()=>l(o==="cards"?"map":"cards"),children:o==="cards"?s.jsxs(s.Fragment,{children:[s.jsx(bc,{className:"h-4 w-4"}),"View Power/Interest Map"]}):s.jsxs(s.Fragment,{children:[s.jsx(n$,{className:"h-4 w-4"}),"View as Cards"]})}),s.jsxs(W,{size:"sm",className:"gap-2",children:[s.jsx(wc,{className:"h-4 w-4"}),"Add Stakeholder"]})]})]})})}),s.jsx("div",{className:"px-6 py-6 flex-1",children:s.jsxs("div",{className:"grid lg:grid-cols-4 gap-6",children:[s.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative flex-1 max-w-sm",children:[s.jsx(au,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(De,{placeholder:"Search stakeholders...",value:e,onChange:v=>t(v.target.value),className:"pl-10"})]}),s.jsxs(rn,{value:r,onValueChange:n,children:[s.jsx(Fr,{className:"w-[180px]",children:s.jsx(nn,{placeholder:"Sort by"})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"influence",children:"Influence"}),s.jsx(Ne,{value:"interest",children:"Interest"}),s.jsx(Ne,{value:"name",children:"Name"})]})]}),s.jsxs(rn,{value:a,onValueChange:i,children:[s.jsxs(Fr,{className:"w-[150px]",children:[s.jsx(H1,{className:"h-4 w-4 mr-2"}),s.jsx(nn,{placeholder:"Filter by role"})]}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"all",children:"All Roles"}),s.jsx(Ne,{value:"champion",children:"Champion"}),s.jsx(Ne,{value:"ambassador",children:"Ambassador"}),s.jsx(Ne,{value:"neutral",children:"Neutral"}),s.jsx(Ne,{value:"skeptical",children:"Skeptical"}),s.jsx(Ne,{value:"blocker",children:"Blocker"})]})]})]}),o==="cards"?s.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-4",children:m.map(v=>s.jsx(z,{className:"hover:shadow-md transition-shadow",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-sm font-medium text-primary",children:p(v.name)})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:v.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:v.title})]})]}),s.jsx(W,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:s.jsx(WU,{className:"h-4 w-4"})})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx(ue,{variant:"outline",className:`text-xs capitalize ${f(v.role)}`,children:v.role}),s.jsx(ue,{variant:"secondary",className:`text-xs ${h(v.personality)}`,children:v.personality})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[s.jsx("span",{children:"Influence"}),s.jsxs("span",{children:[v.influence,"/10"]})]}),s.jsx(vs,{value:v.influence*10,className:"h-2"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[s.jsx("span",{children:"Interest"}),s.jsxs("span",{children:[v.interest,"/10"]})]}),s.jsx(vs,{value:v.interest*10,className:"h-2"})]}),v.notes&&s.jsxs("p",{className:"text-xs text-muted-foreground italic",children:['"',v.notes,'"']}),s.jsxs("div",{className:"flex gap-2 pt-2",children:[s.jsxs(W,{variant:"outline",size:"sm",className:"flex-1 gap-1",children:[s.jsx(rt,{className:"h-3 w-3"}),"Add to Proposal"]}),s.jsxs(W,{variant:"outline",size:"sm",className:"flex-1 gap-1",children:[s.jsx(a$,{className:"h-3 w-3"}),"Message Strategy"]}
616)]})]})]})},v.id))}):s.jsx(wv,{children:s.jsxs(z,{className:"min-h-[600px]",children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(bc,{className:"h-5 w-5"}),"Interest–Influence Map"]})}),s.jsxs(V,{children:[s.jsxs("div",{className:"relative w-full h-[500px] border border-gray-200 rounded-lg bg-gradient-to-br from-gray-50 to-white",children:[s.jsx("div",{className:"absolute -bottom-6 left-1/2 transform -translate-x-1/2 text-sm font-medium text-gray-600",children:"Interest →"}),s.jsx("div",{className:"absolute -left-16 top-1/2 transform -translate-y-1/2 -rotate-90 text-sm font-medium text-gray-600",children:"Influence →"}),s.jsx("div",{className:"absolute top-1/2 left-0 right-0 h-px bg-gray-300"}),s.jsx("div",{className:"absolute top-0 bottom-0 left-1/2 w-px bg-gray-300"}),s.jsx("div",{className:"absolute top-2 left-2 text-xs text-gray-500 font-medium",children:"Monitor Only"}),s.jsx("div",{className:"absolute top-2 right-2 text-xs text-green-600 font-medium",children:"Champions / Priority 🟢"}),s.jsx("div",{className:"absolute bottom-2 left-2 text-xs text-blue-600 font-medium",children:"Supporters / Ambassadors 🔵"}),s.jsx("div",{className:"absolute bottom-2 right-2 text-xs text-red-600 font-medium",children:"Potential Blockers 🔴"}),m.map(v=>{const y=v.interest/10*100,x=100-v.influence/10*100;return s.jsxs(iN,{children:[s.jsx(oN,{asChild:!0,children:s.jsx("div",{className:`absolute w-6 h-6 rounded-full border-2 border-white shadow-lg cursor-pointer transform -translate-x-1/2 -translate-y-1/2 transition-all hover:scale-125 hover:z-10 ${v.role==="champion"?"bg-green-500":v.role==="ambassador"?"bg-blue-500":v.role==="neutral"?"bg-gray-400":v.role==="skeptical"?"bg-orange-500":"bg-red-500"}`,style:{left:`${y}%`,top:`${x}%`},onClick:()=>u(v),children:s.jsx("div",{className:"w-full h-full rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-[8px] font-bold text-white",children:p(v.name)})})})}),s.jsx(jv,{side:"top",className:"max-w-xs",children:s.jsxs("div",{className:"space-y-1",children:[s.jsx("p",{className:"font-medium",children:v.name}),s.jsx("p",{className:"text-xs text-muted-foreground",children:v.title}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("span",{className:"text-xs",children:["Influence: ",v.influence,"/10"]}),s.jsxs("span",{className:"text-xs",children:["Interest: ",v.interest,"/10"]})]}),s.jsx(ue,{variant:"outline",className:`text-xs capitalize ${f(v.role)}`,children:v.role})]})})]},v.id)})]}),s.jsxs("div",{className:"mt-6 grid grid-cols-2 md:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg",children:[s.jsx("div",{className:"w-4 h-4 bg-green-500 rounded-full mx-auto mb-1"}),s.jsx("div",{className:"text-sm font-medium text-green-700",children:"Champions"}),s.jsx("div",{className:"text-lg font-bold text-green-600",children:g.champion||0})]}),s.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg",children:[s.jsx("div",{className:"w-4 h-4 bg-blue-500 rounded-full mx-auto mb-1"}),s.jsx("div",{className:"text-sm font-medium text-blue-700",children:"Ambassadors"}),s.jsx("div",{className:"text-lg font-bold text-blue-600",children:g.ambassador||0})]}),s.jsxs("div",{className:"text-center p-3 bg-orange-50 rounded-lg",children:[s.jsx("div",{className:"w-4 h-4 bg-orange-500 rounded-full mx-auto mb-1"}),s.jsx("div",{className:"text-sm font-medium text-orange-700",children:"Skeptical"}),s.jsx("div",{className:"text-lg font-bold text-orange-600",children:g.skeptical||0})]}),s.jsxs("div",{className:"text-center p-3 bg-red-50 rounded-lg",children:[s.jsx("div",{className:"w-4 h-4 bg-red-500 rounded-full mx-auto mb-1"}),s.jsx("div",{className:"text-sm font-medium text-red-700",children:"Blockers"}),s.jsx("div",{className:"text-lg font-bold text-red-600",children:g.blocker||0})]})]})]})]})})]}),s.jsx("div",{className:"space-y-4",children:s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"text-lg flex items-center gap-2",children:[s.jsx(qe,{className:"h-5 w-5"}),"Stakeholder Insights"]})}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Alignment Overview"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-green-600",children:"Champions & Ambassadors"}),s.jsx("span",{children:(g.champion||0)+(g.ambassador||0)})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-gray-600",children:"Neutral"}),s.jsx("span",{children:g.neutral||0})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-orange-600",children:"Skeptical & Blockers"}),s.jsx("span",{children:(g.skeptical||0)+(g.blocker||0)})]})]})]}),s.jsxs("div",{className:"p-3 bg-blue-50 rounded-lg",children:[s.jsx("h4",{className:"font-medium text-blue-900 mb-1",children:"Engagement Focus"}),s.jsxs("p",{className:"text-sm text-blue-700",children:["Leverage your ",g.champion||0," champions to influence neutral stakeholders. Consider addressing concerns of high-influence skeptics."]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Decision Makers"}),s.jsx("div",{className:"space-y-2",children:d.filter(v=>v.decisionMaker).map(v=>s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx("div",{className:"w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-xs font-medium text-primary",children:p(v.name)})}),s.jsx("span",{children:v.name}),s.jsx(ue,{variant:"outline",className:`text-xs ml-auto ${f(v.role)}`,children:v.role})]},v.id))})]})]})]})})]})})]})]})})]})},Xke=()=>{gt();const[e,t]=b.useState("inefficiencies"),[r,n]=b.useState(null),a=[{department:"Marketing",color:"bg-blue-50 border-blue-200",steps:[{id:"m1",name:"Campaign Planning",duration:"2 days",x:0,issues:[]},{id:"m2",name:"Content Creation",duration:"3 days",x:1,issues:[{type:"inefficient",title:"Manual Asset Management",description:"20% of time spent searching for brand assets",
616impact:"6 hrs/week lost",quote:"We can't find the right files when we need them"}]},{id:"m3",name:"Campaign Launch",duration:"1 day",x:2,issues:[]}]},{department:"Sales Ops",color:"bg-green-50 border-green-200",steps:[{id:"so1",name:"Lead Import",duration:"4 hrs",x:0,issues:[{type:"bottleneck",title:"Manual Data Entry",description:"All leads manually entered from varied formats",impact:"32 hrs/week",quote:"We are really struggling with the amount of data we receive in varied formats"}]},{id:"so2",name:"Lead Qualification",duration:"2 days",x:1,issues:[{type:"inefficient",title:"Duplicate Qualification",description:"Sales and Sales Ops both qualifying same leads",impact:"16 hrs/week overlap",quote:"There's no consistency in how we handle leads"}]},{id:"so3",name:"Lead Handoff",duration:"6 hrs",x:2,issues:[{type:"automation",title:"Manual Routing",description:"Lead routing decisions made manually",impact:"Could automate 80%",quote:"We need better assignment rules"}]}]},{department:"Sales",color:"bg-purple-50 border-purple-200",steps:[{id:"s1",name:"Initial Contact",duration:"1 day",x:0,issues:[]},{id:"s2",name:"Discovery Call",duration:"1 hr",x:1,issues:[]},{id:"s3",name:"Proposal Creation",duration:"3 days",x:2,issues:[{type:"bottleneck",title:"Template Bottleneck",description:"Waiting for custom templates from marketing",impact:"48 hr average delay",quote:"We're always waiting for the design team"}]}]},{department:"Operations",color:"bg-orange-50 border-orange-200",steps:[{id:"o1",name:"Order Processing",duration:"2 hrs",x:0,issues:[]},{id:"o2",name:"Approval Workflow",duration:"2 days",x:1,issues:[{type:"bottleneck",title:"Manual Approval Chain",description:"3-level manual approval required for all orders",impact:"48 hr average delay",quote:"IT aren't happy with this for obvious security reasons"}]},{id:"o3",name:"Fulfillment",duration:"1 day",x:2,issues:[{type:"automation",title:"Inventory Management",description:"Manual inventory checks and updates",impact:"18 hrs/week",quote:"We need real-time inventory tracking"}]}]}],i=c=>{switch(c){case"bottleneck":return"border-red-500 bg-red-100";case"inefficient":return"border-orange-500 bg-orange-100";case"automation":return"border-green-500 bg-green-100";default:return"border-gray-300 bg-white"}},o=c=>{switch(c){case"bottleneck":return s.jsx(pr,{className:"w-4 h-4 text-red-600"});case"inefficient":return s.jsx(Sn,{className:"w-4 h-4 text-orange-600"});case"automation":return s.jsx(Ok,{className:"w-4 h-4 text-green-600"});default:return null}},l={inefficiencies:[{title:"Manual Data Re-entry",impact:"32 hrs/week lost",description:"20% of marketing's time is spent on tasks meant for sales ops",severity:"high",quote:"We are really struggling with the amount of data we receive in varied formats"},{title:"Duplicate Lead Qualification",impact:"16 hrs/week lost",description:"Sales and Sales Ops both qualifying same leads",severity:"medium",quote:"There's no consistency in how we handle leads"}],bottlenecks:[{title:"Order Fulfillment Delays",impact:"48 hr average delay",description:"Manual approval process creating backlog",severity:"high",quote:"IT aren't happy with this for obvious security reasons"},{title:"Lead Handoff Process",impact:"24 hr response delay",description:"No automated routing between teams",severity:"medium",quote:"Data providers don't stick to contract arrangements"}],outcomes:[{title:"Faster Response Times",description:"Reduce lead response from 24hrs to 2hrs",impact:"15% increase in conversion"},{title:"Automated Data Processing",description:"Eliminate manual data entry across teams",impact:"32 hrs/week time savings"}],recommendations:[{title:"Implement CRM Automation",type:"automation",impact:"High",effort:"Medium",description:"Automate lead routing and data entry processes"},{title:"Redesign Approval Workflow",type:"process",impact:"High",effort:"Low",description:"Streamline order approval with digital signatures"}]};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Gx,{pageTitle:"Workflow Analysis – AtoZ Data Team"}),s.jsx(gr,{children:s.jsxs("div",{className:"flex w-full",children:[s.jsx(Ar,{isDemoMode:!0}),s.jsx("main",{className:"flex-1",children:s.jsxs("div",{className:"bg-background p-6",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("div",{className:"flex items-center gap-4 mb-4",children:s.jsx(ws,{})}),s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("div",{children:s.jsx("p",{className:"text-muted-foreground",children:"Auto-analyzed from Discovery Call on 11 September 2025 at 12:11"})}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs(W,{variant:"outline",className:"flex items-center gap-2",children:[s.jsx(rh,{className:"w-4 h-4"}),"Export Report"]}),s.jsxs(W,{variant:"outline",className:"flex items-center gap-2",children:[s.jsx(l$,{className:"w-4 h-4"}),"Send to Proposal"]}),s.jsxs(W,{className:"flex items-center gap-2",children:[s.jsx(Ro,{className:"w-4 h-4"}),"Run What-If Scenario"]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"lg:col-span-2",children:[s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center justify-between",children:["Workflow Swimlane Map",s.jsx(W,{variant:"outline",size:"sm",children:"Redesign this Workflow"})]})}),s.jsxs(V,{children:[s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("div",{className:"min-w-[800px] space-y-1 relative",children:[s.jsxs("div",{className:"flex mb-4",children:[s.jsx("div",{className:"w-32"}),s.jsxs("div",{className:"flex-1 grid grid-cols-3 gap-4 text-center text-sm font-medium text-muted-foreground",children:[s.jsx("div",{children:"Phase 1"}),s.jsx("div",{children:"Phase 2"}),s.jsx("div",{children:"Phase 3"})]})]}),a.map((c,u)=>s.jsxs("div",{className:"flex relative",children:[s.jsx("div",{className:`w-32 p-3 border-r-2 ${c.color} flex items-center font-semibold text-sm`,children:c.department}),s.jsx("div",{className:"flex-1 relative",children:s.jsx("div",{className:`h-20 border ${c.color} relative`,children:s.jsx("div",{className:"grid grid-cols-3 gap-4 h-full p-2",children:c.steps.map((d,f)=>s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:`relative rounded border-2 p-2 cursor-pointer transition-all hover:shadow-md ${d.issues.length>0?i(d.issues[0].type):"border-gray-300 bg-white"}`,onClick:()=>d.issues.length>0&&n(d.issues[0]),children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-xs font-medium truncate",children:d.name}),d.issues.length>0&&s.jsxs("div",{className:"flex items-center",children:[o(d.issues[0].type),s.jsx(q1,{className:"w-3 h-3 ml-1 text-muted-foreground"})]})]}),s.jsx("div",{className:"text-xs text-muted-foreground",children:d.duration}),d.issues.length>0&&s.jsx("div",{className:"absolute -top-1 -right-1",children:s.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500 border-2 border-white"})})]}),f<c.steps.length-1&&s.jsx("div",{className:"absolute top-1/2 -right-2 transform -translate-y-1/2 z-10",children:s.jsx(Ht,{className:"w-4 h-4 text-blue-500 bg-white rounded-full p-0.5 border border-blue-300"})}),u<a.length-1&&f===0&&s.jsxs("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 z-10",children:[s.jsx("div",{className:"w-0.5 h-4 bg-blue-500"}),s.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full transform -translate-x-0.5"})]}),(u===0&&f===2||u===1&&f===2||u===2&&f===2)&&s.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 z-10",children:s.jsxs("svg",{width:"2",height:"20",className:"overflow-visible",children:[s.jsx("line",{x1:"1",y1:"0",x2:"1",y2:"20",stroke:"#3b82f6",strokeWidth:"2",markerEnd:"url(#arrowhead)"}),s.jsx("defs",{children:s.jsx("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:s.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})})})]})})]},d.id))})})})]},c.department)),s.jsxs("svg",{className:"absolute top-0 left-0 w-full h-full pointer-events-none",style:{zIndex:1},children:[s.jsx("line",{x1:"300",y1:"90",x2:"300",y2:"110",stroke:"#f97316",strokeWidth:"2",markerEnd:"url(#arrowhead-orange)"}),s.jsx("line",{x1:"300",y1:"190",x2:"300",y2:"210",stroke:"#10b981",strokeWidth:"2",markerEnd:"url(#arrowhead-green)"}),s.jsx("line",{x1:"300",y1:"290",x2:"300",y2:"310",stroke:"#8b5cf6",strokeWidth:"2",markerEnd:"url(#arrowhead-purple)"}),s.jsxs("defs",{children:[s.jsx("marker",{id:"arrowhead-orange",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:s.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#f97316"})}),s.jsx("marker",{id:"arrowhead-green",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:s.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#10b981"})}),s.jsx("marker",{id:"arrowhead-purple",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:s.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#8b5cf6"})})]})]})]})}),s.jsxs("div",{className:"mt-6 flex flex-wrap gap-4 text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(pr,{className:"w-4 h-4 text-red-600"}),s.jsx("span",{children:"Bottleneck"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Sn,{className:"w-4 h-4 text-orange-600"}),s.jsx("span",{children:"Inefficiency"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ok,{className:"w-4 h-4 text-green-600"}),s.jsx("span",{children:"Automation Opportunity"})]})]}),s.jsxs("div",{className:"mt-6 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(pr,{className:"w-5 h-5 text-blue-600"}),s.jsx("span",{className:"font-semibold text-blue-900",children:"Key Finding"})]}),s.jsx("p",{className:"text-blue-800 text-sm",children:"20% of marketing's time is spent on tasks meant for sales ops – reassign or automate?"})]})]})]}),s.jsx(il,{open:!!r,onOpenChange:()=>n(null),children:s.jsxs(zi,{className:"max-w-md",children:[s.jsx(Ui,{children:s.jsxs(Wi,{className:"flex items-center gap-2",children:[r&&o(r.type),r==null?void 0:r.title]})}),r&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Description"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:r.description})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Impact"}),s.jsx(ue,{variant:"destructive",children:r.impact})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"From Transcript"}),s.jsxs("blockquote",{className:"border-l-4 border-blue-500 pl-4 italic text-sm text-muted-foreground",children:['"',r.quote,'"']})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(W,{size:"sm",className:"flex-1",children:"Add to Report"}),s.jsx(W,{size:"sm",variant:"outline",className:"flex-1",children:"Suggest Fix"})]})]})]})})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(rt,{className:"w-5 h-5"}),"INSIGHTS FROM AtoZ team call"]})}),s.jsx(V,{children:s.jsxs(gs,{value:e,onValueChange:t,children:[s.jsxs(In,{className:"grid w-full grid-cols-2 mb-4",children:[s.jsx(Ve,{value:"inefficiencies",children:"Analytics"}),s.jsx(Ve,{value:"discoveries",children:"Discoveries"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[s.jsxs("div",{className:"text-center p-3 bg-muted rounded-lg",children:[s.jsx("div",{className:"text-lg font-bold text-foreground",children:"12%"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Inefficiency"})]}),s.jsxs("div",{className:"text-center p-3 bg-muted rounded-lg",children:[s.jsx("div",{className:"text-lg font-bold text-foreground",children:"320"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"hrs/month"})]})]}),s.jsxs(He,{value:"inefficiencies",className:"space-y-4",children:[s.jsxs("div",{children:[s.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(pr,{className:"w-4 h-4 text-orange-500"}),"Challenges"]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-sm p-2 bg-muted rounded",children:s.jsx("div",{className:"font-medium",children:"Exter
616nal factors"})}),s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Suppliers"]}),s.jsx("div",{className:"text-blue-600",children:"7 pain points 3%"})]}),s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Input"]}),s.jsx("div",{className:"text-blue-600",children:"3 data issues 3%"})]})]})]}),s.jsxs("div",{children:[s.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(c$,{className:"w-4 h-4 text-blue-500"}),"Internal Factors"]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Process"]}),s.jsx("div",{className:"text-blue-600",children:"7 pain points 9%"})]}),s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Quality"]}),s.jsx("div",{className:"text-blue-600",children:"5 data issues"})]}),s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Metrics"]}),s.jsx("div",{className:"text-blue-600",children:"11 KPIs impacted"})]})]})]}),s.jsxs("div",{children:[s.jsxs("h4",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(bt,{className:"w-4 h-4 text-green-500"}),"Stakeholders"]}),s.jsxs("div",{className:"text-sm p-2 bg-muted rounded flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(sa,{className:"w-4 h-4 inline mr-1"}),"Groups"]}),s.jsx("div",{className:"text-blue-600",children:"2 groups raised"})]})]})]}),s.jsx(He,{value:"discoveries",className:"space-y-4",children:l.outcomes.map((c,u)=>s.jsxs("div",{className:"p-3 border rounded-lg",children:[s.jsx("h5",{className:"font-medium text-sm mb-1",children:c.title}),s.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:c.description}),s.jsx("div",{className:"text-xs text-green-600 font-medium",children:c.impact})]},u))})]})]})})]}),s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(qe,{className:"w-5 h-5"}),"Impact Summary"]})}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[s.jsx("span",{children:"Total inefficiency detected"}),s.jsx("span",{className:"font-medium",children:"12%"})]}),s.jsx(vs,{value:12,className:"h-2"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[s.jsx("span",{children:"Estimated savings"}),s.jsx("span",{className:"font-medium",children:"320 hrs/month"})]}),s.jsx(vs,{value:75,className:"h-2"})]}),s.jsxs("div",{className:"p-3 bg-green-50 border border-green-200 rounded-lg",children:[s.jsx("div",{className:"text-sm font-medium text-green-900",children:"ROI Potential"}),s.jsx("div",{className:"text-lg font-bold text-green-700",children:"£84,000/year"})]})]}),s.jsx(W,{className:"w-full",children:"Generate ROI Report"})]})]})]})]}),s.jsx("div",{className:"mt-6",children:s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Call Transcript Highlights"})}),s.jsx(V,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"w-12 h-8 bg-blue-100 rounded flex items-center justify-center text-xs font-medium",children:"0:00"}),s.jsxs("div",{className:"flex-1 p-3 bg-blue-50 rounded-lg",children:[s.jsx("div",{className:"text-sm font-medium mb-1",children:"Speaker 1"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:`"We are really struggling with the amount of data we receive in varied formats. There's no consistency"`})]})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsx("div",{className:"w-12 h-8 bg-blue-100 rounded flex items-center justify-center text-xs font-medium",children:"0:04"}),s.jsxs("div",{className:"flex-1 p-3 bg-blue-50 rounded-lg",children:[s.jsx("div",{className:"text-sm font-medium mb-1",children:"Speaker 2"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:`"Yes – and, and we have data providers that don't stick to our contract arrangements and send the data to us in their own preferred format via email. IT aren't happy with this for obvious security reasons"`})]})]})]})})]})})]})})]})})]})},Qke="/assets/hero-value-tied-pricing-DljmnDDa.png",Jke=()=>{const e=[{icon:au,title:"Signal Detection",description:"Real-time conversation analysis that extracts pain points like 'manual reconciliations take days' and converts signals into quantified value levers."},{icon:th,title:"ROI Prioritisation",description:"Ranks opportunities by ROI vs effort, highlighting quick wins vs strategic initiatives with value scorecards per client."},{icon:rt,title:"Client-Ready Assets",description:"ROI-backed proposals, value justification slides for QBRs, and pricing recommendations linked to savings/growth."}],t=[{role:"Consultants & Fractional COOs",benefit:"Stop discounting — show pricing anchored in client impact. Win trust with quantified, personalised recommendations."},{role:"Clients",benefit:"Clear, ROI-based proposals they can take straight to finance. Confidence that fees are tied to outcomes, not vague estimates."}],r=[{step:"1",title:"Upload Discovery Data",description:"Notes, transcripts, workflows"},{step:"2",title:"AI Detection",description:"Identifies finance team losing 20 hrs/week to manual reconciliations"},{step:"3",title:"ROI Match",description:"£85K savings potential flagged, readiness score: 8/10"},{step:"4",title:"Proposal Export",description:"Consultant exports ROI-backed deck → pricing justified against value delivered"}],n=[{signal:"Manual reporting takes too long",roi:"£75K savings",priority:"High"},{signal:"Struggling with data handoffs",roi:"£40K savings",priority:"Medium"},{signal:"Need better automation",roi:"£120K savings",priority:"High"}];return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background/95 to-accent/5",children:[s.jsx(cs,{}),s.jsx("section",{className:"relative px-6 py-20 lg:py-32",children:s.jsx("div",{className:"mx-auto max-w-7xl",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs(ue,{variant:"secondary",className:"w-fit",children:[s.jsx(V1,{className:"w-3 h-3 mr-1"}),"Value-Tied Pricing"]}),s.jsx("h1",{className:"text-4xl lg:text-6xl font-bold leading-tight bg-gradient-to-r from-primary via-primary to-secondary bg-clip-text text-transparent",children:"Price with Confidence — Anchor Every Proposal to Measurable Client Value"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Clientli analyses discovery calls, workflows, and client data to surface customised quick wins and tie your pricing directly to the impact you deliver — so proposals land faster and with fewer objections."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(W,{size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Join Clientli",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{variant:"outline",size:"lg",onClick:()=>window.location.href="/discovery-call-analysis",children:"View Demo"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"40%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Fewer pricing objections"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"85%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster proposal acceptance"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:Qke,alt:"Value-tied pricing dashboard",className:"w-full h-auto rounded-2xl shadow-2xl border border-border/20"}),s.jsxs("div",{className:"absolute -bottom-4 -right-4 bg-card border border-border rounded-lg p-4 shadow-lg",children:[s.jsx("div",{className:"text-sm font-medium",children:"ROI Confidence Score"}),s.jsx("div",{className:"text-2xl font-bold text-green-600",children:"8.5/10"})]})]})]})})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"What It Does"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Transform client conversations and workflows into ROI-backed proposals that prove value before the client asks."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:["Analyses Conversations: Scans transcripts and notes for pain signals like 'manual reporting takes too long' or 'our pipeline is unreliable.'","Surfaces Value Levers: Translates pains into quantified outcomes (time saved, cost reduced, revenue unlocked).","Ties to ROI: Matches solutions to measurable financial impact, so pricing aligns to value — not hours.","Generates Proposal Assets: Creates client-facing decks and ROI reports that justify pricing and simplify executive buy-in."].map((a,i)=>s.jsx(z,{className:"p-6 hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:s.jsx(Ct,{className:"w-5 h-5 text-primary"})}),s.jsx("p",{className:"text-sm leading-relaxed",children:a})]})},i))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Key Features"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Everything you need to make pricing defensible and value-driven."})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:e.map((a,i)=>s.jsx(z,{className:"p-8 hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:s.jsx(V,{className:"p-0",children:s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-lg flex items-center justify-center shrink-0",children:s.jsx(a.icon,{className:"w-6 h-6 text-primary-foreground"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold",children:a.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:a.description})]})]})})},i))}),s.jsx(z,{className:"p-6",children:s.jsxs(V,{className:"p-0",children:[s.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Pain Signal Detection Example"}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b",children:[s.jsx("th",{className:"text-left py-2 font-medium",children:"Pain Signal"}),s.jsx("th",{className:"text-left py-2 font-medium",children:"ROI Potential"}),s.jsx("th",{className:"text-left py-2 font-medium",children:"Priority"})]})}),s.jsx("tbody",{children:n.map((a,i)=>s.jsxs("tr",{className:"border-b last:border-b-0",children:[s.jsxs("td",{className:"py-3 text-muted-foreground",children:['"',a.signal,'"']}),s.jsx("td",{className:"py-3 font-medium text-green-600",children:a.roi}),s.jsx("td",{className:"py-3",children:s.jsx(ue,{variant:a.priority==="High"?"default":"secondary",children:a.priority})})]},i))})]})})]})}),s.jsx(z,{className:"p-6 mt-8",children:s.jsxs(V,{className:"p-0",children:[s.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Value Scorecard per Client"}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:"ROI Potential"}),s.jsx("div",{className:"text-lg font-bold text-green-600",children:"High"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:"Cost / Margin Leakage"}),s.jsx("div",{className:"text-lg font-bold text-yellow-600",children:"Medium"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:"Stakeholder Support"}),s.jsx("div",{className:"text-lg font-bold text-green-600",children:"High"})]}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:"Overall Readiness"}),s.jsx("div",{className:"text-lg font-bold text-primary",children:"8.5 / 10"})]})]})]})})]})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center space-y-4 mb-12",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Why It Matters"})}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:t.map((a,i)=>s.jsx(z,{className:"p-6 hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-primary rounded-full flex items-center justify-center",children:s.jsx(qe,{className:"w-8 h-8 text-primary-foreground"})}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-lg font-semibold mb-2",children:["For ",a.role]}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:a.benef
616it})]})]})},i))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center space-y-4 mb-12",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Example User Journey"})}),s.jsx("div",{className:"grid md:grid-cols-4 gap-8",children:r.map((a,i)=>s.jsxs("div",{className:"relative",children:[s.jsx(z,{className:"p-6 text-center hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-full flex items-center justify-center mx-auto text-lg font-bold text-primary-foreground",children:a.step}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:a.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:a.description})]})]})}),i<r.length-1&&s.jsx("div",{className:"hidden md:block absolute top-14 -right-4 w-8 h-0.5 bg-gradient-to-r from-primary to-secondary"})]},i))})]})}),s.jsx("section",{className:"px-6 py-20 bg-gradient-primary",children:s.jsx("div",{className:"mx-auto max-w-4xl text-center",children:s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-primary-foreground",children:"Ready to Price with Confidence?"}),s.jsx("p",{className:"text-lg text-primary-foreground/90 max-w-2xl mx-auto",children:"Stop underselling your value — tie every proposal to ROI."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[s.jsxs(W,{size:"lg",variant:"secondary",className:"group",onClick:()=>window.location.href="/auth",children:["Get Started with Value-Tied Pricing",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{size:"lg",variant:"outline",className:"bg-transparent border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10",onClick:()=>window.open("https://calendly.com/tony_leania/","_blank"),children:"Schedule Demo"})]})]})})})]})},Zke="/assets/hero-gtm-engine-CBVikzO-.png",e2e=()=>{const e=[{icon:qU,title:"Proposal & Playbook Library",description:"Save your strongest proposals, ROI decks, and persona-based playbooks — then reuse and adapt them in minutes for new prospects."},{icon:Mt,title:"Persona & Stakeholder Alignment",description:"Generate personas for each stakeholder, with their objections and motivators mapped, so messaging is always relevant."},{icon:th,title:"Pipeline Tracker",description:"Track clients in My Clientlis: from first call → proposal → ROI proof → expansion. Spot bottlenecks early, keep deals moving."},{icon:Tk,title:"Consistent, Measurable GTM",description:"Your GTM strategy becomes an engine, not guesswork: every campaign tied to outcomes, every proposal tied to ROI."}],t=[{role:"Consultants & Fractional COOs",benefit:"Stop starting from scratch every time. Build a library of winning assets. Keep sales repeatable, predictable, and professional."},{role:"Clients",benefit:"Get consistent, tailored messaging that feels personal — not templated. Trust that proposals and pricing are grounded in their reality."}],r=[{step:"1",title:"Save Best Proposal",description:"Consultant stores a high-converting proposal template"},{step:"2",title:"New Prospect Call",description:"AI extracts pains, maps them to saved playbook"},{step:"3",title:"Proposal Auto-Draft",description:"Personalised version generated 
616with ROI proof"},{step:"4",title:"Pipeline Update",description:"Deal moves forward, consultant tracks stage in My Clientlis"}];return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-background/95 to-accent/5",children:[s.jsx(cs,{}),s.jsx("section",{className:"relative px-6 py-20 lg:py-32",children:s.jsx("div",{className:"mx-auto max-w-7xl",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs(ue,{variant:"secondary",className:"w-fit",children:[s.jsx(Tk,{className:"w-3 h-3 mr-1"}),"Repeatable GTM Engine"]}),s.jsx("h1",{className:"text-4xl lg:text-6xl font-bold leading-tight bg-gradient-to-r from-primary via-primary to-secondary bg-clip-text text-transparent",children:"Build a Predictable Pipeline — Without Starting From Scratch"}),s.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Most consultants and fractional COOs rely on referrals or founder hustle. Clientli gives you a repeatable GTM engine that personalises at scale — so your pipeline doesn't collapse when one deal falls through."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.jsxs(W,{size:"lg",className:"group",onClick:()=>window.location.href="/auth",children:["Join Clientli",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{variant:"outline",size:"lg",onClick:()=>window.location.href="/discovery-call-analysis",children:"See It in Action"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 pt-8",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"70%"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Faster proposal creation"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:"3x"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"More predictable pipeline"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:Zke,alt:"Repeatable GTM Engine dashboard",className:"w-full h-auto rounded-2xl shadow-2xl border border-border/20"}),s.jsxs("div",{className:"absolute -bottom-4 -right-4 bg-card border border-border rounded-lg p-4 shadow-lg",children:[s.jsx("div",{className:"text-sm font-medium",children:"Engine Efficiency"}),s.jsx("div",{className:"text-2xl font-bold text-green-600",children:"9.2/10"})]})]})]})})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsxs("div",{className:"text-center space-y-4 mb-12",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"What It Does"}),s.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Clientli helps you move from fragile, one-off sales to a systematic GTM motion that's both repeatable and personal:"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:["Standardises Winning Proposals: Reuse best-performing templates while still tailoring to each client","Personalises Outreach at Scale: Analyse discovery data to craft messaging aligned to client pains","Keeps Pipeline Organised: Centralise all proposals, personas, and ROI reports in one view","Tracks Conversion Signals: See which clients are ready for upsells, renewals, or new plays"].map((n,a)=>s.jsx(z,{className:"p-6 hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center mb-4",children:s.jsx(Ct,{className:"w-5 h-5 text-primary"})}),s.jsx("p",{className:"text-sm leading-relaxed",children:n})]})},a))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center space-y-4 mb-12",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Key Features"})}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map((n,a)=>s.jsx(z,{className:"p-8 hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:s.jsx(V,{className:"p-0",children:s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-lg flex items-center justify-center shrink-0",children:s.jsx(n.icon,{className:"w-6 h-6 text-primary-foreground"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-xl font-semibold",children:n.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.description})]})]})})},a))}),s.jsx(z,{className:"p-8 mt-12 bg-gradient-subtle",children:s.jsxs(V,{className:"p-0 text-center",children:[s.jsx("blockquote",{className:"text-lg italic text-muted-foreground mb-4",children:'"I finally stopped reinventing the wheel — every proposal now builds on the last."'}),s.jsx("cite",{className:"text-sm font-medium text-primary",children:"— Sarah Chen, Fractional COO"})]})})]})}),s.jsx("section",{className:"px-6 py-16 bg-accent/5",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center space-y-4 mb-12",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Why It Matters"})}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:t.map((n,a)=>s.jsx(z,{className:"p-6 hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-16 h-16 bg-gradient-primary rounded-full flex items-center justify-center",children:s.jsx(qe,{className:"w-8 h-8 text-primary-foreground"})}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-lg font-semibold mb-2",children:["For ",n.role]}
616),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n.benefit})]})]})},a))})]})}),s.jsx("section",{className:"px-6 py-16",children:s.jsxs("div",{className:"mx-auto max-w-6xl",children:[s.jsx("div",{className:"text-center space-y-4 mb-12",children:s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold",children:"Example User Journey"})}),s.jsx("div",{className:"grid md:grid-cols-4 gap-8",children:r.map((n,a)=>s.jsxs("div",{className:"relative",children:[s.jsx(z,{className:"p-6 text-center hover:shadow-lg transition-shadow",children:s.jsxs(V,{className:"p-0 space-y-4",children:[s.jsx("div",{className:"w-12 h-12 bg-gradient-primary rounded-full flex items-center justify-center mx-auto text-lg font-bold text-primary-foreground",children:n.step}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold mb-2",children:n.title}),s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.description})]})]})}),a<r.length-1&&s.jsx("div",{className:"hidden md:block absolute top-14 -right-4 w-8 h-0.5 bg-gradient-to-r from-primary to-secondary"})]},a))})]})}),s.jsx("section",{className:"px-6 py-20 bg-gradient-primary",children:s.jsx("div",{className:"mx-auto max-w-4xl text-center",children:s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-3xl lg:text-4xl font-bold text-primary-foreground",children:"Turn Fragile Sales into a Repeatable Engine"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center pt-4",children:[s.jsxs(W,{size:"lg",variant:"secondary",className:"group",onClick:()=>window.location.href="/auth",children:["Join Clientli",s.jsx(Ht,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]}),s.jsx(W,{size:"lg",variant:"outline",className:"bg-transparent border-primary-foreground/20 text-primary-foreground hover:bg-primary-foreground/10",onClick:()=>window.open("https://calendly.com/tony_leania/","_blank"),children:"Schedule Demo"})]})]})})})]})},t2e=[{date:"7 Sept",advocacy:65,skepticism:35},{date:"8 Sept",advocacy:62,skepticism:38},{date:"9 Sept",advocacy:58,skepticism:42},{date:"10 Sept",advocacy:55,skepticism:45},{date:"11 Sept",advocacy:60,skepticism:40}],r2e=[{date:"7 Sept",identified:12,converted:4},{date:"8 Sept",identified:15,converted:6},{date:"9 Sept",identified:18,converted:5},{date:"10 Sept",identified:14,converted:7},{date:"11 Sept",identified:20,converted:8}],n2e=[{date:"7 Sept",calls:8,conversions:5},{date:"8 Sept",calls:6,conversions:4},{date:"9 Sept",calls:4,conversions:2},{date:"10 Sept",calls:7,conversions:4},{date:"11 Sept",calls:9,conversions:6}],s2e=[{icon:pr,type:"risk",title:"2 influential skeptics remain in high-value accounts",description:"Executive resistance detected in AtoZ Accounting and TechFlow Corp",action:"Create stakeholder comms plan",cta:"Send to Stakeholder Strategy"},{icon:dv,type:"warning",title:"15% drop in discovery calls this week",description:"Weekly activity down from 12 to 10 calls across top accounts",action:"Book more workshops to re-engage pipeline",cta:"Schedule Follow-ups"},{icon:Ct,type:"success",title:"5% more projects signed off vs last week",description:"Strong momentum in proposal-to-close conversion",action:"Double down on expansion plays with existing clients",cta:"Generate Expansion Proposals"},{icon:nh,type:"opportunity",title:"New automation opportunities identified",description:"3 clients showing 40%+ process inefficiencies",action:"Present workflow optimization proposals",cta:"Create Optimization Report"}],a2e=()=>{const[e]=lh(),{toast:t}=xr(),[r,n]=b.useState("7-days"),[a,i]=b.useState("all-clients"),[o,l]=b.useState("stakeholder-buyin");b.useEffect(()=>{e.get("subscription")==="success"&&(t({title:"Welcome to Clientli Beta!",description:"Your subscription is active. Start exploring your dashboard."}),window.history.replaceState({},"","/dashboard"))},[e,t]);const c=u=>{switch(u){case"risk":return"border-l-red-500 bg-red-50 dark:bg-red-950/20";case"warning":return"border-l-amber-500 bg-amber-50 dark:bg-amber-950/20";case"success":return"border-l-green-500 bg-green-50 dark:bg-green-950/20";case"opportunity":return"border-l-blue-500 bg-blue-50 dark:bg-blue-950/20";default:return"border-l-gray-500 bg-gray-50 dark:bg-gray-950/20"}};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Gx,{pageTitle:"Client Engagement Analytics – Portfolio Overview"}),s.jsx(gr,{children:s.jsxs("div",{className:"flex w-full bg-background",children:[s.jsx(Ar,{isDemoMode:!0}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsxs("div",{className:"flex items-center gap-4 px-6 py-4 border-b bg-background",children:[s.jsx(ws,{}),s.jsx("div",{className:"flex-1",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Track client engagement across buy-in, opportunities, and deal progress"})}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs(rn,{value:r,onValueChange:n,children:[s.jsx(Fr,{className:"w-32",children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"7-days",children:"7 days"}),s.jsx(Ne,{value:"30-days",children:"30 days"}),s.jsx(Ne,{value:"custom",children:"Custom"})]})]}),s.jsxs(rn,{value:a,onValueChange:i,children:[s.jsx(Fr,{className:"w-40",children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"all-clients",children:"All clients"}),s.jsx(Ne,{value:"per-client",children:"Per client"}),s.jsx(Ne,{value:"per-project",children:"Per project"})]})]})]})]}),s.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[s.jsx(z,{children:s.jsx(V,{className:"flex items-center p-6",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-2 bg-blue-100 dar
616k:bg-blue-900/20 rounded-lg",children:s.jsx(bt,{className:"h-6 w-6 text-blue-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Active Accounts"}),s.jsx("p",{className:"text-2xl font-bold",children:"24"})]})]})})}),s.jsx(z,{children:s.jsx(V,{className:"flex items-center p-6",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-2 bg-green-100 dark:bg-green-900/20 rounded-lg",children:s.jsx(Mt,{className:"h-6 w-6 text-green-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Open Opportunities"}),s.jsx("p",{className:"text-2xl font-bold",children:"18"})]})]})})}),s.jsx(z,{children:s.jsx(V,{className:"flex items-center p-6",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-2 bg-amber-100 dark:bg-amber-900/20 rounded-lg",children:s.jsx(pr,{className:"h-6 w-6 text-amber-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"At-Risk Stakeholders"}),s.jsx("p",{className:"text-2xl font-bold",children:"6"})]})]})})}),s.jsx(z,{children:s.jsx(V,{className:"flex items-center p-6",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"p-2 bg-purple-100 dark:bg-purple-900/20 rounded-lg",children:s.jsx(rt,{className:"h-6 w-6 text-purple-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Signed-Off Projects"}),s.jsx("p",{className:"text-2xl font-bold",children:"12"})]})]})})})]}),s.jsxs(gs,{value:o,onValueChange:l,className:"space-y-6",children:[s.jsxs(In,{className:"grid grid-cols-4 w-full",children:[s.jsxs(Ve,{value:"stakeholder-buyin",className:"flex items-center gap-2",children:[s.jsx(bt,{className:"h-4 w-4"}),"Stakeholder Buy-In"]}),s.jsxs(Ve,{value:"opportunities",className:"flex items-center gap-2",children:[s.jsx(Mt,{className:"h-4 w-4"}),"Opportunities Identified"]}),s.jsxs(Ve,{value:"projects",className:"flex items-center gap-2",children:[s.jsx(rt,{className:"h-4 w-4"}),"Signed Off Projects"]}),s.jsxs(Ve,{value:"discovery",className:"flex items-center gap-2",children:[s.jsx(i$,{className:"h-4 w-4"}),"Discovery Calls"]})]}),s.jsx(He,{value:"stakeholder-buyin",children:s.jsxs(z,{children:[s.jsxs(oe,{children:[s.jsx(le,{children:"Stakeholder Resistance Trends"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Advocacy vs Skepticism over time"})]}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:300,children:s.jsxs(Dg,{data:t2e,children:[s.jsx(pa,{strokeDasharray:"3 3"}),s.jsx(On,{dataKey:"date"}),s.jsx(An,{}),s.jsx(dr,{}),s.jsx(is,{type:"monotone",dataKey:"advocacy",stroke:"#10b981",strokeWidth:2,name:"Advocacy %"}),s.jsx(is,{type:"monotone",dataKey:"skepticism",stroke:"#ef4444",strokeWidth:2,name:"Skepticism %"})]})})})]})}),s.jsx(He,{value:"opportunities",children:s.jsxs(z,{children:[s.jsxs(oe,{children:[s.jsx(le,{children:"Opportunity Pipeline"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Identified vs Converted opportunities"})]}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:300,children:s.jsxs(Mx,{data:r2e,children:[s.jsx(pa,{strokeDasharray:"3 3"}),s.jsx(On,{dataKey:"date"}),s.jsx(An,{}),s.jsx(dr,{}),s.jsx(Or,{dataKey:"identified",fill:"#3b82f6",name:"Identified"}),s.jsx(Or,{dataKey:"converted",fill:"#10b981",name:"Converted"})]})})})]})}),s.jsx(He,{value:"projects",children:s.jsxs(z,{children:[s.jsxs(oe,{children:[s.jsx(le,{children:"Project Sign-off Progress"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Weekly project completions and pipeline"})]}),s.jsx(V,{children:s.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[s.jsxs("div",{className:"text-center p-4 bg-green-50 dark:bg-green-950/20 rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-green-600",children:"12"}),s.jsx("div",{className:"text-sm text-green-700",children:"Completed This Week"})]}),s.jsxs("div",{className:"text-center p-4 bg-blue-50 dark:bg-blue-950/20 rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"8"}),s.jsx("div",{className:"text-sm text-blue-700",children:"In Progress"})]}),s.jsxs("div",{className:"text-center p-4 bg-amber-50 dark:bg-amber-950/20 rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-amber-600",children:"3"}),s.jsx("div",{className:"text-sm text-amber-700",children:"Pending Approval"})]})]})})]})}),s.jsx(He,{value:"discovery",children:s.jsxs(z,{children:[s.jsxs(oe,{children:[s.jsx(le,{children:"Discovery Call Activity"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Call volume and conversion rates"})]}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:300,children:s.jsxs(Dg,{data:n2e,children:[s.jsx(pa,{strokeDasharray:"3 3"}),s.jsx(On,{dataKey:"date"}),s.jsx(An,{}),s.jsx(dr,{}),s.jsx(is,{type:"monotone",dataKey:"calls",stroke:"#3b82f6",strokeWidth:2,name:"Total Calls"}),s.jsx(is,{type:"monotone",dataKey:"conversions",stroke:"#10b981",strokeWidth:2,name:"Conversions"})]})})})]})})]}),s.jsxs(z,{children:[s.jsxs(oe,{children:[s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(nh,{className:"h-5 w-5 text-amber-500"}),"AI-Generated Action Insights"]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Prioritized recommendations based on your client engagement data"})]}),s.jsx(V,{children:s.jsx("div",{className:"grid gap-4",children:s2e.map((u,d)=>{const f=u.icon;return s.jsx("div",{className:`p-4 rounded-lg border-l-4 ${c(u.type)}`,children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[s.jsx(f,{className:"h-5 w-5 mt-0.5 flex-shrink-0"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h4",{className:"font-semibold",children:u.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:u.description}),s.jsxs("p",{className:"text-sm font-medium",children:["Next Step: ",u.action]})]})]}),s.jsx(W,{variant:"outline",size:"sm",className:"ml-4",children:u.cta})]})},d)})})})]})]})]})]})})]})},i2e=()=>s.jsx("div",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-8 py-12",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Terms and Conditions for Clientli"}),s.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Effective Date: 6 December 2024"}),s.jsxs("div",{className:"prose prose-lg max-w-none space-y-8",children:[s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Company Information"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"Company Name:"})," Leania Ltd (trading as Clientli)"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Registered Address:"})," 4th Floor Radius House, 51 Clarendon Road, Watford, Hertfordshire, England, WD17 1HP"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Company Registration Number:"})," 11867398"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Website:"})," ",s.jsx("a",{href:"https://clientli.lovable.app",className:"text-primary hover:underline",children:"https://clientli.lovable.app"})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Definitions"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:'1.1. "Clientli" refers to the AI-driven platform operated by Leania Ltd.'}),s.jsx("p",{children:'1.2. "Platform" refers to all services, functionalities, and features available through Clientli.'}),s.jsx("p",{children:'1.3. "User" refers to any individual or entity accessing or using the Clientli platform.'}),s.jsx("p",{children:`1.4. "Subscription Fees" refers to the recurring charges users agree to pay for accessing the platform's subscription services.`}),s.jsx("p",{children:'1.5. "Data" refers to any information, including personal and business data, submitted, stored, or processed through the platform.'}),s.jsx("p",{children:'1.6. "Third-Party Services" refers to any external services, integrations, or applications linked to or used alongside the platform, such as LinkedIn, Slack, or HubSpot.'}),s.jsx("p",{children:'1.7. "Content" refers to any materials, including data, text, images, software, or other information provided by Clientli or users on the platform.'})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. Introduction"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:'2.1. These Terms and Conditions (the "Terms") govern the use of the platform operated by Leania Ltd, trading as Clientli. Clientli is an AI and automation platform designed to identify inefficiencies and recommend solutions.'}),s.jsx("p",{children:"2.2. By using the platform, you agree to comply with these Terms. If you do not agree, you must not use our platform."})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. Acceptance of Terms"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"3.1. By creating an account or using the platform, you confirm that you have read, understood, and accepted these Terms."}),s.jsx("p",{children:"3.2. Clientli may amend these Terms from time to time. For significant changes, we will notify users via email or an in-platform alert. Continued use after such n
616otification will constitute your acceptance of the updated Terms."})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Subscription Model and Fees"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["4.1. ",s.jsx("strong",{children:"Free Trial:"})," Clientli may offer a free trial to new users. Users must provide payment information upon registration, but no charges will be applied until the end of the trial period."]}),s.jsxs("p",{children:["4.2. ",s.jsx("strong",{children:"Subscription Plans:"})," Users may subscribe on a monthly, quarterly, or annual basis. Subscription Fees are billed in advance and automatically renew at the end of each billing period unless canceled. Subscription prices are subject to change, and we reserve the right to adjust fees at our discretion. Users will be notified in advance of any price changes, which will apply to the next billing cycle."]}),s.jsxs("p",{children:["4.3. ",s.jsx("strong",{children:"Cooling-off Period and Cancellation:"})," Users may cancel during the free trial or within the first 14 days of a paid subscription. After this period, users can cancel at any time, with access retained until the end of the billing cycle. Refunds will not be given for unused portions of a billing cycle unless otherwise specified."]}),s.jsxs("p",{children:["4.4. ",s.jsx("strong",{children:"Billing:"})," Subscription Fees are billed at the start of each billing cycle and are non-refundable after billing. Any cancellation will only affect subsequent billing cycles."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. User Accounts and Security"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["5.1. ",s.jsx("strong",{children:"Account Responsibility:"})," Users are responsible for maintaining the confidentiality of their account credentials and for any activities conducted under their account. You agree to promptly notify us of any unauthorized use of your account."]}),s.jsxs("p",{children:["5.2. ",s.jsx("strong",{children:"Two-Factor Authentication:"})," To enhance account security, Clientli may require users to enable two-factor authentication. Clientli is not liable for any loss or damage resulting from unauthorized access due to your failure to secure your account."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Data Handling, Use, and Storage"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["6.1. ",s.jsx("strong",{children:"Data Storage:"})," All client data is stored securely on Amazon Web Services (AWS) servers in compliance with industry standards."]}),s.jsxs("p",{children:["6.2. ",s.jsx("strong",{children:"Data Use for Model Training:"})," Clientli may use client data to train and improve its proprietary AI models, enhancing our platform's recommendations. Users may opt out of this by contacting support."]}),s.jsxs("p",{children:["6.3. ",s.jsx("strong",{children:"Data Aggregation and Anonymisation:"})," Clientli may aggregate and anonymise data for benchmarking, community insights, and marketing reports. Aggregated data will not contain identifiable client information and is used solely for internal analysis and product improvement."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. User Data Rights"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["7.1. ",s.jsx("strong",{children:"Access and Correction:"})," Users have the right to access their personal data stored on the platform and to request corrections of inaccurate data."]}),s.jsxs("p",{children:["7.2. ",s.jsx("strong",{children:"Deletion and Objection:"})," Users may request data deletion or object to specific processing activities by contacting support. Clientli will honor deletion requests where legally permissible."]}),s.jsxs("p",{children:["7.3. ",s.jsx("strong",{children:"Opt-out of Data Use for Model Training:"})," Users can opt out of having their data used for AI model training by adjusting account settings or contacting support."]}
616)]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"8. Third-Party Integrations"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"8.1. Clientli may provide functionality allowing users to integrate third-party applications (e.g., LinkedIn, Slack, HubSpot). By choosing to link third-party applications, users consent to data sharing as necessary for the integration."}),s.jsx("p",{children:"8.2. Clientli is not responsible for any security breaches or misuse of data resulting from such integrations."})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"9. Data Sharing and Confidentiality"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["9.1. ",s.jsx("strong",{children:"Aggregated Data Sharing:"})," Aggregated and anonymised data may be shared with trusted partners for analysis, marketing insights, and improvement of the platform. No individual client data will be shared or sold to third parties."]}),s.jsxs("p",{children:["9.2. ",s.jsx("strong",{children:"Confidentiality:"})," Clientli maintains the confidentiality of user data with stringent access controls and industry-standard security protocols. We commit to protecting your data against unauthorized access or disclosure."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"10. Intellectual Property and Usage Rights"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["10.1. ",s.jsx("strong",{children:"Platform Ownership:"})," Clientli retains all rights, titles, and interests in and to the platform, including but not limited to AI models, algorithms, software, and documentation. These are protected by intellectual property laws, and no transfer of rights to users is implied or granted."]}),s.jsxs("p",{children:["10.2. ",s.jsx("strong",{children:"Permitted Use:"})," Users may access and use the platform solely for its intended purposes and may not reproduce, distribute, or create derivative works of any platform materials without prior written permission from Clientli."]}),s.jsxs("p",{children:["10.3. ",s.jsx("strong",{children:"User-Generated Content:"})," Any data or content that users submit to the platform remains the property of the user, subject to the rights granted to Clientli in these Terms for processing and improving services."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"11. Disclaimer of Warranties"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:'11.1. Clientli provides the platform on an "as is" and "as available" basis, and we expressly disclaim any warranties of any kind, express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement.'}),s.jsxs("p",{children:["11.2. ",s.jsx("strong",{children:"Non-Substitution for Professional Consultation:"})," The platform and any recommendations generated by Clientli are intended for informational purposes only and do not constitute professional advice. Clientli is not a substitute for consultation with qualified professionals, and users should seek expert advice before making business decisions based on platform recommendations."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"12. Limitation of Liability"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["12.1. ",s.jsx("strong",{children:"Indirect and Consequential Damages:"})," To the fullest extent permitted by law, Clientli shall not be liable for any indirect, incidental, or consequential damages arising from or related to the use of the platform."]}),s.jsxs("p",{children:["12.2. ",s.jsx("strong",{children:"Cap on Liability:"})," Our total liability to any user for any claims arising from or related to these Terms shall not exceed the total amount of subscription fees paid by the user in the twelve (12) months prior to the incident giving rise to the claim."]}),s.jsxs("p",{children:["12.3. ",s.jsx("strong",{children:"Third-Party Services:"})," Clientli is not responsible for damages or losses arising from third-party services or content accessible through the platform. Users engage with third-party applications at their own risk."]}),s.jsxs("p",{children:["12.4. ",s.jsx("strong",{children:"Disclaimer for Negligence:"})," To the extent permitted by law, Clientli disclaims liability for any harm or losses arising from errors, omissions, interruptions, or delays in the platform's operation, including those resulting from negligence."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"13. Termination"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:["13.1. ",s.jsx("strong",{children:"User-Initiated Termination:"})," Users may terminate their account at any time by following the cancellation instructions in their account settings."]}),s.jsxs("p",{children:["13.2. ",s.jsx("strong",{children:"Termination by Clientli:"})," We reserve the right to suspend or terminate any user account if we reasonably believe the user has breached these Terms or engaged in activities that compromise the integrity of the platform. In the event of termination due to breach, no refund of subscription fees will be provided."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"14. Cookie Policy"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"14.1. Clientli may use cookies and similar tracking technologies on its website to enhance user experience and analyze usage patterns."}),s.jsxs("p",{children:["14.2. Users will be informed of cookies via a pop-up notice upon accessing the site, in compliance with GDPR requirements. For further details, users can refer to our Cookie Policy ",s.jsx("a",{href:"https://clientli.lovable.app/cookie
616s",className:"text-primary hover:underline",children:"clientli.lovable.app/cookies"}),"."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"15. Modifications to Terms"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"15.1. Clientli reserves the right to amend these Terms periodically to reflect changes in the platform, legal requirements, or industry best practices."}),s.jsx("p",{children:"15.2. Users will be notified of material changes via email or in-platform alerts, and continued use of the platform after notification will signify acceptance of the updated Terms."})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"16. Governing Law and Jurisdiction"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"16.1. These Terms and all related matters are governed by the laws of England and Wales."}),s.jsx("p",{children:"16.2. Users agree to the exclusive jurisdiction of the courts of England and Wales to resolve any disputes arising from these Terms."})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"17. Contact Information"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{children:"17.1. For any questions or concerns regarding these Terms, please contact us at:"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Email:"})," ",s.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})]})})}),o2e=()=>s.jsx("div",{className:"min-h-screen bg-background",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-8 py-12",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("h1",{className:"text-4xl font-bold mb-8",children:"Cookie Policy"}),s.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Last Updated: 6 December 2024"}),s.jsxs("div",{className:"prose prose-lg max-w-none space-y-8",children:[s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"1. Introduction"}),s.jsxs("p",{children:['This Cookie Policy explains how Leania Ltd (trading as "Clientli") uses cookies and similar technologies on our website ',s.jsx("a",{href:"https://clientli.lovable.app",className:"text-primary hover:underline",children:"clientli.lovable.app"}),' (the "Website"). This policy should be read alongside our ',s.jsx("a",{href:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]}),s.jsx("p",{children:"By using our Website, you consent to the use of cookies in accordance with this Cookie Policy. If you do not agree to our use of cookies, you should set your browser settings accordingly or stop using our Website."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"2. What Are Cookies?"}),s.jsx("p",{children:"Cookies are small text files that are placed on your computer, smartphone, or other device when you visit a website. They are widely used to make websites work more efficiently and to provide information to website owners."}),s.jsx("p",{children:'Cookies can be "persistent" cookies or "session" cookies:'}),s.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Persistent cookies"})," remain on your device for a set period of time or until you delete them"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Session cookies"})," are temporary and are deleted when you close your browser"]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"3. Types of Cookies We Use"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"3.1 Strictly Necessary Cookies"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Purpose:"})," These cookies are essential for the Website to function properly. They enable core functionality such as security, network management, and accessibility."]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Legal Basis:"})," Legitimate interests (Article 6(1)(f) GDPR)"]}),s.jsx("p",{children:s.jsx("strong",{children:"Examples:"})}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"Authentication cookies to keep you logged in"}),s.jsx("li",{children:"Security cookies to protect against fraudulent activity"}),s.jsx("li",{children:"Load balancing cookies to distribute website traffic"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Retention:"})," Session cookies (deleted when browser is closed) or up to 12 months"]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"3.2 Performance and Analytics Co
616okies"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Purpose:"})," These cookies collect information about how visitors use our Website, such as which pages are visited most often and if users receive error messages."]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Legal Basis:"})," Consent (Article 6(1)(a) GDPR)"]}),s.jsx("p",{children:s.jsx("strong",{children:"Examples:"})}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"Google Analytics cookies to understand website usage"}),s.jsx("li",{children:"Performance monitoring cookies to identify technical issues"}),s.jsx("li",{children:"Heat mapping cookies to analyze user behavior"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Retention:"})," Up to 26 months"]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"3.3 Functional Cookies"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Purpose:"})," These cookies allow the Website to remember choices you make and provide enhanced, more personal features."]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Legal Basis:"})," Consent (Article 6(1)(a) GDPR)"]}),s.jsx("p",{children:s.jsx("strong",{children:"Examples:"})}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"Language preference cookies"}),s.jsx("li",{children:"Theme selection cookies (dark/light mode)"}),s.jsx("li",{children:"Regional setting cookies"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Retention:"})," Up to 12 months"]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"3.4 Marketing and Targeting Cookies"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Purpose:"})," These cookies are used to deliver advertisements more relevant to you and your interests. They may also be used to limit the number of times you see an advertisement."]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Legal Basis:"})," Consent (Article 6(1)(a) GDPR)"]}),s.jsx("p",{children:s.jsx("strong",{children:"Examples:"})}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"Social media tracking pixels"}),s.jsx("li",{children:"Advertising network cookies"}),s.jsx("li",{children:"Retargeting cookies"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Retention:"})," Up to 24 months"]})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"4. Third-Party Cookies"}),s.jsx("p",{children:"We may use third-party services that place cookies on your device. These include:"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Google Analytics:"})," For website analytics and performance monitoring"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Social Media Platforms:"})," For social sharing and authentication"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Customer Support Tools:"})," For providing customer service"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Payment Processors:"})," For processing payments securely"]})]}),s.jsx("p",{children:"These third parties have their own privacy policies and cookie policies, which we recommend you review."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"5. Managing Your Cookie Preferences"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"5.
6161 Cookie Banner"}),s.jsx("p",{children:"When you first visit our Website, you will see a cookie banner that allows you to accept or decline non-essential cookies. You can change your preferences at any time using the cookie settings link in our website footer."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"5.2 Browser Settings"}),s.jsx("p",{children:"Most web browsers allow you to control cookies through their settings. You can:"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"Block all cookies"}),s.jsx("li",{children:"Allow only first-party cookies"}),s.jsx("li",{children:"Delete existing cookies"}),s.jsx("li",{children:"Set up warnings before cookies are stored"})]}),s.jsx("p",{children:"Please note that blocking or deleting cookies may impact your experience on our Website and some features may not work properly."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-3",children:"5.3 Browser-Specific Instructions"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Chrome:"})," Settings → Privacy and security → Cookies and other site data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Firefox:"})," Preferences → Privacy & Security → Cookies and Site Data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Safari:"})," Preferences → Privacy → Manage Website Data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Edge:"})," Settings → Site permissions → Cookies and site data"]})]})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"6. Your Rights Under GDPR"}),s.jsx("p",{children:"Under the General Data Protection Regulation (GDPR), you have the following rights regarding cookies and personal data:"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Right to be informed:"})," You have the right to know how your data is being processed"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right of access:"})," You can request information about what personal data we hold about you"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right to rectification:"})," You can ask us to correct inaccurate data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right to erasure:"})," You can ask us to delete your personal data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right to restrict processing:"})," You can ask us to limit how we use your data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right to data portability:"})," You can ask for your data in a portable format"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right to object:"})," You can object to certain types of processing"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Rights regarding automated decision making:"})," You have rights regarding automated profiling"]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"7. Data Retention"}),s.jsx("p",{children:"We retain cookie data for different periods depending on the type of cookie:"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Session cookies:"})," Deleted when you close your browser"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Functional cookies:"})," Up to 12 months"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Analytics cookies:"})," Up to 26 months"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Marketing cookies:"})," Up to 24 months"]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"8. International Transfers"}),s.jsx("p",{children:"Some of our third-party service providers may be located outside the UK and European Economic Area (EEA). When we transfer your personal data to these providers, we ensure appropriate safeguards are in place, such as:"}),s.jsxs("ul",{className:"list-disc ml-6 space-y-1",children:[s.jsx("li",{children:"EU-US Data Privacy Framework"}),s.jsx("li",{children:"Standard Contractual Clauses"}),s.jsx("li",{children:"Adequacy decisions by the European Commission"})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"9. Updates to This Policy"}),s.jsx("p",{children:'We may update this Cookie Policy from time to time to reflect changes in our practices or for legal, operational, or regulatory reasons. We will notify you of any material changes by posting the updated policy on our Website with a new "Last Updated" date.'})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"10. Contact Information"}),s.jsx("p",{children:"If you have any questions about this Cookie Policy or wish to exercise your rights, please contact us:"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"Data Controller:"})," Leania Ltd (trading as Clientli)"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Email:"})," ",s.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Address:"})," 4th Floor Radius House, 51 Clarendon Road, Watford, Hertfordshire, England, WD17 1HP"]})]}),s.jsx("p",{children:"You also have the right to lodge a complaint with the Information Commissioner's Office (ICO), the UK's data protection regulator:"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"ICO Website:"})," ",s.jsx("a",{href:"https://ico.org.uk",className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:"https://ico.org.uk"})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"ICO Helpline:"})," 0303 123 1113"]})]})]})]})]})})}),l2e=()=>{const e=Pa();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),s.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),s.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},qi=()=>{const[e,t]=b.useState(null),[r,n]=b.useState(null),[a,i]=b.useState(!1),[o,l]=b.useState(!0),c=gt();b.useEffect(()=>{u()},[]);const u=async()=>{try{const{data:{user:d},error:f}=await ne.auth.getUser();if(f||!d){c("/auth",{replace:!0,state:{from:window.location.pathname}});return}const{data:h}=await ne.from("user_roles").select("role").eq("user_id",d.id).eq("role","admin").maybeSingle(),m=!!h;if(i(m),!m){const{data:g}=await ne.from("user_credits").select("balance, plan_allocation").eq("user_id",d.id).maybeSingle();if(g&&g.plan_allocation>0){t(d),l(!1);return}const{data:p,error:v}=await ne.from("founding_members").select("*").eq("user_id",d.id).maybeSingle();if(v&&console.error("Subscription check error:",v),!g&&!(p!=null&&p.activated)&&!(p!=null&&p.deposit_paid)){c("/pricing",{replace:!0,state:{message:"Please activate your subscription to access the portal"}});return}n(p)}t(d),l(!1)}catch(d){console.error("Auth check error:",d),c("/auth")}};return{user:e,subscription:r,isAdmin:a,loading:o}},rs={discoveryAnalysis:10,proposalExport:2,expansionOpportunity:1,stakeholderPersona:1,playbookExport:1,roiReport:2,clientEngagement:1,workflowAnalysis:15,workflowExport:5,transcription:5,proposalGeneration:10,proposalRegeneration:5},y6=()=>{const[e,t]=b.useState(null),[r,n]=b.useState(!1),[a,i]=b.useState(!0),{toast:o}=xr(),l=async()=>{try{const{data:{user:d}}=await ne.auth.getUser();if(!d){t(null),n(!1),i(!1);return}const{data:f}=await ne.from("user_roles").select("role").eq("user_id",d.id).eq("role","admin").maybeSingle();n(!!f);const{data:h,error:m}=await ne.from("user_credits").select("balance, plan_allocation").eq("user_id",d.id).single();m?m.code==="PGRST116"?t({balance:0,planAllocation:0}):console.error("Error fetching credits:",m):t({balance:h.balance,planAllocation:h.plan_allocation})}catch(d){console.error("Error in fetchCredits:",d)}finally{i(!1)}};b.useEffect(()=>{l();const d=ne.channel("user-credits-changes").on("postgres_changes",{event:"*",schema:"public",table:"user_credits"},()=>{l()}).subscribe();return()=>{ne.removeChannel(d)}},[]);const c=d=>
616{if(r)return!0;if(!e)return!1;const f=rs[d];return e.balance>=f};return{credits:e,loading:a,checkCredits:c,deductCredits:async(d,f,h)=>{try{if(r)return console.log("[Admin] Skipping credit deduction for:",d),!0;const{data:{user:m}}=await ne.auth.getUser();if(!m)return o({title:"Authentication Required",description:"Please sign in to continue",variant:"destructive"}),!1;const g=rs[d];if(!c(d))return o({title:"Insufficient Credits",description:`You need ${g} credit${g>1?"s":""} for this action. Please upgrade or top up.`,variant:"destructive"}),!1;const{data:p,error:v}=await ne.rpc("deduct_credits",{p_user_id:m.id,p_amount:g,p_action_type:d,p_description:f||null,p_reference_id:h||null});return v?(console.error("Error deducting credits:",v),o({title:"Error",description:"Failed to deduct credits. Please try again.",variant:"destructive"}),!1):p?(await l(),!0):(o({title:"Insufficient Credits",description:`You need ${g} credit${g>1?"s":""} for this action. Please upgrade or top up.`,variant:"destructive"}),!1)}catch(m){return console.error("Error in deductCredits:",m),o({title:"Error",description:"An unexpected error occurred.",variant:"destructive"}),!1}},refetchCredits:l}};var Qx="Popover",[b6,KCe]=qt(Qx,[Ii]),Ih=Ii(),[c2e,Gi]=b6(Qx),w6=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!1}=e,l=Ih(t),c=b.useRef(null),[u,d]=b.useState(!1),[f,h]=Gr({prop:n,defaultProp:a??!1,onChange:i,caller:Qx});return s.jsx(pv,{...l,children:s.jsx(c2e,{scope:t,contentId:qr(),triggerRef:c,open:f,onOpenChange:h,onOpenToggle:b.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:b.useCallback(()=>d(!0),[]),onCustomAnchorRemove:b.useCallback(()=>d(!1),[]),modal:o,children:r})})};w6.displayName=Qx;var j6="PopoverAnchor",u2e=b.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Gi(j6,r),i=Ih(r),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=a;return b.useEffect(()=>(o(),()=>l()),[o,l]),s.jsx(ih,{...i,...n,ref:t})});u2e.displayName=j6;var N6="PopoverTrigger",S6=b.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Gi(N6,r),i=Ih(r),o=Te(t,a.triggerRef),l=s.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":O6(a.open),...n,ref:o,onClick:se(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:s.jsx(ih,{asChild:!0,...i,children:l})});S6.displayName=N6;var u_="PopoverPortal",[d2e,f2e]=b6(u_,{forceMount:void 0}),_6=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,i=Gi(u_,t);return s.jsx(d2e,{scope:t,forceMount:r,children:s.jsx(yr,{present:r||i.open,children:s.jsx(su,{asChild:!0,container:a,children:n})})})};_6.displayName=u_;var Zc="PopoverContent",k6=b.forwardRef((e,t)=>{const r=f2e(Zc,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,i=Gi(Zc,e.__scopePopover);return s.jsx(yr,{present:n||i.open,children:i.modal?s.jsx(m2e,{...a,ref:t}):s.jsx(p2e,{...a,ref:t})})});k6.displayName=Zc;var h2e=Ni("PopoverContent.RemoveScroll"),m2e=b.forwardRef((e,t)=>{const r=Gi(Zc,e.__scopePopover),n=b.useRef(null),a=Te(t,n),i=b.useRef(!1);return b.useEffect(()=>{const o=n.current;if(o)return Ov(o)},[]),s.jsx(dh,{as:h2e,allowPinchZoom:!0,children:s.jsx(P6,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),i.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:se(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),p2e=b.forwardRef((e,t)=>{const r=Gi(Zc,e.__scopePopover),n=b.useRef(!1),a=b.useRef(!1);return s.jsx(P6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),P6=b.forwardRef((e,t)=>
616{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,h=Gi(Zc,r),m=Ih(r);return Cv(),s.jsx(ch,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(Qo,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:s.jsx(gv,{"data-state":O6(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),C6="PopoverClose",g2e=b.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Gi(C6,r);return s.jsx(xe.button,{type:"button",...n,ref:t,onClick:se(e.onClick,()=>a.onOpenChange(!1))})});g2e.displayName=C6;var v2e="PopoverArrow",x2e=b.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,a=Ih(r);return s.jsx(vv,{...a,...n,ref:t})});x2e.displayName=v2e;function O6(e){return e?"open":"closed"}var y2e=w6,b2e=S6,w2e=_6,A6=k6;const j2e=y2e,N2e=b2e,E6=b.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},a)=>s.jsx(w2e,{children:s.jsx(A6,{ref:a,align:t,sideOffset:r,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",e),...n})}));E6.displayName=A6.displayName;const S2e=()=>{const e=[{label:"Discovery analysis",cost:rs.discoveryAnalysis,description:"per processed call/transcript"},{label:"Proposal export",cost:rs.proposalExport,description:"branded PDF/PPT section"},{label:"Expansion Opportunity",cost:rs.expansionOpportunity,description:"card created"},{label:"Stakeholder persona",cost:rs.stakeholderPersona,description:"generated"},{label:"Playbook export",cost:rs.playbookExport,description:"persona-based comms/objection pack"},{label:"ROI/Value report",cost:rs.roiReport,description:"export"},{label:"Client Engagement",cost:rs.clientEngagement,description:"share-link (new link)"}];return s.jsxs(j2e,{children:[s.jsx(N2e,{asChild:!0,children:s.jsxs(W,{variant:"ghost",size:"sm",className:"gap-2",children:[s.jsx(q1,{className:"h-4 w-4"}),"How credits work"]})}),s.jsx(E6,{className:"w-96",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-2",children:"Credit Usage"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Credits are only used for high-value actions. Viewing, organizing, and browsing are completely free."})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h5",{className:"text-sm font-medium",children:"Credit Costs:"}),e.map((t,r)=>s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted-foreground",children:t.label}),s.jsxs("span",{className:"font-medium",children:[t.cost," credit",t.cost>1?"s":""]})]},r))]}),s.jsx("div",{className:"text-xs text-muted-foreground pt-2 border-t",children:"Credits refresh monthly with your plan. You can upgrade anytime for more credits."})]})})]})},T6=({showUpgradeButton:e=!0,compact:t=!1})=>{const{credits:r,loading:n}=y6(),a=gt();if(n)return s.jsx("div",{className:"animate-pulse",children:s.jsx("div",{className:"h-10 bg-muted rounded"})});if(!r)return null;const i=r.planAllocation>0?(r.planAllocation-r.balance)/r.planAllocation*100:0,o=()=>r.balance===0?"text-destructive":i>=80?"text-amber-600":"text-green-600",c=r.balance===0?pr:i>=80?qe:UU;return t?s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-card border rounded-lg",children:[s.jsx(c,{className:`h-4 w-4 ${o()}`}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{className:`font-semibold ${o()}`,children:r.balance}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"credits"})]})]}):s.jsx(z,{children:s.jsxs(V,{className:"p-6",children:[s.jsxs("div",{className:"flex items-start justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 rounded-lg bg-gradient-card",children:s.jsx(c,{className:`h-6 w-6 ${o()}`})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Available Credits"}),s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsx("p",{className:`text-3xl font-bold ${o()}`,children:r.balance}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["/ ",r.planAllocation]})]})]})]}),r.balance===0&&s.jsx(ue,{variant:"destructive",children:"Out of Credits"}),r.balance>0&&i>=80&&s.jsx(ue,{variant:"outline",className:"border-amber-500 text-amber-600",children:"Low Balance"})]}),s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full transition-all duration-300 ${r.balance===0?"bg-destructive":i>=80?"bg-amber-500":"bg-primary"}`,style:{width:`${Math.max(0,100-i)}%`}})}),s.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[Math.round(i),"% used this period"]})]}),e&&s.jsxs("div",{className:"space-y-2",children:[r.balance<10&&s.jsxs(s.Fragment,{children:[s.jsx(W,{className:"w-full",onClick:()=>a("/pricing"),variant:r.balance===0?"default":"outline",children:r.balance===0?"Upgrade Now":"Top Up Credits"}),s.jsx("p",{className:"text-xs text-center text-muted-foreground",children:r.balance===0?"Subscribe to a plan to get credits":"Upgrade your plan for more monthly credits"})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx(S2e,{})})]})]})})},fs=({user:e,isAdmin:t=!1})=>{var o;const r=gt(),{toast:n}=xr(),a=async()=>{await ne.auth.signOut(),n({title:"Signed out successfully",description:"You have been logged out of your account."}),r("/")},i=()=>{var l,c;return(l=e==null?void 0:e.user_metadata)!=null&&l.full_name?e.user_metadata.full_name.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2):((c=e==null?void 0:e.email)==null?void 0:c.slice(0,2).toUpperCase())||"U"};return s.jsxs("header",{className:"h-12 border-b bg-background flex items-center justify-between px-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("img",{src:"/src/assets/clientli-logo.png",alt:"Clientli",className:"h-6"}),s.jsx("span",{className:"font-semibold text-primary",children:"Portal"}),t&&s.jsxs(ue,{variant:"secondary",className:"ml-2",children:[s.jsx(d$,{className:"h-3 w-3 mr-1"}),"Admin"]})]}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(T6,{compact:!0,showUpgradeButton:!1}),s.jsxs(Ep,{children:[s.jsx(Tp,{asChild:!0,children:s.jsxs(W,{variant:"ghost",size:"sm",className:"gap-2",children:[s.jsx(Bv,{className:"h-6 w-6",children:s.jsx(zv,{className:"text-xs",children:i()})}),s.jsx("span",{className:"text-sm hidden sm:inline",children:((o=e==null?void 0:e.user_metadata)==null?void 0:o.full_name)||(e==null?void 0:e.email)})]})}),s.jsxs(nf,{align:"end",className:"w-56",children:[s.jsx(SR,{children:"My A
616ccount"}),s.jsx(H0,{}),s.jsxs(oi,{onClick:()=>r("/pricing"),children:[s.jsx(c$,{className:"mr-2 h-4 w-4"}),s.jsx("span",{children:"Billing & Subscription"})]}),s.jsx(H0,{}),s.jsxs(oi,{onClick:a,children:[s.jsx(P0,{className:"mr-2 h-4 w-4"}),s.jsx("span",{children:"Sign Out"})]})]})]})]})]})},yo=({icon:e,title:t,description:r,actionLabel:n,onAction:a})=>s.jsxs(z,{className:"p-12 text-center",children:[s.jsx(e,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),s.jsx("h3",{className:"text-xl font-semibold mb-2",children:t}),s.jsx("p",{className:"text-muted-foreground mb-6 max-w-md mx-auto",children:r}),s.jsx(W,{onClick:a,children:n})]}),_2e=()=>{const{user:e,isAdmin:t,loading:r}=qi(),n=gt(),{toast:a}=xr(),[i]=lh(),[o,l]=b.useState("month"),[c,u]=b.useState("all"),[d,f]=b.useState("stakeholders"),[h,m]=b.useState([]),[g,p]=b.useState([]),[v,y]=b.useState([]),[x,w]=b.useState([]),[N,j]=b.useState(!0);b.useEffect(()=>{i.get("subscription")==="success"&&(a({title:"Welcome to Clientli Portal! 🎉",description:"Your subscription is active. Start by uploading your first discovery call."}),n("/portal/dashboard",{replace:!0}))},[i]),b.useEffect(()=>{e&&S()},[e]);const S=async()=>{if(e)try{const[O,D,$,L]=await Promise.all([ne.from("discovery_calls").select("*").eq("user_id",e.id),ne.from("workflow_analyses").select("*").eq("user_id",e.id),ne.from("stakeholders").select("*").eq("user_id",e.id),ne.from("proposals").select("*").eq("user_id",e.id)]);m(O.data||[]),p(D.data||[]),y($.data||[]),w(L.data||[])}catch(O){console.error("Error fetching user data:",O)}finally{j(!1)}},_={activeAccounts:new Set([...h.map(O=>O.client_company),...g.map(O=>O.client_name),...v.map(O=>O.client_company)].filter(Boolean)).size,openOpportunities:g.filter(O=>O.roi_projections).length,atRiskStakeholders:v.filter(O=>O.role==="blocker"||O.role==="skeptical").length,signedOffProjects:x.filter(O=>O.status==="accepted").length},P=()=>{const O=[];if(_.atRiskStakeholders>0){const $=v.filter(L=>L.role==="blocker");O.push({type:"risk",icon:pr,title:`${_.atRiskStakeholders} influential skeptics in your accounts`,description:$.length>0?`${$.map(L=>L.client_company).slice(0,2).join(", ")}`:"Address concerns before they stall deals",action:"Create stakeholder comms plan",cta:"View Stakeholders",link:"/portal/stakeholders"})}const D=h.filter($=>new Date($.created_at)>new Date(Date.now()-7*24*60*60*1e3));return D.length<3&&h.length>0&&O.push({type:"warning",icon:dv,title:"Low discovery call activity this week",description:`Only ${D.length} calls in the past 7 days`,action:"Upload more discovery call recordings",cta:"Upload Call",link:"/portal/discovery-calls"}),g.length>0&&x.length===0&&O.push({type:"warning",icon:Mt,title:"Workflow analyses ready for proposals",description:`${g.length} analyses without proposals`,action:"Generate proposals from your workflow data",cta:"Create Proposal",link:"/portal/proposals"}),O},k=O=>{switch(O){case"success":return"border-l-green-500";case"warning":return"border-l-yellow-500";case"risk":return"border-l-red-500";default:return"border-l-gray-500"}},A=O=>{switch(O){case"success":return"bg-green-100 dark:bg-green-950";case"warning":return"bg-yellow-100 dark:bg-yellow-950";case"risk":return"bg-red-100 dark:bg-red-950";default:return"bg-gray-100 dark:bg-gray-950"}},C=O=>{switch(O){case"success":return"text-green-600 dark:text-green-400";case"warning":return"text-yellow-600 dark:text-yellow-400";case"risk":return"text-red-600 dark:text-red-400";default:return"text-gray-600 dark:text-gray-400"}};if(r||N)return s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Loading your dashboard..."})]})});const T=h.length>0||g.length>0||v.length>0||x.length>0,E=P();return s.jsx(gr,{children:s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:e,isAdmin:t}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"})]}),s.jsxs("div",{className:"flex gap-4",children:[s.jsxs(rn,{value:o,onValueChange:l,children:[s.jsx(Fr,{className:"w-[140px]",children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"week",children:"This Week"}),s.jsx(Ne,{value:"month",children:"This Month"}),s.jsx(Ne,{value:"quarter",children:"This Quarter"})]})]}),s.jsxs(rn,{value:c,onValueChange:u,children:[s.jsx(Fr,{className:"w-[140px]",children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"all",children:"All Accounts"}),s.jsx(Ne,{value:"enterprise",children:"Enterprise"}),s.jsx(Ne,{value:"smb",children:"SMB"})]})]})]})]}),T?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"mb-6",children:s.jsx(T6,{})}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-6",children:[s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Active Accounts"}
616),s.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-950 rounded-lg",children:s.jsx(bt,{className:"h-5 w-5 text-blue-600 dark:text-blue-400"})})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:_.activeAccounts}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(qe,{className:"h-3 w-3 text-green-600"}),s.jsx("span",{className:"text-green-600",children:"Active this month"})]})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Open Opportunities"}),s.jsx("div",{className:"p-2 bg-green-100 dark:bg-green-950 rounded-lg",children:s.jsx(Mt,{className:"h-5 w-5 text-green-600 dark:text-green-400"})})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:_.openOpportunities}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(qe,{className:"h-3 w-3 text-green-600"}),s.jsx("span",{className:"text-green-600",children:"In pipeline"})]})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"At-Risk Stakeholders"}),s.jsx("div",{className:"p-2 bg-red-100 dark:bg-red-950 rounded-lg",children:s.jsx(pr,{className:"h-5 w-5 text-red-600 dark:text-red-400"})})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold text-destructive",children:_.atRiskStakeholders}),s.jsx("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:s.jsx("span",{className:"text-red-600",children:"Needs attention"})})]})]}),s.jsxs(z,{children:[s.jsxs(oe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(le,{className:"text-sm font-medium",children:"Signed-Off Projects"}),s.jsx("div",{className:"p-2 bg-purple-100 dark:bg-purple-950 rounded-lg",children:s.jsx(rt,{className:"h-5 w-5 text-purple-600 dark:text-purple-400"})})]}),s.jsxs(V,{children:[s.jsx("div",{className:"text-2xl font-bold",children:_.signedOffProjects}),s.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1 mt-1",children:[s.jsx(qe,{className:"h-3 w-3 text-green-600"}),s.jsx("span",{className:"text-green-600",children:"Closed deals"})]})]})]})]}),s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Analytics Overview"})}),s.jsx(V,{children:s.jsxs(gs,{value:d,onValueChange:f,children:[s.jsxs(In,{children:[s.jsx(Ve,{value:"stakeholders",children:"Stakeholder Buy-In"}),s.jsx(Ve,{value:"opportunities",children:"Opportunities"}),s.jsx(Ve,{value:"projects",children:"Deal Progress"})]}),s.jsx(He,{value:"stakeholders",className:"mt-6",children:v.length>0||h.some(O=>{var D;return(D=O.analysis_result)==null?void 0:D.stakeholders})?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"High Influence"})}),s.jsx(V,{children:s.jsx("div",{className:"text-2xl font-bold text-green-600",children:v.filter(O=>O.influence>=7).length+h.flatMap(O=>{var D;return((D=O.analysis_result)==null?void 0:D.stakeholders)||[]}).filter(O=>O.influence==="high").length})})]}),s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Medium Influence"})}),s.jsx(V,{children:s.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:v.filter(O=>O.influence>=4&&O.influence<7).length+h.flatMap(O=>{var D;return((D=O.analysis_result)==null?void 0:D.stakeholders)||[]}).filter(O=>O.influence==="medium").length})})]}),s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"At-Risk"})}),s.jsx(V,{children:s.jsx("div",{className:"text-2xl font-bold text-red-600",children:_.atRiskStakeholders})})]})]}),s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Stakeholder Sentiment by Account"})}),s.jsx(V,{children:s.jsx(Fs,{width:"100%",height:300,children:s.jsxs(Mx,{data:(()=>{const O={};return v.forEach(D=>{const $=D.client_company||"Unknown";O[$]||(O[$]={advocates:0,neutral:0,skeptics:0}),D.role==="champion"||D.influence&&D.influence>=7?O[$].advocates++:D.role==="blocker"||D.role==="skeptical"?O[$].skeptics++:O[$].neutral++}),Object.entries(O).map(([D,$])=>({name:D.length>15?D.substring(0,15)+"...":D,advocates:$.advocates,neutral:$.neutral,skeptics:$.skeptics}))})(),children:[s.jsx(pa,{strokeDasharray:"3 3",className:"stroke-muted"}),s.jsx(On,{dataKey:"name",className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(An,{className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(dr,{}),s.jsx(xi,{}),s.jsx(Or,{dataKey:"advocates",stackId:"a",fill:"hsl(142, 71%, 45%)",name:"Advocates"}),s.jsx(Or,{dataKey:"neutral",stackId:"a",fill:"hsl(var(--muted))",name:"Neutral"}),s.jsx(Or,{dataKey:"skeptics",stackId:"a",fill:"hsl(0, 84%, 60%)",name:"Skeptics"})]})})})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Top Champions"}),s.jsx("div",{className:"space-y-2",children:[...v.filter(O=>O.influence>=7&&O.role!=="blocker").slice(0,3),...h.flatMap(O=>{var D;return((D=O.analysis_result)==null?void 0:D.stakeholders)||[]}).filter(O=>O.influence==="high").slice(0,2)].slice(0,5).map((O,D)=>s.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted rounded",children:[s.jsx("span",{className:"font-medium",children:O.name||O.title}),s.jsx(ue,{variant:"default",children:"Champion"})]},D))})]})]}):s.jsx(yo,{icon:bt,title:"No Stakeholders Yet",description:"Add stakeholders to see buy-in analytics",actionLabel:"Add Stakeholder",onAction:()=>n("/portal/stakeholders")})}),s.jsx(He,{value:"opportunities",className:"mt-6",children:h.some(O=>{var D;return(D=O.analysis_result)==null?void 0:D.opportunities})||g.length>0?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Total Opportunities"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:h.flatMap(O=>{var D;return((D=O.analysis_result)==null?void 0:D.opportunities)||[]}).length}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"From discovery calls"})]})]}),s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"With ROI Projections"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold text-green-600",children:g.filter(O=>O.roi_projections).length}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Workflow analyses"})]})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Top Opp
616ortunities"}),s.jsx("div",{className:"space-y-2",children:h.flatMap(O=>{var D;return((D=O.analysis_result)==null?void 0:D.opportunities)||[]}).slice(0,5).map((O,D)=>s.jsxs("div",{className:"p-3 bg-muted rounded",children:[s.jsx("div",{className:"font-medium",children:O.title}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:O.description}),O.potential_value&&s.jsx(ue,{variant:"secondary",className:"mt-2",children:O.potential_value})]},D))})]})]}):s.jsx(yo,{icon:Mt,title:"No Opportunities Yet",description:"Analyze workflows to identify opportunities",actionLabel:"Create Workflow Analysis",onAction:()=>n("/portal/workflows")})}),s.jsx(He,{value:"projects",className:"mt-6",children:h.length>0||g.length>0||x.length>0?s.jsxs("div",{className:"space-y-4",children:[s.jsx("h4",{className:"font-semibold",children:"Deal Progress Funnel"}),s.jsxs("div",{className:"grid md:grid-cols-4 gap-4",children:[s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/discovery-calls"),children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Discovery Calls"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:h.length}),s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[h.filter(O=>O.analysis_status==="completed").length," analyzed"]})]})]}),s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/workflows"),children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Workflow Analyses"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:g.length}),s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[g.filter(O=>O.roi_projections).length," with ROI"]})]})]}),s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/proposals"),children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Proposals"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:x.length}),s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[x.filter(O=>O.status==="sent").length," sent"]})]})]}),s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow bg-green-50 dark:bg-green-950",children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm",children:"Signed Off"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold text-green-600",children:_.signedOffProjects}),s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[h.length>0?Math.round(_.signedOffProjects/h.length*100):0,"% conversion"]})]})]})]})]}):s.jsx(yo,{icon:rt,title:"No Projects Yet",description:"Generate proposals to track project progress",actionLabel:"Create Proposal",onAction:()=>n("/portal/proposals")})})]})})]}),E.length>0&&s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"AI-Generated Action Insights"})}),s.jsx(V,{children:s.jsx("div",{className:"space-y-4",children:E.map((O,D)=>{const $=O.icon;return s.jsx(z,{className:`border-l-4 ${k(O.type)}`,children:s.jsx(V,{className:"p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:`p-3 rounded-lg ${A(O.type)}`,children:s.jsx($,{className:`h-5 w-5 ${C(O.type)}`})}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-start justify-between gap-4 mb-2",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:O.title}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:O.description}),s.jsxs("p",{className:"text-sm font-medium",children:["💡 ",O.action]})]}),s.jsx(W,{size:"sm",onClick:()=>n(O.link),className:"flex-shrink-0",children:O.cta})]})})]})})},D)})})})]})]}):s.jsxs("div",{className:"space-y-6",children:[s.jsx(yo,{icon:Si,title:"Welcome to Your Portal",description:"Get started by uploading your first discovery call to unlock AI-powered insights and automated proposal generation.",actionLabel:"Upload Discovery Call",onAction:()=>n("/portal/discovery-calls")}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/workflows"),children:[s.jsxs(oe,{children:[s.jsx(Ti,{className:"h-8 w-8 mb-2 text-primary"}),s.jsx(le,{className:"text-lg",children:"Workflow Analysis"})]}),s.jsx(V,{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Identify inefficiencies and calculate ROI"})})]}),s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/stakeholders"),children:[s.jsxs(oe,{children:[s.jsx(bt,{className:"h-8 w-8 mb-2 text-primary"}),s.jsx(le,{className:"text-lg",children:"Stakeholder Mapping"})]}),s.jsx(V,{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Track influence and manage relationships"})})]}),s.jsxs(z,{className:"cursor-pointer hover:shadow-lg transition-shadow",onClick:()=>n("/portal/proposals"),children:[s.jsxs(oe,{children:[s.jsx(rt,{className:"h-8 w-8 mb-2 text-primary"}),s.jsx(le,{className:"text-lg",children:"Proposal Builder"})]}),s.jsx(V,{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Generate AI-
616powered proposals instantly"})})]})]})]})]})})]})]})})};var I6="AlertDialog",[k2e,YCe]=qt(I6,[L5]),Ta=L5(),$6=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ta(t);return s.jsx(r_,{...n,...r,modal:!0})};$6.displayName=I6;var P2e="AlertDialogTrigger",C2e=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ta(r);return s.jsx(eF,{...a,...n,ref:t})});C2e.displayName=P2e;var O2e="AlertDialogPortal",M6=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ta(t);return s.jsx(n_,{...n,...r})};M6.displayName=O2e;var A2e="AlertDialogOverlay",R6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ta(r);return s.jsx(Ph,{...a,...n,ref:t})});R6.displayName=A2e;var sc="AlertDialogContent",[E2e,T2e]=k2e(sc),I2e=CI("AlertDialogContent"),D6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...a}=e,i=Ta(r),o=b.useRef(null),l=Te(t,o),c=b.useRef(null);return s.jsx(s_e,{contentName:sc,titleName:L6,docsSlug:"alert-dialog",children:s.jsx(E2e,{scope:r,cancelRef:c,children:s.jsxs(Ch,{role:"alertdialog",...i,...a,ref:l,onOpenAutoFocus:se(a.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[s.jsx(I2e,{children:n}),s.jsx(M2e,{contentRef:o})]})})})});D6.displayName=sc;var L6="AlertDialogTitle",F6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ta(r);return s.jsx(Oh,{...a,...n,ref:t})});F6.displayName=L6;var B6="AlertDialogDescription",z6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ta(r);return s.jsx(Ah,{...a,...n,ref:t})});z6.displayName=B6;var $2e="AlertDialogAction",U6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,a=Ta(r);return s.jsx(Ux,{...a,...n,ref:t})});U6.displayName=$2e;var W6="AlertDialogCancel",V6=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:a}=T2e(W6,r),i=Ta(r),o=Te(t,a);return s.jsx(Ux,{...i,...n,ref:o})});V6.displayName=W6;var M2e=({contentRef:e})=>{const t=`\`${sc}\` requires a description for the component to be accessible for screen reader users.
617
618You can add a description to the \`${sc}\` by passing a \`${B6}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
619
620Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${sc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
621
622For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},R2e=$6,D2e=M6,H6=R6,q6=D6,G6=U6,K6=V6,Y6=F6,X6=z6;const L2e=R2e,F2e=D2e,Q6=b.forwardRef(({className:e,...t},r)=>s.jsx(H6,{className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Q6.displayName=H6.displayName;const J6=b.forwardRef(({className:e,...t},r)=>s.jsxs(F2e,{children:[s.jsx(Q6,{}),s.jsx(q6,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));J6.displayName=q6.displayName;const Z6=({className:e,...t})=>s.jsx("div",{className:J("flex flex-col space-y-2 text-center sm:text-left",e),...t});Z6.displayName="AlertDialogHeader";const eB=({className:e,...t})=>s.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});eB.displayName="AlertDialogFooter";const tB=b.forwardRef(({className:e,...t},r)=>s.jsx(Y6,{ref:r,className:J("text-lg font-semibold",e),...t}));tB.displayName=Y6.displayName;const rB=b.forwardRef(({className:e,...t},r)=>s.jsx(X6,{ref:r,className:J("text-sm text-muted-foreground",e),...t}));rB.displayName=X6.displayName;const nB=b.forwardRef(({className:e,...t},r)=>s.jsx(G6,{ref:r,className:J(dN(),e),...t}));nB.displayName=G6.displayName;const sB=b.forwardRef(({className:e,...t},r)=>s.jsx(K6,{ref:r,className:J(dN({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));sB.displayName=K6.displayName;const B2e={discoveryAnalysis:"Discovery Analysis",proposalExport:"Proposal Export",expansionOpportunity:"Expansion Opportunity",stakeholderPersona:"Stakeholder Persona",playbookExport:"Playbook Export",roiReport:"ROI Report",clientEngagement:"Client Engagement Link",workflowAnalysis:"Workflow Analysis",workflowExport:"Workflow Export",transcription:"Transcription",proposalGeneration:"Proposal Generation",proposalRegeneration:"Proposal Regeneration"},z2e=({open:e,onOpenChange:t,actionType:r,currentBalance:n})=>{const a=gt(),i=rs[r],o=i-n;return s.jsx(L2e,{open:e,onOpenChange:t,children:s.jsxs(J6,{children:[s.jsxs(Z6,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("div",{className:"p-2 rounded-full bg-destructive/10",children:s.jsx(pr,{className:"h-6 w-6 text-destructive"})}),s.jsx(tB,{children:"Insufficient Credits"})]}),s.jsxs(rB,{className:"space-y-3 text-left",children:[s.jsx("p",{children:"You don't have enough credits to perform this action."}),s.jsxs("div",{className:"bg-muted p-4 rounded-lg space-y-2",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Action:"}),s.jsx("span",{className:"text-sm",children:B2e[r]})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Required:"}),s.jsxs("span",{className:"text-sm font-semibold",children:[i," credit",i>1?"s":""]})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Your Balance:"}),s.jsxs("span",{className:"text-sm text-destructive",children:[n," credit",n!==1?"s":""]})]}),s.jsxs("div",{className:"flex justify-between border-t pt-2 mt-2",children:[s.jsx("span",{className:"text-sm font-medium",children:"Need:"}),s.jsxs("span",{className:"text-sm font-bold",children:[o," more credit",o>1?"s":""]})]})]}),s.jsx("p",{className:"text-sm",children:"Upgrade your plan or top up credits to continue using Clientli features."})]})]}),s.jsxs(eB,{children:[s.jsx(sB,{children:"Cancel"}),s.jsx(nB,{onClick:()=>a("/pricing"),children:"View Plans & Pricing"})]})]})})},Pi=({actionType:e,onSuccess:t,children:r,description:n,referenceId:a})=>{const{credits:i,checkCredits:o,deductCredits:l}=y6(),[c,u]=b.useState(!1),[d,f]=b.useState(!1),h=async()=>
622{if(!i){f(!0);return}if(!o(e)){f(!0);return}u(!0);try{await l(e,n,a)&&await t()}catch(g){console.error("Error in credit gate:",g)}finally{u(!1)}};return s.jsxs(s.Fragment,{children:[r({handleAction:h,isProcessing:c,hasCredits:i?o(e):!1}),s.jsx(z2e,{open:d,onOpenChange:f,actionType:e,currentBalance:(i==null?void 0:i.balance)||0})]})};function tt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ci(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const aB=6048e5,U2e=864e5,km=43200,JA=1440;let W2e={};function $h(){return W2e}function Hf(e,t){var l,c,u,d;const r=$h(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,a=tt(e),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Vg(e){return Hf(e,{weekStartsOn:1})}function iB(e){const t=tt(e),r=t.getFullYear(),n=Ci(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=Vg(n),i=Ci(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Vg(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function ZA(e){const t=tt(e);return t.setHours(0,0,0,0),t}function Hg(e){const t=tt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function V2e(e,t){const r=ZA(e),n=ZA(t),a=+r-Hg(r),i=+n-Hg(n);return Math.round((a-i)/U2e)}function H2e(e){const t=iB(e),r=Ci(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Vg(r)}function Km(e,t){const r=tt(e),n=tt(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function q2e(e){return Ci(e,Date.now())}function G2e(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function K2e(e){if(!G2e(e)&&typeof e!="number")return!1;const t=tt(e);return!isNaN(Number(t))}function Y2e(e,t){const r=tt(e),n=tt(t),a=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return a*12+i}function X2e(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Q2e(e,t){return+tt(e)-+tt(t)}function J2e(e){const t=tt(e);return t.setHours(23,59,59,999),t}function Z2e(e){const t=tt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ePe(e){const t=tt(e);return+J2e(t)==+Z2e(t)}function tPe(e,t){const r=tt(e),n=tt(t),a=Km(r,n),i=Math.abs(Y2e(r,n));let o;if(i<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*i);let l=Km(r,n)===-a;ePe(tt(e))&&i===1&&Km(e,n)===1&&(l=!1),o=a*(i-Number(l))}return o===0?0:o}function rPe(e,t,r){const n=Q2e(e,t)/1e3;return X2e(r==null?void 0:r.roundingMethod)(n)}function nPe(e){const t=tt(e),r=Ci(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const sPe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aPe=(e,t,r)=>{let n;const a=sPe[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Ob(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const iPe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oPe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lPe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cPe={date:Ob({formats:iPe,defaultWidth:"full"}),time:Ob({formats:oPe,defaultWidth:"full"}),dateTime:Ob({formats:lPe,defaultWidth:"full"})},uPe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dPe=(e,t,r,n)=>uPe[e];function Xu(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;a=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[l]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const fPe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hPe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mPe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pPe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
622ay","Saturday"]},gPe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vPe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},xPe=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},yPe={ordinalNumber:xPe,era:Xu({values:fPe,defaultWidth:"wide"}),quarter:Xu({values:hPe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xu({values:mPe,defaultWidth:"wide"}),day:Xu({values:pPe,defaultWidth:"wide"}),dayPeriod:Xu({values:gPe,defaultWidth:"wide",formattingValues:vPe,defaultFormattingWidth:"wide"})};function Qu(e){return(t,r={})=>{const n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?wPe(l,f=>f.test(o)):bPe(l,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function bPe(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function wPe(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function jPe(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const a=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(a.length);return{value:o,rest:l}}}const NPe=/^(\d+)(th|st|nd|rd)?/i,SPe=/\d+/i,_Pe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kPe={any:[/^b/i,/^(a|c)/i]},PPe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},CPe={any:[/1/i,/2/i,/3/i,/4/i]},OPe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},APe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},EPe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TPe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},IPe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$Pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},MPe={ordinalNumber:jPe({matchPattern:NPe,parsePattern:SPe,valueCallback:e=>parseInt(e,10)}),era:Qu({matchPatterns:_Pe,defaultMatchWidth:"wide",parsePatterns:kPe,defaultParseWidth:"any"}),quarter:Qu({matchPatterns:PPe,defaultMatchWidth:"wide",parsePatterns:CPe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qu({matchPatterns:OPe,defaultMatchWidth:"wide",parsePatterns:APe,defaultParseWidth:"any"}),day:Qu({matchPatterns:EPe,defaultMatchWidth:"wide",parsePatterns:TPe,defaultParseWidth:"any"}),dayPeriod:Qu({matchPatterns:IPe,defaultMatchWidth:"any",parsePatterns:$Pe,defaultParseWidth:"any"})},oB={code:"en-US",formatDistance:aPe,formatLong:cPe,formatRelative:dPe,localize:yPe,match:MPe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function RPe(e){const t=tt(e);return V2e(t,nPe(t))+1}function DPe(e){const t=tt(e),r=+Vg(t)-+H2e(t);return Math.round(r/aB)+1}function lB(e,t){var d,f,h,m;const r=tt(e),n=r.getFullYear(),a=$h(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((m=(h=a.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=Ci(e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const l=Hf(o,t),c=Ci(e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const u=Hf(c,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function LPe(e,t){var l,c,u,d;const r=$h(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=lB(e,t),i=Ci(e,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),Hf(i,t)}function FPe(e,t){const r=tt(e),n=+Hf(r,t)-+LPe(r,t);return Math.round(n/aB)+1}function Ye(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Ua={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ye(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Ye(r+1,2)},d(e,t){return Ye(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Ye(e.getHours()%12||12,t.length)},H(e,t){return Ye(e.getHours(),t.length)},m(e,t){return Ye(e.getMinutes(),t.length)},s(e,t){return Ye(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return Ye(a,t.length)}},Nl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eE={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Ua.y(e,t)},Y:function(e,t,r,n){const a=lB(e,n),i=a>0?a:1-a;if(t==="YY"){const o=i%100;return Ye(o,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ye(i,t.length)},R:function(e,t){const r=iB(e);return Ye(r,t.length)},u:function(e,t){const r=e.getFullYear();return Ye(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ye(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ye(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Ua.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ye(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const a=FPe(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):Ye(a,t.length)},I:function(e,t,r){const n=DPe(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Ye(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ua.d(e,t)},D:function(e,t,r){const n=RPe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ye(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ye(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ye(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return Ye(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let a;switch(n===12?a=Nl.noon:n===0?a=Nl.midnight:a=n/12>
vendor: 4,427 bytes, line 622
622=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let a;switch(n>=17?a=Nl.evening:n>=12?a=Nl.afternoon:n>=4?a=Nl.morning:a=Nl.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ua.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ua.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ye(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ua.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ua.s(e,t)},S:function(e,t){return Ua.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return rE(n);case"XXXX":case"XX":return lo(n);case"XXXXX":case"XXX":default:return lo(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return rE(n);case"xxxx":case"xx":return lo(n);case"xxxxx":case"xxx":default:return lo(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tE(n,":");case"OOOO":default:return"GMT"+lo(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tE(n,":");case"zzzz":default:return"GMT"+lo(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Ye(n,t.length)},T:function(e,t,r){const n=e.getTime();return Ye(n,t.length)}};function tE(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return i===0?r+String(a):r+String(a)+t+Ye(i,2)}function rE(e,t){return e%60===0?(e>0?"-":"+")+Ye(Math.abs(e)/60,2):lo(e,t)}function lo(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),a=Ye(Math.trunc(n/60),2),i=Ye(n%60,2);return r+a+t+i}const nE=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},cB=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},BPe=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return nE(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",nE(n,t)).replace("{{time}}",cB(a,t))},zPe={p:cB,P:BPe},UPe=/^D+$/,WPe=/^Y+$/,VPe=["D","DD","YY","YYYY"];function HPe(e){return UPe.test(e)}function qPe(e){return WPe.test(e)}function GPe(e,t,r){const n=KPe(e,t,r);if(console.warn(n),VPe.includes(e))throw new RangeError(n)}function KPe(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const YPe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XPe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QPe=/^'([^]*?)'?$/,JPe=/''/g,ZPe=/[a-zA-Z]/;function eCe(e,t,r){var d,f,h,m;const n=$h(),a=n.locale??oB,i=n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,l=tt(e);if(!K2e(l))throw new RangeError("Invalid time value");let c=t.match(XPe).map(g=>{const p=g[0];if(p==="p"||p==="P"){const v=zPe[p];return v(g,a.formatLong)}return g}).join("").match(YPe).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const p=g[0];if(p==="'")return{isToken:!1,value:tCe(g)};if(eE[p])return{isToken:!0,value:g};
622if(p.match(ZPe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:g}});a.localize.preprocessor&&(c=a.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(g=>{if(!g.isToken)return g.value;const p=g.value;(qPe(p)||HPe(p))&&GPe(p,t,String(e));const v=eE[p[0]];return v(l,p,a.localize,u)}).join("")}function tCe(e){const t=e.match(QPe);return t?t[1].replace(JPe,"'"):e}function rCe(e,t,r){const n=$h(),a=(r==null?void 0:r.locale)??n.locale??oB,i=2520,o=Km(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:o});let c,u;o>0?(c=tt(t),u=tt(e)):(c=tt(e),u=tt(t));const d=rPe(u,c),f=(Hg(u)-Hg(c))/1e3,h=Math.round((d-f)/60);let m;if(h<2)return r!=null&&r.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,l):d<10?a.formatDistance("lessThanXSeconds",10,l):d<20?a.formatDistance("lessThanXSeconds",20,l):d<40?a.formatDistance("halfAMinute",0,l):d<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):h===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",h,l);if(h<45)return a.formatDistance("xMinutes",h,l);if(h<90)return a.formatDistance("aboutXHours",1,l);if(h<JA){const g=Math.round(h/60);return a.formatDistance("aboutXHours",g,l)}else{if(h<i)return a.formatDistance("xDays",1,l);if(h<km){const g=Math.round(h/JA);return a.formatDistance("xDays",g,l)}else if(h<km*2)return m=Math.round(h/km),a.formatDistance("aboutXMonths",m,l)}if(m=tPe(u,c),m<12){const g=Math.round(h/km);return a.formatDistance("xMonths",g,l)}else{const g=m%12,p=Math.trunc(m/12);return g<3?a.formatDistance("aboutXYears",p,l):g<9?a.formatDistance("overXYears",p,l):a.formatDistance("almostXYears",p+1,l)}}function uB(e,t){return rCe(e,q2e(e),t)}const dB=({open:e,onOpenChange:t,userId:r,preselectedCompany:n,preselectedCallId:a})=>{const i=gt(),{toast:o}=xr(),[l,c]=b.useState(!1),[u,d]=b.useState([]),[f,h]=b.useState([]),[m,g]=b.useState([]),[p,v]=b.useState([]),[y,x]=b.useState({proposal_title:"",client_name:"",selectedCompany:n||""});b.useEffect(()=>{e&&r&&w()},[e,r]),b.useEffect(()=>{y.selectedCompany&&N(y.selectedCompany)},[y.selectedCompany]),b.useEffect(()=>{n&&x(P=>({...P,selectedCompany:n}))},[n]);const w=async()=>{var P,k;try{const[A,C]=await Promise.all([ne.from("discovery_calls").select("client_company").not("client_company","is",null),ne.from("workflow_analyses").select("client_name").not("client_name","is",null)]),T=new Set;(P=A.data)==null||P.forEach(E=>E.client_company&&T.add(E.client_company)),(k=C.data)==null||k.forEach(E=>E.client_name&&T.add(E.client_name)),d(Array.from(T).sort())}catch(A){console.error("Error fetching companies:",A)}},N=async P=>{try{const[k,A]=await Promise.all([ne.from("discovery_calls").select("id, client_name, client_company, call_date").eq("client_company",P).order("call_date",{ascending:!1}),ne.from("workflow_analyses").select("id, client_name, analysis_name, created_at").eq("client_name",P).order("created_at",{ascending:!1})]),C=k.data||[],T=A.data||[];h(C),g(T);const E=[...C.map(O=>({type:"discovery_call",id:O.id})),...T.map(O=>({type:"workflow_analysis",id:O.id}))];a&&C.some(O=>O.id===a)&&(E.some(O=>O.type==="discovery_call"&&O.id===a)||E.push({type:"discovery_call",id:a})),v(E),y.client_name||x(O=>({...O,client_name:P}))}catch(k){console.error("Error fetching sources:",k)}},j=(P,k)=>{v(A=>A.some(T=>T.type===P&&T.id===k)?A.filter(T=>!(T.type===P&&T.id===k)):[...A,{type:P,id:k}])},S=async()=>{if(console.log("[ProposalCreation] Starting generation"),console.log("[ProposalCreation] Form data:",y),console.log("[ProposalCreation] Selected sources:",p),!y.proposal_title.trim()||!y.client_name.trim()){console.error("[ProposalCreation] Validation failed - missing title/client"),o({title:"Validation Error",description:"Please provide a proposal title and client name",variant:"destructive"});return}if(p.length===0){console.error("[ProposalCreation] Validation failed - no sources selected"),o({title:"Validation Error",description:"Please select at least one data source",variant:"destructive"});return}c(!0);try{console.log("[ProposalCreation] Step 1: Creating proposal record");const{data:P,error:k}=await ne.from("proposals").insert({user_id:r,proposal_title:y.proposal_title.trim(),client_name:y.client_name.trim(),slides:[],status:"generating"}).select().single();if(k)throw console.error("[ProposalCreation] Proposal insert error:",k),new Error(`Failed to create proposal: ${k.message}`);console.log("[ProposalCreation] Proposal created:",P.id),console.log("[ProposalCreation] Step 2: Inserting proposal sources");const A=p.map($=>({proposal_id:P.id,source_type:$.type,source_id:$.id}));console.log("[ProposalCreation] Sources data:",A);const{error:C}=await ne.from("proposal_sources").insert(A);
622if(C)throw console.error("[ProposalCreation] Sources insert error:",C),new Error(`Failed to insert sources: ${C.message}`);console.log("[ProposalCreation] Sources inserted successfully");const T=p.filter($=>$.type==="discovery_call").map($=>$.id);if(T.length>0){console.log("[ProposalCreation] Updating discovery calls with proposal_id:",P.id);const{error:$}=await ne.from("discovery_calls").update({proposal_id:P.id}).in("id",T);$?console.error("[ProposalCreation] Failed to update discovery calls:",$):console.log("[ProposalCreation] Successfully linked discovery calls to proposal")}console.log("[ProposalCreation] Step 3: Calling generate-proposal edge function");const E={proposalId:P.id,sources:p};console.log("[ProposalCreation] Edge function payload:",E);const{data:O,error:D}=await ne.functions.invoke("generate-proposal",{body:E});if(D)throw console.error("[ProposalCreation] Edge function error:",D),new Error(`Edge function failed: ${D.message}`);console.log("[ProposalCreation] Edge function response:",O),o({title:"Proposal Generation Started",description:"Your proposal is being generated. This may take a minute."}),console.log("[ProposalCreation] Navigating to viewer"),t(!1),i(`/portal/proposals/view/${P.id}`)}catch(P){console.error("[ProposalCreation] Error caught:",P),console.error("[ProposalCreation] Error details:",{message:(P==null?void 0:P.message)||"Unknown error",name:P==null?void 0:P.name,stack:P==null?void 0:P.stack,raw:P}),o({title:"Error",description:(P==null?void 0:P.message)||"Failed to generate proposal",variant:"destructive"})}finally{c(!1)}},_=p.length;return s.jsx(il,{open:e,onOpenChange:t,children:s.jsxs(zi,{className:"sm:max-w-xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Ui,{children:[s.jsx(Wi,{children:"Generate New Proposal"}),s.jsx(ol,{children:"Select a client company and the data sources to synthesize into a proposal"})]}),s.jsxs("div",{className:"space-y-4 py-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"title",children:"Proposal Title *"}),s.jsx(De,{id:"title",placeholder:"Q1 2025 Digital Transformation Proposal",value:y.proposal_title,onChange:P=>x(k=>({...k,proposal_title:P.target.value}))})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"company",children:"Select Client Company *"}),s.jsxs(rn,{value:y.selectedCompany,onValueChange:P=>x(k=>({...k,selectedCompany:P,client_name:P})),children:[s.jsx(Fr,{children:s.jsx(nn,{placeholder:"Choose a client company"})}),s.jsx(Br,{children:u.map(P=>s.jsx(Ne,{value:P,children:P},P))})]})]}),y.selectedCompany&&s.jsxs("div",{className:"space-y-3 p-4 border rounded-lg bg-muted/50",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsxs(je,{children:["Data Sources (",_," selected)"]})}),f.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Discovery Calls:"}),f.map(P=>s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Vf,{checked:p.some(k=>k.type==="discovery_call"&&k.id===P.id),onCheckedChange:()=>j("discovery_call",P.id)}),s.jsxs("label",{className:"text-sm cursor-pointer",onClick:()=>j("discovery_call",P.id),children:[P.client_name||P.client_company," - ",new Date(P.call_date).toLocaleDateString()]})]},P.id))]}),m.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium",children:"Workflow Analyses:"}),m.map(P=>s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Vf,{checked:p.some(k=>k.type==="workflow_analysis"&&k.id===P.id),onCheckedChange:()=>j("workflow_analysis",P.id)}),s.jsx("label",{className:"text-sm cursor-pointer",onClick:()=>j("workflow_analysis",P.id),children:P.analysis_name||P.client_name})]},P.id))]}),f.length===0&&m.length===0&&s.jsx("p",{className:"text-sm text-muted-foreground",children:"No data sources found for this client"})]})]}),s.jsxs("div",{className:"flex justify-end gap-3",children:[s.jsx(W,{variant:"outline",onClick:()=>t(!1),disabled:l,children:"Cancel"}),s.jsx(Pi,{actionType:"proposalGeneration",onSuccess:S,description:`Generate proposal: ${y.proposal_title}`,children:({handleAction:P,isProcessing:k,hasCredits:A})=>s.jsxs(W,{onClick:P,disabled:l||k||!A||p.length===0,children:[(l||k)&&s.jsx(an,{className:"mr-2 h-4 w-4 animate-spin"}),"Generate Proposal (10 credits)"]})})]})]})})},nCe=()=>{const{user:e,loading:t}=qi(),r=gt(),{toast:n}=xr(),[a,i]=b.useState([]),[o,l]=b.useState(!0),[c,u]=b.useState(!1);b.useEffect(()=>{e&&d()},[e]);const d=async()=>{try{l(!0);const{data:g,error:p}=await ne.from("proposals").select("*").order("updated_at",{ascending:!1});if(p)throw p;i(g||[])}catch(g){console.error("Error fetching proposals:",g),n({title:"Error",description:"Failed to load proposals",variant:"destructive"})}finally{l(!1)}},f=()=>{u(!0)},h=async g=>{try{const{error:p}=await ne.from("proposals").delete().eq("id",g);if(p)throw p;n({title:"Proposal Deleted",description:"The proposal has been deleted successfully."}),d()}catch(p){console.error("Error deleting proposal:",p),n({title:"Error",description:"Failed to delete proposal",variant:"destructive"})}},m=async g=>{n({title:"Export Complete",description:"Your proposal has been exported as PDF."})};return t||o?s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsx(an,{className:"h-8 w-8 animate-spin"})}):s.jsxs(gr,{children:[s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:e}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Proposals"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage and export your client proposals"})]})]}),s.jsxs(W,{onClick:f,children:[s.jsx(wc,{className:"h-4 w-4 mr-2"}),"New Proposal"]})]}),a.length===0?s.jsx(z,{children:s.jsxs(V,{className:"flex flex-col items-center justify-center py-12",children:[s.jsx(rt,{className:"h-12 w-12 text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-semibold mb-2",children:"No proposals yet"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Create your first proposal from a discovery call or workflow analysis"}),s.jsxs(W,{onClick:f,children:[s.jsx(wc,{className:"h-4 w-4 mr-2"}),"Create Proposal"]})]})}):s.jsx("div",{className:"grid gap-4",children:a.map(g=>s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx(le,{className:"text-lg",children:g.proposal_title}),s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx("span",{children:g.client_name}),s.jsx("span",{children:"•"}),s.jsxs("span",{children:["Last edited ",eCe(new Date(g.updated_at),"MMM d, yyyy")]})]})]}),s.jsx(ue,{variant:g.status==="sent"?"default":"secondary",children:g.status})]})}),s.jsx(V,{children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>r(`/portal/proposals/view/${g.id}`),children:[s.jsx(rt,{className:"h-4 w-4 mr-2"}),"View"]}
622),s.jsx(Pi,{actionType:"proposalExport",onSuccess:()=>m(g.id),description:`Export proposal: ${g.proposal_title}`,referenceId:g.id,children:({handleAction:p,isProcessing:v})=>s.jsx(W,{variant:"outline",size:"sm",onClick:p,disabled:v,children:v?s.jsxs(s.Fragment,{children:[s.jsx(an,{className:"h-4 w-4 mr-2 animate-spin"}),"Exporting..."]}):s.jsxs(s.Fragment,{children:[s.jsx(rh,{className:"h-4 w-4 mr-2"}),"Export PDF (",rs.proposalExport," credits)"]})})}),s.jsxs(W,{variant:"outline",size:"sm",onClick:()=>h(g.id),children:[s.jsx(sh,{className:"h-4 w-4 mr-2"}),"Delete"]})]})})]},g.id))})]})})]})]}),s.jsx(dB,{open:c,onOpenChange:u,userId:(e==null?void 0:e.id)||""})]})},sCe=({onUploadSuccess:e,userId:t})=>{const{toast:r}=xr(),n=b.useRef(null),[a,i]=b.useState(!1),[o,l]=b.useState(0),[c,u]=b.useState(null),d=g=>{var S,_;const p=(S=g.target.files)==null?void 0:S[0];if(!p)return;const v=(_=p.name.split(".").pop())==null?void 0:_.toLowerCase(),y=["mp4","webm","avi","mov","m4v"],x=["mp3","wav","m4a"];if(!(["video/mp4","video/webm","video/avi","video/x-m4v","video/quicktime","application/octet-stream","audio/mpeg","audio/wav","audio/mp4"].includes(p.type)||y.includes(v||"")||x.includes(v||""))){r({title:"Invalid file type",description:"Please upload a video (MP4, WebM, AVI, MOV, M4V) or audio file (MP3, WAV, M4A)",variant:"destructive"});return}const j=p.type.startsWith("video/")?500*1024*1024:100*1024*1024;if(p.size>j){r({title:"File too large",description:`Maximum file size is ${p.type.startsWith("video/")?"500MB":"100MB"}`,variant:"destructive"});return}u(p)},f=async()=>{if(!(!c||!t)){i(!0),l(0);try{const g=c.name.split(".").pop(),p=`${t}/${Date.now()}.${g}`,{data:v,error:y}=await ne.storage.from("discovery-calls").upload(p,c,{cacheControl:"3600",upsert:!1});if(y)throw y;const{data:x}=ne.storage.from("discovery-calls").getPublicUrl(p);e(x.publicUrl),l(100),r({title:"Upload successful",description:"File uploaded successfully"}),u(null)}catch(g){console.error("Upload error:",{message:g.message,fileName:c.name,fileType:c.type,fileSize:c.size,error:g}),r({title:"Upload failed",description:`${g.message||"Failed to upload file"}. File: ${c.name} (${c.type})`,variant:"destructive"})}finally{i(!1),l(0)}}},h=g=>{g.preventDefault(),g.stopPropagation()},m=g=>{var v;g.preventDefault(),g.stopPropagation();const p=(v=g.dataTransfer.files)==null?void 0:v[0];p&&d({target:{files:[p]}})};return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"border-2 border-dashed rounded-lg p-8 text-center cursor-pointer hover:border-primary transition-colors",onDragOver:h,onDrop:m,onClick:()=>{var g;return(g=n.current)==null?void 0:g.click()},children:[s.jsx(G1,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),s.jsx("p",{className:"text-sm font-medium mb-1",children:"Click to upload or drag and drop"}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:["Video: MP4, WebM, AVI, MOV, M4V (max 500MB)",s.jsx("br",{}),"Audio: MP3, WAV, M4A (max 100MB)"]})]}),s.jsx("input",{ref:n,type:"file",accept:"video/mp4,video/webm,video/avi,video/quicktime,video/x-m4v,.mp4,.webm,.avi,.mov,.m4v,audio/mpeg,audio/wav,audio/mp4,.mp3,.wav,.m4a",onChange:d,className:"hidden"}),c&&s.jsxs("div",{className:"border rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(HU,{className:"h-4 w-4"}),s.jsx("span",{className:"text-sm font-medium",children:c.name})]}),s.jsx(W,{variant:"ghost",size:"sm",onClick:()=>u(null),disabled:a,children:s.jsx(iu,{className:"h-4 w-4"})})]}),s.jsxs("div",{className:"text-xs text-muted-foreground mb-2",children:[(c.size/(1024*1024)).toFixed(2)," MB"]}),a&&s.jsx(vs,{value:o,className:"mb-2"}),s.jsx(W,{onClick:f,disabled:a,className:"w-full",size:"sm",children:a?"Uploading...":"Upload File"})]})]})},aCe=({value:e,onChange:t})=>{const r=e.trim()?e.split(/\s+/).length:0,n=e.length,a=5e4;return s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"transcript",children:"Transcript"}
622),s.jsx(Eh,{id:"transcript",value:e,onChange:i=>t(i.target.value),placeholder:`Paste your call transcript here...
623
624Speaker 1: Welcome to the call...
625Speaker 2: Thanks for having me...`,className:"min-h-[300px] font-mono text-sm",maxLength:a}),s.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[s.jsxs("span",{children:[r.toLocaleString()," words"]}),s.jsxs("span",{className:n>a*.9?"text-destructive":"",children:[n.toLocaleString()," / ",a.toLocaleString()," characters"]})]}),r>0&&s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Estimated reading time: ~",Math.ceil(r/200)," minutes"]})]})},iCe=()=>{const{user:e,isAdmin:t,loading:r}=qi(),n=gt(),{toast:a}=xr(),[i,o]=b.useState([]),[l,c]=b.useState(!0),[u,d]=b.useState(""),[f,h]=b.useState(!1),[m,g]=b.useState("file"),[p,v]=b.useState(!1),[y,x]=b.useState(null),[w,N]=b.useState(""),[j,S]=b.useState(""),[_,P]=b.useState(""),[k,A]=b.useState(""),[C,T]=b.useState(""),[E,O]=b.useState(null),[D,$]=b.useState(""),[L,M]=b.useState(!1),[R,B]=b.useState(null),[H,U]=b.useState(!1),[q,ee]=b.useState(null),[de,ce]=b.useState("upload");b.useEffect(()=>{e&&G()},[e]),b.useEffect(()=>{new URLSearchParams(window.location.search).get("upload")==="true"&&(h(!0),window.history.replaceState({},"",window.location.pathname))},[]);const G=async()=>{if(e)try{const{data:Y,error:he}=await ne.from("discovery_calls").select("*").eq("user_id",e.id).order("created_at",{ascending:!1});if(he)throw he;const _e=await Promise.all((Y||[]).map(async We=>{const{data:Fe}=await ne.from("proposal_sources").select("proposal_id").eq("source_type","discovery_call").eq("source_id",We.id).limit(1).single();return{...We,proposal_id:(Fe==null?void 0:Fe.proposal_id)||null}}));o(_e)}catch(Y){console.error("Error fetching calls:",Y),a({title:"Error",description:"Failed to fetch discovery calls",variant:"destructive"})}finally{c(!1)}},ie=Y=>{O(Y),a({title:"File uploaded successfully",description:"You can now analyze this call"})},X=async()=>{if(e){if(!w.trim()){a({title:"Required field",description:"Client name is required",variant:"destructive"});return}if(m==="file"&&!E){a({title:"No file uploaded",description:"Please upload a video or audio file",variant:"destructive"});return}if(m==="transcript"&&!D.trim()){a({title:"No transcript",description:"Please paste a transcript",variant:"destructive"});return}M(!0);try{const{data:Y,error:he}=await ne.from("discovery_calls").insert({user_id:e.id,client_name:w,client_company:j||null,client_industry:_||null,call_date:k||null,duration_minutes:C?parseInt(C):null,video_url:m==="file"?E:null,transcript_content:m==="transcript"?D:null,analysis_status:"pending"}).select().single();if(he)throw he;a({title:"Discovery call saved",description:"You can now analyze this call"}),B(Y.id),ce("analyze"),G()}catch(Y){console.error("Error saving call:",Y),a({title:"Error",description:"Failed to save discovery call",variant:"destructive"})}finally{M(!1)}}},te=async(Y,he=!1)=>{he&&U(!0);try{await ne.from("discovery_calls").update({analysis_status:"processing"}).eq("id",Y),G();const{data:_e,error:We}=await ne.functions.invoke("analyze-discovery-call",{body:{call_id:Y}});if(We)throw We;if(he){const{data:Fe,error:Et}=await ne.from("discovery_calls").select("*").eq("id",Y).single();!Et&&Fe&&(ee(Fe.analysis_result),ce("result"))}a({title:"Analysis completed",description:"Your discovery call has been analyzed successfully."}),G()}catch(_e){console.error("Error analyzing call:",_e),a({title:"Analysis failed",description:_e.message||"Failed to analyze discovery call",variant:"destructive"})}finally{he&&U(!1)}},Z=()=>{N(""),S(""),P(""),A(""),T(""),O(null),$(""),B(null),ee(null),ce("upload"),h(!1)},F=async Y=>{if(confirm("Are you sure you want to delete this discovery call?"))try{const{error:he}=await ne.from("discovery_calls").delete().eq("id",Y);if(he)throw he;a({title:"Call deleted",description:"Discovery call has been removed"}),G()}catch(he){console.error("Error deleting call:",he),a({title:"Error",description:"Failed to delete call",variant:"destructive"})}},me=i.filter(Y=>{var he;return Y.client_name.toLowerCase().includes(u.toLowerCase())||((he=Y.client_company)==null?void 0:he.toLowerCase().includes(u.toLowerCase()))}),pe=Y=>
625{switch(Y){case"pending":return s.jsxs(ue,{variant:"secondary",children:[s.jsx(Sn,{className:"h-3 w-3 mr-1"}),"Pending"]});case"processing":return s.jsxs(ue,{variant:"secondary",children:[s.jsx(Sn,{className:"h-3 w-3 mr-1 animate-spin"}),"Processing"]});case"completed":return s.jsxs(ue,{variant:"default",className:"bg-green-600",children:[s.jsx(Yl,{className:"h-3 w-3 mr-1"}),"Completed"]});case"failed":return s.jsxs(ue,{variant:"destructive",children:[s.jsx(As,{className:"h-3 w-3 mr-1"}),"Failed"]});default:return s.jsx(ue,{variant:"outline",children:Y})}};return r||l?s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Loading discovery calls..."})]})}):s.jsxs(gr,{children:[s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:e,isAdmin:t}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Discovery Calls"}),s.jsx("p",{className:"text-muted-foreground",children:"Upload and analyze sales discovery calls"})]})]}),s.jsxs(il,{open:f,onOpenChange:h,children:[s.jsx(s_,{asChild:!0,children:s.jsxs(W,{className:"gap-2",children:[s.jsx(G1,{className:"h-4 w-4"}),"Upload Call"]})}),s.jsxs(zi,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Ui,{children:[s.jsxs(Wi,{children:[de==="upload"&&"Upload Discovery Call",de==="analyze"&&"Analyze Discovery Call",de==="result"&&"Analysis Complete"]}),s.jsxs(ol,{children:[de==="upload"&&"Upload a video/audio file or paste a transcript",de==="analyze"&&"Start AI analysis of your discovery call",de==="result"&&"Review the insights from your discovery call"]})]}),de==="upload"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"clientName",children:"Client Name *"}),s.jsx(De,{id:"clientName",value:w,onChange:Y=>N(Y.target.value),placeholder:"John Doe"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"clientCompany",children:"Company"}),s.jsx(De,{id:"clientCompany",value:j,onChange:Y=>S(Y.target.value),placeholder:"Acme Corp"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"clientIndustry",children:"Industry"}),s.jsx(De,{id:"clientIndustry",value:_,onChange:Y=>P(Y.target.value),placeholder:"Technology"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"callDate",children:"Call Date"}),s.jsx(De,{id:"callDate",type:"date",value:k,onChange:Y=>A(Y.target.value)})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"duration",children:"Duration (minutes)"}),s.jsx(De,{id:"duration",type:"number",value:C,onChange:Y=>T(Y.target.value),placeholder:"45"})]}),s.jsxs(gs,{value:m,onValueChange:Y=>g(Y),children:[s.jsxs(In,{className:"grid w-full grid-cols-2",children:[s.jsx(Ve,{value:"file",children:"Video/Audio File"}),s.jsx(Ve,{value:"transcript",children:"Paste Transcript"})]}),s.jsx(He,{value:"file",className:"space-y-4",children:s.jsx(sCe,{onUploadSuccess:ie,userId:e==null?void 0:e.id})}),s.jsx(He,{value:"transcript",children:s.jsx(aCe,{value:D,onChange:$})})]})]}),de==="analyze"&&R&&s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[s.jsx(Yl,{className:"h-5 w-5"}),s.jsx("p",{className:"font-medium",children:"Call saved successfully!"})]}),s.jsxs("div",{className:"bg-muted p-4 rounded-lg space-y-2",children:[s.jsxs("div",{children:[s.jsx("span",{className:"font-medium",children:"Client:"})," ",w]}),j&&s.jsxs("div",{children:[s.jsx("span",{className:"font-medium",children:"Company:"})," ",j]}),_&&s.jsxs("div",{children:[s.jsx("span",{className:"font-medium",children:"Industry:"})," ",_]})]}),s.jsxs("div",{className:"border rounded-lg p-4 space-y-3",children:[s.jsx("h3",{className:"font-semibold",children:"AI Analysis"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Analyze this call to extract stakeholders, pain points, opportunities, and next steps."}),H&&s.jsxs("div",{className:"bg-muted p-4 rounded-lg space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),s.jsx("span",{className:"text-sm font-medium",children:"AI is analyzing your call..."})]}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"This may take 30-60 seconds"})]})]})]}),de==="result"&&q&&s.jsxs("div",{className:"space-y-4 max-h-[60vh] overflow-y-auto",children:[q.executive_summary&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"font-semibold",children:"Executive Summary"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:q.executive_summary})]}),q.stakeholders&&q.stakeholders.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("h3",{className:"font-semibold",children:["Key Stakeholders (",q.stakeholders.length,")"]}),s.jsx("div",{className:"grid gap-2",children:q.stakeholders.slice(0,3).map((Y,he)=>s.jsxs("div",{className:"border rounded-lg p-3 text-sm",children:[s.jsx("div",{className:"font-medium",children:Y.name}),s.jsx("div",{className:"text-muted-foreground",children:Y.role}),Y.influence&&s.jsxs(ue,{variant:"secondary",className:"mt-1",children:["Influence: ",Y.influence]})]},he))})]}),q.pain_points&&q.pain_points.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("h3",{className:"font-semibold",children:["Pain Points (",q.pain_points.length,")"]}),s.jsx("div",{className:"space-y-2",children:q.pain_points.slice(0,3).map((Y,he)=>s.jsxs("div",{className:"border-l-4 border-red-500 pl-3 py-2",children:[s.jsx("div",{className:"font-medium text-sm",children:Y.category||"General"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:Y.description})]},he))})]}),q.opportunities&&q.opportunities.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsxs("h3",{className:"font-semibold",children:["Opportunities (",q.opportunities.length,")"]}),s.jsx("div",{className:"space-y-2",children:q.opportunities.slice(0,3).map((Y,he)=>s.jsxs("div",{className:"border-l-4 border-green-500 pl-3 py-2",children:[s.jsx("div",{className:"font-medium text-sm",children:Y.title}),s.jsx("div",{className:"text-sm text-muted-foreground",children:Y.description})]},he))})]}),q.next_steps&&q.next_steps.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"font-semibold",children:"Next Steps"}),s.jsx("ul",{className:"space-y-1",children:q.next_steps.map((Y,he)=>s.jsxs("li",{className:"text-sm flex items-start gap-2",children:[s.jsx(Yl,{className:"h-4 w-4 mt-0.5 text-primary flex-shrink-0"}),s.jsx("span",{children:Y})]},he))})]})]}),s.jsxs(Wx,{children:[de==="upload"&&s.jsxs(s.Fragment,{children:[s.jsx(W,{variant:"outline",onClick:Z,children:"Cancel"}),s.jsx(W,{onClick:X,disabled:L,children:L?"Saving...":"Save Call"})]}),de==="analyze"&&s.jsxs(s.Fragment,{children:[s.jsx(W,{variant:"outline",onClick:Z,children:"Skip for Now"}),s.jsx(Pi,{actionType:"discoveryAnalysis",onSuccess:()=>R&&te(R,!0),description:`Analyze call: ${w}`,referenceId:R||void 0,children:({handleAction:Y,isProcessing:he,hasCredits:_e})=>s.jsx(W,{onClick:Y,disabled:he||H,children:he||H?"Analyzing...":"Analyze Now (10 credits)"})})]}),de==="result"&&s.jsxs(s.Fragment,{children:[s.jsx(W,{variant:"outline",onClick:Z,children:"Close"}),s.jsx(W,{onClick:()=>R&&n(`/portal/discovery-calls/${R}`),children:"View Full Analysis"})]})]})]})]})]}),i.length>0&&s.jsx("div",{className:"flex items-center gap-4",children:s.jsxs("div",{className:"relative flex-1 max-w-sm",children:[s.jsx(au,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(De,{placeholder:"Search calls...",value:u,onChange:Y=>d(Y.target.value),className:"pl-10"})]})}),me.length===0&&i.length===0?s.jsx(yo,{icon:Si,title:"No Discovery Calls Yet",description:"Upload your first discovery call to unlock AI-powered stakeholder insights and pain point analysis.",actionLabel:"Upload Call",onAction:()=>h(!0)}):s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:me.map(Y=>s.jsxs(z,{className:"hover:shadow-lg transition-shadow",children:[s.jsx(oe,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx(le,{className:"text-lg",children:Y.client_name}),Y.client_company&&s.jsx(_n,{children:Y.client_company})]}),pe(Y.analysis_status)]})}),s.jsx(V,{children:s.jsxs("div",{className:"space-y-3",children:[Y.client_industry&&s.jsx("div",{className:"text-sm text-muted-foreground",children:Y.client_industry}),Y.duration_minutes&&s.jsxs("div",{className:"text-sm flex items-center gap-1",children:[s.jsx(Sn,{className:"h-4 w-4"}),Y.duration_minutes," minutes"]}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Uploaded ",uB(new Date(Y.created_at),{addSuffix:!0})]}),s.jsxs("div",{className:"flex gap-2 pt-2",children:[Y.analysis_status==="pending"&&s.jsx(Pi,{actionType:"discoveryAnalysis",onSuccess:()=>te(Y.id),description:`Analyze call: ${Y.client_name}`,referenceId:Y.id,children:({handleAction:he,isProcessing:_e})=>s.jsx(W,{size:"sm",className:"flex-1",onClick:he,disabled:_e,children:_e?"Analyzing...":"Analyze (10 credits)"})}),Y.analysis_status==="completed"&&s.jsxs(s.Fragment,{children:[s.jsxs(W,{size:"sm",variant:"outline",className:"flex-1 gap-1",onClick:()=>n(`/portal/discovery-calls/${Y.id}`),children:[s.jsx(r$,{className:"h-3 w-3"}),"View"]}
625),Y.proposal_id?s.jsxs(W,{size:"sm",variant:"default",className:"flex-1 gap-1",onClick:()=>n(`/portal/proposals/view/${Y.proposal_id}`),children:[s.jsx(rt,{className:"h-3 w-3"}),"View Proposal"]}):s.jsxs(W,{size:"sm",variant:"default",className:"flex-1 gap-1",onClick:()=>{x(Y),v(!0)},children:[s.jsx(rt,{className:"h-3 w-3"}),"Generate"]})]}),s.jsx(W,{size:"sm",variant:"ghost",onClick:()=>F(Y.id),children:s.jsx(sh,{className:"h-4 w-4"})})]})]})})]},Y.id))})]})})]})]}),s.jsx(dB,{open:p,onOpenChange:v,userId:(e==null?void 0:e.id)||"",preselectedCompany:(y==null?void 0:y.client_company)||"",preselectedCallId:y==null?void 0:y.id})]})},oCe=()=>{const{user:e,isAdmin:t,loading:r}=qi(),n=gt(),{toast:a}=xr(),[i,o]=b.useState([]),[l,c]=b.useState([]),[u,d]=b.useState(!0),[f,h]=b.useState(""),[m,g]=b.useState(!1),[p,v]=b.useState(""),[y,x]=b.useState(""),[w,N]=b.useState(""),[j,S]=b.useState("none"),[_,P]=b.useState(!1),[k]=lh();b.useEffect(()=>{e&&C()},[e]),b.useEffect(()=>{const $=k.get("from_call");$&&l.length>0&&l.find(M=>M.id===$)&&A($)},[k,l]);const A=async $=>{var L,M,R,B,H,U;try{const{data:q,error:ee}=await ne.from("discovery_calls").select("*").eq("id",$).single();if(ee||!q)return;const de=q.analysis_result,ce=de==null?void 0:de.workflow_metadata;if(ce!=null&&ce.discussion_detected){v(ce.suggested_workflow_name||`${q.client_name} Workflow`),x(q.client_name),S($);let G="";((M=(L=ce.elements_mentioned)==null?void 0:L.process_steps)==null?void 0:M.length)>0&&(G+=`Process Steps:
626`+ce.elements_mentioned.process_steps.join(`
627`)+`
628
629`),((B=(R=ce.elements_mentioned)==null?void 0:R.pain_points)==null?void 0:B.length)>0&&(G+=`Pain Points:
630`+ce.elements_mentioned.pain_points.join(`
631`)+`
632
633`),((U=(H=ce.elements_mentioned)==null?void 0:H.systems_tools)==null?void 0:U.length)>0&&(G+=`Systems/Tools:
634`+ce.elements_mentioned.systems_tools.join(`
635`)+`
636
637`),N(G||"Workflow details from discovery call"),g(!0),a({title:"Auto-populated from Discovery Call",description:`Workflow data detected from call with ${q.client_name}`})}}catch(q){console.error("Error prepopulating workflow:",q)}},C=async()=>{if(e)try{const[$,L]=await Promise.all([ne.from("workflow_analyses").select("*").eq("user_id",e.id).order("created_at",{ascending:!1}),ne.from("discovery_calls").select("*").eq("user_id",e.id).eq("analysis_status","completed")]);if($.error)throw $.error;if(L.error)throw L.error;o($.data||[]),c(L.data||[])}catch($){console.error("Error fetching data:",$),a({title:"Error",description:"Failed to fetch workflow analyses",variant:"destructive"})}finally{d(!1)}},T=async()=>{if(e){if(!p.trim()||!y.trim()||!w.trim()){a({title:"Required fields",description:"Please fill in all required fields",variant:"destructive"});return}if(w.trim().length<50){a({title:"Description Too Short",description:"Please provide at least 50 characters describing the workflow. Include steps, roles, systems, and problems.",variant:"destructive"});return}P(!0);try{const{data:$,error:L}=await ne.from("workflow_analyses").insert({user_id:e.id,analysis_name:p,client_name:y,workflow_data:{description:w},discovery_call_id:j==="none"?null:j}).select().single();if(L)throw L;a({title:"Workflow created",description:"You can now analyze this workflow"}),v(""),x(""),N(""),S("none"),g(!1),setTimeout(()=>C(),100)}catch($){console.error("Error creating workflow:",$),a({title:"Error",description:"Failed to create workflow analysis",variant:"destructive"})}finally{P(!1)}}},E=async $=>{var L;try{const{data:M,error:R}=await ne.functions.invoke("analyze-workflow",{body:{workflow_id:$}});if(R)throw R;a({title:"Analysis started",description:"Your workflow is being analyzed. This may take a few minutes."}),C()}catch(M){console.error("Error analyzing workflow:",M);let R="Failed to analyze workflow. Please try again.",B="";(L=M==null?void 0:M.message)!=null&&L.includes("Edge Function returned a non-2xx")&&(R="The analysis service encountered an error.",B="Try providing more details about the workflow (steps, roles, systems, problems)."),a({title:"Analysis Failed",description:R+(B?" "+B:""),variant:"destructive"})}},O=async $=>{if(confirm("Are you sure you want to delete this workflow analysis?"))try{const{error:L}=await ne.from("workflow_analyses").delete().eq("id",$);if(L)throw L;a({title:"Workflow deleted",description:"Workflow analysis has been removed"}),C()}catch(L){console.error("Error deleting workflow:",L),a({title:"Error",description:"Failed to delete workflow",variant:"destructive"})}},D=i.filter($=>$.analysis_name.toLowerCase().includes(f.toLowerCase())||$.client_name.toLowerCase().includes(f.toLowerCase()));return r||u?s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Loading workflow analyses..."})]})}):s.jsx(gr,{children:s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:e,isAdmin:t}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Workflow Analyses"}),s.jsx("p",{className:"text-muted-foreground",children:"Identify inefficiencies and calculate ROI"})]})]}),s.jsxs(il,{open:m,onOpenChange:g,children:[s.jsx(s_,{asChild:!0,children:s.jsxs(W,{className:"gap-2",children:[s.jsx(wc,{className:"h-4 w-4"}),"Create Analysis"]})}),s.jsxs(zi,{className:"max-w-2xl",children:[s.jsxs(Ui,{children:[s.jsx(Wi,{children:"Create Workflow Analysis"}),s.jsx(ol,{children:"Describe the workflow you want to analyze"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"analysisName",children:"Analysis Name *"}),s.jsx(De,{id:"analysisName",value:p,onChange:$=>v($.target.value),placeholder:"Employee Onboarding Process"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"clientName",children:"Client Name *"}),s.jsx(De,{id:"clientName",value:y,onChange:$=>x($.target.value),placeholder:"Acme Corp"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"linkedCall",children:"Link to Discovery Call (Optional)"}),s.jsxs(rn,{value:j,onValueChange:S,children:[s.jsx(Fr,{children:s.jsx(nn,{placeholder:"Select a discovery call"})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"none",children:"None"}),l.map($=>s.jsxs(Ne,{value:$.id,children:[$.client_name," ",$.client_company&&`(${$.client_company})`]},$.id))]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"workflowDescription",children:"Workflow Description *"}
637),s.jsx(Eh,{id:"workflowDescription",value:w,onChange:$=>N($.target.value),placeholder:"Describe the current workflow process, including all steps, stakeholders involved, tools used, and any known pain points...",className:"min-h-[200px]"}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:["Tip: Include workflow steps, departments/roles involved, systems used, time taken, and known bottlenecks. Minimum 50 characters required for analysis.",w.length>0&&s.jsxs("span",{className:w.length<50?"text-amber-600":"text-green-600",children:[" ","(",w.length," characters)"]})]})]})]}),s.jsxs(Wx,{children:[s.jsx(W,{variant:"outline",onClick:()=>g(!1),children:"Cancel"}),s.jsx(W,{onClick:T,disabled:_,children:_?"Creating...":"Create Workflow"})]})]})]})]}),i.length>0&&s.jsx("div",{className:"flex items-center gap-4",children:s.jsxs("div",{className:"relative flex-1 max-w-sm",children:[s.jsx(au,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(De,{placeholder:"Search workflows...",value:f,onChange:$=>h($.target.value),className:"pl-10"})]})}),D.length===0&&i.length===0?s.jsx(yo,{icon:Ti,title:"No Workflow Analyses Yet",description:"Create your first workflow analysis to identify bottlenecks, inefficiencies, and calculate ROI projections.",actionLabel:"Create Analysis",onAction:()=>g(!0)}):s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:D.map($=>{const L=$.roi_projections||$.recommendations;return s.jsxs(z,{className:"hover:shadow-lg transition-shadow",children:[s.jsxs(oe,{children:[s.jsx(le,{className:"text-lg",children:$.analysis_name}),s.jsx(_n,{children:$.client_name})]}),s.jsx(V,{children:s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"text-sm text-muted-foreground",children:["Created ",uB(new Date($.created_at),{addSuffix:!0})]}),L&&$.roi_projections&&s.jsxs("div",{className:"bg-green-50 dark:bg-green-950 border border-green-200 dark:border-green-800 rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(qe,{className:"h-4 w-4 text-green-600"}),s.jsx("span",{className:"text-sm font-medium text-green-900 dark:text-green-100",children:"ROI Projection"})]}),s.jsx("div",{className:"text-lg font-bold text-green-600",children:$.roi_projections.estimated_savings||"Calculating..."})]}),s.jsxs("div",{className:"flex gap-2 pt-2",children:[!L&&s.jsx(Pi,{actionType:"workflowAnalysis",onSuccess:()=>E($.id),description:`Analyze workflow: ${$.analysis_name}`,referenceId:$.id,children:({handleAction:M,isProcessing:R})=>s.jsx(W,{size:"sm",className:"flex-1",onClick:M,disabled:R,children:R?"Analyzing...":"Analyze (15 credits)"})}),L&&s.jsxs(W,{size:"sm",variant:"outline",className:"flex-1 gap-1",onClick:()=>n(`/portal/workflows/${$.id}`),children:[s.jsx(r$,{className:"h-3 w-3"}),"View Analysis"]}),s.jsx(W,{size:"sm",variant:"ghost",onClick:()=>O($.id),children:s.jsx(sh,{className:"h-4 w-4"})})]})]})})]},$.id)})})]})})]})]})})},lCe=()=>{const{id:e}=uN(),t=gt(),{user:r,loading:n}=qi(),[a,i]=b.useState(null),[o,l]=b.useState(!0),[c,u]=b.useState(null);b.useEffect(()=>{r&&e&&d(e)},[r,e]);const d=async p=>{try{const{data:v,error:y}=await ne.from("workflow_analyses").select("*").eq("id",p).single();if(y)throw y;if(!v){u("Workflow analysis not found");return}i(v)}catch(v){console.error("Error fetching workflow:",v),u(v.message||"Failed to load workflow analysis")}finally{l(!1)}};if(n||o)return s.jsx(gr,{children:s.jsxs("div",{className:"flex min-h-screen w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1",children:[s.jsx(fs,{user:r}),s.jsx("main",{className:"container mx-auto px-4 py-8",children:s.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:s.jsx(an,{className:"h-8 w-8 animate-spin text-primary"})})})]})]})});if(c||!a)return s.jsx(gr,{children:s.jsxs("div",{className:"flex min-h-screen w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1",children:[s.jsx(fs,{user:r}),s.jsx("main",{className:"container mx-auto px-4 py-8",children:s.jsxs("div",{className:"text-center py-12",children:[s.jsx(pr,{className:"h-12 w-12 text-destructive mx-auto mb-4"}),s.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Workflow N
637ot Found"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:c||"This workflow analysis doesn't exist or you don't have access to it."}),s.jsxs(W,{onClick:()=>t("/portal/workflows"),children:[s.jsx(Us,{className:"mr-2 h-4 w-4"}),"Back to Workflows"]})]})})]})]})});const f=Array.isArray(a.bottlenecks)?a.bottlenecks:[],h=Array.isArray(a.inefficiencies)?a.inefficiencies:[],m=Array.isArray(a.recommendations)?a.recommendations:[],g=a.roi_projections||{};return s.jsx(gr,{children:s.jsxs("div",{className:"flex min-h-screen w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1",children:[s.jsx(fs,{user:r}),s.jsxs("main",{className:"container mx-auto px-4 py-8",children:[s.jsxs("div",{className:"mb-8",children:[s.jsxs(W,{variant:"ghost",onClick:()=>t("/portal/workflows"),className:"mb-4",children:[s.jsx(Us,{className:"mr-2 h-4 w-4"}),"Back to Workflows"]}),s.jsx("h1",{className:"text-3xl font-bold mb-2",children:a.analysis_name}),s.jsxs("p",{className:"text-muted-foreground",children:["Client: ",a.client_name," • Created ",new Date(a.created_at).toLocaleDateString()]})]}),a.workflow_data&&s.jsxs(z,{className:"mb-6",children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(qe,{className:"h-5 w-5"}),"Workflow Overview"]})}),s.jsx(V,{children:s.jsx("p",{className:"text-sm whitespace-pre-wrap",children:a.workflow_data})})]}),f.length>0&&s.jsxs(z,{className:"mb-6",children:[s.jsxs(oe,{children:[s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(pr,{className:"h-5 w-5 text-destructive"}),"Identified Bottlenecks (",f.length,")"]}),s.jsx(_n,{children:"Critical workflow constraints that slow down processes"})]}),s.jsx(V,{children:s.jsx("div",{className:"space-y-4",children:f.map((p,v)=>s.jsxs("div",{className:"border-l-4 border-destructive pl-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("h4",{className:"font-semibold",children:p.title||p.name||`Bottleneck ${v+1}`}),p.severity&&s.jsx(ue,{variant:p.severity==="high"?"destructive":"secondary",children:p.severity})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:p.description||p.issue}),p.impact&&s.jsxs("p",{className:"text-sm mt-2",children:[s.jsx("strong",{children:"Impact:"})," ",p.impact]})]},v))})})]}),h.length>0&&s.jsxs(z,{className:"mb-6",children:[s.jsxs(oe,{children:[s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(pr,{className:"h-5 w-5 text-warning"}),"Inefficiencies Detected (",h.length,")"]}),s.jsx(_n,{children:"Areas where processes can be optimized"})]}),s.jsx(V,{children:s.jsx("div",{className:"space-y-4",children:h.map((p,v)=>s.jsxs("div",{className:"border-l-4 border-warning pl-4",children:[s.jsx("h4",{className:"font-semibold mb-2",children:p.title||p.name||`Inefficiency ${v+1}`}),s.jsx("p",{className:"text-sm text-muted-foreground",children:p.description||p.issue}),p.wastedTime&&s.jsxs("p",{className:"text-sm mt-2",children:[s.jsx("strong",{children:"Time Wasted:"})," ",p.wastedTime]}),p.impact&&s.jsxs("p",{className:"text-sm mt-1",children:[s.jsx("strong",{children:"Impact:"})," ",p.impact]})]},v))})})]}),m.length>0&&s.jsxs(z,{className:"mb-6",children:[s.jsxs(oe,{children:[s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(nh,{className:"h-5 w-5 text-primary"}),"Recommendations (",m.length,")"]}),s.jsx(_n,{children:"Actionable steps to improve workflow efficiency"})]}),s.jsx(V,{children:s.jsx("div",{className:"space-y-4",children:m.map((p,v)=>s.jsxs("div",{className:"border-l-4 border-primary pl-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx("h4",{className:"font-semibold",children:p.title||p.name||`Recommendation ${v+1}`}),p.priority&&s.jsxs(ue,{variant:p.priority==="high"?"default":"outline",children:[p.priority," priority"]})]}),s.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:p.description||p.action}),p.expectedImpact&&s.jsxs("p",{className:"text-sm",children:[s.jsx("strong",{children:"Expected Impact:"})," ",p.expectedImpact]}),p.implementation&&s.jsxs("p",{className:"text-sm mt-1",children:[s.jsx("strong",{children:"Implementation:"})," ",p.implementation]})]},v))})})]}),Object.keys(g).length>0&&s.jsxs(z,{className:"mb-6",children:[s.jsxs(oe,{children:[s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(V1,{className:"h-5 w-5 text-success"}),"ROI Projections"]}),s.jsx(_n,{children:"Estimated financial impact of implementing recommendations"})]}),s.jsxs(V,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[g.estimatedSavings&&s.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Estimated Savings"}),s.jsx("p",{className:"text-2xl font-bold",children:g.estimatedSavings})]}),g.timeSaved&&s.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Time Saved"}),s.jsx("p",{className:"text-2xl font-bold",children:g.timeSaved})]}
637),g.efficiencyGain&&s.jsxs("div",{className:"p-4 bg-muted rounded-lg",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Efficiency Gain"}),s.jsx("p",{className:"text-2xl font-bold",children:g.efficiencyGain})]})]}),g.breakdown&&s.jsxs("div",{className:"mt-4",children:[s.jsx(qx,{className:"my-4"}),s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:g.breakdown})]})]})]})]})]})]})})},cCe=()=>{const{user:e,isAdmin:t,loading:r}=qi();gt();const{toast:n}=xr(),[a,i]=b.useState([]),[o,l]=b.useState(!0),[c,u]=b.useState(""),[d,f]=b.useState("influence"),[h,m]=b.useState("all"),[g,p]=b.useState("cards"),[v,y]=b.useState(!1),[x,w]=b.useState({name:"",title:"",client_company:"",department:"",seniority:"mid",influence:"5",interest:"5",role:"neutral",personality:"Analytical",decision_maker:!1,notes:""});b.useEffect(()=>{e&&N()},[e]);const N=async()=>{if(e)try{const{data:E,error:O}=await ne.from("stakeholders").select("*").eq("user_id",e.id).order("created_at",{ascending:!1});if(O)throw O;i(E||[])}catch(E){console.error("Error fetching stakeholders:",E),n({title:"Error",description:"Failed to fetch stakeholders",variant:"destructive"})}finally{l(!1)}},j=async()=>{if(e){if(!x.name.trim()||!x.title.trim()||!x.client_company.trim()){n({title:"Required fields",description:"Please fill in name, title, and company",variant:"destructive"});return}try{const{error:E}=await ne.from("stakeholders").insert({user_id:e.id,name:x.name,title:x.title,client_company:x.client_company,department:x.department||null,seniority:x.seniority,influence:parseInt(x.influence),interest:parseInt(x.interest),role:x.role,personality:x.personality||null,decision_maker:x.decision_maker,notes:x.notes||null});if(E)throw E;n({title:"Stakeholder added",description:"New stakeholder has been added successfully"}),w({name:"",title:"",client_company:"",department:"",seniority:"mid",influence:"5",interest:"5",role:"neutral",personality:"Analytical",decision_maker:!1,notes:""}),y(!1),N()}catch(E){console.error("Error adding stakeholder:",E),n({title:"Error",description:"Failed to add stakeholder",variant:"destructive"})}}},S=async E=>{if(confirm("Are you sure you want to delete this stakeholder?"))try{const{error:O}=await ne.from("stakeholders").delete().eq("id",E);if(O)throw O;n({title:"Stakeholder deleted",description:"Stakeholder has been removed"}),N()}catch(O){console.error("Error deleting stakeholder:",O),n({title:"Error",description:"Failed to delete stakeholder",variant:"destructive"})}},_=E=>{switch(E){case"champion":return"bg-green-100 text-green-700 border-green-300";case"ambassador":return"bg-blue-100 text-blue-700 border-blue-300";case"neutral":return"bg-gray-100 text-gray-700 border-gray-300";case"skeptical":return"bg-orange-100 text-orange-700 border-orange-300";case"blocker":return"bg-red-100 text-red-700 border-red-300";default:return"bg-gray-100 text-gray-700 border-gray-300"}},P=E=>E.split(" ").map(O=>O[0]).join("").toUpperCase(),k=E=>{if(!E)return"bg-gray-50 text-gray-600";switch(E.toLowerCase()){case"analytical":return"bg-blue-50 text-blue-600";case"assertive":return"bg-purple-50 text-purple-600";case"curious":return"bg-yellow-50 text-yellow-600";case"enthusiastic":return"bg-green-50 text-green-600";default:return"bg-gray-50 text-gray-600"}},A=a.filter(E=>E.name.toLowerCase().includes(c.toLowerCase())||E.title.toLowerCase().includes(c.toLowerCase())||E.client_company.toLowerCase().includes(c.toLowerCase())).filter(E=>h==="all"||E.role===h).sort((E,O)=>{switch(d){case"influence":return(O.influence||0)-(E.influence||0);case"interest":return(O.interest||0)-(E.interest||0);case"name":return E.name.localeCompare(O.name);default:return 0}}),C=A.reduce((E,O)=>{const D=O.role||"neutral";return E[D]=(E[D]||0)+1,E},{}),T=A.filter(E=>E.decision_maker);return r||o?s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Loading stakeholders..."})]})}):s.jsx(gr,{children:s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:e,isAdmin:t}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ws,{}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Stakeholders"}),s.jsxs(ue,{variant:"secondary",className:"gap-1 mt-1",children:[s.jsx(bt,{className:"h-3 w-3"}),a.length," Stakeholders mapped, ",C.champion||0," Champions, ",C.skeptical||0," Skeptical"]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(W,{variant:"outline",size:"sm",className:"gap-2",onClick:()=>p(g==="cards"?"map":"cards"),children:g==="cards"?s.jsxs(s.Fragment,{children:[s.jsx(bc,{className:"h-4 w-4"}),"View Power/Interest Map"]}):s.jsxs(s.Fragment,{children:[s.jsx(n$,{className:"h-4 w-4"}),"View as Cards"]})}),s.jsxs(il,{open:v,onOpenChange:y,children:[s.jsx(s_,{asChild:!0,children:s.jsxs(W,{size:"sm",className:"gap-2",children:[s.jsx(wc,{className:"h-4 w-4"}),"Add Stakeholder"]})}),s.jsxs(zi,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[s.jsxs(Ui,{children:[s.jsx(Wi,{children:"Add Stakeholder"}),s.jsx(ol,{children:"Add a new stakeholder to track their influence and engagement"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"name",children:"Name *"}),s.jsx(De,{id:"name",value:x.name,onChange:E=>w({...x,name:E.target.value}),placeholder:"John Doe"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"title",children:"Title *"}),s.jsx(De,{id:"title",value:x.title,onChange:E=>w({...x,title:E.target.value}),placeholder:"VP of Operations"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"company",children:"Company *"}),s.jsx(De,{id:"company",value:x.client_company,onChange:E=>w({...x,client_company:E.target.value}),placeholder:"Acme Corp"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"department",children:"Department"}),s.jsx(De,{id:"department",value:x.department,onChange:E=>w({...x,department:E.target.value}),placeholder:"Operations"})]})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"seniority",children:"Seniority"}),s.jsxs(rn,{value:x.seniority,onValueChange:E=>w({...x,seniority:E}),children:[s.jsx(Fr,{children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"junior",children:"Junior"}),s.jsx(Ne,{value:"mid",children:"Mid"}),s.jsx(Ne,{value:"senior",children:"Senior"}),s.jsx(Ne,{value:"executive",children:"Executive"})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"role",children:"Role"}),s.jsxs(rn,{value:x.role,onValueChange:E=>w({...x,role:E}),children:[s.jsx(Fr,{children:s.jsx(nn,{})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"champion",children:"Champion"}),s.jsx(Ne,{value:"ambassador",children:"Ambassador"}),s.jsx(Ne,{value:"neutral",children:"Neutral"}),s.jsx(Ne,{value:"skeptical",children:"Skeptical"}),s.jsx(Ne,{value:"blocker",children:"Blocker"})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"personality",children:"Personality"}),s.jsxs(rn,{value:x.personality,onValueChange:E=>w({...x,personality:E}),children:[s.jsx(Fr,{children:s.jsx(nn,{placeholder:"Select personality type"})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"Analytical",children:"Analytical"}),s.jsx(Ne,{value:"Assertive",children:"Assertive"}),s.jsx(Ne,{value:"Curious",children:"Curious"}),s.jsx(Ne,{value:"Enthusiastic",children:"Enthusiastic"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"influence",children:"Influence (1-10)"}),s.jsx(De,{id:"influence",type:"number",min:"1",max:"10",value:x.influence,onChange:E=>w({...x,influence:E.target.value})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"interest",children:"Interest (1-10)"}),s.jsx(De,{id:"interest",type:"number",min:"1",max:"10",value:x.interest,onChange:E=>w({...x,interest:E.target.value})})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(je,{htmlFor:"notes",children:"Notes"}
637),s.jsx(Eh,{id:"notes",value:x.notes,onChange:E=>w({...x,notes:E.target.value}),placeholder:"Additional information about this stakeholder..."})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("input",{type:"checkbox",id:"decision_maker",checked:x.decision_maker,onChange:E=>w({...x,decision_maker:E.target.checked}),className:"rounded"}),s.jsx(je,{htmlFor:"decision_maker",className:"cursor-pointer",children:"Decision Maker"})]})]}),s.jsxs(Wx,{children:[s.jsx(W,{variant:"outline",onClick:()=>y(!1),children:"Cancel"}),s.jsx(W,{onClick:j,children:"Add Stakeholder"})]})]})]})]})]}),s.jsxs("div",{className:"grid lg:grid-cols-4 gap-6",children:[s.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[a.length>0&&s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative flex-1 max-w-sm",children:[s.jsx(au,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(De,{placeholder:"Search stakeholders...",value:c,onChange:E=>u(E.target.value),className:"pl-10"})]}),s.jsxs(rn,{value:d,onValueChange:f,children:[s.jsx(Fr,{className:"w-[180px]",children:s.jsx(nn,{placeholder:"Sort by"})}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"influence",children:"Influence"}),s.jsx(Ne,{value:"interest",children:"Interest"}),s.jsx(Ne,{value:"name",children:"Name"})]})]}),s.jsxs(rn,{value:h,onValueChange:m,children:[s.jsxs(Fr,{className:"w-[150px]",children:[s.jsx(H1,{className:"h-4 w-4 mr-2"}),s.jsx(nn,{placeholder:"Filter by role"})]}),s.jsxs(Br,{children:[s.jsx(Ne,{value:"all",children:"All Roles"}),s.jsx(Ne,{value:"champion",children:"Champion"}),s.jsx(Ne,{value:"ambassador",children:"Ambassador"}),s.jsx(Ne,{value:"neutral",children:"Neutral"}),s.jsx(Ne,{value:"skeptical",children:"Skeptical"}),s.jsx(Ne,{value:"blocker",children:"Blocker"})]})]})]}),A.length===0&&a.length===0?s.jsx(yo,{icon:bt,title:"No Stakeholders Yet",description:"Add stakeholders to track their influence, interest, and engagement levels across your accounts.",actionLabel:"Add Stakeholder",onAction:()=>y(!0)}):g==="cards"?s.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-4",children:A.map(E=>s.jsx(z,{className:"hover:shadow-md transition-shadow",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-sm font-medium text-primary",children:P(E.name)})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium",children:E.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:E.title})]})]}),s.jsx(W,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:()=>S(E.id),children:s.jsx(sh,{className:"h-4 w-4"})})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:E.client_company}),s.jsxs("div",{className:"flex gap-2",children:[E.role&&s.jsx(ue,{variant:"outline",className:`text-xs capitalize ${_(E.role)}`,children:E.role}),E.personality&&s.jsx(ue,{variant:"secondary",className:`text-xs ${k(E.personality)}`,children:E.personality})]}),E.influence!==null&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[s.jsx("span",{children:"Influence"}),s.jsxs("span",{children:[E.influence,"/10"]})]}),s.jsx(vs,{value:E.influence*10,className:"h-2"})]}),E.interest!==null&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[s.jsx("span",{children:"Interest"}),s.jsxs("span",{children:[E.interest,"/10"]})]}),s.jsx(vs,{value:E.interest*10,className:"h-2"})]}),E.notes&&s.jsxs("p",{className:"text-xs text-muted-foreground italic",children:['"',E.notes,'"']}),s.jsxs("div",{className:"flex gap-2 pt-2",children:[s.jsxs(W,{variant:"outline",size:"sm",className:"flex-1 gap-1",children:[s.jsx(rt,{className:"h-3 w-3"}),"Add to Proposal"]}),s.jsxs(W,{variant:"outline",size:"sm",className:"flex-1 gap-1",children:[s.jsx(a$,{className:"h-3 w-3"}),"Message Strategy"]}
637)]})]})]})},E.id))}):s.jsx(wv,{children:s.jsxs(z,{className:"min-h-[600px]",children:[s.jsx(oe,{children:s.jsxs(le,{className:"flex items-center gap-2",children:[s.jsx(bc,{className:"h-5 w-5"}),"Interest–Influence Map"]})}),s.jsx(V,{children:s.jsxs("div",{className:"relative w-full h-[500px] border border-gray-200 rounded-lg bg-gradient-to-br from-gray-50 to-white",children:[s.jsx("div",{className:"absolute -bottom-6 left-1/2 transform -translate-x-1/2 text-sm font-medium text-gray-600",children:"Interest →"}),s.jsx("div",{className:"absolute -left-16 top-1/2 transform -translate-y-1/2 -rotate-90 text-sm font-medium text-gray-600",children:"Influence →"}),s.jsx("div",{className:"absolute top-1/2 left-0 right-0 h-px bg-gray-300"}),s.jsx("div",{className:"absolute top-0 bottom-0 left-1/2 w-px bg-gray-300"}),s.jsx("div",{className:"absolute top-2 left-2 text-xs text-gray-500 font-medium",children:"Monitor Only"}),s.jsx("div",{className:"absolute top-2 right-2 text-xs text-green-600 font-medium",children:"Champions / Priority 🟢"}),s.jsx("div",{className:"absolute bottom-2 left-2 text-xs text-blue-600 font-medium",children:"Supporters / Ambassadors 🔵"}),s.jsx("div",{className:"absolute bottom-2 right-2 text-xs text-red-600 font-medium",children:"Potential Blockers 🔴"}),A.map(E=>{const O=(E.interest||5)/10*100,D=100-(E.influence||5)/10*100;return s.jsxs(iN,{children:[s.jsx(oN,{asChild:!0,children:s.jsx("div",{className:`absolute w-6 h-6 rounded-full border-2 border-white shadow-lg cursor-pointer transform -translate-x-1/2 -translate-y-1/2 transition-all hover:scale-125 hover:z-10 ${E.role==="champion"?"bg-green-500":E.role==="ambassador"?"bg-blue-500":E.role==="neutral"?"bg-gray-400":E.role==="skeptical"?"bg-orange-500":"bg-red-500"}`,style:{left:`${O}%`,top:`${D}%`},children:s.jsx("div",{className:"w-full h-full rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-[8px] font-bold text-white",children:P(E.name)})})})}),s.jsx(jv,{children:s.jsxs("div",{className:"text-xs",children:[s.jsx("p",{className:"font-semibold",children:E.name}),s.jsx("p",{className:"text-muted-foreground",children:E.title}),s.jsxs("p",{className:"mt-1",children:["Influence: ",E.influence,"/10"]}),s.jsxs("p",{children:["Interest: ",E.interest,"/10"]})]})})]},E.id)})]})})]})})]}),a.length>0&&s.jsx("div",{className:"space-y-4",children:s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{className:"text-base",children:"Stakeholder Insights"})}),s.jsxs(V,{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-medium mb-3",children:"Alignment Overview"}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"}),"Champions"]}),s.jsx("span",{className:"font-medium",children:C.champion||0})]}),s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-3 h-3 bg-gray-400 rounded-full"}),"Neutral"]}),s.jsx("span",{className:"font-medium",children:C.neutral||0})]}),s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-3 h-3 bg-orange-500 rounded-full"}),"Skeptical"]}),s.jsx("span",{className:"font-medium",children:C.skeptical||0})]})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-medium mb-2",children:"Engagement Focus"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:C.champion>C.skeptical?"Strong champion network. Focus on expanding influence to neutral stakeholders.":"High skeptic count. Prioritize relationship building and address concerns with key influencers."})]}),T.length>0&&s.jsxs("div",{children:[s.jsxs("h4",{className:"text-sm font-medium mb-3 flex items-center gap-2",children:[s.jsx(Xl,{className:"h-4 w-4"}),"Decision Makers"]}),s.jsx("div",{className:"space-y-2",children:T.map(E=>
637s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsx("div",{className:"w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-[10px] font-medium text-primary",children:P(E.name)})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"font-medium truncate",children:E.name}),s.jsx("p",{className:"text-muted-foreground truncate",children:E.title})]})]},E.id))})]})]})]})})]})]})})]})]})})},uCe=()=>{var P,k,A,C,T,E,O,D,$;const{id:e}=uN(),t=gt(),{user:r,isAdmin:n,loading:a}=qi(),{toast:i}=xr(),[o,l]=b.useState(null),[c,u]=b.useState(!0),[d,f]=b.useState(!1),[h,m]=b.useState(!1),[g,p]=b.useState("discoveries");b.useEffect(()=>{r&&e&&v()},[r,e]);const v=async()=>{if(!(!r||!e))try{const{data:L,error:M}=await ne.from("discovery_calls").select("*").eq("id",e).eq("user_id",r.id).single();if(M)throw M;l(L)}catch(L){console.error("Error fetching call:",L),i({title:"Error",description:"Failed to fetch discovery call",variant:"destructive"})}finally{u(!1)}},y=async()=>{if(e){f(!0);try{await ne.from("discovery_calls").update({analysis_status:"processing"}).eq("id",e),v();const{data:L,error:M}=await ne.functions.invoke("analyze-discovery-call",{body:{call_id:e}});if(M)throw M;i({title:"Analysis completed",description:"Your discovery call has been analyzed successfully."}),v()}catch(L){console.error("Error analyzing call:",L),i({title:"Analysis failed",description:L.message||"Failed to analyze discovery call",variant:"destructive"})}finally{f(!1)}}},x=async()=>{if(!(!e||!confirm("Are you sure you want to delete this discovery call?")))try{const{error:L}=await ne.from("discovery_calls").delete().eq("id",e);if(L)throw L;i({title:"Call deleted",description:"Discovery call has been removed"}),t("/portal/discovery-calls")}catch(L){console.error("Error deleting call:",L),i({title:"Error",description:"Failed to delete call",variant:"destructive"})}},w=L=>{switch(L){case"pending":return s.jsxs(ue,{variant:"secondary",children:[s.jsx(Sn,{className:"h-3 w-3 mr-1"}),"Pending"]});case"processing":return s.jsxs(ue,{variant:"secondary",children:[s.jsx(Sn,{className:"h-3 w-3 mr-1 animate-spin"}),"Processing"]});case"completed":return s.jsxs(ue,{variant:"default",className:"bg-green-600",children:[s.jsx(Yl,{className:"h-3 w-3 mr-1"}),"Completed"]});case"failed":return s.jsxs(ue,{variant:"destructive",children:[s.jsx(As,{className:"h-3 w-3 mr-1"}),"Failed"]});default:return s.jsx(ue,{variant:"outline",children:L})}},N=L=>{switch(L){case"challenge":return"text-destructive bg-destructive/10";case"outcome":return"text-green-600 bg-green-50 dark:bg-green-950";case"opportunity":return"text-primary bg-primary/10";default:return"text-muted-foreground bg-muted"}},j=L=>{if(!L)return[];const M=/^(.+?)\s*\[?(\d{1,2}:\d{2}(?::\d{2})?)\]?\s*:?\s*(.+)$/,R=/^(.+?):\s*(.+)$/,B=L.split(/\n+/).filter(U=>U.trim()),H=[];for(let U=0;U<B.length;U++){const q=B[U].trim(),ee=q.match(M),de=q.match(R);if(ee){const ce=ee[3].trim();let G="default",ie=null;ce.match(/challenge|problem|issue|struggling|difficult/i)?(G="challenge",ie="Challenge identified"):ce.match(/goal|objective|outcome|target|achieve/i)?(G="outcome",ie="Goal stated"):ce.match(/opportunity|could|automate|improve|optimize/i)&&(G="opportunity",ie="Opportunity"),H.push({speaker:ee[1].trim(),time:ee[2],text:ce,type:G,tag:ie})}else if(de){const ce=de[2].trim();let G="default",ie=null;ce.match(/challenge|problem|issue|struggling|difficult/i)?(G="challenge",ie="Challenge identified"):ce.match(/goal|objective|outcome|target|achieve/i)?(G="outcome",ie="Goal stated"):ce.match(/opportunity|could|automate|improve|optimize/i)&&(G="opportunity",ie="Opportunity"),H.push({speaker:de[1].trim(),time:`00:${String(Math.floor(U*.5)).padStart(2,"0")}`,text:ce,type:G,tag:ie})}else{const ce=q;let G="default",ie=null;ce.match(/challenge|problem|issue|struggling|difficult/i)?(G="challenge",ie="Challenge identified"):ce.match(/goal|objective|outcome|target|achieve/i)?(G="outcome",ie="Goal stated"):ce.match(/opportunity|could|automate|improve|optimize/i)&&(G="opportunity",ie="Opportunity"),H.push({speaker:"Speaker",time:`00:${String(Math.floor(U*.5)).padStart(2,"0")}`,text:ce,type:G,tag:ie})}}return H},S=(L,M)=>
637j(L).filter(B=>B.tag!==null).slice(0,10);if(a||c)return s.jsx("div",{className:"min-h-screen flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"Loading analysis..."})]})});if(!o)return s.jsx(gr,{children:s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:r,isAdmin:n}),s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx(As,{className:"h-12 w-12 mx-auto text-muted-foreground"}),s.jsx("h2",{className:"text-2xl font-bold",children:"Call Not Found"}),s.jsx("p",{className:"text-muted-foreground",children:"This discovery call doesn't exist or you don't have access to it."}),s.jsxs(W,{onClick:()=>t("/portal/discovery-calls"),children:[s.jsx(Us,{className:"h-4 w-4 mr-2"}),"Back to Calls"]})]})})]})]})});const _=o.analysis_result;return s.jsx(gr,{children:s.jsxs("div",{className:"min-h-screen flex w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:r,isAdmin:n}),s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs("div",{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx("div",{className:"space-y-1",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(W,{variant:"ghost",size:"sm",onClick:()=>t("/portal/discovery-calls"),children:s.jsx(Us,{className:"h-4 w-4"})}),s.jsx(ws,{}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:o.client_name}),s.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[o.client_company&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(FU,{className:"h-4 w-4"}),o.client_company]}),o.call_date&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(e$,{className:"h-4 w-4"}),new Date(o.call_date).toLocaleDateString()]}),o.duration_minutes&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Sn,{className:"h-4 w-4"}),o.duration_minutes," min"]})]})]})]})}),s.jsxs("div",{className:"flex items-center gap-2",children:[w(o.analysis_status),o.analysis_status==="pending"&&s.jsx(Pi,{actionType:"discoveryAnalysis",onSuccess:y,description:`Analyze call: ${o.client_name}`,referenceId:o.id,children:({handleAction:L,isProcessing:M})=>s.jsxs(W,{size:"sm",onClick:L,disabled:M||d,children:[s.jsx(o$,{className:"h-4 w-4 mr-2"}),M||d?"Analyzing...":"Analyze (10 credits)"]})}),o.analysis_status==="completed"&&s.jsxs(W,{size:"sm",variant:"outline",children:[s.jsx(rh,{className:"h-4 w-4 mr-2"}),"Export"]}),s.jsx(W,{size:"sm",variant:"outline",onClick:x,children:s.jsx(sh,{className:"h-4 w-4"})})]})]}),o.analysis_status==="pending"&&s.jsx(z,{className:"border-yellow-200 bg-yellow-50",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Sn,{className:"h-5 w-5 text-yellow-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-yellow-900",children:"Analysis Not Started"}),s.jsx("p",{className:"text-sm text-yellow-700",children:'Click "Analyze" to extract stakeholders, pain points, and opportunities from this call.'})]})]})})}),o.analysis_status==="processing"&&s.jsx(z,{className:"border-blue-200 bg-blue-50",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-blue-900",children:"Analysis in Progress"}),s.jsx("p",{className:"text-sm text-blue-700",children:"AI is analyzing your discovery call. This typically takes 30-60 seconds."})]})]})})}),o.analysis_status==="failed"&&s.jsx(z,{className:"border-red-200 bg-red-50",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(As,{className:"h-5 w-5 text-red-600 mt-0.5"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-red-900",children:"Analysis Failed"}),s.jsx("p",{className:"text-sm text-red-700",children:"Something went wrong during analysis. Please try again."})]})]})})}),o.analysis_status==="completed"&&((P=_==null?void 0:_.workflow_metadata)==null?void 0:P.discussion_detected)&&s.jsx(z,{className:"border-blue-200 bg-blue-50 dark:bg-blue-950 dar
637k:border-blue-800",children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Ti,{className:"h-5 w-5 text-blue-600 mt-0.5"}),s.jsxs("div",{className:"flex-1",children:[s.jsx("p",{className:"font-medium text-blue-900 dark:text-blue-100",children:"Workflow Discussion Detected"}),s.jsxs("p",{className:"text-sm text-blue-700 dark:text-blue-300 mt-1",children:["This call contains a ",_.workflow_metadata.completeness," discussion of a workflow process.",_.workflow_metadata.suggested_workflow_name&&` Suggested: "${_.workflow_metadata.suggested_workflow_name}"`]}),_.workflow_metadata.next_step_recommendation&&s.jsxs("p",{className:"text-sm text-blue-700 dark:text-blue-300 mt-2",children:["💡 ",_.workflow_metadata.next_step_recommendation]})]}),s.jsx(W,{size:"sm",onClick:()=>t(`/portal/workflows?from_call=${o.id}`),children:"Create Workflow Analysis"})]})})}),o.analysis_status==="completed"&&_&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h2",{className:"text-xl font-semibold",children:"Quick Insights Overview"}),s.jsx(ue,{variant:"outline",children:"Visual Summary"})]}),s.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 min-h-[600px]",children:[s.jsxs(z,{className:"h-full flex flex-col",children:[s.jsx(oe,{className:"pb-4",children:s.jsx(le,{className:"text-lg",children:"Call Recording & Transcript"})}),s.jsxs(V,{className:"space-y-4 flex-1 overflow-hidden",children:[o.video_url?s.jsxs("video",{controls:!0,className:"w-full aspect-video rounded-lg bg-slate-900",children:[s.jsx("source",{src:o.video_url}),"Your browser does not support the video tag."]}):s.jsxs("div",{className:"bg-slate-900 rounded-lg p-4 aspect-video flex items-center justify-center relative",children:[s.jsxs("div",{className:"text-white text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mb-2 mx-auto",children:h?s.jsx(Gd,{className:"h-8 w-8"}):s.jsx(Ro,{className:"h-8 w-8"})}),s.jsx("p",{className:"text-sm opacity-80",children:"Discovery Call Recording"})]}),s.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:s.jsxs("div",{className:"flex items-center gap-3 text-white",children:[s.jsx(W,{size:"sm",variant:"ghost",className:"h-8 w-8 p-0 text-white hover:bg-white/20",onClick:()=>m(!h),children:h?s.jsx(Gd,{className:"h-4 w-4"}):s.jsx(Ro,{className:"h-4 w-4"})}),s.jsx("span",{className:"text-sm",children:"0:00"}),s.jsx("div",{className:"flex-1 h-1 bg-white/30 rounded-full",children:s.jsx("div",{className:"h-1 bg-primary rounded-full w-1/4"})}),s.jsxs("span",{className:"text-sm",children:[o.duration_minutes||35,":00"]}),s.jsx(f$,{className:"h-4 w-4"})]})})]}),s.jsxs("div",{className:"space-y-3 max-h-[400px] overflow-y-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{className:"font-medium",children:"Tagged transcript"}),s.jsxs(W,{variant:"outline",size:"sm",className:"gap-2",onClick:()=>{navigator.clipboard.writeText(o.transcript_content||""),i({title:"Copied to clipboard"})},children:[s.jsx(W1,{className:"h-4 w-4"}),"Copy transcript"]})]}),S(o.transcript_content||"").map((L,M)=>s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ue,{variant:"outline",className:"text-xs",children:L.speaker}),s.jsx("span",{className:"text-xs text-muted-foreground",children:L.time}),L.tag&&s.jsx(ue,{className:`text-xs ${N(L.type)}`,children:L.tag})]}),s.jsx("p",{className:"text-sm leading-relaxed pl-4 border-l-2 border-muted",children:L.text})]},M)),S(o.transcript_content||"").length===0&&s.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No tagged insights found in transcript"})]})]})]}),s.jsxs(z,{className:"h-full flex flex-col",children:[s.jsx(oe,{className:"pb-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(le,{className:"text-lg",children:"AI-Generated Insights"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(ue,{variant:g==="discoveries"?"default":"outline",className:"gap-1 cursor-pointer",onClick:()=>p("discoveries"),children:[s.jsx(As,{className:"h-3 w-3"}),"Discoveries"]}),s.jsxs(ue,{variant:g==="analytics"?"default":"outline",className:"gap-1 cursor-pointer",onClick:()=>p("analytics"),children:[s.jsx(qe,{className:"h-3 w-3"}),"Analytics"]})]})]})}),s.jsx(V,{className:"flex-1 overflow-y-auto",children:g==="discoveries"?s.jsxs(gs,{defaultValue:"lean-thinking",className:"h-full",children:[s.jsxs(In,{className:"grid w-full grid-cols-3",children:[s.jsx(Ve,{value:"lean-thinking",children:"Lean Thinking"}),s.jsx(Ve,{value:"change-management",children:"Change Mgmt"}),s.jsx(Ve,{value:"recommendations",children:"Actions"})]}
637),s.jsx(He,{value:"lean-thinking",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"border-l-4 border-l-green-500 bg-green-50/50 dark:bg-green-950/20",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-green-100 dark:bg-green-900 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-green-600 dark:text-green-400 text-xs font-bold",children:"✓"})}),s.jsx("h4",{className:"font-semibold text-green-700 dark:text-green-400",children:"Strength"})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:((k=_.strengths)==null?void 0:k[0])||"Clear understanding of current challenges and pain points"})]})}),(_==null?void 0:_.pain_points)&&_.pain_points.length>0&&s.jsx(z,{className:"border-l-4 border-l-red-500 bg-red-50/50 dark:bg-red-950/20",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center",children:s.jsx(As,{className:"h-3 w-3 text-red-600 dark:text-red-400"})}),s.jsx("h4",{className:"font-semibold text-red-700 dark:text-red-400",children:"Top Challenges"})]}),s.jsx("div",{className:"space-y-2",children:_.pain_points.slice(0,3).map((L,M)=>s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx("span",{className:"text-red-600 dark:text-red-400 mt-0.5",children:"•"}),s.jsxs("p",{className:"text-sm text-muted-foreground flex-1",children:[s.jsxs("strong",{children:[L.category,":"]})," ",L.description,L.severity&&` (${L.severity} severity)`]})]},M))})]})}),s.jsx(z,{className:"border-l-4 border-l-orange-500 bg-orange-50/50 dark:bg-orange-950/20",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-orange-100 dark:bg-orange-900 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-orange-600 dark:text-orange-400 text-xs",children:"🏁"})}),s.jsx("h4",{className:"font-semibold text-orange-700 dark:text-orange-400",children:"Growth Area"})]}),s.jsx("div",{className:"space-y-3",children:((A=_.opportunities)==null?void 0:A.map((L,M)=>s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium text-sm mb-1",children:L.title||L.opportunity}),s.jsx("p",{className:"text-sm text-muted-foreground",children:L.description||L.impact})]},M)))||s.jsx("p",{className:"text-sm text-muted-foreground",children:"Implement automated processes to streamline operations"})})]})})]})}),s.jsx(He,{value:"change-management",className:"space-y-4 mt-4",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx(z,{className:"border-l-4 border-l-green-500 bg-green-50/50 dark:bg-green-950/20",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-green-100 dark:bg-green-900 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-green-600 dark:text-green-400 text-xs font-bold",children:"✓"})}),s.jsx("h4",{className:"font-semibold text-green-700 dark:text-green-400",children:"Strength"})]}),s.jsx("h5",{className:"font-medium mb-2",children:"Stakeholder Engagement"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:(()=>{var R,B;const L=((R=_==null?void 0:_.stakeholders)==null?void 0:R.length)||0,M=((B=_==null?void 0:_.stakeholders)==null?void 0:B.map(H=>H.name).join(", "))||"None identified";return L>0?`${L} key stakeholder${L!==1?"s":""} identified: ${M}`:"No stakeholders identified yet"})()})]})}),s.jsx(z,{className:"border-l-4 border-l-orange-500 bg-orange-50/50 dark:bg-orange-950/20",children:s.jsxs(V,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("div",{className:"w-5 h-5 bg-orange-100 dark:bg-orange-900 rounded-full flex items-center justify-center",children:s.jsx("span",{className:"text-orange-600 dar
637k:text-orange-400 text-xs",children:"🏁"})}),s.jsx("h4",{className:"font-semibold text-orange-700 dark:text-orange-400",children:"Growth Area"})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Ensure alignment across all stakeholders on implementation timeline and change impact"})]})})]})}),s.jsx(He,{value:"recommendations",className:"space-y-4 mt-4",children:s.jsx("div",{className:"space-y-3",children:(()=>{const L=(_==null?void 0:_.recommendations)||(_==null?void 0:_.next_steps)||[];return L.length===0?s.jsx(z,{className:"border border-primary/20 bg-primary/5",children:s.jsx(V,{className:"p-4",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"No specific recommendations available yet. Review the detailed analysis below."})})}):L.map((M,R)=>{const B=typeof M=="string",H=B?`Action ${R+1}`:M.title||M.action||M.recommendation||`Action ${R+1}`,U=B?M:M.description||M.rationale||"";return s.jsx(z,{className:"border border-primary/20 bg-primary/5",children:s.jsx(V,{className:"p-4",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(nh,{className:"h-5 w-5 text-primary mt-0.5"}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h5",{className:"font-medium mb-1",children:H}),s.jsx("p",{className:"text-sm text-muted-foreground",children:U})]})]})})},R)})})()})})]}):s.jsxs("div",{className:"space-y-4",children:[s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{className:"text-base",children:"Overview"})}),s.jsxs(V,{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{className:"text-center p-3 bg-muted rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-destructive",children:((C=_==null?void 0:_.pain_points)==null?void 0:C.length)||0}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Challenges"})]}),s.jsxs("div",{className:"text-center p-3 bg-muted rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-green-600",children:((T=_==null?void 0:_.opportunities)==null?void 0:T.length)||0}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Opportunities"})]}),s.jsxs("div",{className:"text-center p-3 bg-muted rounded-lg",children:[s.jsx("div",{className:"text-2xl font-bold text-primary",children:((E=_==null?void 0:_.stakeholders)==null?void 0:E.length)||0}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"Stakeholders"})]})]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:_.executive_summary||"AI analysis of discovery call completed"})]})]}),_.pain_points&&_.pain_points.length>0&&s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs(le,{className:"text-base flex items-center gap-2",children:[s.jsx(As,{className:"h-4 w-4 text-destructive"}),"Top Challenges"]})}),s.jsx(V,{children:s.jsx("ul",{className:"space-y-2",children:_.pain_points.slice(0,3).map((L,M)=>s.jsxs("li",{className:"text-sm flex items-start gap-2",children:[s.jsx("span",{className:"text-destructive mt-1",children:"•"}),s.jsxs("span",{children:[s.jsxs("strong",{children:[L.category,":"]})," ",L.description]})]},M))})})]})]})})]})]})]}),s.jsx(qx,{className:"my-8"}),s.jsx("div",{className:"space-y-6",children:s.jsxs(z,{className:"h-full flex flex-col",children:[s.jsx(oe,{className:"pb-4",children:s.jsx(le,{className:"text-lg",children:"AI-Generated Insights"})}),s.jsx(V,{className:"flex-1 overflow-y-auto",children:s.jsxs(gs,{defaultValue:"overview",children:[s.jsxs(In,{className:"grid w-full grid-cols-3 mb-4",children:[s.jsx(Ve,{value:"overview",children:"Overview"}),s.jsx(Ve,{value:"stakeholders",children:"Stakeholders"}),s.jsx(Ve,{value:"painpoints",children:"Pain Points"})]}),s.jsxs(He,{value:"overview",className:"space-y-4",children:[_.executive_summary&&s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{children:"Executive Summary"})}),s.jsx(V,{children:s.jsx("p",{className:"text-muted-foreground",children:_.executive_summary})})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm font-medium",children:"Stakeholders"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:((O=_.stakeholders)==null?void 0:O.length)||0}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Key decision makers identified"})]})]}),s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm font-medium",children:"Pain Points"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:((D=_.pain_points)==null?void 0:D.length)||0}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Critical challenges discovered"})]})]}),s.jsxs(z,{children:[s.jsx(oe,{className:"pb-3",children:s.jsx(le,{className:"text-sm font-medium",children:"Opportunities"})}),s.jsxs(V,{children:[s.jsx("div",{className:"text-3xl font-bold",children:(($=_.opportunities)==null?void 0:$.length)||0}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Solution opportunities found"})]})]})]})]}),s.jsx(He,{value:"stakeholders",className:"space-y-4",children:_.stakeholders&&_.stakeholders.length>0?s.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:_.stakeholders.map((L,M)=>s.jsxs(z,{children:[s.jsx(oe,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx(le,{className:"text-lg",children:L.name}),s.jsx(_n,{children:L.role})]}),L.influence&&s.jsxs(ue,{variant:L.influence==="high"?"default":"secondary",children:[L.influence," influence"]})]})}),L.concerns&&s.jsx(V,{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:L.concerns})})]},M))}):s.jsx(z,{children:s.jsx(V,{className:"pt-6",children:s.jsx("p",{className:"text-center text-muted-foreground",children:"No stakeholders identified"})})})}),s.jsx(He,{value:"painpoints",className:"space-y-4",children:_.pain_points&&_.pain_points.length>0?s.jsx("div",{className:"space-y-3",children:_.pain_points.map((L,M)=>s.jsx(z,{children:s.jsx(V,{className:"pt-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"h-10 w-1 bg-red-500 rounded flex-shrink-0"}),s.jsxs("div",{className:"flex-1 space-y-2",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold",children:L.category||"General"}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:L.description})]}),L.severity&&s.jsx(ue,{variant:L.severity==="high"?"destructive":"secondary",children:L.severity})]}),L.business_impact&&s.jsxs("div",{className:"pt-2 border-t",children:[s.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Business Impact:"}),s.jsx("p",{className:"text-sm",children:L.business_impact})]}),L.impact&&s.jsxs("div",{className:"pt-2 border-t",children:[s.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Impact:"}),s.jsx("p",{className:"text-sm",children:L.impact})]})]})]})})},M))}):s.jsx(z,{children:s.jsx(V,{className:"pt-6",children:s.jsx("p",{className:"text-center text-muted-foreground",children:"No pain points identified"})})})})]})})]})})]})]})})]})]})})},dCe={dollar:V1,users:bt,target:Mt,zap:ba},fCe=({data:e})=>s.jsx("div",{className:"grid grid-cols-2 gap-4 my-6",children:e.map((t,r)=>{const n=t.icon&&dCe[t.icon]||Mt;return s.jsxs("div",{className:"bg-gradient-to-br from-muted/50 to-muted/20 p-4 rounded-lg border",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsx(n,{className:"w-5 h-5 text-primary"}),t.trend&&(t.trend==="up"?s.jsx(qe,{className:"w-4 h-4 text-green-500"}):t.trend==="down"?s.jsx(dv,{className:"w-4 h-4 text-red-500"}):null)]}),s.jsxs("div",{className:"space-y-1",children:[s.jsx("p",{className:"text-2xl font-bold",children:t.value}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.label}),t.change&&s.jsx("p",{className:`text-xs font-medium ${t.trend==="up"?"text-green-600":t.trend==="down"?"text-red-600":"text-muted-foreground"}`,children:t.change})]})]},r)})}),hCe=({steps:e})=>s.jsx("div",{className:"my-6 space-y-4",children:e.map((t,r)=>s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 border-2 border-primary flex items-center justify-center flex-shrink-0",children:s.jsx(Yl,{className:"w-5 h-5 text-primary"})}),r<e.length-1&&s.jsx("div",{className:"w-0.5 h-12 bg-gradient-to-b from-primary to-primary/20 my-1"})]}),s.jsxs("div",{className:"flex-1 pb-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("p",{className:"font-semibold text-sm",children:t.label}),t.duration&&s.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded",children:t.duration})]}),t.description&&s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:t.description})]})]},r))}),mCe=({data:e=[],leftLabel:t="Current",rightLabel:r="Proposed"})=>{if(!e||e.length===0)return null;const n=a=>typeof a=="boolean"?a?s.jsx(It,{className:"w-5 h-5 text-green-500 mx-auto"}):s.jsx(iu,{className:"w-5 h-5 text-muted-foreground mx-auto"}):s.jsx("span",{className:"text-sm",children:a});return s.jsx("div",{className:"my-6 overflow-hidden rounded-lg border",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{className:"bg-muted/50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-4 py-3 text-left text-xs font-semibold",children:"Feature"}),s.jsx("th",{className:"px-4 py-3 text-center text-xs font-semibold",children:t}),s.jsx("th",{className:"px-4 py-3 text-center text-xs font-semibold bg-primary/10 text-primary",children:r})]})}),s.jsx("tbody",{className:"divide-y",children:e.map((a,i)=>s.jsxs("tr",{className:"hover:bg-muted/20",children:[s.jsx("td",{className:"px-4 py-3 text-sm font-medium",children:a.feature}),s.jsx("td",{className:"px-4 py-3 text-center",children:n(a.current)}),s.jsx("td",{className:"px-4 py-3 text-center bg-primary/5",children:n(a.proposed)})]},i))})]})})}
vendor: 4,125 bytes, lines 637-643
637,pCe={light:"",dark:".dark"},fB=b.createContext(null);function hB(){const e=b.useContext(fB);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Jx=b.forwardRef(({id:e,className:t,children:r,config:n,...a},i)=>{const o=b.useId(),l=`chart-${e||o.replace(/:/g,"")}`;return s.jsx(fB.Provider,{value:{config:n},children:s.jsxs("div",{"data-chart":l,ref:i,className:J("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[s.jsx(gCe,{id:l,config:n}),s.jsx(Fs,{children:r})]})})});Jx.displayName="Chart";const gCe=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,a])=>a.theme||a.color);return r.length?s.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(pCe).map(([n,a])=>`
638${a} [data-chart=${e}] {
639${r.map(([i,o])=>{var c;const l=((c=o.theme)==null?void 0:c[n])||o.color;return l?`  --color-${i}: ${l};`:null}).join(`
640`)}
641}
642`).join(`
643`)}}):null},d_=dr,Zx=b.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:a=!1,hideIndicator:i=!1,label:o,labelFormatter:l,labelClassName:c,formatter:u,color:d,nameKey:f,labelKey:h},m)=>{const{config:g}=hB(),p=b.useMemo(()=>{var j;if(a||!(t!=null&&t.length))return null;const[y]=t,x=`${h||y.dataKey||y.name||"value"}`,w=Wj(g,y,x),N=!h&&typeof o=="string"?((j=g[o])==null?void 0:j.label)||o:w==null?void 0:w.label;return l?s.jsx("div",{className:J("font-medium",c),children:l(N,t)}):N?s.jsx("div",{className:J("font-medium",c),children:N}):null},[o,l,t,a,c,g,h]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&n!=="dot";return s.jsxs("div",{ref:m,className:J("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:p,s.jsx("div",{className:"grid gap-1.5",children:t.map((y,x)=>{const w=`${f||y.name||y.dataKey||"value"}`,N=Wj(g,y,w),j=d||y.payload.fill||y.color;return s.jsx("div",{className:J("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:u&&(y==null?void 0:y.value)!==void 0&&y.name?u(y.value,y.name,y,x,y.payload):s.jsxs(s.Fragment,{children:[N!=null&&N.icon?s.jsx(N.icon,{}):!i&&s.jsx("div",{className:J("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":v&&n==="dashed"}),style:{"--color-bg":j,"--color-border":j}}),s.jsxs("div",{className:J("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[s.jsxs("div",{className:"grid gap-1.5",children:[v?p:null,s.jsx("span",{className:"text-muted-foreground",children:(N==null?void 0:N.label)||y.name})]}),y.value&&s.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});Zx.displayName="ChartTooltip";const vCe=b.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:a},i)=>{const{config:o}=hB();return r!=null&&r.length?s.jsx("div",{ref:i,className:J("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(l=>{const c=`${a||l.dataKey||"value"}`,u=Wj(o,l,c);return s.jsxs("div",{className:J("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!t?s.jsx(u.icon,{}):s.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:l.color}}),u==null?void 0:u.label]},l.value)})}):null});
643vCe.displayName="ChartLegend";function Wj(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let a=r;return r in t&&typeof t[r]=="string"?a=t[r]:n&&r in n&&typeof n[r]=="string"&&(a=n[r]),a in e?e[a]:e[r]}const sE={primary:"hsl(var(--primary))",success:"hsl(142, 71%, 45%)",warning:"hsl(38, 92%, 50%)",danger:"hsl(0, 84%, 60%)"},xCe=({data:e,xKey:t,yKey:r,label:n,colorScheme:a="primary"})=>{if(!e||!Array.isArray(e)||e.length===0)return s.jsx("div",{className:"my-6 w-full h-64 flex items-center justify-center bg-muted/20 rounded-lg",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"No chart data available"})});if(!e.every(l=>l[t]!==void 0&&l[r]!==void 0))return s.jsx("div",{className:"my-6 w-full h-64 flex items-center justify-center bg-muted/20 rounded-lg",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Invalid chart data structure"})});const o={[r]:{label:n||r,color:sE[a]}};return s.jsx("div",{className:"my-6 w-full h-64",children:s.jsx(Jx,{config:o,children:s.jsx(Fs,{width:"100%",height:"100%",children:s.jsxs(Mx,{data:e,children:[s.jsx(pa,{strokeDasharray:"3 3",className:"stroke-muted"}),s.jsx(On,{dataKey:t,className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(An,{className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(d_,{content:s.jsx(Zx,{})}),s.jsx(Or,{dataKey:r,fill:sE[a],radius:[8,8,0,0]})]})})})})},Ab={primary:"hsl(var(--primary))",success:"hsl(142, 71%, 45%)",warning:"hsl(38, 92%, 50%)",danger:"hsl(0, 84%, 60%)"},yCe=({data:e,xKey:t,yKey:r,label:n,colorScheme:a="primary"})=>{const i={[r]:{label:n||r,color:Ab[a]}};return s.jsx("div",{className:"my-6 w-full h-64",children:s.jsx(Jx,{config:i,children:s.jsx(Fs,{width:"100%",height:"100%",children:s.jsxs(Dg,{data:e,children:[s.jsx(pa,{strokeDasharray:"3 3",className:"stroke-muted"}),s.jsx(On,{dataKey:t,className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(An,{className:"text-xs",tick:{fill:"hsl(var(--muted-foreground))"}}),s.jsx(d_,{content:s.jsx(Zx,{})}),s.jsx(is,{type:"monotone",dataKey:r,stroke:Ab[a],strokeWidth:3,dot:{fill:Ab[a],r:4}})]})})})})},Pm=["hsl(var(--primary))","hsl(142, 71%, 45%)","hsl(38, 92%, 50%)","hsl(262, 83%, 58%)","hsl(221, 83%, 53%)"],bCe=({data:e,nameKey:t,valueKey:r,label:n})=>{const a=e.reduce((i,o,l)=>(i[o[t]]={label:o[t],color:Pm[l%Pm.length]},i),{});return s.jsx("div",{className:"my-6 w-full h-64",children:s.jsx(Jx,{config:a,children:s.jsx(Fs,{width:"100%",height:"100%",children:s.jsxs(wNe,{children:[s.jsx(d_,{content:s.jsx(Zx,{})}),s.jsx(Ea,{data:e,dataKey:r,nameKey:t,cx:"50%",cy:"50%",outerRadius:80,label:!0,children:e.map((i,o)=>s.jsx(ux,{fill:Pm[o%Pm.length]},`cell-${o}`))}),s.jsx(xi,{})]})})})})},wCe=(e,t={})=>{if(!e||typeof e!="string")return null;const r=e.split(`
644`),n=[];let a=[],i=null;const o=l=>{if(a.length>0&&i){const c=i;n.push(s.jsx(c,{className:"ml-6 space-y-2 my-4",children:a.map((u,d)=>s.jsx("li",{className:"text-foreground/90",children:Ju(u)},d))},`list-${l}`)),a=[],i=null}};return r.forEach((l,c)=>{const u=l.trim();u.startsWith("### ")?(o(c),n.push(s.jsx("h3",{className:"text-2xl font-bold mt-6 mb-3",children:Ju(u.substring(4))},c))):u.startsWith("## ")?(o(c),n.push(s.jsx("h2",{className:"text-3xl font-bold mt-8 mb-4",children:Ju(u.substring(3))},c))):u.startsWith("# ")?(o(c),n.push(s.jsx("h1",{className:"text-4xl font-bold mt-10 mb-5",children:Ju(u.substring(2))},c))):u.startsWith("- ")||u.startsWith("* ")?(i!=="ul"&&(o(c),i="ul"),a.push(u.substring(2))):/^\d+\.\s/.test(u)?(i!=="ol"&&(o(c),i="ol"),a.push(u.replace(/^\d+\.\s/,""))):u?(o(c),n.push(s.jsx("p",{className:`leading-relaxed my-3 ${t.className||"text-foreground/90"}`,children:Ju(u)},c))):o(c)}),o(r.length),s.jsx("div",{className:"space-y-2",children:n})},Ju=e=>{const t=[];let r=0,n=0;const a=/(\*\*\*(.+?)\*\*\*|\*\*(.+?)\*\*|\*(.+?)\*)/g;let i;for(;(i=a.exec(e))!==null;)i.index>r&&t.push(e.substring(r,i.index)),i[2]?t.push(s.jsx("strong",{children:s.jsx("em",{children:i[2]})},n++)):i[3]?t.push(s.jsx("strong",{children:i[3]},n++)):i[4]&&t.push(s.jsx("em",{children:i[4]},n++)),r=i.index+i[0].length;return r<e.length&&t.push(e.substring(r)),t.length>0?s.jsx(s.Fragment,{children:t}):e}
644,jCe=()=>{const{id:e}=uN(),t=gt(),{user:r,loading:n}=qi(),{toast:a}=xr(),[i,o]=b.useState(!0),[l,c]=b.useState(""),[u,d]=b.useState(""),[f,h]=b.useState([]),[m,g]=b.useState([]),[p,v]=b.useState([]),[y,x]=b.useState(0),[w,N]=b.useState();b.useEffect(()=>{r&&e&&j()},[r,e]),b.useEffect(()=>{w&&w.on("select",()=>{x(w.selectedScrollSnap())})},[w]);const j=async()=>{try{o(!0);const{data:k,error:A}=await ne.from("proposals").select("*").eq("id",e).single();if(A)throw A;c(k.proposal_title),d(k.client_name);const C=Array.isArray(k.slides)?k.slides:[];h(C);const{data:T,error:E}=await ne.from("proposal_sources").select("*").eq("proposal_id",e);if(E)throw E;if(g(T||[]),T&&T.length>0){const O=await Promise.all(T.map(async D=>{if(D.source_type==="discovery_call"){const{data:$}=await ne.from("discovery_calls").select("client_name, call_date").eq("id",D.source_id).single();return{...D,...$,name:$==null?void 0:$.client_name}}else{const{data:$}=await ne.from("workflow_analyses").select("analysis_name, created_at").eq("id",D.source_id).single();return{...D,...$,name:$==null?void 0:$.analysis_name}}}));v(O)}}catch(k){console.error("Error loading proposal:",k),a({title:"Error",description:"Failed to load proposal",variant:"destructive"}),t("/portal/proposals")}finally{o(!1)}},S=async()=>{try{const{error:k}=await ne.functions.invoke("export-proposal-pdf",{body:{proposalId:e}});if(k)throw k;a({title:"Success",description:"Proposal exported successfully"})}catch(k){console.error("Error exporting proposal:",k),a({title:"Error",description:"Failed to export proposal",variant:"destructive"})}},_=async()=>{try{const{error:k}=await ne.functions.invoke("generate-proposal",{body:{proposalId:e,sources:m.map(A=>({type:A.source_type,id:A.source_id}))}});if(k)throw k;a({title:"Regenerating Proposal",description:"Your proposal is being regenerated with the latest data."}),setTimeout(()=>j(),2e3)}catch(k){console.error("Error regenerating proposal:",k),a({title:"Error",description:"Failed to regenerate proposal",variant:"destructive"})}},P=(k,A,C)=>{var $,L,M,R,B,H,U,q,ee,de,ce,G,ie,X,te,Z,F,me,pe,Y,he,_e,We,Fe,Et,jt,er,Kt,js,Ns,tr,mn,ll,Ia,Mr,$a,Ys,Dn,Ln,Ki,Fn,cl;const T=Pt=>typeof Pt=="string"&&Pt.trim()?wCe(Pt):Pt||null,E=Pt=>{if(typeof Pt=="string")try{return JSON.parse(Pt)}catch{return null}return Pt},O=({children:Pt})=>s.jsxs("div",{className:"bg-gradient-to-r from-primary to-primary/80 text-primary-foreground px-8 py-6 rounded-t-lg -mx-8 -mt-8 mb-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("span",{className:"text-xs font-semibold tracking-wider uppercase opacity-90",children:["SLIDE ",A," OF ",C]}),s.jsx("div",{className:"h-1 w-16 bg-primary-foreground/30 rounded"})]}),s.jsx("h2",{className:"text-3xl font-bold leading-tight",children:Pt})]}),D=({insight:Pt})=>Pt?s.jsx("div",{className:"mt-8 border-l-4 border-primary bg-muted/50 p-5 rounded-r",children:s.jsxs("p",{className:"text-sm leading-relaxed",children:[s.jsx("strong",{className:"text-foreground",children:"Key Insight:"})," ",s.jsx("span",{className:"text-muted-foreground",children:Pt})]})}):null;switch(k.type){case"title":return s.jsx("div",{className:"flex flex-col justify-center items-center min-h-[600px] text-center space-y-8 bg-gradient-to-br from-primary/10 via-background to-primary/5 rounded-lg p-12",children:s.jsxs("div",{className:"space-y-6 max-w-4xl",children:[s.jsx("div",{className:"inline-block px-4 py-2 bg-primary/10 rounded-full",children:s.jsx("span",{className:"text-sm text-primary font-semibold tracking-wider uppercase",children:"Strategic Proposal"})}),s.jsx("h1",{className:"text-5xl md:text-6xl font-bold leading-tight bg-gradient-to-br from-foreground to-foreground/70 bg-clip-text text-transparent",children:k.title}),(($=k.content)==null?void 0:$.subtitle)&&s.jsx("h2",{className:"text-2xl md:text-3xl text-muted-foreground font-medium",children:k.content.subtitle}),((L=k.content)==null?void 0:L.description)&&s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed max-w-3xl mx-auto",children:k.content.description})]})});case"text":return s.jsxs("div",{className:"min-h-[600px] flex flex-col",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"flex-1 p-8 space-y-6 bg-card rounded-b-lg",children:[((M=k.content)==null?void 0:M.headline)&&s.jsx("h3",{className:"text-2xl font-bold text-foreground mb-6",children:T(k.content.headline)}),((R=k.content)==null?void 0:R.body)&&s.jsx("div",{className:"prose prose-lg max-w-none text-foreground
644/90",children:T(k.content.body)}),s.jsx(D,{insight:(B=k.content)==null?void 0:B.insight})]})]});case"metrics":const Pt=((H=k.content)==null?void 0:H.metrics)||((U=k.content)==null?void 0:U.data);if(!Pt||!Array.isArray(Pt))return s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"No metrics available"})]});const Yi=Pt.map(ke=>{var br;return{label:ke.label||ke.description||"Metric",value:((br=ke.value)==null?void 0:br.toString())||"N/A",change:ke.change,trend:ke.trend,icon:ke.icon}});return s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),((q=k.content)==null?void 0:q.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),s.jsx(fCe,{data:Yi}),s.jsx(D,{insight:(ee=k.content)==null?void 0:ee.insight})]});case"chart":const Pe=E(k.content),Ma=(Pe==null?void 0:Pe.chartType)||((de=k.content)==null?void 0:de.chartType)||"bar",pn=E((Pe==null?void 0:Pe.data)||((ce=k.content)==null?void 0:ce.data));return!pn||!Array.isArray(pn)?s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"Chart data not available"})]}):s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),((G=k.content)==null?void 0:G.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),Ma==="bar"&&s.jsx(xCe,{data:pn,xKey:k.content.xKey||(Pe==null?void 0:Pe.xKey)||"name",yKey:k.content.yKey||(Pe==null?void 0:Pe.yKey)||"value",label:k.content.label||(Pe==null?void 0:Pe.label),colorScheme:k.content.colorScheme||(Pe==null?void 0:Pe.colorScheme)}),Ma==="line"&&s.jsx(yCe,{data:pn,xKey:k.content.xKey||(Pe==null?void 0:Pe.xKey)||"name",yKey:k.content.yKey||(Pe==null?void 0:Pe.yKey)||"value",label:k.content.label||(Pe==null?void 0:Pe.label),colorScheme:k.content.colorScheme||(Pe==null?void 0:Pe.colorScheme)}),Ma==="pie"&&s.jsx(bCe,{data:pn,nameKey:k.content.nameKey||(Pe==null?void 0:Pe.nameKey)||"name",valueKey:k.content.valueKey||(Pe==null?void 0:Pe.valueKey)||"value",label:k.content.label||(Pe==null?void 0:Pe.label)}),s.jsx(D,{insight:(ie=k.content)==null?void 0:ie.insight})]});case"process":return s.jsxs("div",{className:"min-h-[600px] flex flex-col",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"flex-1 p-8 bg-card rounded-b-lg",children:[((X=k.content)==null?void 0:X.description)&&s.jsx("p",{className:"text-muted-foreground mb-6 text-lg",children:T(k.content.description)}),((te=k.content)==null?void 0:te.steps)&&s.jsx(hCe,{steps:k.content.steps}),s.jsx(D,{insight:(Z=k.content)==null?void 0:Z.insight})]})]});case"comparison":return s.jsxs("div",{className:"min-h-[600px] flex flex-col",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"flex-1 p-8 bg-card rounded-b-lg",children:[((F=k.content)==null?void 0:F.description)&&s.jsx("p",{className:"text-muted-foreground mb-6 text-lg",children:T(k.content.description)}),((me=k.content)==null?void 0:me.data)&&s.jsx(mCe,{data:k.content.data}),s.jsx(D,{insight:(pe=k.content)==null?void 0:pe.insight})]})]});case"hypothesis-tree":return!((Y=k.content)!=null&&Y.hypotheses)||!Array.isArray(k.content.hypotheses)?s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"Invalid hypothesis tree data structure"})]}):s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"space-y-6",children:[((he=k.content)==null?void 0:he.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),s.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:(We=(_e=k.content)==null?void 0:_e.hypotheses)==null?void 0:We.map((ke,br)=>s.jsxs(z,{className:"border-2 hover:border-primary/50 transition-all",children:[s.jsx(oe,{children:s.jsx(le,{className:"text-xl text-primary",children:ke.label})}),s.jsxs(V,{className:"space-y-4",children:[s.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:ke.description}),s.jsxs("div",{className:"space-y-3 pt-2 border-t",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsxs(ue,{variant:ke.confidence==="high"?"default":ke.confidence==="medium"?"secondary":"outline",children:[ke.confidence," confidence"]})}),s.jsx("p",{className:"text-2xl font-bold text-primary",children:ke.impact})]})]})]},br))}),s.jsx(D,{insight:(Fe=k.content)==null?void 0:Fe.insight})]})]});case"business-case":return k.content?s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"space-y-6",children:[((Et=k.content)==null?void 0:Et.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[s.jsxs(z,{className:"bg-gradient-to-br from-muted/50 to-muted/20",children:[s.jsx(oe,{children:s.jsx(le,{className:"text-lg",children:"Investment & Returns"})}),s.jsxs(V,{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Investment"}),s.jsx("p",{className:"text-3xl font-bold text-primary",children:(jt=k.content)==null?void 0:jt.investment})]}),((er=k.content)==null?void 0:er.returns)&&s.jsxs("div",{className:"space-y-2 pt-4 border-t",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Year 1"}),s.jsx("span",{className:"font-semibold",children:k.content.returns.year1})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Year 2"}),s.jsx("span",{className:"font-semibold",children:k.content.returns.year2})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm",children:"Year 3"}),s.jsx("span",{className:"font-semibold",children:k.content.returns.year3})]})]})]})]}),s.jsxs(z,{className:"bg-gradient-to-br from-primary/10 to-primary/5",children:[s.jsx(oe,{children:s.jsx(le,{className:"text-lg",children:"Key Metrics"})}),s.jsxs(V,{className:"space-y-4",children:[((Kt=k.content)==null?void 0:Kt.payback)&&s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Payback Period"}),s.jsx("p",{className:"text-2xl font-bold",children:k.content.payback})]}),((js=k.content)==null?void 0:js.roi)&&s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"ROI"}),s.jsx("p",{className:"text-2xl font-bold text-primary",children:k.content.roi})]})]})]})]}),((Ns=k.content)==null?void 0:Ns.assumptions)&&k.content.assumptions.length>0&&s.jsxs(z,{children:[s.jsx(oe,{children:s.jsx(le,{className:"text-lg",children:"Key Assumptions"})}),s.jsx(V,{children:s.jsx("ul",{className:"space-y-2",children:k.content.assumptions.map((ke,br)=>s.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[s.jsx("span",{className:"text-primary mt-1",children:"•"}),s.jsx("span",{children:ke})]},br))})})]}
644),((tr=k.content)==null?void 0:tr.sensitivity)&&s.jsxs(z,{className:"border-2 border-primary/20",children:[s.jsx(oe,{children:s.jsx(le,{className:"text-lg",children:"Sensitivity Analysis"})}),s.jsxs(V,{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between items-center p-3 bg-green-500/10 rounded",children:[s.jsx("span",{className:"text-sm font-medium",children:"Best Case"}),s.jsx("span",{className:"font-bold text-green-600",children:k.content.sensitivity.best})]}),s.jsxs("div",{className:"flex justify-between items-center p-3 bg-primary/10 rounded",children:[s.jsx("span",{className:"text-sm font-medium",children:"Base Case"}),s.jsx("span",{className:"font-bold",children:k.content.sensitivity.base})]}),s.jsxs("div",{className:"flex justify-between items-center p-3 bg-orange-500/10 rounded",children:[s.jsx("span",{className:"text-sm font-medium",children:"Worst Case"}),s.jsx("span",{className:"font-bold text-orange-600",children:k.content.sensitivity.worst})]})]})]}),s.jsx(D,{insight:(mn=k.content)==null?void 0:mn.insight})]})]}):s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"Business case data not available"})]});case"roadmap":return!((ll=k.content)!=null&&ll.phases)||!Array.isArray(k.content.phases)?s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"Roadmap phases not available"})]}):s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"space-y-6",children:[((Ia=k.content)==null?void 0:Ia.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),s.jsx("div",{className:"space-y-6",children:($a=(Mr=k.content)==null?void 0:Mr.phases)==null?void 0:$a.map((ke,br)=>s.jsxs(z,{className:"border-l-4 border-primary",children:[s.jsx(oe,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx(le,{className:"text-xl",children:ke.name}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:ke.duration})]}),s.jsxs(ue,{variant:"outline",className:"ml-4",children:["Phase ",br+1]})]})}),s.jsxs(V,{className:"space-y-4",children:[ke.deliverables&&ke.deliverables.length>0&&s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-semibold mb-2",children:"Deliverables"}),s.jsx("ul",{className:"space-y-1",children:ke.deliverables.map((ye,$e)=>s.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[s.jsx("span",{className:"text-primary",children:"→"}),s.jsx("span",{children:ye})]},$e))})]}),ke.milestones&&ke.milestones.length>0&&s.jsxs("div",{className:"pt-3 border-t",children:[s.jsx("p",{className:"text-sm font-semibold mb-2",children:"Key Milestones"}),s.jsx("ul",{className:"space-y-1",children:ke.milestones.map((ye,$e)=>s.jsxs("li",{className:"text-sm flex items-start gap-2",children:[s.jsx("span",{className:"text-primary",children:"✓"}),s.jsx("span",{children:ye})]},$e))})]})]})]},br))}),s.jsx(D,{insight:(Ys=k.content)==null?void 0:Ys.insight})]})]});case"risk-matrix":return!((Dn=k.content)!=null&&Dn.risks)||!Array.isArray(k.content.risks)?s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsx("p",{className:"text-muted-foreground",children:"Risk data not available"})]}):s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsxs("div",{className:"space-y-6",children:[((Ln=k.content)==null?void 0:Ln.headline)&&s.jsx("p",{className:"font-semibold text-lg leading-relaxed mb-4",children:k.content.headline}),s.jsx("div",{className:"space-y-4",children:(Fn=(Ki=k.content)==null?void 0:Ki.risks)==null?void 0:Fn.map((ke,br)=>{const ye=ke.impact==="high"?"border-red-500":ke.impact==="medium"?"border-orange-500":"border-green-500",$e=ke.impact==="high"?"bg-red-500/10":ke.impact==="medium"?"bg-orange-500/10":"bg-green-500/10";return s.jsxs(z,{className:`border-l-4 ${ye}`,children:[s.jsx(oe,{children:s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsx(le,{className:"text-lg flex-1",children:ke.risk}),s.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[s.jsxs(ue,{variant:"outline",className:$e,children:[ke.impact," impact"]}),s.jsxs(ue,{variant:"secondary",children:[ke.likelihood," likelihood"]})]})]})}),s.jsx(V,{children:s.jsxs("div",{className:"bg-muted/50 p-4 rounded",children:[s.jsx("p",{className:"text-sm font-semibold mb-1",children:"Mitigation Strategy"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:ke.mitigation})]})})]},br)})}),s.jsx(D,{insight:(cl=k.content)==null?void 0:cl.insight})]})]});default:return console.warn("[ProposalViewer] Unknown slide type:",k.type,k),s.jsxs("div",{className:"min-h-[600px] flex flex-col p-8",children:[s.jsx(O,{children:k.title}),s.jsxs(z,{className:"bg-muted/50",children:[s.jsx(oe,{children:s.jsx(le,{children:"Unable to Render Slide"})}),s.jsxs(V,{children:[s.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["This slide type (",k.type,") is not supported or the data structure is invali
644d."]}),s.jsxs("details",{className:"text-xs",children:[s.jsx("summary",{className:"cursor-pointer text-primary hover:underline",children:"Show raw data (debug)"}),s.jsx("pre",{className:"mt-2 p-4 bg-background rounded border overflow-auto max-h-96",children:JSON.stringify(k,null,2)})]})]})]})]})}};return n||i?s.jsx("div",{className:"flex items-center justify-center min-h-screen",children:s.jsx(an,{className:"h-8 w-8 animate-spin"})}):s.jsx(gr,{children:s.jsxs("div",{className:"flex min-h-screen w-full",children:[s.jsx(Ar,{}),s.jsxs("div",{className:"flex-1 flex flex-col",children:[s.jsx(fs,{user:r}),s.jsxs("main",{className:"flex-1 p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(W,{variant:"ghost",size:"icon",onClick:()=>t("/portal/proposals"),children:s.jsx(Us,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold",children:l}),s.jsx("p",{className:"text-muted-foreground",children:u})]})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(Pi,{actionType:"proposalRegeneration",onSuccess:_,description:`Regenerate proposal: ${l}`,children:({handleAction:k,isProcessing:A,hasCredits:C})=>s.jsxs(W,{variant:"outline",onClick:k,disabled:A||!C,children:[A&&s.jsx(an,{className:"mr-2 h-4 w-4 animate-spin"}),s.jsx(o$,{className:"mr-2 h-4 w-4"}),"Regenerate"]})}),s.jsx(Pi,{actionType:"proposalExport",onSuccess:S,description:`Export proposal: ${l}`,children:({handleAction:k,isProcessing:A,hasCredits:C})=>s.jsxs(W,{onClick:k,disabled:A||!C,children:[A&&s.jsx(an,{className:"mr-2 h-4 w-4 animate-spin"}),s.jsx(VU,{className:"mr-2 h-4 w-4"}),"Export PDF"]})})]})]}),p.length>0&&s.jsxs(z,{className:"p-4",children:[s.jsx("h3",{className:"font-semibold mb-2",children:"Generated from:"}),s.jsx("ul",{className:"space-y-1 text-sm text-muted-foreground",children:p.map((k,A)=>s.jsxs("li",{children:["• ",k.source_type==="discovery_call"?"Discovery Call":"Workflow Analysis",": ",k.name,k.call_date&&` - ${new Date(k.call_date).toLocaleDateString()}`]},A))})]}),f.length===0?s.jsx(z,{className:"p-12 text-center",children:s.jsx("p",{className:"text-muted-foreground",children:"This proposal is being generated. Please check back in a moment."})}):s.jsxs("div",{className:"relative w-full max-w-5xl mx-auto perspective-1000",children:[s.jsx(XS,{setApi:N,className:"w-full",opts:{align:"center",loop:!1},children:s.jsx(QS,{className:"-ml-2 md:-ml-4",children:f.sort((k,A)=>k.order-A.order).map((k,A)=>{const C=A-y,T=C===0,E=C===-1,O=C===1,D=Math.abs(C)<=1;return s.jsx(JS,{className:"pl-2 md:pl-4 basis-full",style:{transform:T?"scale(1) translateX(0)":O?"scale(0.94) translateX(30px)":E?"scale(0.94) translateX(-30px)":"scale(0.88)",opacity:T?1:D?.5:0,zIndex:T?20:D?10:0,transition:"all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",filter:T?"blur(0px)":"blur(3px)"},children:s.jsx(z,{className:"min-h-[650px] shadow-2xl overflow-hidden",children:P(k,A+1,f.length)})},k.id)})})}),s.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[s.jsx(W,{variant:"outline",size:"icon",onClick:()=>w==null?void 0:w.scrollPrev(),disabled:y===0,className:"hidden md:flex",children:s.jsx(BU,{className:"h-5 w-5"})}),s.jsxs("div",{className:"flex flex-col items-center gap-1",children:[s.jsxs("span",{className:"text-sm font-medium",children:["Slide ",y+1," of ",f.length]}),s.jsx("span",{className:"text-xs text-muted-foreground hidden md:block",children:"Use arrow keys or swipe to navigate"})]}),s.jsx(W,{variant:"outline",size:"icon",onClick:()=>w==null?void 0:w.scrollNext(),disabled:y===f.length-1,className:"hidden md:flex",children:s.jsx(sa,{className:"h-5 w-5"})})]})]})]})]})]})})},NCe=new N7,SCe=()=>s.jsx(_7,{client:NCe,children:s.jsxs(wv,{children:[s.jsx(DW,{}),s.jsx(p9,{}),s.jsx(jH,{children:s.jsxs(hH,{children:[s.jsx(Ze,{path:"/",element:s.jsx(GNe,{})}),s.jsx(Ze,{path:"/auth",element:s.jsx(QNe,{})}),s.jsx(Ze,{path:"/pricing",element:s.jsx(u_e,{})}),s.jsx(Ze,{path:"/features/proposal-builder",element:s.jsx(p_e,{})}),s.jsx(Ze,{path:"/expansion-radar",element:s.jsx(g_e,{})}),s.jsx(Ze,{path:"/stakeholder-management",element:s.jsx(x_e,{})}),s.jsx(Ze,{path:"/workflow-optimization",element:s.jsx(b_e,{})}),s.jsx(Ze,{path:"/founding-members",element:s.jsx(R_e,{})}),s.jsx(Ze,{path:"/reset-password",element:s.jsx(D_e,{})}),s.jsx(Ze,{path:"/discovery-call-analysis",element:s.jsx(xke,{})}),s.jsx(Ze,{path:"/stakeholders",element:s.jsx(Yke,{})}),s.jsx(Ze,{path:"/workflow-analysis",element:s.jsx(Xke,{})}),s.jsx(Ze,{path:"/value-tied-pricing",element:s.jsx(Jke,{})}),s.jsx(Ze,{path:"/repeatable-gtm-engine",element:s.jsx(e2e,{})}),s.jsx(Ze,{path:"/dashboard",element:s.jsx(a2e,{})}),s.jsx(Ze,{path:"/privacy",element:s.jsx(i2e,{})}),s.jsx(Ze,{path:"/cookies",element:s.jsx(o2e,{})}),s.jsx(Ze,{path:"/portal/dashboard",element:s.jsx(_2e,{})}),s.jsx(Ze,{path:"/portal/discovery-calls",element:s.jsx(iCe,{})}),s.jsx(Ze,{path:"/portal/discovery-calls/:id",element:s.jsx(uCe,{})}),s.jsx(Ze,{path:"/portal/workflows",element:s.jsx(oCe,{})}),s.jsx(Ze,{path:"/portal/workflows/:id",element:s.jsx(lCe,{})}),s.jsx(Ze,{path:"/portal/stakeholders",element:s.jsx(cCe,{})}),s.jsx(Ze,{path:"/portal/proposals",element:s.jsx(nCe,{})}),s.jsx(Ze,{path:"/portal/proposals/view/:id",element:s.jsx(jCe,{})}),s.jsx(Ze,{path:"*",element:s.jsx(l2e,{})})]})})]})});kI(document.getElementById("root")).render(s.jsx(SCe,{}));

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.