PageSourceSearch

https://salessidekick.ai/assets/index-WAuxPa_N-6df7fb0c.js

js salessidekick.ai collected 2026-10-05 15:24:28 UTC 1,807,360 bytes, 764 lines download raw bytes

vendor: 5,996 bytes, lines 1-9
1var _4=e=>{throw TypeError(e)};var Dw=(e,t,r)=>t.has(e)||_4("Cannot "+r);var Y=(e,t,r)=>(Dw(e,t,"read from private field"),r?r.call(e):t.get(e)),Ke=(e,t,r)=>t.has(e)?_4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Oe=(e,t,r,n)=>(Dw(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),gt=(e,t,r)=>(Dw(e,t,"access private method"),r);var Cg=(e,t,r,n)=>({set _(i){Oe(e,t,i,r)},get _(){return Y(e,t,n)}});function TX(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Pg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lw={exports:{}},Qf={},$w={exports:{}},bt={};/**
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 O4;function AX(){if(O4)return bt;O4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator;function p(V){return V===null||typeof V!="object"?null:(V=h&&V[h]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,v={};function y(V,X,ce){this.props=V,this.context=X,this.refs=v,this.updater=ce||x}y.prototype.isReactComponent={},y.prototype.setState=function(V,X){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,X,"setState")},y.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function j(){}j.prototype=y.prototype;function k(V,X,ce){this.props=V,this.context=X,this.refs=v,this.updater=ce||x}var N=k.prototype=new j;N.constructor=k,w(N,y.prototype),N.isPureReactComponent=!0;var C=Array.isArray,A=Object.prototype.hasOwnProperty,E={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function R(V,X,ce){var ye,$e={},Te=null,ge=null;if(X!=null)for(ye in X.ref!==void 0&&(ge=X.ref),X.key!==void 0&&(Te=""+X.key),X)A.call(X,ye)&&!_.hasOwnProperty(ye)&&($e[ye]=X[ye]);var Ae=arguments.length-2;if(Ae===1)$e.children=ce;else if(1<Ae){for(var le=Array(Ae),Se=0;Se<Ae;Se++)le[Se]=arguments[Se+2];$e.children=le}if(V&&V.defaultProps)for(ye in Ae=V.defaultProps,Ae)$e[ye]===void 0&&($e[ye]=Ae[ye]);return{$$typeof:e,type:V,key:Te,ref:ge,props:$e,_owner:E.current}}function O(V,X){return{$$typeof:e,type:V.type,key:X,ref:V.ref,props:V.props,_owner:V._owner}}function F(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function D(V){var X={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ce){return X[ce]})}var L=/\/+/g;function I(V,X){return typeof V=="object"&&V!==null&&V.key!=null?D(""+V.key):X.toString(36)}function $(V,X,ce,ye,$e){var Te=typeof V;(Te==="undefined"||Te==="boolean")&&(V=null);var ge=!1;if(V===null)ge=!0;else switch(Te){case"string":case"number":ge=!0;break;case"object":switch(V.$$typeof){case e:case t:ge=!0}}if(ge)return ge=V,$e=$e(ge),V=ye===""?"."+I(ge,0):ye,C($e)?(ce="",V!=null&&(ce=V.replace(L,"$&/")+"/"),$($e,X,ce,"",function(Se){return Se})):$e!=null&&(F($e)&&($e=O($e,ce+(!$e.key||ge&&ge.key===$e.key?"":(""+$e.key).replace(L,"$&/")+"/")+V)),X.push($e)),1;if(ge=0,ye=ye===""?".":ye+":",C(V))for(var Ae=0;Ae<V.length;Ae++){Te=V[Ae];var le=ye+I(Te,Ae);ge+=$(Te,X,ce,le,$e)}else if(le=p(V),typeof le=="function")for(V=le.call(V),Ae=0;!(Te=V.next()).done;)Te=Te.value,le=ye+I(Te,Ae++),ge+=$(Te,X,ce,le,$e);else if(Te==="object")throw X=String(V),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return ge}function z(V,X,ce){if(V==null)return V;var ye=[],$e=0;return $(V,ye,"","",function(Te){return X.call(ce,Te,$e++)}),ye}function K(V){if(V._status===-1){var X=V._result;X=X(),X.then(function(ce){(V._status===0||V._status===-1)&&(V._status=1,V._result=ce)},function(ce){(V._status===0||V._status===-1)&&(V._status=2,V._result=ce)}),V._status===-1&&(V._status=0,V._result=X)}if(V._status===1)return V._result.default;throw V._result}var Z={current:null},U={transition:null},q={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:U,ReactCurrentOwner:E};function B(){throw Error("act(...) is not supported in production builds of React.")}return bt.Children={map:z,forEach:function(V,X,ce){z(V,function(){X.apply(this,arguments)},ce)}
vendor: 9,539 bytes, lines 9-33
9,count:function(V){var X=0;return z(V,function(){X++}),X},toArray:function(V){return z(V,function(X){return X})||[]},only:function(V){if(!F(V))throw Error("React.Children.only expected to receive a single React element child.");return V}},bt.Component=y,bt.Fragment=r,bt.Profiler=i,bt.PureComponent=k,bt.StrictMode=n,bt.Suspense=u,bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,bt.act=B,bt.cloneElement=function(V,X,ce){if(V==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+V+".");var ye=w({},V.props),$e=V.key,Te=V.ref,ge=V._owner;if(X!=null){if(X.ref!==void 0&&(Te=X.ref,ge=E.current),X.key!==void 0&&($e=""+X.key),V.type&&V.type.defaultProps)var Ae=V.type.defaultProps;for(le in X)A.call(X,le)&&!_.hasOwnProperty(le)&&(ye[le]=X[le]===void 0&&Ae!==void 0?Ae[le]:X[le])}var le=arguments.length-2;if(le===1)ye.children=ce;else if(1<le){Ae=Array(le);for(var Se=0;Se<le;Se++)Ae[Se]=arguments[Se+2];ye.children=Ae}return{$$typeof:e,type:V.type,key:$e,ref:Te,props:ye,_owner:ge}},bt.createContext=function(V){return V={$$typeof:o,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},V.Provider={$$typeof:a,_context:V},V.Consumer=V},bt.createElement=R,bt.createFactory=function(V){var X=R.bind(null,V);return X.type=V,X},bt.createRef=function(){return{current:null}},bt.forwardRef=function(V){return{$$typeof:l,render:V}},bt.isValidElement=F,bt.lazy=function(V){return{$$typeof:m,_payload:{_status:-1,_result:V},_init:K}},bt.memo=function(V,X){return{$$typeof:d,type:V,compare:X===void 0?null:X}},bt.startTransition=function(V){var X=U.transition;U.transition={};try{V()}finally{U.transition=X}},bt.unstable_act=B,bt.useCallback=function(V,X){return Z.current.useCallback(V,X)},bt.useContext=function(V){return Z.current.useContext(V)},bt.useDebugValue=function(){},bt.useDeferredValue=function(V){return Z.current.useDeferredValue(V)},bt.useEffect=function(V,X){return Z.current.useEffect(V,X)},bt.useId=function(){return Z.current.useId()},bt.useImperativeHandle=function(V,X,ce){return Z.current.useImperativeHandle(V,X,ce)},bt.useInsertionEffect=function(V,X){return Z.current.useInsertionEffect(V,X)},bt.useLayoutEffect=function(V,X){return Z.current.useLayoutEffect(V,X)},bt.useMemo=function(V,X){return Z.current.useMemo(V,X)},bt.useReducer=function(V,X,ce){return Z.current.useReducer(V,X,ce)},bt.useRef=function(V){return Z.current.useRef(V)},bt.useState=function(V){return Z.current.useState(V)},bt.useSyncExternalStore=function(V,X,ce){return Z.current.useSyncExternalStore(V,X,ce)},bt.useTransition=function(){return Z.current.useTransition()},bt.version="18.3.1",bt}var I4;function Km(){return I4||(I4=1,$w.exports=AX()),$w.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var R4;function CX(){if(R4)return Qf;R4=1;var e=Km(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,d){var m,h={},p=null,x=null;d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(x=u.ref);for(m in u)n.call(u,m)&&!a.hasOwnProperty(m)&&(h[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)h[m]===void 0&&(h[m]=u[m]);return{$$typeof:t,type:l,key:p,ref:x,props:h,_owner:i.current}}return Qf.Fragment=r,Qf.jsx=o,Qf.jsxs=o,Qf}var M4;function PX(){return M4||(M4=1,Lw.exports=CX()),Lw.exports}var s=PX(),Eg={},Fw={exports:{}},Dn={},Bw={exports:{}},Vw={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var D4;function EX(){return D4||(D4=1,(function(e){function t(U,q){var B=U.length;U.push(q);e:for(;0<B;){var V=B-1>>>1,X=U[V];if(0<i(X,q))U[V]=q,U[B]=X,B=V;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var q=U[0],B=U.pop();if(B!==q){U[0]=B;e:for(var V=0,X=U.length,ce=X>>>1;V<ce;){var ye=2*(V+1)-1,$e=U[ye],Te=ye+1,ge=U[Te];if(0>i($e,B))Te<X&&0>i(ge,$e)?(U[V]=ge,U[Te]=B,V=Te):(U[V]=$e,U[ye]=B,V=ye);else if(Te<X&&0>i(ge,B))U[V]=ge,U[Te]=B,V=Te;else break e}}return q}function i(U,q){var B=U.sortIndex-q.sortIndex;return B!==0?B:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],m=1,h=null,p=3,x=!1,w=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(U){for(var q=r(d);q!==null;){if(q.callback===null)n(d);else if(q.startTime<=U)n(d),q.sortIndex=q.expirationTime,t(u,q);else break;q=r(d)}}function C(U){if(v=!1,N(U),!w)if(r(u)!==null)w=!0,K(A);else{var q=r(d);q!==null&&Z(C,q.startTime-U)}}function A(U,q){w=!1,v&&(v=!1,j(R),R=-1),x=!0;var B=p;try{for(N(q),h=r(u);h!==null&&(!(h.expirationTime>q)||U&&!D());){var V=h.callback;if(typeof V=="function"){h.callback=null,p=h.priorityLevel;var X=V(h.expirationTime<=q);q=e.unstable_now(),typeof X=="function"?h.callback=X:h===r(u)&&n(u),N(q)}else n(u);h=r(u)}if(h!==null)var ce=!0;else{var ye=r(d);ye!==null&&Z(C,ye.startTime-q),ce=!1}return ce}finally{h=null,p=B,x=!1}}var E=!1,_=null,R=-1,O=5,F=-1;function D(){return!(e.unstable_now()-F<O)}function L(){if(_!==null){var U=e.unstable_now();F=U;var q=!0;try{q=_(!0,U)}finally{q?I():(E=!1,_=null)}}else E=!1}var I;if(typeof k=="function")I=function(){k(L)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,z=$.port2;$.port1.onmessage=L,I=function(){z.postMessage(null)}}else I=function(){y(L,0)};function K(U){_=U,E||(E=!0,I())}function Z(U,q){R=y(function(){U(e.unstable_now())},q)}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(U){U.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,K(A))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(U){switch(p){case 1:case 2:case 3:var q=3;break;default:q=p}var B=p;p=q;try{return U()}finally{p=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var B=p;p=U;try{return q()}finally{p=B}},e.unstable_scheduleCallback=function(U,q,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,U){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=B+X,U={id:m++,callback:q,priorityLevel:U,startTime:B,expirationTime:X,sortIndex:-1},B>V?(U.sortIndex=B,t(d,U),r(u)===null&&U===r(d)&&(v?(j(R),R=-1):v=!0,Z(C,B-V))):(U.sortIndex=X,t(u,U),w||x||(w=!0,K(A))),U},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(U){var q=p;return function(){var B=p;p=q;try{return U.apply(this,arguments)}finally{p=B}}}})(Vw)),Vw}var L4;function _X(){return L4||(L4=1,Bw.exports=EX()),Bw.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 $4;function OX(){if($4)return Dn;$4=1;var e=Km(),t=_X();function r(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,g=1;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(c,f){o(c,f),o(c+"Capture",f)}function o(c,f){for(i[c]=f,c=0;c<f.length;c++)n.add(f[c])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},h={};function p(c){return u.call(h,c)?!0:u.call(m,c)?!1:d.test(c)?h[c]=!0:(m[c]=!0,!1)}function x(c,f,g,b){if(g!==null&&g.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return b?!1:g!==null?!g.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function w(c,f,g,b){if(f===null||typeof f>"u"||x(c,f,g,b))return!0;
vendor: 44,058 bytes, lines 33-38
33if(b)return!1;if(g!==null)switch(g.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function v(c,f,g,b,T,P,M){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=b,this.attributeNamespace=T,this.mustUseProperty=g,this.propertyName=c,this.type=f,this.sanitizeURL=P,this.removeEmptyString=M}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){y[c]=new v(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var f=c[0];y[f]=new v(f,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){y[c]=new v(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){y[c]=new v(c,2,!1,c,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(c){y[c]=new v(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){y[c]=new v(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){y[c]=new v(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){y[c]=new v(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){y[c]=new v(c,5,!1,c.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function k(c){return c[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(c){var f=c.replace(j,k);y[f]=new v(f,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var f=c.replace(j,k);y[f]=new v(f,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var f=c.replace(j,k);y[f]=new v(f,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){y[c]=new v(c,1,!1,c.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){y[c]=new v(c,1,!1,c.toLowerCase(),null,!0,!0)});function N(c,f,g,b){var T=y.hasOwnProperty(f)?y[f]:null;(T!==null?T.type!==0:b||!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(w(f,g,T,b)&&(g=null),b||T===null?p(f)&&(g===null?c.removeAttribute(f):c.setAttribute(f,""+g)):T.mustUseProperty?c[T.propertyName]=g===null?T.type===3?!1:"":g:(f=T.attributeName,b=T.attributeNamespace,g===null?c.removeAttribute(f):(T=T.type,g=T===3||T===4&&g===!0?"":""+g,b?c.setAttributeNS(b,f,g):c.setAttribute(f,g))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),D=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),U=Symbol.iterator;function q(c){return c===null||typeof c!="object"?null:(c=U&&c[U]||c["@@iterator"],typeof c=="function"?c:null)}var B=Object.assign,V;function X(c){if(V===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);V=f&&f[1]||""}return`
34`+V+c}var ce=!1;function ye(c,f){if(!c||ce)return"";ce=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(ie){var b=ie}Reflect.construct(c,[],f)}else{try{f.call()}catch(ie){b=ie}c.call(f.prototype)}else{try{throw Error()}catch(ie){b=ie}c()}}catch(ie){if(ie&&b&&typeof ie.stack=="string"){for(var T=ie.stack.split(`
35`),P=b.stack.split(`
36`),M=T.length-1,H=P.length-1;1<=M&&0<=H&&T[M]!==P[H];)H--;for(;1<=M&&0<=H;M--,H--)if(T[M]!==P[H]){if(M!==1||H!==1)do if(M--,H--,0>H||T[M]!==P[H]){var Q=`
37`+T[M].replace(" at new "," at ");return c.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",c.displayName)),Q}while(1<=M&&0<=H);break}}}finally{ce=!1,Error.prepareStackTrace=g}return(c=c?c.displayName||c.name:"")?X(c):""}function $e(c){switch(c.tag){case 5:return X(c.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return c=ye(c.type,!1),c;case 11:return c=ye(c.type.render,!1),c;case 1:return c=ye(c.type,!0),c;default:return""}}function Te(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case _:return"Fragment";case E:return"Portal";case O:return"Profiler";case R:return"StrictMode";case I:return"Suspense";case $:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case D:return(c.displayName||"Context")+".Consumer";case F:return(c._context.displayName||"Context")+".Provider";case L:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case z:return f=c.displayName||null,f!==null?f:Te(c.type)||"Memo";case K:f=c._payload,c=c._init;try{return Te(c(f))}catch{}}return null}function ge(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Te(f);case 8:return f===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function Ae(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function le(c){var f=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function Se(c){var f=le(c)?"checked":"value",g=Object.getOwnPropertyDescriptor(c.constructor.prototype,f),b=""+c[f];if(!c.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var T=g.get,P=g.set;return Object.defineProperty(c,f,{configurable:!0,get:function(){return T.call(this)},set:function(M){b=""+M,P.call(this,M)}}),Object.defineProperty(c,f,{enumerable:g.enumerable}),{getValue:function(){return b},setValue:function(M){b=""+M},stopTracking:function(){c._valueTracker=null,delete c[f]}}}}function Pe(c){c._valueTracker||(c._valueTracker=Se(c))}function ae(c){if(!c)return!1;var f=c._valueTracker;if(!f)return!0;var g=f.getValue(),b="";return c&&(b=le(c)?c.checked?"true":"false":c.value),c=b,c!==g?(f.setValue(c),!0):!1}function at(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Ye(c,f){var g=f.checked;return B({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??c._wrapperState.initialChecked})}function mt(c,f){var g=f.defaultValue==null?"":f.defaultValue,b=f.checked!=null?f.checked:f.defaultChecked;g=Ae(f.value!=null?f.value:g),c._wrapperState={initialChecked:b,initialValue:g,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function Ie(c,f){f=f.checked,f!=null&&N(c,"checked",f,!1)}function pt(c,f){Ie(c,f);var g=Ae(f.value),b=f.type;if(g!=null)b==="number"?(g===0&&c.value===""||c.value!=g)&&(c.value=""+g):c.value!==""+g&&(c.value=""+g);else if(b==="submit"||b==="reset"){c.removeAttribute("value");return}f.hasOwnProperty("value")?zt(c,f.type,g):f.hasOwnProperty("defaultValue")&&zt(c,f.type,Ae(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(c.defaultChecked=!!f.defaultChecked)}function rr(c,f,g){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var b=f.type;if(!(b!=="submit"&&b!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+c._wrapperState.initialValue,g||f===c.value||(c.value=f),c.defaultValue=f}g=c.name,g!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,g!==""&&(c.name=g)}function zt(c,f,g){(f!=="number"||at(c.ownerDocument)!==c)&&(g==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+g&&(c.defaultValue=""+g))}var tn=Array.isArray;function Fr(c,f,g,b){if(c=c.options,f){f={};for(var T=0;T<g.length;T++)f["$"+g[T]]=!0;for(g=0;g<c.length;g++)T=f.hasOwnProperty("$"+c[g].value),c[g].selected!==T&&(c[g].selected=T),T&&b&&(c[g].defaultSelected=!0)}else{for(g=""+Ae(g),f=null,T=0;T<c.length;T++){if(c[T].value===g){c[T].selected=!0,b&&(c[T].defaultSelected=!0);return}f!==null||c[T].disabled||(f=c[T])}f!==null&&(f.selected=!0)}}function Pr(c,f){if(f.dangerouslySetInnerHTML!=null)throw Error(r(91));return B({},f,{value:void 0,defaultValue:void 0,children:""+c._wrapperState.initialValue})}function ol(c,f){var g=f.value;if(g==null){if(g=f.children,f=f.defaultValue,g!=null){if(f!=null)throw Error(r(92));if(tn(g)){if(1<g.length)throw Error(r(93));g=g[0]}f=g}f==null&&(f=""),g=f}c._wrapperState={initialValue:Ae(g)}}function Ba(c,f){var g=Ae(f.value),b=Ae(f.defaultValue);g!=null&&(g=""+g,g!==c.value&&(c.value=g),f.defaultValue==null&&c.defaultValue!==g&&(c.defaultValue=g)),b!=null&&(c.defaultValue=""+b)}function G(c){var f=c.textContent;f===c._wrapperState.initialValue&&f!==""&&f!==null&&(c.value=f)}function te(c){switch(c){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 ne(c,f){return c==null||c==="http://www.w3.org/1999/xhtml"?te(f):c==="http://www.w3.org/2000/svg"&&f==="foreignObject"?"http://www.w3.org/1999/xhtml":c}var ke,we=(function(c){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(f,g,b,T){MSApp.execUnsafeLocalFunction(function(){return c(f,g,b,T)})}:c})(function(c,f){if(c.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in c)c.innerHTML=f;else{for(ke=ke||document.createElement("div"),ke.innerHTML="<svg>"+f.valueOf().toString()+"</svg>",f=ke.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;f.firstChild;)c.appendChild(f.firstChild)}});function ve(c,f){if(f){var g=c.firstChild;if(g&&g===c.lastChild&&g.nodeType===3){g.nodeValue=f;return}}c.textContent=f}var _e={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},ct=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(c){ct.forEach(function(f){f=f+c.charAt(0).toUpperCase()+c.substring(1),_e[f]=_e[c]})});function vt(c,f,g){return f==null||typeof f=="boolean"||f===""?"":g||typeof f!="number"||f===0||_e.hasOwnProperty(c)&&_e[c]?(""+f).trim():f+"px"}function gr(c,f){c=c.style;for(var g in f)if(f.hasOwnProperty(g)){var b=g.indexOf("--")===0,T=vt(g,f[g],b);g==="float"&&(g="cssFloat"),b?c.setProperty(g,T):c[g]=T}}var En=B({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 vn(c,f){if(f){if(En[c]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(r(137,c));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(r(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(r(61))}if(f.style!=null&&typeof f.style!="object")throw Error(r(62))}}function Ls(c,f){if(c.indexOf("-")===-1)return typeof f.is=="string";switch(c){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 ll=null;function cl(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var hf=null,Wi=null,Va=null;function mf(c){if(c=Df(c)){if(typeof hf!="function")throw Error(r(280));var f=c.stateNode;f&&(f=Wp(f),hf(c.stateNode,c.type,f))}}function YE(c){Wi?Va?Va.push(c):Va=[c]:Wi=c}function XE(){if(Wi){var c=Wi,f=Va;if(Va=Wi=null,mf(c),f)for(c=0;c<f.length;c++)mf(f[c])}}function QE(c,f){return c(f)}function ZE(){}var Jb=!1;function JE(c,f,g){if(Jb)return c(f,g);Jb=!0;try{return QE(c,f,g)}finally{Jb=!1,(Wi!==null||Va!==null)&&(ZE(),XE())}}function pf(c,f){var g=c.stateNode;if(g===null)return null;var b=Wp(g);if(b===null)return null;g=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(c=c.type,b=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!b;break e;default:c=!1}if(c)return null;if(g&&typeof g!="function")throw Error(r(231,f,typeof g));return g}var e0=!1;if(l)try{var gf={};Object.defineProperty(gf,"passive",{get:function(){e0=!0}}),window.addEventListener("test",gf,gf),window.removeEventListener("test",gf,gf)}catch{e0=!1}function OK(c,f,g,b,T,P,M,H,Q){var ie=Array.prototype.slice.call(arguments,3);try{f.apply(g,ie)}catch(fe){this.onError(fe)}}var xf=!1,wp=null,jp=!1,t0=null,IK={onError:function(c){xf=!0,wp=c}};function RK(c,f,g,b,T,P,M,H,Q){xf=!1,wp=null,OK.apply(IK,arguments)}function MK(c,f,g,b,T,P,M,H,Q){if(RK.apply(this,arguments),xf){if(xf){var ie=wp;xf=!1,wp=null}else throw Error(r(198));jp||(jp=!0,t0=ie)}}function ul(c){var f=c,g=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(g=f.return),c=f.return;while(c)}return f.tag===3?g:null}function e_(c){if(c.tag===13){var f=c.memoizedState;if(f===null&&(c=c.alternate,c!==null&&(f=c.memoizedState)),f!==null)return f.dehydrated}return null}function t_(c){if(ul(c)!==c)throw Error(r(188))}function DK(c){var f=c.alternate;if(!f){if(f=ul(c),f===null)throw Error(r(188));return f!==c?null:c}for(var g=c,b=f;;){var T=g.return;if(T===null)break;var P=T.alternate;if(P===null){if(b=T.return,b!==null){g=b;continue}break}if(T.child===P.child){for(P=T.child;P;){if(P===g)return t_(T),c;if(P===b)return t_(T),f;P=P.sibling}throw Error(r(188))}if(g.return!==b.return)g=T,b=P;else{for(var M=!1,H=T.child;H;){if(H===g){M=!0,g=T,b=P;break}if(H===b){M=!0,b=T,g=P;break}H=H.sibling}if(!M){for(H=P.child;H;){if(H===g){M=!0,g=P,b=T;break}if(H===b){M=!0,b=P,g=T;break}H=H.sibling}if(!M)throw Error(r(189))}}if(g.alternate!==b)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?c:f}function r_(c){return c=DK(c),c!==null?n_(c):null}function n_(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=n_(c);if(f!==null)return f;c=c.sibling}return null}var s_=t.unstable_scheduleCallback,i_=t.unstable_cancelCallback,LK=t.unstable_shouldYield,$K=t.unstable_requestPaint,xr=t.unstable_now,FK=t.unstable_getCurrentPriorityLevel,r0=t.unstable_ImmediatePriority,a_=t.unstable_UserBlockingPriority,Sp=t.unstable_NormalPriority,BK=t.unstable_LowPriority,o_=t.unstable_IdlePriority,kp=null,di=null;function VK(c){if(di&&typeof di.onCommitFiberRoot=="function")try{di.onCommitFiberRoot(kp,c,void 0,(c.current.flags&128)===128)}catch{}}var $s=Math.clz32?Math.clz32:zK,qK=Math.log,WK=Math.LN2;function zK(c){return c>>>=0,c===0?32:31-(qK(c)/WK|0)|0}var Np=64,Tp=4194304;function yf(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function Ap(c,f){var g=c.pendingLanes;if(g===0)return 0;var b=0,T=c.suspendedLanes,P=c.pingedLanes,M=g&268435455;if(M!==0){var H=M&~T;H!==0?b=yf(H):(P&=M,P!==0&&(b=yf(P)))}else M=g&~T,M!==0?b=yf(M):P!==0&&(b=yf(P));if(b===0)return 0;if(f!==0&&f!==b&&(f&T)===0&&(T=b&-b,P=f&-f,T>=P||T===16&&(P&4194240)!==0))return f;if((b&4)!==0&&(b|=g&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=b;0<f;)g=31-$s(f),T=1<<g,b|=c[g],f&=~T;return b}function UK(c,f){switch(c){case 1:case 2:case 4:return f+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 f+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 HK(c,f){for(var g=c.suspendedLanes,b=c.pingedLanes,T=c.expirationTimes,P=c.pendingLanes;0<P;){var M=31-$s(P),H=1<<M,Q=T[M];Q===-1?((H&g)===0||(H&b)!==0)&&(T[M]=UK(H,f)):Q<=f&&(c.expiredLanes|=H),P&=~H}}function n0(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function l_(){var c=Np;return Np<<=1,(Np&4194240)===0&&(Np=64),c}function s0(c){for(var f=[],g=0;31>g;g++)f.push(c);return f}function vf(c,f,g){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-$s(f),c[f]=g}function GK(c,f){var g=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var b=c.eventTimes;for(c=c.expirationTimes;0<g;){var T=31-$s(g),P=1<<T;f[T]=0,b[T]=-1,c[T]=-1,g&=~P}}function i0(c,f){var g=c.entangledLanes|=f;for(c=c.entanglements;g;){var b=31-$s(g),T=1<<b;T&f|c[b]&f&&(c[b]|=f),g&=~T}}var Rt=0;function c_(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var u_,a0,d_,f_,h_,o0=!1,Cp=[],qa=null,Wa=null,za=null,bf=new Map,wf=new Map,Ua=[],KK="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 m_(c,f){switch(c){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":bf.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":wf.delete(f.pointerId)}}function jf(c,f,g,b,T,P){return c===null||c.nativeEvent!==P?(c={blockedOn:f,domEventName:g,eventSystemFlags:b,nativeEvent:P,targetContainers:[T]},f!==null&&(f=Df(f),f!==null&&a0(f)),c):(c.eventSystemFlags|=b,f=c.targetContainers,T!==null&&f.indexOf(T)===-1&&f.push(T),c)}function YK(c,f,g,b,T){switch(f){case"focusin":return qa=jf(qa,c,f,g,b,T),!0;case"dragenter":return Wa=jf(Wa,c,f,g,b,T),!0;case"mouseover":return za=jf(za,c,f,g,b,T),!0;case"pointerover":var P=T.pointerId;return bf.set(P,jf(bf.get(P)||null,c,f,g,b,T)),!0;case"gotpointercapture":return P=T.pointerId,wf.set(P,jf(wf.get(P)||null,c,f,g,b,T)),!0}return!1}function p_(c){var f=dl(c.target);if(f!==null){var g=ul(f);if(g!==null){if(f=g.tag,f===13){if(f=e_(g),f!==null){c.blockedOn=f,h_(c.priority,function(){d_(g)});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){c.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Pp(c){if(c.blockedOn!==null)return!1;for(var f=c.targetContainers;0<f.length;){var g=c0(c.domEventName,c.eventSystemFlags,f[0],c.nativeEvent);if(g===null){g=c.nativeEvent;var b=new g.constructor(g.type,g);ll=b,g.target.dispatchEvent(b),ll=null}else return f=Df(g),f!==null&&a0(f),c.blockedOn=g,!1;f.shift()}return!0}function g_(c,f,g){Pp(c)&&g.delete(f)}function XK(){o0=!1,qa!==null&&Pp(qa)&&(qa=null),Wa!==null&&Pp(Wa)&&(Wa=null),za!==null&&Pp(za)&&(za=null),bf.forEach(g_),wf.forEach(g_)}function Sf(c,f){c.blockedOn===f&&(c.blockedOn=null,o0||(o0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,XK)))}function kf(c){function f(T){return Sf(T,c)}if(0<Cp.length){Sf(Cp[0],c);for(var g=1;g<Cp.length;g++){var b=Cp[g];b.blockedOn===c&&(b.blockedOn=null)}}for(qa!==null&&Sf(qa,c),Wa!==null&&Sf(Wa,c),za!==null&&Sf(za,c),bf.forEach(f),wf.forEach(f),g=0;g<Ua.length;g++)b=Ua[g],b.blockedOn===c&&(b.blockedOn=null);for(;0<Ua.length&&(g=Ua[0],g.blockedOn===null);)p_(g),g.blockedOn===null&&Ua.shift()}var Dc=C.ReactCurrentBatchConfig,Ep=!0;function QK(c,f,g,b){var T=Rt,P=Dc.transition;Dc.transition=null;try{Rt=1,l0(c,f,g,b)}finally{Rt=T,Dc.transition=P}}function ZK(c,f,g,b){var T=Rt,P=Dc.transition;Dc.transition=null;try{Rt=4,l0(c,f,g,b)}finally{Rt=T,Dc.transition=P}}function l0(c,f,g,b){if(Ep){var T=c0(c,f,g,b);if(T===null)T0(c,f,b,_p,g),m_(c,b);else if(YK(T,c,f,g,b))b.stopPropagation();else if(m_(c,b),f&4&&-1<KK.indexOf(c)){for(;T!==null;){var P=Df(T);if(P!==null&&u_(P),P=c0(c,f,g,b),P===null&&T0(c,f,b,_p,g),P===T)break;T=P}T!==null&&b.stopPropagation()}else T0(c,f,b,null,g)}}var _p=null;function c0(c,f,g,b){if(_p=null,c=cl(b),c=dl(c),c!==null)if(f=ul(c),f===null)c=null;else if(g=f.tag,g===13){if(c=e_(f),c!==null)return c;c=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;c=null}else f!==c&&(c=null);return _p=c,null}function x_(c){switch(c){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(FK()){case r0:return 1;case a_:return 4;case Sp:case BK:return 16;case o_:return 536870912;default:return 16}default:return 16}}var Ha=null,u0=null,Op=null;function y_(){if(Op)return Op;var c,f=u0,g=f.length,b,T="value"in Ha?Ha.value:Ha.textContent,P=T.length;for(c=0;c<g&&f[c]===T[c];c++);var M=g-c;for(b=1;b<=M&&f[g-b]===T[P-b];b++);return Op=T.slice(c,1<b?1-b:void 0)}function Ip(c){var f=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&f===13&&(c=13)):c=f,c===10&&(c=13),32<=c||c===13?c:0}function Rp(){return!0}function v_(){return!1}function zn(c){function f(g,b,T,P,M){this._reactName=g,this._targetInst=T,this.type=b,this.nativeEvent=P,this.target=M,this.currentTarget=null;for(var H in c)c.hasOwnProperty(H)&&(g=c[H],this[H]=g?g(P):P[H]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?Rp:v_,this.isPropagationStopped=v_,this}return B(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=Rp)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=Rp)},persist:function(){},isPersistent:Rp}),f}var Lc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},d0=zn(Lc),Nf=B({},Lc,{view:0,detail:0}),JK=zn(Nf),f0,h0,Tf,Mp=B({},Nf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:p0,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==Tf&&(Tf&&c.type==="mousemove"?(f0=c.screenX-Tf.screenX,h0=c.screenY-Tf.screenY):h0=f0=0,Tf=c),f0)},movementY:function(c){return"movementY"in c?c.movementY:h0}}),b_=zn(Mp),eY=B({},Mp,{dataTransfer:0}),tY=zn(eY),rY=B({},Nf,{relatedTarget:0}),m0=zn(rY),nY=B({},Lc,{animationName:0,elapsedTime:0,pseudoElement:0}),sY=zn(nY),iY=B({},Lc,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),aY=zn(iY),oY=B({},Lc,{data:0}),w_=zn(oY),lY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cY={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"},uY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dY(c){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(c):(c=uY[c])?!!f[c]:!1}function p0(){return dY}var fY=B({},Nf,{key:function(c){if(c.key){var f=lY[c.key]||c.key;if(f!=="Unidentified")return f}return c.type==="keypress"?(c=Ip(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?cY[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:p0,charCode:function(c){return c.type==="keypress"?Ip(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Ip(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),hY=zn(fY),mY=B({},Mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j_=zn(mY),pY=B({},Nf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:p0}),gY=zn(pY),xY=B({},Lc,{propertyName:0,elapsedTime:0,pseudoElement:0}),yY=zn(xY),vY=B({},Mp,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),bY=zn(vY),wY=[9,13,27,32],g0=l&&"CompositionEvent"in window,Af=null;l&&"documentMode"in document&&(Af=document.documentMode);var jY=l&&"TextEvent"in window&&!Af,S_=l&&(!g0||Af&&8<Af&&11>=Af),k_=" ",N_=!1;function T_(c,f){switch(c){case"keyup":return wY.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A_(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var $c=!1;function SY(c,f){switch(c){case"compositionend":return A_(f);case"keypress":return f.which!==32?null:(N_=!0,k_);case"textInput":return c=f.data,c===k_&&N_?null:c;default:return null}}function kY(c,f){if($c)return c==="compositionend"||!g0&&T_(c,f)?(c=y_(),Op=u0=Ha=null,$c=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return S_&&f.locale!=="ko"?null:f.data;default:return null}}var NY={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 C_(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f==="input"?!!NY[c.type]:f==="textarea"}function P_(c,f,g,b){YE(b),f=Bp(f,"onChange"),0<f.length&&(g=new d0("onChange","change",null,g,b),c.push({event:g,listeners:f}))}var Cf=null,Pf=null;function TY(c){G_(c,0)}function Dp(c){var f=Wc(c);if(ae(f))return c}function AY(c,f){if(c==="change")return f}var E_=!1;if(l){var x0;if(l){var y0="oninput"in document;if(!y0){var __=document.createElement("div");__.setAttribute("oninput","return;"),y0=typeof __.oninput=="function"}x0=y0}else x0=!1;E_=x0&&(!document.documentMode||9<document.documentMode)}function O_(){Cf&&(Cf.detachEvent("onpropertychange",I_),Pf=Cf=null)}function I_(c){if(c.propertyName==="value"&&Dp(Pf)){var f=[];P_(f,Pf,c,cl(c)),JE(TY,f)}}function CY(c,f,g){c==="focusin"?(O_(),Cf=f,Pf=g,Cf.attachEvent("onpropertychange",I_)):c==="focusout"&&O_()}function PY(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Dp(Pf)}function EY(c,f){if(c==="click")return Dp(f)}function _Y(c,f){if(c==="input"||c==="change")return Dp(f)}function OY(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var Fs=typeof Object.is=="function"?Object.is:OY;function Ef(c,f){if(Fs(c,f))return!0;if(typeof c!="object"||c===null||typeof f!="object"||f===null)return!1;var g=Object.keys(c),b=Object.keys(f);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var T=g[b];if(!u.call(f,T)||!Fs(c[T],f[T]))return!1}return!0}function R_(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function M_(c,f){var g=R_(c);c=0;for(var b;g;){if(g.nodeType===3){if(b=c+g.textContent.length,c<=f&&b>=f)return{node:g,offset:f-c};c=b}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=R_(g)}}function D_(c,f){return c&&f?c===f?!0:c&&c.nodeType===3?!1:f&&f.nodeType===3?D_(c,f.parentNode):"contains"in c?c.contains(f):c.compareDocumentPosition?!!(c.compareDocumentPosition(f)&16):!1:!1}function L_(){for(var c=window,f=at();f instanceof c.HTMLIFrameElement;){try{var g=typeof f.contentWindow.location.href=="string"}catch{g=!1}if(g)c=f.contentWindow;else break;f=at(c.document)}return f}function v0(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f&&(f==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||f==="textarea"||c.contentEditable==="true")}function IY(c){var f=L_(),g=c.focusedElem,b=c.selectionRange;if(f!==g&&g&&g.ownerDocument&&D_(g.ownerDocument.documentElement,g)){if(b!==null&&v0(g)){if(f=b.start,c=b.end,c===void 0&&(c=f),"selectionStart"in g)g.selectionStart=f,g.selectionEnd=Math.min(c,g.value.length);else if(c=(f=g.ownerDocument||document)&&f.defaultView||window,c.getSelection){c=c.getSelection();var T=g.textContent.length,P=Math.min(b.start,T);b=b.end===void 0?P:Math.min(b.end,T),!c.extend&&P>b&&(T=b,b=P,P=T),T=M_(g,P);var M=M_(g,b);T&&M&&(c.rangeCount!==1||c.anchorNode!==T.node||c.anchorOffset!==T.offset||c.focusNode!==M.node||c.focusOffset!==M.offset)&&(f=f.createRange(),f.setStart(T.node,T.offset),c.removeAllRanges(),P>b?(c.addRange(f),c.extend(M.node,M.offset)):(f.setEnd(M.node,M.offset),c.addRange(f)))}}for(f=[],c=g;c=c.parentNode;)c.nodeType===1&&f.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<f.length;g++)c=f[g],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var RY=l&&"documentMode"in document&&11>=document.documentMode,Fc=null,b0=null,_f=null,w0=!1;function $_(c,f,g){var b=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;w0||Fc==null||Fc!==at(b)||(b=Fc,"selectionStart"in b&&v0(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),_f&&Ef(_f,b)||(_f=b,b=Bp(b0,"onSelect"),0<b.length&&(f=new d0("onSelect","select",null,f,g),c.push({event:f,listeners:b}),f.target=Fc)))}function Lp(c,f){var g={};return g[c.toLowerCase()]=f.toLowerCase(),g["Webkit"+c]="webkit"+f,g["Moz"+c]="moz"+f,g}var Bc={animationend:Lp("Animation","AnimationEnd"),animationiteration:Lp("Animation","AnimationIteration"),animationstart:Lp("Animation","AnimationStart"),transitionend:Lp("Transition","TransitionEnd")},j0={},F_={};l&&(F_=document.createElement("div").style,"AnimationEvent"in window||(delete Bc.animationend.animation,delete Bc.animationiteration.animation,delete Bc.animationstart.animation),"TransitionEvent"in window||delete Bc.transitionend.transition);function $p(c){if(j0[c])return j0[c];if(!Bc[c])return c;var f=Bc[c],g;for(g in f)if(f.hasOwnProperty(g)&&g in F_)return j0[c]=f[g];return c}var B_=$p("animationend"),V_=$p("animationiteration"),q_=$p("animationstart"),W_=$p("transitionend"),z_=new Map,U_="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 Ga(c,f){z_.set(c,f),a(f,[c])}for(var S0=0;S0<U_.length;S0++){var k0=U_[S0],MY=k0.toLowerCase(),DY=k0[0].toUpperCase()+k0.slice(1);Ga(MY,"on"+DY)}Ga(B_,"onAnimationEnd"),Ga(V_,"onAnimationIteration"),Ga(q_,"onAnimationStart"),Ga("dblclick","onDoubleClick"),Ga("focusin","onFocus"),Ga("focusout","onBlur"),Ga(W_,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Of="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(" "),LY=new Set("cancel close invalid load scroll toggle".split(" ").concat(Of));function H_(c,f,g){var b=c.type||"unknown-event";c.currentTarget=g,MK(b,f,void 0,c),c.currentTarget=null}function G_(c,f){f=(f&4)!==0;for(var g=0;g<c.length;g++){var b=c[g],T=b.event;b=b.listeners;e:{var P=void 0;if(f)for(var M=b.length-1;0<=M;M--){var H=b[M],Q=H.instance,ie=H.currentTarget;if(H=H.listener,Q!==P&&T.isPropagationStopped())break e;H_(T,H,ie),P=Q}else for(M=0;M<b.length;M++){if(H=b[M],Q=H.instance,ie=H.currentTarget,H=H.listener,Q!==P&&T.isPropagationStopped())break e;H_(T,H,ie),P=Q}}}if(jp)throw c=t0,jp=!1,t0=null,c}function Xt(c,f){var g=f[O0];g===void 0&&(g=f[O0]=new Set);var b=c+"__bubble";g.has(b)||(K_(f,c,2,!1),g.add(b))}function N0(c,f,g){var b=0;f&&(b|=4),K_(g,c,b,f)}var Fp="_reactListening"+Math.random().toString(36).slice(2);function If(c){if(!c[Fp]){c[Fp]=!0,n.forEach(function(g){g!=="selectionchange"&&(LY.has(g)||N0(g,!1,c),N0(g,!0,c))});var f=c.nodeType===9?c:c.ownerDocument;f===null||f[Fp]||(f[Fp]=!0,N0("selectionchange",!1,f))}}function K_(c,f,g,b){switch(x_(f)){case 1:var T=QK;break;case 4:T=ZK;break;default:T=l0}g=T.bind(null,f,g,c),T=void 0,!e0||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(T=!0),b?T!==void 0?c.addEventListener(f,g,{capture:!0,passive:T}):c.addEventListener(f,g,!0):T!==void 0?c.addEventListener(f,g,{passive:T}):c.addEventListener(f,g,!1)}function T0(c,f,g,b,T){var P=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var M=b.tag;if(M===3||M===4){var H=b.stateNode.containerInfo;if(H===T||H.nodeType===8&&H.parentNode===T)break;if(M===4)for(M=b.return;M!==null;){var Q=M.tag;if((Q===3||Q===4)&&(Q=M.stateNode.containerInfo,Q===T||Q.nodeType===8&&Q.parentNode===T))return;M=M.return}for(;H!==null;){if(M=dl(H),M===null)return;if(Q=M.tag,Q===5||Q===6){b=P=M;continue e}H=H.parentNode}}b=b.return}JE(function(){var ie=P,fe=cl(g),me=[];e:{var de=z_.get(c);if(de!==void 0){var De=d0,We=c;switch(c){case"keypress":if(Ip(g)===0)break e;case"keydown":case"keyup":De=hY;break;case"focusin":We="focus",De=m0;break;case"focusout":We="blur",De=m0;break;case"beforeblur":case"afterblur":De=m0;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=b_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=tY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=gY;break;case B_:case V_:case q_:De=sY;break;case W_:De=yY;break;case"scroll":De=JK;break;case"wheel":De=bY;break;case"copy":case"cut":case"paste":De=aY;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=j_}var ze=(f&4)!==0,yr=!ze&&c==="scroll",re=ze?de!==null?de+"Capture":null:de;ze=[];for(var ee=ie,se;ee!==null;){se=ee;var be=se.stateNode;if(se.tag===5&&be!==null&&(se=be,re!==null&&(be=pf(ee,re),be!=null&&ze.push(Rf(ee,be,se)))),yr)break;ee=ee.return}0<ze.length&&(de=new De(de,We,null,g,fe),me.push({event:de,listeners:ze}))}}if((f&7)===0){e:{if(de=c==="mouseover"||c==="pointerover",De=c==="mouseout"||c==="pointerout",de&&g!==ll&&(We=g.relatedTarget||g.fromElement)&&(dl(We)||We[zi]))break e;if((De||de)&&(de=fe.window===fe?fe:(de=fe.ownerDocument)?de.defaultView||de.parentWindow:window,De?(We=g.relatedTarget||g.toElement,De=ie,We=We?dl(We):null,We!==null&&(yr=ul(We),We!==yr||We.tag!==5&&We.tag!==6)&&(We=null)):(De=null,We=ie),De!==We)){if(ze=b_,be="onMouseLeave",re="onMouseEnter",ee="mouse",(c==="pointerout"||c==="pointerover")&&(ze=j_,be="onPointerLeave",re="onPointerEnter",ee="pointer"),yr=De==null?de:Wc(De),se=We==null?de:Wc(We),de=new ze(be,ee+"leave",De,g,fe),de.target=yr,de.relatedTarget=se,be=null,dl(fe)===ie&&(ze=new ze(re,ee+"enter",We,g,fe),ze.target=se,ze.relatedTarget=yr,be=ze),yr=be,De&&We)t:{for(ze=De,re=We,ee=0,se=ze;se;se=Vc(se))ee++;for(se=0,be=re;be;be=Vc(be))se++;for(;0<ee-se;)ze=Vc(ze),ee--;for(;0<se-ee;)re=Vc(re),se--;for(;ee--;){if(ze===re||re!==null&&ze===re.alternate)break t;ze=Vc(ze),re=Vc(re)}ze=null}else ze=null;De!==null&&Y_(me,de,De,ze,!1),We!==null&&yr!==null&&Y_(me,yr,We,ze,!0)}}e:{if(de=ie?Wc(ie):window,De=de.nodeName&&de.nodeName.toLowerCase(),De==="select"||De==="input"&&de.type==="file")var He=AY;else if(C_(de))if(E_)He=_Y;else{He=PY;var et=CY}else(De=de.nodeName)&&De.toLowerCase()==="input"&&(de.type==="checkbox"||de.type==="radio")&&(He=EY);if(He&&(He=He(c,ie))){P_(me,He,g,fe);break e}et&&et(c,de,ie),c==="focusout"&&(et=de._wrapperState)&&et.controlled&&de.type==="number"&&zt(de,"number",de.value)}switch(et=ie?Wc(ie):window,c){case"focusin":(C_(et)||et.contentEditable==="true")&&(Fc=et,b0=ie,_f=null);break;case"focusout":_f=b0=Fc=null;break;case"mousedown":w0=!0;break;case"contextmenu":case"mouseup":case"dragend":w0=!1,$_(me,g,fe);break;case"selectionchange":if(RY)break;case"keydown":case"keyup":$_(me,g,fe)}var tt;if(g0)e:{switch(c){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else $c?T_(c,g)&&(ot="onCompositionEnd"):c==="keydown"&&g.keyCode===229&&(ot="onCompositionStart");ot&&(S_&&g.locale!=="ko"&&($c||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&$c&&(tt=y_()):(Ha=fe,u0="value"in Ha?Ha.value:Ha.textContent,$c=!0)),et=Bp(ie,ot),0<et.length&&(ot=new w_(ot,c,null,g,fe),me.push({event:ot,listeners:et}),tt?ot.data=tt:(tt=A_(g),tt!==null&&(ot.data=tt)))),(tt=jY?SY(c,g):kY(c,g))&&(ie=Bp(ie,"onBeforeInput"),0<ie.length&&(fe=new w_("onBeforeInput","beforeinput",null,g,fe),me.push({event:fe,listeners:ie}),fe.data=tt))}G_(me,f)})}function Rf(c,f,g){return{instance:c,listener:f,currentTarget:g}}function Bp(c,f){for(var g=f+"Capture",b=[];c!==null;){var T=c,P=T.stateNode;T.tag===5&&P!==null&&(T=P,P=pf(c,g),P!=null&&b.unshift(Rf(c,P,T)),P=pf(c,f),P!=null&&b.push(Rf(c,P,T))),c=c.return}return b}function Vc(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5);return c||null}function Y_(c,f,g,b,T){for(var P=f._reactName,M=[];g!==null&&g!==b;){var H=g,Q=H.alternate,ie=H.stateNode;if(Q!==null&&Q===b)break;H.tag===5&&ie!==null&&(H=ie,T?(Q=pf(g,P),Q!=null&&M.unshift(Rf(g,Q,H))):T||(Q=pf(g,P),Q!=null&&M.push(Rf(g,Q,H)))),g=g.return}M.length!==0&&c.push({event:f,listeners:M})}var $Y=/\r\n?/g,FY=/\u0000|\uFFFD/g;function X_(c){return(typeof c=="string"?c:""+c).replace($Y,`
38`).replace(FY,"")}function Vp(c,f,g){if(f=X_(f),X_(c)!==f&&g)throw Error(r(425))}function qp(){}var A0=null,C0=null;function P0(c,f){return c==="textarea"||c==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var E0=typeof setTimeout=="function"?setTimeout:void 0,BY=typeof clearTimeout=="function"?clearTimeout:void 0,Q_=typeof Promise=="function"?Promise:void 0,VY=typeof queueMicrotask=="function"?queueMicrotask:typeof Q_<"u"?function(c){return Q_.resolve(null).then(c).catch(qY)}:E0;function qY(c){setTimeout(function(){throw c})}function _0(c,f){var g=f,b=0;do{var T=g.nextSibling;if(c.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"){if(b===0){c.removeChild(T),kf(f);return}b--}else g!=="$"&&g!=="$?"&&g!=="$!"||b++;
vendor: 6,346 bytes, line 38
38g=T}while(g);kf(f)}function Ka(c){for(;c!=null;c=c.nextSibling){var f=c.nodeType;if(f===1||f===3)break;if(f===8){if(f=c.data,f==="$"||f==="$!"||f==="$?")break;if(f==="/$")return null}}return c}function Z_(c){c=c.previousSibling;for(var f=0;c;){if(c.nodeType===8){var g=c.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return c;f--}else g==="/$"&&f++}c=c.previousSibling}return null}var qc=Math.random().toString(36).slice(2),fi="__reactFiber$"+qc,Mf="__reactProps$"+qc,zi="__reactContainer$"+qc,O0="__reactEvents$"+qc,WY="__reactListeners$"+qc,zY="__reactHandles$"+qc;function dl(c){var f=c[fi];if(f)return f;for(var g=c.parentNode;g;){if(f=g[zi]||g[fi]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(c=Z_(c);c!==null;){if(g=c[fi])return g;c=Z_(c)}return f}c=g,g=c.parentNode}return null}function Df(c){return c=c[fi]||c[zi],!c||c.tag!==5&&c.tag!==6&&c.tag!==13&&c.tag!==3?null:c}function Wc(c){if(c.tag===5||c.tag===6)return c.stateNode;throw Error(r(33))}function Wp(c){return c[Mf]||null}var I0=[],zc=-1;function Ya(c){return{current:c}}function Qt(c){0>zc||(c.current=I0[zc],I0[zc]=null,zc--)}function Ut(c,f){zc++,I0[zc]=c.current,c.current=f}var Xa={},rn=Ya(Xa),_n=Ya(!1),fl=Xa;function Uc(c,f){var g=c.type.contextTypes;if(!g)return Xa;var b=c.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===f)return b.__reactInternalMemoizedMaskedChildContext;var T={},P;for(P in g)T[P]=f[P];return b&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=T),T}function On(c){return c=c.childContextTypes,c!=null}function zp(){Qt(_n),Qt(rn)}function J_(c,f,g){if(rn.current!==Xa)throw Error(r(168));Ut(rn,f),Ut(_n,g)}function eO(c,f,g){var b=c.stateNode;if(f=f.childContextTypes,typeof b.getChildContext!="function")return g;b=b.getChildContext();for(var T in b)if(!(T in f))throw Error(r(108,ge(c)||"Unknown",T));return B({},g,b)}function Up(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Xa,fl=rn.current,Ut(rn,c),Ut(_n,_n.current),!0}function tO(c,f,g){var b=c.stateNode;if(!b)throw Error(r(169));g?(c=eO(c,f,fl),b.__reactInternalMemoizedMergedChildContext=c,Qt(_n),Qt(rn),Ut(rn,c)):Qt(_n),Ut(_n,g)}var Ui=null,Hp=!1,R0=!1;function rO(c){Ui===null?Ui=[c]:Ui.push(c)}function UY(c){Hp=!0,rO(c)}function Qa(){if(!R0&&Ui!==null){R0=!0;var c=0,f=Rt;try{var g=Ui;for(Rt=1;c<g.length;c++){var b=g[c];do b=b(!0);while(b!==null)}Ui=null,Hp=!1}catch(T){throw Ui!==null&&(Ui=Ui.slice(c+1)),s_(r0,Qa),T}finally{Rt=f,R0=!1}}return null}var Hc=[],Gc=0,Gp=null,Kp=0,ps=[],gs=0,hl=null,Hi=1,Gi="";function ml(c,f){Hc[Gc++]=Kp,Hc[Gc++]=Gp,Gp=c,Kp=f}function nO(c,f,g){ps[gs++]=Hi,ps[gs++]=Gi,ps[gs++]=hl,hl=c;var b=Hi;c=Gi;var T=32-$s(b)-1;b&=~(1<<T),g+=1;var P=32-$s(f)+T;if(30<P){var M=T-T%5;P=(b&(1<<M)-1).toString(32),b>>=M,T-=M,Hi=1<<32-$s(f)+T|g<<T|b,Gi=P+c}else Hi=1<<P|g<<T|b,Gi=c}function M0(c){c.return!==null&&(ml(c,1),nO(c,1,0))}function D0(c){for(;c===Gp;)Gp=Hc[--Gc],Hc[Gc]=null,Kp=Hc[--Gc],Hc[Gc]=null;for(;c===hl;)hl=ps[--gs],ps[gs]=null,Gi=ps[--gs],ps[gs]=null,Hi=ps[--gs],ps[gs]=null}var Un=null,Hn=null,nr=!1,Bs=null;function sO(c,f){var g=bs(5,null,null,0);g.elementType="DELETED",g.stateNode=f,g.return=c,f=c.deletions,f===null?(c.deletions=[g],c.flags|=16):f.push(g)}function iO(c,f){switch(c.tag){case 5:var g=c.type;return f=f.nodeType!==1||g.toLowerCase()!==f.nodeName.toLowerCase()?null:f,f!==null?(c.stateNode=f,Un=c,Hn=Ka(f.firstChild),!0):!1;case 6:return f=c.pendingProps===""||f.nodeType!==3?null:f,f!==null?(c.stateNode=f,Un=c,Hn=null,!0):!1;case 13:return f=f.nodeType!==8?null:f,f!==null?(g=hl!==null?{id:Hi,overflow:Gi}:null,c.memoizedState={dehydrated:f,treeContext:g,retryLane:1073741824},g=bs(18,null,null,0),g.stateNode=f,g.return=c,c.child=g,Un=c,Hn=null,!0):!1;default:return!1}}function L0(c){return(c.mode&1)!==0&&(c.flags&128)===0}function $0(c){if(nr){var f=Hn;if(f){var g=f;if(!iO(c,f)){if(L0(c))throw Error(r(418));f=Ka(g.nextSibling);var b=Un;f&&iO(c,f)?sO(b,g):(c.flags=c.flags&-4097|2,nr=!1,Un=c)}}else{if(L0(c))throw Error(r(418));c.flags=c.flags&-4097|2,nr=!1,Un=c}}}function aO(c){for(c=c.return;c!==null&&c.tag!==5&&c.tag!==3&&c.tag!==13;)c=c.return;Un=c}function Yp(c){if(c!==Un)return!1;if(!nr)return aO(c),nr=!0,!1;var f;if((f=c.tag!==3)&&!(f=c.tag!==5)&&(f=c.type,f=f!=="head"&&f!=="body"&&!P0(c.type,c.memoizedProps)),f&&(f=Hn)){if(L0(c))throw oO(),Error(r(418));for(;f;)sO(c,f),f=Ka(f.nextSibling)}if(aO(c),c.tag===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));e:{for(c=c.nextSibling,f=0;c;){if(c.nodeType===8){var g=c.data;if(g==="/$"){if(f===0){Hn=Ka(c.nextSibling);break e}f--}else g!=="$"&&g!=="$!"&&g!=="$?"||f++}c=c.nextSibling}Hn=null}}else Hn=Un?Ka(c.stateNode.nextSibling):null;return!0}function oO(){for(var c=Hn;c;)c=Ka(c.nextSibling)}function Kc(){Hn=Un=null,nr=!1}function F0(c){Bs===null?Bs=[c]:Bs.push(c)}var HY=C.ReactCurrentBatchConfig;function Lf(c,f,g){if(c=g.ref,c!==null&&typeof c!="function"&&typeof c!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(r(309));var b=g.stateNode}if(!b)throw Error(r(147,c));var T=b,P=""+c;return f!==null&&f.ref!==null&&typeof f.ref=="function"&&f.ref._stringRef===P?f.ref:(f=function(M){var H=T.refs;M===null?delete H[P]:H[P]=M},f._stringRef=P,f)}if(typeof c!="string")throw Error(r(284));if(!g._owner)throw Error(r(290,c))}return c}function Xp(c,f){throw c=Object.prototype.toString.call(f),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":c))}function lO(c){var f=c._init;return f(c._payload)}function cO(c){function f(re,ee){if(c){var se=re.deletions;se===null?(re.deletions=[ee],re.flags|=16):se.push(ee)}}function g(re,ee){if(!c)return null;for(;ee!==null;)f(re,ee),ee=ee.sibling;return null}function b(re,ee){for(re=new Map;ee!==null;)ee.key!==null?re.set(ee.key,ee):re.set(ee.index,ee),ee=ee.sibling;return re}function T(re,ee){return re=io(re,ee),re.index=0,re.sibling=null,re}function P(re,ee,se){return re.index=se,c?(se=re.alternate,se!==null?(se=se.index,se<ee?(re.flags|=2,ee):se):(re.flags|=2,ee)):(re.flags|=1048576,ee)}function M(re){return c&&re.alternate===null&&(re.flags|=2),re}function H(re,ee,se,be){return ee===null||ee.tag!==6?(ee=Ew(se,re.mode,be),ee.return=re,ee):(ee=T(ee,se),ee.return=re,ee)}function Q(re,ee,se,be){var He=se.type;
vendor: 1,475 bytes, line 38
38return He===_?fe(re,ee,se.props.children,be,se.key):ee!==null&&(ee.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===K&&lO(He)===ee.type)?(be=T(ee,se.props),be.ref=Lf(re,ee,se),be.return=re,be):(be=bg(se.type,se.key,se.props,null,re.mode,be),be.ref=Lf(re,ee,se),be.return=re,be)}function ie(re,ee,se,be){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==se.containerInfo||ee.stateNode.implementation!==se.implementation?(ee=_w(se,re.mode,be),ee.return=re,ee):(ee=T(ee,se.children||[]),ee.return=re,ee)}function fe(re,ee,se,be,He){return ee===null||ee.tag!==7?(ee=jl(se,re.mode,be,He),ee.return=re,ee):(ee=T(ee,se),ee.return=re,ee)}function me(re,ee,se){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=Ew(""+ee,re.mode,se),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case A:return se=bg(ee.type,ee.key,ee.props,null,re.mode,se),se.ref=Lf(re,null,ee),se.return=re,se;case E:return ee=_w(ee,re.mode,se),ee.return=re,ee;case K:var be=ee._init;return me(re,be(ee._payload),se)}if(tn(ee)||q(ee))return ee=jl(ee,re.mode,se,null),ee.return=re,ee;Xp(re,ee)}return null}function de(re,ee,se,be){var He=ee!==null?ee.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return He!==null?null:H(re,ee,""+se,be);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case A:return se.key===He?Q(re,ee,se,be):null;case E:return se.key===He?ie(re,ee,se,be):null;case K:return He=se._init,de(re,ee,He(se._payload),be)}
vendor: 10,989 bytes, line 38
38if(tn(se)||q(se))return He!==null?null:fe(re,ee,se,be,null);Xp(re,se)}return null}function De(re,ee,se,be,He){if(typeof be=="string"&&be!==""||typeof be=="number")return re=re.get(se)||null,H(ee,re,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case A:return re=re.get(be.key===null?se:be.key)||null,Q(ee,re,be,He);case E:return re=re.get(be.key===null?se:be.key)||null,ie(ee,re,be,He);case K:var et=be._init;return De(re,ee,se,et(be._payload),He)}if(tn(be)||q(be))return re=re.get(se)||null,fe(ee,re,be,He,null);Xp(ee,be)}return null}function We(re,ee,se,be){for(var He=null,et=null,tt=ee,ot=ee=0,qr=null;tt!==null&&ot<se.length;ot++){tt.index>ot?(qr=tt,tt=null):qr=tt.sibling;var Ct=de(re,tt,se[ot],be);if(Ct===null){tt===null&&(tt=qr);break}c&&tt&&Ct.alternate===null&&f(re,tt),ee=P(Ct,ee,ot),et===null?He=Ct:et.sibling=Ct,et=Ct,tt=qr}if(ot===se.length)return g(re,tt),nr&&ml(re,ot),He;if(tt===null){for(;ot<se.length;ot++)tt=me(re,se[ot],be),tt!==null&&(ee=P(tt,ee,ot),et===null?He=tt:et.sibling=tt,et=tt);return nr&&ml(re,ot),He}for(tt=b(re,tt);ot<se.length;ot++)qr=De(tt,re,ot,se[ot],be),qr!==null&&(c&&qr.alternate!==null&&tt.delete(qr.key===null?ot:qr.key),ee=P(qr,ee,ot),et===null?He=qr:et.sibling=qr,et=qr);return c&&tt.forEach(function(ao){return f(re,ao)}),nr&&ml(re,ot),He}function ze(re,ee,se,be){var He=q(se);if(typeof He!="function")throw Error(r(150));if(se=He.call(se),se==null)throw Error(r(151));for(var et=He=null,tt=ee,ot=ee=0,qr=null,Ct=se.next();tt!==null&&!Ct.done;ot++,Ct=se.next()){tt.index>ot?(qr=tt,tt=null):qr=tt.sibling;var ao=de(re,tt,Ct.value,be);if(ao===null){tt===null&&(tt=qr);break}c&&tt&&ao.alternate===null&&f(re,tt),ee=P(ao,ee,ot),et===null?He=ao:et.sibling=ao,et=ao,tt=qr}if(Ct.done)return g(re,tt),nr&&ml(re,ot),He;if(tt===null){for(;!Ct.done;ot++,Ct=se.next())Ct=me(re,Ct.value,be),Ct!==null&&(ee=P(Ct,ee,ot),et===null?He=Ct:et.sibling=Ct,et=Ct);return nr&&ml(re,ot),He}for(tt=b(re,tt);!Ct.done;ot++,Ct=se.next())Ct=De(tt,re,ot,Ct.value,be),Ct!==null&&(c&&Ct.alternate!==null&&tt.delete(Ct.key===null?ot:Ct.key),ee=P(Ct,ee,ot),et===null?He=Ct:et.sibling=Ct,et=Ct);return c&&tt.forEach(function(NX){return f(re,NX)}),nr&&ml(re,ot),He}function yr(re,ee,se,be){if(typeof se=="object"&&se!==null&&se.type===_&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case A:e:{for(var He=se.key,et=ee;et!==null;){if(et.key===He){if(He=se.type,He===_){if(et.tag===7){g(re,et.sibling),ee=T(et,se.props.children),ee.return=re,re=ee;break e}}else if(et.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===K&&lO(He)===et.type){g(re,et.sibling),ee=T(et,se.props),ee.ref=Lf(re,et,se),ee.return=re,re=ee;break e}g(re,et);break}else f(re,et);et=et.sibling}se.type===_?(ee=jl(se.props.children,re.mode,be,se.key),ee.return=re,re=ee):(be=bg(se.type,se.key,se.props,null,re.mode,be),be.ref=Lf(re,ee,se),be.return=re,re=be)}return M(re);case E:e:{for(et=se.key;ee!==null;){if(ee.key===et)if(ee.tag===4&&ee.stateNode.containerInfo===se.containerInfo&&ee.stateNode.implementation===se.implementation){g(re,ee.sibling),ee=T(ee,se.children||[]),ee.return=re,re=ee;break e}else{g(re,ee);break}else f(re,ee);ee=ee.sibling}ee=_w(se,re.mode,be),ee.return=re,re=ee}return M(re);case K:return et=se._init,yr(re,ee,et(se._payload),be)}if(tn(se))return We(re,ee,se,be);if(q(se))return ze(re,ee,se,be);Xp(re,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ee!==null&&ee.tag===6?(g(re,ee.sibling),ee=T(ee,se),ee.return=re,re=ee):(g(re,ee),ee=Ew(se,re.mode,be),ee.return=re,re=ee),M(re)):g(re,ee)}return yr}var Yc=cO(!0),uO=cO(!1),Qp=Ya(null),Zp=null,Xc=null,B0=null;function V0(){B0=Xc=Zp=null}function q0(c){var f=Qp.current;Qt(Qp),c._currentValue=f}function W0(c,f,g){for(;c!==null;){var b=c.alternate;if((c.childLanes&f)!==f?(c.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),c===g)break;c=c.return}}function Qc(c,f){Zp=c,B0=Xc=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&f)!==0&&(In=!0),c.firstContext=null)}function xs(c){var f=c._currentValue;if(B0!==c)if(c={context:c,memoizedValue:f,next:null},Xc===null){if(Zp===null)throw Error(r(308));Xc=c,Zp.dependencies={lanes:0,firstContext:c}}else Xc=Xc.next=c;return f}var pl=null;function z0(c){pl===null?pl=[c]:pl.push(c)}function dO(c,f,g,b){var T=f.interleaved;return T===null?(g.next=g,z0(f)):(g.next=T.next,T.next=g),f.interleaved=g,Ki(c,b)}function Ki(c,f){c.lanes|=f;var g=c.alternate;for(g!==null&&(g.lanes|=f),g=c,c=c.return;c!==null;)c.childLanes|=f,g=c.alternate,g!==null&&(g.childLanes|=f),g=c,c=c.return;return g.tag===3?g.stateNode:null}var Za=!1;function U0(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fO(c,f){c=c.updateQueue,f.updateQueue===c&&(f.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function Yi(c,f){return{eventTime:c,lane:f,tag:0,payload:null,callback:null,next:null}}function Ja(c,f,g){var b=c.updateQueue;if(b===null)return null;if(b=b.shared,(kt&2)!==0){var T=b.pending;return T===null?f.next=f:(f.next=T.next,T.next=f),b.pending=f,Ki(c,g)}return T=b.interleaved,T===null?(f.next=f,z0(b)):(f.next=T.next,T.next=f),b.interleaved=f,Ki(c,g)}function Jp(c,f,g){if(f=f.updateQueue,f!==null&&(f=f.shared,(g&4194240)!==0)){var b=f.lanes;b&=c.pendingLanes,g|=b,f.lanes=g,i0(c,g)}}function hO(c,f){var g=c.updateQueue,b=c.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var T=null,P=null;if(g=g.firstBaseUpdate,g!==null){do{var M={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};P===null?T=P=M:P=P.next=M,g=g.next}while(g!==null);P===null?T=P=f:P=P.next=f}else T=P=f;g={baseState:b.baseState,firstBaseUpdate:T,lastBaseUpdate:P,shared:b.shared,effects:b.effects},c.updateQueue=g;return}c=g.lastBaseUpdate,c===null?g.firstBaseUpdate=f:c.next=f,g.lastBaseUpdate=f}function eg(c,f,g,b){var T=c.updateQueue;Za=!1;var P=T.firstBaseUpdate,M=T.lastBaseUpdate,H=T.shared.pending;if(H!==null){T.shared.pending=null;var Q=H,ie=Q.next;Q.next=null,M===null?P=ie:M.next=ie,M=Q;var fe=c.alternate;fe!==null&&(fe=fe.updateQueue,H=fe.lastBaseUpdate,H!==M&&(H===null?fe.firstBaseUpdate=ie:H.next=ie,fe.lastBaseUpdate=Q))}if(P!==null){var me=T.baseState;M=0,fe=ie=Q=null,H=P;do{var de=H.lane,De=H.eventTime;if((b&de)===de){fe!==null&&(fe=fe.next={eventTime:De,lane:0,tag:H.tag,payload:H.payload,callback:H.callback,next:null});e:{var We=c,ze=H;switch(de=f,De=g,ze.tag){case 1:if(We=ze.payload,typeof We=="function"){me=We.call(De,me,de);break e}me=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=ze.payload,de=typeof We=="function"?We.call(De,me,de):We,de==null)break e;me=B({},me,de);break e;case 2:Za=!0}}H.callback!==null&&H.lane!==0&&(c.flags|=64,de=T.effects,de===null?T.effects=[H]:de.push(H))}else De={eventTime:De,lane:de,tag:H.tag,payload:H.payload,callback:H.callback,next:null},fe===null?(ie=fe=De,Q=me):fe=fe.next=De,M|=de;if(H=H.next,H===null){if(H=T.shared.pending,H===null)break;de=H,H=de.next,de.next=null,T.lastBaseUpdate=de,T.shared.pending=null}}while(!0);if(fe===null&&(Q=me),T.baseState=Q,T.firstBaseUpdate=ie,T.lastBaseUpdate=fe,f=T.shared.interleaved,f!==null){T=f;do M|=T.lane,T=T.next;while(T!==f)}else P===null&&(T.shared.lanes=0);yl|=M,c.lanes=M,c.memoizedState=me}}function mO(c,f,g){if(c=f.effects,f.effects=null,c!==null)for(f=0;f<c.length;f++){var b=c[f],T=b.callback;if(T!==null){if(b.callback=null,b=g,typeof T!="function")throw Error(r(191,T));T.call(b)}}}var $f={},hi=Ya($f),Ff=Ya($f),Bf=Ya($f);function gl(c){if(c===$f)throw Error(r(174));return c}function H0(c,f){switch(Ut(Bf,f),Ut(Ff,c),Ut(hi,$f),c=f.nodeType,c){case 9:case 11:f=(f=f.documentElement)?f.namespaceURI:ne(null,"");break;default:c=c===8?f.parentNode:f,f=c.namespaceURI||null,c=c.tagName,f=ne(f,c)}Qt(hi),Ut(hi,f)}function Zc(){Qt(hi),Qt(Ff),Qt(Bf)}function pO(c){gl(Bf.current);var f=gl(hi.current),g=ne(f,c.type);f!==g&&(Ut(Ff,c),Ut(hi,g))}function G0(c){Ff.current===c&&(Qt(hi),Qt(Ff))}var ar=Ya(0);function tg(c){for(var f=c;f!==null;){if(f.tag===13){var g=f.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var K0=[];function Y0(){for(var c=0;c<K0.length;c++)K0[c]._workInProgressVersionPrimary=null;K0.length=0}var rg=C.ReactCurrentDispatcher,X0=C.ReactCurrentBatchConfig,xl=0,or=null,Er=null,Br=null,ng=!1,Vf=!1,qf=0,GY=0;function nn(){throw Error(r(321))}function Q0(c,f){if(f===null)return!1;for(var g=0;g<f.length&&g<c.length;g++)if(!Fs(c[g],f[g]))return!1;return!0}function Z0(c,f,g,b,T,P){if(xl=P,or=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,rg.current=c===null||c.memoizedState===null?QY:ZY,c=g(b,T),Vf){P=0;do{if(Vf=!1,qf=0,25<=P)throw Error(r(301));P+=1,Br=Er=null,f.updateQueue=null,rg.current=JY,c=g(b,T)}while(Vf)}if(rg.current=ag,f=Er!==null&&Er.next!==null,xl=0,Br=Er=or=null,ng=!1,f)throw Error(r(300));return c}function J0(){var c=qf!==0;return qf=0,c}function mi(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?or.memoizedState=Br=c:Br=Br.next=c,Br}function ys(){if(Er===null){var c=or.alternate;c=c!==null?c.memoizedState:null}else c=Er.next;var f=Br===null?or.memoizedState:Br.next;if(f!==null)Br=f,Er=c;else{if(c===null)throw Error(r(310));Er=c,c={memoizedState:Er.memoizedState,baseState:Er.baseState,baseQueue:Er.baseQueue,queue:Er.queue,next:null},Br===null?or.memoizedState=Br=c:Br=Br.next=c}return Br}function Wf(c,f){return typeof f=="function"?f(c):f}function ew(c){var f=ys(),g=f.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=c;var b=Er,T=b.baseQueue,P=g.pending;if(P!==null){if(T!==null){var M=T.next;T.next=P.next,P.next=M}b.baseQueue=T=P,g.pending=null}if(T!==null){P=T.next,b=b.baseState;var H=M=null,Q=null,ie=P;do{var fe=ie.lane;if((xl&fe)===fe)Q!==null&&(Q=Q.next={lane:0,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null}),b=ie.hasEagerState?ie.eagerState:c(b,ie.action);else{var me={lane:fe,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null};Q===null?(H=Q=me,M=b):Q=Q.next=me,or.lanes|=fe,yl|=fe}ie=ie.next}while(ie!==null&&ie!==P);Q===null?M=b:Q.next=H,Fs(b,f.memoizedState)||(In=!0),f.memoizedState=b,f.baseState=M,f.baseQueue=Q,g.lastRenderedState=b}if(c=g.interleaved,c!==null){T=c;do P=T.lane,or.lanes|=P,yl|=P,T=T.next;while(T!==c)}else T===null&&(g.lanes=0);return[f.memoizedState,g.dispatch]}function tw(c){var f=ys(),g=f.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=c;
vendor: 4,300 bytes, line 38
38var b=g.dispatch,T=g.pending,P=f.memoizedState;if(T!==null){g.pending=null;var M=T=T.next;do P=c(P,M.action),M=M.next;while(M!==T);Fs(P,f.memoizedState)||(In=!0),f.memoizedState=P,f.baseQueue===null&&(f.baseState=P),g.lastRenderedState=P}return[P,b]}function gO(){}function xO(c,f){var g=or,b=ys(),T=f(),P=!Fs(b.memoizedState,T);if(P&&(b.memoizedState=T,In=!0),b=b.queue,rw(bO.bind(null,g,b,c),[c]),b.getSnapshot!==f||P||Br!==null&&Br.memoizedState.tag&1){if(g.flags|=2048,zf(9,vO.bind(null,g,b,T,f),void 0,null),Vr===null)throw Error(r(349));(xl&30)!==0||yO(g,f,T)}return T}function yO(c,f,g){c.flags|=16384,c={getSnapshot:f,value:g},f=or.updateQueue,f===null?(f={lastEffect:null,stores:null},or.updateQueue=f,f.stores=[c]):(g=f.stores,g===null?f.stores=[c]:g.push(c))}function vO(c,f,g,b){f.value=g,f.getSnapshot=b,wO(f)&&jO(c)}function bO(c,f,g){return g(function(){wO(f)&&jO(c)})}function wO(c){var f=c.getSnapshot;c=c.value;try{var g=f();return!Fs(c,g)}catch{return!0}}function jO(c){var f=Ki(c,1);f!==null&&zs(f,c,1,-1)}function SO(c){var f=mi();return typeof c=="function"&&(c=c()),f.memoizedState=f.baseState=c,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:c},f.queue=c,c=c.dispatch=XY.bind(null,or,c),[f.memoizedState,c]}function zf(c,f,g,b){return c={tag:c,create:f,destroy:g,deps:b,next:null},f=or.updateQueue,f===null?(f={lastEffect:null,stores:null},or.updateQueue=f,f.lastEffect=c.next=c):(g=f.lastEffect,g===null?f.lastEffect=c.next=c:(b=g.next,g.next=c,c.next=b,f.lastEffect=c)),c}function kO(){return ys().memoizedState}function sg(c,f,g,b){var T=mi();or.flags|=c,T.memoizedState=zf(1|f,g,void 0,b===void 0?null:b)}function ig(c,f,g,b){var T=ys();b=b===void 0?null:b;var P=void 0;if(Er!==null){var M=Er.memoizedState;if(P=M.destroy,b!==null&&Q0(b,M.deps)){T.memoizedState=zf(f,g,P,b);return}}or.flags|=c,T.memoizedState=zf(1|f,g,P,b)}function NO(c,f){return sg(8390656,8,c,f)}function rw(c,f){return ig(2048,8,c,f)}function TO(c,f){return ig(4,2,c,f)}function AO(c,f){return ig(4,4,c,f)}function CO(c,f){if(typeof f=="function")return c=c(),f(c),function(){f(null)};if(f!=null)return c=c(),f.current=c,function(){f.current=null}}function PO(c,f,g){return g=g!=null?g.concat([c]):null,ig(4,4,CO.bind(null,f,c),g)}function nw(){}function EO(c,f){var g=ys();f=f===void 0?null:f;var b=g.memoizedState;return b!==null&&f!==null&&Q0(f,b[1])?b[0]:(g.memoizedState=[c,f],c)}function _O(c,f){var g=ys();f=f===void 0?null:f;var b=g.memoizedState;return b!==null&&f!==null&&Q0(f,b[1])?b[0]:(c=c(),g.memoizedState=[c,f],c)}function OO(c,f,g){return(xl&21)===0?(c.baseState&&(c.baseState=!1,In=!0),c.memoizedState=g):(Fs(g,f)||(g=l_(),or.lanes|=g,yl|=g,c.baseState=!0),f)}function KY(c,f){var g=Rt;Rt=g!==0&&4>g?g:4,c(!0);var b=X0.transition;X0.transition={};try{c(!1),f()}finally{Rt=g,X0.transition=b}}function IO(){return ys().memoizedState}function YY(c,f,g){var b=no(c);if(g={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null},RO(c))MO(f,g);else if(g=dO(c,f,g,b),g!==null){var T=wn();zs(g,c,b,T),DO(g,f,b)}}function XY(c,f,g){var b=no(c),T={lane:b,action:g,hasEagerState:!1,eagerState:null,next:null};if(RO(c))MO(f,T);else{var P=c.alternate;if(c.lanes===0&&(P===null||P.lanes===0)&&(P=f.lastRenderedReducer,P!==null))try{var M=f.lastRenderedState,H=P(M,g);if(T.hasEagerState=!0,T.eagerState=H,Fs(H,M)){var Q=f.interleaved;Q===null?(T.next=T,z0(f)):(T.next=Q.next,Q.next=T),f.interleaved=T;return}}catch{}finally{}g=dO(c,f,T,b),g!==null&&(T=wn(),zs(g,c,b,T),DO(g,f,b))}}function RO(c){var f=c.alternate;return c===or||f!==null&&f===or}function MO(c,f){Vf=ng=!0;var g=c.pending;g===null?f.next=f:(f.next=g.next,g.next=f),c.pending=f}function DO(c,f,g){if((g&4194240)!==0){var b=f.lanes;b&=c.pendingLanes,g|=b,f.lanes=g,i0(c,g)}}var ag={readContext:xs,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useInsertionEffect:nn,useLayoutEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useMutableSource:nn,useSyncExternalStore:nn,useId:nn,unstable_isNewReconciler:!1},QY={readContext:xs,useCallback:function(c,f){return mi().memoizedState=[c,f===void 0?null:f],c},useContext:xs,useEffect:NO,useImperativeHandle:function(c,f,g){return g=g!=null?g.concat([c]):null,
vendor: 4,738 bytes, line 38
38sg(4194308,4,CO.bind(null,f,c),g)},useLayoutEffect:function(c,f){return sg(4194308,4,c,f)},useInsertionEffect:function(c,f){return sg(4,2,c,f)},useMemo:function(c,f){var g=mi();return f=f===void 0?null:f,c=c(),g.memoizedState=[c,f],c},useReducer:function(c,f,g){var b=mi();return f=g!==void 0?g(f):f,b.memoizedState=b.baseState=f,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:f},b.queue=c,c=c.dispatch=YY.bind(null,or,c),[b.memoizedState,c]},useRef:function(c){var f=mi();return c={current:c},f.memoizedState=c},useState:SO,useDebugValue:nw,useDeferredValue:function(c){return mi().memoizedState=c},useTransition:function(){var c=SO(!1),f=c[0];return c=KY.bind(null,c[1]),mi().memoizedState=c,[f,c]},useMutableSource:function(){},useSyncExternalStore:function(c,f,g){var b=or,T=mi();if(nr){if(g===void 0)throw Error(r(407));g=g()}else{if(g=f(),Vr===null)throw Error(r(349));(xl&30)!==0||yO(b,f,g)}T.memoizedState=g;var P={value:g,getSnapshot:f};return T.queue=P,NO(bO.bind(null,b,P,c),[c]),b.flags|=2048,zf(9,vO.bind(null,b,P,g,f),void 0,null),g},useId:function(){var c=mi(),f=Vr.identifierPrefix;if(nr){var g=Gi,b=Hi;g=(b&~(1<<32-$s(b)-1)).toString(32)+g,f=":"+f+"R"+g,g=qf++,0<g&&(f+="H"+g.toString(32)),f+=":"}else g=GY++,f=":"+f+"r"+g.toString(32)+":";return c.memoizedState=f},unstable_isNewReconciler:!1},ZY={readContext:xs,useCallback:EO,useContext:xs,useEffect:rw,useImperativeHandle:PO,useInsertionEffect:TO,useLayoutEffect:AO,useMemo:_O,useReducer:ew,useRef:kO,useState:function(){return ew(Wf)},useDebugValue:nw,useDeferredValue:function(c){var f=ys();return OO(f,Er.memoizedState,c)},useTransition:function(){var c=ew(Wf)[0],f=ys().memoizedState;return[c,f]},useMutableSource:gO,useSyncExternalStore:xO,useId:IO,unstable_isNewReconciler:!1},JY={readContext:xs,useCallback:EO,useContext:xs,useEffect:rw,useImperativeHandle:PO,useInsertionEffect:TO,useLayoutEffect:AO,useMemo:_O,useReducer:tw,useRef:kO,useState:function(){return tw(Wf)},useDebugValue:nw,useDeferredValue:function(c){var f=ys();return Er===null?f.memoizedState=c:OO(f,Er.memoizedState,c)},useTransition:function(){var c=tw(Wf)[0],f=ys().memoizedState;return[c,f]},useMutableSource:gO,useSyncExternalStore:xO,useId:IO,unstable_isNewReconciler:!1};function Vs(c,f){if(c&&c.defaultProps){f=B({},f),c=c.defaultProps;for(var g in c)f[g]===void 0&&(f[g]=c[g]);return f}return f}function sw(c,f,g,b){f=c.memoizedState,g=g(b,f),g=g==null?f:B({},f,g),c.memoizedState=g,c.lanes===0&&(c.updateQueue.baseState=g)}var og={isMounted:function(c){return(c=c._reactInternals)?ul(c)===c:!1},enqueueSetState:function(c,f,g){c=c._reactInternals;var b=wn(),T=no(c),P=Yi(b,T);P.payload=f,g!=null&&(P.callback=g),f=Ja(c,P,T),f!==null&&(zs(f,c,T,b),Jp(f,c,T))},enqueueReplaceState:function(c,f,g){c=c._reactInternals;var b=wn(),T=no(c),P=Yi(b,T);P.tag=1,P.payload=f,g!=null&&(P.callback=g),f=Ja(c,P,T),f!==null&&(zs(f,c,T,b),Jp(f,c,T))},enqueueForceUpdate:function(c,f){c=c._reactInternals;var g=wn(),b=no(c),T=Yi(g,b);T.tag=2,f!=null&&(T.callback=f),f=Ja(c,T,b),f!==null&&(zs(f,c,b,g),Jp(f,c,b))}};function LO(c,f,g,b,T,P,M){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(b,P,M):f.prototype&&f.prototype.isPureReactComponent?!Ef(g,b)||!Ef(T,P):!0}function $O(c,f,g){var b=!1,T=Xa,P=f.contextType;return typeof P=="object"&&P!==null?P=xs(P):(T=On(f)?fl:rn.current,b=f.contextTypes,P=(b=b!=null)?Uc(c,T):Xa),f=new f(g,P),c.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=og,c.stateNode=f,f._reactInternals=c,b&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=T,c.__reactInternalMemoizedMaskedChildContext=P),f}function FO(c,f,g,b){c=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(g,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(g,b),f.state!==c&&og.enqueueReplaceState(f,f.state,null)}function iw(c,f,g,b){var T=c.stateNode;T.props=g,T.state=c.memoizedState,T.refs={},U0(c);var P=f.contextType;typeof P=="object"&&P!==null?T.context=xs(P):(P=On(f)?fl:rn.current,T.context=Uc(c,P)),T.state=c.memoizedState,P=f.getDerivedStateFromProps,typeof P=="function"&&(sw(c,f,P,g),T.state=c.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(f=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),f!==T.state&&og.enqueueReplaceState(T,T.state,null),eg(c,g,T,b),T.state=c.memoizedState),typeof T.componentDidMount=="function"&&(c.flags|=4194308)}
vendor: 40,721 bytes, lines 38-40
38function Jc(c,f){try{var g="",b=f;do g+=$e(b),b=b.return;while(b);var T=g}catch(P){T=`
39Error generating stack: `+P.message+`
40`+P.stack}return{value:c,source:f,stack:T,digest:null}}function aw(c,f,g){return{value:c,source:null,stack:g??null,digest:f??null}}function ow(c,f){try{console.error(f.value)}catch(g){setTimeout(function(){throw g})}}var eX=typeof WeakMap=="function"?WeakMap:Map;function BO(c,f,g){g=Yi(-1,g),g.tag=3,g.payload={element:null};var b=f.value;return g.callback=function(){mg||(mg=!0,jw=b),ow(c,f)},g}function VO(c,f,g){g=Yi(-1,g),g.tag=3;var b=c.type.getDerivedStateFromError;if(typeof b=="function"){var T=f.value;g.payload=function(){return b(T)},g.callback=function(){ow(c,f)}}var P=c.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(g.callback=function(){ow(c,f),typeof b!="function"&&(to===null?to=new Set([this]):to.add(this));var M=f.stack;this.componentDidCatch(f.value,{componentStack:M!==null?M:""})}),g}function qO(c,f,g){var b=c.pingCache;if(b===null){b=c.pingCache=new eX;var T=new Set;b.set(f,T)}else T=b.get(f),T===void 0&&(T=new Set,b.set(f,T));T.has(g)||(T.add(g),c=mX.bind(null,c,f,g),f.then(c,c))}function WO(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function zO(c,f,g,b,T){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(f=Yi(-1,1),f.tag=2,Ja(g,f,1))),g.lanes|=1),c):(c.flags|=65536,c.lanes=T,c)}var tX=C.ReactCurrentOwner,In=!1;function bn(c,f,g,b){f.child=c===null?uO(f,null,g,b):Yc(f,c.child,g,b)}function UO(c,f,g,b,T){g=g.render;var P=f.ref;return Qc(f,T),b=Z0(c,f,g,b,P,T),g=J0(),c!==null&&!In?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,Xi(c,f,T)):(nr&&g&&M0(f),f.flags|=1,bn(c,f,b,T),f.child)}function HO(c,f,g,b,T){if(c===null){var P=g.type;return typeof P=="function"&&!Pw(P)&&P.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(f.tag=15,f.type=P,GO(c,f,P,b,T)):(c=bg(g.type,null,b,f,f.mode,T),c.ref=f.ref,c.return=f,f.child=c)}if(P=c.child,(c.lanes&T)===0){var M=P.memoizedProps;if(g=g.compare,g=g!==null?g:Ef,g(M,b)&&c.ref===f.ref)return Xi(c,f,T)}return f.flags|=1,c=io(P,b),c.ref=f.ref,c.return=f,f.child=c}function GO(c,f,g,b,T){if(c!==null){var P=c.memoizedProps;if(Ef(P,b)&&c.ref===f.ref)if(In=!1,f.pendingProps=b=P,(c.lanes&T)!==0)(c.flags&131072)!==0&&(In=!0);else return f.lanes=c.lanes,Xi(c,f,T)}return lw(c,f,g,b,T)}function KO(c,f,g){var b=f.pendingProps,T=b.children,P=c!==null?c.memoizedState:null;if(b.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(tu,Gn),Gn|=g;else{if((g&1073741824)===0)return c=P!==null?P.baseLanes|g:g,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,Ut(tu,Gn),Gn|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=P!==null?P.baseLanes:g,Ut(tu,Gn),Gn|=b}else P!==null?(b=P.baseLanes|g,f.memoizedState=null):b=g,Ut(tu,Gn),Gn|=b;return bn(c,f,T,g),f.child}function YO(c,f){var g=f.ref;(c===null&&g!==null||c!==null&&c.ref!==g)&&(f.flags|=512,f.flags|=2097152)}function lw(c,f,g,b,T){var P=On(g)?fl:rn.current;return P=Uc(f,P),Qc(f,T),g=Z0(c,f,g,b,P,T),b=J0(),c!==null&&!In?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,Xi(c,f,T)):(nr&&b&&M0(f),f.flags|=1,bn(c,f,g,T),f.child)}function XO(c,f,g,b,T){if(On(g)){var P=!0;Up(f)}else P=!1;if(Qc(f,T),f.stateNode===null)cg(c,f),$O(f,g,b),iw(f,g,b,T),b=!0;else if(c===null){var M=f.stateNode,H=f.memoizedProps;M.props=H;var Q=M.context,ie=g.contextType;typeof ie=="object"&&ie!==null?ie=xs(ie):(ie=On(g)?fl:rn.current,ie=Uc(f,ie));var fe=g.getDerivedStateFromProps,me=typeof fe=="function"||typeof M.getSnapshotBeforeUpdate=="function";me||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(H!==b||Q!==ie)&&FO(f,M,b,ie),Za=!1;var de=f.memoizedState;M.state=de,eg(f,b,M,T),Q=f.memoizedState,H!==b||de!==Q||_n.current||Za?(typeof fe=="function"&&(sw(f,g,fe,b),Q=f.memoizedState),(H=Za||LO(f,g,H,b,de,Q,ie))?(me||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(f.flags|=4194308)):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=Q),M.props=b,M.state=Q,M.context=ie,b=H):(typeof M.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{M=f.stateNode,fO(c,f),H=f.memoizedProps,ie=f.type===f.elementType?H:Vs(f.type,H),M.props=ie,me=f.pendingProps,de=M.context,Q=g.contextType,typeof Q=="object"&&Q!==null?Q=xs(Q):(Q=On(g)?fl:rn.current,Q=Uc(f,Q));var De=g.getDerivedStateFromProps;(fe=typeof De=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(H!==me||de!==Q)&&FO(f,M,b,Q),Za=!1,de=f.memoizedState,M.state=de,eg(f,b,M,T);var We=f.memoizedState;H!==me||de!==We||_n.current||Za?(typeof De=="function"&&(sw(f,g,De,b),We=f.memoizedState),(ie=Za||LO(f,g,ie,b,de,We,Q)||!1)?(fe||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(b,We,Q),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(b,We,Q)),typeof M.componentDidUpdate=="function"&&(f.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof M.componentDidUpdate!="function"||H===c.memoizedProps&&de===c.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||H===c.memoizedProps&&de===c.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=We),M.props=b,M.state=We,M.context=Q,b=ie):(typeof M.componentDidUpdate!="function"||H===c.memoizedProps&&de===c.memoizedState||(f.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||H===c.memoizedProps&&de===c.memoizedState||(f.flags|=1024),b=!1)}return cw(c,f,g,b,P,T)}function cw(c,f,g,b,T,P){YO(c,f);var M=(f.flags&128)!==0;if(!b&&!M)return T&&tO(f,g,!1),Xi(c,f,P);b=f.stateNode,tX.current=f;var H=M&&typeof g.getDerivedStateFromError!="function"?null:b.render();return f.flags|=1,c!==null&&M?(f.child=Yc(f,c.child,null,P),f.child=Yc(f,null,H,P)):bn(c,f,H,P),f.memoizedState=b.state,T&&tO(f,g,!0),f.child}function QO(c){var f=c.stateNode;f.pendingContext?J_(c,f.pendingContext,f.pendingContext!==f.context):f.context&&J_(c,f.context,!1),H0(c,f.containerInfo)}function ZO(c,f,g,b,T){return Kc(),F0(T),f.flags|=256,bn(c,f,g,b),f.child}var uw={dehydrated:null,treeContext:null,retryLane:0};function dw(c){return{baseLanes:c,cachePool:null,transitions:null}}function JO(c,f,g){var b=f.pendingProps,T=ar.current,P=!1,M=(f.flags&128)!==0,H;if((H=M)||(H=c!==null&&c.memoizedState===null?!1:(T&2)!==0),H?(P=!0,f.flags&=-129):(c===null||c.memoizedState!==null)&&(T|=1),Ut(ar,T&1),c===null)return $0(f),c=f.memoizedState,c!==null&&(c=c.dehydrated,c!==null)?((f.mode&1)===0?f.lanes=1:c.data==="$!"?f.lanes=8:f.lanes=1073741824,null):(M=b.children,c=b.fallback,P?(b=f.mode,P=f.child,M={mode:"hidden",children:M},(b&1)===0&&P!==null?(P.childLanes=0,P.pendingProps=M):P=wg(M,b,0,null),c=jl(c,b,g,null),P.return=f,c.return=f,P.sibling=c,f.child=P,f.child.memoizedState=dw(g),f.memoizedState=uw,c):fw(f,M));if(T=c.memoizedState,T!==null&&(H=T.dehydrated,H!==null))return rX(c,f,M,b,H,T,g);if(P){P=b.fallback,M=f.mode,T=c.child,H=T.sibling;var Q={mode:"hidden",children:b.children};return(M&1)===0&&f.child!==T?(b=f.child,b.childLanes=0,b.pendingProps=Q,f.deletions=null):(b=io(T,Q),b.subtreeFlags=T.subtreeFlags&14680064),H!==null?P=io(H,P):(P=jl(P,M,g,null),P.flags|=2),P.return=f,b.return=f,b.sibling=P,f.child=b,b=P,P=f.child,M=c.child.memoizedState,M=M===null?dw(g):{baseLanes:M.baseLanes|g,cachePool:null,transitions:M.transitions},P.memoizedState=M,P.childLanes=c.childLanes&~g,f.memoizedState=uw,b}return P=c.child,c=P.sibling,b=io(P,{mode:"visible",children:b.children}),(f.mode&1)===0&&(b.lanes=g),b.return=f,b.sibling=null,c!==null&&(g=f.deletions,g===null?(f.deletions=[c],f.flags|=16):g.push(c)),f.child=b,f.memoizedState=null,b}function fw(c,f){return f=wg({mode:"visible",children:f},c.mode,0,null),f.return=c,c.child=f}function lg(c,f,g,b){return b!==null&&F0(b),Yc(f,c.child,null,g),c=fw(f,f.pendingProps.children),c.flags|=2,f.memoizedState=null,c}function rX(c,f,g,b,T,P,M){if(g)return f.flags&256?(f.flags&=-257,b=aw(Error(r(422))),lg(c,f,M,b)):f.memoizedState!==null?(f.child=c.child,f.flags|=128,null):(P=b.fallback,T=f.mode,b=wg({mode:"visible",children:b.children},T,0,null),P=jl(P,T,M,null),P.flags|=2,b.return=f,P.return=f,b.sibling=P,f.child=b,(f.mode&1)!==0&&Yc(f,c.child,null,M),f.child.memoizedState=dw(M),f.memoizedState=uw,P);if((f.mode&1)===0)return lg(c,f,M,null);if(T.data==="$!"){if(b=T.nextSibling&&T.nextSibling.dataset,b)var H=b.dgst;return b=H,P=Error(r(419)),b=aw(P,b,void 0),lg(c,f,M,b)}if(H=(M&c.childLanes)!==0,In||H){if(b=Vr,b!==null){switch(M&-M){case 4:T=2;break;case 16:T=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:T=32;break;case 536870912:T=268435456;break;default:T=0}T=(T&(b.suspendedLanes|M))!==0?0:T,T!==0&&T!==P.retryLane&&(P.retryLane=T,Ki(c,T),zs(b,c,T,-1))}return Cw(),b=aw(Error(r(421))),lg(c,f,M,b)}return T.data==="$?"?(f.flags|=128,f.child=c.child,f=pX.bind(null,c),T._reactRetry=f,null):(c=P.treeContext,Hn=Ka(T.nextSibling),Un=f,nr=!0,Bs=null,c!==null&&(ps[gs++]=Hi,ps[gs++]=Gi,ps[gs++]=hl,Hi=c.id,Gi=c.overflow,hl=f),f=fw(f,b.children),f.flags|=4096,f)}function e4(c,f,g){c.lanes|=f;var b=c.alternate;b!==null&&(b.lanes|=f),W0(c.return,f,g)}function hw(c,f,g,b,T){var P=c.memoizedState;P===null?c.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:T}:(P.isBackwards=f,P.rendering=null,P.renderingStartTime=0,P.last=b,P.tail=g,P.tailMode=T)}function t4(c,f,g){var b=f.pendingProps,T=b.revealOrder,P=b.tail;if(bn(c,f,b.children,g),b=ar.current,(b&2)!==0)b=b&1|2,f.flags|=128;else{if(c!==null&&(c.flags&128)!==0)e:for(c=f.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&e4(c,g,f);else if(c.tag===19)e4(c,g,f);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===f)break e;for(;c.sibling===null;){if(c.return===null||c.return===f)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}b&=1}if(Ut(ar,b),(f.mode&1)===0)f.memoizedState=null;else switch(T){case"forwards":for(g=f.child,T=null;g!==null;)c=g.alternate,c!==null&&tg(c)===null&&(T=g),g=g.sibling;g=T,g===null?(T=f.child,f.child=null):(T=g.sibling,g.sibling=null),hw(f,!1,T,g,P);break;case"backwards":for(g=null,T=f.child,f.child=null;T!==null;){if(c=T.alternate,c!==null&&tg(c)===null){f.child=T;break}c=T.sibling,T.sibling=g,g=T,T=c}hw(f,!0,g,null,P);break;case"together":hw(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function cg(c,f){(f.mode&1)===0&&c!==null&&(c.alternate=null,f.alternate=null,f.flags|=2)}function Xi(c,f,g){if(c!==null&&(f.dependencies=c.dependencies),yl|=f.lanes,(g&f.childLanes)===0)return null;if(c!==null&&f.child!==c.child)throw Error(r(153));if(f.child!==null){for(c=f.child,g=io(c,c.pendingProps),f.child=g,g.return=f;c.sibling!==null;)c=c.sibling,g=g.sibling=io(c,c.pendingProps),g.return=f;g.sibling=null}return f.child}function nX(c,f,g){switch(f.tag){case 3:QO(f),Kc();break;case 5:pO(f);break;case 1:On(f.type)&&Up(f);break;case 4:H0(f,f.stateNode.containerInfo);break;case 10:var b=f.type._context,T=f.memoizedProps.value;Ut(Qp,b._currentValue),b._currentValue=T;break;case 13:if(b=f.memoizedState,b!==null)return b.dehydrated!==null?(Ut(ar,ar.current&1),f.flags|=128,null):(g&f.child.childLanes)!==0?JO(c,f,g):(Ut(ar,ar.current&1),c=Xi(c,f,g),c!==null?c.sibling:null);Ut(ar,ar.current&1);break;case 19:if(b=(g&f.childLanes)!==0,(c.flags&128)!==0){if(b)return t4(c,f,g);f.flags|=128}if(T=f.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Ut(ar,ar.current),b)break;return null;case 22:case 23:return f.lanes=0,KO(c,f,g)}return Xi(c,f,g)}var r4,mw,n4,s4;r4=function(c,f){for(var g=f.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===f)break;for(;g.sibling===null;){if(g.return===null||g.return===f)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},mw=function(){},n4=function(c,f,g,b){var T=c.memoizedProps;if(T!==b){c=f.stateNode,gl(hi.current);var P=null;switch(g){case"input":T=Ye(c,T),b=Ye(c,b),P=[];break;case"select":T=B({},T,{value:void 0}),b=B({},b,{value:void 0}),P=[];break;case"textarea":T=Pr(c,T),b=Pr(c,b),P=[];break;default:typeof T.onClick!="function"&&typeof b.onClick=="function"&&(c.onclick=qp)}vn(g,b);var M;g=null;for(ie in T)if(!b.hasOwnProperty(ie)&&T.hasOwnProperty(ie)&&T[ie]!=null)if(ie==="style"){var H=T[ie];for(M in H)H.hasOwnProperty(M)&&(g||(g={}),g[M]="")}else ie!=="dangerouslySetInnerHTML"&&ie!=="children"&&ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&ie!=="autoFocus"&&(i.hasOwnProperty(ie)?P||(P=[]):(P=P||[]).push(ie,null));for(ie in b){var Q=b[ie];if(H=T!=null?T[ie]:void 0,b.hasOwnProperty(ie)&&Q!==H&&(Q!=null||H!=null))if(ie==="style")if(H){for(M in H)!H.hasOwnProperty(M)||Q&&Q.hasOwnProperty(M)||(g||(g={}),g[M]="");for(M in Q)Q.hasOwnProperty(M)&&H[M]!==Q[M]&&(g||(g={}),g[M]=Q[M])}else g||(P||(P=[]),P.push(ie,g)),g=Q;else ie==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,H=H?H.__html:void 0,Q!=null&&H!==Q&&(P=P||[]).push(ie,Q)):ie==="children"?typeof Q!="string"&&typeof Q!="number"||(P=P||[]).push(ie,""+Q):ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&(i.hasOwnProperty(ie)?(Q!=null&&ie==="onScroll"&&Xt("scroll",c),P||H===Q||(P=[])):(P=P||[]).push(ie,Q))}g&&(P=P||[]).push("style",g);var ie=P;(f.updateQueue=ie)&&(f.flags|=4)}},s4=function(c,f,g,b){g!==b&&(f.flags|=4)};function Uf(c,f){if(!nr)switch(c.tailMode){case"hidden":f=c.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?c.tail=null:g.sibling=null;break;case"collapsed":g=c.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?f||c.tail===null?c.tail=null:c.tail.sibling=null:b.sibling=null}}function sn(c){var f=c.alternate!==null&&c.alternate.child===c.child,g=0,b=0;if(f)for(var T=c.child;T!==null;)g|=T.lanes|T.childLanes,b|=T.subtreeFlags&14680064,b|=T.flags&14680064,T.return=c,T=T.sibling;else for(T=c.child;T!==null;)g|=T.lanes|T.childLanes,b|=T.subtreeFlags,b|=T.flags,T.return=c,T=T.sibling;return c.subtreeFlags|=b,c.childLanes=g,f}function sX(c,f,g){var b=f.pendingProps;switch(D0(f),f.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(f),null;case 1:return On(f.type)&&zp(),sn(f),null;case 3:return b=f.stateNode,Zc(),Qt(_n),Qt(rn),Y0(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(c===null||c.child===null)&&(Yp(f)?f.flags|=4:c===null||c.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,Bs!==null&&(Nw(Bs),Bs=null))),mw(c,f),sn(f),null;case 5:G0(f);var T=gl(Bf.current);if(g=f.type,c!==null&&f.stateNode!=null)n4(c,f,g,b,T),c.ref!==f.ref&&(f.flags|=512,f.flags|=2097152);else{if(!b){if(f.stateNode===null)throw Error(r(166));return sn(f),null}if(c=gl(hi.current),Yp(f)){b=f.stateNode,g=f.type;var P=f.memoizedProps;switch(b[fi]=f,b[Mf]=P,c=(f.mode&1)!==0,g){case"dialog":Xt("cancel",b),Xt("close",b);break;case"iframe":case"object":case"embed":Xt("load",b);break;case"video":case"audio":for(T=0;T<Of.length;T++)Xt(Of[T],b);break;case"source":Xt("error",b);break;case"img":case"image":case"link":Xt("error",b),Xt("load",b);break;case"details":Xt("toggle",b);break;case"input":mt(b,P),Xt("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!P.multiple},Xt("invalid",b);break;case"textarea":ol(b,P),Xt("invalid",b)}vn(g,P),T=null;for(var M in P)if(P.hasOwnProperty(M)){var H=P[M];M==="children"?typeof H=="string"?b.textContent!==H&&(P.suppressHydrationWarning!==!0&&Vp(b.textContent,H,c),T=["children",H]):typeof H=="number"&&b.textContent!==""+H&&(P.suppressHydrationWarning!==!0&&Vp(b.textContent,H,c),T=["children",""+H]):i.hasOwnProperty(M)&&H!=null&&M==="onScroll"&&Xt("scroll",b)}switch(g){case"input":Pe(b),rr(b,P,!0);break;case"textarea":Pe(b),G(b);break;case"select":case"option":break;default:typeof P.onClick=="function"&&(b.onclick=qp)}b=T,f.updateQueue=b,b!==null&&(f.flags|=4)}else{M=T.nodeType===9?T:T.ownerDocument,c==="http://www.w3.org/1999/xhtml"&&(c=te(g)),c==="http://www.w3.org/1999/xhtml"?g==="script"?(c=M.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild)):typeof b.is=="string"?c=M.createElement(g,{is:b.is}):(c=M.createElement(g),g==="select"&&(M=c,b.multiple?M.multiple=!0:b.size&&(M.size=b.size))):c=M.createElementNS(c,g),c[fi]=f,c[Mf]=b,r4(c,f,!1,!1),f.stateNode=c;e:{switch(M=Ls(g,b),g){case"dialog":Xt("cancel",c),Xt("close",c),T=b;break;case"iframe":case"object":case"embed":Xt("load",c),T=b;break;case"video":case"audio":for(T=0;T<Of.length;T++)Xt(Of[T],c);T=b;break;case"source":Xt("error",c),T=b;break;case"img":case"image":case"link":Xt("error",c),Xt("load",c),T=b;break;case"details":Xt("toggle",c),T=b;break;case"input":mt(c,b),T=Ye(c,b),Xt("invalid",c);break;case"option":T=b;break;case"select":c._wrapperState={wasMultiple:!!b.multiple},T=B({},b,{value:void 0}),Xt("invalid",c);break;case"textarea":ol(c,b),T=Pr(c,b),Xt("invalid",c);break;default:T=b}vn(g,T),H=T;for(P in H)if(H.hasOwnProperty(P)){var Q=H[P];P==="style"?gr(c,Q):P==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&we(c,Q)):P==="children"?typeof Q=="string"?(g!=="textarea"||Q!=="")&&ve(c,Q):typeof Q=="number"&&ve(c,""+Q):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(i.hasOwnProperty(P)?Q!=null&&P==="onScroll"&&Xt("scroll",c):Q!=null&&N(c,P,Q,M))}switch(g){case"input":Pe(c),rr(c,b,!1);break;case"textarea":Pe(c),G(c);break;case"option":b.value!=null&&c.setAttribute("value",""+Ae(b.value));break;case"select":c.multiple=!!b.multiple,P=b.value,P!=null?Fr(c,!!b.multiple,P,!1):b.defaultValue!=null&&Fr(c,!!b.multiple,b.defaultValue,!0);break;default:typeof T.onClick=="function"&&(c.onclick=qp)}switch(g){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return sn(f),null;case 6:if(c&&f.stateNode!=null)s4(c,f,c.memoizedProps,b);else{if(typeof b!="string"&&f.stateNode===null)throw Error(r(166));if(g=gl(Bf.current),gl(hi.current),Yp(f)){if(b=f.stateNode,g=f.memoizedProps,b[fi]=f,(P=b.nodeValue!==g)&&(c=Un,c!==null))switch(c.tag){case 3:Vp(b.nodeValue,g,(c.mode&1)!==0);break;case 5:c.memoizedProps.suppressHydrationWarning!==!0&&Vp(b.nodeValue,g,(c.mode&1)!==0)}P&&(f.flags|=4)}else b=(g.nodeType===9?g:g.ownerDocument).createTextNode(b),b[fi]=f,f.stateNode=b}return sn(f),null;case 13:if(Qt(ar),b=f.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(nr&&Hn!==null&&(f.mode&1)!==0&&(f.flags&128)===0)oO(),Kc(),f.flags|=98560,P=!1;else if(P=Yp(f),b!==null&&b.dehydrated!==null){if(c===null){if(!P)throw Error(r(318));if(P=f.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(r(317));P[fi]=f}else Kc(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;sn(f),P=!1}else Bs!==null&&(Nw(Bs),Bs=null),P=!0;if(!P)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=g,f):(b=b!==null,b!==(c!==null&&c.memoizedState!==null)&&b&&(f.child.flags|=8192,(f.mode&1)!==0&&(c===null||(ar.current&1)!==0?_r===0&&(_r=3):Cw())),f.updateQueue!==null&&(f.flags|=4),sn(f),null);case 4:return Zc(),mw(c,f),c===null&&If(f.stateNode.containerInfo),sn(f),null;case 10:return q0(f.type._context),sn(f),null;case 17:return On(f.type)&&zp(),sn(f),null;case 19:if(Qt(ar),P=f.memoizedState,P===null)return sn(f),null;if(b=(f.flags&128)!==0,M=P.rendering,M===null)if(b)Uf(P,!1);else{if(_r!==0||c!==null&&(c.flags&128)!==0)for(c=f.child;c!==null;){if(M=tg(c),M!==null){for(f.flags|=128,Uf(P,!1),b=M.updateQueue,b!==null&&(f.updateQueue=b,f.flags|=4),f.subtreeFlags=0,b=g,g=f.child;g!==null;)P=g,c=b,P.flags&=14680066,M=P.alternate,M===null?(P.childLanes=0,P.lanes=c,P.child=null,P.subtreeFlags=0,P.memoizedProps=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null,P.stateNode=null):(P.childLanes=M.childLanes,P.lanes=M.lanes,P.child=M.child,P.subtreeFlags=0,P.deletions=null,P.memoizedProps=M.memoizedProps,P.memoizedState=M.memoizedState,P.updateQueue=M.updateQueue,P.type=M.type,c=M.dependencies,P.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),g=g.sibling;return Ut(ar,ar.current&1|2),f.child}c=c.sibling}P.tail!==null&&xr()>ru&&(f.flags|=128,b=!0,Uf(P,!1),f.lanes=4194304)}else{if(!b)if(c=tg(M),c!==null){if(f.flags|=128,b=!0,g=c.updateQueue,g!==null&&(f.updateQueue=g,f.flags|=4),Uf(P,!0),P.tail===null&&P.tailMode==="hidden"&&!M.alternate&&!nr)return sn(f),null}else 2*xr()-P.renderingStartTime>ru&&g!==1073741824&&(f.flags|=128,b=!0,Uf(P,!1),f.lanes=4194304);P.isBackwards?(M.sibling=f.child,f.child=M):(g=P.last,g!==null?g.sibling=M:f.child=M,P.last=M)}return P.tail!==null?(f=P.tail,P.rendering=f,P.tail=f.sibling,P.renderingStartTime=xr(),f.sibling=null,g=ar.current,Ut(ar,b?g&1|2:g&1),f):(sn(f),null);case 22:case 23:return Aw(),b=f.memoizedState!==null,c!==null&&c.memoizedState!==null!==b&&(f.flags|=8192),b&&(f.mode&1)!==0?(Gn&1073741824)!==0&&(sn(f),f.subtreeFlags&6&&(f.flags|=8192)):sn(f),null;case 24:return null;case 25:return null}throw Error(r(156,f.tag))}function iX(c,f){switch(D0(f),f.tag){case 1:return On(f.type)&&zp(),c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 3:return Zc(),Qt(_n),Qt(rn),Y0(),c=f.flags,(c&65536)!==0&&(c&128)===0?(f.flags=c&-65537|128,f):null;case 5:return G0(f),null;case 13:if(Qt(ar),c=f.memoizedState,c!==null&&c.dehydrated!==null){if(f.alternate===null)throw Error(r(340));Kc()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 19:return Qt(ar),null;case 4:return Zc(),null;case 10:return q0(f.type._context),null;case 22:case 23:return Aw(),null;case 24:return null;default:return null}}var ug=!1,an=!1,aX=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function eu(c,f){var g=c.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(b){dr(c,f,b)}else g.current=null}function pw(c,f,g){try{g()}catch(b){dr(c,f,b)}}var i4=!1;function oX(c,f){if(A0=Ep,c=L_(),v0(c)){if("selectionStart"in c)var g={start:c.selectionStart,end:c.selectionEnd};else e:{g=(g=c.ownerDocument)&&g.defaultView||window;var b=g.getSelection&&g.getSelection();if(b&&b.rangeCount!==0){g=b.anchorNode;var T=b.anchorOffset,P=b.focusNode;b=b.focusOffset;try{g.nodeType,P.nodeType}catch{g=null;break e}var M=0,H=-1,Q=-1,ie=0,fe=0,me=c,de=null;t:for(;;){for(var De;me!==g||T!==0&&me.nodeType!==3||(H=M+T),me!==P||b!==0&&me.nodeType!==3||(Q=M+b),me.nodeType===3&&(M+=me.nodeValue.length),(De=me.firstChild)!==null;)de=me,me=De;for(;;){if(me===c)break t;if(de===g&&++ie===T&&(H=M),de===P&&++fe===b&&(Q=M),(De=me.nextSibling)!==null)break;me=de,de=me.parentNode}me=De}g=H===-1||Q===-1?null:{start:H,end:Q}}else g=null}g=g||{start:0,end:0}}else g=null;for(C0={focusedElem:c,selectionRange:g},Ep=!1,Ve=f;Ve!==null;)if(f=Ve,c=f.child,(f.subtreeFlags&1028)!==0&&c!==null)c.return=f,Ve=c;else for(;Ve!==null;){f=Ve;try{var We=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(We!==null){var ze=We.memoizedProps,yr=We.memoizedState,re=f.stateNode,ee=re.getSnapshotBeforeUpdate(f.elementType===f.type?ze:Vs(f.type,ze),yr);re.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var se=f.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){dr(f,f.return,be)}if(c=f.sibling,c!==null){c.return=f.return,Ve=c;break}Ve=f.return}return We=i4,i4=!1,We}function Hf(c,f,g){var b=f.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var T=b=b.next;do{if((T.tag&c)===c){var P=T.destroy;T.destroy=void 0,P!==void 0&&pw(f,g,P)}T=T.next}while(T!==b)}}function dg(c,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var g=f=f.next;do{if((g.tag&c)===c){var b=g.create;g.destroy=b()}g=g.next}while(g!==f)}}function gw(c){var f=c.ref;if(f!==null){var g=c.stateNode;switch(c.tag){case 5:c=g;break;default:c=g}typeof f=="function"?f(c):f.current=c}}function a4(c){var f=c.alternate;f!==null&&(c.alternate=null,a4(f)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(f=c.stateNode,f!==null&&(delete f[fi],delete f[Mf],delete f[O0],delete f[WY],delete f[zY])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function o4(c){return c.tag===5||c.tag===3||c.tag===4}function l4(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||o4(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function xw(c,f,g){var b=c.tag;if(b===5||b===6)c=c.stateNode,f?g.nodeType===8?g.parentNode.insertBefore(c,f):g.insertBefore(c,f):(g.nodeType===8?(f=g.parentNode,f.insertBefore(c,g)):(f=g,f.appendChild(c)),g=g._reactRootContainer,g!=null||f.onclick!==null||(f.onclick=qp));else if(b!==4&&(c=c.child,c!==null))for(xw(c,f,g),c=c.sibling;c!==null;)xw(c,f,g),c=c.sibling}function yw(c,f,g){var b=c.tag;if(b===5||b===6)c=c.stateNode,f?g.insertBefore(c,f):g.appendChild(c);else if(b!==4&&(c=c.child,c!==null))for(yw(c,f,g),c=c.sibling;c!==null;)yw(c,f,g),c=c.sibling}var Yr=null,qs=!1;function eo(c,f,g){for(g=g.child;g!==null;)c4(c,f,g),g=g.sibling}function c4(c,f,g){if(di&&typeof di.onCommitFiberUnmount=="function")try{di.onCommitFiberUnmount(kp,g)}catch{}switch(g.tag){case 5:an||eu(g,f);case 6:var b=Yr,T=qs;Yr=null,eo(c,f,g),Yr=b,qs=T,Yr!==null&&(qs?(c=Yr,g=g.stateNode,c.nodeType===8?c.parentNode.removeChild(g):c.removeChild(g)):Yr.removeChild(g.stateNode));break;case 18:Yr!==null&&(qs?(c=Yr,g=g.stateNode,c.nodeType===8?_0(c.parentNode,g):c.nodeType===1&&_0(c,g),kf(c)):_0(Yr,g.stateNode));break;case 4:b=Yr,T=qs,Yr=g.stateNode.containerInfo,qs=!0,eo(c,f,g),Yr=b,qs=T;break;case 0:case 11:case 14:case 15:if(!an&&(b=g.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){T=b=b.next;do{var P=T,M=P.destroy;P=P.tag,M!==void 0&&((P&2)!==0||(P&4)!==0)&&pw(g,f,M),T=T.next}while(T!==b)}eo(c,f,g);break;case 1:if(!an&&(eu(g,f),b=g.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=g.memoizedProps,b.state=g.memoizedState,b.componentWillUnmount()}catch(H){dr(g,f,H)}eo(c,f,g);break;case 21:eo(c,f,g);break;case 22:g.mode&1?(an=(b=an)||g.memoizedState!==null,eo(c,f,g),an=b):eo(c,f,g);break;default:eo(c,f,g)}}function u4(c){var f=c.updateQueue;if(f!==null){c.updateQueue=null;var g=c.stateNode;g===null&&(g=c.stateNode=new aX),f.forEach(function(b){var T=gX.bind(null,c,b);g.has(b)||(g.add(b),b.then(T,T))})}}function Ws(c,f){var g=f.deletions;if(g!==null)for(var b=0;b<g.length;b++){var T=g[b];try{var P=c,M=f,H=M;e:for(;H!==null;){switch(H.tag){case 5:Yr=H.stateNode,qs=!1;break e;case 3:Yr=H.stateNode.containerInfo,qs=!0;break e;case 4:Yr=H.stateNode.containerInfo,qs=!0;break e}H=H.return}if(Yr===null)throw Error(r(160));c4(P,M,T),Yr=null,qs=!1;var Q=T.alternate;Q!==null&&(Q.return=null),T.return=null}catch(ie){dr(T,f,ie)}}if(f.subtreeFlags&12854)for(f=f.child;f!==null;)d4(f,c),f=f.sibling}function d4(c,f){var g=c.alternate,b=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(Ws(f,c),pi(c),b&4){try{Hf(3,c,c.return),dg(3,c)}catch(ze){dr(c,c.return,ze)}try{Hf(5,c,c.return)}catch(ze){dr(c,c.return,ze)}}break;case 1:Ws(f,c),pi(c),b&512&&g!==null&&eu(g,g.return);break;case 5:if(Ws(f,c),pi(c),b&512&&g!==null&&eu(g,g.return),c.flags&32){var T=c.stateNode;try{ve(T,"")}catch(ze){dr(c,c.return,ze)}}if(b&4&&(T=c.stateNode,T!=null)){var P=c.memoizedProps,M=g!==null?g.memoizedProps:P,H=c.type,Q=c.updateQueue;if(c.updateQueue=null,Q!==null)try{H==="input"&&P.type==="radio"&&P.name!=null&&Ie(T,P),Ls(H,M);var ie=Ls(H,P);for(M=0;M<Q.length;M+=2){var fe=Q[M],me=Q[M+1];fe==="style"?gr(T,me):fe==="dangerouslySetInnerHTML"?we(T,me):fe==="children"?ve(T,me):N(T,fe,me,ie)}switch(H){case"input":pt(T,P);break;case"textarea":Ba(T,P);break;case"select":var de=T._wrapperState.wasMultiple;T._wrapperState.wasMultiple=!!P.multiple;var De=P.value;De!=null?Fr(T,!!P.multiple,De,!1):de!==!!P.multiple&&(P.defaultValue!=null?Fr(T,!!P.multiple,P.defaultValue,!0):Fr(T,!!P.multiple,P.multiple?[]:"",!1))}T[Mf]=P}catch(ze){dr(c,c.return,ze)}}break;case 6:if(Ws(f,c),pi(c),b&4){if(c.stateNode===null)throw Error(r(162));T=c.stateNode,P=c.memoizedProps;try{T.nodeValue=P}catch(ze){dr(c,c.return,ze)}}break;case 3:if(Ws(f,c),pi(c),b&4&&g!==null&&g.memoizedState.isDehydrated)try{kf(f.containerInfo)}catch(ze){dr(c,c.return,ze)}break;case 4:Ws(f,c),pi(c);break;case 13:Ws(f,c),pi(c),T=c.child,T.flags&8192&&(P=T.memoizedState!==null,T.stateNode.isHidden=P,!P||T.alternate!==null&&T.alternate.memoizedState!==null||(ww=xr())),b&4&&u4(c);break;case 22:if(fe=g!==null&&g.memoizedState!==null,c.mode&1?(an=(ie=an)||fe,Ws(f,c),an=ie):Ws(f,c),pi(c),b&8192){if(ie=c.memoizedState!==null,(c.stateNode.isHidden=ie)&&!fe&&(c.mode&1)!==0)for(Ve=c,fe=c.child;fe!==null;){for(me=Ve=fe;Ve!==null;){switch(de=Ve,De=de.child,de.tag){case 0:case 11:case 14:case 15:Hf(4,de,de.return);break;case 1:eu(de,de.return);var We=de.stateNode;if(typeof We.componentWillUnmount=="function"){b=de,g=de.return;try{f=b,We.props=f.memoizedProps,We.state=f.memoizedState,We.componentWillUnmount()}catch(ze){dr(b,g,ze)}}break;case 5:eu(de,de.return);break;case 22:if(de.memoizedState!==null){m4(me);continue}}De!==null?(De.return=de,Ve=De):m4(me)}fe=fe.sibling}e:for(fe=null,me=c;;){if(me.tag===5){if(fe===null){fe=me;try{T=me.stateNode,ie?(P=T.style,typeof P.setProperty=="function"?P.setProperty("display","none","important"):P.display="none"):(H=me.stateNode,Q=me.memoizedProps.style,M=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,H.style.display=vt("display",M))}catch(ze){dr(c,c.return,ze)}}}else if(me.tag===6){if(fe===null)try{me.stateNode.nodeValue=ie?"":me.memoizedProps}catch(ze){dr(c,c.return,ze)}}else if((me.tag!==22&&me.tag!==23||me.memoizedState===null||me===c)&&me.child!==null){me.child.return=me,me=me.child;continue}if(me===c)break e;for(;me.sibling===null;){if(me.return===null||me.return===c)break e;fe===me&&(fe=null),me=me.return}fe===me&&(fe=null),me.sibling.return=me.return,me=me.sibling}}break;case 19:Ws(f,c),pi(c),b&4&&u4(c);break;case 21:break;default:Ws(f,c),pi(c)}}function pi(c){var f=c.flags;if(f&2){try{e:{for(var g=c.return;g!==null;){if(o4(g)){var b=g;break e}g=g.return}throw Error(r(160))}switch(b.tag){case 5:var T=b.stateNode;b.flags&32&&(ve(T,""),b.flags&=-33);var P=l4(c);yw(c,P,T);break;case 3:case 4:var M=b.stateNode.containerInfo,H=l4(c);xw(c,H,M);break;default:throw Error(r(161))}}catch(Q){dr(c,c.return,Q)}c.flags&=-3}f&4096&&(c.flags&=-4097)}function lX(c,f,g){Ve=c,f4(c)}function f4(c,f,g){for(var b=(c.mode&1)!==0;Ve!==null;){var T=Ve,P=T.child;if(T.tag===22&&b){var M=T.memoizedState!==null||ug;if(!M){var H=T.alternate,Q=H!==null&&H.memoizedState!==null||an;H=ug;var ie=an;if(ug=M,(an=Q)&&!ie)for(Ve=T;Ve!==null;)M=Ve,Q=M.child,M.tag===22&&M.memoizedState!==null?p4(T):Q!==null?(Q.return=M,Ve=Q):p4(T);for(;P!==null;)Ve=P,f4(P),P=P.sibling;Ve=T,ug=H,an=ie}h4(c)}else(T.subtreeFlags&8772)!==0&&P!==null?(P.return=T,Ve=P):h4(c)}}function h4(c){for(;Ve!==null;){var f=Ve;if((f.flags&8772)!==0){var g=f.alternate;try{if((f.flags&8772)!==0)switch(f.tag){case 0:case 11:case 15:an||dg(5,f);break;case 1:var b=f.stateNode;if(f.flags&4&&!an)if(g===null)b.componentDidMount();else{var T=f.elementType===f.type?g.memoizedProps:Vs(f.type,g.memoizedProps);b.componentDidUpdate(T,g.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var P=f.updateQueue;P!==null&&mO(f,P,b);break;case 3:var M=f.updateQueue;if(M!==null){if(g=null,f.child!==null)switch(f.child.tag){case 5:g=f.child.stateNode;break;case 1:g=f.child.stateNode}mO(f,M,g)}break;case 5:var H=f.stateNode;if(g===null&&f.flags&4){g=H;var Q=f.memoizedProps;switch(f.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&g.focus();break;case"img":Q.src&&(g.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(f.memoizedState===null){var ie=f.alternate;if(ie!==null){var fe=ie.memoizedState;if(fe!==null){var me=fe.dehydrated;me!==null&&kf(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}an||f.flags&512&&gw(f)}catch(de){dr(f,f.return,de)}}if(f===c){Ve=null;break}if(g=f.sibling,g!==null){g.return=f.return,Ve=g;break}Ve=f.return}}function m4(c){for(;Ve!==null;){var f=Ve;if(f===c){Ve=null;break}var g=f.sibling;if(g!==null){g.return=f.return,Ve=g;break}Ve=f.return}}function p4(c){for(;Ve!==null;){var f=Ve;try{switch(f.tag){case 0:case 11:case 15:var g=f.return;try{dg(4,f)}catch(Q){dr(f,g,Q)}break;case 1:var b=f.stateNode;if(typeof b.componentDidMount=="function"){var T=f.return;try{b.componentDidMount()}catch(Q){dr(f,T,Q)}}var P=f.return;try{gw(f)}catch(Q){dr(f,P,Q)}break;case 5:var M=f.return;try{gw(f)}catch(Q){dr(f,M,Q)}}}catch(Q){dr(f,f.return,Q)}if(f===c){Ve=null;break}var H=f.sibling;if(H!==null){H.return=f.return,Ve=H;break}Ve=f.return}}var cX=Math.ceil,fg=C.ReactCurrentDispatcher,vw=C.ReactCurrentOwner,vs=C.ReactCurrentBatchConfig,kt=0,Vr=null,Sr=null,Xr=0,Gn=0,tu=Ya(0),_r=0,Gf=null,yl=0,hg=0,bw=0,Kf=null,Rn=null,ww=0,ru=1/0,Qi=null,mg=!1,jw=null,to=null,pg=!1,ro=null,gg=0,Yf=0,Sw=null,xg=-1,yg=0;function wn(){return(kt&6)!==0?xr():xg!==-1?xg:xg=xr()}function no(c){return(c.mode&1)===0?1:(kt&2)!==0&&Xr!==0?Xr&-Xr:HY.transition!==null?(yg===0&&(yg=l_()),yg):(c=Rt,c!==0||(c=window.event,c=c===void 0?16:x_(c.type)),c)}function zs(c,f,g,b){if(50<Yf)throw Yf=0,Sw=null,Error(r(185));vf(c,g,b),((kt&2)===0||c!==Vr)&&(c===Vr&&((kt&2)===0&&(hg|=g),_r===4&&so(c,Xr)),Mn(c,b),g===1&&kt===0&&(f.mode&1)===0&&(ru=xr()+500,Hp&&Qa()))}function Mn(c,f){var g=c.callbackNode;HK(c,f);var b=Ap(c,c===Vr?Xr:0);if(b===0)g!==null&&i_(g),c.callbackNode=null,c.callbackPriority=0;else if(f=b&-b,c.callbackPriority!==f){if(g!=null&&i_(g),f===1)c.tag===0?UY(x4.bind(null,c)):rO(x4.bind(null,c)),VY(function(){(kt&6)===0&&Qa()}),g=null;else{switch(c_(b)){case 1:g=r0;break;case 4:g=a_;break;case 16:g=Sp;break;case 536870912:g=o_;break;default:g=Sp}g=N4(g,g4.bind(null,c))}c.callbackPriority=f,c.callbackNode=g}}function g4(c,f){if(xg=-1,yg=0,(kt&6)!==0)throw Error(r(327));var g=c.callbackNode;if(nu()&&c.callbackNode!==g)return null;var b=Ap(c,c===Vr?Xr:0);if(b===0)return null;if((b&30)!==0||(b&c.expiredLanes)!==0||f)f=vg(c,b);else{f=b;var T=kt;kt|=2;var P=v4();(Vr!==c||Xr!==f)&&(Qi=null,ru=xr()+500,bl(c,f));do try{fX();break}catch(H){y4(c,H)}while(!0);V0(),fg.current=P,kt=T,Sr!==null?f=0:(Vr=null,Xr=0,f=_r)}if(f!==0){if(f===2&&(T=n0(c),T!==0&&(b=T,f=kw(c,T))),f===1)throw g=Gf,bl(c,0),so(c,b),Mn(c,xr()),g;if(f===6)so(c,b);else{if(T=c.current.alternate,(b&30)===0&&!uX(T)&&(f=vg(c,b),f===2&&(P=n0(c),P!==0&&(b=P,f=kw(c,P))),f===1))throw g=Gf,bl(c,0),so(c,b),Mn(c,xr()),g;switch(c.finishedWork=T,c.finishedLanes=b,f){case 0:case 1:throw Error(r(345));case 2:wl(c,Rn,Qi);break;case 3:if(so(c,b),(b&130023424)===b&&(f=ww+500-xr(),10<f)){if(Ap(c,0)!==0)break;if(T=c.suspendedLanes,(T&b)!==b){wn(),c.pingedLanes|=c.suspendedLanes&T;break}c.timeoutHandle=E0(wl.bind(null,c,Rn,Qi),f);break}wl(c,Rn,Qi);break;case 4:if(so(c,b),(b&4194240)===b)break;for(f=c.eventTimes,T=-1;0<b;){var M=31-$s(b);P=1<<M,M=f[M],M>T&&(T=M),b&=~P}if(b=T,b=xr()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*cX(b/1960))-b,10<b){c.timeoutHandle=E0(wl.bind(null,c,Rn,Qi),b);break}wl(c,Rn,Qi);break;case 5:wl(c,Rn,Qi);break;default:throw Error(r(329))}}}return Mn(c,xr()),c.callbackNode===g?g4.bind(null,c):null}function kw(c,f){var g=Kf;return c.current.memoizedState.isDehydrated&&(bl(c,f).flags|=256),c=vg(c,f),c!==2&&(f=Rn,Rn=g,f!==null&&Nw(f)),c}function Nw(c){Rn===null?Rn=c:Rn.push.apply(Rn,c)}function uX(c){for(var f=c;;){if(f.flags&16384){var g=f.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var b=0;b<g.length;b++){var T=g[b],P=T.getSnapshot;T=T.value;try{if(!Fs(P(),T))return!1}catch{return!1}}}if(g=f.child,f.subtreeFlags&16384&&g!==null)g.return=f,f=g;else{if(f===c)break;for(;f.sibling===null;){if(f.return===null||f.return===c)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function so(c,f){for(f&=~bw,f&=~hg,c.suspendedLanes|=f,c.pingedLanes&=~f,c=c.expirationTimes;0<f;){var g=31-$s(f),b=1<<g;c[g]=-1,f&=~b}}function x4(c){if((kt&6)!==0)throw Error(r(327));nu();var f=Ap(c,0);if((f&1)===0)return Mn(c,xr()),null;var g=vg(c,f);if(c.tag!==0&&g===2){var b=n0(c);b!==0&&(f=b,g=kw(c,b))}if(g===1)throw g=Gf,bl(c,0),so(c,f),Mn(c,xr()),g;if(g===6)throw Error(r(345));return c.finishedWork=c.current.alternate,c.finishedLanes=f,wl(c,Rn,Qi),Mn(c,xr()),null}function Tw(c,f){var g=kt;kt|=1;try{return c(f)}finally{kt=g,kt===0&&(ru=xr()+500,Hp&&Qa())}}function vl(c){ro!==null&&ro.tag===0&&(kt&6)===0&&nu();var f=kt;kt|=1;var g=vs.transition,b=Rt;try{if(vs.transition=null,Rt=1,c)return c()}finally{Rt=b,vs.transition=g,kt=f,(kt&6)===0&&Qa()}}function Aw(){Gn=tu.current,Qt(tu)}function bl(c,f){c.finishedWork=null,c.finishedLanes=0;var g=c.timeoutHandle;if(g!==-1&&(c.timeoutHandle=-1,BY(g)),Sr!==null)for(g=Sr.return;g!==null;){var b=g;switch(D0(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&zp();break;case 3:Zc(),Qt(_n),Qt(rn),Y0();break;case 5:G0(b);break;case 4:Zc();break;case 13:Qt(ar);break;case 19:Qt(ar);break;case 10:q0(b.type._context);break;case 22:case 23:Aw()}g=g.return}if(Vr=c,Sr=c=io(c.current,null),Xr=Gn=f,_r=0,Gf=null,bw=hg=yl=0,Rn=Kf=null,pl!==null){for(f=0;f<pl.length;f++)if(g=pl[f],b=g.interleaved,b!==null){g.interleaved=null;var T=b.next,P=g.pending;if(P!==null){var M=P.next;P.next=T,b.next=M}g.pending=b}pl=null}return c}function y4(c,f){do{var g=Sr;try{if(V0(),rg.current=ag,ng){for(var b=or.memoizedState;b!==null;){var T=b.queue;T!==null&&(T.pending=null),b=b.next}ng=!1}if(xl=0,Br=Er=or=null,Vf=!1,qf=0,vw.current=null,g===null||g.return===null){_r=1,Gf=f,Sr=null;break}e:{var P=c,M=g.return,H=g,Q=f;if(f=Xr,H.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ie=Q,fe=H,me=fe.tag;if((fe.mode&1)===0&&(me===0||me===11||me===15)){var de=fe.alternate;de?(fe.updateQueue=de.updateQueue,fe.memoizedState=de.memoizedState,fe.lanes=de.lanes):(fe.updateQueue=null,fe.memoizedState=null)}var De=WO(M);if(De!==null){De.flags&=-257,zO(De,M,H,P,f),De.mode&1&&qO(P,ie,f),f=De,Q=ie;var We=f.updateQueue;if(We===null){var ze=new Set;ze.add(Q),f.updateQueue=ze}else We.add(Q);break e}else{if((f&1)===0){qO(P,ie,f),Cw();break e}Q=Error(r(426))}}else if(nr&&H.mode&1){var yr=WO(M);if(yr!==null){(yr.flags&65536)===0&&(yr.flags|=256),zO(yr,M,H,P,f),F0(Jc(Q,H));break e}}P=Q=Jc(Q,H),_r!==4&&(_r=2),Kf===null?Kf=[P]:Kf.push(P),P=M;do{switch(P.tag){case 3:P.flags|=65536,f&=-f,P.lanes|=f;var re=BO(P,Q,f);hO(P,re);break e;case 1:H=Q;var ee=P.type,se=P.stateNode;if((P.flags&128)===0&&(typeof ee.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(to===null||!to.has(se)))){P.flags|=65536,f&=-f,P.lanes|=f;var be=VO(P,H,f);hO(P,be);break e}}P=P.return}while(P!==null)}w4(g)}catch(He){f=He,Sr===g&&g!==null&&(Sr=g=g.return);continue}break}while(!0)}function v4(){var c=fg.current;return fg.current=ag,c===null?ag:c}function Cw(){(_r===0||_r===3||_r===2)&&(_r=4),Vr===null||(yl&268435455)===0&&(hg&268435455)===0||so(Vr,Xr)}function vg(c,f){var g=kt;kt|=2;var b=v4();(Vr!==c||Xr!==f)&&(Qi=null,bl(c,f));do try{dX();break}catch(T){y4(c,T)}while(!0);if(V0(),kt=g,fg.current=b,Sr!==null)throw Error(r(261));return Vr=null,Xr=0,_r}function dX(){for(;Sr!==null;)b4(Sr)}function fX(){for(;Sr!==null&&!LK();)b4(Sr)}function b4(c){var f=k4(c.alternate,c,Gn);c.memoizedProps=c.pendingProps,f===null?w4(c):Sr=f,vw.current=null}function w4(c){var f=c;do{var g=f.alternate;if(c=f.return,(f.flags&32768)===0){if(g=sX(g,f,Gn),g!==null){Sr=g;return}}else{if(g=iX(g,f),g!==null){g.flags&=32767,Sr=g;return}
vendor: 7,880 bytes, line 40
40if(c!==null)c.flags|=32768,c.subtreeFlags=0,c.deletions=null;else{_r=6,Sr=null;return}}if(f=f.sibling,f!==null){Sr=f;return}Sr=f=c}while(f!==null);_r===0&&(_r=5)}function wl(c,f,g){var b=Rt,T=vs.transition;try{vs.transition=null,Rt=1,hX(c,f,g,b)}finally{vs.transition=T,Rt=b}return null}function hX(c,f,g,b){do nu();while(ro!==null);if((kt&6)!==0)throw Error(r(327));g=c.finishedWork;var T=c.finishedLanes;if(g===null)return null;if(c.finishedWork=null,c.finishedLanes=0,g===c.current)throw Error(r(177));c.callbackNode=null,c.callbackPriority=0;var P=g.lanes|g.childLanes;if(GK(c,P),c===Vr&&(Sr=Vr=null,Xr=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||pg||(pg=!0,N4(Sp,function(){return nu(),null})),P=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||P){P=vs.transition,vs.transition=null;var M=Rt;Rt=1;var H=kt;kt|=4,vw.current=null,oX(c,g),d4(g,c),IY(C0),Ep=!!A0,C0=A0=null,c.current=g,lX(g),$K(),kt=H,Rt=M,vs.transition=P}else c.current=g;if(pg&&(pg=!1,ro=c,gg=T),P=c.pendingLanes,P===0&&(to=null),VK(g.stateNode),Mn(c,xr()),f!==null)for(b=c.onRecoverableError,g=0;g<f.length;g++)T=f[g],b(T.value,{componentStack:T.stack,digest:T.digest});if(mg)throw mg=!1,c=jw,jw=null,c;return(gg&1)!==0&&c.tag!==0&&nu(),P=c.pendingLanes,(P&1)!==0?c===Sw?Yf++:(Yf=0,Sw=c):Yf=0,Qa(),null}function nu(){if(ro!==null){var c=c_(gg),f=vs.transition,g=Rt;try{if(vs.transition=null,Rt=16>c?16:c,ro===null)var b=!1;else{if(c=ro,ro=null,gg=0,(kt&6)!==0)throw Error(r(331));var T=kt;for(kt|=4,Ve=c.current;Ve!==null;){var P=Ve,M=P.child;if((Ve.flags&16)!==0){var H=P.deletions;if(H!==null){for(var Q=0;Q<H.length;Q++){var ie=H[Q];for(Ve=ie;Ve!==null;){var fe=Ve;switch(fe.tag){case 0:case 11:case 15:Hf(8,fe,P)}var me=fe.child;if(me!==null)me.return=fe,Ve=me;else for(;Ve!==null;){fe=Ve;var de=fe.sibling,De=fe.return;if(a4(fe),fe===ie){Ve=null;break}if(de!==null){de.return=De,Ve=de;break}Ve=De}}}var We=P.alternate;if(We!==null){var ze=We.child;if(ze!==null){We.child=null;do{var yr=ze.sibling;ze.sibling=null,ze=yr}while(ze!==null)}}Ve=P}}if((P.subtreeFlags&2064)!==0&&M!==null)M.return=P,Ve=M;else e:for(;Ve!==null;){if(P=Ve,(P.flags&2048)!==0)switch(P.tag){case 0:case 11:case 15:Hf(9,P,P.return)}var re=P.sibling;if(re!==null){re.return=P.return,Ve=re;break e}Ve=P.return}}var ee=c.current;for(Ve=ee;Ve!==null;){M=Ve;var se=M.child;if((M.subtreeFlags&2064)!==0&&se!==null)se.return=M,Ve=se;else e:for(M=ee;Ve!==null;){if(H=Ve,(H.flags&2048)!==0)try{switch(H.tag){case 0:case 11:case 15:dg(9,H)}}catch(He){dr(H,H.return,He)}if(H===M){Ve=null;break e}var be=H.sibling;if(be!==null){be.return=H.return,Ve=be;break e}Ve=H.return}}if(kt=T,Qa(),di&&typeof di.onPostCommitFiberRoot=="function")try{di.onPostCommitFiberRoot(kp,c)}catch{}b=!0}return b}finally{Rt=g,vs.transition=f}}return!1}function j4(c,f,g){f=Jc(g,f),f=BO(c,f,1),c=Ja(c,f,1),f=wn(),c!==null&&(vf(c,1,f),Mn(c,f))}function dr(c,f,g){if(c.tag===3)j4(c,c,g);else for(;f!==null;){if(f.tag===3){j4(f,c,g);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(to===null||!to.has(b))){c=Jc(g,c),c=VO(f,c,1),f=Ja(f,c,1),c=wn(),f!==null&&(vf(f,1,c),Mn(f,c));break}}f=f.return}}function mX(c,f,g){var b=c.pingCache;b!==null&&b.delete(f),f=wn(),c.pingedLanes|=c.suspendedLanes&g,Vr===c&&(Xr&g)===g&&(_r===4||_r===3&&(Xr&130023424)===Xr&&500>xr()-ww?bl(c,0):bw|=g),Mn(c,f)}function S4(c,f){f===0&&((c.mode&1)===0?f=1:(f=Tp,Tp<<=1,(Tp&130023424)===0&&(Tp=4194304)));var g=wn();c=Ki(c,f),c!==null&&(vf(c,f,g),Mn(c,g))}function pX(c){var f=c.memoizedState,g=0;f!==null&&(g=f.retryLane),S4(c,g)}function gX(c,f){var g=0;switch(c.tag){case 13:var b=c.stateNode,T=c.memoizedState;T!==null&&(g=T.retryLane);break;case 19:b=c.stateNode;break;default:throw Error(r(314))}b!==null&&b.delete(f),S4(c,g)}var k4;k4=function(c,f,g){if(c!==null)if(c.memoizedProps!==f.pendingProps||_n.current)In=!0;else{if((c.lanes&g)===0&&(f.flags&128)===0)return In=!1,nX(c,f,g);In=(c.flags&131072)!==0}else In=!1,nr&&(f.flags&1048576)!==0&&nO(f,Kp,f.index);switch(f.lanes=0,f.tag){case 2:var b=f.type;cg(c,f),c=f.pendingProps;var T=Uc(f,rn.current);Qc(f,g),T=Z0(null,f,b,c,T,g);var P=J0();return f.flags|=1,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,On(b)?(P=!0,Up(f)):P=!1,f.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,U0(f),T.updater=og,f.stateNode=T,T._reactInternals=f,iw(f,b,c,g),f=cw(null,f,b,!0,P,g)):(f.tag=0,nr&&P&&M0(f),bn(null,f,T,g),f=f.child),f;case 16:b=f.elementType;e:{switch(cg(c,f),c=f.pendingProps,T=b._init,b=T(b._payload),f.type=b,T=f.tag=yX(b),c=Vs(b,c),T){case 0:f=lw(null,f,b,c,g);break e;case 1:f=XO(null,f,b,c,g);break e;case 11:f=UO(null,f,b,c,g);break e;case 14:f=HO(null,f,b,Vs(b.type,c),g);break e}throw Error(r(306,b,""))}return f;case 0:return b=f.type,T=f.pendingProps,T=f.elementType===b?T:Vs(b,T),lw(c,f,b,T,g);case 1:return b=f.type,T=f.pendingProps,T=f.elementType===b?T:Vs(b,T),XO(c,f,b,T,g);case 3:e:{if(QO(f),c===null)throw Error(r(387));b=f.pendingProps,P=f.memoizedState,T=P.element,fO(c,f),eg(f,b,null,g);var M=f.memoizedState;if(b=M.element,P.isDehydrated)if(P={element:b,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},f.updateQueue.baseState=P,f.memoizedState=P,f.flags&256){T=Jc(Error(r(423)),f),f=ZO(c,f,b,g,T);break e}else if(b!==T){T=Jc(Error(r(424)),f),f=ZO(c,f,b,g,T);break e}else for(Hn=Ka(f.stateNode.containerInfo.firstChild),Un=f,nr=!0,Bs=null,g=uO(f,null,b,g),f.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(Kc(),b===T){f=Xi(c,f,g);break e}bn(c,f,b,g)}f=f.child}return f;case 5:return pO(f),c===null&&$0(f),b=f.type,T=f.pendingProps,P=c!==null?c.memoizedProps:null,M=T.children,P0(b,T)?M=null:P!==null&&P0(b,P)&&(f.flags|=32),YO(c,f),bn(c,f,M,g),f.child;case 6:return c===null&&$0(f),null;case 13:return JO(c,f,g);case 4:return H0(f,f.stateNode.containerInfo),b=f.pendingProps,c===null?f.child=Yc(f,null,b,g):bn(c,f,b,g),f.child;case 11:return b=f.type,T=f.pendingProps,T=f.elementType===b?T:Vs(b,T),UO(c,f,b,T,g);case 7:return bn(c,f,f.pendingProps,g),f.child;case 8:return bn(c,f,f.pendingProps.children,g),f.child;case 12:return bn(c,f,f.pendingProps.children,g),f.child;case 10:e:{if(b=f.type._context,T=f.pendingProps,P=f.memoizedProps,M=T.value,Ut(Qp,b._currentValue),b._currentValue=M,P!==null)if(Fs(P.value,M)){if(P.children===T.children&&!_n.current){f=Xi(c,f,g);break e}}else for(P=f.child,P!==null&&(P.return=f);P!==null;){var H=P.dependencies;if(H!==null){M=P.child;for(var Q=H.firstContext;Q!==null;){if(Q.context===b){if(P.tag===1){Q=Yi(-1,g&-g),Q.tag=2;var ie=P.updateQueue;if(ie!==null){ie=ie.shared;var fe=ie.pending;fe===null?Q.next=Q:(Q.next=fe.next,fe.next=Q),ie.pending=Q}}P.lanes|=g,Q=P.alternate,Q!==null&&(Q.lanes|=g),W0(P.return,g,f),H.lanes|=g;break}Q=Q.next}}else if(P.tag===10)M=P.type===f.type?null:P.child;else if(P.tag===18){if(M=P.return,M===null)throw Error(r(341));M.lanes|=g,H=M.alternate,H!==null&&(H.lanes|=g),W0(M,g,f),M=P.sibling}else M=P.child;if(M!==null)M.return=P;else for(M=P;M!==null;){if(M===f){M=null;break}if(P=M.sibling,P!==null){P.return=M.return,M=P;break}M=M.return}P=M}bn(c,f,T.children,g),f=f.child}return f;case 9:return T=f.type,b=f.pendingProps.children,Qc(f,g),T=xs(T),b=b(T),f.flags|=1,bn(c,f,b,g),f.child;case 14:return b=f.type,T=Vs(b,f.pendingProps),T=Vs(b.type,T),HO(c,f,b,T,g);case 15:return GO(c,f,f.type,f.pendingProps,g);case 17:return b=f.type,T=f.pendingProps,T=f.elementType===b?T:Vs(b,T),cg(c,f),f.tag=1,On(b)?(c=!0,Up(f)):c=!1,Qc(f,g),$O(f,b,T),iw(f,b,T,g),cw(null,f,b,!0,c,g);case 19:return t4(c,f,g);case 22:return KO(c,f,g)}throw Error(r(156,f.tag))};function N4(c,f){return s_(c,f)}function xX(c,f,g,b){this.tag=c,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,693 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bs(c,f,g,b){return new xX(c,f,g,b)}function Pw(c){return c=c.prototype,!(!c||!c.isReactComponent)}function yX(c){if(typeof c=="function")return Pw(c)?1:0;if(c!=null){if(c=c.$$typeof,c===L)return 11;if(c===z)return 14}return 2}function io(c,f){var g=c.alternate;return g===null?(g=bs(c.tag,f,c.key,c.mode),g.elementType=c.elementType,g.type=c.type,g.stateNode=c.stateNode,g.alternate=c,c.alternate=g):(g.pendingProps=f,g.type=c.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=c.flags&14680064,g.childLanes=c.childLanes,g.lanes=c.lanes,g.child=c.child,g.memoizedProps=c.memoizedProps,g.memoizedState=c.memoizedState,g.updateQueue=c.updateQueue,f=c.dependencies,g.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},g.sibling=c.sibling,g.index=c.index,g.ref=c.ref,g}function bg(c,f,g,b,T,P){var M=2;if(b=c,typeof c=="function")Pw(c)&&(M=1);else if(typeof c=="string")M=5;else e:switch(c){case _:return jl(g.children,T,P,f);case R:M=8,T|=8;break;case O:return c=bs(12,g,f,T|2),c.elementType=O,c.lanes=P,c;case I:return c=bs(13,g,f,T),c.elementType=I,c.lanes=P,c;case $:return c=bs(19,g,f,T),c.elementType=$,c.lanes=P,c;case Z:return wg(g,T,P,f);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case F:M=10;break e;case D:M=9;break e;case L:M=11;break e;case z:M=14;break e;case K:M=16,b=null;break e}throw Error(r(130,c==null?c:typeof c,""))}return f=bs(M,g,f,T),f.elementType=c,f.type=b,f.lanes=P,f}function jl(c,f,g,b){return c=bs(7,c,b,f),c.lanes=g,c}function wg(c,f,g,b){return c=bs(22,c,b,f),c.elementType=Z,c.lanes=g,c.stateNode={isHidden:!1},c}function Ew(c,f,g){return c=bs(6,c,null,f),c.lanes=g,c}function _w(c,f,g){return f=bs(4,c.children!==null?c.children:[],c.key,f),f.lanes=g,f.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},f}function vX(c,f,g,b,T){this.tag=f,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=s0(0),this.expirationTimes=s0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s0(0),this.identifierPrefix=b,this.onRecoverableError=T,this.mutableSourceEagerHydrationData=null}function Ow(c,f,g,b,T,P,M,H,Q){return c=new vX(c,f,g,H,Q),f===1?(f=1,P===!0&&(f|=8)):f=0,P=bs(3,null,null,f),c.current=P,P.stateNode=c,P.memoizedState={element:b,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},U0(P),c}function bX(c,f,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:b==null?null:""+b,children:c,containerInfo:f,implementation:g}}function T4(c){if(!c)return Xa;c=c._reactInternals;e:{if(ul(c)!==c||c.tag!==1)throw Error(r(170));var f=c;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(On(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(r(171))}if(c.tag===1){var g=c.type;if(On(g))return eO(c,g,f)}return f}function A4(c,f,g,b,T,P,M,H,Q){return c=Ow(g,b,!0,c,T,P,M,H,Q),c.context=T4(null),g=c.current,b=wn(),T=no(g),P=Yi(b,T),P.callback=f??null,Ja(g,P,T),c.current.lanes=T,vf(c,T,b),Mn(c,b),c}function jg(c,f,g,b){var T=f.current,P=wn(),M=no(T);return g=T4(g),f.context===null?f.context=g:f.pendingContext=g,f=Yi(P,M),f.payload={element:c},b=b===void 0?null:b,b!==null&&(f.callback=b),c=Ja(T,f,M),c!==null&&(zs(c,T,M,P),Jp(c,T,M)),M}function Sg(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return c.child.stateNode;default:return c.child.stateNode}}function C4(c,f){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var g=c.retryLane;c.retryLane=g!==0&&g<f?g:f}}function Iw(c,f){C4(c,f),(c=c.alternate)&&C4(c,f)}function wX(){return null}var P4=typeof reportError=="function"?reportError:function(c){console.error(c)};function Rw(c){this._internalRoot=c}kg.prototype.render=Rw.prototype.render=function(c){var f=this._internalRoot;if(f===null)throw Error(r(409));jg(c,f,null,null)},kg.prototype.unmount=Rw.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var f=c.containerInfo;vl(function(){jg(null,c,null,null)}),f[zi]=null}};function kg(c){this._internalRoot=c}kg.prototype.unstable_scheduleHydration=function(c){if(c){var f=f_();c={blockedOn:null,target:c,priority:f};for(var g=0;g<Ua.length&&f!==0&&f<Ua[g].priority;g++);Ua.splice(g,0,c),g===0&&p_(c)}};function Mw(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function Ng(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11&&(c.nodeType!==8||c.nodeValue!==" react-mount-point-unstable "))}function E4(){}function jX(c,f,g,b,T){if(T){if(typeof b=="function"){var P=b;b=function(){var ie=Sg(M);P.call(ie)}}var M=A4(f,b,c,0,null,!1,!1,"",E4);return c._reactRootContainer=M,c[zi]=M.current,If(c.nodeType===8?c.parentNode:c),vl(),M}for(;T=c.lastChild;)c.removeChild(T);if(typeof b=="function"){var H=b;b=function(){var ie=Sg(Q);H.call(ie)}}var Q=Ow(c,0,!1,null,null,!1,!1,"",E4);return c._reactRootContainer=Q,c[zi]=Q.current,If(c.nodeType===8?c.parentNode:c),vl(function(){jg(f,Q,g,b)}),Q}function Tg(c,f,g,b,T){var P=g._reactRootContainer;if(P){var M=P;if(typeof T=="function"){var H=T;T=function(){var Q=Sg(M);H.call(Q)}}jg(f,M,c,T)}else M=jX(g,f,c,T,b);
40return Sg(M)}u_=function(c){switch(c.tag){case 3:var f=c.stateNode;if(f.current.memoizedState.isDehydrated){var g=yf(f.pendingLanes);g!==0&&(i0(f,g|1),Mn(f,xr()),(kt&6)===0&&(ru=xr()+500,Qa()))}break;case 13:vl(function(){var b=Ki(c,1);if(b!==null){var T=wn();zs(b,c,1,T)}}),Iw(c,1)}},a0=function(c){if(c.tag===13){var f=Ki(c,134217728);if(f!==null){var g=wn();zs(f,c,134217728,g)}Iw(c,134217728)}},d_=function(c){if(c.tag===13){var f=no(c),g=Ki(c,f);if(g!==null){var b=wn();zs(g,c,f,b)}Iw(c,f)}},f_=function(){return Rt},h_=function(c,f){var g=Rt;try{return Rt=c,f()}finally{Rt=g}},hf=function(c,f,g){switch(f){case"input":if(pt(c,g),f=g.name,g.type==="radio"&&f!=null){for(g=c;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),f=0;f<g.length;f++){var b=g[f];if(b!==c&&b.form===c.form){var T=Wp(b);if(!T)throw Error(r(90));ae(b),pt(b,T)}}}break;case"textarea":Ba(c,g);break;case"select":f=g.value,f!=null&&Fr(c,!!g.multiple,f,!1)}},QE=Tw,ZE=vl;var SX={usingClientEntryPoint:!1,Events:[Df,Wc,Wp,YE,XE,Tw]},Xf={findFiberByHostInstance:dl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kX={bundleType:Xf.bundleType,version:Xf.version,rendererPackageName:Xf.rendererPackageName,rendererConfig:Xf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(c){return c=r_(c),c===null?null:c.stateNode},findFiberByHostInstance:Xf.findFiberByHostInstance||wX,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 Ag=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ag.isDisabled&&Ag.supportsFiber)try{kp=Ag.inject(kX),di=Ag}catch{}}return Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SX,Dn.createPortal=function(c,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mw(f))throw Error(r(200));return bX(c,f,null,g)},Dn.createRoot=function(c,f){if(!Mw(c))throw Error(r(299));var g=!1,b="",T=P4;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onRecoverableError!==void 0&&(T=f.onRecoverableError)),f=Ow(c,1,!1,null,null,g,!1,b,T),c[zi]=f.current,If(c.nodeType===8?c.parentNode:c),new Rw(f)},Dn.findDOMNode=function(c){if(c==null)return null;if(c.nodeType===1)return c;var f=c._reactInternals;if(f===void 0)throw typeof c.render=="function"?Error(r(188)):(c=Object.keys(c).join(","),Error(r(268,c)));return c=r_(f),c=c===null?null:c.stateNode,c},Dn.flushSync=function(c){return vl(c)},Dn.hydrate=function(c,f,g){if(!Ng(f))throw Error(r(200));return Tg(null,c,f,!0,g)},Dn.hydrateRoot=function(c,f,g){if(!Mw(c))throw Error(r(405));var b=g!=null&&g.hydratedSources||null,T=!1,P="",M=P4;if(g!=null&&(g.unstable_strictMode===!0&&(T=!0),g.identifierPrefix!==void 0&&(P=g.identifierPrefix),g.onRecoverableError!==void 0&&(M=g.onRecoverableError)),f=A4(f,null,c,1,g??null,T,!1,P,M),c[zi]=f.current,If(c),b)for(c=0;c<b.length;c++)g=b[c],T=g._getVersion,T=T(g._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[g,T]:f.mutableSourceEagerHydrationData.push(g,T);return new kg(f)},Dn.render=function(c,f,g){if(!Ng(f))throw Error(r(200));return Tg(null,c,f,!1,g)},Dn.unmountComponentAtNode=function(c){if(!Ng(c))throw Error(r(40));return c._reactRootContainer?(vl(function(){Tg(null,null,c,!1,function(){c._reactRootContainer=null,c[zi]=null})}),!0):!1},Dn.unstable_batchedUpdates=Tw,Dn.unstable_renderSubtreeIntoContainer=function(c,f,g,b){if(!Ng(g))throw Error(r(200));if(c==null||c._reactInternals===void 0)throw Error(r(38));return Tg(c,f,g,!1,b)},Dn.version="18.3.1-next-f1338f8080-20240426",Dn}var F4;function LF(){if(F4)return Fw.exports;F4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fw.exports=OX(),Fw.exports}var B4;function IX(){if(B4)return Eg;B4=1;var e=LF();return Eg.createRoot=e.createRoot,Eg.hydrateRoot=e.hydrateRoot,Eg}var RX=IX();function MX(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,i,a,o=[],l="",u=e.split("/");for(u[0]||u.shift();i=u.shift();)r=i[0],r==="*"?(o.push(r),l+=i[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(n=i.indexOf("?",1),a=i.indexOf(".",1),o.push(i.substring(1,~n?n:~a?a:i.length)),l+=~n&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(l+=(~n?"?":"")+"\\"+i.substring(a))):l+="/"+i;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var S=Km();const W=Tt(S),pv=TX({__proto__:null,default:W},[S]);var qw={exports:{}},Ww={};/**
41 * @license React
42 * use-sync-external-store-shim.production.js
43 *
44 * Copyright (c) Meta Platforms, Inc. and affiliates.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE file in the root directory of this source tree.
48 */var V4;function DX(){if(V4)return Ww;V4=1;var e=Km();function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(h,p){var x=p(),w=n({inst:{value:x,getSnapshot:p}}),v=w[0].inst,y=w[1];return a(function(){v.value=x,v.getSnapshot=p,u(v)&&y({inst:v})},[h,x,p]),i(function(){return u(v)&&y({inst:v}),h(function(){u(v)&&y({inst:v})})},[h]),o(x),x}function u(h){var p=h.getSnapshot;h=h.value;try{var x=p();return!r(h,x)}catch{return!0}}function d(h,p){return p()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Ww.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Ww}var q4;function LX(){return q4||(q4=1,qw.exports=DX()),qw.exports}var $X=LX();const FX=pv.useInsertionEffect,BX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VX=BX?S.useLayoutEffect:S.useEffect,qX=FX||VX,$F=e=>{const t=S.useRef([e,(...r)=>t[0](...r)]).current;return qX(()=>{t[0]=e}),t[1]},WX="popstate",VA="pushState",qA="replaceState",zX="hashchange",W4=[WX,VA,qA,zX],UX=e=>{for(const t of W4)addEventListener(t,e);return()=>{for(const t of W4)removeEventListener(t,e)}},FF=(e,t)=>$X.useSyncExternalStore(UX,e,t),z4=()=>location.search,HX=({ssrSearch:e}={})=>FF(z4,e!=null?()=>e:z4),U4=()=>location.pathname,GX=({ssrPath:e}={})=>FF(U4,e!=null?()=>e:U4),KX=(e,{replace:t=!1,state:r=null}={})=>history[t?qA:VA](r,"",e),YX=(e={})=>[GX(e),KX],H4=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[H4]>"u"){for(const e of[VA,qA]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,H4,{value:!0})}const XX=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",BF=(e="")=>e==="/"?"":e,QX=(e,t)=>e[0]==="~"?e.slice(1):BF(t)+e,ZX=(e="",t)=>XX(G4(BF(e)),G4(t)),G4=e=>{try{return decodeURI(e)}catch{return e}},VF={hook:YX,searchHook:HX,parser:MX,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,r)=>e(t,r)},qF=S.createContext(VF),Bd=()=>S.useContext(qF),WF={},zF=S.createContext(WF),JX=()=>S.useContext(zF),gv=e=>{const[t,r]=e.hook(e);return[ZX(e.base,t),$F((n,i)=>e.aroundNav(r,QX(n,e.base),i))]},Pn=()=>gv(Bd()),WA=(e,t,r,n)=>{const{pattern:i,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),o=i.exec(r)||[],[l,...u]=o;return l!==void 0?[!0,(()=>{const d=a!==!1?Object.fromEntries(a.map((h,p)=>[h,u[p]])):o.groups;let m={...u};return d&&Object.assign(m,d),m})(),...n?[l]:[]]:[!1,null]},eQ=e=>WA(Bd().parser,e,Pn()[0]),tQ=({children:e,...t})=>{var m,h,p;const r=Bd(),n=t.hook?VF:r;let i=n;const[a,o=t.ssrSearch??""]=((m=t.ssrPath)==null?void 0:m.split("?"))??[];a&&(t.ssrSearch=o,t.ssrPath=a),t.hrefs=t.hrefs??((h=t.hook)==null?void 0:h.hrefs),t.searchHook=t.searchHook??((p=t.hook)==null?void 0:p.searchHook);let l=S.useRef({}),u=l.current,d=u;for(let x in n){const w=x==="base"?n[x]+(t[x]??""):t[x]??n[x];u===d&&w!==d[x]&&(l.current=d={...d}),d[x]=w,(w!==n[x]||w!==i[x])&&(i=d)}return S.createElement(qF.Provider,{value:i,children:e})},K4=({children:e,component:t},r)=>t?S.createElement(t,{params:r}):typeof e=="function"?e(r):e,rQ=e=>{let t=S.useRef(WF);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([n,i])=>i!==r[n])?e:r},he=({path:e,nest:t,match:r,...n})=>{const i=Bd(),[a]=gv(i),[o,l,u]=r??WA(i.parser,e,a,t),d=rQ({...JX(),...l});if(!o)return null;const m=u?S.createElement(tQ,{base:u},K4(n,d)):K4(n,d);return S.createElement(zF.Provider,{value:d,children:m})},xe=S.forwardRef((e,t)=>
48{const r=Bd(),[n,i]=gv(r),{to:a="",href:o=a,onClick:l,asChild:u,children:d,className:m,replace:h,state:p,transition:x,...w}=e,v=$F(j=>{j.ctrlKey||j.metaKey||j.altKey||j.shiftKey||j.button!==0||(l==null||l(j),j.defaultPrevented||(j.preventDefault(),i(o,e)))}),y=r.hrefs(o[0]==="~"?o.slice(1):r.base+o,r);return u&&S.isValidElement(d)?S.cloneElement(d,{onClick:v,href:y}):S.createElement("a",{...w,onClick:v,href:y,className:m!=null&&m.call?m(n===o):m,children:d,ref:t})}),UF=e=>Array.isArray(e)?e.flatMap(t=>UF(t&&t.type===S.Fragment?t.props.children:t)):[e],HF=({children:e,location:t})=>{const r=Bd(),[n]=gv(r);for(const i of UF(e)){let a=0;if(S.isValidElement(i)&&(a=WA(r.parser,i.props.path,t||n,i.props.nest))[0])return S.cloneElement(i,{match:a})}return null};var Vd=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(){}},ql,wo,$u,TF,nQ=(TF=class extends Vd{constructor(){super();Ke(this,ql);Ke(this,wo);Ke(this,$u);Oe(this,$u,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Y(this,wo)||this.setEventListener(Y(this,$u))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,wo))==null||t.call(this),Oe(this,wo,void 0))}setEventListener(t){var r;Oe(this,$u,t),(r=Y(this,wo))==null||r.call(this),Oe(this,wo,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Y(this,ql)!==t&&(Oe(this,ql,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Y(this,ql)=="boolean"?Y(this,ql):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ql=new WeakMap,wo=new WeakMap,$u=new WeakMap,TF),zA=new nQ,sQ={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},jo,BA,AF,iQ=(AF=class{constructor(){Ke(this,jo,sQ);Ke(this,BA,!1)}setTimeoutProvider(e){Oe(this,jo,e)}setTimeout(e,t){return Y(this,jo).setTimeout(e,t)}clearTimeout(e){Y(this,jo).clearTimeout(e)}setInterval(e,t){return Y(this,jo).setInterval(e,t)}clearInterval(e){Y(this,jo).clearInterval(e)}},jo=new WeakMap,BA=new WeakMap,AF),Rl=new iQ;function aQ(e){setTimeout(e,0)}var oQ=typeof window>"u"||"Deno"in globalThis;function Sn(){}function lQ(e,t){return typeof e=="function"?e(t):e}function zN(e){return typeof e=="number"&&e>=0&&e!==1/0}function GF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oo(e,t){return typeof e=="function"?e(t):e}function Qn(e,t){return typeof e=="function"?e(t):e}function Y4(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==UA(o,t.options))return!1}else if(!Uh(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||a&&!a(t))}function X4(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(sc(t.options.mutationKey)!==sc(a))return!1}else if(!Uh(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function UA(e,t){return((t==null?void 0:t.queryKeyHashFn)||sc)(e)}function sc(e){return JSON.stringify(e,(t,r)=>UN(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Uh(e[r],t[r])):!1}var cQ=Object.prototype.hasOwnProperty;function KF(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Q4(e)&&Q4(t);if(!n&&!(UN(e)&&UN(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,u=n?new Array(l):{};let d=0;for(let m=0;m<l;m++){const h=n?m:o[m],p=e[h],x=t[h];if(p===x){u[h]=p,(n?m<a:cQ.call(e,h))&&d++;continue}if(p===null||x===null||typeof p!="object"||typeof x!="object"){u[h]=x;continue}const w=KF(p,x,r+1);u[h]=w,w===p&&d++}return a===l&&d===a?e:u}function _x(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Q4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function UN(e){if(!Z4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Z4(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Z4(e){return Object.prototype.toString.call(e)==="[object Object]"}function uQ(e){return new Promise(t=>{Rl.setTimeout(t,e)})}function HN(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?KF(e,t):t}function dQ(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function fQ(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var HA=Symbol();function YF(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===HA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function GA(e,t){return typeof e=="function"?e(...t):!!e}function hQ(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var Hh=(()=>{let e=()=>
48oQ;return{isServer(){return e()},setIsServer(t){e=t}}})();function GN(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var mQ=aQ;function pQ(){let e=[],t=0,r=l=>{l()},n=l=>{l()},i=mQ;const a=l=>{t?e.push(l):i(()=>{r(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{n(()=>{l.forEach(u=>{r(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||o()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{i=l}}}var Rr=pQ(),Fu,So,Bu,CF,gQ=(CF=class extends Vd{constructor(){super();Ke(this,Fu,!0);Ke(this,So);Ke(this,Bu);Oe(this,Bu,t=>{if(typeof window<"u"&&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(){Y(this,So)||this.setEventListener(Y(this,Bu))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,So))==null||t.call(this),Oe(this,So,void 0))}setEventListener(t){var r;Oe(this,Bu,t),(r=Y(this,So))==null||r.call(this),Oe(this,So,t(this.setOnline.bind(this)))}setOnline(t){Y(this,Fu)!==t&&(Oe(this,Fu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Y(this,Fu)}},Fu=new WeakMap,So=new WeakMap,Bu=new WeakMap,CF),Ox=new gQ;function xQ(e){return Math.min(1e3*2**e,3e4)}function XF(e){return(e??"online")==="online"?Ox.isOnline():!0}var KN=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function QF(e){let t=!1,r=0,n;const i=GN(),a=()=>i.status!=="pending",o=v=>{var y;if(!a()){const j=new KN(v);p(j),(y=e.onCancel)==null||y.call(e,j)}},l=()=>{t=!0},u=()=>{t=!1},d=()=>zA.isFocused()&&(e.networkMode==="always"||Ox.isOnline())&&e.canRun(),m=()=>XF(e.networkMode)&&e.canRun(),h=v=>{a()||(n==null||n(),i.resolve(v))},p=v=>{a()||(n==null||n(),i.reject(v))},x=()=>new Promise(v=>{var y;n=j=>{(a()||d())&&v(j)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;n=void 0,a()||(v=e.onContinue)==null||v.call(e)}),w=()=>
48{if(a())return;let v;const y=r===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(j){v=Promise.reject(j)}Promise.resolve(v).then(h).catch(j=>{var E;if(a())return;const k=e.retry??(Hh.isServer()?0:3),N=e.retryDelay??xQ,C=typeof N=="function"?N(r,j):N,A=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,j);if(t||!A){p(j);return}r++,(E=e.onFail)==null||E.call(e,r,j),uQ(C).then(()=>d()?void 0:x()).then(()=>{t?p(j):w()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:l,continueRetry:u,canStart:m,start:()=>(m()?w():x().then(w),i)}}var Wl,PF,ZF=(PF=class{constructor(){Ke(this,Wl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zN(this.gcTime)&&Oe(this,Wl,Rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hh.isServer()?1/0:300*1e3))}clearGcTimeout(){Y(this,Wl)!==void 0&&(Rl.clearTimeout(Y(this,Wl)),Oe(this,Wl,void 0))}},Wl=new WeakMap,PF);function yQ(e){return{onFetch:(t,r)=>{var m,h,p,x,w;const n=t.options,i=(p=(h=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,a=((x=t.state.data)==null?void 0:x.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const d=async()=>{let v=!1;const y=N=>{hQ(N,()=>t.signal,()=>v=!0)},j=YF(t.options,t.fetchOptions),k=async(N,C,A)=>{if(v)return Promise.reject(t.signal.reason);if(C==null&&N.pages.length)return Promise.resolve(N);const _=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:C,direction:A?"backward":"forward",meta:t.options.meta};return y(D),D})(),R=await j(_),{maxPages:O}=t.options,F=A?fQ:dQ;return{pages:F(N.pages,R,O),pageParams:F(N.pageParams,C,O)}};if(i&&a.length){const N=i==="backward",C=N?vQ:J4,A={pages:a,pageParams:o},E=C(n,A);l=await k(A,E,N)}else{const N=e??a.length;do{const C=u===0?o[0]??n.initialPageParam:J4(n,l);if(u>0&&C==null)break;l=await k(l,C),u++}while(u<N)}return l};t.options.persister?t.fetchFn=()=>{var v,y;return(y=(v=t.options).persister)==null?void 0:y.call(v,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=d}}}function J4(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 vQ(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 Vu,zl,qu,As,Ul,zr,Wm,Hl,Xn,JF,na,EF,bQ=(EF=class extends ZF{constructor(t){super();Ke(this,Xn);Ke(this,Vu);Ke(this,zl);Ke(this,qu);Ke(this,As);Ke(this,Ul);Ke(this,zr);Ke(this,Wm);Ke(this,Hl);Oe(this,Hl,!1),Oe(this,Wm,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,Ul,t.client),Oe(this,As,Y(this,Ul).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,zl,tI(this.options)),this.state=t.state??Y(this,zl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return Y(this,Vu)}get promise(){var t;return(t=Y(this,zr))==null?void 0:t.promise}setOptions(t){if(this.options={...Y(this,Wm),...t},t!=null&&t._type&&Oe(this,Vu,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=tI(this.options);r.data!==void 0&&(this.setState(eI(r.data,r.dataUpdatedAt)),Oe(this,zl,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Y(this,As).remove(this)}setData(t,r){const n=HN(this.state.data,t,this.options);return gt(this,Xn,na).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t){gt(this,Xn,na).call(this,{type:"setState",state:t})}cancel(t){var n,i;const r=(n=Y(this,zr))==null?void 0:n.promise;return(i=Y(this,zr))==null||i.cancel(t),r?r.then(Sn).catch(Sn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return Y(this,zl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Qn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===HA||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
48Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Oo(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:!GF(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,zr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,zr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Y(this,As).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Y(this,zr)&&(Y(this,Hl)||gt(this,Xn,JF).call(this)?Y(this,zr).cancel({revert:!0}):Y(this,zr).cancelRetry()),this.scheduleGc()),Y(this,As).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,Xn,na).call(this,{type:"invalidate"})}async fetch(t,r){var d,m,h,p,x,w,v,y,j,k,N;if(this.state.fetchStatus!=="idle"&&((d=Y(this,zr))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Y(this,zr))return Y(this,zr).continueRetry(),Y(this,zr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(A=>A.options.queryFn);C&&this.setOptions(C.options)}const n=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Oe(this,Hl,!0),n.signal)})},a=()=>{const C=YF(this.options,r),E=(()=>{const _={client:Y(this,Ul),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return Oe(this,Hl,!1),this.options.persister?this.options.persister(C,E,this):C(E)},l=(()=>{const C={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Y(this,Ul),state:this.state,fetchFn:a};return i(C),C})(),u=Y(this,Vu)==="infinite"?yQ(this.options.pages):this.options.behavior;u==null||u.onFetch(l,this),Oe(this,qu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=l.fetchOptions)==null?void 0:m.meta))&&gt(this,Xn,na).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta}),Oe(this,zr,QF({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,onCancel:C=>{C instanceof KN&&C.revert&&this.setState({...Y(this,qu),fetchStatus:"idle"}),n.abort()},onFail:(C,A)=>{gt(this,Xn,na).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{gt(this,Xn,na).call(this,{type:"pause"})},onContinue:()=>{gt(this,Xn,na).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const C=await Y(this,zr).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(x=(p=Y(this,As).config).onSuccess)==null||x.call(p,C,this),(v=(w=Y(this,As).config).onSettled)==null||v.call(w,C,this.state.error,this),C}catch(C){if(C instanceof KN){if(C.silent)return Y(this,zr).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw gt(this,Xn,na).call(this,{type:"error",error:C}),(j=(y=Y(this,As).config).onError)==null||j.call(y,C,this),(N=(k=Y(this,As).config).onSettled)==null||N.call(k,this.state.data,C,this),C}finally{this.scheduleGc()}}},Vu=new WeakMap,zl=new WeakMap,qu=new WeakMap,As=new WeakMap,Ul=new WeakMap,zr=new WeakMap,Wm=new WeakMap,Hl=new WeakMap,Xn=new WeakSet,JF=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},na=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,...eB(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...eI(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Oe(this,qu,t.manual?i:void 0),i;case"error":const a=t.error;
vendor: 4,465 bytes, line 48
48return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Rr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Y(this,As).notify({query:this,type:"updated",action:t})})},EF);function eB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:XF(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eI(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tI(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 $n,St,zm,jn,Gl,Wu,oa,ko,Um,zu,Uu,Kl,Yl,No,Hu,It,wh,YN,XN,QN,ZN,JN,e2,t2,tB,_F,wQ=(_F=class extends Vd{constructor(t,r){super();Ke(this,It);Ke(this,$n);Ke(this,St);Ke(this,zm);Ke(this,jn);Ke(this,Gl);Ke(this,Wu);Ke(this,oa);Ke(this,ko);Ke(this,Um);Ke(this,zu);Ke(this,Uu);Ke(this,Kl);Ke(this,Yl);Ke(this,No);Ke(this,Hu,new Set);this.options=r,Oe(this,$n,t),Oe(this,ko,null),Oe(this,oa,GN()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Y(this,St).addObserver(this),rI(Y(this,St),this.options)?gt(this,It,wh).call(this):this.updateResult(),gt(this,It,ZN).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return r2(Y(this,St),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return r2(Y(this,St),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,It,JN).call(this),gt(this,It,e2).call(this),Y(this,St).removeObserver(this)}setOptions(t){const r=this.options,n=Y(this,St);if(this.options=Y(this,$n).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qn(this.options.enabled,Y(this,St))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gt(this,It,t2).call(this),Y(this,St).setOptions(this.options),r._defaulted&&!_x(this.options,r)&&Y(this,$n).getQueryCache().notify({type:"observerOptionsUpdated",query:Y(this,St),observer:this});const i=this.hasListeners();i&&nI(Y(this,St),n,this.options,r)&&gt(this,It,wh).call(this),this.updateResult(),i&&(Y(this,St)!==n||Qn(this.options.enabled,Y(this,St))!==Qn(r.enabled,Y(this,St))||Oo(this.options.staleTime,Y(this,St))!==Oo(r.staleTime,Y(this,St)))&&gt(this,It,YN).call(this);const a=gt(this,It,XN).call(this);i&&(Y(this,St)!==n||Qn(this.options.enabled,Y(this,St))!==Qn(r.enabled,Y(this,St))||a!==Y(this,No))&&gt(this,It,QN).call(this,a)}getOptimisticResult(t){const r=Y(this,$n).getQueryCache().build(Y(this,$n),t),n=this.createResult(r,t);return SQ(this,n)&&(Oe(this,jn,n),Oe(this,Wu,this.options),Oe(this,Gl,Y(this,St).state)),n}getCurrentResult(){return Y(this,jn)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Y(this,oa).status==="pending"&&Y(this,oa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){Y(this,Hu).add(t)}getCurrentQuery(){return Y(this,St)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Y(this,$n).defaultQueryOptions(t),n=Y(this,$n).getQueryCache().build(Y(this,$n),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return gt(this,It,wh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Y(this,jn)))}createResult(t,r){var O;const n=Y(this,St),i=this.options,a=Y(this,jn),o=Y(this,Gl),l=Y(this,Wu),d=t!==n?t.state:Y(this,zm),{state:m}=t;let h={...m},p=!1,x;if(r._optimisticResults){const F=this.hasListeners(),D=!F&&rI(t,r),L=F&&nI(t,n,r,i);(D||L)&&(h={...h,...eB(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:v,status:y}=h;
vendor: 1,975 bytes, line 48
48x=h.data;let j=!1;if(r.placeholderData!==void 0&&x===void 0&&y==="pending"){let F;a!=null&&a.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(F=a.data,j=!0):F=typeof r.placeholderData=="function"?r.placeholderData((O=Y(this,Uu))==null?void 0:O.state.data,Y(this,Uu)):r.placeholderData,F!==void 0&&(y="success",x=HN(a==null?void 0:a.data,F,r),p=!0)}if(r.select&&x!==void 0&&!j)if(a&&x===(o==null?void 0:o.data)&&r.select===Y(this,Um))x=Y(this,zu);else try{Oe(this,Um,r.select),x=r.select(x),x=HN(a==null?void 0:a.data,x,r),Oe(this,zu,x),Oe(this,ko,null)}catch(F){Oe(this,ko,F)}Y(this,ko)&&(w=Y(this,ko),x=Y(this,zu),v=Date.now(),y="error");const k=h.fetchStatus==="fetching",N=y==="pending",C=y==="error",A=N&&k,E=x!==void 0,R={status:y,fetchStatus:h.fetchStatus,isPending:N,isSuccess:y==="success",isError:C,isInitialLoading:A,isLoading:A,data:x,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!N,isLoadingError:C&&!E,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&E,isStale:KA(t,r),refetch:this.refetch,promise:Y(this,oa),isEnabled:Qn(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const F=R.data!==void 0,D=R.status==="error"&&!F,L=z=>{D?z.reject(R.error):F&&z.resolve(R.data)},I=()=>{const z=Oe(this,oa,R.promise=GN());L(z)},$=Y(this,oa);switch($.status){case"pending":t.queryHash===n.queryHash&&L($);break;case"fulfilled":(D||R.data!==$.value)&&I();break;case"rejected":(!D||R.error!==$.reason)&&I();break}}return R}updateResult(){const t=Y(this,jn),r=this.createResult(Y(this,St),this.options);if(Oe(this,Gl,Y(this,St).state),Oe(this,Wu,this.options),Y(this,Gl).data!==void 0&&Oe(this,Uu,Y(this,St)),_x(r,t))return;Oe(this,jn,r);const n=()=>
vendor: 1,632 bytes, line 48
48{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!Y(this,Hu).size)return!0;const o=new Set(a??Y(this,Hu));return this.options.throwOnError&&o.add("error"),Object.keys(Y(this,jn)).some(l=>{const u=l;return Y(this,jn)[u]!==t[u]&&o.has(u)})};gt(this,It,tB).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&gt(this,It,ZN).call(this)}},$n=new WeakMap,St=new WeakMap,zm=new WeakMap,jn=new WeakMap,Gl=new WeakMap,Wu=new WeakMap,oa=new WeakMap,ko=new WeakMap,Um=new WeakMap,zu=new WeakMap,Uu=new WeakMap,Kl=new WeakMap,Yl=new WeakMap,No=new WeakMap,Hu=new WeakMap,It=new WeakSet,wh=function(t){gt(this,It,t2).call(this);let r=Y(this,St).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Sn)),r},YN=function(){gt(this,It,JN).call(this);const t=Oo(this.options.staleTime,Y(this,St));if(Hh.isServer()||Y(this,jn).isStale||!zN(t))return;const n=GF(Y(this,jn).dataUpdatedAt,t)+1;Oe(this,Kl,Rl.setTimeout(()=>{Y(this,jn).isStale||this.updateResult()},n))},XN=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Y(this,St)):this.options.refetchInterval)??!1},QN=function(t){gt(this,It,e2).call(this),Oe(this,No,t),!(Hh.isServer()||Qn(this.options.enabled,Y(this,St))===!1||!zN(Y(this,No))||Y(this,No)===0)&&Oe(this,Yl,Rl.setInterval(()=>{(this.options.refetchIntervalInBackground||zA.isFocused())&&gt(this,It,wh).call(this)},Y(this,No)))},ZN=function(){gt(this,It,YN).call(this),gt(this,It,QN).call(this,gt(this,It,XN).call(this))},JN=function(){Y(this,Kl)!==void 0&&(Rl.clearTimeout(Y(this,Kl)),Oe
vendor: 4,392 bytes, line 48
48(this,Kl,void 0))},e2=function(){Y(this,Yl)!==void 0&&(Rl.clearInterval(Y(this,Yl)),Oe(this,Yl,void 0))},t2=function(){const t=Y(this,$n).getQueryCache().build(Y(this,$n),this.options);if(t===Y(this,St))return;const r=Y(this,St);Oe(this,St,t),Oe(this,zm,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tB=function(t){Rr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Y(this,jn))}),Y(this,$n).getQueryCache().notify({query:Y(this,St),type:"observerResultsUpdated"})})},_F);function jQ(e,t){return Qn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Qn(t.retryOnMount,e)===!1)}function rI(e,t){return jQ(e,t)||e.state.data!==void 0&&r2(e,t,t.refetchOnMount)}function r2(e,t,r){if(Qn(t.enabled,e)!==!1&&Oo(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&KA(e,t)}return!1}function nI(e,t,r,n){return(e!==t||Qn(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&KA(e,r)}function KA(e,t){return Qn(t.enabled,e)!==!1&&e.isStaleByTime(Oo(t.staleTime,e))}function SQ(e,t){return!_x(e.getCurrentResult(),t)}var Hm,yi,ln,Xl,vi,uo,OF,kQ=(OF=class extends ZF{constructor(t){super();Ke(this,vi);Ke(this,Hm);Ke(this,yi);Ke(this,ln);Ke(this,Xl);Oe(this,Hm,t.client),this.mutationId=t.mutationId,Oe(this,ln,t.mutationCache),Oe(this,yi,[]),this.state=t.state||rB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Y(this,yi).includes(t)||(Y(this,yi).push(t),this.clearGcTimeout(),Y(this,ln).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,yi,Y(this,yi).filter(r=>r!==t)),this.scheduleGc(),Y(this,ln).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Y(this,yi).length||(this.state.status==="pending"?this.scheduleGc():Y(this,ln).remove(this))}continue(){var t;return((t=Y(this,Xl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,u,d,m,h,p,x,w,v,y,j,k,N,C,A,E,_;const r=()=>{gt(this,vi,uo).call(this,{type:"continue"})},n={client:Y(this,Hm),meta:this.options.meta,mutationKey:this.options.mutationKey};Oe(this,Xl,QF({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{gt(this,vi,uo).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{gt(this,vi,uo).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,ln).canRun(this)}));const i=this.state.status==="pending",a=!Y(this,Xl).canStart();try{if(i)r();else{gt(this,vi,uo).call(this,{type:"pending",variables:t,isPaused:a}),Y(this,ln).config.onMutate&&await Y(this,ln).config.onMutate(t,this,n);const O=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,n));O!==this.state.context&&gt(this,vi,uo).call(this,{type:"pending",context:O,variables:t,isPaused:a})}const R=await Y(this,Xl).start();return await((d=(u=Y(this,ln).config).onSuccess)==null?void 0:d.call(u,R,t,this.state.context,this,n)),await((h=(m=this.options).onSuccess)==null?void 0:h.call(m,R,t,this.state.context,n)),await((x=(p=Y(this,ln).config).onSettled)==null?void 0:x.call(p,R,null,this.state.variables,this.state.context,this,n)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,R,null,t,this.state.context,n)),gt(this,vi,uo).call(this,{type:"success",data:R}),R}catch(R){try{await((j=(y=Y(this,ln).config).onError)==null?void 0:j.call(y,R,t,this.state.context,this,n))}catch(O){Promise.reject(O)}try{await((N=(k=this.options).onError)==null?void 0:N.call(k,R,t,this.state.context,n))}catch(O){Promise.reject(O)}try{await((A=(C=Y(this,ln).config).onSettled)==null?void 0:A.call(C,void 0,R,this.state.variables,this.state.context,this,n))}catch(O){Promise.reject(O)}try{await((_=(E=this.options).onSettled)==null?void 0:_.call(E,void 0,R,t,this.state.context,n))}catch(O){Promise.reject(O)}throw gt(this,vi,uo).call(this,{type:"error",error:R}),R}finally{Y(this,ln).runNext(this)}}},Hm=new WeakMap,yi=new WeakMap,ln=new WeakMap,Xl=new WeakMap,vi=new WeakSet,uo=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};
48case"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),Rr.batch(()=>{Y(this,yi).forEach(n=>{n.onMutationUpdate(t)}),Y(this,ln).notify({mutation:this,type:"updated",action:t})})},OF);function rB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var la,Qs,Gm,IF,NQ=(IF=class extends Vd{constructor(t={}){super();Ke(this,la);Ke(this,Qs);Ke(this,Gm);this.config=t,Oe(this,la,new Set),Oe(this,Qs,new Map),Oe(this,Gm,0)}build(t,r,n){const i=new kQ({client:t,mutationCache:this,mutationId:++Cg(this,Gm)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){Y(this,la).add(t);const r=_g(t);if(typeof r=="string"){const n=Y(this,Qs).get(r);n?n.push(t):Y(this,Qs).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Y(this,la).delete(t)){const r=_g(t);if(typeof r=="string"){const n=Y(this,Qs).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&Y(this,Qs).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=_g(t);if(typeof r=="string"){const n=Y(this,Qs).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=_g(t);if(typeof r=="string"){const i=(n=Y(this,Qs).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Rr.batch(()=>{Y(this,la).forEach(t=>{this.notify({type:"removed",mutation:t})}),Y(this,la).clear(),Y(this,Qs).clear()})}getAll(){return Array.from(Y(this,la))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>X4(r,n))}findAll(t={}){return this.getAll().filter(r=>X4(t,r))}notify(t){Rr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>
vendor: 5,122 bytes, line 48
48r.state.isPaused);return Rr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Sn))))}},la=new WeakMap,Qs=new WeakMap,Gm=new WeakMap,IF);function _g(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ca,To,Fn,ua,wa,ux,n2,RF,TQ=(RF=class extends Vd{constructor(r,n){super();Ke(this,wa);Ke(this,ca);Ke(this,To);Ke(this,Fn);Ke(this,ua);Oe(this,ca,r),this.setOptions(n),this.bindMethods(),gt(this,wa,ux).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=Y(this,ca).defaultMutationOptions(r),_x(this.options,n)||Y(this,ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Y(this,Fn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&sc(n.mutationKey)!==sc(this.options.mutationKey)?this.reset():((i=Y(this,Fn))==null?void 0:i.state.status)==="pending"&&Y(this,Fn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Y(this,Fn))==null||r.removeObserver(this)}onMutationUpdate(r){gt(this,wa,ux).call(this),gt(this,wa,n2).call(this,r)}getCurrentResult(){return Y(this,To)}reset(){var r;(r=Y(this,Fn))==null||r.removeObserver(this),Oe(this,Fn,void 0),gt(this,wa,ux).call(this),gt(this,wa,n2).call(this)}mutate(r,n){var i;return Oe(this,ua,n),(i=Y(this,Fn))==null||i.removeObserver(this),Oe(this,Fn,Y(this,ca).getMutationCache().build(Y(this,ca),this.options)),Y(this,Fn).addObserver(this),Y(this,Fn).execute(r)}},ca=new WeakMap,To=new WeakMap,Fn=new WeakMap,ua=new WeakMap,wa=new WeakSet,ux=function(){var n;const r=((n=Y(this,Fn))==null?void 0:n.state)??rB();Oe(this,To,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},n2=function(r){Rr.batch(()=>{var n,i,a,o,l,u,d,m;if(Y(this,ua)&&this.hasListeners()){const h=Y(this,To).variables,p=Y(this,To).context,x={client:Y(this,ca),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=Y(this,ua)).onSuccess)==null||i.call(n,r.data,h,p,x)}catch(w){Promise.reject(w)}try{(o=(a=Y(this,ua)).onSettled)==null||o.call(a,r.data,null,h,p,x)}catch(w){Promise.reject(w)}}else if((r==null?void 0:r.type)==="error"){try{(u=(l=Y(this,ua)).onError)==null||u.call(l,r.error,h,p,x)}catch(w){Promise.reject(w)}try{(m=(d=Y(this,ua)).onSettled)==null||m.call(d,void 0,r.error,h,p,x)}catch(w){Promise.reject(w)}}}this.listeners.forEach(h=>{h(Y(this,To))})})},RF),bi,MF,AQ=(MF=class extends Vd{constructor(t={}){super();Ke(this,bi);this.config=t,Oe(this,bi,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??UA(i,r);let o=this.get(a);return o||(o=new bQ({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){Y(this,bi).has(t.queryHash)||(Y(this,bi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Y(this,bi).get(t.queryHash);r&&(t.destroy(),r===t&&Y(this,bi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Rr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Y(this,bi).get(t)}getAll(){return[...Y(this,bi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Y4(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>Y4(t,n)):r}notify(t){Rr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Rr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Rr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bi=new WeakMap,MF),hr,Ao,Co,Gu,Ku,Po,Yu,Xu,DF,CQ=(DF=class{constructor(e={}){Ke(this,hr);Ke(this,Ao);Ke(this,Co);Ke(this,Gu);Ke(this,Ku);Ke(this,Po);Ke(this,Yu);Ke(this,Xu);Oe(this,hr,e.queryCache||new AQ),Oe(this,Ao,e.mutationCache||new NQ),Oe(this,Co,e.defaultOptions||{}),Oe(this,Gu,new Map),Oe(this,Ku,new Map),Oe(this,Po,0)}mount(){Cg(this,Po)._++,Y(this,Po)===1&&(Oe(this,Yu,zA.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,hr).onFocus())})),Oe(this,Xu,Ox.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,hr).onOnline())})))}unmount(){var e,t;Cg(this,Po)._--,Y(this,Po)===0&&((e=Y(this,Yu))==null||e.call(this),Oe(this,Yu,void 0),(t=Y(this,Xu))==null||t.call(this),Oe(this,Xu,void 0))}isFetching(e){return Y(this,hr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Y(this,Ao).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,hr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Y(this,hr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Oo(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Y(this,hr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=Y(this,hr).get(n.queryHash),a=i==null?void 0:i.state.data,o=lQ(t,a);if(o!==void 0)return Y(this,hr).build(this,n).setData(o,{...r,manual:!0})}
48setQueriesData(e,t,r){return Rr.batch(()=>Y(this,hr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,hr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Y(this,hr);Rr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Y(this,hr);return Rr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Rr.batch(()=>Y(this,hr).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Sn).catch(Sn)}invalidateQueries(e,t={}){return Rr.batch(()=>(Y(this,hr).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=Rr.batch(()=>Y(this,hr).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Sn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Sn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Y(this,hr).build(this,t);return r.isStaleByTime(Oo(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Sn).catch(Sn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Sn).catch(Sn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ox.isOnline()?Y(this,Ao).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,hr)}getMutationCache(){return Y(this,Ao)}getDefaultOptions(){return Y(this,Co)}setDefaultOptions(e){Oe(this,Co,e)}setQueryDefaults(e,t){Y(this,Gu).set(sc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Y(this,Gu).values()],r={};return t.forEach(n=>{Uh(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Y(this,Ku).set(sc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Y(this,Ku).values()],r={};return t.forEach(n=>{Uh(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Y(this,Co).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=UA(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===HA&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Y(this,Co).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Y(this,hr).clear(),Y(this,Ao).clear()}},hr=new WeakMap,Ao=new WeakMap,Co=new WeakMap,Gu=new WeakMap,Ku=new WeakMap,Po=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,DF),nB=S.createContext(void 0),sB=e=>{const t=S.useContext(nB);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PQ=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(nB.Provider,{value:e,children:t})),iB=S.createContext(!1),EQ=()=>S.useContext(iB);iB.Provider;function _Q(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OQ=S.createContext(_Q()),IQ=()=>S.useContext(OQ),RQ=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?GA(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},MQ=e=>{S.useEffect(()=>{e.clearReset()},[e])},DQ=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||GA(r,[e.error,n])),LQ=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$Q=(e,t)=>e.isLoading&&e.isFetching&&!t,FQ=(e,t)=>
48(e==null?void 0:e.suspense)&&t.isPending,sI=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function BQ(e,t,r){var p,x,w,v;const n=EQ(),i=IQ(),a=sB(),o=a.defaultQueryOptions(e);(x=(p=a.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||x.call(p,o);const l=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",LQ(o),RQ(o,i,l),MQ(i);const u=!a.getQueryCache().get(o.queryHash),[d]=S.useState(()=>new t(a,o)),m=d.getOptimisticResult(o),h=!n&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const j=h?d.subscribe(Rr.batchCalls(y)):Sn;return d.updateResult(),j},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setOptions(o)},[o,d]),FQ(o,m))throw sI(o,d,i);if(DQ({result:m,errorResetBoundary:i,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw m.error;if((v=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||v.call(w,o,m),o.experimental_prefetchInRender&&!Hh.isServer()&&$Q(m,n)){const y=u?sI(o,d,i):l==null?void 0:l.promise;y==null||y.catch(Sn).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?m:d.trackResult(m)}function Qu(e,t){return BQ(e,wQ)}function ma(e,t){const r=sB(),[n]=S.useState(()=>new TQ(r,e));S.useEffect(()=>{n.setOptions(e)},[n,e]);const i=S.useSyncExternalStore(S.useCallback(o=>n.subscribe(Rr.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=S.useCallback((o,l)=>{n.mutate(o,l).catch(Sn)},[n]);if(i.error&&GA(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}async function aB(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}async function ss(e,t){const r=await fetch(e,{...t,credentials:"include"});return await aB(r),await r.json()}const VQ=({on401:e})=>async({queryKey:t})=>{const r=await fetch(t[0],{credentials:"include"});return await aB(r),await r.json()},ki=new CQ({defaultOptions:{queries:{queryFn:VQ({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),qQ=1,WQ=1e6;let zw=0;function zQ(){return zw=(zw+1)%Number.MAX_SAFE_INTEGER,zw.toString()}const Uw=new Map,iI=e=>{if(Uw.has(e))return;const t=setTimeout(()=>{Uw.delete(e),_h({type:"REMOVE_TOAST",toastId:e})},WQ);Uw.set(e,t)},UQ=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,qQ)};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?iI(r):e.toasts.forEach(n=>{iI(n.id)}),{...e,toasts:e.toasts.map(n=>
vendor: 14,311 bytes, line 48
48n.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)}}},dx=[];let fx={toasts:[]};function _h(e){fx=UQ(fx,e),dx.forEach(t=>{t(fx)})}function HQ({...e}){const t=zQ(),r=i=>_h({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>_h({type:"DISMISS_TOAST",toastId:t});return _h({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function fs(){const[e,t]=S.useState(fx);return S.useEffect(()=>(dx.push(t),()=>{const r=dx.indexOf(t);r>-1&&dx.splice(r,1)}),[e]),{...e,toast:HQ,dismiss:r=>_h({type:"DISMISS_TOAST",toastId:r})}}var qd=LF();const GQ=Tt(qd);function Be(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function aI(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wd(...e){return t=>{let r=!1;const n=e.map(i=>{const a=aI(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():aI(e[i],null)}}}}function ht(...e){return S.useCallback(Wd(...e),e)}function KQ(e,t){const r=S.createContext(t),n=a=>{const{children:o,...l}=a,u=S.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:u,children:o})};n.displayName=e+"Provider";function i(a){const o=S.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function hs(e,t=[]){let r=[];function n(a,o){const l=S.createContext(o),u=r.length;r=[...r,o];const d=h=>{var j;const{scope:p,children:x,...w}=h,v=((j=p==null?void 0:p[e])==null?void 0:j[u])||l,y=S.useMemo(()=>w,Object.values(w));return s.jsx(v.Provider,{value:y,children:x})};d.displayName=a+"Provider";function m(h,p){var v;const x=((v=p==null?void 0:p[e])==null?void 0:v[u])||l,w=S.useContext(x);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[d,m]}const i=()=>{const a=r.map(o=>S.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return i.scopeName=e,[n,YQ(i,...t)]}function YQ(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((l,{useScope:u,scopeName:d})=>{const h=u(a)[`__scope${d}`];return{...l,...h}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function oI(e){const t=XQ(e),r=S.forwardRef((n,i)=>{const{children:a,...o}=n,l=S.Children.toArray(a),u=l.find(ZQ);if(u){const d=u.props.children,m=l.map(h=>h===u?S.Children.count(d)>1?S.Children.only(null):S.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:i,children:S.isValidElement(d)?S.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function XQ(e){const t=S.forwardRef((r,n)=>{const{children:i,...a}=r;if(S.isValidElement(i)){const o=eZ(i),l=JQ(a,i.props);return i.type!==S.Fragment&&(l.ref=n?Wd(n,o):o),S.cloneElement(i,l)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QQ=Symbol("radix.slottable");function ZQ(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QQ}function JQ(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function eZ(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function xv(e){const t=e+"CollectionProvider",[r,n]=hs(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:y,children:j}=v,k=W.useRef(null),N=W.useRef(new Map).current;return s.jsx(i,{scope:y,itemMap:N,collectionRef:k,children:j})};o.displayName=t;const l=e+"CollectionSlot",u=oI(l),d=W.forwardRef((v,y)=>{const{scope:j,children:k}=v,N=a(l,j),C=ht(y,N.collectionRef);return s.jsx(u,{ref:C,children:k})});d.displayName=l;const m=e+"CollectionItemSlot",h="data-radix-collection-item",p=oI(m),x=W.forwardRef((v,y)=>{const{scope:j,children:k,...N}=v,C=W.useRef(null),A=ht(y,C),E=a(m,j);return W.useEffect(()=>(E.itemMap.set(C,{ref:C,...N}),()=>void E.itemMap.delete(C))),s.jsx(p,{[h]:"",ref:A,children:k})});x.displayName=m;function w(v){const y=a(e+"CollectionConsumer",v);return W.useCallback(()=>{const k=y.collectionRef.current;if(!k)return[];const N=Array.from(k.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((E,_)=>N.indexOf(E.ref.current)-N.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:d,ItemSlot:x},w,n]}function tZ(e){const t=rZ(e),r=S.forwardRef((n,i)=>{const{children:a,...o}=n,l=S.Children.toArray(a),u=l.find(sZ);if(u){const d=u.props.children,m=l.map(h=>h===u?S.Children.count(d)>1?S.Children.only(null):S.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:i,children:S.isValidElement(d)?S.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function rZ(e){const t=S.forwardRef((r,n)=>{const{children:i,...a}=r;if(S.isValidElement(i)){const o=aZ(i),l=iZ(a,i.props);return i.type!==S.Fragment&&(l.ref=n?Wd(n,o):o),S.cloneElement(i,l)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nZ=Symbol("radix.slottable");function sZ(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nZ}function iZ(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function aZ(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var oZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xe=oZ.reduce((e,t)=>{const r=tZ(`Primitive.${t}`),n=S.forwardRef((i,a)=>{const{asChild:o,...l}=i,u=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oB(e,t){e&&qd.flushSync(()=>e.dispatchEvent(t))}function Mr(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function lZ(e,t=globalThis==null?void 0:globalThis.document){const r=Mr(e);S.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var cZ="DismissableLayer",s2="dismissableLayer.update",uZ="dismissableLayer.pointerDownOutside",dZ="dismissableLayer.focusOutside",lI,lB=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ym=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...u}=e,d=S.useContext(lB),[m,h]=S.useState(null),p=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=S.useState({}),w=ht(t,_=>h(_)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=v.indexOf(y),k=m?v.indexOf(m):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,C=k>=j,A=hZ(_=>{const R=_.target,O=[...d.branches].some(F=>F.contains(R));!C||O||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},p),E=mZ(_=>{const R=_.target;[...d.branches].some(F=>F.contains(R))||(a==null||a(_),o==null||o(_),_.defaultPrevented||l==null||l())},p);return lZ(_=>{k===d.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},p),S.useEffect(()=>{if(m)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(lI=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),cI(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=lI)}},[m,p,r,d]),S.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),cI())},[m,d]),S.useEffect(()=>{const _=()=>x({});return document.addEventListener(s2,_),()=>document.removeEventListener(s2,_)},[]),s.jsx(Xe.div,{...u,ref:w,style:{pointerEvents:N?C?"auto":"none":void 0,...e.style},onFocusCapture:Be(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Be(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Be(e.onPointerDownCapture,A.onPointerDownCapture)})});Ym.displayName=cZ;var fZ="DismissableLayerBranch",cB=S.forwardRef((e,t)=>{const r=S.useContext(lB),n=S.useRef(null),i=ht(t,n);return S.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),s.jsx(Xe.div,{...e,ref:i})});cB.displayName=fZ;function hZ(e,t=globalThis==null?void 0:globalThis.document){const r=Mr(e),n=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let u=function(){uB(uZ,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function mZ(e,t=globalThis==null?void 0:globalThis.document){const r=Mr(e),n=S.useRef(!1);return S.useEffect(()=>{const i=a=>{a.target&&!n.current&&uB(dZ,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function cI(){const e=new CustomEvent(s2);document.dispatchEvent(e)}function uB(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?oB(i,a):i.dispatchEvent(a)}var pZ=Ym,gZ=cB,Gr=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},xZ="Portal",yv=S.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[i,a]=S.useState(!1);Gr(()=>a(!0),[]);const o=r||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?GQ.createPortal(s.jsx(Xe.div,{...n,ref:t}),o):null});yv.displayName=xZ;function yZ(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var ms=e=>{const{present:t,children:r}=e,n=vZ(t),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),a=ht(n.ref,bZ(i));return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:a}):null};ms.displayName="Presence";function vZ(e){const[t,r]=S.useState(),n=S.useRef(null),i=S.useRef(e),a=S.useRef("none"),o=e?"mounted":"unmounted",[l,u]=yZ(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const d=Og(n.current);a.current=l==="mounted"?d:"none"},[l]),Gr(()=>{const d=n.current,m=i.current;if(m!==e){const p=a.current,x=Og(d);e?u("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(m&&p!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Gr(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=x=>{const v=Og(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&v&&(u("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=x=>{x.target===t&&(a.current=Og(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Og(e){return(e==null?void 0:e.animationName)||"none"}function bZ(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wZ=pv[" useInsertionEffect ".trim().toString()]||Gr;function ja({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=jZ({defaultProp:t,onChange:r}),l=e!==void 0,u=l?e:i;{const m=S.useRef(e!==void 0);S.useEffect(()=>{const h=m.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=l},[l,n])}const d=S.useCallback(m=>{var h;if(l){const p=SZ(m)?m(e):m;p!==e&&((h=o.current)==null||h.call(o,p))}else a(m)},[l,e,a,o]);return[u,d]}function jZ({defaultProp:e,onChange:t}){const[r,n]=S.useState(e),i=S.useRef(r),a=S.useRef(t);return wZ(()=>{a.current=t},[t]),S.useEffect(()=>{var o;i.current!==r&&((o=a.current)==null||o.call(a,r),i.current=r)},[r,i]),[r,n,a]}function SZ(e){return typeof e=="function"}var dB=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"}),kZ="VisuallyHidden",vv=S.forwardRef((e,t)=>
48s.jsx(Xe.span,{...e,ref:t,style:{...dB,...e.style}}));vv.displayName=kZ;var NZ=vv,YA="ToastProvider",[XA,TZ,AZ]=xv("Toast"),[fB]=hs("Toast",[AZ]),[CZ,bv]=fB(YA),hB=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:o}=e,[l,u]=S.useState(null),[d,m]=S.useState(0),h=S.useRef(!1),p=S.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${YA}\`. Expected non-empty \`string\`.`),s.jsx(XA.Provider,{scope:t,children:s.jsx(CZ,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:u,onToastAdd:S.useCallback(()=>m(x=>x+1),[]),onToastRemove:S.useCallback(()=>m(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:o})})};hB.displayName=YA;var mB="ToastViewport",PZ=["F8"],i2="toast.viewportPause",a2="toast.viewportResume",pB=S.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=PZ,label:i="Notifications ({hotkey})",...a}=e,o=bv(mB,r),l=TZ(r),u=S.useRef(null),d=S.useRef(null),m=S.useRef(null),h=S.useRef(null),p=ht(t,h,o.onViewportChange),x=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;S.useEffect(()=>{const y=j=>{var N;n.length!==0&&n.every(C=>j[C]||j.code===C)&&((N=h.current)==null||N.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),S.useEffect(()=>{const y=u.current,j=h.current;if(w&&y&&j){const k=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(i2);j.dispatchEvent(E),o.isClosePausedRef.current=!0}},N=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(a2);j.dispatchEvent(E),o.isClosePausedRef.current=!1}},C=E=>{!y.contains(E.relatedTarget)&&N()},A=()=>{y.contains(document.activeElement)||N()};return y.addEventListener("focusin",k),y.addEventListener("focusout",C),y.addEventListener("pointermove",k),y.addEventListener("pointerleave",A),window.addEventListener("blur",k),window.addEventListener("focus",N),()=>{y.removeEventListener("focusin",k),y.removeEventListener("focusout",C),y.removeEventListener("pointermove",k),y.removeEventListener("pointerleave",A),window.removeEventListener("blur",k),window.removeEventListener("focus",N)}}},[w,o.isClosePausedRef]);const v=S.useCallback(({tabbingDirection:y})=>{const k=l().map(N=>{const C=N.ref.current,A=[C,...qZ(C)];return y==="forwards"?A:A.reverse()});return(y==="forwards"?k.reverse():k).flat()},[l]);return S.useEffect(()=>{const y=h.current;if(y){const j=k=>{var A,E,_;const N=k.altKey||k.ctrlKey||k.metaKey;if(k.key==="Tab"&&!N){const R=document.activeElement,O=k.shiftKey;if(k.target===y&&O){(A=d.current)==null||A.focus();return}const L=v({tabbingDirection:O?"backwards":"forwards"}),I=L.findIndex($=>$===R);Hw(L.slice(I+1))?k.preventDefault():O?(E=d.current)==null||E.focus():(_=m.current)==null||_.focus()}};return y.addEventListener("keydown",j),()=>y.removeEventListener("keydown",j)}},[l,v]),s.jsxs(gZ,{ref:u,role:"region","aria-label":i.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&s.jsx(o2,{ref:d,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"forwards"});Hw(y)}}),s.jsx(XA.Slot,{scope:r,children:s.jsx(Xe.ol,{tabIndex:-1,...a,ref:p})}),w&&s.jsx(o2,{ref:m,onFocusFromOutsideViewport:()=>{const y=v({tabbingDirection:"backwards"});Hw(y)}})]})});pB.displayName=mB;var gB="ToastFocusProxy",o2=S.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,a=bv(gB,r);return s.jsx(vv,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=a.viewport)!=null&&d.contains(l))&&n()}})});o2.displayName=gB;var Xm="Toast",EZ="toast.swipeStart",_Z="toast.swipeMove",OZ="toast.swipeCancel",IZ="toast.swipeEnd",xB=S.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:a,...o}=e,[l,u]=ja({prop:n,defaultProp:i??!0,onChange:a,caller:Xm});return s.jsx(ms,{present:r||l,children:s.jsx(DZ,{open:l,...o,ref:t,onClose:()=>u(!1),onPause:Mr(e.onPause),onResume:Mr(e.onResume),onSwipeStart:Be(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Be(e.onSwipeMove,d=>{const{x:m,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Be(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Be(e.onSwipeEnd,d=>{const{x:m,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),u(!1)})})})});xB.displayName=Xm;var[RZ,MZ]=fB(Xm,{onClose(){}}),DZ=S.forwardRef((e,t)=>
48{const{__scopeToast:r,type:n="foreground",duration:i,open:a,onClose:o,onEscapeKeyDown:l,onPause:u,onResume:d,onSwipeStart:m,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:x,...w}=e,v=bv(Xm,r),[y,j]=S.useState(null),k=ht(t,$=>j($)),N=S.useRef(null),C=S.useRef(null),A=i||v.duration,E=S.useRef(0),_=S.useRef(A),R=S.useRef(0),{onToastAdd:O,onToastRemove:F}=v,D=Mr(()=>{var z;(y==null?void 0:y.contains(document.activeElement))&&((z=v.viewport)==null||z.focus()),o()}),L=S.useCallback($=>{!$||$===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(D,$))},[D]);S.useEffect(()=>{const $=v.viewport;if($){const z=()=>{L(_.current),d==null||d()},K=()=>{const Z=new Date().getTime()-E.current;_.current=_.current-Z,window.clearTimeout(R.current),u==null||u()};return $.addEventListener(i2,K),$.addEventListener(a2,z),()=>{$.removeEventListener(i2,K),$.removeEventListener(a2,z)}}},[v.viewport,A,u,d,L]),S.useEffect(()=>{a&&!v.isClosePausedRef.current&&L(A)},[a,A,v.isClosePausedRef,L]),S.useEffect(()=>(O(),()=>F()),[O,F]);const I=S.useMemo(()=>y?kB(y):null,[y]);return v.viewport?s.jsxs(s.Fragment,{children:[I&&s.jsx(LZ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:I}),s.jsx(RZ,{scope:r,onClose:D,children:qd.createPortal(s.jsx(XA.ItemSlot,{scope:r,children:s.jsx(pZ,{asChild:!0,onEscapeKeyDown:Be(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||D(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Xe.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:k,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Be(e.onKeyDown,$=>{$.key==="Escape"&&(l==null||l($.nativeEvent),$.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:Be(e.onPointerDown,$=>{$.button===0&&(N.current={x:$.clientX,y:$.clientY})}),onPointerMove:Be(e.onPointerMove,$=>{if(!N.current)return;const z=$.clientX-N.current.x,K=$.clientY-N.current.y,Z=!!C.current,U=["left","right"].includes(v.swipeDirection),q=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,B=U?q(0,z):0,V=U?0:q(0,K),X=$.pointerType==="touch"?10:2,ce={x:B,y:V},ye={originalEvent:$,delta:ce};Z?(C.current=ce,Ig(_Z,h,ye,{discrete:!1})):uI(ce,v.swipeDirection,X)?(C.current=ce,Ig(EZ,m,ye,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(z)>X||Math.abs(K)>X)&&(N.current=null)}),onPointerUp:Be(e.onPointerUp,$=>{const z=C.current,K=$.target;if(K.hasPointerCapture($.pointerId)&&K.releasePointerCapture($.pointerId),C.current=null,N.current=null,z){const Z=$.currentTarget,U={originalEvent:$,delta:z};uI(z,v.swipeDirection,v.swipeThreshold)?Ig(IZ,x,U,{discrete:!0}):Ig(OZ,p,U,{discrete:!0}),Z.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),LZ=e=>{const{__scopeToast:t,children:r,...n}=e,i=bv(Xm,t),[a,o]=S.useState(!1),[l,u]=S.useState(!1);return BZ(()=>o(!0)),S.useEffect(()=>{const d=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:s.jsx(yv,{asChild:!0,children:s.jsx(vv,{...n,children:a&&s.jsxs(s.Fragment,{children:[i.label," ",r]})})})},$Z="ToastTitle",yB=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(Xe.div,{...n,ref:t})});yB.displayName=$Z;var FZ="ToastDescription",vB=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return s.jsx(Xe.div,{...n,ref:t})});vB.displayName=FZ;var bB="ToastAction",wB=S.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?s.jsx(SB,{altText:r,asChild:!0,children:s.jsx(QA,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bB}\`. Expected non-empty \`string\`.`),null)});wB.displayName=bB;var jB="ToastClose",QA=S.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=MZ(jB,r);return s.jsx(SB,{asChild:!0,children:s.jsx(Xe.button,{type:"button",...n,ref:t,onClick:Be(e.onClick,i.onClose)})})});QA.displayName=jB;var SB=S.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return s.jsx(Xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function kB(e){const t=[];
vendor: 3,801 bytes, lines 48-68
48return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),VZ(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...kB(n))}}),t}function Ig(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?oB(i,a):i.dispatchEvent(a)}var uI=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),a=n>i;return t==="left"||t==="right"?a&&n>r:!a&&i>r};function BZ(e=()=>{}){const t=Mr(e);Gr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function VZ(e){return e.nodeType===e.ELEMENT_NODE}function qZ(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Hw(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var WZ=hB,NB=pB,TB=xB,AB=yB,CB=vB,PB=wB,EB=QA;function _B(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=_B(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=_B(e))&&(n&&(n+=" "),n+=t);return n}const dI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fI=yt,zd=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return fI(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(d=>{const m=r==null?void 0:r[d],h=a==null?void 0:a[d];if(m===null)return null;const p=dI(m)||dI(h);return i[d][p]}),l=r&&Object.entries(r).reduce((d,m)=>{let[h,p]=m;return p===void 0||(d[h]=p),d},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:h,className:p,...x}=m;return Object.entries(x).every(w=>{let[v,y]=w;return Array.isArray(y)?y.includes({...a,...l}[v]):{...a,...l}[v]===y})?[...d,h,p]:d},[]);return fI(e,o,u,r==null?void 0:r.class,r==null?void 0:r.className)};/**
49 * @license lucide-react v0.453.0 - ISC
50 *
51 * This source code is licensed under the ISC license.
52 * See the LICENSE file in the root directory of this source tree.
53 */const zZ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),OB=(...e)=>e.filter((t,r,n)=>!!t&&n.indexOf(t)===r).join(" ");/**
54 * @license lucide-react v0.453.0 - ISC
55 *
56 * This source code is licensed under the ISC license.
57 * See the LICENSE file in the root directory of this source tree.
58 */var UZ={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"};/**
59 * @license lucide-react v0.453.0 - ISC
60 *
61 * This source code is licensed under the ISC license.
62 * See the LICENSE file in the root directory of this source tree.
63 */const HZ=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...l},u)=>S.createElement("svg",{ref:u,...UZ,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:OB("lucide",i),...l},[...o.map(([d,m])=>S.createElement(d,m)),...Array.isArray(a)?a:[a]]));/**
64 * @license lucide-react v0.453.0 - ISC
65 *
66 * This source code is licensed under the ISC license.
67 * See the LICENSE file in the root directory of this source tree.
68 */const ue=(e,t)=>
68{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(HZ,{ref:a,iconNode:t,className:OB(`lucide-${zZ(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
69 * @license lucide-react v0.453.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const IB=ue("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
74 * @license lucide-react v0.453.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */const li=ue("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
79 * @license lucide-react v0.453.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const Ft=ue("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
84 * @license lucide-react v0.453.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const GZ=ue("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
89 * @license lucide-react v0.453.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const KZ=ue("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
94 * @license lucide-react v0.453.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const Ix=ue("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
99 * @license lucide-react v0.453.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const ic=ue("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"}]]);/**
104 * @license lucide-react v0.453.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const pa=ue("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
109 * @license lucide-react v0.453.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const YZ=ue("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
114 * @license lucide-react v0.453.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const l2=ue("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
119 * @license lucide-react v0.453.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const RB=ue("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
124 * @license lucide-react v0.453.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const XZ=ue("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
129 * @license lucide-react v0.453.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const MB=ue("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
134 * @license lucide-react v0.453.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const Sa=ue("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"}]]);/**
139 * @license lucide-react v0.453.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const DB=ue("ChartBar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);/**
144 * @license lucide-react v0.453.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const $i=ue("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"}]]);/**
149 * @license lucide-react v0.453.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const Xo=ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
154 * @license lucide-react v0.453.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const wv=ue("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
159 * @license lucide-react v0.453.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const ZA=ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
164 * @license lucide-react v0.453.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const JA=ue("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
169 * @license lucide-react v0.453.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const ni=ue("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"}]]);/**
174 * @license lucide-react v0.453.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const ts=ue("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
179 * @license lucide-react v0.453.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const cs=ue("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
184 * @license lucide-react v0.453.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const Qm=ue("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/**
189 * @license lucide-react v0.453.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const LB=ue("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
194 * @license lucide-react v0.453.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const QZ=ue("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
199 * @license lucide-react v0.453.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const Rx=ue("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
204 * @license lucide-react v0.453.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const Oi=ue("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
209 * @license lucide-react v0.453.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const eC=ue("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
214 * @license lucide-react v0.453.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const $B=ue("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"}]]);/**
219 * @license lucide-react v0.453.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const ac=ue("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
224 * @license lucide-react v0.453.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const jv=ue("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"}]]);/**
229 * @license lucide-react v0.453.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const $o=ue("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"}]]);/**
234 * @license lucide-react v0.453.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const c2=ue("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
239 * @license lucide-react v0.453.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const is=ue("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"}]]);/**
244 * @license lucide-react v0.453.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const ZZ=ue("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/**
249 * @license lucide-react v0.453.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const JZ=ue("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
254 * @license lucide-react v0.453.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const hI=ue("FileSpreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/**
259 * @license lucide-react v0.453.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const Ni=ue("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"}]]);/**
264 * @license lucide-react v0.453.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const eJ=ue("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
269 * @license lucide-react v0.453.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const tC=ue("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
274 * @license lucide-react v0.453.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const hx=ue("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
279 * @license lucide-react v0.453.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const tJ=ue("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
284 * @license lucide-react v0.453.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const rJ=ue("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
289 * @license lucide-react v0.453.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const nJ=ue("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
294 * @license lucide-react v0.453.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const sJ=ue("Import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]);/**
299 * @license lucide-react v0.453.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const iJ=ue("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
304 * @license lucide-react v0.453.0 - ISC
305 *
306 * This source code is licensed under the ISC license.
307 * See the LICENSE file in the root directory of this source tree.
308 */const Zm=ue("Layers3",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m6.08 9.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1e5n1m"}],["path",{d:"m6.08 14.5-3.5 1.6a1 1 0 0 0 0 1.81l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9a1 1 0 0 0 0-1.83l-3.5-1.59",key:"1iwflc"}]]);/**
309 * @license lucide-react v0.453.0 - ISC
310 *
311 * This source code is licensed under the ISC license.
312 * See the LICENSE file in the root directory of this source tree.
313 */const u2=ue("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"}]]);/**
314 * @license lucide-react v0.453.0 - ISC
315 *
316 * This source code is licensed under the ISC license.
317 * See the LICENSE file in the root directory of this source tree.
318 */const rC=ue("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
319 * @license lucide-react v0.453.0 - ISC
320 *
321 * This source code is licensed under the ISC license.
322 * See the LICENSE file in the root directory of this source tree.
323 */const Bn=ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
324 * @license lucide-react v0.453.0 - ISC
325 *
326 * This source code is licensed under the ISC license.
327 * See the LICENSE file in the root directory of this source tree.
328 */const FB=ue("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
329 * @license lucide-react v0.453.0 - ISC
330 *
331 * This source code is licensed under the ISC license.
332 * See the LICENSE file in the root directory of this source tree.
333 */const Ii=ue("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"}]]);/**
334 * @license lucide-react v0.453.0 - ISC
335 *
336 * This source code is licensed under the ISC license.
337 * See the LICENSE file in the root directory of this source tree.
338 */const aJ=ue("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"}]]);/**
339 * @license lucide-react v0.453.0 - ISC
340 *
341 * This source code is licensed under the ISC license.
342 * See the LICENSE file in the root directory of this source tree.
343 */const mI=ue("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);/**
344 * @license lucide-react v0.453.0 - ISC
345 *
346 * This source code is licensed under the ISC license.
347 * See the LICENSE file in the root directory of this source tree.
348 */const xn=ue("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"}]]);/**
349 * @license lucide-react v0.453.0 - ISC
350 *
351 * This source code is licensed under the ISC license.
352 * See the LICENSE file in the root directory of this source tree.
353 */const pI=ue("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
354 * @license lucide-react v0.453.0 - ISC
355 *
356 * This source code is licensed under the ISC license.
357 * See the LICENSE file in the root directory of this source tree.
358 */const nC=ue("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"}]]);/**
359 * @license lucide-react v0.453.0 - ISC
360 *
361 * This source code is licensed under the ISC license.
362 * See the LICENSE file in the root directory of this source tree.
363 */const BB=ue("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
364 * @license lucide-react v0.453.0 - ISC
365 *
366 * This source code is licensed under the ISC license.
367 * See the LICENSE file in the root directory of this source tree.
368 */const oJ=ue("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"}]]);/**
369 * @license lucide-react v0.453.0 - ISC
370 *
371 * This source code is licensed under the ISC license.
372 * See the LICENSE file in the root directory of this source tree.
373 */const gI=ue("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
374 * @license lucide-react v0.453.0 - ISC
375 *
376 * This source code is licensed under the ISC license.
377 * See the LICENSE file in the root directory of this source tree.
378 */const VB=ue("MessageSquareText",[["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"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/**
379 * @license lucide-react v0.453.0 - ISC
380 *
381 * This source code is licensed under the ISC license.
382 * See the LICENSE file in the root directory of this source tree.
383 */const lJ=ue("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"}]]);/**
384 * @license lucide-react v0.453.0 - ISC
385 *
386 * This source code is licensed under the ISC license.
387 * See the LICENSE file in the root directory of this source tree.
388 */const cJ=ue("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
389 * @license lucide-react v0.453.0 - ISC
390 *
391 * This source code is licensed under the ISC license.
392 * See the LICENSE file in the root directory of this source tree.
393 */const xI=ue("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
394 * @license lucide-react v0.453.0 - ISC
395 *
396 * This source code is licensed under the ISC license.
397 * See the LICENSE file in the root directory of this source tree.
398 */const uJ=ue("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
399 * @license lucide-react v0.453.0 - ISC
400 *
401 * This source code is licensed under the ISC license.
402 * See the LICENSE file in the root directory of this source tree.
403 */const dJ=ue("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
404 * @license lucide-react v0.453.0 - ISC
405 *
406 * This source code is licensed under the ISC license.
407 * See the LICENSE file in the root directory of this source tree.
408 */const sC=ue("PhoneCall",[["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"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/**
409 * @license lucide-react v0.453.0 - ISC
410 *
411 * This source code is licensed under the ISC license.
412 * See the LICENSE file in the root directory of this source tree.
413 */const Sv=ue("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
414 * @license lucide-react v0.453.0 - ISC
415 *
416 * This source code is licensed under the ISC license.
417 * See the LICENSE file in the root directory of this source tree.
418 */const qB=ue("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}
418],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
419 * @license lucide-react v0.453.0 - ISC
420 *
421 * This source code is licensed under the ISC license.
422 * See the LICENSE file in the root directory of this source tree.
423 */const iC=ue("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"}]]);/**
424 * @license lucide-react v0.453.0 - ISC
425 *
426 * This source code is licensed under the ISC license.
427 * See the LICENSE file in the root directory of this source tree.
428 */const kv=ue("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
429 * @license lucide-react v0.453.0 - ISC
430 *
431 * This source code is licensed under the ISC license.
432 * See the LICENSE file in the root directory of this source tree.
433 */const fJ=ue("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
434 * @license lucide-react v0.453.0 - ISC
435 *
436 * This source code is licensed under the ISC license.
437 * See the LICENSE file in the root directory of this source tree.
438 */const Ud=ue("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
439 * @license lucide-react v0.453.0 - ISC
440 *
441 * This source code is licensed under the ISC license.
442 * See the LICENSE file in the root directory of this source tree.
443 */const Zu=ue("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"}]]);/**
444 * @license lucide-react v0.453.0 - ISC
445 *
446 * This source code is licensed under the ISC license.
447 * See the LICENSE file in the root directory of this source tree.
448 */const hJ=ue("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
449 * @license lucide-react v0.453.0 - ISC
450 *
451 * This source code is licensed under the ISC license.
452 * See the LICENSE file in the root directory of this source tree.
453 */const aC=ue("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
454 * @license lucide-react v0.453.0 - ISC
455 *
456 * This source code is licensed under the ISC license.
457 * See the LICENSE file in the root directory of this source tree.
458 */const d2=ue("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"}]]);/**
459 * @license lucide-react v0.453.0 - ISC
460 *
461 * This source code is licensed under the ISC license.
462 * See the LICENSE file in the root directory of this source tree.
463 */const mJ=ue("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
464 * @license lucide-react v0.453.0 - ISC
465 *
466 * This source code is licensed under the ISC license.
467 * See the LICENSE file in the root directory of this source tree.
468 */const Tc=ue("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
468y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
469 * @license lucide-react v0.453.0 - ISC
470 *
471 * This source code is licensed under the ISC license.
472 * See the LICENSE file in the root directory of this source tree.
473 */const ga=ue("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"}]]);/**
474 * @license lucide-react v0.453.0 - ISC
475 *
476 * This source code is licensed under the ISC license.
477 * See the LICENSE file in the root directory of this source tree.
478 */const pJ=ue("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
479 * @license lucide-react v0.453.0 - ISC
480 *
481 * This source code is licensed under the ISC license.
482 * See the LICENSE file in the root directory of this source tree.
483 */const Ra=ue("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"}]]);/**
484 * @license lucide-react v0.453.0 - ISC
485 *
486 * This source code is licensed under the ISC license.
487 * See the LICENSE file in the root directory of this source tree.
488 */const oC=ue("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
489 * @license lucide-react v0.453.0 - ISC
490 *
491 * This source code is licensed under the ISC license.
492 * See the LICENSE file in the root directory of this source tree.
493 */const gJ=ue("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
494 * @license lucide-react v0.453.0 - ISC
495 *
496 * This source code is licensed under the ISC license.
497 * See the LICENSE file in the root directory of this source tree.
498 */const xJ=ue("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
499 * @license lucide-react v0.453.0 - ISC
500 *
501 * This source code is licensed under the ISC license.
502 * See the LICENSE file in the root directory of this source tree.
503 */const yJ=ue("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
504 * @license lucide-react v0.453.0 - ISC
505 *
506 * This source code is licensed under the ISC license.
507 * See the LICENSE file in the root directory of this source tree.
508 */const Ri=ue("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"}]]);/**
509 * @license lucide-react v0.453.0 - ISC
510 *
511 * This source code is licensed under the ISC license.
512 * See the LICENSE file in the root directory of this source tree.
513 */const vJ=ue("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
514 * @license lucide-react v0.453.0 - ISC
515 *
516 * This source code is licensed under the ISC license.
517 * See the LICENSE file in the root directory of this source tree.
518 */const Nv=ue("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["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"}]]);/**
519 * @license lucide-react v0.453.0 - ISC
520 *
521 * This source code is licensed under the ISC license.
522 * See the LICENSE file in the root directory of this source tree.
523 */const bJ=ue("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"}]]);/**
524 * @license lucide-react v0.453.0 - ISC
525 *
526 * This source code is licensed under the ISC license.
527 * See the LICENSE file in the root directory of this source tree.
528 */const Ju=ue("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"}]]);/**
529 * @license lucide-react v0.453.0 - ISC
530 *
531 * This source code is licensed under the ISC license.
532 * See the LICENSE file in the root directory of this source tree.
533 */const ed=ue("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"}]]);/**
534 * @license lucide-react v0.453.0 - ISC
535 *
536 * This source code is licensed under the ISC license.
537 * See the LICENSE file in the root directory of this source tree.
538 */const yI=ue("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"}]]);/**
539 * @license lucide-react v0.453.0 - ISC
540 *
541 * This source code is licensed under the ISC license.
542 * See the LICENSE file in the root directory of this source tree.
543 */const f2=ue("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}
vendor: 9,379 bytes, lines 543-588
543],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
544 * @license lucide-react v0.453.0 - ISC
545 *
546 * This source code is licensed under the ISC license.
547 * See the LICENSE file in the root directory of this source tree.
548 */const wJ=ue("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/**
549 * @license lucide-react v0.453.0 - ISC
550 *
551 * This source code is licensed under the ISC license.
552 * See the LICENSE file in the root directory of this source tree.
553 */const Mx=ue("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"}]]);/**
554 * @license lucide-react v0.453.0 - ISC
555 *
556 * This source code is licensed under the ISC license.
557 * See the LICENSE file in the root directory of this source tree.
558 */const Qo=ue("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
559 * @license lucide-react v0.453.0 - ISC
560 *
561 * This source code is licensed under the ISC license.
562 * See the LICENSE file in the root directory of this source tree.
563 */const kn=ue("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"}]]);/**
564 * @license lucide-react v0.453.0 - ISC
565 *
566 * This source code is licensed under the ISC license.
567 * See the LICENSE file in the root directory of this source tree.
568 */const jJ=ue("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"}]]);/**
569 * @license lucide-react v0.453.0 - ISC
570 *
571 * This source code is licensed under the ISC license.
572 * See the LICENSE file in the root directory of this source tree.
573 */const lC=ue("Waypoints",[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]]);/**
574 * @license lucide-react v0.453.0 - ISC
575 *
576 * This source code is licensed under the ISC license.
577 * See the LICENSE file in the root directory of this source tree.
578 */const Zo=ue("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"}]]);/**
579 * @license lucide-react v0.453.0 - ISC
580 *
581 * This source code is licensed under the ISC license.
582 * See the LICENSE file in the root directory of this source tree.
583 */const Tv=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
584 * @license lucide-react v0.453.0 - ISC
585 *
586 * This source code is licensed under the ISC license.
587 * See the LICENSE file in the root directory of this source tree.
588 */const cC=ue("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"}]]),uC="-",SJ=e=>{const t=NJ(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(uC);return l[0]===""&&l.length!==1&&l.shift(),WB(l,t)||kJ(o)},getConflictingClassGroupIds:(o,l)=>{const u=r[o]||[];return l&&n[o]?[...u,...n[o]]:u}}},WB=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?WB(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(uC);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},vI=/^\[(.+)\]$/,kJ=e=>{if(vI.test(e)){const t=vI.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},NJ=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return AJ(Object.entries(e.classGroups),r).forEach(([a,o])=>{h2(o,n,a,t)}),n},h2=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:bI(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(TJ(i)){h2(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{h2(o,bI(t,a),r,n)})})},bI=(e,t)=>{let r=e;return t.split(uC).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},TJ=e=>e.isThemeGetter,AJ=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,l])=>[t+o,l])):a);return[r,i]}):e,CJ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},zB="!",PJ=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=l=>{const u=[];let d=0,m=0,h;for(let y=0;y<l.length;y++){let j=l[y];if(d===0){if(j===i&&(n||l.slice(y,y+a)===t)){u.push(l.slice(m,y)),m=y+a;continue}if(j==="/"){h=y;continue}}j==="["?d++:j==="]"&&d--}const p=u.length===0?l:l.substring(m),x=p.startsWith(zB),w=x?p.substring(1):p,v=h&&h>m?h-m:void 0;return{modifiers:u,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:v}};return r?l=>r({className:l,parseClassName:o}):o},EJ=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},_J=e=>({cache:CJ(e.cacheSize),parseClassName:PJ(e),...SJ(e)}),OJ=/\s+/,IJ=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(OJ);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{modifiers:m,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:x}=r(d);let w=!!x,v=n(w?p.substring(0,x):p);if(!v){if(!w){l=d+(l.length>0?" "+l:l);continue}if(v=n(p),!v){l=d+(l.length>0?" "+l:l);continue}w=!1}const y=EJ(m).join(":"),j=h?y+zB:y,k=j+v;if(a.includes(k))continue;a.push(k);const N=i(v,w);for(let C=0;C<N.length;++C){const A=N[C];a.push(j+A)}l=d+(l.length>0?" "+l:l)}return l};function RJ(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=UB(t))&&(n&&(n+=" "),n+=r);return n}const UB=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=UB(e[n]))&&(r&&(r+=" "),r+=t);return r};function MJ(e,...t){let r,n,i,a=o;function o(u){const d=t.reduce((m,h)=>h(m),e());return r=_J(d),n=r.cache.get,i=r.cache.set,a=l,l(u)}function l(u){const d=n(u);if(d)return d;const m=IJ(u,r);return i(u,m),m}return function(){return a(RJ.apply(null,arguments))}}const Zt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},HB=/^\[(?:([a-z-]+):)?(.+)\]$/i,DJ=/^\d+\/\d+$/,LJ=new Set(["px","full","screen"]),$J=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FJ=/\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$/,BJ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,VJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zi=e=>Eu(e)||LJ.has(e)||DJ.test(e),oo=e=>Hd(e,"length",XJ),Eu=e=>!!e&&!Number.isNaN(Number(e)),Gw=e=>Hd(e,"number",Eu),Zf=e=>!!e&&Number.isInteger(Number(e)),WJ=e=>e.endsWith("%")&&Eu(e.slice(0,-1)),xt=e=>HB.test(e),lo=e=>$J.test(e),zJ=new Set(["length","size","percentage"]),UJ=e=>Hd(e,zJ,GB),HJ=e=>Hd(e,"position",GB),GJ=new Set(["image","url"]),KJ=e=>Hd(e,GJ,ZJ),YJ=e=>Hd(e,"",QJ),Jf=()=>!0,Hd=(e,t,r)=>{const n=HB.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},XJ=e=>FJ.test(e)&&!BJ.test(e),GB=()=>!1,QJ=e=>VJ.test(e),ZJ=e=>qJ.test(e),JJ=()=>{const e=Zt("colors"),t=Zt("spacing"),r=Zt("blur"),n=Zt("brightness"),i=Zt("borderColor"),a=Zt("borderRadius"),o=Zt("borderSpacing"),l=Zt("borderWidth"),u=Zt("contrast"),d=Zt("grayscale"),m=Zt("hueRotate"),h=Zt("invert"),p=Zt("gap"),x=Zt("gradientColorStops"),w=Zt("gradientColorStopPositions"),v=Zt("inset"),y=Zt("margin"),j=Zt("opacity"),k=Zt("padding"),N=Zt("saturate"),C=Zt("scale"),A=Zt("sepia"),E=Zt("skew"),_=Zt("space"),R=Zt("translate"),O=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",xt,t],L=()=>[xt,t],I=()=>["",Zi,oo],$=()=>["auto",Eu,xt],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",xt],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Eu,xt];return{cacheSize:500,separator:":",theme:{colors:[Jf],spacing:[Zi,oo],blur:["none","",lo,xt],brightness:V(),borderColor:[e],borderRadius:["n
588one","","full",lo,xt],borderSpacing:L(),borderWidth:I(),contrast:V(),grayscale:q(),hueRotate:V(),invert:q(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[WJ,oo],inset:D(),margin:D(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:q(),skew:V(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[lo]}],"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:[...z(),xt]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zf,xt]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Zf,xt]}],"grid-cols":[{"grid-cols":[Jf]}],"col-start-end":[{col:["auto",{span:["full",Zf,xt]},xt]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Jf]}],"row-start-end":[{row:["auto",{span:[Zf,xt]},xt]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"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",xt,t]}],"min-w":[{"min-w":[xt,t,"min","max","fit"]}],"max-w":[{"max-w":[xt,t,"none","full","min","max","fit","prose",{screen:[lo]},lo]}],h:[{h:[xt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",lo,oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gw]}],"font-family":[{font:[Jf]}],"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",xt]}],"line-clamp":[{"line-clamp":["none",Eu,Gw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zi,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zi,oo]}],"underline-offset":[{"underline-offset":["auto",Zi,xt]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],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",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),HJ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UJ]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KJ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}
vendor: 5,180 bytes, line 588
588],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[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":[j]}],"border-style":[{border:[...K(),"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":[j]}],"divide-style":[{divide:K()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Zi,xt]}],"outline-w":[{outline:[Zi,oo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[Zi,oo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",lo,YJ]}],"shadow-color":[{shadow:[Jf]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",lo,xt]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[N]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"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",xt]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Zf,xt]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],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",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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,654 bytes, line 588
588],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",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zi,oo,Gw]}],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"]}}},eee=MJ(JJ);function Fe(...e){return eee(yt(e))}const tee=WZ,KB=S.forwardRef(({className:e,...t},r)=>s.jsx(NB,{ref:r,className:Fe("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}));KB.displayName=NB.displayName;const ree=zd("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"}}),YB=S.forwardRef(({className:e,variant:t,...r},n)=>s.jsx(TB,{ref:n,className:Fe(ree({variant:t}),e),...r}));YB.displayName=TB.displayName;const nee=S.forwardRef(({className:e,...t},r)=>s.jsx(PB,{ref:r,className:Fe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));nee.displayName=PB.displayName;const XB=S.forwardRef(({className:e,...t},r)=>s.jsx(EB,{ref:r,className:Fe("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,491 bytes, line 588
588/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(Tv,{className:"h-4 w-4"})}));XB.displayName=EB.displayName;const QB=S.forwardRef(({className:e,...t},r)=>s.jsx(AB,{ref:r,className:Fe("text-sm font-semibold",e),...t}));QB.displayName=AB.displayName;const ZB=S.forwardRef(({className:e,...t},r)=>s.jsx(CB,{ref:r,className:Fe("text-sm opacity-90",e),...t}));ZB.displayName=CB.displayName;function see(){const{toasts:e}=fs();return s.jsxs(tee,{children:[e.map(function({id:t,title:r,description:n,action:i,...a}){return s.jsxs(YB,{...a,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(QB,{children:r}),n&&s.jsx(ZB,{children:n})]}),i,s.jsx(XB,{})]},t)}),s.jsx(KB,{})]})}var iee=pv[" useId ".trim().toString()]||(()=>{}),aee=0;function Io(e){const[t,r]=S.useState(iee());return Gr(()=>{r(n=>n??String(aee++))},[e]),t?`radix-${t}`:""}const oee=["top","right","bottom","left"],Fo=Math.min,es=Math.max,Dx=Math.round,Rg=Math.floor,Ti=e=>({x:e,y:e}),lee={left:"right",right:"left",bottom:"top",top:"bottom"};function m2(e,t,r){return es(e,Fo(t,r))}function ka(e,t){return typeof e=="function"?e(t):e}function Na(e){return e.split("-")[0]}function Gd(e){return e.split("-")[1]}function dC(e){return e==="x"?"y":"x"}function fC(e){return e==="y"?"height":"width"}function ji(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hC(e){return dC(ji(e))}function cee(e,t,r){r===void 0&&(r=!1);const n=Gd(e),i=hC(e),a=fC(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Lx(o)),[o,Lx(o)]}function uee(e){const t=Lx(e);return[p2(e),t,p2(t)]}function p2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const wI=["left","right"],jI=["right","left"],dee=["top","bottom"],fee=["bottom","top"];function hee(e,t,r){switch(e){case"top":case"bottom":return r?t?jI:wI:t?wI:jI;case"left":case"right":return t?dee:fee;default:return[]}}function mee(e,t,r,n){const i=Gd(e);let a=hee(Na(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(p2)))),a}function Lx(e){const t=Na(e);return lee[t]+e.slice(t.length)}function pee(e){return{top:0,right:0,bottom:0,left:0,...e}}function JB(e){return typeof e!="number"?pee(e):{top:e,right:e,bottom:e,left:e}}function $x(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function SI(e,t,r){let{reference:n,floating:i}=e;const a=ji(t),o=hC(t),l=fC(o),u=Na(t),d=a==="y",m=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,p=n[l]/2-i[l]/2;let x;switch(u){case"top":x={x:m,y:n.y-i.height};break;case"bottom":x={x:m,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:h};break;case"left":x={x:n.x-i.width,y:h};break;default:x={x:n.x,y:n.y}}switch(Gd(t)){case"start":x[o]-=p*(r&&d?-1:1);break;case"end":x[o]+=p*(r&&d?-1:1);break}return x}async function gee(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:p=!1,padding:x=0}=ka(t,e),w=JB(x),y=l[p?h==="floating"?"reference":"floating":h],j=$x(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:m,strategy:u})),k=h==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(N))?await(a.getScale==null?void 0:a.getScale(N))||{x:1,y:1}:{x:1,y:1},A=$x(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:N,strategy:u}):k);return{top:(j.top-A.top+w.top)/C.y,bottom:(A.bottom-j.bottom+w.bottom)/C.y,left:(j.left-A.left+w.left)/C.x,right:(A.right-j.right+w.right)/C.x}}const xee=50,yee=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,l=o.detectOverflow?o:{...o,detectOverflow:gee},u=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}
vendor: 8,632 bytes, line 588
588),{x:m,y:h}=SI(d,n,u),p=n,x=0;const w={};for(let v=0;v<a.length;v++){const y=a[v];if(!y)continue;const{name:j,fn:k}=y,{x:N,y:C,data:A,reset:E}=await k({x:m,y:h,initialPlacement:n,placement:p,strategy:i,middlewareData:w,rects:d,platform:l,elements:{reference:e,floating:t}});m=N??m,h=C??h,w[j]={...w[j],...A},E&&x<xee&&(x++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(d=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:m,y:h}=SI(d,p,u)),v=-1)}return{x:m,y:h,placement:p,strategy:i,middlewareData:w}},vee=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:l,middlewareData:u}=t,{element:d,padding:m=0}=ka(e,t)||{};if(d==null)return{};const h=JB(m),p={x:r,y:n},x=hC(i),w=fC(x),v=await o.getDimensions(d),y=x==="y",j=y?"top":"left",k=y?"bottom":"right",N=y?"clientHeight":"clientWidth",C=a.reference[w]+a.reference[x]-p[x]-a.floating[w],A=p[x]-a.reference[x],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let _=E?E[N]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=l.floating[N]||a.floating[w]);const R=C/2-A/2,O=_/2-v[w]/2-1,F=Fo(h[j],O),D=Fo(h[k],O),L=F,I=_-v[w]-D,$=_/2-v[w]/2+R,z=m2(L,$,I),K=!u.arrow&&Gd(i)!=null&&$!==z&&a.reference[w]/2-($<L?F:D)-v[w]/2<0,Z=K?$<L?$-L:$-I:0;return{[x]:p[x]+Z,data:{[x]:z,centerOffset:$-z-Z,...K&&{alignmentOffset:Z}},reset:K}}}),bee=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...y}=ka(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const j=Na(i),k=ji(l),N=Na(l)===l,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(N||!v?[Lx(l)]:uee(l)),E=w!=="none";!p&&E&&A.push(...mee(l,v,w,C));const _=[l,...A],R=await u.detectOverflow(t,y),O=[];let F=((n=a.flip)==null?void 0:n.overflows)||[];if(m&&O.push(R[j]),h){const $=cee(i,o,C);O.push(R[$[0]],R[$[1]])}if(F=[...F,{placement:i,overflows:O}],!O.every($=>$<=0)){var D,L;const $=(((D=a.flip)==null?void 0:D.index)||0)+1,z=_[$];if(z&&(!(h==="alignment"?k!==ji(z):!1)||F.every(U=>ji(U.placement)===k?U.overflows[0]>0:!0)))return{data:{index:$,overflows:F},reset:{placement:z}};let K=(L=F.filter(Z=>Z.overflows[0]<=0).sort((Z,U)=>Z.overflows[1]-U.overflows[1])[0])==null?void 0:L.placement;if(!K)switch(x){case"bestFit":{var I;const Z=(I=F.filter(U=>{if(E){const q=ji(U.placement);return q===k||q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(q=>q>0).reduce((q,B)=>q+B,0)]).sort((U,q)=>U[1]-q[1])[0])==null?void 0:I[0];Z&&(K=Z);break}case"initialPlacement":K=l;break}if(i!==K)return{reset:{placement:K}}}return{}}}};function kI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NI(e){return oee.some(t=>e[t]>=0)}const wee=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...a}=ka(e,t);switch(i){case"referenceHidden":{const o=await n.detectOverflow(t,{...a,elementContext:"reference"}),l=kI(o,r.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:NI(l)}}}case"escaped":{const o=await n.detectOverflow(t,{...a,altBoundary:!0}),l=kI(o,r.floating);return{data:{escapedOffsets:l,escaped:NI(l)}}}default:return{}}}}},e7=new Set(["left","top"]);async function jee(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Na(r),l=Gd(r),u=ji(r)==="y",d=e7.has(o)?-1:1,m=a&&u?-1:1,h=ka(t,e);let{mainAxis:p,crossAxis:x,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(x=l==="end"?w*-1:w),u?{x:x*m,y:p*d}:{x:p*d,y:x*m}}const See=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:l}=t,u=await jee(t,e);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},kee=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:u={fn:j=>{let{x:k,y:N}=j;return{x:k,y:N}}},...d}=ka(e,t),m={x:r,y:n},h=await a.detectOverflow(t,d),p=ji(Na(i)),x=dC(p);let w=m[x],v=m[p];if(o){const j=x==="y"?"top":"left",k=x==="y"?"bottom":"right",N=w+h[j],C=w-h[k];w=m2(N,w,C)}if(l){const j=p==="y"?"top":"left",k=p==="y"?"bottom":"right",N=v+h[j],C=v-h[k];v=m2(N,v,C)}const y=u.fn({...t,[x]:w,[p]:v});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[x]:o,[p]:l}}}}}},Nee=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=ka(e,t),m={x:r,y:n},h=ji(i),p=dC(h);let x=m[p],w=m[h];const v=ka(l,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const N=p==="y"?"height":"width",C=a.reference[p]-a.floating[N]+y.mainAxis,A=a.reference[p]+a.reference[N]-y.mainAxis;x<C?x=C:x>A&&(x=A)}if(d){var j,k;const N=p==="y"?"width":"height",C=e7.has(Na(i)),A=a.reference[h]-a.floating[N]+(C&&((j=o.offset)==null?void 0:j[h])||0)+(C?0:y.crossAxis),E=a.reference[h]+a.reference[N]+(C?0:((k=o.offset)==null?void 0:k[h])||0)-(C?y.crossAxis:0);w<A?w=A:w>E&&(w=E)}return{[p]:x,[h]:w}}}},Tee=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:u=()=>{},...d}=ka(e,t),m=await o.detectOverflow(t,d),h=Na(i),p=Gd(i),x=ji(i)==="y",{width:w,height:v}=a.floating;let y,j;h==="top"||h==="bottom"?(y=h,j=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(j=h,y=p==="end"?"top":"bottom");const k=v-m.top-m.bottom,N=w-m.left-m.right,C=Fo(v-m[y],k),A=Fo(w-m[j],N),E=!t.middlewareData.shift;let _=C,R=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=N),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=k),E&&!p){const F=es(m.left,0),D=es(m.right,0),L=es(m.top,0),I=es(m.bottom,0);x?R=w-2*(F!==0||D!==0?F+D:es(m.left,m.right)):_=v-2*(L!==0||I!==0?L+I:es(m.top,m.bottom))}await u({...t,availableWidth:R,availableHeight:_});const O=await o.getDimensions(l.floating);return w!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function Av(){return typeof window<"u"}function Kd(e){return t7(e)?(e.nodeName||"").toLowerCase():"#document"}function as(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fi(e){var t;return(t=(t7(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function t7(e){return Av()?e instanceof Node||e instanceof as(e).Node:!1}function ii(e){return Av()?e instanceof Element||e instanceof as(e).Element:!1}function Ma(e){return Av()?e instanceof HTMLElement||e instanceof as(e).HTMLElement:!1}function TI(e){return!Av()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof as(e).ShadowRoot}function Jm(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=ai(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function Aee(e){return/^(table|td|th)$/.test(Kd(e))}function Cv(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Cee=/transform|translate|scale|rotate|perspective|filter/,Pee=/paint|layout|strict|content/,Sl=e=>!!e&&e!=="none";let Kw;function mC(e){const t=ii(e)?ai(e):e;return Sl(t.transform)||Sl(t.translate)||Sl(t.scale)||Sl(t.rotate)||Sl(t.perspective)||!pC()&&(Sl(t.backdropFilter)||Sl(t.filter))||Cee.test(t.willChange||"")||Pee.test(t.contain||"")}function Eee(e){let t=Bo(e);for(;Ma(t)&&!td(t);){if(mC(t))return t;if(Cv(t))return null;t=Bo(t)}return null}function pC(){return Kw==null&&(Kw=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kw}function td(e){return/^(html|body|#document)$/.test(Kd(e))}function ai(e){return as(e).getComputedStyle(e)}function Pv(e){return ii(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bo(e){if(Kd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||TI(e)&&e.host||Fi(e);return TI(t)?t.host:t}function r7(e){const t=Bo(e);return td(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ma(t)&&Jm(t)?t:r7(t)}function Gh(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=r7(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=as(i);if(a){const l=g2(o);
vendor: 14,453 bytes, line 588
588return t.concat(o,o.visualViewport||[],Jm(i)?i:[],l&&r?Gh(l):[])}else return t.concat(i,Gh(i,[],r))}function g2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function n7(e){const t=ai(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Ma(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,l=Dx(r)!==a||Dx(n)!==o;return l&&(r=a,n=o),{width:r,height:n,$:l}}function gC(e){return ii(e)?e:e.contextElement}function _u(e){const t=gC(e);if(!Ma(t))return Ti(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=n7(t);let o=(a?Dx(r.width):r.width)/n,l=(a?Dx(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const _ee=Ti(0);function s7(e){const t=as(e);return!pC()||!t.visualViewport?_ee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==as(e)?!1:t}function oc(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=gC(e);let o=Ti(1);t&&(n?ii(n)&&(o=_u(n)):o=_u(e));const l=Oee(a,r,n)?s7(a):Ti(0);let u=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,m=i.width/o.x,h=i.height/o.y;if(a){const p=as(a),x=n&&ii(n)?as(n):n;let w=p,v=g2(w);for(;v&&n&&x!==w;){const y=_u(v),j=v.getBoundingClientRect(),k=ai(v),N=j.left+(v.clientLeft+parseFloat(k.paddingLeft))*y.x,C=j.top+(v.clientTop+parseFloat(k.paddingTop))*y.y;u*=y.x,d*=y.y,m*=y.x,h*=y.y,u+=N,d+=C,w=as(v),v=g2(w)}}return $x({width:m,height:h,x:u,y:d})}function Ev(e,t){const r=Pv(e).scrollLeft;return t?t.left+r:oc(Fi(e)).left+r}function i7(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ev(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Iee(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Fi(n),l=t?Cv(t.floating):!1;if(n===o||l&&a)return r;let u={scrollLeft:0,scrollTop:0},d=Ti(1);const m=Ti(0),h=Ma(n);if((h||!h&&!a)&&((Kd(n)!=="body"||Jm(o))&&(u=Pv(n)),h)){const x=oc(n);d=_u(n),m.x=x.x+n.clientLeft,m.y=x.y+n.clientTop}const p=o&&!h&&!a?i7(o,u):Ti(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+m.x+p.x,y:r.y*d.y-u.scrollTop*d.y+m.y+p.y}}function Ree(e){return Array.from(e.getClientRects())}function Mee(e){const t=Fi(e),r=Pv(e),n=e.ownerDocument.body,i=es(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=es(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Ev(e);const l=-r.scrollTop;return ai(n).direction==="rtl"&&(o+=es(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:l}}const AI=25;function Dee(e,t){const r=as(e),n=Fi(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){a=i.width,o=i.height;const m=pC();(!m||m&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}const d=Ev(n);if(d<=0){const m=n.ownerDocument,h=m.body,p=getComputedStyle(h),x=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,w=Math.abs(n.clientWidth-h.clientWidth-x);w<=AI&&(a-=w)}else d<=AI&&(a+=d);return{width:a,height:o,x:l,y:u}}function Lee(e,t){const r=oc(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Ma(e)?_u(e):Ti(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,u=i*a.x,d=n*a.y;return{width:o,height:l,x:u,y:d}}function CI(e,t,r){let n;if(t==="viewport")n=Dee(e,r);else if(t==="document")n=Mee(Fi(e));else if(ii(t))n=Lee(t,r);else{const i=s7(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $x(n)}function a7(e,t){const r=Bo(e);return r===t||!ii(r)||td(r)?!1:ai(r).position==="fixed"||a7(r,t)}function $ee(e,t){const r=t.get(e);if(r)return r;let n=Gh(e,[],!1).filter(l=>ii(l)&&Kd(l)!=="body"),i=null;const a=ai(e).position==="fixed";let o=a?Bo(e):e;for(;ii(o)&&!td(o);){const l=ai(o),u=mC(o);!u&&l.position==="fixed"&&(i=null),(a?!u&&!i:!u&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Jm(o)&&!u&&a7(e,o))?n=n.filter(m=>m!==o):i=l,o=Bo(o)}return t.set(e,n),n}function Fee(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Cv(t)?[]:$ee(t,this._c):[].concat(r),n],l=CI(t,o[0],i);let u=l.top,d=l.right,m=l.bottom,h=l.left;for(let p=1;p<o.length;p++){const x=CI(t,o[p],i);u=es(x.top,u),d=Fo(x.right,d),m=Fo(x.bottom,m),h=es(x.left,h)}return{width:d-h,height:m-u,x:h,y:u}}function Bee(e){const{width:t,height:r}=n7(e);return{width:t,height:r}}function Vee(e,t,r){const n=Ma(t),i=Fi(t),a=r==="fixed",o=oc(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const u=Ti(0);function d(){u.x=Ev(i)}if(n||!n&&!a)if((Kd(t)!=="body"||Jm(i))&&(l=Pv(t)),n){const x=oc(t,!0,a,t);u.x=x.x+t.clientLeft,u.y=x.y+t.clientTop}else i&&d();a&&!n&&i&&d();const m=i&&!n&&!a?i7(i,l):Ti(0),h=o.left+l.scrollLeft-u.x-m.x,p=o.top+l.scrollTop-u.y-m.y;return{x:h,y:p,width:o.width,height:o.height}}function Yw(e){return ai(e).position==="static"}function PI(e,t){if(!Ma(e)||ai(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fi(e)===r&&(r=r.ownerDocument.body),r}function o7(e,t){const r=as(e);if(Cv(e))return r;if(!Ma(e)){let i=Bo(e);for(;i&&!td(i);){if(ii(i)&&!Yw(i))return i;i=Bo(i)}return r}let n=PI(e,t);for(;n&&Aee(n)&&Yw(n);)n=PI(n,t);return n&&td(n)&&Yw(n)&&!mC(n)?r:n||Eee(e)||r}const qee=async function(e){const t=this.getOffsetParent||o7,r=this.getDimensions,n=await r(e.floating);return{reference:Vee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Wee(e){return ai(e).direction==="rtl"}const zee={convertOffsetParentRelativeRectToViewportRelativeRect:Iee,getDocumentElement:Fi,getClippingRect:Fee,getOffsetParent:o7,getElementRects:qee,getClientRects:Ree,getDimensions:Bee,getScale:_u,isElement:ii,isRTL:Wee};function l7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uee(e,t){let r=null,n;const i=Fi(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),a();const d=e.getBoundingClientRect(),{left:m,top:h,width:p,height:x}=d;if(l||t(),!p||!x)return;const w=Rg(h),v=Rg(i.clientWidth-(m+p)),y=Rg(i.clientHeight-(h+x)),j=Rg(m),N={rootMargin:-w+"px "+-v+"px "+-y+"px "+-j+"px",threshold:es(0,Fo(1,u))||1};let C=!0;function A(E){const _=E[0].intersectionRatio;if(_!==u){if(!C)return o();_?o(!1,_):n=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!l7(d,e.getBoundingClientRect())&&o(),C=!1}try{r=new IntersectionObserver(A,{...N,root:i.ownerDocument})}catch{r=new IntersectionObserver(A,N)}r.observe(e)}return o(!0),a}function Hee(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,d=gC(e),m=i||a?[...d?Gh(d):[],...t?Gh(t):[]]:[];m.forEach(j=>{i&&j.addEventListener("scroll",r,{passive:!0}),a&&j.addEventListener("resize",r)});const h=d&&l?Uee(d,r):null;let p=-1,x=null;o&&(x=new ResizeObserver(j=>{let[k]=j;k&&k.target===d&&x&&t&&(x.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var N;(N=x)==null||N.observe(t)})),r()}),d&&!u&&x.observe(d),t&&x.observe(t));let w,v=u?oc(e):null;u&&y();function y(){const j=oc(e);v&&!l7(v,j)&&r(),v=j,w=requestAnimationFrame(y)}return r(),()=>{var j;m.forEach(k=>{i&&k.removeEventListener("scroll",r),a&&k.removeEventListener("resize",r)}),h==null||h(),(j=x)==null||j.disconnect(),x=null,u&&cancelAnimationFrame(w)}}const Gee=See,Kee=kee,Yee=bee,Xee=Tee,Qee=wee,EI=vee,Zee=Nee,Jee=(e,t,r)=>{const n=new Map,i={platform:zee,...r},a={...i.platform,_c:n};return yee(e,t,{...i,platform:a})};var ete=typeof document<"u",tte=function(){},mx=ete?S.useLayoutEffect:tte;function Fx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Fx(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Fx(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function c7(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _I(e,t){const r=c7(e);return Math.round(t*r)/r}function Xw(e){const t=S.useRef(e);return mx(()=>{t.current=e}),t}function rte(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[m,h]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,x]=S.useState(n);Fx(p,n)||x(n);const[w,v]=S.useState(null),[y,j]=S.useState(null),k=S.useCallback(U=>{U!==E.current&&(E.current=U,v(U))},[]),N=S.useCallback(U=>{U!==_.current&&(_.current=U,j(U))},[]),C=a||w,A=o||y,E=S.useRef(null),_=S.useRef(null),R=S.useRef(m),O=u!=null,F=Xw(u),D=Xw(i),L=Xw(d),I=S.useCallback(()=>{if(!E.current||!_.current)return;const U={placement:t,strategy:r,middleware:p};D.current&&(U.platform=D.current),Jee(E.current,_.current,U).then(q=>{const B={...q,isPositioned:L.current!==!1};$.current&&!Fx(R.current,B)&&(R.current=B,qd.flushSync(()=>{h(B)}))})},[p,t,r,D,L]);mx(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(U=>({...U,isPositioned:!1})))},[d]);const $=S.useRef(!1);mx(()=>($.current=!0,()=>{$.current=!1}),[]),mx(()=>{if(C&&(E.current=C),A&&(_.current=A),C&&A){if(F.current)return F.current(C,A,I);I()}},[C,A,I,F,O]);const z=S.useMemo(()=>({reference:E,floating:_,setReference:k,setFloating:N}),[k,N]),K=S.useMemo(()=>({reference:C,floating:A}),[C,A]),Z=S.useMemo(()=>{const U={position:r,left:0,top:0};if(!K.floating)return U;const q=_I(K.floating,m.x),B=_I(K.floating,m.y);return l?{...U,transform:"translate("+q+"px, "+B+"px)",...c7(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:B}},[r,l,K.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:I,refs:z,elements:K,floatingStyles:Z}),[m,I,z,K,Z])}const nte=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?EI({element:n.current,padding:i}).fn(r):{}:n?EI({element:n,padding:i}).fn(r):{}}}},ste=(e,t)=>{const r=Gee(e);return{name:r.name,fn:r.fn,options:[e,t]}},ite=(e,t)=>{const r=Kee(e);return{name:r.name,fn:r.fn,options:[e,t]}},ate=(e,t)=>({fn:Zee(e).fn,options:[e,t]}),ote=(e,t)=>{const r=Yee(e);return{name:r.name,fn:r.fn,options:[e,t]}},lte=(e,t)=>{const r=Xee(e);return{name:r.name,fn:r.fn,options:[e,t]}},cte=(e,t)=>{const r=Qee(e);return{name:r.name,fn:r.fn,options:[e,t]}},ute=(e,t)=>{const r=nte(e);return{name:r.name,fn:r.fn,options:[e,t]}};var dte="Arrow",u7=S.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return s.jsx(Xe.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});u7.displayName=dte;var fte=u7;function _v(e){const[t,r]=S.useState(void 0);return Gr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,l;if("borderBoxSize"in a){const u=a.borderBoxSize,d=Array.isArray(u)?u[0]:u;o=d.inlineSize,l=d.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 xC="Popper",[d7,Ov]=hs(xC),[hte,f7]=d7(xC),h7=e=>{const{__scopePopper:t,children:r}=e,[n,i]=S.useState(null);return s.jsx(hte,{scope:t,anchor:n,onAnchorChange:i,children:r})};h7.displayName=xC;var m7="PopperAnchor",p7=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=f7(m7,r),o=S.useRef(null),l=ht(t,o),u=S.useRef(null);return S.useEffect(()=>{const d=u.current;u.current=(n==null?void 0:n.current)||o.current,d!==u.current&&a.onAnchorChange(u.current)}),n?null:s.jsx(Xe.div,{...i,ref:l})});p7.displayName=m7;var yC="PopperContent",[mte,pte]=d7(yC),g7=S.forwardRef((e,t)=>{var ge,Ae,le,Se,Pe,ae;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:x="optimized",onPlaced:w,...v}=e,y=f7(yC,r),[j,k]=S.useState(null),N=ht(t,at=>k(at)),[C,A]=S.useState(null),E=_v(C),_=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,O=n+(a!=="center"?"-"+a:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},D=Array.isArray(d)?d:[d],L=D.length>0,I={padding:F,boundary:D.filter(xte),altBoundary:L},{refs:$,floatingStyles:z,placement:K,isPositioned:Z,middlewareData:U}=rte({strategy:"fixed",placement:O,whileElementsMounted:(...at)=>Hee(...at,{animationFrame:x==="always"}),elements:{reference:y.anchor},middleware:[ste({mainAxis:i+R,alignmentAxis:o}),u&&ite({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?ate():void 0,...I}),u&&ote({...I}),lte({...I,apply:({elements:at,rects:Ye,availableWidth:mt,availableHeight:Ie})=>{const{width:pt,height:rr}=Ye.reference,zt=at.floating.style;zt.setProperty("--radix-popper-available-width",`${mt}px`),zt.setProperty("--radix-popper-available-height",`${Ie}px`),zt.setProperty("--radix-popper-anchor-width",`${pt}px`),zt.setProperty("--radix-popper-anchor-height",`${rr}px`)}}),C&&ute({element:C,padding:l}),yte({arrowWidth:_,arrowHeight:R}),p&&cte({strategy:"referenceHidden",...I})]}),[q,B]=v7(K),V=Mr(w);Gr(()=>{Z&&(V==null||V())},[Z,V]);const X=(ge=U.arrow)==null?void 0:ge.x,ce=(Ae=U.arrow)==null?void 0:Ae.y,ye=((le=U.arrow)==null?void 0:le.centerOffset)!==0,[$e,Te]=S.useState();return Gr(()=>{j&&Te(window.getComputedStyle(j).zIndex)},[j]),s.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:Z?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(Se=U.transformOrigin)==null?void 0:Se.x,(Pe=U.transformOrigin)==null?void 0:Pe.y].join(" "),...((ae=U.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(mte,{scope:r,placedSide:q,onArrowChange:A,arrowX:X,arrowY:ce,shouldHideArrow:ye,children:s.jsx(Xe.div,{"data-side":q,"data-align":B,...v,ref:N,style:{...v.style,animation:Z?void 0:"none"}})})})});g7.displayName=yC;var x7="PopperArrow",gte={top:"bottom",right:"left",bottom:"top",left:"r
588ight"},y7=S.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=pte(x7,n),o=gte[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(fte,{...i,ref:r,style:{...i.style,display:"block"}})})});y7.displayName=x7;function xte(e){return e!==null}var yte=e=>({name:"transformOrigin",options:e,fn(t){var y,j,k;const{placement:r,rects:n,middlewareData:i}=t,o=((y=i.arrow)==null?void 0:y.centerOffset)!==0,l=o?0:e.arrowWidth,u=o?0:e.arrowHeight,[d,m]=v7(r),h={start:"0%",center:"50%",end:"100%"}[m],p=(((j=i.arrow)==null?void 0:j.x)??0)+l/2,x=(((k=i.arrow)==null?void 0:k.y)??0)+u/2;let w="",v="";return d==="bottom"?(w=o?h:`${p}px`,v=`${-u}px`):d==="top"?(w=o?h:`${p}px`,v=`${n.floating.height+u}px`):d==="right"?(w=`${-u}px`,v=o?h:`${x}px`):d==="left"&&(w=`${n.floating.width+u}px`,v=o?h:`${x}px`),{data:{x:w,y:v}}}});function v7(e){const[t,r="center"]=e.split("-");return[t,r]}var vte=h7,b7=p7,w7=g7,j7=y7,bte=Symbol("radix.slottable");function wte(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=bte,t}var[Iv]=hs("Tooltip",[Ov]),vC=Ov(),S7="TooltipProvider",jte=700,OI="tooltip.open",[Ste,k7]=Iv(S7),N7=e=>{const{__scopeTooltip:t,delayDuration:r=jte,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,o=S.useRef(!0),l=S.useRef(!1),u=S.useRef(0);return S.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),s.jsx(Ste,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(u.current),o.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(d=>{l.current=d},[]),disableHoverableContent:i,children:a})};N7.displayName=S7;var T7="Tooltip",[aOe,Rv]=Iv(T7),x2="TooltipTrigger",kte=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Rv(x2,r),a=k7(x2,r),o=vC(r),l=S.useRef(null),u=ht(t,l,i.onTriggerChange),d=S.useRef(!1),m=S.useRef(!1),h=S.useCallback(()=>d.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),s.jsx(b7,{asChild:!0,...o,children:s.jsx(Xe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:u,onPointerMove:Be(e.onPointerMove,p=>{p.pointerType!=="touch"&&!m.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:Be(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:Be(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Be(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:Be(e.onBlur,i.onClose),onClick:Be(e.onClick,i.onClose)})})});kte.displayName=x2;var Nte="TooltipPortal",[oOe,Tte]=Iv(Nte,{forceMount:void 0}),rd="TooltipContent",A7=S.forwardRef((e,t)=>{const r=Tte(rd,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,o=Rv(rd,e.__scopeTooltip);return s.jsx(ms,{present:n||o.open,children:o.disableHoverableContent?s.jsx(C7,{side:i,...a,ref:t}):s.jsx(Ate,{side:i,...a,ref:t})})}),Ate=S.forwardRef((e,t)=>{const r=Rv(rd,e.__scopeTooltip),n=k7(rd,e.__scopeTooltip),i=S.useRef(null),a=ht(t,i),[o,l]=S.useState(null),{trigger:u,onClose:d}=r,m=i.current,{onPointerInTransitChange:h}=n,p=S.useCallback(()=>{l(null),h(!1)},[h]),x=S.useCallback((w,v)=>{const y=w.currentTarget,j={x:w.clientX,y:w.clientY},k=Ote(j,y.getBoundingClientRect()),N=Ite(j,k),C=Rte(v.getBoundingClientRect()),A=Dte([...N,...C]);l(A),h(!0)},[h]);return S.useEffect(()=>()=>p(),[p]),S.useEffect(()=>{if(u&&m){const w=y=>x(y,m),v=y=>x(y,u);return u.addEventListener("pointerleave",w),m.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",w),m.removeEventListener("pointerleave",v)}}},[u,m,x,p]),S.useEffect(()=>{if(o){const w=v=>{const y=v.target,j={x:v.clientX,y:v.clientY},k=(u==null?void 0:u.contains(y))||(m==null?void 0:m.contains(y)),N=!Mte(j,o);k?p():N&&(p(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[u,m,o,d,p]),s.jsx(C7,{...e,ref:a})}),[Cte,Pte]=Iv(T7,{isInside:!1}),Ete=wte("TooltipContent"),C7=S.forwardRef((e,t)=>
vendor: 4,208 bytes, line 588
588{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...l}=e,u=Rv(rd,r),d=vC(r),{onClose:m}=u;return S.useEffect(()=>(document.addEventListener(OI,m),()=>document.removeEventListener(OI,m)),[m]),S.useEffect(()=>{if(u.trigger){const h=p=>{const x=p.target;x!=null&&x.contains(u.trigger)&&m()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,m]),s.jsx(Ym,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:m,children:s.jsxs(w7,{"data-state":u.stateAttribute,...d,...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(Ete,{children:n}),s.jsx(Cte,{scope:r,isInside:!0,children:s.jsx(NZ,{id:u.contentId,role:"tooltip",children:i||n})})]})})});A7.displayName=rd;var P7="TooltipArrow",_te=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=vC(r);return Pte(P7,r).isInside?null:s.jsx(j7,{...i,...n,ref:t})});_te.displayName=P7;function Ote(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Ite(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 Rte(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function Mte(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const l=t[a],u=t[o],d=l.x,m=l.y,h=u.x,p=u.y;m>n!=p>n&&r<(h-d)*(n-m)/(p-m)+d&&(i=!i)}return i}function Dte(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),Lte(t)}function Lte(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const a=r[r.length-1],o=r[r.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var $te=N7,E7=A7;const Fte=$te,Bte=S.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(E7,{ref:n,sideOffset:t,className:Fe("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 origin-[--radix-tooltip-content-transform-origin]",e),...r}));Bte.displayName=E7.displayName;const Re=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Re.displayName="Card";const Nt=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("flex flex-col space-y-1.5 p-6",e),...t}));Nt.displayName="CardHeader";const Lt=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("text-2xl font-semibold leading-none tracking-tight",e),...t}));Lt.displayName="CardTitle";const Kt=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("text-sm text-muted-foreground",e),...t}));Kt.displayName="CardDescription";const Me=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("p-6 pt-0",e),...t}));
588Me.displayName="CardContent";const y2=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("flex items-center p-6 pt-0",e),...t}));y2.displayName="CardFooter";function Vte(){return s.jsx("div",{className:"min-h-screen w-full flex items-center justify-center",children:s.jsx(Re,{className:"w-full max-w-md mx-4 bg-card/20 backdrop-blur-sm border border-white/10",children:s.jsxs(Me,{className:"pt-6",children:[s.jsxs("div",{className:"flex mb-4 gap-2",children:[s.jsx(ni,{className:"h-8 w-8 text-cyan-400"}),s.jsx("h1",{className:"text-2xl font-bold text-white",children:"404 Page Not Found"})]}),s.jsx("p",{className:"mt-4 text-sm text-white/70",children:"Did you forget to add the page to the router?"})]})})})}var Qw={exports:{}},Zw,II;function qte(){if(II)return Zw;II=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zw=e,Zw}var Jw,RI;function Wte(){if(RI)return Jw;RI=1;var e=qte();function t(){}function r(){}return r.resetWarningCache=t,Jw=function(){function n(o,l,u,d,m,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Jw}var MI;function zte(){return MI||(MI=1,Qw.exports=Wte()()),Qw.exports}var Ute=zte();const Qe=Tt(Ute);var ej,DI;function Hte(){if(DI)return ej;DI=1;function e(l){return l&&typeof l=="object"&&"default"in l?l.default:l}var t=Km(),r=e(t);function n(l,u,d){return u in l?Object.defineProperty(l,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):l[u]=d,l}function i(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var a=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(l,u,d){if(typeof l!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof u!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof d<"u"&&typeof d!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function m(h){return h.displayName||h.name||"Component"}return function(p){if(typeof p!="function")throw new Error("Expected WrappedComponent to be a React component.");var x=[],w;function v(){w=l(x.map(function(j){return j.props})),y.canUseDOM?u(w):d&&(w=d(w))}var y=(function(j){i(k,j);function k(){return j.apply(this,arguments)||this}k.peek=function(){return w},k.rewind=function(){if(k.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=w;return w=void 0,x=[],A};var N=k.prototype;return N.UNSAFE_componentWillMount=function(){x.push(this),v()},N.componentDidUpdate=function(){v()},N.componentWillUnmount=function(){var A=x.indexOf(this);x.splice(A,1),v()},N.render=function(){return r.createElement(p,this.props)},k})(t.PureComponent);return n(y,"displayName","SideEffect("+m(p)+")"),n(y,"canUseDOM",a),y}}return ej=o,ej}var Gte=Hte();const Kte=Tt(Gte);var tj,LI;function Yte(){if(LI)return tj;LI=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var l,u,d;if(Array.isArray(a)){if(l=a.length,l!=o.length)return!1;for(u=l;u--!==0;)if(!i(a[u],o[u]))return!1;return!0}var m;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(m=a.entries();!(u=m.next()).done;)if(!o.has(u.value[0]))return!1;for(m=a.entries();!(u=m.next()).done;)if(!i(u.value[1],o.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(m=a.entries();!(u=m.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(l=a.length,l!=o.length)return!1;for(u=l;u--!==0;)if(a[u]!==o[u])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(d=Object.keys(a),l=d.length,l!==Object.keys(o).length)return!1;for(u=l;u--!==0;)if(!Object.prototype.hasOwnProperty.call(o,d[u]))return!1;if(e&&a instanceof Element)return!1;for(u=l;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&a.$$typeof)&&!i(a[d[u]],o[d[u]]))return!1;return!0}return a!==a&&o!==o}return tj=function(o,l){try{return i(o,l)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},tj}var Xte=Yte();const Qte=Tt(Xte);/*
589object-assign
590(c) Sindre Sorhus
591@license MIT
592*/var rj,$I;function Zte(){if($I)return rj;$I=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(o).map(function(m){return o[m]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return rj=i()?Object.assign:function(a,o){for(var l,u=n(a),d,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){d=e(l);for(var p=0;p<d.length;p++)r.call(l,d[p])&&(u[d[p]]=l[d[p]])}}return u},rj}var Jte=Zte();const ere=Tt(Jte);var Ql={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},ft={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(ft).map(function(e){return ft[e]});var sr={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Bx={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Kh={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},tre=Object.keys(Bx).reduce(function(e,t){return e[Bx[t]]=t,e},{}),rre=[ft.NOSCRIPT,ft.SCRIPT,ft.STYLE],ti="data-react-helmet",nre=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sre=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ire=(function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),Ln=Object.assign||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},are=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},FI=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ore=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},v2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},lre=function(t){var r=Ou(t,ft.TITLE),n=Ou(t,Kh.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var i=Ou(t,Kh.DEFAULT_TITLE);return r||i||void 0},cre=function(t){return Ou(t,Kh.ON_CHANGE_CLIENT_STATE)||function(){}},nj=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,i){return Ln({},n,i)},{})},ure=function(t,r){return r.filter(function(n){return typeof n[ft.BASE]<"u"}).map(function(n){return n[ft.BASE]}).reverse().reduce(function(n,i){if(!n.length)for(var a=Object.keys(i),o=0;o<a.length;o++){var l=a[o],u=l.toLowerCase();if(t.indexOf(u)!==-1&&i[u])return n.concat(i)}return n},[])},eh=function(t,r,n){var i={};return n.filter(function(a){return Array.isArray(a[t])?!0:(typeof a[t]<"u"&&mre
592("Helmet: "+t+' should be of type "Array". Instead found type "'+nre(a[t])+'"'),!1)}).map(function(a){return a[t]}).reverse().reduce(function(a,o){var l={};o.filter(function(p){for(var x=void 0,w=Object.keys(p),v=0;v<w.length;v++){var y=w[v],j=y.toLowerCase();r.indexOf(j)!==-1&&!(x===sr.REL&&p[x].toLowerCase()==="canonical")&&!(j===sr.REL&&p[j].toLowerCase()==="stylesheet")&&(x=j),r.indexOf(y)!==-1&&(y===sr.INNER_HTML||y===sr.CSS_TEXT||y===sr.ITEM_PROP)&&(x=y)}if(!x||!p[x])return!1;var k=p[x].toLowerCase();return i[x]||(i[x]={}),l[x]||(l[x]={}),i[x][k]?!1:(l[x][k]=!0,!0)}).reverse().forEach(function(p){return a.push(p)});for(var u=Object.keys(l),d=0;d<u.length;d++){var m=u[d],h=ere({},i[m],l[m]);i[m]=h}return a},[]).reverse()},Ou=function(t,r){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.hasOwnProperty(r))return i[r]}return null},dre=function(t){return{baseTag:ure([sr.HREF,sr.TARGET],t),bodyAttributes:nj(Ql.BODY,t),defer:Ou(t,Kh.DEFER),encode:Ou(t,Kh.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nj(Ql.HTML,t),linkTags:eh(ft.LINK,[sr.REL,sr.HREF],t),metaTags:eh(ft.META,[sr.NAME,sr.CHARSET,sr.HTTPEQUIV,sr.PROPERTY,sr.ITEM_PROP],t),noscriptTags:eh(ft.NOSCRIPT,[sr.INNER_HTML],t),onChangeClientState:cre(t),scriptTags:eh(ft.SCRIPT,[sr.SRC,sr.INNER_HTML],t),styleTags:eh(ft.STYLE,[sr.CSS_TEXT],t),title:lre(t),titleAttributes:nj(Ql.TITLE,t)}},b2=(function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){b2(t)},0)}})(),BI=function(t){return clearTimeout(t)},fre=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||b2:global.requestAnimationFrame||b2,hre=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||BI:global.cancelAnimationFrame||BI,mre=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},th=null,pre=function(t){th&&hre(th),t.defer?th=fre(function(){VI(t,function(){th=null})}):(VI(t),th=null)},VI=function(t,r){var n=t.baseTag,i=t.bodyAttributes,a=t.htmlAttributes,o=t.linkTags,l=t.metaTags,u=t.noscriptTags,d=t.onChangeClientState,m=t.scriptTags,h=t.styleTags,p=t.title,x=t.titleAttributes;w2(ft.BODY,i),w2(ft.HTML,a),gre(p,x);var w={baseTag:su(ft.BASE,n),linkTags:su(ft.LINK,o),metaTags:su(ft.META,l),noscriptTags:su(ft.NOSCRIPT,u),scriptTags:su(ft.SCRIPT,m),styleTags:su(ft.STYLE,h)},v={},y={};
592Object.keys(w).forEach(function(j){var k=w[j],N=k.newTags,C=k.oldTags;N.length&&(v[j]=N),C.length&&(y[j]=w[j].oldTags)}),r&&r(),d(t,v,y)},_7=function(t){return Array.isArray(t)?t.join(""):t},gre=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=_7(t)),w2(ft.TITLE,r)},w2=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var i=n.getAttribute(ti),a=i?i.split(","):[],o=[].concat(a),l=Object.keys(r),u=0;u<l.length;u++){var d=l[u],m=r[d]||"";n.getAttribute(d)!==m&&n.setAttribute(d,m),a.indexOf(d)===-1&&a.push(d);var h=o.indexOf(d);h!==-1&&o.splice(h,1)}for(var p=o.length-1;p>=0;p--)n.removeAttribute(o[p]);a.length===o.length?n.removeAttribute(ti):n.getAttribute(ti)!==l.join(",")&&n.setAttribute(ti,l.join(","))}},su=function(t,r){var n=document.head||document.querySelector(ft.HEAD),i=n.querySelectorAll(t+"["+ti+"]"),a=Array.prototype.slice.call(i),o=[],l=void 0;return r&&r.length&&r.forEach(function(u){var d=document.createElement(t);for(var m in u)if(u.hasOwnProperty(m))if(m===sr.INNER_HTML)d.innerHTML=u.innerHTML;else if(m===sr.CSS_TEXT)d.styleSheet?d.styleSheet.cssText=u.cssText:d.appendChild(document.createTextNode(u.cssText));else{var h=typeof u[m]>"u"?"":u[m];d.setAttribute(m,h)}d.setAttribute(ti,"true"),a.some(function(p,x){return l=x,d.isEqualNode(p)})?a.splice(l,1):o.push(d)}),a.forEach(function(u){return u.parentNode.removeChild(u)}),o.forEach(function(u){return n.appendChild(u)}),{oldTags:a,newTags:o}},O7=function(t){return Object.keys(t).reduce(function(r,n){var i=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+i:i},"")},xre=function(t,r,n,i){var a=O7(n),o=_7(r);return a?"<"+t+" "+ti+'="true" '+a+">"+v2(o,i)+"</"+t+">":"<"+t+" "+ti+'="true">'+v2(o,i)+"</"+t+">"},yre=function(t,r,n){return r.reduce(function(i,a){var o=Object.keys(a).filter(function(d){return!(d===sr.INNER_HTML||d===sr.CSS_TEXT)}).reduce(function(d,m){var h=typeof a[m]>"u"?m:m+'="'+v2(a[m],n)+'"';return d?d+" "+h:h},""),l=a.innerHTML||a.cssText||"",u=rre.indexOf(t)===-1;return i+"<"+t+" "+ti+'="true" '+o+(u?"/>":">"+l+"</"+t+">")},"")},I7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[Bx[i]||i]=t[i],n},r)},vre=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[tre[i]||i]=t[i],n},r)},bre=function(t,r,n){var i,a=(i={key:r},i[ti]=!0,i),o=I7(n,a);return[W.createElement(ft.TITLE,o,r)]},wre=function(t,r){return r.map(function(n,i){var a,o=(a={key:i},a[ti]=!0,a);return Object.keys(n).forEach(function(l){var u=Bx[l]||l;if(u===sr.INNER_HTML||u===sr.CSS_TEXT){var d=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:d}}else o[u]=n[l]}),W.createElement(t,o)})},Ji=function(t,r,n){switch(t){case ft.TITLE:return{toComponent:function(){return bre(t,r.title,r.titleAttributes)},toString:function(){return xre(t,r.title,r.titleAttributes,n)}};case Ql.BODY:case Ql.HTML:return{toComponent:function(){return I7(r)},toString:function(){return O7(r)}};default:return{toComponent:function(){return wre(t,r)},toString:function(){return yre(t,r,n)}}}},R7=function(t){var r=t.baseTag,n=t.bodyAttributes,i=t.encode,a=t.htmlAttributes,o=t.linkTags,l=t.metaTags,u=t.noscriptTags,d=t.scriptTags,m=t.styleTags,h=t.title,p=h===void 0?"":h,x=t.titleAttributes;return{base:Ji(ft.BASE,r,i),bodyAttributes:Ji(Ql.BODY,n,i),htmlAttributes:Ji(Ql.HTML,a,i),link:Ji(ft.LINK,o,i),meta:Ji(ft.META,l,i),noscript:Ji(ft.NOSCRIPT,u,i),script:Ji(ft.SCRIPT,d,i),style:Ji(ft.STYLE,m,i),title:Ji(ft.TITLE,{title:p,titleAttributes:x},i)}},jre=function(t){var r,n;return n=r=(function(i){are(a,i);function a(){return sre(this,a),ore(this,i.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(l){return!Qte(this.props,l)},a.prototype.mapNestedChildrenToProps=function(l,u){if(!u)return null;switch(l.type){case ft.SCRIPT:case ft.NOSCRIPT:return{innerHTML:u};case ft.STYLE:return{cssText:u}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(l){var u,d=l.child,m=l.arrayTypeChildren,h=l.newChildProps,p=l.nestedChildren;return Ln({},m,(u={},u[d.type]=[].concat(m[d.type]||[],[Ln({},h,this.mapNestedChildrenToProps(d,p))]),u))},a.prototype.mapObjectTypeChildren=function(l){var u,d,m=l.child,h=l.newProps,p=l.newChildProps,x=l.nestedChildren;
592switch(m.type){case ft.TITLE:return Ln({},h,(u={},u[m.type]=x,u.titleAttributes=Ln({},p),u));case ft.BODY:return Ln({},h,{bodyAttributes:Ln({},p)});case ft.HTML:return Ln({},h,{htmlAttributes:Ln({},p)})}return Ln({},h,(d={},d[m.type]=Ln({},p),d))},a.prototype.mapArrayTypeChildrenToProps=function(l,u){var d=Ln({},u);return Object.keys(l).forEach(function(m){var h;d=Ln({},d,(h={},h[m]=l[m],h))}),d},a.prototype.warnOnInvalidChildren=function(l,u){return!0},a.prototype.mapChildrenToProps=function(l,u){var d=this,m={};return W.Children.forEach(l,function(h){if(!(!h||!h.props)){var p=h.props,x=p.children,w=FI(p,["children"]),v=vre(w);switch(d.warnOnInvalidChildren(h,x),h.type){case ft.LINK:case ft.META:case ft.NOSCRIPT:case ft.SCRIPT:case ft.STYLE:m=d.flattenArrayTypeChildren({child:h,arrayTypeChildren:m,newChildProps:v,nestedChildren:x});break;default:u=d.mapObjectTypeChildren({child:h,newProps:u,newChildProps:v,nestedChildren:x});break}}}),u=this.mapArrayTypeChildrenToProps(m,u),u},a.prototype.render=function(){var l=this.props,u=l.children,d=FI(l,["children"]),m=Ln({},d);return u&&(m=this.mapChildrenToProps(u,m)),W.createElement(t,m)},ire(a,null,[{key:"canUseDOM",set:function(l){t.canUseDOM=l}}]),a})(W.Component),r.propTypes={base:Qe.object,bodyAttributes:Qe.object,children:Qe.oneOfType([Qe.arrayOf(Qe.node),Qe.node]),defaultTitle:Qe.string,defer:Qe.bool,encodeSpecialCharacters:Qe.bool,htmlAttributes:Qe.object,link:Qe.arrayOf(Qe.object),meta:Qe.arrayOf(Qe.object),noscript:Qe.arrayOf(Qe.object),onChangeClientState:Qe.func,script:Qe.arrayOf(Qe.object),style:Qe.arrayOf(Qe.object),title:Qe.string,titleAttributes:Qe.object,titleTemplate:Qe.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var i=t.rewind();return i||(i=R7({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},n},Sre=function(){return null},kre=Kte(dre,pre,R7)(Sre),Vx=jre(kre);Vx.renderStatic=Vx.rewind;const Nre=({type:e,data:t})=>{const r={"@context":"https://schema.org","@type":e,...t};return s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})},Lr=({title:e,description:t,keywords:r,canonicalUrl:n,ogType:i="website",ogImage:a="/revamp-assets/social-preview.svg",structuredData:o})=>s.jsxs(s.Fragment,{children:[s.jsxs(Vx,{children:[s.jsx("title",{children:e}),s.jsx("meta",{name:"description",content:t}),r&&s.jsx("meta",{name:"keywords",content:r}),s.jsx("link",{rel:"canonical",href:n}),s.jsx("meta",{property:"og:type",content:i}),s.jsx("meta",{property:"og:url",content:n}),s.jsx("meta",{property:"og:title",content:e}),s.jsx("meta",{property:"og:description",content:t}),s.jsx("meta",{property:"og:image",content:a}),s.jsx("meta",{property:"twitter:url",content:n}),s.jsx("meta",{property:"twitter:title",content:e}),s.jsx("meta",{property:"twitter:description",content:t}),s.jsx("meta",{property:"twitter:image",content:a})]}),o&&s.jsx(Nre,{type:o.type,data:o.data})]});var M7={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qI=W.createContext&&W.createContext(M7),Tre=["attr","size","title"];function Are(e,t){if(e==null)return{};var r,n,i=Cre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Cre(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qx(){return qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qx.apply(null,arguments)}function WI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,532 bytes, line 592
592t%2?WI(Object(r),!0).forEach(function(n){Pre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pre(e,t,r){return(t=Ere(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ere(e){var t=_re(e,"string");return typeof t=="symbol"?t:t+""}function _re(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D7(e){return e&&e.map((t,r)=>W.createElement(t.tag,Wx({key:r},t.attr),D7(t.child)))}function Ac(e){return t=>W.createElement(Ore,qx({attr:Wx({},e.attr)},t),D7(e.child))}function Ore(e){var t=r=>{var{attr:n,size:i,title:a}=e,o=Are(e,Tre),l=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),W.createElement("svg",qx({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:u,style:Wx(Wx({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&W.createElement("title",null,a),e.children)};return qI!==void 0?W.createElement(qI.Consumer,null,r=>t(r)):t(M7)}function bC(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},child:[]}]})(e)}function wC(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.006 5.415a4.195 4.195 0 013.045-1.306c1.56 0 2.954.9 3.69 2.205.63-.3 1.35-.45 2.1-.45 2.85 0 5.159 2.34 5.159 5.22s-2.31 5.22-5.176 5.22c-.345 0-.69-.044-1.02-.104a3.75 3.75 0 01-3.3 1.95c-.6 0-1.155-.15-1.65-.375A4.314 4.314 0 018.88 20.4a4.302 4.302 0 01-4.05-2.82c-.27.062-.54.076-.825.076-2.204 0-4.005-1.8-4.005-4.05 0-1.5.811-2.805 2.01-3.51-.255-.57-.39-1.2-.39-1.846 0-2.58 2.1-4.65 4.65-4.65 1.53 0 2.85.705 3.72 1.8"},child:[]}]})(e)}function Yd(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm
5921.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"},child:[]}]})(e)}function Ire(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21.4737 5.6842c-1.1772 0-2.1663.8051-2.4468 1.8947h-2.8955c-1.235 0-2.289.893-2.492 2.111l-.1038.623a1.263 1.263 0 0 1-1.246 1.0555H11.289c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947s-2.1663.8051-2.4467 1.8947H4.973c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947C1.1311 9.4737 0 10.6047 0 12s1.131 2.5263 2.5263 2.5263c1.1772 0 2.1663-.8051 2.4468-1.8947h1.4223c.2804 1.0896 1.2696 1.8947 2.4467 1.8947 1.1772 0 2.1663-.8051 2.4468-1.8947h1.0008a1.263 1.263 0 0 1 1.2459 1.0555l.1038.623c.203 1.218 1.257 2.111 2.492 2.111h.3692c.2804 1.0895 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263c-1.1772 0-2.1664.805-2.4468 1.8947h-.3692a1.263 1.263 0 0 1-1.246-1.0555l-.1037-.623A2.52 2.52 0 0 0 13.9607 12a2.52 2.52 0 0 0 .821-1.4794l.1038-.623a1.263 1.263 0 0 1 1.2459-1.0555h2.8955c.2805 1.0896 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263m0 1.2632a1.263 1.263 0 0 1 1.2631 1.2631 1.263 1.263 0 0 1-1.2631 1.2632 1.263 1.263 0 0 1-1.2632-1.2632 1.263 1.263 0 0 1 1.2632-1.2631M2.5263 10.7368A1.263 1.263 0 0 1 3.7895 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 1.2632 12a1.263 1.263 0 0 1 1.2631-1.2632m6.3158 0A1.263 1.263 0 0 1 10.1053 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 7.579 12a1.263 1.263 0 0 1 1.2632-1.2632m10.1053 3.7895a1.263 1.263 0 0 1 1.2631 1.2632 1.263 1.263 0 0 1-1.2631 1.2631 1.263 1.263 0 0 1-1.2632-1.2631 1.263 1.263 0 0 1 1.2632-1.2632"},child:[]}]})(e)}function jC(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z"},child:[]}]})(e)}function L7(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.01 1.485c-2.082 0-3.754.02-3.743.047.01.02 1.708 3.001 3.774 6.62l3.76 6.574h3.76c2.081 0 3.753-.02 3.742-.047-.005-.02-1.708-3.001-3.775-6.62l-3.76-6.574zm-4.76 1.73a789.828 789.861 0 0 0-3.63 6.319L0 15.868l1.89 3.298 1.885 3.297 3.62-6.335 3.618-6.33-1.88-3.287C8.1 4.704 7.255 3.22 7.25 3.214zm2.259 12.653-.203.348c-.114.198-.96 1.672-1.88 3.287a423.93 423.948 0 0 1-1.698 2.97c-.01.026 3.24.042 7.222.042h7.244l1.796-3.157c.992-1.734 1.85-3.23 1.906-3.323l.104-.167h-7.249z"},child:[]}]})(e)}function Xd(e){return Ac({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},child:[]}]})(e)}const ns=({className:e=""})=>s.jsxs("svg",{viewBox:"0 0 23 23","aria-hidden":"true",className:e,children:[s.jsx("rect",{x:"0",y:"0",width:"11",height:"11",fill:"#f25022"}),s.jsx("rect",{x:"12",y:"0",width:"11",height:"11",fill:"#7fba00"}),s.jsx("rect",{x:"0",y:"12",width:"11",height:"11",fill:"#00a4ef"}),s.jsx("rect",{x:"12",y:"12",width:"11",height:"11",fill:"#ffb900"})]}),Rre=({className:e=""})=>s.jsx("span",{className:`font-black lowercase tracking-tight ${e}`,"aria-hidden":"true",children:"clay"}),Mre=({className:e=""})=>s.jsx("span",{className:`font-black tracking-tight ${e}`,"aria-hidden":"true",children:"in"}),Dre=[{name:"Microsoft",description:"Microsoft 365, Azure OpenAI, Teams, Dynamics, Copilot Studio",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Anthropic",description:"Claude, Claude Desktop, Claude-native workflows",icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"OpenAI",description:"OpenAI API, custom GPT workflows, model-agnostic apps",icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"n8n",description:"Workflow automation, routing, enrichment, and GTM ops glue",icon:s.jsx(Ire,{className:"h-5 w-5 text-[#ea4b71]","aria-hidden":"true"})}
592,{name:"Clay",description:"Account research, enrichment, list building, and signal workflows",icon:s.jsx(Rre,{className:"text-sm text-[#f5f7fb]"})},{name:"Instantly",description:"Outbound sequencing, inbox setup, campaign operations, and reporting",icon:s.jsx(Mre,{className:"text-lg text-[#f5f7fb]"})},{name:"HubSpot",description:"CRM setup, lifecycle fields, routing, reporting, and campaign handoff",icon:s.jsx(jC,{className:"h-5 w-5 text-[#ff5c35]","aria-hidden":"true"})},{name:"Salesforce",description:"CRM process, pipeline hygiene, fields, handoffs, and GTM reporting",icon:s.jsx(wC,{className:"h-5 w-5 text-[#00a1e0]","aria-hidden":"true"})},{name:"Slack",description:"Team alerts, handoffs, workflow notifications, and operating rhythm",icon:s.jsx(bC,{className:"h-5 w-5","aria-hidden":"true"})}],Lre=[{name:"Anthropic / Claude",description:"Claude, Claude Code patterns, skills, approved context packs, and high-context reasoning.",icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"OpenAI / Codex",description:"ChatGPT Business, ChatGPT Enterprise, Codex, and OpenAI-backed work surfaces that need reviewable output.",icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Microsoft suite",description:"Microsoft 365, Copilot, Agent 365, Copilot Studio, Teams, Outlook, Dynamics, Graph, Entra, Purview, and Defender.",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"HubSpot",description:"CRM process, lifecycle fields, pipeline hygiene, reporting, and controlled update patterns.",icon:s.jsx(jC,{className:"h-5 w-5 text-[#ff5c35]","aria-hidden":"true"})},{name:"Salesforce",description:"CRM objects, pipeline hygiene, account and deal state, manager visibility, and controlled updates.",icon:s.jsx(wC,{className:"h-5 w-5 text-[#00a1e0]","aria-hidden":"true"})},{name:"Slack",description:"Team handoffs, review loops, alerts, escalation paths, and visible operating rhythm.",icon:s.jsx(bC,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Google Workspace / G Suite",description:"Gmail, Calendar, Drive, Docs, and Sheets as everyday sales context and collaboration tools.",icon:s.jsx(L7,{className:"h-5 w-5 text-[#1a73e8]","aria-hidden":"true"})}],$re=[{name:"Anthropic / Claude",description:"Claude projects, skills, approved workspaces, and high-context sales reasoning.",icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"OpenAI / ChatGPT",description:"ChatGPT Business, ChatGPT Enterprise, and OpenAI-backed revenue workflows that need reviewable output.",icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Microsoft suite",description:"Microsoft 365, Copilot, Agent 365, Copilot Studio, Teams, Outlook, Dynamics, Graph, Entra, Purview, and Defender.",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"HubSpot",description:"CRM process, lifecycle fields, pipeline hygiene, reporting, and controlled update patterns.",icon:s.jsx(jC,{className:"h-5 w-5 text-[#ff5c35]","aria-hidden":"true"})},{name:"Salesforce",description:"CRM objects, pipeline hygiene, account and deal state, manager visibility, and controlled updates.",icon:s.jsx(wC,{className:"h-5 w-5 text-[#00a1e0]","aria-hidden":"true"})},{name:"Slack",description:"Team handoffs, review loops, alerts, escalation paths, and visible operating rhythm.",icon:s.jsx(bC,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Google Workspace / G Suite",description:"Gmail, Calendar, Drive, Docs, and Sheets as everyday sales context and collaboration tools.",icon:s.jsx(L7,{className:"h-5 w-5 text-[#1a73e8]","aria-hidden":"true"})}],Fre=[{name:"Anthropic / Claude",description:"Claude-assisted work, Claude Code patterns, and approved Claude workspaces",icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"OpenAI / Codex",description:"ChatGPT Business, ChatGPT Enterprise, Codex, and approved OpenAI work surfaces",icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Microsoft suite",description:"Microsoft 365 Copilot, Copilot Studio, Agent 365, Graph, Entra, Purview, Defender, and Intune",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft CSP Partner",description:"Cloud Solution Provider partner operating path",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft for Startups Founders Hub",description:"Microsoft startup ecosystem participation",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft ISV Success",description:"Microsoft ISV build and commercialization program participation",icon:s.jsx(ns,{className:"h-5 w-5"})}],Bre=[{name:"Anthropic / Claude",description:"Claude-assisted sales work, approved Claude workspaces, projects, and skills",icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"OpenAI / ChatGPT",description:"ChatGPT Business, ChatGPT Enterprise, and approved OpenAI work surfaces",icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"})},{name:"Microsoft suite",description:"Microsoft 365 Copilot, Copilot Studio, Agent 365, Graph, Entra, Purview, Defender, and Intune",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft CSP Partner",description:"Cloud Solution Provider partner operating path",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft for Startups Founders Hub",description:"Microsoft startup ecosystem participation",icon:s.jsx(ns,{className:"h-5 w-5"})},{name:"Microsoft ISV Success",description:"Microsoft ISV build and commercialization program participation",icon:s.jsx(ns,{className:"h-5 w-5"})}],Mg=[{name:"Oasis",src:"/company-logos/oasis.png",logoClass:"company-logo-darken h-8 w-auto",showLabel:!0},{name:"Plug and Play",src:"/company-logos/plug-and-play.png",logoClass:"h-8 w-auto"},{name:"Impact Investors",src:"/company-logos/impact-investors.png",logoClass:"h-8 w-auto"},{name:"Workind",src:"/company-logos/workind.svg",logoClass:"h-8 w-auto",showLabel:!0},{name:"eyes3",src:"/company-logos/eyes3.jpg",logoClass:"h-8 w-auto rounded-md",showLabel:!0},{name:"Confluent",src:"/company-logos/confluent.svg",logoClass:"h-8 w-auto"},{name:"Mapbox",src:"/company-logos/mapbox.svg",logoClass:"h-8 w-auto"},{name:"Deel",src:"/company-logos/deel.svg",logoClass:"h-8 w-auto"},{name:"UYSP",src:"/company-logos/uysp.png",logoClass:"company-logo-darken h-8 w-auto"},{name:"SAP",src:"/company-logos/sap.svg",logoClass:"h-9 w-auto"},{name:"Tedy",src:"/company-logos/tedy.svg",logoClass:"h-8 w-auto"},{name:"Vericasa",src:"/company-logos/vericasa.svg",logoClass:"h-8 w-auto"}],Vre={dark:{shell:"company-logo-strip-dark",label:"text-slate-200",note:"text-slate-400",item:"company-logo-tile-dark text-slate-100",itemHover:""},warm:{shell:"border-[#ddcec1] bg-[#fffaf3] shadow-[0_22px_60px_rgba(91,66,48,0.10)]",label:"text-[#6a5b50]",note:"text-[#8
592c7d71]",item:"border-[#ddcec1] bg-[#f8f1e8] text-[#4e423c]",itemHover:"hover:border-[#bfa995] hover:bg-[#fbf5ed] hover:text-[#241714]"}},SC=({className:e="",variant:t="warm",label:r="Experience shaped by work with teams at",showDisclaimer:n=!0})=>{const i=Vre[t],a=[...Mg,...Mg];return s.jsxs("div",{className:`min-w-0 max-w-full overflow-hidden rounded-xl border p-4 sm:p-5 ${i.shell} ${e}`,children:[s.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between",children:[s.jsx("p",{className:`text-xs font-bold uppercase tracking-[0.18em] ${i.label}`,children:r}),n&&s.jsx("p",{className:`max-w-xl text-xs leading-5 ${i.note}`,children:"Company names describe prior work and operating experience. They do not imply endorsement or partnership."})]}),s.jsx("p",{className:"sr-only",children:Mg.map(o=>o.name).join(", ")}),s.jsx("div",{className:"company-logo-marquee-mask mt-4 min-w-0 max-w-full overflow-hidden",children:s.jsx("div",{className:"company-logo-marquee flex w-max items-center gap-3",children:a.map((o,l)=>{const u=l>=Mg.length;return s.jsxs("div",{"aria-hidden":"true",className:`company-logo-tile ${u?"company-logo-duplicate":""} flex h-20 min-w-[10rem] shrink-0 flex-col items-center justify-center rounded-lg border px-5 text-center leading-none transition-colors sm:min-w-[12rem] ${i.item} ${i.itemHover}`,children:[s.jsx("img",{src:o.src,alt:"",loading:"eager",decoding:"async",draggable:!1,className:`company-logo-asset max-h-11 max-w-[9.25rem] object-contain sm:max-w-[10.75rem] ${o.logoClass??""}`}),o.showLabel&&s.jsx("span",{className:"mt-2 text-[10px] font-black uppercase tracking-[0.18em] text-current opacity-70",children:o.name})]},`${o.name}-${l}`)})})})]})},kC=({compact:e=!1})=>s.jsx("div",{className:`grid gap-3 ${e?"sm:grid-cols-2 lg:grid-cols-3":"md:grid-cols-3"}`,children:Dre.map(t=>s.jsxs("div",{className:"pr-card flex items-start gap-3 p-4",children:[s.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-white/10 bg-white/[0.04] text-white",children:t.icon}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-semibold text-white",children:t.name}),s.jsx("p",{className:"mt-1 text-xs leading-relaxed text-[var(--pr-muted)]",children:t.description})]})]},t.name))}),qre=({className:e="",compact:t=!1,audience:r="general"})=>{const n=r==="revenue"?Bre:Fre;return s.jsxs("div",{className:e,children:[s.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:n.map(i=>s.jsxs("div",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-[#ddcec1] bg-[#f4eadf] text-[#241714]",children:i.icon}),s.jsx("p",{className:"text-sm font-bold leading-tight text-[#241714]",children:i.name})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#6a5b50]",children:i.description})]},i.name))}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#8c7d71]",children:"Microsoft references describe partner-program participation where applicable. Platform names describe implementation experience and approved work surfaces;
592 they do not imply vendor endorsement, resale rights, governance ownership, or certification beyond formally granted credentials."})]})},NC=({className:e="",audience:t="general"})=>{const r=t==="revenue"?$re:Lre,n=t==="revenue"?"We work across Claude, Microsoft, OpenAI, CRM, collaboration, and workspace systems, so buyers can keep their current stack while improving revenue AI work.":"We work across Claude, Microsoft, OpenAI/Codex, CRM, collaboration, and workspace systems, so buyers can keep their current stack while improving AI work.";return s.jsxs("div",{className:`min-w-0 overflow-hidden rounded-xl border border-[#ddcec1] bg-[#fffaf3] p-5 shadow-[0_24px_60px_rgba(91,66,48,0.10)] ${e}`,children:[s.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Credentials and integration experience"}),s.jsx("h2",{className:"mt-3 text-2xl font-bold leading-tight text-[#241714] md:text-3xl",children:"Built around the AI platforms, Microsoft partner paths, and business apps teams already use."}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:n})]}),s.jsx("p",{className:"max-w-sm text-xs leading-5 text-[#8c7d71]",children:"Microsoft badges describe partner-program participation. Other vendor names describe experience and implementation patterns only."})]}),s.jsxs("div",{className:"mt-5 rounded-lg border border-[#ddcec1] bg-[#f8f1e8] p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#8c6a58]",children:"AI platforms and Microsoft credentials"}),s.jsx(qre,{className:"mt-4",compact:!0,audience:t})]}),s.jsx("div",{className:"mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:r.map(i=>s.jsxs("div",{className:"min-w-0 rounded-lg border border-[#ddcec1] bg-[#f8f1e8] p-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-[#ddcec1] bg-[#fffaf3] text-[#241714]",children:i.icon}),s.jsx("p",{className:"min-w-0 break-words text-sm font-bold leading-tight text-[#241714]",children:i.name})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#6a5b50]",children:i.description})]},i.name))})]})},Ar=({eyebrow:e,title:t,intro:r,children:n,className:i})=>s.jsx("section",{className:Fe("pr-section",i),children:s.jsxs("div",{className:"pr-container",children:[(e||t||r)&&s.jsxs("div",{className:"mb-10 max-w-3xl",children:[e&&s.jsx("p",{className:"pr-eyebrow",children:e}),t&&s.jsx("h2",{className:"mt-3 text-3xl font-semibold tracking-normal text-white md:text-5xl",children:t}),r&&s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:r})]}),n]})}),Cn=({children:e})=>s.jsx("p",{className:"pr-eyebrow",children:e}),Vo=({href:e,children:t,className:r})=>s.jsx(xe,{href:e,children:s.jsxs("span",{className:Fe("pr-button cursor-pointer",r),children:[t,s.jsx(Ft,{className:"h-4 w-4"})]})}),TC=({href:e,children:t,className:r})=>s.jsx(xe,{href:e,children:s.jsxs("span",{className:Fe("pr-button-secondary cursor-pointer",r),children:[t,s.jsx(Ft,{className:"h-4 w-4"})]})}),lc=({src:e,alt:t,caption:r,className:n,priority:i=!1})=>s.jsxs("figure",{className:Fe("pr-image-frame",n),children:[s.jsx("div",{className:"pr-image-stage",children:s.jsx("img",{src:e,alt:t,loading:i?"eager":"lazy",className:"pr-image-media"})}),r&&s.jsx("figcaption",{className:"pr-image-caption text-xs leading-relaxed",children:r})]}),Wre=({src:e,poster:t,label:r})=>{const[n,i]=S.useState(!1);return S.useEffect(()=>{const a=window.matchMedia("(prefers-reduced-motion: reduce)");i(!a.matches);const o=()=>i(!a.matches);return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),s.jsx("figure",{className:"pr-image-frame",children:s.jsx("div",{className:"pr-image-stage",children:n?s.jsx("video",{className:"pr-image-media",src:e,poster:t,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata","aria-label":r}):s.jsx("img",{src:t,alt:r,loading:"lazy",className:"pr-image-media"})})})},Pt={images:{ownTheMiddle:"/revamp-assets/images/own-the-middle-public.jpg",openingHero:"/revamp-assets/images/opening-hero.jpg",thirtyDaySprint:"/revamp-assets/images/thirty-day-sprint.jpg",insideOperatingSystem:"/revamp-assets/images/inside-operating-system.jpg",ownershipLadder:"/revamp-assets/images/ownership-ladder.jpg",fiveWallsMoat:"/revamp-assets/images/five-walls-moat.jpg",spaghettiSandwich:"/revamp-assets/images/spaghetti-sandwich.jpg",joanBanner:"/revamp-assets/images/joan-banner.png",socialPreview:"/revamp-assets/social-preview.svg"},videos:{joanMemory:"/revamp-assets/videos/joan-memory.mp4"}},zre=[{icon:Ri,title:"Outbound systems",text:"Build the lists, enrichment, routing, messaging, sequencing, calling motion, and follow-up loop."},{icon:sC,title:"Real sales activity",text:"Put people on the phones, follow up with prospects, support founder selling, and keep the motion moving."},{icon:MB,title:"Event-led pipeline",text:"Turn conferences, dinners, webinars, and field activity into meetings, content, follow-up, and qualified next steps."},{icon:BB,title:"Content-led GTM",text:"Package expertise into value-led content, outreach angles, POVs, and campaign assets that create buying conversations."},{icon:aC,title:"GTM engineering",text:"Wire Clay, n8n, Instantly, C
592RM, enrichment, analytics, Claude, Microsoft, and calling tools into a working GTM machine."},{icon:Qo,title:"Fractional GTM team",text:"Bring senior GTM thinking and execution capacity before it makes sense to hire the full team internally."}],Ure=["A clear ICP, source strategy, list build, message strategy, and campaign operating rhythm.","Outbound and follow-up systems that combine automation with real human selling where it matters.","Events and content turned into pipeline motion instead of isolated marketing activity.","A practical GTM stack that your team can run, measure, and improve without adding chaos."],Hre=[{title:"SalesSidekick",href:"https://salessidekick.ai",text:"Sales context, memory, skills, agent packs, and revenue AI workflows for sellers and teams."},{title:"Sidekick Genius",href:"https://sidekickgenius.com",text:"Context engineering and Workspace OS services for teams using Claude or Microsoft."},{title:"Joan",href:"https://joanai.io",text:"Digital workers for repeatable business work where a client wants a Microsoft-forward worker layer."}],Gre=()=>(S.useEffect(()=>{document.title="Pipeline Rebel | GTM Services, Outbound Systems & Fractional GTM",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"Pipeline Rebel | GTM Services, Outbound Systems & Fractional GTM",description:"Pipeline Rebel builds and operates GTM engines for startups and scaleups: outbound systems, cold calling, event support, content-led GTM, GTM engineering, and fractional GTM execution.",keywords:"GTM services, outsourced GTM, fractional GTM, GTM engineering, outbound systems, cold calling, lead generation, content-led GTM, event pipeline",canonicalUrl:"https://pipelinerebel.com/",ogImage:Pt.images.socialPreview,structuredData:{type:"Organization",data:{name:"Pipeline Rebel",url:"https://pipelinerebel.com",description:"GTM services, outbound systems, GTM engineering, and fractional GTM execution for startups and scaleups."}}}),s.jsx("section",{className:"relative overflow-hidden py-20 md:py-28",children:s.jsxs("div",{className:"pr-container grid items-center gap-12 lg:grid-cols-[0.95fr_1.05fr]",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"pr-kicker",children:[s.jsx(Ra,{className:"h-3.5 w-3.5"}),"GTM services for startups and scaleups"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-semibold leading-tight text-white md:text-6xl lg:text-7xl",children:"Build the GTM engine your next stage actually needs."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"Pipeline Rebel helps founders and revenue teams create qualified pipeline with outbound systems, real human selling, event follow-up, content-led GTM, and the engineering work needed to make the stack run."}),s.jsxs("div",{className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[s.jsx(Vo,{href:"/contact",children:"Book a Conversation"}),s.jsx(TC,{href:"/consulting",children:"See GTM Services"})]})]}),s.jsx(lc,{src:Pt.images.openingHero,alt:"Pipeline Rebel GTM engine visual",caption:"The job is not another GTM theory session. The job is a working motion that creates conversations, meetings, and pipeline.",priority:!0})]})}),s.jsx("section",{className:"border-y border-white/10 bg-white/[0.018] py-8",children:s.jsx("div",{className:"pr-container",children:s.jsx(SC,{variant:"dark",label:"Experience shaped by work with teams at"})})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",eyebrow:"Where We Help",title:"When founders need more pipeline but the GTM system is still too fragile.",intro:"Most teams do not need another dashboard first. They need the actual motion: who to target, what to say, how to reach them, who follows up, what gets measured, and what happens next.",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:zre.map(e=>{const t=e.icon;return s.jsxs("article",{className:"pr-card p-6",children:[s.jsx(t,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h3",{className:"mt-5 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})})}),s.jsx(Ar,{children:s.jsxs("div",{className:"grid gap-8 lg:grid-cols-[0.75fr_1.25fr] lg:items-center",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"GTM Engineering"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"The tools matter when they make the sales motion easier to run."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:"We work across the stack founders already care about: CRM, enrichment, outbound tools, workflow automation, AI research, email, calling, content, analytics, Slack handoffs, and the AI platforms that improve execution."})]}),s.jsx(kC,{})]})}),s.jsx(Ar,{eyebrow:"How The Work Runs",title:"Strategy, systems, and people doing the work.",intro:"The GTM plan only matters if somebody can execute it. Pipeline Rebel can design the motion, build the system, create the assets, make calls, run follow-up, and help the internal team learn what to keep.",children:s.jsx("div",{className:"grid gap-5 lg:grid-cols-3",children:[{title:"Diagnose the motion",text:"Map ICP, offers, channels, messaging, existing activity, tool gaps, and where the fastest pipeline proof should happen.",href:"/resources"},{title:"Build the system",text:"Set up the lists, enrichment, workflows, campaigns, calling paths, content assets, handoffs, reporting, and iteration rhythm.",href:"/consulting"},{title:"Operate and improve",text:"Run the motion with real people, review the evidence, improve messaging, and decide what to hire, automate, or keep outsourced.",href:"/contact"}].map(e=>s.jsx(xe,{href:e.href,children:s.jsxs("article",{className:"pr-card group h-full cursor-pointer p-6 transition-colors hover:border-white/20",children:[s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsx("h3",{className:"text-2xl font-semibold text-white",children:e.title}),s.jsx(Ft,{className:"h-5 w-5 shrink-0 text-[var(--pr-faint)] transition-transform group-hover:translate-x-1 group-hover:text-white"})]}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]})}
592,e.title))})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-2",children:[s.jsx(lc,{src:Pt.images.thirtyDaySprint,alt:"GTM execution sprint visual",caption:"The first engagement should prove whether the motion can create qualified conversations, not hide behind a strategy deck."}),s.jsxs("div",{children:[s.jsx(Cn,{children:"What Changes"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"More signal, less random GTM activity."}),s.jsx("div",{className:"mt-7 space-y-4",children:Ure.map(e=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:"mt-1 h-5 w-5 shrink-0 text-[var(--pr-green)]"}),s.jsx("p",{className:"text-sm leading-relaxed text-[var(--pr-muted)]",children:e})]},e))})]})]})}),s.jsx(Ar,{eyebrow:"Software And Product Sites",title:"When the work needs product-specific depth, we route it to the right site.",intro:"Pipeline Rebel is the GTM services front door. SalesSidekick, Sidekick Genius, and Joan have their own buyer journeys so prospects do not have to decode every RebelHQ offer at once.",children:s.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:Hre.map(e=>s.jsxs("a",{href:e.href,className:"pr-card group block h-full p-6 transition-colors hover:border-white/20",children:[s.jsx(Zo,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h3",{className:"mt-5 text-2xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text}),s.jsxs("span",{className:"mt-5 inline-flex items-center gap-2 text-sm font-semibold text-[var(--pr-cyan)]",children:["Visit site",s.jsx(Ft,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]},e.title))})}),s.jsx(Ar,{className:"pb-28",children:s.jsxs("div",{className:"pr-card grid gap-8 p-8 md:grid-cols-[1fr_auto] md:items-center md:p-10",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Start Here"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-4xl",children:"Bring the pipeline problem you need fixed first."}),s.jsx("p",{className:"mt-4 max-w-3xl text-[var(--pr-muted)]",children:"We will look at your market, offer, stack, capacity, channels, and current activity, then recommend the fastest practical GTM motion to build or operate."})]}),s.jsx(Vo,{href:"/contact",children:"Book a Conversation"})]})})]})),Kre=[{icon:nC,title:"GTM diagnosis and playbook",text:"Clarify ICP, route-to-market, offer, channels, existing conversion points, and the first motion worth proving."},{icon:Ri,title:"Automated outbound systems",text:"Build list sourcing, enrichment, segmentation, routing, messaging, sequencing, reply handling, and measurement."},{icon:sC,title:"Human calling and follow-up",text:"Use real people to call, qualify, follow up, book meetings, and turn digital activity into actual conversations."},{icon:MB,title:"Events and field GTM",text:"Support conference strategy, target lists, meeting booking, onsite follow-up, post-event nurture, and content capture."},{icon:BB,title:"Content-led GTM",text:"Turn expertise into POVs, lead magnets, posts, outbound angles, and follow-up assets that create buying conversations."},{icon:aC,title:"GTM engineering",text:"Connect Clay, n8n, Instantly, CRM, enrichment, analytics, AI research, inboxes, and calling workflows into one operating rhythm."}],Yre=["Week 1: diagnose ICP, offer, channels, data sources, stack, conversion gaps, and the first GTM proof motion.","Weeks 2-3: build the campaign engine, lists, messaging, workflows, calling process, content assets, and reporting loop.","Weeks 4+: operate, call, follow up, learn from replies, adjust messaging, and decide what to scale, outsource, or hire."],Xre=()=>(S.useEffect(()=>{document.title="GTM Services | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"GTM Services | Pipeline Rebel",description:"Pipeline Rebel provides outsourced GTM, fractional GTM, outbound systems, cold calling, event support, content-led GTM, and GTM engineering for startups and scaleups.",keywords:"GTM services, outsourced GTM, fractional GTM, outbound systems, cold calling, event-led GTM, content-led GTM, GTM engineering",canonicalUrl:"https://pipelinerebel.com/consulting",ogImage:Pt.images.socialPreview,structuredData:{type:"Service",data:{name:"Pipeline Rebel GTM Services",provider:{"@type":"Organization",name:"Pipeline Rebel"},serviceType:"Outsourced GTM, fractional GTM, GTM engineering, outbound systems, and lead generation services"}}}),s.jsxs("section",{className:"pr-consulting-hero relative overflow-hidden py-20 md:py-28",children:[s.jsx("div",{className:"pr-consulting-hero-art","aria-hidden":"true",children:s.jsx("img",{src:Pt.images.openingHero,alt:"",loading:"eager"})}),s.jsx("div",{className:"pr-container relative z-10 w-full",children:s.jsxs("div",{className:"max-w-3xl",children:[s.jsx(Cn,{children:"GTM Services"}),s.jsx("h1",{className:"mt-5 max-w-4xl text-4xl font-semibold leading-tight text-white md:text-6xl",children:"Outsourced GTM for teams that need pipeline before they need a bigger org chart."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"We design, build, and operate GTM motions: outbound systems, real calling, event follow-up, content-led campaigns, automation, and the reporting rhythm needed to know what is working."}),s.jsxs("div",{className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[s.jsx(Vo,{href:"/contact",children:"Book a Conversation"}),s.jsx(TC,{href:"/resources",children:"Review Resources"})]}),s.jsx("p",{className:"mt-8 max-w-xl text-xs leading-relaxed text-[var(--pr-faint)]",children:"The first conversation is about the pipeline motion you need, not a generic transformation program."})]})})]}),s.jsx(Ar,{eyebrow:"What We Can Own",title:"The practical GTM work founders keep carrying alone.",intro:"Pipeline Rebel can provide the strategy, systems, and execution capacity to get a motion into market before you commit to full internal hiring.",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Kre.map(e=>{const t=e.icon;return s.jsxs("article",{className:"pr-card p-6",children:[s.jsx(t,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h3",{className:"mt-5 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-2",children:[s.jsx(lc,{src:Pt.images.thirtyDaySprint,alt:"GTM services sprint visual",caption:"A focused GTM sprint should get into market quickly enough to create evidence, not only alignment.",className:"lg:-ml-8 xl:-ml-14"}),s.jsxs("div",{children:[s.jsx(Cn,{children:"Engagement Shape"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"Build the motion, then learn from the market."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:"The right first engagement depends on your stage, offer, and internal 
592capacity. The default bias is to prove one focused GTM motion with enough activity to learn."}),s.jsx("div",{className:"mt-7 space-y-4",children:Yre.map(e=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:"mt-1 h-5 w-5 shrink-0 text-[var(--pr-green)]"}),s.jsx("p",{className:"text-sm leading-relaxed text-[var(--pr-muted)]",children:e})]},e))})]})]})}),s.jsx(Ar,{eyebrow:"Stack And Partners",title:"We build around the tools that help the GTM motion run.",intro:"Clay, n8n, Instantly, HubSpot, Salesforce, Slack, Microsoft, Anthropic, OpenAI, and other workflow tools are useful when they reduce manual drag and make pipeline activity easier to operate.",children:s.jsx(kC,{})}),s.jsxs(Ar,{className:"pb-28",children:[s.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:[{icon:Rx,title:"Workshop",text:"A paid diagnostic to identify the GTM motion, stack gaps, execution path, and first proof plan."},{icon:rJ,title:"Build and launch",text:"A focused implementation sprint that gets the first system, campaign, calling path, and reporting rhythm live."},{icon:Qo,title:"Operate with you",text:"Ongoing fractional support for campaign operations, calling, content, follow-up, and iteration."}].map(e=>{const t=e.icon;return s.jsxs("article",{className:"pr-card p-6",children:[s.jsx(t,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h2",{className:"mt-5 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})}),s.jsxs("div",{className:"pr-card mt-8 grid gap-8 p-8 md:grid-cols-[1fr_auto] md:items-center md:p-10",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Rx,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx(Cn,{children:"Next Step"})]}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-4xl",children:"Bring the pipeline problem you need to solve now."}),s.jsx("p",{className:"mt-4 max-w-3xl text-[var(--pr-muted)]",children:"We will talk through your current stage, target market, channel assumptions, internal capacity, and what a useful first GTM proof should look like."})]}),s.jsx(Vo,{href:"/contact",children:"Book a Conversation"})]})]})]})),Qre=[{icon:Zm,title:"SalesSidekick",href:"https://salessidekick.ai",label:"Revenue AI control",text:"Control scattered AI use across sellers, managers, agents, quality, hallucination risk, cost, adoption, CRM updates, and revenue-team visibility."},{icon:Ra,title:"Sidekick Genius",href:"https://sidekickgenius.com",label:"AI workspace setup",text:"Broader AI workspace setup and management for founders, teams, and enterprises using Claude, Microsoft, OpenAI, or mixed environments."},{icon:ic,title:"Joan",href:"https://joanai.io",label:"Digital workers",text:"Digital workers for repeatable business work when the client wants a Microsoft-forward worker layer and managed execution path."}],Zre=()=>(S.useEffect(()=>{document.title="Software | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"Software | Pipeline Rebel",description:"Pipeline Rebel's software directory links to SalesSidekick, Sidekick Genius, and Joan, the RebelHQ product sites for revenue AI control, broader AI workspace setup, and digital workers.",keywords:"SalesSidekick, Sidekick Genius, Joan, GTM software, sales AI control, AI workspace setup, digital workers",canonicalUrl:"https://pipelinerebel.com/software",ogImage:Pt.images.socialPreview}),s.jsx("section",{className:"relative overflow-hidden py-20 md:py-28",children:s.jsxs("div",{className:"pr-container grid items-center gap-12 lg:grid-cols-[0.95fr_1.05fr]",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Software"}),s.jsx("h1",{className:"mt-5 text-4xl font-semibold leading-tight text-white md:text-6xl",children:"The product sites sit beside the GTM services business."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"Pipeline Rebel is the GTM services front door. When a buyer needs revenue AI control, broader AI workspace setup, or digital workers, we route them to the right RebelHQ product site."}),s.jsx("div",{className:"mt-9",children:s.jsx(Vo,{href:"/contact",children:"Book a Conversation"})})]}),s.jsx(lc,{src:Pt.images.ownershipLadder,alt:"RebelHQ software ownership visual",caption:"Clear ownership keeps buyers from having to understand every RebelHQ offer before they find the right path."})]})}
vendor: 11,167 bytes, lines 592-600
592),s.jsx(Ar,{eyebrow:"Product Sites",title:"Choose the product site that matches the buyer problem.",intro:"These are not three competing offers on one page. They are separate buyer journeys with separate value stories.",children:s.jsx("div",{className:"grid gap-5 lg:grid-cols-3",children:Qre.map(e=>{const t=e.icon;return s.jsxs("a",{href:e.href,className:"pr-card group h-full p-6 transition-colors hover:border-white/20",children:[s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-lg bg-white/[0.04] text-[var(--pr-cyan)]",children:s.jsx(t,{className:"h-6 w-6"})}),s.jsx(Ft,{className:"h-5 w-5 text-[var(--pr-faint)] transition-transform group-hover:translate-x-1 group-hover:text-white"})]}),s.jsx("p",{className:"mt-6 text-xs font-bold uppercase text-[var(--pr-faint)]",children:e.label}),s.jsx("h2",{className:"mt-2 text-2xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Implementation Reality"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"Services and software support each other, but they do different jobs."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:"Pipeline Rebel can build and operate the GTM motion directly. SalesSidekick and Sidekick Genius own deeper product-specific setup, deployment, and management. Joan is the digital-worker path when repeatable work needs a managed worker layer."}),s.jsx("div",{className:"mt-7",children:s.jsx(kC,{compact:!0})})]}),s.jsx(lc,{src:Pt.images.insideOperatingSystem,alt:"Software and services visual",caption:"The buyer should always know whether they are buying GTM execution, revenue AI control, broader AI workspace setup, or digital workers."})]})})]})),AC=S.createContext({});function CC(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mv=S.createContext(null),PC=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Jre extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ene({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),i=S.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=S.useContext(PC);return S.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:d}=i.current;if(t||!n.current||!o||!l)return;n.current.dataset.motionPopId=r;const m=document.createElement("style");return a&&(m.nonce=a),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(`
593          [data-motion-pop-id="${r}"] {
594            position: absolute !important;
595            width: ${o}px !important;
596            height: ${l}px !important;
597            top: ${u}px !important;
598            left: ${d}px !important;
599          }
600        `),()=>{document.head.removeChild(m)}},[t]),s.jsx(Jre,{isPresent:t,childRef:n,sizeRef:i,children:S.cloneElement(e,{ref:n})})}const tne=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o})=>{const l=CC(rne),u=S.useId(),d=S.useCallback(h=>{l.set(h,!0);for(const p of l.values())if(!p)return;n&&n()},[l,n]),m=S.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:d,register:h=>(l.set(h,!1),()=>l.delete(h))}),a?[Math.random(),d]:[r,d]);return S.useMemo(()=>{l.forEach((h,p)=>l.set(p,!1))},[r]),S.useEffect(()=>{!r&&!l.size&&n&&n()},[r]),o==="popLayout"&&(e=s.jsx(ene,{isPresent:r,children:e})),s.jsx(Mv.Provider,{value:m,children:e})};function rne(){return new Map}function $7(e=!0){const t=S.useContext(Mv);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=t,a=S.useId();S.useEffect(()=>{e&&i(a)},[e]);const o=S.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}const Dg=e=>e.key||"";function zI(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const EC=typeof window<"u",F7=EC?S.useLayoutEffect:S.useEffect,nne=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1})=>{const[l,u]=$7(o),d=S.useMemo(()=>zI(e),[e]),m=o&&!l?[]:d.map(Dg),h=S.useRef(!0),p=S.useRef(d),x=CC(()=>new Map),[w,v]=S.useState(d),[y,j]=S.useState(d);F7(()=>{h.current=!1,p.current=d;for(let C=0;C<y.length;C++){const A=Dg(y[C]);m.includes(A)?x.delete(A):x.get(A)!==!0&&x.set(A,!1)}},[y,m.length,m.join("-")]);const k=[];if(d!==w){let C=[...d];for(let A=0;A<y.length;A++){const E=y[A],_=Dg(E);m.includes(_)||(C.splice(A,0,E),k.push(E))}a==="wait"&&k.length&&(C=k),j(zI(C)),v(d);return}const{forceRender:N}=S.useContext(AC);return s.jsx(s.Fragment,{children:y.map(C=>{const A=Dg(C),E=o&&!l?!1:d===y||m.includes(A),_=()=>{if(x.has(A))x.set(A,!0);else return;let R=!0;x.forEach(O=>{O||(R=!1)}),R&&(N==null||N(),j(p.current),o&&(u==null||u()),n&&n())};return s.jsx(tne,{isPresent:E,initial:!h.current||r?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:E?void 0:_,children:C},A)})})},os=e=>e;let B7=os;function _C(e){let t;return()=>(t===void 0&&(t=e()),t)}const nd=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},xa=e=>e*1e3,ya=e=>e/1e3,sne={useManualTiming:!1};function ine(e){let t=new Set,r=new Set,n=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(u.schedule(d),e()),d(o)}const u={schedule:(d,m=!1,h=!1)=>{const x=h&&n?t:r;return m&&a.add(d),x.has(d)||x.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(o=d,n){i=!0;return}n=!0,[t,r]=[r,t],t.forEach(l),t.clear(),n=!1,i&&(i=!1,u.process(d))}};return u}const Lg=["read","resolveKeyframes","update","preRender","render","postRender"],ane=40;function V7(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=Lg.reduce((j,k)=>(j[k]=ine(a),j),{}),{read:l,resolveKeyframes:u,update:d,preRender:m,render:h,postRender:p}=o,x=()=>{const j=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(j-i.timestamp,ane),1),i.timestamp=j,i.isProcessing=!0,l.process(i),u.process(i),d.process(i),m.process(i),h.process(i),p.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(x))},w=()=>{r=!0,n=!0,i.isProcessing||e(x)};return{schedule:Lg.reduce((j,k)=>{const N=o[k];return j[k]=(C,A=!1,E=!1)=>(r||w(),N.schedule(C,A,E)),j},{}),cancel:j=>{for(let k=0;k<Lg.length;k++)o[Lg[k]].cancel(j)},state:i,steps:o}}const{schedule:tr,cancel:qo,state:Zr,steps:sj}=V7(typeof requestAnimationFrame<"u"?requestAnimationFrame:os,!0),q7=S.createContext({strict:!1}),UI={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sd={};for(const e in UI)sd[e]={isEnabled:t=>UI[e].some(r=>!!t[r])};function one(e){for(const t in e)sd[t]={...sd[t],...e[t]}}const lne=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zx(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lne.has(e)}let W7=e=>!zx(e);function cne(e){e&&(W7=t=>t.startsWith("on")?!zx(t):e(t))}try{cne(require("@emotion/is-prop-valid").default)}catch{}function une(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(W7(i)||r===!0&&zx(i)||!t&&!zx(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function dne(e){if(typeof Proxy>"u")return e;const t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Dv=S.createContext({});function Yh(e){return typeof e=="string"||Array.isArray(e)}function Lv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const OC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],IC=["initial",...OC];function $v(e){return Lv(e.animate)||IC.some(t=>Yh(e[t]))}function z7(e){return!!($v(e)||e.variants)}function fne(e,t){if($v(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Yh(r)?r:void 0,animate:Yh(n)?n:void 0}}return e.inherit!==!1?t:{}}function hne(e){const{initial:t,animate:r}=fne(e,S.useContext(Dv));return S.useMemo(()=>({initial:t,animate:r}),[HI(t),HI(r)])}function HI(e){return Array.isArray(e)?e.join(" "):e}const mne=Symbol.for("motionComponentSymbol");function bu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pne(e,t,r){return S.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):bu(r)&&(r.current=n))},[t])}const RC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gne="framerAppearId",U7="data-"+RC(gne),{schedule:MC}=V7(queueMicrotask,!1),H7=S.createContext({});function xne(e,t,r,n,i){var a,o;const{visualElement:l}=S.useContext(Dv),u=S.useContext(q7),d=S.useContext(Mv),m=S.useContext(PC).reducedMotion,h=S.useRef(null);n=n||u.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:l,props:r,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m}));const p=h.current,x=S.useContext(H7);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&yne(h.current,r,i,x);const w=S.useRef(!1);S.useInsertionEffect(()=>{p&&w.current&&p.update(r,d)});const v=r[U7],y=S.useRef(!!v&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return F7(()=>{p&&(w.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),MC.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)===null||j===void 0||j.call(window,v)}),y.current=!1))}),p}function yne(e,t,r,n){const{layoutId:i,layout:a,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:G7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||l&&bu(l),visualElement:e,animationType:typeof a=="str
600ing"?a:"both",initialPromotionConfig:n,layoutScroll:u,layoutRoot:d})}function G7(e){if(e)return e.options.allowProjection!==!1?e.projection:G7(e.parent)}function vne({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){var a,o;e&&one(e);function l(d,m){let h;const p={...S.useContext(PC),...d,layoutId:bne(d)},{isStatic:x}=p,w=hne(d),v=n(d,x);if(!x&&EC){wne();const y=jne(p);h=y.MeasureLayout,w.visualElement=xne(i,v,p,t,y.ProjectionNode)}return s.jsxs(Dv.Provider,{value:w,children:[h&&w.visualElement?s.jsx(h,{visualElement:w.visualElement,...p}):null,r(i,d,pne(v,w.visualElement,m),v,x,w.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const u=S.forwardRef(l);return u[mne]=i,u}function bne({layoutId:e}){const t=S.useContext(AC).id;return t&&e!==void 0?t+"-"+e:e}function wne(e,t){S.useContext(q7).strict}function jne(e){const{drag:t,layout:r}=sd;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const Sne=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function DC(e){return typeof e!="string"||e.includes("-")?!1:!!(Sne.indexOf(e)>-1||/[A-Z]/u.test(e))}function GI(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function LC(e,t,r,n){if(typeof t=="function"){const[i,a]=GI(n);t=t(r!==void 0?r:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=GI(n);t=t(r!==void 0?r:e.custom,i,a)}return t}const j2=e=>Array.isArray(e),kne=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Nne=e=>j2(e)?e[e.length-1]||0:e,gn=e=>!!(e&&e.getVelocity);function px(e){const t=gn(e)?e.get():e;return kne(t)?t.toValue():t}function Tne({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,i,a){const o={latestValues:Ane(n,i,a,e),renderState:t()};return r&&(o.onMount=l=>r({props:n,current:l,...o}),o.onUpdate=l=>r(l)),o}const K7=e=>(t,r)=>{const n=S.useContext(Dv),i=S.useContext(Mv),a=()=>Tne(e,t,n,i);return r?a():CC(a)};function Ane(e,t,r,n){const i={},a=n(e,{});for(const p in a)i[p]=px(a[p]);let{initial:o,animate:l}=e;const u=$v(e),d=z7(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let m=r?r.initial===!1:!1;m=m||o===!1;const h=m?l:o;if(h&&typeof h!="boolean"&&!Lv(h)){const p=Array.isArray(h)?h:[h];for(let x=0;x<p.length;x++){const w=LC(e,p[x]);if(w){const{transitionEnd:v,transition:y,...j}=w;for(const k in j){let N=j[k];if(Array.isArray(N)){const C=m?N.length-1:0;N=N[C]}N!==null&&(i[k]=N)}for(const k in v)i[k]=v[k]}}}return i}const Qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cc=new Set(Qd),Y7=e=>t=>typeof t=="string"&&t.startsWith(e),X7=Y7("--"),Cne=Y7("var(--"),$C=e=>Cne(e)?Pne.test(e.split("/*")[0].trim()):!1,Pne=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Q7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ta=(e,t,r)=>r>t?t:r<e?e:r,Zd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xh={...Zd,transform:e=>Ta(0,1,e)},$g={...Zd,default:1},ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fo=ep("deg"),Ai=ep("%"),nt=ep("px"),Ene=ep("vh"),_ne=ep("vw"),KI={...Ai,parse:e=>Ai.parse(e)/100,transform:e=>Ai.transform(e*100)},One={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,radius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,backgroundPositionX:nt,backgroundPositionY:nt},Ine={rotate:fo,rotateX:fo,rotateY:fo,rotateZ:fo,scale:$g,scaleX:$g,scaleY:$g,scaleZ:$g,skew:fo,skewX:fo,skewY:fo,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:Xh,originX:KI,originY:KI,originZ:nt},YI={...Zd,transform:Math.round},FC={...One,...Ine,zIndex:YI,size:nt,fillOpacity:Xh,strokeOpacity:Xh,numOctaves:YI},Rne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mne=Qd.length;function Dne(e,t,r){let n="",i=!0;for(let a=0;a<Mne;a++){const o=Qd[a],l=e[o];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(o.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||r){const d=Q7(l,FC[o]);if(!u){i=!1;const m=Rne[o]||o;n+=`${m}(${d}) `}r&&(t[o]=d)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}function BC(e,t,r){const{style:n,vars:i,transformOrigin:a}=e;let o=!1,l=!1;for(const u in t){const d=t[u];
vendor: 21,719 bytes, line 600
600if(Cc.has(u)){o=!0;continue}else if(X7(u)){i[u]=d;continue}else{const m=Q7(d,FC[u]);u.startsWith("origin")?(l=!0,a[u]=m):n[u]=m}}if(t.transform||(o||r?n.transform=Dne(t,e.transform,r):n.transform&&(n.transform="none")),l){const{originX:u="50%",originY:d="50%",originZ:m=0}=a;n.transformOrigin=`${u} ${d} ${m}`}}const Lne={offset:"stroke-dashoffset",array:"stroke-dasharray"},$ne={offset:"strokeDashoffset",array:"strokeDasharray"};function Fne(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?Lne:$ne;e[a.offset]=nt.transform(-n);const o=nt.transform(t),l=nt.transform(r);e[a.array]=`${o} ${l}`}function XI(e,t,r){return typeof e=="string"?e:nt.transform(t+r*e)}function Bne(e,t,r){const n=XI(t,e.x,e.width),i=XI(r,e.y,e.height);return`${n} ${i}`}function VC(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:o,pathSpacing:l=1,pathOffset:u=0,...d},m,h){if(BC(e,d,h),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:w}=e;p.transform&&(w&&(x.transform=p.transform),delete p.transform),w&&(i!==void 0||a!==void 0||x.transform)&&(x.transformOrigin=Bne(w,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),o!==void 0&&Fne(p,o,l,u,!1)}const qC=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Z7=()=>({...qC(),attrs:{}}),WC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J7(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const eV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tV(e,t,r,n){J7(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(eV.has(i)?i:RC(i),t.attrs[i])}const Ux={};function Vne(e){Object.assign(Ux,e)}function rV(e,{layout:t,layoutId:r}){return Cc.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ux[e]||e==="opacity")}function zC(e,t,r){var n;const{style:i}=e,a={};for(const o in i)(gn(i[o])||t.style&&gn(t.style[o])||rV(o,e)||((n=r==null?void 0:r.getValue(o))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function nV(e,t,r){const n=zC(e,t,r);for(const i in e)if(gn(e[i])||gn(t[i])){const a=Qd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}function qne(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const QI=["x","y","width","height","cx","cy","r"],Wne={useVisualState:K7({scrapeMotionValuesFromProps:nV,createRenderState:Z7,onUpdate:({props:e,prevProps:t,current:r,renderState:n,latestValues:i})=>{if(!r)return;let a=!!e.drag;if(!a){for(const l in i)if(Cc.has(l)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let l=0;l<QI.length;l++){const u=QI[l];e[u]!==t[u]&&(o=!0)}o&&tr.read(()=>{qne(r,n),tr.render(()=>{VC(n,i,WC(r.tagName),e.transformTemplate),tV(r,n)})})}})},zne={useVisualState:K7({scrapeMotionValuesFromProps:zC,createRenderState:qC})};function sV(e,t,r){for(const n in t)!gn(t[n])&&!rV(n,r)&&(e[n]=t[n])}function Une({transformTemplate:e},t){return S.useMemo(()=>{const r=qC();return BC(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Hne(e,t){const r=e.style||{},n={};return sV(n,r,e),Object.assign(n,Une(e,t)),n}function Gne(e,t){const r={},n=Hne(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}function Kne(e,t,r,n){const i=S.useMemo(()=>{const a=Z7();return VC(a,t,WC(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};sV(a,e.style,e),i.style={...a,...i.style}}return i}function Yne(e=!1){return(r,n,i,{latestValues:a},o)=>{const u=(DC(r)?Kne:Gne)(n,a,o,r),d=une(n,typeof r=="string",e),m=r!==S.Fragment?{...d,...u,ref:i}:{},{children:h}=n,p=S.useMemo(()=>gn(h)?h.get():h,[h]);return S.createElement(r,{...m,children:p})}}function Xne(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...DC(n)?Wne:zne,preloadedFeatures:e,useRender:Yne(i),createVisualElement:t,Component:n};return vne(o)}}function iV(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Fv(e,t,r){const n=e.getProps();return LC(n,t,r!==void 0?r:n.custom,e)}const Qne=_C(()=>window.ScrollTimeline!==void 0);class Zne{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t,r){const n=this.animations.map(i=>{if(Qne()&&i.attachTimeline)return i.attachTimeline(t);if(typeof r=="function")return r(i)});return()=>{n.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Jne extends Zne{then(t,r){return Promise.all(this.animations).then(t).catch(r)}}function UC(e,t){return e?e[t]||e.default||e:void 0}const S2=2e4;function aV(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<S2;)t+=r,n=e.next(t);return t>=S2?1/0:t}function HC(e){return typeof e=="function"}function ZI(e,t){e.timeline=t,e.onfinish=null}const GC=e=>Array.isArray(e)&&typeof e[0]=="number",ese={linearEasing:void 0};function tse(e,t){const r=_C(e);return()=>{var n;return(n=ese[t])!==null&&n!==void 0?n:r()}}const Hx=tse(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),oV=(e,t,r=10)=>{let n="";const i=Math.max(Math.round(t/r),2);for(let a=0;a<i;a++)n+=e(nd(0,i-1,a))+", ";return`linear(${n.substring(0,n.length-2)})`};function lV(e){return!!(typeof e=="function"&&Hx()||!e||typeof e=="string"&&(e in k2||Hx())||GC(e)||Array.isArray(e)&&e.every(lV))}const jh=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,k2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jh([0,.65,.55,1]),circOut:jh([.55,0,1,.45]),backIn:jh([.31,.01,.66,-.59]),backOut:jh([.33,1.53,.69,.99])};function cV(e,t){if(e)return typeof e=="function"&&Hx()?oV(e,t):GC(e)?jh(e):Array.isArray(e)?e.map(r=>cV(r,t)||k2.easeOut):k2[e]}const Ks={x:!1,y:!1};function uV(){return Ks.x||Ks.y}function rse(e,t,r){var n;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(n=void 0)!==null&&n!==void 0?n:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function dV(e,t){const r=rse(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function JI(e){return t=>{t.pointerType==="touch"||uV()||e(t)}}function nse(e,t,r={}){const[n,i,a]=dV(e,r),o=JI(l=>{const{target:u}=l,d=t(l);if(typeof d!="function"||!u)return;const m=JI(h=>{d(h),u.removeEventListener("pointerleave",m)});u.addEventListener("pointerleave",m,i)});return n.forEach(l=>{l.addEventListener("pointerenter",o,i)}),a}const fV=(e,t)=>t?e===t?!0:fV(e,t.parentElement):!1,KC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sse=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ise(e){return sse.has(e.tagName)||e.tabIndex!==-1}const Sh=new WeakSet;function eR(e){return t=>{t.key==="Enter"&&e(t)}}function ij(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ase=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=eR(()=>{if(Sh.has(r))return;ij(r,"down");const i=eR(()=>{ij(r,"up")}),a=()=>ij(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function tR(e){return KC(e)&&!uV()}function ose(e,t,r={}){const[n,i,a]=dV(e,r),o=l=>{const u=l.currentTarget;if(!tR(l)||Sh.has(u))return;Sh.add(u);const d=t(l),m=(x,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!tR(x)||!Sh.has(u))&&(Sh.delete(u),typeof d=="function"&&d(x,{success:w}))},h=x=>{m(x,r.useGlobalTarget||fV(u,x.target))},p=x=>{m(x,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return n.forEach(l=>{!ise(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",d=>ase(d,i),i)}),a}function lse(e){return e==="x"||e==="y"?Ks[e]?null:(Ks[e]=!0,()=>{Ks[e]=!1}):Ks.x||Ks.y?null:(Ks.x=Ks.y=!0,()=>{Ks.x=Ks.y=!1})}const hV=new Set(["width","height","top","left","right","bottom",...Qd]);let gx;function cse(){gx=void 0}const Ci={now:()=>(gx===void 0&&Ci.set(Zr.isProcessing||sne.useManualTiming?Zr.timestamp:performance.now()),gx),set:e=>{gx=e,queueMicrotask(cse)}};function YC(e,t){e.indexOf(t)===-1&&e.push(t)}function XC(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class QC{constructor(){this.subscriptions=[]}add(t){return YC(this.subscriptions,t),()=>XC(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function mV(e,t){return t?e*(1e3/t):0}const rR=30,use=e=>!isNaN(parseFloat(e));class dse{constructor(t,r={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const a=Ci.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Ci.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=use(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new QC);const n=this.events[t].add(r);return t==="change"?()=>{n(),tr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ci.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rR)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,rR);return mV(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qh(e,t){return new dse(e,t)}function fse(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Qh(r))}function hse(e,t){const r=Fv(e,t);let{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(const o in a){const l=Nne(a[o]);fse(e,o,l)}}function mse(e){return!!(gn(e)&&e.add)}function N2(e,t){const r=e.getValue("willChange");if(mse(r))return r.add(t)}function pV(e){return e.props[U7]}const gV=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,pse=1e-7,gse=12;function xse(e,t,r,n,i){let a,o,l=0;do o=t+(r-t)/2,a=gV(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>pse&&++l<gse);return o}function tp(e,t,r,n){if(e===t&&r===n)return os;const i=a=>xse(a,0,1,e,r);return a=>a===0||a===1?a:gV(i(a),t,n)}const xV=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yV=e=>t=>1-e(1-t),vV=tp(.33,1.53,.69,.99),ZC=yV(vV),bV=xV(ZC),wV=e=>(e*=2)<1?.5*ZC(e):.5*(2-Math.pow(2,-10*(e-1))),JC=e=>1-Math.sin(Math.acos(e)),jV=yV(JC),SV=xV(JC),kV=e=>/^0[^.\s]+$/u.test(e);function yse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kV(e):!0}const Oh=e=>Math.round(e*1e5)/1e5,eP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vse(e){return e==null}const bse=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tP=(e,t)=>r=>!!(typeof r=="string"&&bse.test(r)&&r.startsWith(e)||t&&!vse(r)&&Object.prototype.hasOwnProperty.call(r,t)),NV=(e,t,r)=>n=>{if(typeof n!="string")return n;const[i,a,o,l]=n.match(eP);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},wse=e=>Ta(0,255,e),aj={...Zd,transform:e=>Math.round(wse(e))},Ml={test:tP("rgb","red"),parse:NV("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+aj.transform(e)+", "+aj.transform(t)+", "+aj.transform(r)+", "+Oh(Xh.transform(n))+")"};function jse(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const T2={test:tP("#"),parse:jse,transform:Ml.transform},wu={test:tP("hsl","hue"),parse:NV("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Ai.transform(Oh(t))+", "+Ai.transform(Oh(r))+", "+Oh(Xh.transform(n))+")"},un={test:e=>Ml.test(e)||T2.test(e)||wu.test(e),parse:e=>Ml.test(e)?Ml.parse(e):wu.test(e)?wu.parse(e):T2.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ml.transform(e):wu.transform(e)},Sse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kse(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eP))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Sse))===null||r===void 0?void 0:r.length)||0)>0}const TV="number",AV="color",Nse="var",Tse="var(",nR="${}",Ase=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Zh(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(Ase,u=>(un.test(u)?(n.color.push(a),i.push(AV),r.push(un.parse(u))):u.startsWith(Tse)?(n.var.push(a),i.push(Nse),r.push(u)):(n.number.push(a),i.push(TV),r.push(parseFloat(u))),++a,nR)).split(nR);return{values:r,split:l,indexes:n,types:i}}function CV(e){return Zh(e).values}function PV(e){const{split:t,types:r}=Zh(e),n=t.length;return i=>{let a="";for(let o=0;o<n;o++)if(a+=t[o],i[o]!==void 0){const l=r[o];l===TV?a+=Oh(i[o]):l===AV?a+=un.transform(i[o]):a+=i[o]}return a}}const Cse=e=>typeof e=="number"?0:e;function Pse(e){const t=CV(e);return PV(e)(t.map(Cse))}const Wo={test:kse,parse:CV,createTransformer:PV,getAnimatableNone:Pse},Ese=new Set(["brightness","contrast","saturate","opacity"]);function _se(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(eP)||[];if(!n)return e;const i=r.replace(n,"");let a=Ese.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const Ose=/\b([a-z-]*)\(.*?\)/gu,A2={...Wo,getAnimatableNone:e=>{const t=e.match(Ose);return t?t.map(_se).join(" "):e}},Ise={...FC,color:un,backgroundColor:un,outlineColor:un,fill:un,stroke:un,borderColor:un,borderTopColor:un,borderRightColor:un,borderBottomColor:un,borderLeftColor:un,filter:A2,WebkitFilter:A2},rP=e=>Ise[e];function EV(e,t){let r=rP(e);return r!==A2&&(r=Wo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Rse=new Set(["auto","none","0"]);function Mse(e,t,r){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!Rse.has(a)&&Zh(a).values.length&&(i=e[n]),n++}if(i&&r)for(const a of t)e[a]=EV(r,i)}const sR=e=>e===Zd||e===nt,iR=(e,t)=>parseFloat(e.split(", ")[t]),aR=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/u);if(i)return iR(i[1],t);{const a=n.match(/^matrix\((.+)\)$/u);return a?iR(a[1],e):0}},Dse=new Set(["x","y","z"]),Lse=Qd.filter(e=>!Dse.has(e));function $se(e){const t=[];return Lse.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const id={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aR(4,13),y:aR(5,14)};id.translateX=id.x;id.translateY=id.y;const Zl=new Set;let C2=!1,P2=!1;function _V(){if(P2){const e=Array.from(Zl).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=$se(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([a,o])=>{var l;(l=n.getValue(a))===null||l===void 0||l.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}P2=!1,C2=!1,Zl.forEach(e=>e.complete()),Zl.clear()}function OV(){Zl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(P2=!0)})}function Fse(){OV(),_V()}class nP{constructor(t,r,n,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zl.add(this),C2||(C2=!0,tr.read(OV),tr.resolveKeyframes(_V))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&r){const u=n.readValue(r,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zl.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zl.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const IV=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Bse=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vse(e){const t=Bse.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}function RV(e,t,r=1){const[n,i]=Vse(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return IV(o)?parseFloat(o):o}return $C(i)?RV(i,t,r+1):i}const MV=e=>t=>t.test(e),qse={test:e=>e==="auto",parse:e=>e},DV=[Zd,nt,Ai,fo,_ne,Ene,qse],oR=e=>DV.find(MV(e));class LV extends nP{constructor(t,r,n,i,a){super(t,r,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),$C(d))){const m=RV(d,r.current);m!==void 0&&(t[u]=m),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!hV.has(n)||t.length!==2)return;const[i,a]=t,o=oR(i),l=oR(a);if(o!==l)if(sR(o)&&sR(l))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let i=0;i<t.length;i++)yse(t[i])&&n.push(i);n.length&&Mse(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=id[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:r,name:n,unresolvedKeyframes:i}=this;if(!r||!r.current)return;const a=r.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=id[n](r.measureViewportBox(),window.getComputedStyle(r.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEac
vendor: 10,770 bytes, line 600
600h(([u,d])=>{r.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const lR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wo.test(e)||e==="0")&&!e.startsWith("url("));function Wse(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function zse(e,t,r,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=lR(i,t),l=lR(a,t);return!o||!l?!1:Wse(e)||(r==="spring"||HC(r))&&n}const Use=e=>e!==null;function Bv(e,{repeat:t,repeatType:r="loop"},n){const i=e.filter(Use),a=t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const Hse=40;class $V{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ci.now(),this.options={autoplay:t,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Hse?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Fse(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Ci.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:a,delay:o,onComplete:l,onUpdate:u,isGenerator:d}=this.options;if(!d&&!zse(t,n,i,a))if(o)this.options.duration=0;else{u&&u(Bv(t,this.options,r)),l&&l(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,r);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...m},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const lr=(e,t,r)=>e+(t-e)*r;function oj(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Gse({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;i=oj(u,l,e+1/3),a=oj(u,l,e),o=oj(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function Gx(e,t){return r=>r>0?t:e}const lj=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Kse=[T2,Ml,wu],Yse=e=>Kse.find(t=>t.test(e));function cR(e){const t=Yse(e);if(!t)return!1;let r=t.parse(e);return t===wu&&(r=Gse(r)),r}const uR=(e,t)=>{const r=cR(e),n=cR(t);if(!r||!n)return Gx(e,t);const i={...r};return a=>(i.red=lj(r.red,n.red,a),i.green=lj(r.green,n.green,a),i.blue=lj(r.blue,n.blue,a),i.alpha=lr(r.alpha,n.alpha,a),Ml.transform(i))},Xse=(e,t)=>r=>t(e(r)),rp=(...e)=>e.reduce(Xse),E2=new Set(["none","hidden"]);function Qse(e,t){return E2.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Zse(e,t){return r=>lr(e,t,r)}function sP(e){return typeof e=="number"?Zse:typeof e=="string"?$C(e)?Gx:un.test(e)?uR:tie:Array.isArray(e)?FV:typeof e=="object"?un.test(e)?uR:Jse:Gx}function FV(e,t){const r=[...e],n=r.length,i=e.map((a,o)=>sP(a)(a,t[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}}function Jse(e,t){const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=sP(e[i])(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}}function eie(e,t){var r;const n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],l=e.indexes[o][i[o]],u=(r=e.values[l])!==null&&r!==void 0?r:0;n[a]=u,i[o]++}return n}const tie=(e,t)=>{const r=Wo.createTransformer(t),n=Zh(e),i=Zh(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?E2.has(e)&&!i.values.length||E2.has(t)&&!n.values.length?Qse(e,t):rp(FV(eie(n,i),i.values),r):Gx(e,t)};function BV(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?lr(e,t,r):sP(e)(e,t)}const rie=5;function VV(e,t,r){const n=Math.max(t-rie,0);return mV(r-e(n),t-n)}const mr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},cj=.001;function nie({duration:e=mr.duration,bounce:t=mr.bounce,velocity:r=mr.velocity,mass:n=mr.mass}){let i,a,o=1-t;o=Ta(mr.minDamping,mr.maxDamping,o),e=Ta(mr.minDuration,mr.maxDuration,ya(e)),o<1?(i=d=>{const m=d*o,h=m*e,p=m-r,x=_2(d,o),w=Math.exp(-h);return cj-p/x*w},a=d=>{const h=d*o*e,p=h*r+r,x=Math.pow(o,2)*Math.pow(d,2)*e,w=Math.exp(-h),v=_2(Math.pow(d,2),o);return(-i(d)+cj>0?-1:1)*((p-x)*w)/v}):(i=d=>{const m=Math.exp(-d*e),h=(d-r)*e+1;return-cj+m*h},a=d=>{const m=Math.exp(-d*e),h=(r-d)*(e*e);return m*h});const l=5/e,u=iie(i,a,l);if(e=xa(e),isNaN(u))return{stiffness:mr.stiffness,damping:mr.damping,duration:e};{const d=Math.pow(u,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:e}}}const sie=12;function iie(e,t,r){let n=r;for(let i=1;i<sie;i++)n=n-e(n)/t(n);return n}function _2(e,t){return e*Math.sqrt(1-t*t)}const aie=["duration","bounce"],oie=["stiffness","damping","mass"];function dR(e,t){return t.some(r=>e[r]!==void 0)}function lie(e){let t={velocity:mr.velocity,stiffness:mr.stiffness,damping:mr.damping,mass:mr.mass,isResolvedFromDuration:!1,...e};if(!dR(e,oie)&&dR(e,aie))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*Ta(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:mr.mass,stiffness:i,damping:a}}else{const r=nie(e);t={...t,...r,mass:mr.mass},t.isResolvedFromDuration=!0}return t}function qV(e=mr.visualDuration,t=mr.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:m,duration:h,velocity:p,isResolvedFromDuration:x}=lie({...r,velocity:-ya(r.velocity||0)}),w=p||0,v=d/(2*Math.sqrt(u*m)),y=o-a,j=ya(Math.sqrt(u/m)),k=Math.abs(y)<5;n||(n=k?mr.restSpeed.granular:mr.restSpeed.default),i||(i=k?mr.restDelta.granular:mr.restDelta.default);let N;if(v<1){const A=_2(j,v);N=E=>{const _=Math.exp(-v*j*E);return o-_*((w+v*j*y)/A*Math.sin(A*E)+y*Math.cos(A*E))}}else if(v===1)N=A=>o-Math.exp(-j*A)*(y+(w+j*y)*A);else{const A=j*Math.sqrt(v*v-1);N=E=>{const _=Math.exp(-v*j*E),R=Math.min(A*E,300);return o-_*((w+v*j*y)*Math.sinh(R)+A*y*Math.cosh(R))/A}}const C={calculatedDuration:x&&h||null,next:A=>{const E=N(A);if(x)l.done=A>=h;else{let _=0;v<1&&(_=A===0?xa(w):VV(N,A,E));const R=Math.abs(_)<=n,O=Math.abs(o-E)<=i;l.done=R&&O}return l.value=l.done?o:E,l},toString:()=>{const A=Math.min(aV(C),S2),E=oV(_=>C.next(A*_).value,A,30);return A+"ms "+E}};return C}function fR({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:m}){const h=e[0],p={done:!1,value:h},x=R=>l!==void 0&&R<l||u!==void 0&&R>u,w=R=>l===void 0?u:u===void 0||Math.abs(l-R)<Math.abs(u-R)?l:u;let v=r*t;const y=h+v,j=o===void 0?y:o(y);j!==y&&(v=j-h);const k=R=>-v*Math.exp(-R/n),N=R=>j+k(R),C=R=>{const O=k(R),F=N(R);p.done=Math.abs(O)<=d,p.value=p.done?j:F};let A,E;const _=R=>{x(p.value)&&(A=R,E=qV({keyframes:[p.value,w(p.value)],velocity:VV(N,R,p.value),damping:i,stiffness:a,restDelta:d,restSpeed:m}))};return _(0),{calculatedDuration:null,next:R=>{let O=!1;return!E&&A===void 0&&(O=!0,C(R),_(R)),A!==void 0&&R>=A?E.next(R-A):(!O&&C(R),p)}}}const cie=tp(.42,0,1,1),uie=tp(0,0,.58,1),WV=tp(.42,0,.58,1),die=e=>Array.isArray(e)&&typeof e[0]!="number",fie={linear:os,easeIn:cie,easeInOut:WV,easeOut:uie,circIn:JC,circInOut:SV,circOut:jV,backIn:ZC,backInOut:bV,backOut:vV,anticipate:wV},hR=e=>{if(GC(e)){B7(e.length===4);const[t,r,n,i]=e;return tp(t,r,n,i)}else if(typeof e=="string")return fie[e];return e};function hie(e,t,r){const n=[],i=r||BV,a=e.length-1;for(let o=0;o<a;o++){let l=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||os:t;l=rp(u,l)}n.push(l)}return n}function mie(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const a=e.length;if(B7(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=hie(t,n,i),u=l.length,d=m=>{if(o&&m<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(m<e[h+1]);h++);const p=nd(e[h],e[h+1],m);return l[h](p)};return r?m=>d(Ta(e[0],e[a-1],m)):d}function pie(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=nd(0,t,n);e.push(lr(r,1,i))}}function gie(e){const t=[0];return pie(t,e.length-1),t}function xie(e,t){return e.map(r=>r*t)}function yie(e,t){return e.map(()=>t||WV).splice(0,e.length-1)}function Kx({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=die(n)?n.map(hR):hR(n),a={done:!1,value:t[0]},o=xie(r&&r.length===t.length?r:gie(t),e),l=mie(o,t,{ease:Array.isArray(i)?i:yie(t,i)});return{calculatedDuration:e,next:u=>(a.value=l(u),a.done=u>=e,a)}}const vie=e=>{const t=({timestamp:r})=>e(r);return{start:()=>tr.update(t,!0),stop:()=>qo(t),now:()=>Zr.isProcessing?Zr.timestamp:Ci.now()}},bie={decay:fR,inertia:fR,tween:Kx,keyframes:Kx,spring:qV},wie=e=>e/100;class iP extends $V{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:r,motionValue:n,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||nP,l=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new o(a,l,r,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,l=HC(r)?r:bie[r]||Kx;let u,d;l!==Kx&&typeof t[0]!="number"&&(u=rp(wie,BV(t[0],t[1])),t=[0,100]);const m=l({...this.options,keyframes:t});a==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),m.calculatedDuration===null&&(m.calculatedDuration=aV(m));const{calculatedDuration:h}=m,p=h+i,x=p*(n+1)-i;return{generator:m,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:p,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:d,totalDuration:m,resolvedDuration:h}=n;
vendor: 55,735 bytes, line 600
600if(this.startTime===null)return a.next(0);const{delay:p,repeat:x,repeatType:w,repeatDelay:v,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const j=this.currentTime-p*(this.speed>=0?1:-1),k=this.speed>=0?j<0:j>m;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let N=this.currentTime,C=a;if(x){const R=Math.min(this.currentTime,m)/h;let O=Math.floor(R),F=R%1;!F&&R>=1&&(F=1),F===1&&O--,O=Math.min(O,x+1),!!(O%2)&&(w==="reverse"?(F=1-F,v&&(F-=v/h)):w==="mirror"&&(C=o)),N=Ta(0,1,F)*h}const A=k?{done:!1,value:u[0]}:C.next(N);l&&(A.value=l(A.value));let{done:E}=A;!k&&d!==null&&(E=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return _&&i!==void 0&&(A.value=Bv(u,this.options,i)),y&&y(A.value),_&&this.finish(),A}get duration(){const{resolved:t}=this;return t?ya(t.calculatedDuration):0}get time(){return ya(this.currentTime)}set time(t){t=xa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=ya(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=vie,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const jie=new Set(["opacity","clipPath","filter","transform"]);function Sie(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:l="easeInOut",times:u}={}){const d={[t]:r};u&&(d.offset=u);const m=cV(l,i);return Array.isArray(m)&&(d.easing=m),e.animate(d,{delay:n,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const kie=_C(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yx=10,Nie=2e4;function Tie(e){return HC(e.type)||e.type==="spring"||!lV(e.ease)}function Aie(e,t){const r=new iP({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const i=[];let a=0;for(;!n.done&&a<Nie;)n=r.sample(a),i.push(n.value),a+=Yx;return{times:void 0,keyframes:i,duration:a-Yx,ease:"linear"}}const zV={anticipate:wV,backInOut:bV,circInOut:SV};function Cie(e){return e in zV}class mR extends $V{constructor(t){super(t);const{name:r,motionValue:n,element:i,keyframes:a}=this.options;this.resolver=new LV(a,(o,l)=>this.onKeyframesResolved(o,l),r,n,i),this.resolver.scheduleResolve()}initPlayback(t,r){let{duration:n=300,times:i,ease:a,type:o,motionValue:l,name:u,startTime:d}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof a=="string"&&Hx()&&Cie(a)&&(a=zV[a]),Tie(this.options)){const{onComplete:h,onUpdate:p,motionValue:x,element:w,...v}=this.options,y=Aie(t,v);t=y.keyframes,t.length===1&&(t[1]=t[0]),n=y.duration,i=y.times,a=y.ease,o="keyframes"}const m=Sie(l.owner.current,u,t,{...this.options,duration:n,times:i,ease:a});return m.startTime=d??this.calcStartTime(),this.pendingTimeline?(ZI(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:h}=this.options;l.set(Bv(t,this.options,r)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:n,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return ya(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return ya(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=xa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return os;const{animation:n}=r;ZI(n,t)}return os}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:i,type:a,ease:o,times:l}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:m,onComplete:h,element:p,...x}=this.options,w=new iP({...x,keyframes:n,duration:i,type:a,ease:o,times:l,isGenerator:!0}),v=xa(this.time);d.setWithVelocity(w.sample(v-Yx).value,w.sample(v).value,Yx)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:i,repeatType:a,damping:o,type:l}=t;if(!r||!r.owner||!(r.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=r.owner.getProps();return kie()&&n&&jie.has(n)&&!u&&!d&&!i&&a!=="mirror"&&o!==0&&l!=="inertia"}}const Pie={type:"spring",stiffness:500,damping:25,restSpeed:10},Eie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_ie={type:"keyframes",duration:.8},Oie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Iie=(e,{keyframes:t})=>t.length>2?_ie:Cc.has(e)?e.startsWith("scale")?Eie(t[1]):Pie:Oie;function Rie({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:d,...m}){return!!Object.keys(m).length}const aP=(e,t,r,n={},i,a)=>o=>{const l=UC(n,e)||{},u=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-xa(u);let m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};Rie(l)||(m={...m,...Iie(e,m)}),m.duration&&(m.duration=xa(m.duration)),m.repeatDelay&&(m.repeatDelay=xa(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let h=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Bv(m.keyframes,l);if(p!==void 0)return tr.update(()=>{m.onUpdate(p),m.onComplete()}),new Jne([])}return!a&&mR.supports(m)?new mR(m):new iP(m)};function Mie({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function UV(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...u}=t;n&&(o=n);const d=[],m=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),x=u[h];if(x===void 0||m&&Mie(m,h))continue;const w={delay:r,...UC(o||{},h)};let v=!1;if(window.MotionHandoffAnimation){const j=pV(e);if(j){const k=window.MotionHandoffAnimation(j,h,tr);k!==null&&(w.startTime=k,v=!0)}}N2(e,h),p.start(aP(h,p,x,e.shouldReduceMotion&&hV.has(h)?{type:!1}:w,e,v));const y=p.animation;y&&d.push(y)}return l&&Promise.all(d).then(()=>{tr.update(()=>{l&&hse(e,l)})}),d}function O2(e,t,r={}){var n;const i=Fv(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);const o=i?()=>Promise.all(UV(e,i,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:m=0,staggerChildren:h,staggerDirection:p}=a;return Die(e,t,m+d,h,p,r)}:()=>Promise.resolve(),{when:u}=a;if(u){const[d,m]=u==="beforeChildren"?[o,l]:[l,o];return d().then(()=>m())}else return Promise.all([o(),l(r.delay)])}function Die(e,t,r=0,n=0,i=1,a){const o=[],l=(e.variantChildren.size-1)*n,u=i===1?(d=0)=>d*n:(d=0)=>l-d*n;return Array.from(e.variantChildren).sort(Lie).forEach((d,m)=>{d.notify("AnimationStart",t),o.push(O2(d,t,{...a,delay:r+u(m)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function Lie(e,t){return e.sortNodePosition(t)}function $ie(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>O2(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=O2(e,t,r);else{const i=typeof t=="function"?Fv(e,t,r.custom):t;n=Promise.all(UV(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Fie=IC.length;function HV(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?HV(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<Fie;r++){const n=IC[r],i=e.props[n];(Yh(i)||i===!1)&&(t[n]=i)}return t}const Bie=[...OC].reverse(),Vie=OC.length;function qie(e){return t=>Promise.all(t.map(({animation:r,options:n})=>$ie(e,r,n)))}function Wie(e){let t=qie(e),r=pR(),n=!0;const i=u=>(d,m)=>{var h;const p=Fv(e,m,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:x,transitionEnd:w,...v}=p;d={...d,...v,...w}}return d};function a(u){t=u(e)}function o(u){const{props:d}=e,m=HV(e.parent)||{},h=[],p=new Set;let x={},w=1/0;for(let y=0;y<Vie;y++){const j=Bie[y],k=r[j],N=d[j]!==void 0?d[j]:m[j],C=Yh(N),A=j===u?k.isActive:null;A===!1&&(w=y);let E=N===m[j]&&N!==d[j]&&C;if(E&&n&&e.manuallyAnimateOnMount&&(E=!1),k.protectedKeys={...x},!k.isActive&&A===null||!N&&!k.prevProp||Lv(N)||typeof N=="boolean")continue;const _=zie(k.prevProp,N);let R=_||j===u&&k.isActive&&!E&&C||y>w&&C,O=!1;const F=Array.isArray(N)?N:[N];let D=F.reduce(i(j),{});A===!1&&(D={});const{prevResolvedValues:L={}}=k,I={...L,...D},$=Z=>{R=!0,p.has(Z)&&(O=!0,p.delete(Z)),k.needsAnimating[Z]=!0;const U=e.getValue(Z);U&&(U.liveStyle=!1)};for(const Z in I){const U=D[Z],q=L[Z];if(x.hasOwnProperty(Z))continue;let B=!1;j2(U)&&j2(q)?B=!iV(U,q):B=U!==q,B?U!=null?$(Z):p.add(Z):U!==void 0&&p.has(Z)?$(Z):k.protectedKeys[Z]=!0}k.prevProp=N,k.prevResolvedValues=D,k.isActive&&(x={...x,...D}),n&&e.blockInitialAnimation&&(R=!1),R&&(!(E&&_)||O)&&h.push(...F.map(Z=>({animation:Z,options:{type:j}})))}if(p.size){const y={};p.forEach(j=>{const k=e.getBaseTarget(j),N=e.getValue(j);N&&(N.liveStyle=!0),y[j]=k??null}),h.push({animation:y})}let v=!!h.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(h):Promise.resolve()}function l(u,d){var m;if(r[u].isActive===d)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.setActive(u,d)}),r[u].isActive=d;const h=o(u);for(const p in r)r[p].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:a,getState:()=>r,reset:()=>{r=pR(),n=!0}}}function zie(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!iV(t,e):!1}function kl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pR(){return{animate:kl(!0),whileInView:kl(),whileHover:kl(),whileTap:kl(),whileDrag:kl(),whileFocus:kl(),exit:kl()}}class Jo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Uie extends Jo{constructor(t){super(t),t.animationState||(t.animationState=Wie(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Hie=0;class Gie extends Jo{constructor(){super(...arguments),this.id=Hie++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Kie={animation:{Feature:Uie},exit:{Feature:Gie}};function Jh(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function np(e){return{point:{x:e.pageX,y:e.pageY}}}const Yie=e=>t=>KC(t)&&e(t,np(t));function Ih(e,t,r,n){return Jh(e,t,Yie(r),n)}const gR=(e,t)=>Math.abs(e-t);function Xie(e,t){const r=gR(e.x,t.x),n=gR(e.y,t.y);return Math.sqrt(r**2+n**2)}class GV{constructor(t,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=dj(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=Xie(h.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:w}=h,{timestamp:v}=Zr;this.history.push({...w,timestamp:v});const{onStart:y,onMove:j}=this.handlers;p||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=uj(p,this.transformPagePoint),tr.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:x,onSessionEnd:w,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=dj(h.type==="pointercancel"?this.lastMoveEventInfo:uj(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(h,y),w&&w(h,y)},!KC(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const o=np(t),l=uj(o,this.transformPagePoint),{point:u}=l,{timestamp:d}=Zr;this.history=[{...u,timestamp:d}];const{onSessionStart:m}=r;m&&m(t,dj(l,this.history)),this.removeListeners=rp(Ih(this.contextWindow,"pointermove",this.handlePointerMove),Ih(this.contextWindow,"pointerup",this.handlePointerUp),Ih(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qo(this.updatePoint)}}function uj(e,t){return t?{point:t(e.point)}:e}function xR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dj({point:e},t){return{point:e,delta:xR(e,KV(t)),offset:xR(e,Qie(t)),velocity:Zie(t,.1)}}function Qie(e){return e[0]}function KV(e){return e[e.length-1]}function Zie(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=KV(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>xa(t)));)r--;if(!n)return{x:0,y:0};const a=ya(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const YV=1e-4,Jie=1-YV,eae=1+YV,XV=.01,tae=0-XV,rae=0+XV;function us(e){return e.max-e.min}function nae(e,t,r){return Math.abs(e-t)<=r}function yR(e,t,r,n=.5){e.origin=n,e.originPoint=lr(t.min,t.max,e.origin),e.scale=us(r)/us(t),e.translate=lr(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Jie&&e.scale<=eae||isNaN(e.scale))&&(e.scale=1),(e.translate>=tae&&e.translate<=rae||isNaN(e.translate))&&(e.translate=0)}function Rh(e,t,r,n){yR(e.x,t.x,r.x,n?n.originX:void 0),yR(e.y,t.y,r.y,n?n.originY:void 0)}function vR(e,t,r){e.min=r.min+t.min,e.max=e.min+us(t)}function sae(e,t,r){vR(e.x,t.x,r.x),vR(e.y,t.y,r.y)}function bR(e,t,r){e.min=t.min-r.min,e.max=e.min+us(t)}function Mh(e,t,r){bR(e.x,t.x,r.x),bR(e.y,t.y,r.y)}function iae(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?lr(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?lr(r,e,n.max):Math.min(e,r)),e}function wR(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function aae(e,{top:t,left:r,bottom:n,right:i}){return{x:wR(e.x,r,i),y:wR(e.y,t,n)}}function jR(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function oae(e,t){return{x:jR(e.x,t.x),y:jR(e.y,t.y)}}function lae(e,t){let r=.5;const n=us(e),i=us(t);return i>n?r=nd(t.min,t.max-n,e.min):n>i&&(r=nd(e.min,e.max-i,t.min)),Ta(0,1,r)}function cae(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const I2=.35;function uae(e=I2){return e===!1?e=0:e===!0&&(e=I2),{x:SR(e,"left","right"),y:SR(e,"top","bottom")}}function SR(e,t,r){return{min:kR(e,t),max:kR(e,r)}}function kR(e,t){return typeof e=="number"?e:e[t]||0}const NR=()=>({translate:0,scale:1,origin:0,originPoint:0}),ju=()=>({x:NR(),y:NR()}),TR=()=>({min:0,max:0}),wr=()=>({x:TR(),y:TR()});function Ns(e){return[e("x"),e("y")]}function QV({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function dae({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fae(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function fj(e){return e===void 0||e===1}function R2({scale:e,scaleX:t,scaleY:r}){return!fj(e)||!fj(t)||!fj(r)}function Cl(e){return R2(e)||ZV(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ZV(e){return AR(e.x)||AR(e.y)}function AR(e){return e&&e!=="0%"}function Xx(e,t,r){const n=e-r,i=t*n;return r+i}function CR(e,t,r,n,i){return i!==void 0&&(e=Xx(e,i,n)),Xx(e,r,n)+t}function M2(e,t=0,r=1,n,i){e.min=CR(e.min,t,r,n,i),e.max=CR(e.max,t,r,n,i)}function JV(e,{x:t,y:r}){M2(e.x,t.translate,t.scale,t.originPoint),M2(e.y,r.translate,r.scale,r.originPoint)}const PR=.999999999999,ER=1.0000000000001;function hae(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let l=0;l<i;l++){a=r[l],o=a.projectionDelta;const{visualElement:u}=a.options;u&&u.props.style&&u.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ku(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,JV(e,o)),n&&Cl(a.latestValues)&&ku(e,a.latestValues))}t.x<ER&&t.x>PR&&(t.x=1),t.y<ER&&t.y>PR&&(t.y=1)}function Su(e,t){e.min=e.min+t,e.max=e.max+t}function _R(e,t,r,n,i=.5){const a=lr(e.min,e.max,i);M2(e,t,r,a,n)}function ku(e,t){_R(e.x,t.x,t.scaleX,t.scale,t.originX),_R(e.y,t.y,t.scaleY,t.scale,t.originY)}function e9(e,t){return QV(fae(e.getBoundingClientRect(),t))}function mae(e,t,r){const n=e9(e,r),{scroll:i}=t;return i&&(Su(n.x,i.offset.x),Su(n.y,i.offset.y)),n}const t9=({current:e})=>e?e.ownerDocument.defaultView:null,pae=new WeakMap;class gae{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wr(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=m=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(np(m).point)},a=(m,h)=>{const{drag:p,dragPropagation:x,onDragStart:w}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lse(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ns(y=>{let j=this.getAxisMotionValue(y).get()||0;if(Ai.test(j)){const{projection:k}=this.visualElement;if(k&&k.layout){const N=k.layout.layoutBox[y];N&&(j=us(N)*(parseFloat(j)/100))}}this.originPoint[y]=j}),w&&tr.postRender(()=>w(m,h)),N2(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(m,h)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:w,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=h;if(x&&this.currentDirection===null){this.currentDirection=xae(y),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),v&&v(m,h)},l=(m,h)=>this.stop(m,h),u=()=>Ns(m=>{var h;return this.getAnimationState(m)==="paused"&&((h=this.getAxisMotionValue(m).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new GV(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:t9(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&tr.postRender(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!Fg(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=iae(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&bu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=aae(i.layoutBox,r):this.constraints=!1,this.elastic=uae(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ns(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=cae(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!bu(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=mae(n,i.root,this.visualElement.getTransformPagePoint());let o=oae(i.layout.layoutBox,a);if(r){const l=r(dae(o));this.hasMutatedConstraints=!!l,l&&(o=QV(l))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Ns(m=>{if(!Fg(m,r,this.currentDirection))return;let h=u&&u[m]||{};o&&(h={min:0,max:0});const p=i?200:1e6,x=i?40:1e7,w={type:"inertia",velocity:n?t[m]:0,bounceStiffness:p,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(m,w)});return Promise.all(d).then(l)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return N2(this.visualElement,t),n.start(aP(t,n,0,r,this.visualElement,!1))}stopAnimation(){Ns(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ns(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ns(r=>{const{drag:n}=this.getProps();if(!Fg(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[r];a.set(t[r]-lr(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!bu(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ns(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();i[o]=lae({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ns(o=>{if(!Fg(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(lr(u,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;pae.set(this.visualElement,this);const t=this.visualElement.current,r=Ih(t,"pointerdown",u=>{const{drag:d,dragListener:m=!0}=this.getProps();d&&m&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();bu(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tr.read(n);const o=Jh(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ns(m=>{const h=this.getAxisMotionValue(m);h&&(this.originPoint[m]+=u[m].translate,h.set(h.get()+u[m].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=I2,dragMomentum:l=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:l}}}function Fg(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function xae(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class yae extends Jo{constructor(t){super(t),this.removeGroupControls=os,this.removeListeners=os,this.controls=new gae(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||os}unmount(){this.removeGroupControls(),this.removeListeners()}}const OR=e=>(t,r)=>{e&&tr.postRender(()=>e(t,r))};class vae extends Jo{constructor(){super(...arguments),this.removePointerDownListener=os}onPointerDown(t){this.session=new GV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t9(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:OR(t),onStart:OR(r),onMove:n,onEnd:(a,o)=>{delete this.session,i&&tr.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Ih(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function IR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(nt.test(e))e=parseFloat(e);else return e;const r=IR(e,t.target.x),n=IR(e,t.target.y);return`${r}% ${n}%`}},bae={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Wo.parse(e);if(i.length>5)return n;const a=Wo.createTransformer(e),o=typeof i[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;i[0+o]/=l,i[1+o]/=u;const d=lr(l,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),a(i)}};class wae extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;Vne(jae),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),xx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,o=n.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||tr.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),MC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function r9(e){const[t,r]=$7(),n=S.useContext(AC);return s.jsx(wae,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(H7),isPresent:t,safeToRemove:r})}const jae={borderRadius:{...rh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rh,borderTopRightRadius:rh,borderBottomLeftRadius:rh,borderBottomRightRadius:rh,boxShadow:bae};function Sae(e,t,r){const n=gn(e)?e:Qh(e);return n.start(aP("",n,t,r)),n.animation}function kae(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Nae=(e,t)=>e.depth-t.depth;class Tae{constructor(){this.children=[],this.isDirty=!1}add(t){YC(this.children,t),this.isDirty=!0}remove(t){XC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nae),this.isDirty=!1,this.children.forEach(t)}}function Aae(e,t){const r=Ci.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(qo(n),e(a-t))};return tr.read(n,!0),()=>qo(n)}const n9=["TopLeft","TopRight","BottomLeft","BottomRight"],Cae=n9.length,RR=e=>typeof e=="string"?parseFloat(e):e,MR=e=>typeof e=="number"||nt.test(e);function Pae(e,t,r,n,i,a){i?(e.opacity=lr(0,r.opacity!==void 0?r.opacity:1,Eae(n)),e.opacityExit=lr(t.opacity!==void 0?t.opacity:1,0,_ae(n))):a&&(e.opacity=lr(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;o<Cae;o++){const l=`border${n9[o]}Radius`;let u=DR(t,l),d=DR(r,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||MR(u)===MR(d)?(e[l]=Math.max(lr(RR(u),RR(d),n),0),(Ai.test(d)||Ai.test(u))&&(e[l]+="%")):e[l]=d}(t.rotate||r.rotate)&&(e.rotate=lr(t.rotate||0,r.rotate||0,n))}function DR(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Eae=s9(0,.5,jV),_ae=s9(.5,.95,os);function s9(e,t,r){return n=>n<e?0:n>t?1:r(nd(e,t,n))}function LR(e,t){e.min=t.min,e.max=t.max}function ws(e,t){LR(e.x,t.x),LR(e.y,t.y)}function $R(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function FR(e,t,r,n,i){return e-=t,e=Xx(e,1/r,n),i!==void 0&&(e=Xx(e,1/i,n)),e}function Oae(e,t=0,r=1,n=.5,i,a=e,o=e){if(Ai.test(t)&&(t=parseFloat(t),t=lr(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=lr(a.min,a.max,n);e===a&&(l-=t),e.min=FR(e.min,t,r,l,i),e.max=FR(e.max,t,r,l,i)}function BR(e,t,[r,n,i],a,o){Oae(e,t[r],t[n],t[i],t.scale,a,o)}const Iae=["x","scaleX","originX"],Rae=["y","scaleY","originY"];function VR(e,t,r,n){BR(e.x,t,Iae,r?r.x:void 0,n?n.x:void 0),BR(e.y,t,Rae,r?r.y:void 0,n?n.y:void 0)}function qR(e){return e.translate===0&&e.scale===1}function i9(e){return qR(e.x)&&qR(e.y)}function WR(e,t){return e.min===t.min&&e.max===t.max}function Mae(e,t){return WR(e.x,t.x)&&WR(e.y,t.y)}function zR(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function a9(e,t){return zR(e.x,t.x)&&zR(e.y,t.y)}function UR(e){return us(e.x)/us(e.y)}function HR(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dae{constructor(){this.members=[]}add(t){YC(this.members,t),t.scheduleRender()}remove(t){if(XC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Lae(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(r==null?void 0:r.z)||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:d,rotate:m,rotateX:h,rotateY:p,skewX:x,skewY:w}=r;d&&(n=`perspective(${d}px) ${n}`),m&&(n+=`rotate(${m}deg) `),h&&(n+=`rotateX(${h}deg) `),p&&(n+=`rotateY(${p}deg) `),x&&(n+=`skewX(${x}deg) `),w&&(n+=`skewY(${w}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(n+=`scale(${l}, ${u})`),n||"none"}const Pl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},kh=typeof window<"u"&&window.MotionDebug!==void 0,hj=["","X","Y","Z"],$ae={visibility:"hidden"},GR=1e3;let Fae=0;function mj(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function o9(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=pV(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",tr,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&o9(n)}function l9({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Fae++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,kh&&(Pl.totalNodes=Pl.resolvedTargetDeltas=Pl.recalculatedProjection=0),this.nodes.forEach(qae),this.nodes.forEach(Gae),this.nodes.forEach(Kae),this.nodes.forEach(Wae),kh&&window.MotionDebug.record(Pl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tae)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new QC),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const u=this.eventHandlers.get(o);u&&u.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=kae(o),this.instance=o;const{layoutId:u,layout:d,visualElement:m}=this.options;if(m&&!m.current&&m.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||u)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Aae(p,250),xx.hasAnimatedSinceResize&&(xx.hasAnimatedSinceResize=!1,this.nodes.forEach(YR))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&m&&(u||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeTargetChanged:x,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||m.getDefaultTransition()||Jae,{onLayoutAnimationStart:y,onLayoutAnimationComplete:j}=m.getProps(),k=!this.targetLayout||!a9(this.targetLayout,w)||x,N=!p&&x;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||p&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,N);const C={...UC(v,"layout"),onPlay:y,onComplete:j};(m.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else p||YR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yae),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&o9(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const h=this.path[m];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KR);return}this.isUpdating||this.nodes.forEach(Uae),this.isUpdating=!1,this.nodes.forEach(Hae),this.nodes.forEach(Bae),this.nodes.forEach(Vae),this.clearAllSnapshots();const l=Ci.now();Zr.delta=Ta(0,1e3/60,l-Zr.timestamp),Zr.timestamp=l,Zr.isProcessing=!0,sj.update.process(Zr),sj.preRender.process(Zr),sj.render.process(Zr),Zr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,MC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zae),this.sharedNodes.forEach(Xae)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=wr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const u=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!i9(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;o&&(l||Cl(this.latestValues)||m)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return o&&(u=this.removeTransform(u)),eoe(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return wr();const u=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(toe))){const{scroll:m}=this.root;m&&(Su(u.x,m.offset.x),Su(u.y,m.offset.y))}return u}removeElementScroll(o){var l;const u=wr();if(ws(u,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:h,options:p}=m;m!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&ws(u,o),Su(u.x,h.offset.x),Su(u.y,h.offset.y))}return u}applyTransform(o,l=!1){const u=wr();ws(u,o);for(let d=0;d<this.path.length;d++){const m=this.path[d];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ku(u,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Cl(m.latestValues)&&ku(u,m.latestValues)}return Cl(this.latestValues)&&ku(u,this.latestValues),u}removeTransform(o){const l=wr();ws(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Cl(d.latestValues))continue;R2(d.latestValues)&&d.updateSnapshot();const m=wr(),h=d.measurePageBox();ws(m,h),VR(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m)}return Cl(this.latestValues)&&VR(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=Zr.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wr(),this.relativeTargetOrigin=wr(),Mh(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),ws(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=wr(),this.targetWithTransforms=wr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sae(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ws(this.target,this.layout.layoutBox),JV(this.target,this.targetDelta)):ws(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wr(),this.relativeTargetOrigin=wr(),Mh(this.relativeTargetOrigin,this.target,x.target),ws(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}kh&&Pl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||R2(this.parent.latestValues)||ZV(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Zr.timestamp&&(d=!1),d)return;const{layout:m,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||h))return;ws(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,x=this.treeScale.y;hae(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=wr());const{target:w}=l;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($R(this.prevProjectionDelta.x,this.projectionDelta.x),$R(this.prevProjectionDelta.y,this.projectionDelta.y)),Rh(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!HR(this.projectionDelta.x,this.prevProjectionDelta.x)||!HR(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w)),kh&&Pl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ju(),this.projectionDelta=ju(),this.projectionDeltaWithTransform=ju()}setAnimationOrigin(o,l=!1){const u=this.snapshot,d=u?u.latestValues:{},m={...this.latestValues},h=ju();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=wr(),x=u?u.source:void 0,w=this.layout?this.layout.source:void 0,v=x!==w,y=this.getStack(),j=!y||y.members.length<=1,k=!!(v&&!j&&this.options.crossfade===!0&&!this.path.some(Zae));this.animationProgress=0;let N;this.mixTargetDelta=C=>{const A=C/1e3;XR(h.x,o.x,A),XR(h.y,o.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mh(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qae(this.relativeTarget,this.relativeTargetOrigin,p,A),N&&Mae(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=wr()),ws(N,this.relativeTarget)),v&&(this.animationValues=m,Pae(m,d,this.latestValues,A,k,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tr.update(()=>{xx.hasAnimatedSinceResize=!0,this.currentAnimation=Sae(0,GR,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:m}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&c9(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||wr();const h=us(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const p=us(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+p}ws(l,u),ku(l,m),Rh(this.projectionDeltaWithTransform,this.layoutCorrected,l,m)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Dae),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&mj("z",o,d,this.animationValues);for(let m=0;m<hj.length;m++)mj(`rotate${hj[m]}`,o,d,this.animationValues),mj(`skew${hj[m]}`,o,d,this.animationValues);o.render();for(const m in d)o.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);o.scheduleRender()}getProjectionStyles(o){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $ae;const d={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=px(o==null?void 0:o.pointerEvents)||"",d.transform=m?m(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=px(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Cl(this.latestValues)&&(v.transform=m?m({},""):"none",this.hasProjected=!1),v}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=Lae(this.projectionDeltaWithTransform,this.treeScale,p),m&&(d.transform=m(p,d.transform));const{x,y:w}=this.projectionDelta;d.transformOrigin=`${x.origin*100}% ${w.origin*100}% 0`,h.animationValues?d.opacity=h===this?(u=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const v in Ux){if(p[v]===void 0)continue;const{correct:y,applyTo:j}=Ux[v],k=d.transform==="none"?p[v]:y(p[v],h);if(j){const N=j.length;for(let C=0;C<N;C++)d[j[C]]=k}else d[v]=k}return this.options.layoutId&&(d.pointerEvents=h===this?px(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(KR),this.root.sharedNodes.clear()}}}function Bae(e){e.updateLayout()}function Vae(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?Ns(h=>{const p=o?r.measuredBox[h]:r.layoutBox[h],x=us(p);p.min=n[h].min,p.max=p.min+x}):c9(a,r.layoutBox,n)&&Ns(h=>{const p=o?r.measuredBox[h]:r.layoutBox[h],x=us(n[h]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+x)});const l=ju();Rh(l,n,r.layoutBox);const u=ju();o?Rh(u,e.applyTransform(i,!0),r.measuredBox):Rh(u,n,r.layoutBox);const d=!i9(l);let m=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:x}=h;if(p&&x){const w=wr();Mh(w,r.layoutBox,p.layoutBox);const v=wr();Mh(v,n,x.layoutBox),a9(w,v)||(m=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=w,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function qae(e){kh&&Pl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Wae(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zae(e){e.clearSnapshot()}function KR(e){e.clearMeasurements()}function Uae(e){e.isLayoutDirty=!1}function Hae(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function YR(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gae(e){e.resolveTargetDelta()}function Kae(e){e.calcProjection()}
vendor: 5,781 bytes, line 600
600function Yae(e){e.resetSkewAndRotation()}function Xae(e){e.removeLeadSnapshot()}function XR(e,t,r){e.translate=lr(t.translate,0,r),e.scale=lr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function QR(e,t,r,n){e.min=lr(t.min,r.min,n),e.max=lr(t.max,r.max,n)}function Qae(e,t,r,n){QR(e.x,t.x,r.x,n),QR(e.y,t.y,r.y,n)}function Zae(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jae={duration:.45,ease:[.4,0,.1,1]},ZR=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),JR=ZR("applewebkit/")&&!ZR("chrome/")?Math.round:os;function e5(e){e.min=JR(e.min),e.max=JR(e.max)}function eoe(e){e5(e.x),e5(e.y)}function c9(e,t,r){return e==="position"||e==="preserve-aspect"&&!nae(UR(t),UR(r),.2)}function toe(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const roe=l9({attachResizeListener:(e,t)=>Jh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pj={current:void 0},u9=l9({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pj.current){const e=new roe({});e.mount(window),e.setOptions({layoutScroll:!0}),pj.current=e}return pj.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),noe={pan:{Feature:vae},drag:{Feature:yae,ProjectionNode:u9,MeasureLayout:r9}};function t5(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,a=n[i];a&&tr.postRender(()=>a(t,np(t)))}class soe extends Jo{mount(){const{current:t}=this.node;t&&(this.unmount=nse(t,r=>(t5(this.node,r,"Start"),n=>t5(this.node,n,"End"))))}unmount(){}}class ioe extends Jo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rp(Jh(this.node.current,"focus",()=>this.onFocus()),Jh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r5(e,t,r){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),a=n[i];a&&tr.postRender(()=>a(t,np(t)))}class aoe extends Jo{mount(){const{current:t}=this.node;t&&(this.unmount=ose(t,r=>(r5(this.node,r,"Start"),(n,{success:i})=>r5(this.node,n,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const D2=new WeakMap,gj=new WeakMap,ooe=e=>{const t=D2.get(e.target);t&&t(e)},loe=e=>{e.forEach(ooe)};function coe({root:e,...t}){const r=e||document;gj.has(r)||gj.set(r,{});const n=gj.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(loe,{root:e,...t})),n[i]}function uoe(e,t,r){const n=coe(t);return D2.set(e,r),n.observe(e),()=>{D2.delete(e),n.unobserve(e)}}const doe={some:0,all:1};class foe extends Jo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:doe[i]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:h}=this.node.getProps(),p=d?m:h;p&&p(u)};return uoe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(hoe(t,r))&&this.startObserver()}unmount(){}}function hoe({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const moe={inView:{Feature:foe},tap:{Feature:aoe},focus:{Feature:ioe},hover:{Feature:soe}},poe={layout:{ProjectionNode:u9,MeasureLayout:r9}},L2={current:null},d9={current:!1};function goe(){if(d9.current=!0,!!EC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>L2.current=e.matches;e.addListener(t),t()}else L2.current=!1}const xoe=[...DV,un,Wo],yoe=e=>xoe.find(MV(e)),n5=new WeakMap;function voe(e,t,r){for(const n in t){const i=t[n],a=r[n];if(gn(i))e.addValue(n,i);else if(gn(a))e.addValue(n,Qh(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(n);e.addValue(n,Qh(o!==void 0?o:i,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const s5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class boe{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nP,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=Ci.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,tr.render(this.render,!1,!0))};
vendor: 6,637 bytes, line 600
600const{latestValues:u,renderState:d,onUpdate:m}=o;this.onUpdate=m,this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=$v(r),this.isVariantNode=z7(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(r,{},this);for(const x in p){const w=p[x];u[x]!==void 0&&gn(w)&&w.set(u[x],!1)}}mount(t){this.current=t,n5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),d9.current||goe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:L2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){n5.delete(this.current),this.projection&&this.projection.unmount(),qo(this.notifyUpdate),qo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Cc.has(t),i=r.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&tr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in sd){const r=sd[t];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<s5.length;n++){const i=s5[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=voe(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Qh(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(IV(i)||kV(i))?i=parseFloat(i):!yoe(i)&&Wo.test(r)&&(i=EV(t,r)),this.setBaseTarget(t,gn(i)?i.get():i)),gn(i)?i.get():i}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=LC(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!gn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new QC),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class f9 extends boe{constructor(){super(...arguments),this.KeyframeResolver=LV}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gn(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function woe(e){return window.getComputedStyle(e)}class joe extends f9{constructor(){super(...arguments),this.type="html",this.renderInstance=J7}readValueFromInstance(t,r){if(Cc.has(r)){const n=rP(r);return n&&n.default||0}else{const n=woe(t),i=(X7(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return e9(t,r)}build(t,r,n){BC(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return zC(t,r,n)}}class Soe extends f9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wr}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Cc.has(r)){const n=rP(r);return n&&n.default||0}return r=eV.has(r)?r:RC(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return nV(t,r,n)}
600build(t,r,n){VC(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,i){tV(t,r,n,i)}mount(t){this.isSVGTag=WC(t.tagName),super.mount(t)}}const koe=(e,t)=>DC(e)?new Soe(t):new joe(t,{allowProjection:e!==S.Fragment}),Noe=Xne({...Kie,...moe,...noe,...poe},koe),st=dne(Noe);var sp=e=>e.type==="checkbox",Dl=e=>e instanceof Date,Jr=e=>e==null;const h9=e=>typeof e=="object";var cr=e=>!Jr(e)&&!Array.isArray(e)&&h9(e)&&!Dl(e),m9=e=>cr(e)&&e.target?sp(e.target)?e.target.checked:e.target.value:e,$2=(e,t)=>{const r=t.split("."),n=[];let i=r[0];for(let a=1;a<r.length;i+="."+r[a++])!isNaN(+r[a])&&e.has(i)&&n.push(i);return n},Toe=e=>{const t=e.constructor&&e.constructor.prototype;return cr(t)&&t.hasOwnProperty("isPrototypeOf")},oP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(oP&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(cr(e)&&Toe(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=br(e[i]));return n}var ip=e=>/^\w*$/.test(e),Jt=e=>e===void 0,lP=e=>Array.isArray(e)?e.filter(Boolean):[],Vv=e=>lP(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,r)=>{if(!t||!cr(e))return r;const i=(ip(t)?[t]:Vv(t)).reduce((a,o)=>Jr(a)?void 0:a[o],e);return Jt(i)||i===e?Jt(e[t])?r:e[t]:i},Zn=e=>typeof e=="boolean",fn=e=>typeof e=="function",Mt=(e,t,r)=>{let n=-1;const i=ip(t)?[t]:Vv(t),a=i.length,o=a-1;for(;++n<a;){const l=i[n];let u=r;if(n!==o){const d=e[l];
vendor: 6,043 bytes, line 600
600u=cr(d)||Array.isArray(d)?d:isNaN(+i[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const go={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Js={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ys={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},xj="form",p9="root",cP=W.createContext(null);cP.displayName="HookFormControlContext";const uP=()=>W.useContext(cP);var g9=(e,t,r,n=!0)=>{const i={};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Js.all&&(t._proxyFormState[o]=!n||Js.all),r&&(r[o]=!0),e[o]}});return i};const dP=typeof window<"u"?W.useLayoutEffect:W.useEffect;function Aoe(e){const t=uP(),{control:r=t,disabled:n,name:i,exact:a}=e||{},[o,l]=W.useState(()=>({...r._formState,defaultValues:r._defaultValues})),u=W.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return dP(()=>r._subscribe({name:i,formState:u.current,exact:a,callback:d=>{!n&&l({...r._formState,...d,defaultValues:r._defaultValues})}}),[i,n,a]),W.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),W.useMemo(()=>g9(o,r,u.current,!1),[o,r])}var mn=e=>typeof e=="string",F2=(e,t,r,n,i)=>mn(e)?(n&&t.watch.add(e),Ce(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ce(r,a))):(n&&(t.watchAll=!0),r),B2=e=>Jr(e)||!h9(e);function Jn(e,t,r=new WeakSet){if(e===t)return!0;if(B2(e)||B2(t))return Object.is(e,t);if(Dl(e)&&Dl(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const o=e[a];if(!(a in t))return!1;if(a!=="ref"){const l=t[a];if(Dl(o)&&Dl(l)||(cr(o)||Array.isArray(o))&&(cr(l)||Array.isArray(l))?!Jn(o,l,r):!Object.is(o,l))return!1}}return!0}function Coe(e){const t=uP(),{control:r=t,name:n,defaultValue:i,disabled:a,exact:o,compute:l}=e||{},u=W.useRef(i),d=W.useRef(l),m=W.useRef(void 0),h=W.useRef(r),p=W.useRef(n);d.current=l;const[x,w]=W.useState(()=>{const C=r._getWatch(n,u.current);return d.current?d.current(C):C}),v=W.useCallback(C=>{const A=F2(n,r._names,C||r._formValues,!1,u.current);return d.current?d.current(A):A},[r._formValues,r._names,n]),y=W.useCallback(C=>{if(!a){const A=F2(n,r._names,C||r._formValues,!1,u.current);if(d.current){const E=d.current(A);Jn(E,m.current)||(w(E),m.current=E)}else w(A)}},[r._formValues,r._names,a,n]);dP(()=>((h.current!==r||!Jn(p.current,n))&&(h.current=r,p.current=n,y()),r._subscribe({name:n,formState:{values:!0},exact:o,callback:C=>{y(C.values)}})),[r,o,n,y]),W.useEffect(()=>r._removeUnmounted());const j=h.current!==r,k=p.current,N=W.useMemo(()=>{if(a)return null;const C=!j&&!Jn(k,n);return j||C?v():null},[a,j,n,k,v]);return N!==null?N:x}function Poe(e){const t=uP(),{name:r,disabled:n,control:i=t,shouldUnregister:a,defaultValue:o,exact:l=!0}=e,u=!!$2(i._names.array,r).length,d=W.useMemo(()=>Ce(i._formValues,r,Ce(i._defaultValues,r,o)),[i,r,o]),m=Coe({control:i,name:r,defaultValue:d,exact:l}),h=Aoe({control:i,name:r,exact:l}),p=W.useRef(e),x=W.useRef(i.register(r,{...e.rules,value:m,...Zn(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const w=W.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ce(h.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ce(h.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ce(h.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ce(h.validatingFields,r)},error:{enumerable:!0,get:()=>Ce(h.errors,r)}}),[h,r]),v=W.useCallback(N=>x.current.onChange({target:{value:m9(N),name:r},type:go.CHANGE}),[r]),y=W.useCallback(()=>x.current.onBlur({target:{value:Ce(i._formValues,r),name:r},type:go.BLUR}),[r,i._formValues]),j=W.useCallback(N=>{const C=Ce(i._fields,r);C&&C._f&&N&&(C._f.ref={focus:()=>fn(N.focus)&&N.focus(),select:()=>fn(N.select)&&N.select(),setCustomValidity:A=>fn(N.setCustomValidity)&&N.setCustomValidity(A),reportValidity:()=>fn(N.reportValidity)&&N.reportValidity()})},[i._fields,r]),k=W.useMemo(()=>({name:r,value:m,...Zn(n)||h.disabled?{disabled:h.disabled||n}:{},onChange:v,onBlur:y,ref:j}),[r,n,h.disabled,v,y,j,m]);return W.useEffect(()=>{const N=i._options.shouldUnregister||a;i.register(r,{...p.current.rules,...Zn(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(A,E)=>{const _=Ce(i._fields,A);_&&_._f&&(_._f.mount=E)};if(C(r,!0),N){const A=br(Ce(i._defaultValues,r,Ce(i._options.defaultValues,r,p.current.defaultValue)));Mt(i._defaultValues,r,A),Jt(Ce(i._formValues,r))&&Mt(i._formValues,r,A)}return!u&&i.register(r),()=>{(u?N&&!i._state.action:N)?i.unregister(r):C(r,!1)}},[r,i,u,a]),W.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),W.useMemo(()=>({field:k,formState:h,fieldState:w}),[k,h,w])}const Eoe=e=>e.render(Poe(e)),fP=W.createContext(null);fP.displayName="HookFormContext";const _oe=()=>W.useContext(fP),Ooe=e=>{const{children:t,watch:r,getValues:n,getFieldState:i,setError:a,clearErrors:o,setValue:l,setValues:u,trigger:d,formState:m,resetField:h,reset:p,handleSubmit:x,unregister:w,control:v,register:y,setFocus:j,subscribe:k}=e,N=W.useMemo(()=>({watch:r,getValues:n,getFieldState:i,setError:a,clearErrors:o,setValue:l,setValues:u,trigger:d,formState:m,resetField:h,reset:p,handleSubmit:x,unregister:w,control:v,register:y,setFocus:j,subscribe:k}),[o,v,m,i,n,x,y,p,h,a,j,l,u,k,d,w,r]);return W.createElement(fP.Provider,{value:N},W.createElement(cP.Provider,{value:N.control},t))};var x9=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Dh=e=>Array.isArray(e)?e:[e],i5=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function y9(e,t){const r={};for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],a=t[n];if(i&&cr(i)&&a){const o=y9(i,a);
600cr(o)&&(r[n]=o)}else e[n]&&(r[n]=a)}return r}var cn=e=>cr(e)&&!Object.keys(e).length,hP=e=>e.type==="file",Qx=e=>{if(!oP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},v9=e=>e.type==="select-multiple",mP=e=>e.type==="radio",Ioe=e=>mP(e)||sp(e),yj=e=>Qx(e)&&e.isConnected;function Roe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;){if(Jr(e)){e=void 0;break}e=e[t[n]],n++}return e}function Moe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Jt(e[t]))return!1;return!0}function kr(e,t){if(mn(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const r=Array.isArray(t)?t:ip(t)?[t]:Vv(t),n=r.length===1?e:Roe(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(cr(n)&&cn(n)||Array.isArray(n)&&Moe(n))&&kr(e,r.slice(0,-1)),e}var Doe=e=>{for(const t in e)if(fn(e[t]))return!0;return!1};function b9(e){return Array.isArray(e)||cr(e)&&!Doe(e)}function V2(e,t={}){for(const r in e){const n=e[r];b9(n)?(t[r]=Array.isArray(n)?[]:{},V2(n,t[r])):Jt(n)||(t[r]=!0)}return t}function q2(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const t=e.map(r=>q2(r));return t.some(r=>r!==void 0)?t:void 0}if(cr(e)){const t={};for(const r in e){const n=q2(e[r]);Jt(n)||(t[r]=n)}return Object.keys(t).length?t:void 0}}}function pu(e,t,r){r||(r=V2(t));for(const n in e){const i=e[n];if(b9(i))Jt(t)||B2(r[n])?r[n]=V2(i,Array.isArray(i)?[]:{}):pu(i,Jr(t)?{}:t[n],r[n]);else{const a=t[n];r[n]=!Jn(i,a)}}return q2(r)||{}}const a5={value:!1,isValid:!1},o5={value:!0,isValid:!0};var w9=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jt(e[0].attributes.value)?Jt(e[0].value)||e[0].value===""?o5:{value:e[0].value,isValid:!0}:o5:a5}return a5},j9=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Jt(e)?e:t?e===""?NaN:e&&+e:r&&mn(e)?new Date(e):n?n(e):e;const l5={isValid:!1,value:null};var S9=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,l5):l5;function c5(e){const t=e.ref;return hP(t)?t.files:mP(t)?S9(e.refs).value:v9(t)?[...t.selectedOptions].map(({value:r})=>r):sp(t)?w9(e.refs).value:j9(Jt(t.value)?e.ref.value:t.value,e)}var Loe=(e,t,r,n)=>{const i={};for(const a of e){const o=Ce(t,a);o&&Mt(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Zx=e=>e instanceof RegExp,nh=e=>Jt(e)?e:Zx(e)?e.source:cr(e)?Zx(e.value)?e.value.source:e.value:e,u5=e=>({isOnSubmit:!e||e===Js.onSubmit,isOnBlur:e===Js.onBlur,isOnChange:e===Js.onChange,isOnAll:e===Js.all,isOnTouch:e===Js.onTouched});const d5="AsyncFunction";var $oe=e=>!!e&&!!e.validate&&!!(fn(e.validate)&&e.validate.constructor.name===d5||cr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===d5)),Foe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),f5=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Lh=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=Ce(e,i);if(a){const{_f:o,...l}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Lh(l,t))break}else if(cr(l)&&Lh(l,t))break}}};function h5(e,t,r){const n=Ce(e,r);if(n||ip(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=Ce(t,a),l=Ce(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};i.pop()}return{name:r}}var Boe=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return cn(a)||n&&Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Js.all))},Voe=(e,t,r)=>!e||!t||e===t||Dh(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),qoe=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Woe=(e,t)=>!lP(Ce(e,t)).length&&kr(e,t),m5=(e,t,r)=>{const n=Dh(Ce(e,r));return Mt(n,p9,t[r]),Mt(e,r,n),e};function p5(e,t,r="validate"){if(mn(e)||Array.isArray(e)&&e.every(mn)||Zn(e)&&!e)return{type:r,message:mn(e)?e:"",ref:t}}var iu=e=>cr(e)&&!Zx(e)?e:{value:e,message:""},g5=async(e,t,r,n,i,a)=>{const{ref:o,refs:l,required:u,maxLength:d,minLength:m,min:h,max:p,pattern:x,validate:w,name:v,valueAsNumber:y,mount:j}=e._f,k=Ce(r,v);if(!j||t.has(v))return{};const N=l?l[0]:o,C=L=>{i&&N.reportValidity&&(N.setCustomValidity(Zn(L)?"":L||""),N.reportValidity())},A={},E=mP(o),_=sp(o),R=E||_,O=(y||hP(o))&&Jt(o.value)&&Jt(k)||Qx(o)&&o.value===""||k===""||Array.isArray(k)&&!k.length||y&&typeof k=="number"&&isNaN(k),F=x9.bind(null,v,n,A),D=(L,I,$,z=Ys.maxLength,K=Ys.minLength)=>{const Z=L?I:$;A[v]={type:L?z:K,message:Z,ref:o,...F(L?z:K,Z)}};if(a?!Array.isArray(k)||!k.length:u&&(!R&&(O||Jr(k))||Zn(k)&&!k||_&&!w9(l).isValid||E&&!S9(l).isValid)){const{value:L,message:I}=mn(u)?{value:!!u,message:u}:iu(u);
600if(L&&(A[v]={type:Ys.required,message:I,ref:N,...F(Ys.required,I)},!n))return C(I),A}if(!O&&(!Jr(h)||!Jr(p))){let L,I;const $=iu(p),z=iu(h);if(!Jr(k)&&!isNaN(k)){const K=o.valueAsNumber||k&&+k;Jr($.value)||(L=K>$.value),Jr(z.value)||(I=K<z.value)}else{const K=o.valueAsDate||new Date(k),Z=B=>new Date(new Date().toDateString()+" "+B),U=o.type=="time",q=o.type=="week";mn($.value)&&k&&(L=U?Z(k)>Z($.value):q?k>$.value:K>new Date($.value)),mn(z.value)&&k&&(I=U?Z(k)<Z(z.value):q?k<z.value:K<new Date(z.value))}if((L||I)&&(D(!!L,$.message,z.message,Ys.max,Ys.min),!n))return C(A[v].message),A}if((d||m)&&!O&&(mn(k)||a&&Array.isArray(k))){const L=iu(d),I=iu(m),$=!Jr(L.value)&&k.length>+L.value,z=!Jr(I.value)&&k.length<+I.value;if(($||z)&&(D($,L.message,I.message),!n))return C(A[v].message),A}if(x&&!O&&mn(k)){const{value:L,message:I}=iu(x);if(Zx(L)&&!k.match(L)&&(A[v]={type:Ys.pattern,message:I,ref:o,...F(Ys.pattern,I)},!n))return C(I),A}if(w){if(fn(w)){const L=await w(k,r),I=p5(L,N);if(I&&(A[v]={...I,...F(Ys.validate,I.message)},!n))return C(I.message),A}else if(cr(w)){let L={};for(const I in w){if(!cn(L)&&!n)break;const $=p5(await w[I](k,r),N,I);$&&(L={...$,...F(I,$.message)},C($.message),n&&(A[v]=L))}if(!cn(L)&&(A[v]={ref:N,...L},!n))return A}}return C(!0),A};const zoe={mode:Js.onSubmit,reValidateMode:Js.onChange,shouldFocusError:!0},k9={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Uoe(e={}){let t={...zoe,...e},r={...br(k9),isLoading:fn(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},n={},i=cr(t.defaultValues)||cr(t.values)?br(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:br(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},u,d=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...m};let p={...h};const x={array:i5(),state:i5()},w=t.criteriaMode===Js.all,v=G=>te=>{clearTimeout(d),d=setTimeout(G,te)},y=async G=>{if(!o.keepIsValid&&!t.disabled&&(h.isValid||p.isValid||G)){let te;t.resolver?(te=cn((await F()).errors),j()):te=await I({fields:n,onlyCheckValid:!0,eventType:go.VALID}),te!==r.isValid&&x.state.next({isValid:te})}},j=(G,te)=>{!t.disabled&&(h.isValidating||h.validatingFields||p.isValidating||p.validatingFields)&&((G||Array.from(l.mount)).forEach(ne=>{ne&&(te?Mt(r.validatingFields,ne,te):kr(r.validatingFields,ne))}),x.state.next({validatingFields:r.validatingFields,isValidating:!cn(r.validatingFields)}))},k=()=>{r.dirtyFields=pu(i,a)},N=(G,te=[],ne,ke,we=!0,ve=!0)=>{if(ke&&ne&&!t.disabled){if(o.action=!0,ve&&Array.isArray(Ce(n,G))){const _e=ne(Ce(n,G),ke.argA,ke.argB);we&&Mt(n,G,_e)}if(ve&&Array.isArray(Ce(r.errors,G))){const _e=ne(Ce(r.errors,G),ke.argA,ke.argB);we&&Mt(r.errors,G,_e),Woe(r.errors,G)}if((h.touchedFields||p.touchedFields)&&ve&&Array.isArray(Ce(r.touchedFields,G))){const _e=ne(Ce(r.touchedFields,G),ke.argA,ke.argB);we&&Mt(r.touchedFields,G,_e)}(h.dirtyFields||p.dirtyFields)&&k(),x.state.next({name:G,isDirty:z(G,te),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Mt(a,G,te)},C=(G,te)=>{Mt(r.errors,G,te),x.state.next({errors:r.errors})},A=G=>{r.errors=G,x.state.next({errors:r.errors,isValid:!1})},E=G=>{const te=ip(G)?[G]:Vv(G);let ne=a,ke=i;for(let we=0;we<te.length-1;we++){const ve=te[we];if(ne=Jr(ne)?ne:ne[ve],ke=Jr(ke)?ke:ke[ve],ne===null&&ke!==null)return!0}return!1},_=(G,te,ne,ke)=>{const we=Ce(n,G);if(we){if(E(G))return;const ve=Jt(Ce(a,G)),_e=Ce(a,G,Jt(ne)?Ce(i,G):ne);Jt(_e)||ke&&ke.defaultChecked||te?Mt(a,G,te?_e:c5(we._f)):U(G,_e),o.mount&&!o.action&&(y(),ve&&r.isDirty&&(h.isDirty||p.isDirty)&&(z()||(r.isDirty=!1,x.state.next({...r}))))}},R=(G,te,ne,ke,we)=>{let ve=!1,_e=!1;const ct={name:G};if(!t.disabled){if(!ne||ke){(h.isDirty||p.isDirty)&&(_e=r.isDirty,r.isDirty=ct.isDirty=z(),ve=_e!==ct.isDirty);const vt=Jn(Ce(i,G),te);_e=!!Ce(r.dirtyFields,G),vt!==r.isDirty?r.dirtyFields=pu(i,a):vt?kr(r.dirtyFields,G):Mt(r.dirtyFields,G,!0),ct.dirtyFields=r.dirtyFields,ve=ve||(h.dirtyFields||p.dirtyFields)&&_e!==!vt}if(ne){const vt=Ce(r.touchedFields,G);vt||(Mt(r.touchedFields,G,ne),ct.touchedFields=r.touchedFields,ve=ve||(h.touchedFields||p.touchedFields)&&vt!==ne)}ve&&we&&x.state.next(ct)}return ve?ct:{}},O=(G,te,ne,ke)=>{const we=Ce(r.errors,G),ve=(h.isValid||p.isValid)&&Zn(te)&&r.isValid!==te;if(t.delayError&&ne?(u=v(()=>C(G,ne)),u(t.delayError)):(clearTimeout(d),u=null,ne?Mt(r.errors,G,ne):kr(r.errors,G)),(ne?!Jn(we,ne):we)||!cn(ke)||ve){const _e={...ke,...ve&&Zn(te)?{isValid:te}:{},errors:r.errors,name:G};r={...r,..._e},x.state.next(_e)}},F=async G=>(j(G,!0),await t.resolver(a,t.context,Loe(G||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),D=async G=>{const{errors:te}=await F(G);if(j(G),G)for(const ne of G){const ke=Ce(te,ne);ke?l.array.has(ne)&&cr(ke)?m5(r.errors,{[ne]:ke},ne):Mt(r.errors,ne,ke):kr(r.errors,ne)}else r.errors=te;return te},L=async({name:G,eventType:te})=>{if(e.validate){const ne=await e.validate({formValues:a,formState:r,name:G,eventType:te});if(cr(ne))for(const ke in ne){const we=ne[ke];we&&Ae(`${xj}.${ke}`,{message:mn(we.message)?we.message:"",type:we.type||Ys.validate})}else mn(ne)||!ne?Ae(xj,{message:ne||"",type:Ys.validate}):ge(xj);return ne}return!0},I=async({fields:G,onlyCheckValid:te,name:ne,eventType:ke,context:we={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(we.runRootValidation=!0,!await L({name:ne,eventType:ke})&&(we.valid=!1,te)))return we.valid;for(const ve in G){const _e=G[ve];if(_e){const{_f:ct,...vt}=_e;if(ct){const gr=l.array.has(ct.name),En=_e._f&&$oe(_e._f),vn=h.validatingFields||h.isValidating||p.validatingFields||p.isValidating;En&&vn&&j([ct.name],!0);const Ls=await g5(_e,l.disabled,a,w,t.shouldUseNativeValidation&&!te,gr);if(En&&vn&&j([ct.name]),Ls[ct.name]&&(we.valid=!1,te)||(!te&&(Ce(Ls,ct.name)?gr?m5(r.errors,Ls,ct.name):Mt(r.errors,ct.name,Ls[ct.name]):kr(r.errors,ct.name)),e.shouldUseNativeValidation&&Ls[ct.name]))break}!cn(vt)&&await I({context:we,onlyCheckValid:te,fields:vt,name:ve,eventType:ke})}}return we.valid},$=()=>{for(const G of l.unMount){const te=Ce(n,G);te&&(te._f.refs?te._f.refs.every(ne=>!yj(ne)):!yj(te._f.ref))&&ae(G)}l.unMount=new Set},z=(G,te)=>!t.disabled&&(G&&te&&Mt(a,G,te),!Jn($e(),i)),K=(G,te,ne)=>
600F2(G,l,{...o.mount?a:Jt(te)?i:mn(G)?{[G]:te}:te},ne,te),Z=G=>lP(Ce(o.mount?a:i,G,t.shouldUnregister?Ce(i,G,[]):[])),U=(G,te,ne={})=>{const ke=Ce(n,G);let we=te;if(ke){const ve=ke._f;ve&&(!ve.disabled&&Mt(a,G,j9(te,ve)),we=Qx(ve.ref)&&Jr(te)?"":te,v9(ve.ref)?[...ve.ref.options].forEach(_e=>_e.selected=we.includes(_e.value)):ve.refs?sp(ve.ref)?ve.refs.forEach(_e=>{(!_e.defaultChecked||!_e.disabled)&&(Array.isArray(we)?_e.checked=!!we.find(ct=>ct===_e.value):_e.checked=we===_e.value||!!we)}):ve.refs.forEach(_e=>_e.checked=_e.value===we):hP(ve.ref)?ve.ref.value="":(ve.ref.value=we,ve.ref.type||x.state.next({name:G,values:br(a)})))}(ne.shouldDirty||ne.shouldTouch)&&R(G,we,ne.shouldTouch,ne.shouldDirty,!0),ne.shouldValidate&&ye(G)},q=(G,te,ne)=>{for(const ke in te){if(!te.hasOwnProperty(ke))return;const we=te[ke],ve=G+"."+ke,_e=Ce(n,ve);(l.array.has(G)||cr(we)||_e&&!_e._f)&&!Dl(we)?q(ve,we,ne):U(ve,we,ne)}},B=(G,te,ne={})=>{const ke=Ce(n,G),we=l.array.has(G),ve=br(te),_e=Ce(a,G),ct=Jn(_e,ve);if(ct||Mt(a,G,ve),we)x.array.next({name:G,values:br(a)}),(h.isDirty||h.dirtyFields||p.isDirty||p.dirtyFields)&&ne.shouldDirty&&(k(),x.state.next({name:G,dirtyFields:r.dirtyFields,isDirty:z(G,ve)}));else{const vt=Array.isArray(ve)&&!ve.length||cn(ve);!ke||ke._f||Jr(ve)||vt?U(G,ve,ne):q(G,ve,ne)}if(!ct){const vt=f5(G,l),gr=br(a);if(!we)for(const En of $2(l.array,G))x.array.next({name:En,values:gr});x.state.next({...vt&&r,name:o.mount||vt?G:void 0,values:gr})}},V=G=>{const te=fn(G)?G(a):G;if(!Jn(a,te)){a={...a,...te};for(const ne of l.mount)B(ne,Ce(te,ne));x.state.next({...r,values:a})}},X=async G=>{o.mount=!0;const te=G.target;let ne=te.name,ke=!0;const we=Ce(n,ne),ve=vt=>{ke=Number.isNaN(vt)||Dl(vt)&&isNaN(vt.getTime())||Jn(vt,Ce(a,ne,vt))},_e=u5(t.mode),ct=u5(t.reValidateMode);if(we){let vt,gr;const En=te.type?c5(we._f):m9(G),vn=G.type===go.BLUR||G.type===go.FOCUS_OUT,Ls=!Foe(we._f)&&!e.validate&&!t.resolver&&!Ce(r.errors,ne)&&!we._f.deps||qoe(vn,Ce(r.touchedFields,ne),r.isSubmitted,ct,_e),ll=f5(ne,l,vn);Mt(a,ne,En),vn?(!te||!te.readOnly)&&(we._f.onBlur&&we._f.onBlur(G),u&&u(0)):we._f.onChange&&we._f.onChange(G);const cl=R(ne,En,vn),hf=!cn(cl)||ll;if(!vn&&x.state.next({name:ne,type:G.type,values:br(a)}),Ls)return(h.isValid||p.isValid)&&(t.mode==="onBlur"?vn&&y():vn||y()),hf&&x.state.next({name:ne,...ll?{}:cl});if(!t.resolver&&e.validate&&await L({name:ne,eventType:G.type}),!vn&&ll&&x.state.next({...r}),t.resolver){const{errors:Wi}=await F([ne]);if(j([ne]),ve(En),ke){const Va=h5(r.errors,n,ne),mf=h5(Wi,n,Va.name||ne);vt=mf.error,ne=mf.name,gr=cn(Wi)}}else j([ne],!0),vt=(await g5(we,l.disabled,a,w,t.shouldUseNativeValidation))[ne],j([ne]),ve(En),ke&&(vt?gr=!1:(h.isValid||p.isValid)&&(gr=await I({fields:n,onlyCheckValid:!0,name:ne,eventType:G.type})));ke&&(we._f.deps&&(!Array.isArray(we._f.deps)||we._f.deps.length>0)&&ye(we._f.deps),O(ne,gr,vt,cl))}},ce=(G,te)=>{if(Ce(r.errors,te)&&G.focus)return G.focus(),1},ye=async(G,te={})=>{let ne,ke;const we=Dh(G);if(t.resolver){const ve=await D(Jt(G)?G:we);ne=cn(ve),ke=G?!we.some(_e=>Ce(ve,_e)):ne}else G?(ke=(await Promise.all(we.map(async ve=>{const _e=Ce(n,ve);return await I({fields:_e&&_e._f?{[ve]:_e}:_e,eventType:go.TRIGGER})}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=ne=await I({fields:n,name:G,eventType:go.TRIGGER});return x.state.next({...!mn(G)||(h.isValid||p.isValid)&&ne!==r.isValid?{}:{name:G},...t.resolver||!G?{isValid:ne}:{},errors:r.errors}),te.shouldFocus&&!ke&&Lh(n,ce,G?we:l.mount),ke},$e=(G,te)=>{let ne={...o.mount?a:i};return te&&(ne=y9(te.dirtyFields?r.dirtyFields:r.touchedFields,ne)),Jt(G)?ne:mn(G)?Ce(ne,G):G.map(ke=>Ce(ne,ke))},Te=(G,te)=>({invalid:!!Ce((te||r).errors,G),isDirty:!!Ce((te||r).dirtyFields,G),error:Ce((te||r).errors,G),isValidating:!!Ce(r.validatingFields,G),isTouched:!!Ce((te||r).touchedFields,G)}),ge=G=>{const te=G?Dh(G):void 0;te==null||te.forEach(ne=>kr(r.errors,ne)),te?te.forEach(ne=>{x.state.next({name:ne,errors:r.errors})}):x.state.next({errors:{}})},Ae=(G,te,ne)=>{const ke=(Ce(n,G,{_f:{}})._f||{}).ref,we=Ce(r.errors,G)||{},{ref:ve,message:_e,type:ct,...vt}=we;Mt(r.errors,G,{...vt,...te,ref:ke}),x.state.next({name:G,errors:r.errors,isValid:!1}),ne&&ne.shouldFocus&&ke&&ke.focus&&ke.focus()},le=(G,te)=>fn(G)?x.state.subscribe({next:ne=>"values"in ne&&G(ne.values||K(void 0,te),ne)}):K(G,te,!0),Se=G=>x.state.subscribe({next:te=>{if(Voe(G.name,te.name,G.exact)&&Boe(te,G.formState||h,Pr,G.reRenderRoot)){const ne={...a};G.callback({values:ne,...r,...te,defaultValues:i})}}}).unsubscribe,Pe=G=>(o.mount=!0,p={...p,...G.formState},Se({...G,formState:{...m,...G.formState}})),ae=(G,te={})=>{for(const ne of G?Dh(G):l.mount)l.mount.delete(ne),l.array.delete(ne),te.keepValue||(kr(n,ne),kr(a,ne)),!te.keepError&&kr(r.errors,ne),!te.keepDirty&&kr(r.dirtyFields,ne),!te.keepTouched&&kr(r.touchedFields,ne),!te.keepIsValidating&&kr(r.validatingFields,ne),!t.shouldUnregister&&!te.keepDefaultValue&&kr(i,ne);x.state.next({values:br(a)}),x.state.next({...r,...te.keepDirty?{isDirty:z()}:{}}),!te.keepIsValid&&y()},at=({disabled:G,name:te})=>{if(Zn(G)&&o.mount||G||l.disabled.has(te)){const we=l.disabled.has(te)!==!!G;G?l.disabled.add(te):l.disabled.delete(te),we&&o.mount&&!o.action&&y()}},Ye=(G,te={})=>{let ne=Ce(n,G);const ke=Zn(te.disabled)||Zn(t.disabled),we=!l.registerName.has(G)&&ne&&ne._f&&!ne._f.mount;return Mt(n,G,{...ne||{},_f:{...ne&&ne._f?ne._f:{ref:{name:G}},name:G,mount:!0,...te}}),l.mount.add(G),ne&&!we?at({disabled:Zn(te.disabled)?te.disabled:t.disabled,name:G}):_(G,!0,te.value),{...ke?{disabled:te.disabled||t.disabled}:{},...t.progressive?{required:!!te.required,min:nh(te.min),max:nh(te.max),minLength:nh(te.minLength),maxLength:nh(te.maxLength),pattern:nh(te.pattern)}:{},name:G,onChange:X,onBlur:X,ref:ve=>{if(ve){l.registerName.add(G),Ye(G,te),l.registerName.delete(G),ne=Ce(n,G);const _e=Jt(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,ct=Ioe(_e),vt=ne._f.refs||[];if(ct?vt.find(gr=>gr===_e):_e===ne._f.ref)return;Mt(n,G,{_f:{...ne._f,...ct?{refs:[...vt.filter(yj),_e,...Array.isArray(Ce(i,G))?[{}]:[]],ref:{type:_e.type,name:G}}:{ref:_e}}}),_(G,!1,void 0,_e)}else ne=Ce(n,G,{}),ne._f&&(ne._f.mount=!1),(t.shouldUnregister||te.shouldUnregister)&&!($2(l.array,G).length&&o.action)&&l.unMount.add(G)}}},mt=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Lh(n,ce,l.mount),Ie=G=>{Zn(G)&&(x.state.next({disabled:G}),Lh(n,(te,ne)=>{const ke=Ce(n,ne);ke&&(te.disabled=ke._f.disabled||G,Array.isArray(ke._f.refs)&&ke._f.refs.forEac
vendor: 5,700 bytes, line 600
600h(we=>{we.disabled=ke._f.disabled||G}))},0,!1))},pt=(G,te)=>async ne=>{let ke;ne&&(ne.preventDefault&&ne.preventDefault(),ne.persist&&ne.persist());let we=br(a);if(x.state.next({isSubmitting:!0}),t.resolver){const{errors:ve,values:_e}=await F();j(),r.errors=ve,we=br(_e)}else await I({fields:n,eventType:go.SUBMIT});if(l.disabled.size)for(const ve of l.disabled)kr(we,ve);if(kr(r.errors,p9),cn(r.errors)){x.state.next({errors:{}});try{await G(we,ne)}catch(ve){ke=ve}}else te&&await te({...r.errors},ne),mt(),setTimeout(mt);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cn(r.errors)&&!ke,submitCount:r.submitCount+1,errors:r.errors}),ke)throw ke},rr=(G,te={})=>{Ce(n,G)&&(Jt(te.defaultValue)?B(G,br(Ce(i,G))):(B(G,te.defaultValue),Mt(i,G,br(te.defaultValue))),te.keepTouched||kr(r.touchedFields,G),te.keepDirty||(kr(r.dirtyFields,G),r.isDirty=te.defaultValue?z(G,br(Ce(i,G))):z()),te.keepError||(kr(r.errors,G),h.isValid&&y()),x.state.next({...r}))},zt=(G,te={})=>{const ne=G?br(G):i,ke=br(ne),we=cn(G),ve=we?i:ke;if(te.keepDefaultValues||(i=ne),!te.keepValues){if(te.keepDirtyValues){const _e=new Set([...l.mount,...Object.keys(pu(i,a))]);for(const ct of Array.from(_e)){const vt=Ce(r.dirtyFields,ct),gr=Ce(a,ct),En=Ce(ve,ct);vt&&!Jt(gr)?Mt(ve,ct,gr):!vt&&!Jt(En)&&B(ct,En)}}else{if(oP&&Jt(G))for(const _e of l.mount){const ct=Ce(n,_e);if(ct&&ct._f){const vt=Array.isArray(ct._f.refs)?ct._f.refs[0]:ct._f.ref;if(Qx(vt)){const gr=vt.closest("form");if(gr){gr.reset();break}}}}if(te.keepFieldsRef)for(const _e of l.mount)B(_e,Ce(ve,_e));else n={}}a=t.shouldUnregister?te.keepDefaultValues?br(i):{}:br(ve),x.array.next({values:{...ve}}),x.state.next({values:{...ve}})}l={mount:te.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!te.keepIsValid||!!te.keepDirtyValues||!t.shouldUnregister&&!cn(ve),o.watch=!!t.shouldUnregister,o.keepIsValid=!!te.keepIsValid,o.action=!1,te.keepErrors||(r.errors={}),x.state.next({submitCount:te.keepSubmitCount?r.submitCount:0,isDirty:we?!1:te.keepDirty?r.isDirty:!!(te.keepDefaultValues&&!Jn(G,i)),isSubmitted:te.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:we?{}:te.keepDirtyValues?te.keepDefaultValues&&a?pu(i,a):r.dirtyFields:te.keepDefaultValues&&G?pu(i,G):te.keepDirty?r.dirtyFields:{},touchedFields:te.keepTouched?r.touchedFields:{},errors:te.keepErrors?r.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},tn=(G,te)=>zt(fn(G)?G(a):G,{...t.resetOptions,...te}),Fr=(G,te={})=>{const ne=Ce(n,G),ke=ne&&ne._f;if(ke){const we=ke.refs?ke.refs[0]:ke.ref;we.focus&&setTimeout(()=>{we.focus(),te.shouldSelect&&fn(we.select)&&we.select()})}},Pr=G=>{r={...r,...G}},Ba={control:{register:Ye,unregister:ae,getFieldState:Te,handleSubmit:pt,setError:Ae,_subscribe:Se,_runSchema:F,_updateIsValidating:j,_focusError:mt,_getWatch:K,_getDirty:z,_setValid:y,_setFieldArray:N,_setDisabledField:at,_setErrors:A,_getFieldArray:Z,_reset:zt,_resetDefaultValues:()=>fn(t.defaultValues)&&t.defaultValues().then(G=>{tn(G,t.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:$,_disableForm:Ie,_subjects:x,_proxyFormState:h,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state(G){o=G},get _defaultValues(){return i},get _names(){return l},set _names(G){l=G},get _formState(){return r},get _options(){return t},set _options(G){t={...t,...G}}},subscribe:Pe,trigger:ye,register:Ye,handleSubmit:pt,watch:le,setValue:B,setValues:V,getValues:$e,reset:tn,resetField:rr,clearErrors:ge,unregister:ae,setError:Ae,setFocus:Fr,getFieldState:Te};return{...Ba,formControl:Ba}}function Hoe(e={}){const t=W.useRef(void 0),r=W.useRef(void 0),[n,i]=W.useState(()=>({...br(k9),isLoading:fn(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:fn(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!fn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=Uoe(e);t.current={...l,formState:n}}const a=t.current.control;return a._options=e,dP(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState,defaultValues:a._defaultValues}),reRenderRoot:!0});return i(l=>({...l,isReady:!0})),a._formState.isReady=!0,o},[a]),W.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),W.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),W.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),W.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),W.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),W.useEffect(()=>{var o;e.values&&!Jn(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((o=a._options.resetOptions)===null||o===void 0)&&o.keepIsValid||a._setValid(),r.current=e.values,i(l=>({...l}))):a._resetDefaultValues()},[a,e.values]),W.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=W.useMemo(()=>g9(n,a),[a,n]),t.current}const x5=(e,t,r)=>{if(e&&"reportValidity"in e){const n=Ce(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},N9=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?x5(n.ref,r,e):n.refs&&n.refs.forEac
vendor: 3,057 bytes, line 600
600h(i=>x5(i,r,e))}},Goe=(e,t)=>{t.shouldUseNativeValidation&&N9(e,t);const r={};for(const n in e){const i=Ce(t.fields,n),a=Object.assign(e[n]||{},{ref:i&&i.ref});if(Koe(t.names||Object.keys(e),n)){const o=Object.assign({},Ce(r,n));Mt(o,"root",a),Mt(r,n,o)}else Mt(r,n,a)}return r},Koe=(e,t)=>e.some(r=>r.startsWith(t+"."));var Yoe=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,a=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:a,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(m){return m.errors.forEach(function(h){return e.push(h)})}),t){var u=r[o].types,d=u&&u[n.code];r[o]=x9(o,t,r,i,d?[].concat(d,n.message):n.message)}e.shift()}return r},Xoe=function(e,t,r){return r===void 0&&(r={}),function(n,i,a){try{return Promise.resolve((function(o,l){try{var u=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(d){return a.shouldUseNativeValidation&&N9({},a),{errors:{},values:r.raw?n:d}})}catch(d){return l(d)}return u&&u.then?u.then(void 0,l):u})(0,function(o){if((function(l){return Array.isArray(l==null?void 0:l.errors)})(o))return{values:{},errors:Goe(Yoe(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},Et;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of a)o[l]=i[l];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Et||(Et={}));var y5;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(y5||(y5={}));const Ue=Et.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xo=e=>{switch(typeof e){case"undefined":return Ue.undefined;case"string":return Ue.string;case"number":return Number.isNaN(e)?Ue.nan:Ue.number;case"boolean":return Ue.boolean;case"function":return Ue.function;case"bigint":return Ue.bigint;case"symbol":return Ue.symbol;case"object":return Array.isArray(e)?Ue.array:e===null?Ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ue.promise:typeof Map<"u"&&e instanceof Map?Ue.map:typeof Set<"u"&&e instanceof Set?Ue.set:typeof Date<"u"&&e instanceof Date?Ue.date:Ue.object;default:return Ue.unknown}}
vendor: 6,039 bytes, line 600
600,je=Et.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Aa extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let l=n,u=0;for(;u<o.path.length;){const d=o.path[u];u===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(r(o))):l[d]=l[d]||{_errors:[]},l=l[d],u++}}};return i(this),n}static assert(t){if(!(t instanceof Aa))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Et.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];r[a]=r[a]||[],r[a].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Aa.create=e=>new Aa(e);const W2=(e,t)=>{let r;switch(e.code){case je.invalid_type:e.received===Ue.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case je.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Et.jsonStringifyReplacer)}`;break;case je.unrecognized_keys:r=`Unrecognized key(s) in object: ${Et.joinValues(e.keys,", ")}`;break;case je.invalid_union:r="Invalid input";break;case je.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Et.joinValues(e.options)}`;break;case je.invalid_enum_value:r=`Invalid enum value. Expected ${Et.joinValues(e.options)}, received '${e.received}'`;break;case je.invalid_arguments:r="Invalid function arguments";break;case je.invalid_return_type:r="Invalid function return type";break;case je.invalid_date:r="Invalid date";break;case je.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Et.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case je.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case je.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case je.custom:r="Invalid input";break;case je.invalid_intersection_types:r="Intersection results could not be merged";break;case je.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case je.not_finite:r="Number must be finite";break;default:r=t.defaultError,Et.assertNever(e)}return{message:r}};let Qoe=W2;function Zoe(){return Qoe}const Joe=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const u=n.filter(d=>!!d).slice().reverse();for(const d of u)l=d(o,{data:t,defaultError:l}).message;return{...i,path:a,message:l}};function Le(e,t){const r=Zoe(),n=Joe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===W2?void 0:W2].filter(i=>!!i)});e.common.issues.push(n)}class ds{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const i of r){if(i.status==="aborted")return ut;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const i of r){const a=await i.key,o=await i.value;n.push({key:a,value:o})}return ds.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return ut;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[a.value]=o.value)}return{status:t.value,value:n}}}const ut=Object.freeze({status:"aborted"}),Nh=e=>({status:"dirty",value:e}),Is=e=>
vendor: 5,882 bytes, line 600
600({status:"valid",value:e}),v5=e=>e.status==="aborted",b5=e=>e.status==="dirty",ad=e=>e.status==="valid",Jx=e=>typeof Promise<"u"&&e instanceof Promise;var Ge;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ge||(Ge={}));class zo{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const w5=(e,t)=>{if(ad(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Aa(e.common.issues);return this._error=r,this._error}}};function wt(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>{const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??l.defaultError}:typeof l.data>"u"?{message:u??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:u??r??l.defaultError}},description:i}}class At{get description(){return this._def.description}_getType(t){return xo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:xo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ds,ctx:{common:t.parent.common,data:t.data,parsedType:xo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Jx(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xo(t)},i=this._parseSync({data:t,path:n.path,parent:n});return w5(n,i)}"~validate"(t){var n,i;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xo(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return ad(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(i=(n=a==null?void 0:a.message)==null?void 0:n.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>ad(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xo(t)},i=this._parse({data:t,path:n.path,parent:n}),a=await(Jx(i)?i:Promise.resolve(i));return w5(n,a)}refine(t,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,a)=>{const o=t(i),l=()=>a.addIssue({code:je.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new ld({schema:this,typeName:dt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ro.create(this,this._def)}nullable(){return cd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Pi.create(this)}promise(){return ny.create(this,this._def)}or(t){return ty.create([this,t],this._def)}and(t){return ry.create(this,t,this._def)}transform(t){return new ld({...wt(this._def),schema:this,typeName:dt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new H2({...wt(this._def),innerType:this,defaultValue:r,typeName:dt.ZodDefault})}brand(){return new jle({typeName:dt.ZodBranded,type:this,...wt(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new G2({...wt(this._def),innerType:this,catchValue:r,typeName:dt.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return pP.create(this,t)}readonly(){return K2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const ele=/^c[^\s-]{8,}
vendor: 2,973 bytes, line 600
600$/i,tle=/^[0-9a-z]+$/,rle=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nle=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,sle=/^[a-z0-9_-]{21}$/i,ile=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ale=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ole=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lle="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vj;const cle=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ule=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,dle=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fle=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hle=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mle=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,T9="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ple=new RegExp(`^${T9}$`);function A9(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function gle(e){return new RegExp(`^${A9(e)}$`)}function xle(e){let t=`${T9}T${A9(e)}`;
vendor: 7,714 bytes, line 600
600const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function yle(e,t){return!!((t==="v4"||!t)&&cle.test(e)||(t==="v6"||!t)&&dle.test(e))}function vle(e,t){if(!ile.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function ble(e,t){return!!((t==="v4"||!t)&&ule.test(e)||(t==="v6"||!t)&&fle.test(e))}class Eo extends At{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ue.string){const a=this._getOrReturnCtx(t);return Le(a,{code:je.invalid_type,expected:Ue.string,received:a.parsedType}),ut}const n=new ds;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),Le(i,{code:je.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),Le(i,{code:je.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,l=t.data.length<a.value;(o||l)&&(i=this._getOrReturnCtx(t,i),o?Le(i,{code:je.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&Le(i,{code:je.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")ole.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"email",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")vj||(vj=new RegExp(lle,"u")),vj.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"emoji",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")nle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"uuid",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")sle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"nanoid",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")ele.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"cuid",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")tle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"cuid2",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")rle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"ulid",code:je.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Le(i,{validation:"url",code:je.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"regex",code:je.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?xle(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?ple.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?gle(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{code:je.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?ale.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"duration",code:je.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?yle(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"ip",code:je.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?vle(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"jwt",code:je.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?ble(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"cidr",code:je.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?hle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"base64",code:je.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?mle.test(t.data)||(i=this._getOrReturnCtx(t,i),Le(i,{validation:"base64url",code:je.invalid_string,message:a.message}),n.dirty()):Et.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:je.invalid_string,...Ge.errToObj(n)})}_addCheck(t){return new Eo({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ge.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ge.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ge.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ge.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ge.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ge.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ge.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ge.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ge.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ge.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ge.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ge.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ge.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Ge.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ge.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ge.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Ge.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Ge.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Ge.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Ge.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Ge.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Ge.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Ge.errToObj(r)})}nonempty(t){return this.min(1,Ge.errToObj(t))}trim(){return new Eo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Eo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Eo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,672 bytes, line 600
600get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Eo.create=e=>new Eo({checks:[],typeName:dt.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...wt(e)});function wle(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}class em extends At{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ue.number){const a=this._getOrReturnCtx(t);return Le(a,{code:je.invalid_type,expected:Ue.number,received:a.parsedType}),ut}let n;const i=new ds;for(const a of this._def.checks)a.kind==="int"?Et.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{code:je.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?wle(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Le(n,{code:je.not_finite,message:a.message}),i.dirty()):Et.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Ge.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ge.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ge.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ge.toString(r))}setLimit(t,r,n,i){return new em({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ge.toString(i)}]})}_addCheck(t){return new em({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ge.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ge.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Ge.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Et.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 6,726 bytes, line 600
600}em.create=e=>new em({checks:[],typeName:dt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...wt(e)});class tm extends At{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ue.bigint)return this._getInvalidInput(t);let n;const i=new ds;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Le(n,{code:je.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Et.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return Le(r,{code:je.invalid_type,expected:Ue.bigint,received:r.parsedType}),ut}gte(t,r){return this.setLimit("min",t,!0,Ge.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Ge.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Ge.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Ge.toString(r))}setLimit(t,r,n,i){return new tm({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Ge.toString(i)}]})}_addCheck(t){return new tm({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ge.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ge.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Ge.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}tm.create=e=>new tm({checks:[],typeName:dt.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...wt(e)});class j5 extends At{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ue.boolean){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.boolean,received:n.parsedType}),ut}return Is(t.data)}}j5.create=e=>new j5({typeName:dt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...wt(e)});class ey extends At{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ue.date){const a=this._getOrReturnCtx(t);return Le(a,{code:je.invalid_type,expected:Ue.date,received:a.parsedType}),ut}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Le(a,{code:je.invalid_date}),ut}const n=new ds;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),Le(i,{code:je.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),Le(i,{code:je.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):Et.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ey({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Ge.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Ge.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}ey.create=e=>new ey({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:dt.ZodDate,...wt(e)});class S5 extends At{_parse(t){if(this._getType(t)!==Ue.symbol){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.symbol,received:n.parsedType}),ut}return Is(t.data)}}S5.create=e=>new S5({typeName:dt.ZodSymbol,...wt(e)});class k5 extends At{_parse(t){if(this._getType(t)!==Ue.undefined){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.undefined,received:n.parsedType}),ut}return Is(t.data)}}k5.create=e=>new k5({typeName:dt.ZodUndefined,...wt(e)});class N5 extends At{_parse(t){if(this._getType(t)!==Ue.null){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.null,received:n.parsedType}),ut}return Is(t.data)}}N5.create=e=>new N5({typeName:dt.ZodNull,...wt(e)});class T5 extends At{constructor(){super(...arguments),this._any=!0}_parse(t){return Is(t.data)}}T5.create=e=>new T5({typeName:dt.ZodAny,...wt(e)});class A5 extends At{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Is(t.data)}}A5.create=e=>new A5({typeName:dt.ZodUnknown,...wt(e)});class Uo extends At{_parse(t){const r=this._getOrReturnCtx(t);return Le(r,{code:je.invalid_type,expected:Ue.never,received:r.parsedType}),ut}}Uo.create=e=>new Uo({typeName:dt.ZodNever,...wt(e)});class C5 extends At{_parse(t){if(this._getType(t)!==Ue.undefined){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.void,received:n.parsedType}),ut}return Is(t.data)}}C5.create=e=>new C5({typeName:dt.ZodVoid,...wt(e)});class Pi extends At{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==Ue.array)return Le(r,{code:je.invalid_type,expected:Ue.array,received:r.parsedType}),ut;if(i.exactLength!==null){const o=r.data.length>i.exactLength.value,l=r.data.length<i.exactLength.value;(o||l)&&(Le(r,{code:o?je.too_big:je.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(Le(r,{code:je.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(Le(r,{code:je.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,l)=>i.type._parseAsync(new zo(r,o,r.path,l)))).then(o=>ds.mergeArray(n,o));const a=[...r.data].map((o,l)=>i.type._parseSync(new zo(r,o,r.path,l)));return ds.mergeArray(n,a)}
vendor: 4,454 bytes, line 600
600get element(){return this._def.type}min(t,r){return new Pi({...this._def,minLength:{value:t,message:Ge.toString(r)}})}max(t,r){return new Pi({...this._def,maxLength:{value:t,message:Ge.toString(r)}})}length(t,r){return new Pi({...this._def,exactLength:{value:t,message:Ge.toString(r)}})}nonempty(t){return this.min(1,t)}}Pi.create=(e,t)=>new Pi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:dt.ZodArray,...wt(t)});function gu(e){if(e instanceof Tr){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Ro.create(gu(n))}return new Tr({...e._def,shape:()=>t})}else return e instanceof Pi?new Pi({...e._def,type:gu(e.element)}):e instanceof Ro?Ro.create(gu(e.unwrap())):e instanceof cd?cd.create(gu(e.unwrap())):e instanceof cc?cc.create(e.items.map(t=>gu(t))):e}class Tr extends At{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Et.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Ue.object){const d=this._getOrReturnCtx(t);return Le(d,{code:je.invalid_type,expected:Ue.object,received:d.parsedType}),ut}const{status:n,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Uo&&this._def.unknownKeys==="strip"))for(const d in i.data)o.includes(d)||l.push(d);const u=[];for(const d of o){const m=a[d],h=i.data[d];u.push({key:{status:"valid",value:d},value:m._parse(new zo(i,h,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Uo){const d=this._def.unknownKeys;if(d==="passthrough")for(const m of l)u.push({key:{status:"valid",value:m},value:{status:"valid",value:i.data[m]}});else if(d==="strict")l.length>0&&(Le(i,{code:je.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const m of l){const h=i.data[m];u.push({key:{status:"valid",value:m},value:d._parse(new zo(i,h,i.path,m)),alwaysSet:m in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const m of u){const h=await m.key,p=await m.value;d.push({key:h,value:p,alwaysSet:m.alwaysSet})}return d}).then(d=>ds.mergeObjectSync(n,d)):ds.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ge.errToObj,new Tr({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,o;const i=((o=(a=this._def).errorMap)==null?void 0:o.call(a,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:Ge.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Tr({...this._def,unknownKeys:"strip"})}passthrough(){return new Tr({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tr({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tr({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:dt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Tr({...this._def,catchall:t})}pick(t){const r={};for(const n of Et.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Tr({...this._def,shape:()=>r})}omit(t){const r={};for(const n of Et.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new Tr({...this._def,shape:()=>r})}deepPartial(){return gu(this)}partial(t){const r={};for(const n of Et.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}return new Tr({...this._def,shape:()=>r})}required(t){const r={};for(const n of Et.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof Ro;)a=a._def.innerType;r[n]=a}return new Tr({...this._def,shape:()=>r})}keyof(){return C9(Et.objectKeys(this.shape))}}Tr.create=(e,t)=>new Tr({shape:()=>e,unknownKeys:"strip",catchall:Uo.create(),typeName:dt.ZodObject,...wt(t)});Tr.strictCreate=(e,t)=>new Tr({shape:()=>e,unknownKeys:"strict",catchall:Uo.create(),typeName:dt.ZodObject,...wt(t)});Tr.lazycreate=(e,t)=>new Tr({shape:e,unknownKeys:"strip",catchall:Uo.create(),typeName:dt.ZodObject,...wt(t)});class ty extends At{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;
vendor: 5,183 bytes, line 600
600const o=a.map(l=>new Aa(l.ctx.common.issues));return Le(r,{code:je.invalid_union,unionErrors:o}),ut}if(r.common.async)return Promise.all(n.map(async a=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const u of n){const d={...r,common:{...r.common,issues:[]},parent:null},m=u._parseSync({data:r.data,path:r.path,parent:d});if(m.status==="valid")return m;m.status==="dirty"&&!a&&(a={result:m,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const l=o.map(u=>new Aa(u));return Le(r,{code:je.invalid_union,unionErrors:l}),ut}}get options(){return this._def.options}}ty.create=(e,t)=>new ty({options:e,typeName:dt.ZodUnion,...wt(t)});function z2(e,t){const r=xo(e),n=xo(t);if(e===t)return{valid:!0,data:e};if(r===Ue.object&&n===Ue.object){const i=Et.objectKeys(t),a=Et.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of a){const u=z2(e[l],t[l]);if(!u.valid)return{valid:!1};o[l]=u.data}return{valid:!0,data:o}}else if(r===Ue.array&&n===Ue.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],l=t[a],u=z2(o,l);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return r===Ue.date&&n===Ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ry extends At{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=(a,o)=>{if(v5(a)||v5(o))return ut;const l=z2(a.value,o.value);return l.valid?((b5(a)||b5(o))&&r.dirty(),{status:r.value,value:l.data}):(Le(n,{code:je.invalid_intersection_types}),ut)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ry.create=(e,t,r)=>new ry({left:e,right:t,typeName:dt.ZodIntersection,...wt(r)});class cc extends At{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.array)return Le(n,{code:je.invalid_type,expected:Ue.array,received:n.parsedType}),ut;if(n.data.length<this._def.items.length)return Le(n,{code:je.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ut;!this._def.rest&&n.data.length>this._def.items.length&&(Le(n,{code:je.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((o,l)=>{const u=this._def.items[l]||this._def.rest;return u?u._parse(new zo(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(a).then(o=>ds.mergeArray(r,o)):ds.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new cc({...this._def,rest:t})}}cc.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cc({items:e,typeName:dt.ZodTuple,rest:null,...wt(t)})};class P5 extends At{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.map)return Le(n,{code:je.invalid_type,expected:Ue.map,received:n.parsedType}),ut;const i=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([l,u],d)=>({key:i._parse(new zo(n,l,n.path,[d,"key"])),value:a._parse(new zo(n,u,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const u of o){const d=await u.key,m=await u.value;if(d.status==="aborted"||m.status==="aborted")return ut;(d.status==="dirty"||m.status==="dirty")&&r.dirty(),l.set(d.value,m.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const u of o){const d=u.key,m=u.value;if(d.status==="aborted"||m.status==="aborted")return ut;(d.status==="dirty"||m.status==="dirty")&&r.dirty(),l.set(d.value,m.value)}return{status:r.value,value:l}}}}P5.create=(e,t,r)=>new P5({valueType:t,keyType:e,typeName:dt.ZodMap,...wt(r)});class rm extends At{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ue.set)return Le(n,{code:je.invalid_type,expected:Ue.set,received:n.parsedType}),ut;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(Le(n,{code:je.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(Le(n,{code:je.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const a=this._def.valueType;function o(u){const d=new Set;for(const m of u){if(m.status==="aborted")return ut;m.status==="dirty"&&r.dirty(),d.add(m.value)}return{status:r.value,value:d}}const l=[...n.data.values()].map((u,d)=>a._parse(new zo(n,u,n.path,d)));return n.common.async?Promise.all(l).then(u=>o(u)):o(l)}min(t,r){return new rm({...this._def,minSize:{value:t,message:Ge.toString(r)}})}max(t,r){return new rm({...this._def,maxSize:{value:t,message:Ge.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}rm.create=(e,t)=>
vendor: 5,021 bytes, line 600
600new rm({valueType:e,minSize:null,maxSize:null,typeName:dt.ZodSet,...wt(t)});class E5 extends At{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}E5.create=(e,t)=>new E5({getter:e,typeName:dt.ZodLazy,...wt(t)});class U2 extends At{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Le(r,{received:r.data,code:je.invalid_literal,expected:this._def.value}),ut}return{status:"valid",value:t.data}}get value(){return this._def.value}}U2.create=(e,t)=>new U2({value:e,typeName:dt.ZodLiteral,...wt(t)});function C9(e,t){return new od({values:e,typeName:dt.ZodEnum,...wt(t)})}class od extends At{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return Le(r,{expected:Et.joinValues(n),received:r.parsedType,code:je.invalid_type}),ut}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return Le(r,{received:r.data,code:je.invalid_enum_value,options:n}),ut}return Is(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return od.create(t,{...this._def,...r})}exclude(t,r=this._def){return od.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}od.create=C9;class _5 extends At{_parse(t){const r=Et.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ue.string&&n.parsedType!==Ue.number){const i=Et.objectValues(r);return Le(n,{expected:Et.joinValues(i),received:n.parsedType,code:je.invalid_type}),ut}if(this._cache||(this._cache=new Set(Et.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=Et.objectValues(r);return Le(n,{received:n.data,code:je.invalid_enum_value,options:i}),ut}return Is(t.data)}get enum(){return this._def.values}}_5.create=(e,t)=>new _5({values:e,typeName:dt.ZodNativeEnum,...wt(t)});class ny extends At{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ue.promise&&r.common.async===!1)return Le(r,{code:je.invalid_type,expected:Ue.promise,received:r.parsedType}),ut;const n=r.parsedType===Ue.promise?r.data:Promise.resolve(r.data);return Is(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}ny.create=(e,t)=>new ny({type:e,typeName:dt.ZodPromise,...wt(t)});class ld extends At{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===dt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{Le(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(n.data,a);if(n.common.async)return Promise.resolve(o).then(async l=>{if(r.value==="aborted")return ut;const u=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return u.status==="aborted"?ut:u.status==="dirty"||r.value==="dirty"?Nh(u.value):u});{if(r.value==="aborted")return ut;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?ut:l.status==="dirty"||r.value==="dirty"?Nh(l.value):l}}if(i.type==="refinement"){const o=l=>{const u=i.refinement(l,a);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ut:(l.status==="dirty"&&r.dirty(),o(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ut:(l.status==="dirty"&&r.dirty(),o(l.value).then(()=>({status:r.value,value:l.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ad(o))return ut;const l=i.transform(o.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ad(o)?Promise.resolve(i.transform(o.value,a)).then(l=>({status:r.value,value:l})):ut);Et.assertNever(i)}}ld.create=(e,t,r)=>new ld({schema:e,typeName:dt.ZodEffects,effect:t,...wt(r)});ld.createWithPreprocess=(e,t,r)=>new ld({schema:t,effect:{type:"preprocess",transform:e},typeName:dt.ZodEffects,...wt(r)});class Ro extends At{_parse(t){return this._getType(t)===Ue.undefined?Is(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ro.create=(e,t)=>
600new Ro({innerType:e,typeName:dt.ZodOptional,...wt(t)});class cd extends At{_parse(t){return this._getType(t)===Ue.null?Is(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}cd.create=(e,t)=>new cd({innerType:e,typeName:dt.ZodNullable,...wt(t)});class H2 extends At{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===Ue.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}H2.create=(e,t)=>new H2({innerType:e,typeName:dt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...wt(t)});class G2 extends At{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Jx(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Aa(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Aa(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}G2.create=(e,t)=>new G2({innerType:e,typeName:dt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...wt(t)});class O5 extends At{_parse(t){if(this._getType(t)!==Ue.nan){const n=this._getOrReturnCtx(t);return Le(n,{code:je.invalid_type,expected:Ue.nan,received:n.parsedType}),ut}return{status:"valid",value:t.data}}}O5.create=e=>new O5({typeName:dt.ZodNaN,...wt(e)});class jle extends At{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class pP extends At{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ut:a.status==="dirty"?(r.dirty(),Nh(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ut:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new pP({in:t,out:r,typeName:dt.ZodPipeline})}}class K2 extends At{_parse(t){const r=this._def.innerType._parse(t),n=i=>(ad(i)&&(i.value=Object.freeze(i.value)),i);return Jx(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}K2.create=(e,t)=>new K2({innerType:e,typeName:dt.ZodReadonly,...wt(t)});var dt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(dt||(dt={}));const sh=Eo.create;Uo.create;Pi.create;const Sle=Tr.create;ty.create;ry.create;cc.create;const kle=U2.create;od.create;ny.create;Ro.create;cd.create;const Nle={"pipeline-rebel":["pipelinerebel.com","www.pipelinerebel.com","rebelhq.ai","www.rebelhq.ai"],"sidekick-genius":["sidekickgenius.com","www.sidekickgenius.com"],"sales-sidekick":["salessidekick.ai","www.salessidekick.ai"],joan:["joanai.io","www.joanai.io"]},Tle=new Map(Object.entries(Nle).flatMap(([e,t])=>t.map(r=>[r,e]))),Ale=new Set(["localhost","127.0.0.1","::1"]);function gP(e){var r;if(!e)return"";const t=((r=e.split(",")[0])==null?void 0:r.trim().toLowerCase())||"";if(!t)return"";try{return new URL(t.includes("://")?t:`https://${t}`).hostname.replace(/\.$/,"")}catch{return""}}function Cle(e){return Tle.get(gP(e))||"unregistered"}function Ple(e,t){const r=Cle(e),n=gP(e),i=Ele(t);if(r==="pipeline-rebel"||Ale.has(n)){if(i==="/sidekick-genius"||i.startsWith("/sidekick-genius/"))return"sidekick-genius";if(i==="/sales-sidekick-ai"||i.startsWith("/sales-sidekick-ai/"))return"sales-sidekick";if(i==="/joan"||i.startsWith("/joan/"))return"joan"}return r}function Ele(e){if(!e)return"/";try{return(new URL(e,"https://observability.invalid").pathname||"/").slice(0,512)}catch{const t=e.split(/[?#]/,1)[0]||"/";return(t.startsWith("/")?t:`/${t}`).slice(0,512)}}const Mi="/sidekick-genius",oi="/sales-sidekick-ai",ud="/joan",_le=new Set(["sidekickgenius.com","www.sidekickgenius.com"]),Ole=new Set(["salessidekick.ai","www.salessidekick.ai"]),Ile=new Set(["joanai.io","www.joanai.io"]),Rle={"pipeline-rebel":"Pipeline Rebel","sidekick-genius":"Sidekick Genius","sales-sidekick":"SalesSidekick",joan:"Joan"};function Da(){return typeof window>"u"?"":window.location.hostname}function el(){return typeof window>"u"?"/":window.location.pathname}function xP(e=Da()){return gP(e)}function I5(e=Da()){return _le.has(xP(e))}function Mle(e=Da()){return Ole.has(xP(e))}function Dle(e=Da()){return Ile.has(xP(e))}function Lle(e=el()){return e===Mi||e.startsWith(`${Mi}/`)}function yP(e=el()){return e===oi||e.startsWith(`${oi}/`)}function $le(e=el()){return e===ud||e.startsWith(`${ud}/`)}function Pc(e=Da(),t=el()){const r=Ple(e,t);return r!=="unregistered"?r:"pipeline-rebel"}function Fle(e=Da(),t=el()){return Pc(e,t)==="sidekick-genius"}function Ble(e=Da(),t=el()){return Pc(e,t)==="sales-sidekick"}function Vle(e=Da(),t=el()){return Pc(e,t)!=="pipeline-rebel"}function qv(e=el(),t=Da()){return Dle(t)?e==="/"?ud:`${ud}${e}`:$le(e)?e:Mle(t)?e==="/"?oi:`${oi}${e}`:yP(e)?e:I5(t)&&e==="/"?Mi:I5(t)?`${Mi}${e}`:e}function Wv(){const e=Pc();return{siteId:e,siteName:Rle[e],siteHost:typeof window>"u"?"":window.location.hostname}}const qle=()=>{const e=Date.now(),t=Math.random().toString(36).substring(2,15);return`v_${e}_${t}`},P9=()=>{const t=`pr_visitor_id_${Wv().siteId}`;let r=localStorage.getItem(t);return r||(r=qle(),localStorage.setItem(t,r)),r},Wle=()=>{const e=P9(),t=Date.now(),r=Math.random().toString(36).substring(2,8);return`${e}_s${t}_${r}`},dd=()=>{const t=`analytics_session_id_${Wv().siteId}`;let r=sessionStorage.getItem(t);return r||(r=Wle(),sessionStorage.setItem(t,r)),r},zv=()=>{const e=navigator;return navigator.doNotTrack!=="1"&&e.globalPrivacyControl!==!0}
600,E9=()=>zv()?dd():null;let Iu=null,$h=Date.now();const yx=async(e=!1)=>{if(!Iu)return 0;const t=Date.now(),r=Math.floor((t-$h)/1e3);if(r<1||r>=3600)return 0;$h=t;try{if(e&&navigator.sendBeacon){const n=JSON.stringify({pageViewId:Iu,sessionId:dd(),timeOnPage:r});navigator.sendBeacon("/api/analytics/pageview/time",new Blob([n],{type:"application/json"}))}else await fetch("/api/analytics/pageview/time",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageViewId:Iu,sessionId:dd(),timeOnPage:r}),keepalive:!0})}catch{$h=t-r*1e3}return r},zle=async()=>{await yx(!1)},vP=()=>{const e=[/bot/i,/crawl/i,/spider/i,/scraper/i,/facebookexternalhit/i,/WhatsApp/i,/Slack/i,/Twitter/i,/LinkedIn/i,/Pinterest/i,/Googlebot/i,/Bingbot/i,/Slurp/i,/DuckDuckBot/i,/Baiduspider/i,/YandexBot/i,/facebookcatalog/i,/Applebot/i,/Discordbot/i,/TelegramBot/i,/Twitterbot/i,/WhatsApp/i,/SkypeUriPreview/i,/SemrushBot/i,/DotBot/i,/PetalBot/i,/Qwantify/i,/Alexa/i,/ia_archiver/i,/Facebot/i,/Pinterestbot/i],t=navigator.userAgent,r=e.some(i=>i.test(t)),n=navigator.webdriver===!0;return r||n},Ule=async(e,t)=>{await zle(),$h=Date.now(),Iu=null,Y2=0,X2.clear();const r=qv(e);try{const n=await fetch("/api/analytics/pageview",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({sessionId:dd(),visitorId:P9(),pagePath:r,pageTitle:t||document.title})});if(n.ok){const i=await n.json();if(i.pageViewId)return Iu=i.pageViewId,!0}}catch{}return!1},Hle=async(e,t,r,n,i)=>{const a=Wv();try{await fetch("/api/analytics/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:dd(),eventCategory:e,eventAction:t,eventLabel:r,eventValue:n,pagePath:qv(window.location.pathname),elementId:null,metadata:{...a,...i}})})}catch{}},Gle=async()=>{if(!zv()||vP())return"disabled";const e=dd(),t=Wv(),r=qv(window.location.pathname),n=new URLSearchParams(window.location.search),i=n.get("utm_source"),a=n.get("utm_medium"),o=n.get("utm_campaign"),l=n.get("utm_term"),u=n.get("utm_content"),d=n.get("ref");d&&sessionStorage.setItem("pr_referred_by",d);try{const m=localStorage.getItem(`pr_visitor_id_${t.siteId}`);return(await fetch("/api/analytics/session",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({sessionId:e,visitorId:m,referrer:document.referrer,userAgent:navigator.userAgent,landingPage:r,siteId:t.siteId,siteName:t.siteName,siteHost:t.siteHost,utmSource:i,utmMedium:a,utmCampaign:o,utmTerm:l,utmContent:u})})).ok?"ready":"failed"}catch{return"failed"}},Kle=async(e,t)=>!zv()||vP()?!1:Ule(e,t||""),Ho=async(e,t)=>{if(!zv()||vP())return;const{event_category:r,event_label:n,value:i,...a}=t||{};await Hle(r||"interaction",e,n,i,a)},ap=()=>sessionStorage.getItem("pr_referred_by"),_9=(e,t)=>{Ho("cta_click",{event_category:"engagement",event_label:e,cta_location:t})},sy=(e,t,r)=>{Ho(`form_${t}`,{event_category:"form",event_label:e,value:r})};let Y2=0;const X2=new Set,Yle=()=>{const e=Math.round((window.scrollY+window.innerHeight)/document.documentElement.scrollHeight*100);if(e>Y2){Y2=e;for(const t of[25,50,75,90])e>=t&&!X2.has(t)&&(X2.add(t),Ho(`scroll_depth_${t}`,{event_category:"engagement"}))}};if(typeof window<"u"){let e;window.addEventListener("scroll",()=>{clearTimeout(e),e=setTimeout(()=>{Yle()},500)})}typeof window<"u"&&(document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?yx(!0):document.visibilityState==="visible"&&($h=Date.now())}),window.addEventListener("beforeunload",()=>{yx(!0)}),setInterval(()=>{Iu&&document.visibilityState==="visible"&&yx(!1)},3e4));typeof document<"u"&&document.addEventListener("click",e=>{const r=e.target.closest("a");if(r&&r.href)try{const n=new URL(r.href);n.hostname!==window.location.hostname&&Ho("outbound_link",{event_category:"navigation",event_label:n.hostname,link_path:n.pathname.slice(0,160)})}catch{}});var Xle=Symbol.for("react.lazy"),iy=pv[" use ".trim().toString()];function Qle(e){return typeof e=="object"&&e!==null&&"then"in e}function O9(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xle&&"_payload"in e&&Qle(e._payload)}function I9(e){const t=Zle(e),r=S.forwardRef((n,i)=>{let{children:a,...o}=n;O9(a)&&typeof iy=="function"&&(a=iy(a._payload));const l=S.Children.toArray(a),u=l.find(ece);if(u){const d=u.props.children,m=l.map(h=>h===u?S.Children.count(d)>1?S.Children.only(null):S.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:i,children:S.isValidElement(d)?S.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var R9=I9("Slot");function Zle(e){const t=S.forwardRef((r,n)=>{let{children:i,...a}=r;if(O9(i)&&typeof iy=="function"&&(i=iy(i._payload)),S.isValidElement(i)){const o=rce(i),l=tce(a,i.props);return i.type!==S.Fragment&&(l.ref=n?Wd(n,o):o),S.cloneElement(i,l)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jle=Symbol("radix.slottable");function ece(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jle}function tce(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}
600:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function rce(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var nce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sce=nce.reduce((e,t)=>{const r=I9(`Primitive.${t}`),n=S.forwardRef((i,a)=>{const{asChild:o,...l}=i,u=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(u,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ice="Label",M9=S.forwardRef((e,t)=>s.jsx(sce.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));M9.displayName=ice;var D9=M9;const ace=zd("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ze=S.forwardRef(({className:e,...t},r)=>s.jsx(D9,{ref:r,className:Fe(ace(),e),...t}));Ze.displayName=D9.displayName;const oce=Ooe,L9=S.createContext({}),ih=({...e})=>s.jsx(L9.Provider,{value:{name:e.name},children:s.jsx(Eoe,{...e})}),Uv=()=>{const e=S.useContext(L9),t=S.useContext($9),{getFieldState:r,formState:n}=_oe(),i=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},$9=S.createContext({}),xu=S.forwardRef(({className:e,...t},r)=>{const n=S.useId();return s.jsx($9.Provider,{value:{id:n},children:s.jsx("div",{ref:r,className:Fe("space-y-2",e),...t})})});xu.displayName="FormItem";const lce=S.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:i}=Uv();return s.jsx(Ze,{ref:r,className:Fe(n&&"text-destructive",e),htmlFor:i,...t})});lce.displayName="FormLabel";const yu=S.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:i,formMessageId:a}=Uv();return s.jsx(R9,{ref:t,id:n,"aria-describedby":r?`${i} ${a}`:`${i}`,"aria-invalid":!!r,...e})});yu.displayName="FormControl";const cce=S.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=Uv();return s.jsx("p",{ref:r,id:n,className:Fe("text-sm text-muted-foreground",e),...t})});cce.displayName="FormDescription";const vu=S.forwardRef(({className:e,children:t,...r},n)=>{const{error:i,formMessageId:a}=Uv(),o=i?String((i==null?void 0:i.message)??""):t;return o?s.jsx("p",{ref:n,id:a,className:Fe("text-sm font-medium text-destructive",e),...r,children:o}):null});vu.displayName="FormMessage";const Je=S.forwardRef(({className:e,type:t,...r},n)=>s.jsx("input",{type:t,className:Fe("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}));Je.displayName="Input";const uce=zd("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"},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"}}),pe=S.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?R9:"button";return s.jsx(o,{className:Fe(uce({variant:t,size:r,className:e})),ref:a,...i})});pe.displayName="Button";const dce={url:"https://calendly.com/rebel-rebelhq/1-2-1-latif"},fce=({text:e="Book Strategy Session",className:t,variant:r="primary",size:n="md"})=>{const i="inline-flex items-center justify-center gap-2 font-medium transition-all duration-300 rounded-lg",a={primary:"bg-primary hover:bg-primary/90 text-white shadow-lg hover:shadow-xl",secondary:"bg-secondary hover:bg-secondary/90 text-white shadow-lg hover:shadow-xl",outline:"border-2 border-primary text-primary hover:bg-primary hover:text-white"},o={sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-lg"},l=()=>{const m=(window.innerWidth-1e3)/2,h=(window.innerHeight-680)/2;window.open(dce.url,"calendly-popup",`width=1000,height=680,left=${m},top=${h},toolbar=0,scrollbars=0,status=0,resizable=0,location=0,menuBar=0`)};return s.jsxs("button",{onClick:l,className:Fe(i,a[r],o[n],t),children:[s.jsx(Sa,{className:Fe(n==="sm"?"w-4 h-4":n==="md"?"w-5 h-5":"w-6 h-6")}),e]})},hce=Sle({email:sh().email({message:"Please enter a valid email address"}),firstName:sh().min(2,{message:"First name is required"}),lastName:sh().min(2,{message:"Last name is required"}),company:sh().optional(),referredBy:sh().email().optional().or(kle(""))}),bP=()=>{const{toast:e}=fs(),[t,r]=S.useState(!1),n=Hoe({resolver:Xoe(hce),defaultValues:{email:"",firstName:"",lastName:"",company:"",referredBy:""}}),i=async a=>{try{await ss("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:a.firstName,lastName:a.lastName,email:a.email,company:a.company||"Not provided",website:"",monthlyRevenue:"",message:"Website contact form submission",referredBy:a.referredBy||ap()})}),r(!0),e({title:"Message received.",description:"We will follow up about the right next step."}),n.reset()}catch{e({title:"Something went wrong",description:"Please try again later.",variant:"destructive"})}};return s.jsx("section",{id:"contact",className:"pr-section border-y border-white/10 bg-white/[0.02]",children:s.jsx("div",{className:"pr-container",children:s.jsxs("div",{className:"grid gap-6 lg:grid-cols-2",children:[s.jsxs(st.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"pr-card p-7 md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-lg border border-white/10 bg-white/[0.04] text-[var(--pr-cyan)]",children:s.jsx(Sa,{className:"h-6 w-6"})}),s.jsx("h2",{className:"mt-6 text-2xl font-semibold text-white",children:"Book the conversation"}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[var(--pr-muted)]",children:"A focused call about your current GTM reality: target market, offer, channels, stack, activity, team capacity, and the first pipeline motion worth building."}),s.jsx("div",{className:"mt-7",children:s.jsx(fce,{text:"Book a Conversation",variant:"primary",size:"lg",className:"w-full bg-[var(--pr-cyan)] text-[#061016] hover:bg-[#2bd5e7]"})})]}),s.jsxs(st.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.08},className:"pr-card p-7 md:p-8",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-lg border border-white/10 bg-white/[0.04] text-[var(--pr-green)]",children:s.jsx(Zu,{className:"h-6 w-6"})}),s.jsx("h2",{className:"mt-6 text-2xl font-semibold text-white",children:"Send a note"}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[var(--pr-muted)]",children:"For GTM services, outbound systems, event support, content-led GTM, GTM engineering, partnerships, or related business questions, send the inquiry here."}),t?s.jsxs("div",{className:"mt-7 rounded-lg border border-[rgba(66,215,125,0.32)] bg-[rgba(66,215,125,0.08)] p-5",children:[s.jsx("h3",{className:"font-semibold text-white",children:"Message received."}),s.jsx("p",{className:"mt-2 text-sm text-[var(--pr-muted)]",children:"We will review the GTM context and come back with the cleanest next step."})]}):s.jsx(oce,{...n,children:s.jsxs("form",{onSubmit:n.handleSubmit(i),className:"mt-7 space-y-4",children:[s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(ih,{control:n.control,name:"firstName",render:({field:a})=>s.jsxs(xu,{children:[s.jsx(yu,{children:s.jsx(Je,{placeholder:"First name",...a,className:"border-white/10 bg-white/[0.04] text-white placeholder:text-[var(--pr-faint)]"})}),s.jsx(vu,{})]})}),s.jsx(ih,{control:n.control,name:"lastName",render:({field:a})=>s.jsxs(xu,{children:[s.jsx(yu,{children:s.jsx(Je,{placeholder:"Last name",...a,className:"border-white/10 bg-white/[0.04] text-white placeholder:text-[var(--pr-faint)]"})}),s.jsx(vu,{})]})})]}),s.jsx(ih,{control:n.control,name:"email",render:({field:a})=>s.jsxs(xu,{children:[s.jsx(yu,{children:s.jsx(Je,{type:"email",placeholder:"Email address",...a,className:"border-white/10 bg-white/[0.04] text-white placeholder:text-[var(--pr-faint)]"})}),s.jsx(vu,{})]})}),s.jsx(ih,{control:n.control,name:"company",render:({field:a})=>s.jsxs(xu,{children:[s.jsx(yu,{children:s.jsx(Je,{placeholder:"Company (optional)",...a,className:"border-white/10 bg-white/[0.04] text-white placeholder:text-[var(--pr-faint)]"})}),s.jsx(vu,{})]})}),s.jsx(ih,{control:n.control,name:"referredBy",render:({field:a})=>s.jsxs(xu,{children:[s.jsx(yu,{children:s.jsx(Je,{type:"email",placeholder:"Referred by email (optional)",...a,className:"border-white/10 bg-white/[0.04] text-white placeholder:text-[var(--pr-faint)]"})}),s.jsx(vu,{})]})}),s.jsxs(pe,{type:"submit",className:"w-full bg-white text-[#061016] hover:bg-white/90",children:["Send Inquiry",s.jsx(Zu,{className:"ml-2 h-4 w-4"})]})]})})]})]})})})},mce=()=>{S.useEffect(()=>{document.title="How It Works - GTM Engineering Process | Pipeline Rebel",window.scrollTo(0,0)},[]);const e=[{number:1,title:"STRATEGIC DISCOVERY",subtitle:"We don't start with tactics - we start with strategy",duration:"Week 1",icon:kn,description:"Deep-dive collaborative session to understand your unique market position, competitive landscape, and ideal customer profile.",activities:["ICP analysis using 100+ data points and market intelligence","Competitive positioning assessment and differentiation mapping","Buyer journey analysis and stakeholder committee identification","Message architecture development based on real customer pain points","Channel strategy development for your specific market"],outcome:"Custom sales development blueprint tailored to your business"},{number:2,title:"GTM SYSTEM DEVELOPMENT",subtitle:"Technology amplifies human expertise",duration:"Weeks 2-4",icon:pa,description:"Our senior GTM experts design custom outreach systems while technology handles research and development tasks.",activities:["Expert-driven prospect research analyzing growth signals and pain points","Multi-channel sequence development with optimal timing algorithms","Message personalization using company intelligence, not just variables","Brand protection protocols ensuring message quality and consistency","CRM integration and workflow automation setup"],outcome:"Systematic revenue engine delivering consistent pipeline growth"},{number:3,title:"QUALIFIED REVENUE DELIVERY",subtitle:"Meetings that convert to revenue",duration:"Ongoing",icon:Ri,description:"Continuous delivery of pre-qualified meetings with detailed prospect briefings and strategic follow-up recommendations.",activities:["8-12 strategic meetings per month with decision-makers","Detailed prospect briefings including pain points and buying timeline","Meeting-to-opportunity conversion improvement (60% higher than 
600industry average)","Pipeline forecasting and revenue attribution tracking","Continuous improvement based on market feedback and performance data"],outcome:"Predictable revenue pipeline enabling accurate growth forecasting"}],t=[{traditional:"Generic templates across all clients",pipelineRebel:"Custom messaging frameworks per client"},{traditional:"Junior account managers with 6 months experience",pipelineRebel:"Senior sales development experts with 10+ years"},{traditional:"Activity metrics: emails sent, calls made",pipelineRebel:"Revenue metrics: strategic meetings, opportunities created"},{traditional:"One-size-fits-all automation sequences",pipelineRebel:"Strategically engineered timing and personalization per prospect"},{traditional:"Basic email finder tools",pipelineRebel:"Advanced prospect intelligence with 100+ data points"}],r=[{metric:"15+ hours",description:"Leadership time reclaimed weekly"},{metric:"8-12",description:"Strategic meetings monthly"},{metric:"60%",description:"Higher conversion rates"},{metric:"30-40%",description:"Cost reduction vs internal SDRs"},{metric:"Zero",description:"Brand reputation risk"}],n=[{question:"How long does it take to start generating qualified meetings?",answer:"Most clients see their first qualified meetings within 30 days of onboarding. Our 3-step process ensures rapid deployment: Week 1 is Strategic Discovery, Weeks 2-4 are GTM System Development, and by Week 4 we're delivering qualified meetings consistently."},{question:"How many admin hours does Pipeline Rebel save per rep per week?",answer:"Our AI Sales Enablement System typically saves 6-8 admin hours per rep per week. This time is reclaimed from manual data entry, CRM updates, research tasks, and repetitive administrative work, allowing reps to focus on selling."},{question:"What makes Pipeline Rebel different from traditional SDR agencies?",answer:"Unlike traditional SDR agencies that use junior reps with generic templates, Pipeline Rebel uses senior GTM experts (10+ years experience) with custom messaging frameworks per client. We focus on revenue metrics (strategic meetings, opportunities created) rather than activity metrics (emails sent, calls made)."},{question:"How does AI Sales Enablement reduce errors and improve accuracy?",answer:"Our AI verification system reduces hallucinations and errors by 60-75% through a systematic 3-step verification process. This ensures all AI-generated content is accurate, on-brand, and professionally reviewed before reaching prospects."},{question:"What kind of ROI can I expect from Pipeline Rebel?",answer:"Clients typically see 30-40% cost reduction vs internal SDRs, 60% higher meeting-to-opportunity conversion rates, 8-12 strategic meetings per month with decision-makers, and leadership time savings of 15+ hours per week."}];return s.jsxs("div",{className:"pt-16",children:[s.jsx(Lr,{title:"How It Works - GTM Engineering Process | Pipeline Rebel",description:"Discover Pipeline Rebel's 3-step process: Strategic Discovery, GTM System Development, and Qualified Revenue Delivery. See how technology amplifies human expertise.",keywords:"how it works, GTM engineering, sales process, strategic discovery, revenue systems, strategic meetings, human expertise",canonicalUrl:"https://pipelinerebel.com/how-it-works",structuredData:{type:"FAQPage",data:{mainEntity:n.map(i=>({"@type":"Question",name:i.question,acceptedAnswer:{"@type":"Answer",text:i.answer}}))}}}),s.jsx("section",{className:"pt-16 pb-12",children:s.jsx("div",{className:"container max-w-4xl mx-auto px-6 text-center",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[s.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:["HOW ",s.jsx("span",{className:"text-gradient font-extrabold",children:"GTM ENGINEERING"})," WORKS"]}),s.jsx("p",{className:"text-xl text-white/80 mb-8 max-w-3xl mx-auto leading-relaxed",children:"Our proven 3-step process engineers manual outreach into systematic revenue generation through the optimal blend of technology and senior human expertise."}),s.jsx("div",{className:"bg-card/20 rounded-lg p-6 max-w-2xl mx-auto",children:s.jsx("p",{className:"text-lg text-white/90 font-medium",children:"From strategy session to qualified meetings in 30 days - no hiring, training, or management overhead required."})})]})})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-16",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["THE ",s.jsx("span",{className:"text-gradient font-extrabold",children:"3-STEP PROCESS"})]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"From initial strategy to ongoing pipeline delivery"})]}),s.jsx("div",{className:"space-y-20",children:e.map((i,a)=>s.jsxs(st.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:a*.2},viewport:{once:!0},className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-center ${a%2===1?"lg:grid-flow-col-dense":""}`,children:[s.jsxs("div",{className:`lg:col-span-8 ${a%2===1?"lg:col-start-5":""}`,children:[s.jsxs("div",{className:"flex items-center mb-6",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-primary/20 flex items-center justify-center mr-6",children:s.jsx("span",{className:"text-2xl font-bold text-primary",children:i.number})}),s.jsxs("div",{children:[s.jsx("div",{className:"bg-accent/20 px-3 py-1 rounded-full text-accent text-sm font-medium mb-2 inline-block",children:i.duration}),s.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-white",children:i.title}),s.jsx("p",{className:"text-lg text-primary font-medium",children:i.subtitle})]})]}),s.jsx("p",{className:"text-lg text-white/90 mb-6",children:i.description}),s.jsxs("div",{className:"bg-card/30 rounded-lg p-6 mb-6",children:[s.jsx("h4",{className:"text-lg font-bold text-white mb-4",children:"Key Activities:"}),s.jsx("ul",{className:"space-y-3",children:i.activities.map((o,l)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx(ts,{className:"h-5 w-5 text-accent mr-3 mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-white/80",children:o})]},l))})]}),s.jsx("div",{className:"bg-primary/10 rounded-lg p-4 border border-primary/20",children:s.jsxs("p",{className:"text-primary font-medium",children:[s.jsx("strong",{children:"Outcome:"})," ",i.outcome]})})]}),s.jsx("div",{className:`lg:col-span-4 flex justify-center ${a%2===1?"lg:col-start-1":""}`,children:s.jsx("div",{className:"w-40 h-40 rounded-full bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center",children:s.jsx("div",{className:"w-28 h-28 rounded-full bg-gradient-to-br from-primary/40 to-accent/40 flex items-center justify-center",children:s.jsx(i.icon,{className:"h-12 w-12 text-white"})})})})]},i.number))})]})}),s.jsx("section",{className:"py-16 bg-card/30",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-16",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["WHY ",s.jsx("span",{className:"text-gradient font-extrabold",children:"GTM ENGINEERING"})," WINS"]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"See how our approach compares to traditional agencies and automated tools"})]}),s.jsx("div",{className:"bg-background/60 rounded-xl p-8 border border-white/10",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-white/10",children:[s.jsx("th",{className:"text-left py-4 px-4 text-white/60 font-medium",children:"Traditional Ap
600proach"}),s.jsx("th",{className:"text-left py-4 px-4 text-primary font-bold",children:"Pipeline Rebel Approach"})]})}),s.jsx("tbody",{children:t.map((i,a)=>s.jsxs(st.tr,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:a*.1},viewport:{once:!0},className:"border-b border-white/5",children:[s.jsx("td",{className:"py-4 px-4 text-white/60",children:i.traditional}),s.jsx("td",{className:"py-4 px-4 text-primary font-medium",children:i.pipelineRebel})]},a))})]})})})]})}),s.jsx("section",{className:"py-16 bg-background",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-12",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["PROVEN ",s.jsx("span",{className:"text-gradient font-extrabold",children:"RESULTS"})]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"What B2B tech leaders achieve with GTM engineering"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-6",children:r.map((i,a)=>s.jsxs(st.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:a*.1},viewport:{once:!0},className:"bg-card/30 rounded-xl p-6 text-center border border-white/10",children:[s.jsx("div",{className:"text-3xl md:text-4xl font-bold text-primary mb-2",children:i.metric}),s.jsx("p",{className:"text-white/80 text-sm",children:i.description})]},a))})]})}),s.jsx("section",{className:"py-16 bg-card/30",children:s.jsx("div",{className:"container max-w-4xl mx-auto px-6 text-center",children:s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6 text-white",children:["READY TO ESCAPE THE ",s.jsx("span",{className:"text-gradient font-extrabold",children:"ADMIN TRAP?"})]}),s.jsx("p",{className:"text-xl text-white/80 mb-8 max-w-2xl mx-auto",children:"Join B2B tech leaders who've reclaimed 15+ hours weekly while building predictable pipeline systems."}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsx(Oi,{className:"h-6 w-6 text-primary mr-2"}),s.jsx("span",{className:"text-white/90",children:"30-day launch timeline"})]}),s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsx(kn,{className:"h-6 w-6 text-primary mr-2"}),s.jsx("span",{className:"text-white/90",children:"Senior expert team"})]}),s.jsxs("div",{className:"flex items-center justify-center",children:[s.jsx(jv,{className:"h-6 w-6 text-primary mr-2"}),s.jsx("span",{className:"text-white/90",children:"Performance-based pricing"})]})]})]})})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container max-w-4xl mx-auto px-6",children:[s.jsx(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-12",children:s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["FREQUENTLY ASKED ",s.jsx("span",{className:"text-gradient font-extrabold",children:"QUESTIONS"})]})}),s.jsx("div",{className:"space-y-4",children:n.map((i,a)=>s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:a*.1},viewport:{once:!0},className:"bg-card/30 rounded-xl p-6 border border-white/10",children:[s.jsx("h3",{className:"text-lg font-semibold text-white mb-3",children:i.question}),s.jsx("p",{className:"text-white/70 leading-relaxed",children:i.answer})]},a))})]})}),s.jsx(bP,{})]})},pce=()=>{S.useEffect(()=>{document.title="The GTM Engineering Approach | Pipeline Rebel",window.scrollTo(0,0)},[]);const e=[{title:"The Disconnected Tools Problem",icon:Oi,problems:["Teams switching between 7+ different platforms daily","Manual data entry eating 3+ hours of productive time","Critical intelligence lost between system handoffs","Decision fatigue from managing tool chaos instead of strategy"],cost:"65% productivity loss"},{title:"The Talent Inefficiency Crisis",icon:Ri,problems:["Brilliant salespeople doing manual data entry","Strategic thinkers buried in repetitive tasks","Senior talent managing tools instead of relationships","High performers burning out on busywork"],cost:"$500K+ annual talent loss"},{title:"The Automation Failure",icon:jv,problems:["Robotic outreach that damages your brand","Zero human judgment in complex B2B sales","Generic automation that ignores context","Technology without strategy equals noise"],cost:"70% lower conversion rates"}],t=[{number:1,title:"STRATEGIC FOUNDATION",description:"We don't start with tactics. We start with strategy.",details:["Deep-dive discovery into your ideal customer profile using 100+ data points","Competitive intelligence analysis to understand positioning gaps","Message architecture development based on actual buyer pain points","Multi-stakeholder mapping for complex B2B buying committees"],differentiator:"Unlike agencies that use generic templates, we build custom messaging frameworks specific to your market position and competitive advantage."},{number:2,title:"TECHNOLOGY-ENHANCED EXECUTION",description:"Technology handles what technology does best.",details:["Prospect research analyzing company growth signals, hiring patterns, and funding events","Optimal timing algorithms based on industry buying cycles and stakeholder availability","Message personalization using real company intelligence, not just {first_name} variables","Multi-channel sequence development across email, LinkedIn, and phone"],differentiator:"Our technology doesn't replace human judgment—it amplifies it. Every data point informs strategic decisions made by senior sales experts."},{number:3,title:"SENIOR HUMAN EXPERTISE",description:"Humans handle what humans do best: strategy and relationships.",details:["Strategic messaging crafted by sales development experts with 10+ years experience","Relationship building that understands complex B2B buying dynamics","Quality control ensuring every message protects and enhances your brand","Continuous improvement based on market feedback and competitive intelligence"],differentiator:"Your prospects interact with senior professionals who understand enterprise sales, not junior SDRs learning on your prospects."},{number:4,title:"QUALIFIED PIPELINE DELIVERY",description:"Results that actually convert to revenue.",details:["Pre-qualified meetings with decision-makers who match your ICP","Detailed prospect briefings including pain points, budget authority, and buying timeline","Meeting-to-opportunity conversion rates 60% higher than 
600industry average","Pipeline predictability enabling accurate revenue forecasting"],differentiator:"We're measured on meetings that convert to opportunities, not just activity metrics. Your success is our success."}],r=[{metric:"65%",description:"productivity gains for your team"},{metric:"8-12",description:"qualified meetings delivered monthly"},{metric:"60%",description:"higher meeting-to-opportunity conversion"},{metric:"30-40%",description:"cost reduction vs internal SDRs"},{metric:"Zero",description:"time lost to manual processes"}];return s.jsxs("div",{className:"pt-16",children:[s.jsx(Lr,{title:"The GTM Engineering Approach | Pipeline Rebel",description:"Discover how Pipeline Rebel's GTM engineering approach makes your people brilliant through intelligent systems. Stop choosing between robotic automation and expensive manual processes.",keywords:"sales development approach, GTM engineering, outreach system, founder time, human expertise, sales automation, revenue systems",canonicalUrl:"https://pipelinerebel.com/approach"}),s.jsx("section",{className:"pt-16 pb-12 bg-gradient-to-b from-background/80 to-background",children:s.jsx("div",{className:"container max-w-4xl mx-auto px-6 text-center",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[s.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:["THE ",s.jsx("span",{className:"text-gradient font-extrabold",children:"GTM ENGINEERING"})," APPROACH"]}),s.jsx("p",{className:"text-xl text-white/80 mb-8 max-w-3xl mx-auto leading-relaxed",children:"While others force you to choose between robotic automation that damages your brand or expensive human teams that don't scale, we engineer GTM systems intelligently."}),s.jsxs("div",{className:"bg-card/20 rounded-lg p-6 max-w-2xl mx-auto",children:[s.jsxs("p",{className:"text-lg text-white/90 font-medium",children:[s.jsx("span",{className:"text-primary",children:"The Problem:"})," Brilliant teams lose 65% of their capacity fighting broken systems instead of driving growth."]}),s.jsxs("p",{className:"text-lg text-white/90 font-medium mt-2",children:[s.jsx("span",{className:"text-accent",children:"Our Approach:"})," Technology amplification + human expertise = revenue systems that actually convert."]})]})]})})}),s.jsx("section",{className:"py-16 bg-card/30",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-12",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["THE ",s.jsx("span",{className:"text-gradient font-extrabold",children:"BROKEN GTM PROBLEM"})]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Every B2B company faces the same challenge: brilliant people trapped by broken processes."})]}),s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:e.map((n,i)=>s.jsxs(st.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:i*.2},viewport:{once:!0},className:"bg-background/60 rounded-xl p-6 border border-white/10",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx(n.icon,{className:"h-8 w-8 text-primary mr-3"}),s.jsx("h3",{className:"text-xl font-bold text-white",children:n.title})]}),s.jsx("ul",{className:"space-y-3 mb-6",children:n.problems.map((a,o)=>s.jsxs("li",{className:"flex items-start text-white/80",children:[s.jsx("div",{className:"w-2 h-2 bg-accent rounded-full mr-3 mt-2 flex-shrink-0"}),s.jsx("span",{className:"text-sm",children:a})]},o))}),s.jsx("div",{className:"bg-primary/10 rounded-lg p-3 border border-primary/20",children:s.jsxs("p",{className:"text-primary font-bold text-sm",children:["Annual Impact: ",n.cost]})})]},i))})]})}),s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-16",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["HOW ",s.jsx("span",{className:"text-gradient font-extrabold",children:"GTM ENGINEERING"})," WORKS"]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Technology handles data analysis and timing intelligence. Humans handle strategy and relationship building. Together, they create revenue systems that convert."})]}),s.jsx("div",{className:"space-y-16",children:t.map((n,i)=>s.jsxs(st.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:i*.2},viewport:{once:!0},className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-center ${i%2===1?"lg:grid-flow-col-dense":""}`,children:[s.jsxs("div",{className:`lg:col-span-8 ${i%2===1?"lg:col-start-5":""}`,children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center mr-4",children:s.jsx("span",{className:"text-2xl font-bold text-primary",children:n.number})}),s.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-white",children:n.title})]}),s.jsx("p",{className:"text-lg text-white/90 mb-6",children:n.description}),s.jsx("ul",{className:"space-y-3 mb-6",children:n.details.map((a,o)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx(ts,{className:"h-5 w-5 text-accent mr-3 mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-white/80",children:a})]},o))}),s.jsx("div",{className:"bg-accent/10 rounded-lg p-4 border border-accent/20",children:s.jsxs("p",{className:"text-accent font-medium",children:[s.jsx("strong",{children:"The Difference:"})," ",n.differentiator]})})]}),s.jsx("div",{className:`lg:col-span-4 flex justify-center ${i%2===1?"lg:col-start-1":""}`,children:s.jsx("div",{className:"w-32 h-32 rounded-full bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center",children:s.jsx("div",{className:"w-20 h-20 rounded-full bg-gradient-to-br from-primary/40 to-accent/40 flex items-center justify-center",children:s.jsx(pa,{className:"h-10 w-10 text-white"})})})})]},n.number))})]})}),s.jsx("section",{className:"py-16 bg-card/30",children:s.jsxs("div",{className:"container max-w-6xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},viewport:{once:!0},className:"text-center mb-12",children:[s.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4 text-white",children:["PROVEN ",s.jsx("span",{className:"text-gradient font-extrabold",children:"RESULTS"})]}),s.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"What happens when technology amplification meets senior human expertise"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 ga
600p-6",children:r.map((n,i)=>s.jsxs(st.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:i*.1},viewport:{once:!0},className:"bg-background/60 rounded-xl p-6 text-center border border-white/10",children:[s.jsx("div",{className:"text-3xl md:text-4xl font-bold text-primary mb-2",children:n.metric}),s.jsx("p",{className:"text-white/80 text-sm",children:n.description})]},i))})]})}),s.jsx(bP,{})]})},wP=[{id:"salessidekick-v4-upgrade-path",title:"SalesSidekick V4: From Asking AI Questions to an AI That Already Knows",displayText:`V4
601UPGRADE`,excerpt:"Three levels of working with AI in sales, from blank chat to sales memory, account context, and repeatable seller workflows.",date:"March 26, 2026",readTime:"7 min read",category:"Sales AI",slug:"salessidekick-v4-upgrade-path",type:"Product field note",audience:"Founders, sellers, and sales teams",canonicalSite:"sales-sidekick",canonicalUrl:"https://salessidekick.ai/resources",targetSites:["sales-sidekick"],status:"migrate",migrationNotes:"Move to SalesSidekick. Product-specific and should not remain a Pipeline Rebel resource.",image:Pt.images.ownTheMiddle},{id:"stop-ai-from-lying-to-you",title:"Stop AI From Lying To You: The 3-Step Verification System",displayText:`VERIFY
602AI`,excerpt:"A verification system for reducing hallucinations, improving source discipline, and making AI outputs safer for business work.",date:"November 25, 2025",readTime:"8 min read",category:"AI Trust",slug:"stop-ai-from-lying-to-you",type:"Reliability guide",audience:"Teams using AI for business work",canonicalSite:"sidekick-genius",canonicalUrl:"https://sidekickgenius.com/resources",targetSites:["sidekick-genius","sales-sidekick"],status:"rewrite",migrationNotes:"Broad trust topic. Rewrite for Sidekick Genius, with a sales-specific derivative if needed.",image:Pt.images.insideOperatingSystem},{id:"ai-token-trap-calculator",title:"AI Cost and Token Trap Calculator",displayText:`TOKEN
603COST`,excerpt:"A diagnostic for understanding where AI spend gets inflated by poor context, repeated setup, and weak workflow design.",date:"November 25, 2025",readTime:"7 min read",category:"AI Cost",slug:"ai-token-trap-calculator",type:"Calculator",audience:"Founders, operators, team leaders, and finance-aware AI buyers",canonicalSite:"sidekick-genius",canonicalUrl:"https://sidekickgenius.com/resources",targetSites:["sidekick-genius","sales-sidekick"],status:"rewrite",migrationNotes:"Cost is strategically important. Rewrite without unsupported savings promises.",image:Pt.images.ownershipLadder},{id:"pipeline-leak-diagnostic",title:"Pipeline Leak Diagnostic",displayText:`PIPELINE
604LEAKS`,excerpt:"A diagnostic for finding where pipeline slips between targeting, outreach, follow-up, stage conversion, and founder or sales-team execution.",date:"November 25, 2025",readTime:"9 min read",category:"GTM Diagnostics",slug:"pipeline-leak-diagnostic",type:"Diagnostic",audience:"Startup and scaleup GTM leaders",canonicalSite:"pipeline-rebel",canonicalUrl:"https://pipelinerebel.com/blog/pipeline-leak-diagnostic",targetSites:["pipeline-rebel","sales-sidekick"],status:"rewrite",migrationNotes:"Keep a GTM services version on Pipeline Rebel. Create a sales workflow proof version for SalesSidekick later.",image:Pt.images.fiveWallsMoat},{id:"linkedin-algorithm-exploit",title:"LinkedIn Reach And Content-Led GTM",displayText:`CONTENT
605GTM`,excerpt:"A content-led GTM resource for turning market insight, founder POV, and distribution discipline into pipeline.",date:"November 25, 2025",readTime:"8 min read",category:"Content-Led GTM",slug:"linkedin-algorithm-exploit",type:"Demand generation",audience:"Founders and GTM leaders building content-led pipeline",canonicalSite:"pipeline-rebel",canonicalUrl:"https://pipelinerebel.com/blog/linkedin-algorithm-exploit",targetSites:["pipeline-rebel"],status:"rewrite",migrationNotes:"Keep under Pipeline Rebel but soften the old exploit framing in surrounding page copy.",image:Pt.images.spaghettiSandwich},{id:"rep-productivity-calculator",title:"Rep Productivity Calculator",displayText:`SELLER
606TIME`,excerpt:"Estimate how much seller time is lost to admin, tool switching, meeting prep, closeout, and CRM hygiene.",date:"November 25, 2025",readTime:"8 min read",category:"Sales Productivity",slug:"rep-productivity-calculator",type:"Calculator",audience:"Sales leaders and GTM operators",canonicalSite:"sales-sidekick",canonicalUrl:"https://salessidekick.ai/resources",targetSites:["sales-sidekick","pipeline-rebel"],status:"rewrite",migrationNotes:"SalesSidekick canonical. Pipeline Rebel can use a GTM services derivative about capacity and operating model.",image:Pt.images.thirtyDaySprint},{id:"sales-tech-scam-analysis",title:"Sales Tech Fragmentation Analysis",displayText:`SALES
607TECH`,excerpt:"A practical look at tool sprawl, adoption failure, disconnected workflows, and the work needed to make a GTM stack useful.",date:"November 25, 2025",readTime:"12 min read",category:"GTM Engineering",slug:"sales-tech-scam-analysis",type:"Analysis",audie
607nce:"Sales leaders, revenue leaders, and GTM operators",canonicalSite:"sales-sidekick",canonicalUrl:"https://salessidekick.ai/resources",targetSites:["sales-sidekick","pipeline-rebel"],status:"rewrite",migrationNotes:"SalesSidekick canonical with a Pipeline Rebel GTM engineering derivative.",image:Pt.images.ownTheMiddle},{id:"ai-quota-killer-guide",title:"Is AI Silently Killing Your Team's Quota?",displayText:`AI
608QUOTA`,excerpt:"A sales-specific guide to AI rework, verification, and workflow quality in quota-carrying teams.",date:"November 25, 2025",readTime:"7 min read",category:"Sales AI",slug:"ai-quota-killer-guide",type:"Sales guide",audience:"Sales leaders and revenue teams",canonicalSite:"sales-sidekick",canonicalUrl:"https://salessidekick.ai/resources",targetSites:["sales-sidekick"],status:"migrate",migrationNotes:"Move to SalesSidekick. Sales-specific.",image:Pt.images.insideOperatingSystem},{id:"ai-hallucination-prevention",title:"AI Hallucination Prevention",displayText:`AI
609TRUST`,excerpt:"A practical system for reducing unsupported claims and improving trust in AI-assisted work.",date:"November 25, 2025",readTime:"9 min read",category:"AI Trust",slug:"ai-hallucination-prevention",type:"Reliability guide",audience:"Teams using AI for business work",canonicalSite:"sidekick-genius",canonicalUrl:"https://sidekickgenius.com/resources",targetSites:["sidekick-genius","sales-sidekick"],status:"rewrite",migrationNotes:"Broad trust topic. Rewrite for Sidekick Genius and adapt sales examples separately.",image:Pt.images.fiveWallsMoat},{id:"ai-team-assessment",title:"AI Team Assessment",displayText:`TEAM
610AI`,excerpt:"A capability-gap assessment for teams that have AI access but uneven skill, adoption, and workflow quality.",date:"November 25, 2025",readTime:"10 min read",category:"AI Capability",slug:"ai-team-assessment",type:"Assessment",audience:"Team leaders standardizing AI-assisted work",canonicalSite:"sidekick-genius",canonicalUrl:"https://sidekickgenius.com/resources",targetSites:["sidekick-genius","sales-sidekick"],status:"rewrite",migrationNotes:"Broad capability topic. Create a sales-team derivative for SalesSidekick if useful.",image:Pt.images.ownershipLadder},{id:"rep-productivity-revenue-loss",title:"Sales Capacity And The Cost Of Tool Stitching",displayText:`GTM
611CAPACITY`,excerpt:"Why revenue teams lose selling time when people become the glue between disconnected tools, handoffs, and operating rhythms.",date:"October 7, 2025",readTime:"10 min read",category:"GTM Operations",slug:"rep-productivity-revenue-loss",type:"Field note",audience:"Sales leaders and GTM leaders managing capacity",canonicalSite:"sales-sidekick",canonicalUrl:"https://salessidekick.ai/resources",targetSites:["sales-sidekick","pipeline-rebel"],status:"rewrite",migrationNotes:"SalesSidekick canonical. Pipeline Rebel can use a services derivative around GTM operating capacity.",image:Pt.images.thirtyDaySprint},{id:"state-of-sales-tech-analysis",title:"The State Of Sales Tech And GTM Execution",displayText:`GTM
612STACK`,excerpt:"An unflinching look at tool overload, AI washing, integration chaos, and what needs to change in the GTM operating model.",date:"October 5, 2025",readTime:"15 min read",category:"GTM Engineering",slug:"state-of-sales-tech-analysis",type:"Analysis",audience:"GTM leaders, revenue operators, and founders",canonicalSite:"pipeline-rebel",canonicalUrl:"https://pipelinerebel.com/blog/state-of-sales-tech-analysis",targetSites:["pipeline-rebel","sales-sidekick"],status:"rewrite",migrationNotes:"Keep a GTM engineering version on Pipeline Rebel. SalesSidekick can own the sales-team version.",image:Pt.images.spaghettiSandwich},{id:"ai-performance-gap",title:"The AI Performance Gap",displayText:`AI
613GAP`,excerpt:"Why some people get much more leverage from AI than others, and how teams can close the capability gap through better workflows.",date:"September 25, 2025",readTime:"14 min read",category:"AI Capability",slug:"ai-performance-gap",type:"Assessment",audience:"Team leaders closing AI capability gaps",canonicalSite:"sidekick-genius",canonicalUrl:"https://sidekickgenius.com/resources",targetSites:["sidekick-genius","sales-sidekick"],status:"rewrite",migrationNotes:"Broad capability topic. Rewrite under Sidekick Genius first.",image:Pt.images.ownershipLadder}],F9=e=>wP.filter(t=>t.targetSites.includes(e)&&t.status!=="archive"),Hv=wP.filter(e=>e.targetSites.includes("pipeline-rebel")&&["pipeline-rebel","sales-sidekick"].includes(e.canonicalSite)&&e.id!=="salessidekick-v4-upgrade-path"),gce=Hv.filter(e=>["pipeline-leak-diagnostic","linkedin-algorithm-exploit","sales-tech-scam-analysis","state-of-sales-tech-analysis","rep-productivity-revenue-loss"].includes(e.id)),xce=[{id:"pipeline-leak-diagnostic",icon:tC},{id:"linkedin-algorithm-exploit",icon:Ud},{id:"sales-tech-scam-analysis",icon:Ix},{id:"state-of-sales-tech-analysis",icon:Ni},{id:"rep-productivity-revenue-loss",icon:RB}].map(e=>{const t=gce.find(r=>r.id===e.id);if(!t)throw new Error(`Missing Pipeline Rebel resource: ${e.id}`);return{...t,icon:e.icon,url:`/blog/${t.slug}`}}),yce=()=>(S.useEffect(()=>{document.title="Resources | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"Resources | Pipeline Rebel",description:"Pipeline Rebel resources on GTM engineering, outsourced GTM, outbound systems, events, content-led GTM, and pipeline execution.",keywords:"GTM resources, outsourced GTM, GTM engineering, outbound systems, pipeline diagnostic, Pipeline Rebel",canonicalUrl:"https://pipelinerebel.com/resources",ogImage:Pt.images.socialPreview}),s.jsx("section",{className:"relative overflow-hidden py-20 md:py-24",children:s.jsxs("div",{className:"pr-container grid items-center gap-12 lg:grid-cols-[0.8fr_1.2fr]",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Resources"}),s.jsx("h1",{className:"mt-5 text-4xl font-semibold leading-tight text-white md:text-6xl",children:"Field notes for building pipeline when the team cannot afford GTM drift."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)]",children:"Practical resources for outbound systems, content-led GTM, event follow-up, lead generation, GTM engineering, and the work needed to turn activity into qualified pipeline."})]}),s.jsx(lc,{src:Pt.images.ownTheMiddle,alt:"Pipeline Rebel resources visual",caption:"The strongest GTM resources make the next pipeline move easier to execute, not just easier to discu
613ss."})]})}),s.jsx(Ar,{children:s.jsx("div",{className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:xce.map(e=>{const t=e.icon;return s.jsx(xe,{href:e.url,children:s.jsxs("article",{className:"pr-card group h-full cursor-pointer overflow-hidden transition-colors hover:border-white/20",children:[s.jsx("div",{className:"aspect-[16/9] overflow-hidden border-b border-white/10",children:s.jsx("img",{src:e.image,alt:"",loading:"lazy",className:"h-full w-full object-cover opacity-80 transition-transform duration-500 group-hover:scale-[1.03]"})}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold uppercase text-[var(--pr-faint)]",children:[s.jsx(t,{className:"h-4 w-4 text-[var(--pr-cyan)]"}),e.type]}),s.jsx("h2",{className:"mt-4 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.excerpt}),s.jsxs("div",{className:"mt-5 inline-flex items-center gap-2 text-sm font-semibold text-[var(--pr-cyan)]",children:["Open resource",s.jsx(Ft,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})},e.id)})})}),s.jsx(Ar,{className:"pb-28",children:s.jsxs("div",{className:"pr-card grid gap-6 p-8 md:grid-cols-[1fr_auto] md:items-center",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Full Archive"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white",children:"Browse the GTM field notes."}),s.jsx("p",{className:"mt-3 text-[var(--pr-muted)]",children:"The Pipeline Rebel archive is now focused on GTM services and execution. Product-specific context engineering content belongs on SalesSidekick and Sidekick Genius."})]}),s.jsx(xe,{href:"/blog",children:s.jsx("span",{className:"pr-button-secondary cursor-pointer",children:"View Blog Archive"})})]})})]})),vce=()=>(S.useEffect(()=>{document.title="Book a Conversation | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"Book a Conversation | Pipeline Rebel",description:"Talk with Pipeline Rebel about outsourced GTM, fractional GTM, outbound systems, cold calling, event support, content-led GTM, and GTM engineering.",keywords:"Pipeline Rebel contact, GTM services, outsourced GTM, fractional GTM, outbound systems, cold calling, GTM engineering",canonicalUrl:"https://pipelinerebel.com/contact",ogImage:Pt.images.socialPreview}),s.jsx("section",{className:"relative overflow-hidden py-20 md:py-24",children:s.jsxs("div",{className:"pr-container max-w-4xl",children:[s.jsx(Cn,{children:"Book a Conversation"}),s.jsx("h1",{className:"mt-5 text-4xl font-semibold leading-tight text-white md:text-6xl",children:"Bring the pipeline problem you need solved first."}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"We will talk through your stage, market, offer, stack, current activity, internal capacity, and the GTM motion that should be built or operated first."})]})}),s.jsx(bP,{}),s.jsx(Ar,{className:"pb-28",children:s.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[s.jsxs("a",{href:"mailto:[email protected]",className:"pr-card block p-6 transition-colors hover:border-white/20",children:[s.jsx(xn,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h2",{className:"mt-5 text-xl font-semibold text-white",children:"Email"}),s.jsx("p",{className:"mt-2 text-sm text-[var(--pr-muted)]",children:"[email protected]"})]}),s.jsxs("a",{href:"https://linkedin.com/company/pipelinerebel",target:"_blank",rel:"noopener noreferrer",className:"pr-card block p-6 transition-colors hover:border-white/20",children:[s.jsx(rC,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h2",{className:"mt-5 text-xl font-semibold text-white",children:"LinkedIn"}),s.jsx("p",{className:"mt-2 text-sm text-[var(--pr-muted)]",children:"Pipeline Rebel"})]})]})})]})),Q2=Hv,bce=["All Categories",...Array.from(new Set(Q2.map(e=>e.category)))],wce=()=>{var o,l,u,d,m,h,p;const[e,t]=S.useState(""),[r,n]=S.useState("All Categories"),[i,a]=S.useState(Q2);return S.useEffect(()=>{document.title="Blog | Pipeline Rebel";const x=Q2.filter(w=>{const v=w.title.toLowerCase().includes(e.toLowerCase())||w.excerpt.toLowerCase().includes(e.toLowerCase()),y=r==="All Categories"||w.category===r;return v&&y});a(x)},[e,r]),s.jsxs("div",{className:"pt-28 pb-20",children:[s.jsx(Lr,{title:"Blog | Pipeline Rebel",description:"Pipeline Rebel field notes on GTM engineering, outsourced GTM, pipeline diagnostics, content-led GTM, outbound systems, and go-to-market execution.",keywords:"GTM engineering blog, outsourced GTM, fractional GTM, outbound systems, pipeline diagnostic, Pipeline Rebel",canonicalUrl:"https://pipelinerebel.com/blog",ogImage:Pt.images.socialPreview,structuredData:{type:"WebPage",data:{name:"Pipeline Rebel Blog & Resources",description:"Pipeline Rebel field notes on GTM engineering, outsourced GTM, and go-to-market execution.",url:"https://pipelinerebel.com/blog",mainEntity:{"@type":"Blog",headline:"Pipeline Rebel Field Notes",description:"Writing on GTM engineering, outsourced GTM, and practical go-to-market execution.",author:{"@type":"Organization",name:"Pipeline Rebel"},publisher:{"@type":"Organization",name:"Pipeline Rebel",logo:{"@type":"ImageObject",url:"https://pipelinerebel.com/logo.png"}},blogPost:i.slice(0,5).map(x=>
613({"@type":"BlogPosting",headline:x.title,description:x.excerpt,datePublished:x.date,author:{"@type":"Organization",name:"Pipeline Rebel"},publisher:{"@type":"Organization",name:"Pipeline Rebel"},url:`https://pipelinerebel.com/blog/${x.slug}`}))}}}}),s.jsxs("div",{className:"pr-container",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[s.jsx("p",{className:"pr-eyebrow mb-4",children:"Blog"}),s.jsx("h1",{className:"text-4xl md:text-5xl font-semibold text-white mb-4",children:"Field notes on GTM execution"}),s.jsx("p",{className:"text-xl text-[var(--pr-muted)] max-w-2xl mx-auto",children:"Practical writing on pipeline creation, GTM engineering, outbound systems, content-led GTM, events, and operating capacity."})]})}),s.jsxs("div",{className:"flex flex-col md:flex-row gap-4 mb-12",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Ud,{className:"absolute left-3 top-3 h-5 w-5 text-white/40"}),s.jsx("input",{type:"text",placeholder:"Search articles...",value:e,onChange:x=>t(x.target.value),className:"w-full bg-white/[0.04] border border-white/10 rounded-md py-2 pl-10 pr-4 text-white placeholder:text-[var(--pr-faint)] focus:outline-none focus:ring-2 focus:ring-[var(--pr-cyan)]/40 focus:border-transparent"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(eJ,{className:"absolute left-3 top-3 h-5 w-5 text-white/40"}),s.jsx("select",{value:r,onChange:x=>n(x.target.value),className:"bg-white/[0.04] border border-white/10 rounded-md py-2 pl-10 pr-12 text-white appearance-none focus:outline-none focus:ring-2 focus:ring-[var(--pr-cyan)]/40 focus:border-transparent cursor-pointer",children:bce.map(x=>s.jsx("option",{value:x,className:"bg-black text-white",children:x},x))}),s.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:s.jsx("svg",{className:"h-5 w-5 text-white/40",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),s.jsx("div",{className:"mb-16",children:s.jsx(xe,{href:`/blog/${((o=i[0])==null?void 0:o.slug)||"post"}`,children:s.jsx("div",{className:"group cursor-pointer pr-card overflow-hidden transition-all duration-300 hover:border-white/20",children:s.jsxs("div",{className:"md:flex",children:[s.jsxs("div",{className:"md:w-1/2 aspect-video bg-[var(--pr-panel)] flex flex-col items-center justify-center overflow-hidden p-8 relative",children:[s.jsx("div",{className:"absolute top-4 left-4 text-xs font-bold tracking-wider text-white/40",children:"GTM FIELD NOTE"}),s.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(0,194,215,0.12),transparent_55%)]"}),s.jsx("div",{className:"text-5xl md:text-7xl font-black leading-none relative z-10 text-center whitespace-pre-line",children:(l=i[0])!=null&&l.displayText?i[0].displayText.split(`
614`).map((x,w)=>s.jsx("span",{className:"block text-[var(--pr-cyan)]",children:x},w)):s.jsx("span",{className:"block text-[var(--pr-cyan)]",children:"NO POSTS"})})]}),s.jsxs("div",{className:"md:w-1/2 p-6 md:p-10 flex flex-col justify-center",children:[s.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[s.jsx("span",{className:"text-xs font-medium bg-[rgba(0,194,215,0.10)] text-[var(--pr-cyan)] py-1 px-2 rounded-full",children:((u=i[0])==null?void 0:u.category)||"Category"}),s.jsxs("span",{className:"text-white/60 text-xs flex items-center",children:[s.jsx(Sa,{className:"inline h-3 w-3 mr-1"}),((d=i[0])==null?void 0:d.date)||"Date"]}),s.jsxs("span",{className:"text-white/60 text-xs flex items-center",children:[s.jsx(Oi,{className:"inline h-3 w-3 mr-1"}),((m=i[0])==null?void 0:m.readTime)||"5 min read"]})]}),s.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-white mb-4 group-hover:text-[var(--pr-cyan)] transition-colors",children:((h=i[0])==null?void 0:h.title)||"Article Title"}),s.jsx("p",{className:"text-white/70 mb-6",children:((p=i[0])==null?void 0:p.excerpt)||"Article excerpt goes here..."}),s.jsxs("div",{className:"inline-flex items-center text-[var(--pr-cyan)] font-medium text-sm",children:["Read More",s.jsx("svg",{className:"ml-2 h-4 w-4 group-hover:translate-x-1 ",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})]})]})})})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.slice(1).map(x=>s.jsx(xe,{href:`/blog/${x.slug}`,children:s.jsxs(st.div,{initial:{opacity:0,y:20}
614,animate:{opacity:1,y:0},transition:{duration:.4},className:"group cursor-pointer pr-card overflow-hidden transition-all duration-300 h-full flex flex-col hover:border-white/20",children:[s.jsxs("div",{className:"aspect-video bg-[var(--pr-panel)] flex flex-col items-center justify-center overflow-hidden p-6 relative",children:[s.jsx("div",{className:"absolute top-3 left-3 text-[10px] font-bold tracking-wider text-white/30",children:"GTM FIELD NOTE"}),s.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(0,194,215,0.12),transparent_55%)]"}),s.jsx("div",{className:"text-4xl md:text-5xl font-black leading-none relative z-10 text-center whitespace-pre-line",children:x.displayText?x.displayText.split(`
615`).map((w,v)=>s.jsx("span",{className:"block text-[var(--pr-cyan)]",children:w},v)):s.jsx("span",{className:"block text-[var(--pr-cyan)]",children:"BLOG"})})]}),s.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[s.jsxs("div",{className:"flex items-center flex-wrap gap-y-2 gap-x-3 mb-3",children:[s.jsx("span",{className:"text-xs font-medium bg-[rgba(0,194,215,0.10)] text-[var(--pr-cyan)] py-0.5 px-2 rounded-full",children:x.category}),s.jsxs("span",{className:"text-white/60 text-xs flex items-center",children:[s.jsx(Sa,{className:"inline h-3 w-3 mr-1"}),x.date]}),s.jsxs("span",{className:"text-white/60 text-xs flex items-center",children:[s.jsx(Oi,{className:"inline h-3 w-3 mr-1"}),x.readTime]})]}),s.jsx("h3",{className:"text-xl font-semibold text-white mb-2 group-hover:text-[var(--pr-cyan)] transition-colors",children:x.title}),s.jsx("p",{className:"text-white/70 text-sm mb-4 flex-1",children:x.excerpt}),s.jsxs("div",{className:"inline-flex items-center text-[var(--pr-cyan)] font-medium text-sm",children:["Read More",s.jsx("svg",{className:"ml-2 h-4 w-4 group-hover:translate-x-1 ",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})]})]})},x.id))}),i.length===0&&s.jsxs("div",{className:"text-center py-16 bg-black/30 backdrop-blur-sm border border-white/10 rounded-lg mt-6",children:[s.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"No articles found"}),s.jsx("p",{className:"text-white/70",children:"Try adjusting your search or filter criteria"})]}),s.jsx("div",{className:"mt-20 pr-card p-8",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:"Stay Informed"}),s.jsx("p",{className:"text-white/70 mb-6",children:"Subscribe for practical notes on GTM engineering, outbound systems, content-led GTM, and pipeline execution."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[s.jsx("input",{type:"email",placeholder:"Your email address",className:"flex-1 bg-white/[0.04] border border-white/10 rounded-md py-3 px-4 text-white placeholder:text-[var(--pr-faint)] focus:outline-none focus:ring-2 focus:ring-[var(--pr-cyan)]/40 focus:border-transparent"}),s.jsx("button",{className:"bg-[var(--pr-cyan)] hover:bg-[#2bd5e7] text-[#061016] font-semibold py-3 px-6 rounded-md transition-colors",children:"Subscribe"})]})]})})]})]})},jce=({children:e,title:t,date:r,author:n,authorTitle:i="Founder & CEO",estimatedReadTime:a="5 min read",category:o="Sales Development",backLink:l="/blog",backLinkText:u="Back to Resources"})=>s.jsx("div",{className:"bg-background",children:s.jsxs("div",{className:"container max-w-4xl mx-auto px-6 pt-32 pb-20",children:[s.jsx(xe,{href:l,children:s.jsxs("div",{className:"flex items-center text-white/70 hover:text-white transition-colors mb-8 cursor-pointer",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),s.jsx("span",{children:u})]})}),s.jsxs("div",{className:"mb-12",children:[s.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[s.jsx("span",{className:"text-sm font-medium bg-cyan-500/20 text-cyan-400 py-1 px-3 rounded-full",children:o}),s.jsx("span",{className:"text-white/60 text-sm",children:r}),s.jsx("span",{className:"text-white/60 text-sm",children:a})]}),s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-6",children:t}),s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-cyan-400 to-cyan-600 flex items-center justify-center mr-3",children:s.jsx("span",{className:"text-gray-900 font-semibold",children:n.slice(0,1)})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-white font-medium",children:n}),s.jsx("div",{className:"text-white/60 text-sm",children:i})]})]})]}),s.jsx("div",{className:"prose prose-invert max-w-none prose-headings:font-bold prose-p:text-white/80 prose-a:text-cyan-400 prose-a:no-underline hover:prose-a:text-cyan-300 prose-blockquote:border-cyan-500 prose-blockquote:bg-cyan-500/5 prose-blockquote:py-1 prose-blockquote:px-4 prose-blockquote:rounded-md prose-blockquote:not-italic prose-blockquote:font-normal prose-code:text-cyan-300 prose-code:bg-cyan-500/10 prose-code:p-1 prose-code:rounded prose-code:before:content-none prose-code:after:content-none",children:e}),s.jsx("div",{className:"mt-16 pt-8 border-t border-white/10",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-white/60 mr-3",children:"Tags:"}),s.jsxs("div",{className:"inline-flex flex-wrap gap-2 mt-2",children:[s.jsx("span",{className:"text-xs font-medium bg-white/10 text-white/80 py-1 px-2 rounded",children:"Sales Development"}),s.jsx("span",{className:"text-xs font-medium bg-white/10 text-white/80 py-1 px-2 rounded",children:"Pipeline Generation"}),s.jsx("span",{className:"text-xs font-medium bg-white/10 text-white/80 py-1 px-2 rounded",children:"Outsourcing"})]})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("span",{className:"text-white/60",children:"Share:"}),s.jsx("button",{className:"p-2 bg-white/10 rounded-full hover:bg-white/20 transition-colors",children:s.jsx("svg",{className:"w-4 h-4 text-white/80",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:s.jsx("path",{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"})})}),s.jsx("button",{className:"p-2 bg-white/10 rounded-full hover:bg-white/20 transition-colors",children:s.jsx("svg",{className:"w-4 h-4 text-white/80",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:s.jsx("path",{fillRule:"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158
615-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z",clipRule:"evenodd"})})}),s.jsx("button",{className:"p-2 bg-white/10 rounded-full hover:bg-white/20 transition-colors",children:s.jsx("svg",{className:"w-4 h-4 text-white/80",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:s.jsx("path",{fillRule:"evenodd",d:"M19 3a2 2 0 00-2-2H7a2 2 0 00-2 2v12a2 2 0 002 2h4v2.5a.5.5 0 00.8.4l4.7-2.9H17a2 2 0 002-2V3z",clipRule:"evenodd"})})})]})]})})]})});function B9({items:e,className:t}){return s.jsx("nav",{className:Fe("flex items-center text-sm text-muted-foreground",t),"aria-label":"Breadcrumbs",children:s.jsx("ol",{className:"flex items-center space-x-2",children:e.map((r,n)=>{const i=n===e.length-1;return s.jsx("li",{className:"flex items-center",children:i?s.jsx("span",{className:Fe("font-medium",r.current?"text-foreground":"text-muted-foreground"),"aria-current":r.current?"page":void 0,children:r.label}):s.jsxs(s.Fragment,{children:[s.jsx(xe,{href:r.href,className:"hover:text-foreground transition-colors",children:r.label}),s.jsx(ZA,{className:"ml-2 h-4 w-4"})]})},r.href)})})})}function Sce({onLeadCapture:e}){const[t,r]=S.useState(""),[n,i]=S.useState(""),[a,o]=S.useState(""),[l,u]=S.useState(!1),[d,m]=S.useState(null),h=()=>{const p=parseFloat(t)||0,x=parseInt(n)||1,y=Math.min(x*.15,.6)+.25,j=p*(1-y),k=(p-j)*12,N=Math.round(y*100);m({currentCost:p*12,optimizedCost:j*12,annualSavings:k,wastePercentage:N}),u(!0)};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx(RB,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"AI Token Trap Calculator"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Discover your true AI overspend"})]})]}),l?s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:"bg-gradient-to-r from-red-500/20 to-orange-500/20 border border-red-500/30 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ed,{className:"w-5 h-5 text-red-400"}),s.jsx("span",{className:"text-red-400 font-semibold",children:"Token Trap Detected"})]}),s.jsxs("p",{className:"text-3xl font-bold text-white",children:[d==null?void 0:d.wastePercentage,"% Waste"]}),s.jsx("p",{className:"text-white/60 text-sm",children:"of your AI spend is redundant or inefficient"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(bJ,{className:"w-4 h-4 text-red-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Current Annual"})]}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:["$",d==null?void 0:d.currentCost.toLocaleString()]})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(ts,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Optimized Annual"})]}),s.jsxs("p",{className:"text-2xl font-bold text-cyan-400",children:["$",d==null?void 0:d.optimizedCost.toLocaleString()]})]})]}),s.jsxs("div",{className:"bg-gradient-to-r from-cyan-500/20 to-cyan-600/20 border border-cyan-500/30 rounded-lg p-4 text-center",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[s.jsx(jv,{className:"w-5 h-5 text-cyan-400"}),s.jsx("span",{className:"text-cyan-400 font-semibold",children:"Potential Annual Savings"})]}),s.jsxs("p",{className:"text-4xl font-bold text-white",children:["$",d==null?void 0:d.annualSavings.toLocaleStr
615ing()]})]}),s.jsx(pe,{onClick:()=>u(!1),variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-recalculate",children:"Recalculate"})]}):s.jsxs(st.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"monthlySpend",className:"text-white/80",children:"Monthly AI Tool Spend ($)"}),s.jsx(Je,{id:"monthlySpend",type:"number",placeholder:"e.g., 360",value:t,onChange:p=>r(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-monthly-spend"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"toolCount",className:"text-white/80",children:"Number of AI Tools Used"}),s.jsx(Je,{id:"toolCount",type:"number",placeholder:"e.g., 5",value:n,onChange:p=>i(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-tool-count"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"teamSize",className:"text-white/80",children:"Sales Team Size"}),s.jsx(Je,{id:"teamSize",type:"number",placeholder:"e.g., 10",value:a,onChange:p=>o(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-team-size"})]}),s.jsx(pe,{onClick:h,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold","data-testid":"button-calculate-savings",children:"Reveal My Token Trap"})]})]})}function nm(e,[t,r]){return Math.min(r,Math.max(t,e))}var kce=S.createContext(void 0);function Jd(e){const t=S.useContext(kce);return e||t||"ltr"}function Gv(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var V9=["PageUp","PageDown"],q9=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W9={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ef="Slider",[Z2,Nce,Tce]=xv(ef),[z9]=hs(ef,[Tce]),[Ace,Kv]=z9(ef),U9=S.forwardRef((e,t)=>{const{name:r,min:n=0,max:i=100,step:a=1,orientation:o="horizontal",disabled:l=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[n],value:m,onValueChange:h=()=>{},onValueCommit:p=()=>{},inverted:x=!1,form:w,...v}=e,y=S.useRef(new Set),j=S.useRef(0),N=o==="horizontal"?Cce:Pce,[C=[],A]=ja({prop:m,defaultProp:d,onChange:D=>{var I;(I=[...y.current][j.current])==null||I.focus(),h(D)}}),E=S.useRef(C);function _(D){const L=Rce(C,D);F(D,L)}function R(D){F(D,j.current)}function O(){const D=E.current[j.current];C[j.current]!==D&&p(C)}function F(D,L,{commit:I}={commit:!1}){const $=$ce(a),z=Fce(Math.round((D-n)/a)*a+n,$),K=nm(z,[n,i]);A((Z=[])=>{const U=Oce(Z,K,L);if(Lce(U,u*a)){j.current=U.indexOf(K);const q=String(U)!==String(Z);return q&&I&&p(U),q?U:Z}else return Z})}return s.jsx(Ace,{scope:e.__scopeSlider,name:r,disabled:l,min:n,max:i,valueIndexToChangeRef:j,thumbs:y.current,values:C,orientation:o,form:w,children:s.jsx(Z2.Provider,{scope:e.__scopeSlider,children:s.jsx(Z2.Slot,{scope:e.__scopeSlider,children:s.jsx(N,{"aria-disabled":l,"data-disabled":l?"":void 0,...v,ref:t,onPointerDown:Be(v.onPointerDown,()=>{l||(E.current=C)}),min:n,max:i,inverted:x,onSlideStart:l?void 0:_,onSlideMove:l?void 0:R,onSlideEnd:l?void 0:O,onHomeKeyDown:()=>!l&&F(n,0,{commit:!0}),onEndKeyDown:()=>!l&&F(i,C.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:L})=>{if(!l){const z=V9.includes(D.key)||D.shiftKey&&q9.includes(D.key)?10:1,K=j.current,Z=C[K],U=a*z*L;F(Z+U,K,{commit:!0})}}})})})})});U9.displayName=ef;var[H9,G9]=z9(ef,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Cce=S.forwardRef((e,t)=>{const{min:r,max:n,dir:i,inverted:a,onSlideStart:o,onSlideMove:l,onSlideEnd:u,onStepKeyDown:d,...m}=e,[h,p]=S.useState(null),x=ht(t,N=>p(N)),w=S.useRef(void 0),v=Jd(i),y=v==="ltr",j=y&&!a||!y&&a;function k(N){const C=w.current||h.getBoundingClientRect(),A=[0,C.width],_=jP(A,j?[r,n]:[n,r]);return w.current=C,_(N-C.left)}return s.jsx(H9,{scope:e.__scopeSlider,startEdge:j?"left":"right",endEdge:j?"right":"left",direction:j?1:-1,size:"width",children:s.jsx(K9,{dir:v,"data-orientation":"horizontal",...m,ref:x,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:N=>{const C=k(N.clientX);o==null||o(C)},onSlideMove:N=>{const C=k(N.clientX);l==null||l(C)},onSlideEnd:()=>{w.current=void 0,u==null||u()},onStepKeyDown:N=>{const A=W9[j?"from-left":"from-right"].includes(N.key);d==null||d({event:N,direction:A?-1:1})}})})}),Pce=S.forwardRef((e,t)=>
615{const{min:r,max:n,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:l,onStepKeyDown:u,...d}=e,m=S.useRef(null),h=ht(t,m),p=S.useRef(void 0),x=!i;function w(v){const y=p.current||m.current.getBoundingClientRect(),j=[0,y.height],N=jP(j,x?[n,r]:[r,n]);return p.current=y,N(v-y.top)}return s.jsx(H9,{scope:e.__scopeSlider,startEdge:x?"bottom":"top",endEdge:x?"top":"bottom",size:"height",direction:x?1:-1,children:s.jsx(K9,{"data-orientation":"vertical",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const y=w(v.clientY);a==null||a(y)},onSlideMove:v=>{const y=w(v.clientY);o==null||o(y)},onSlideEnd:()=>{p.current=void 0,l==null||l()},onStepKeyDown:v=>{const j=W9[x?"from-bottom":"from-top"].includes(v.key);u==null||u({event:v,direction:j?-1:1})}})})}),K9=S.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:l,onStepKeyDown:u,...d}=e,m=Kv(ef,r);return s.jsx(Xe.span,{...d,ref:t,onKeyDown:Be(e.onKeyDown,h=>{h.key==="Home"?(o(h),h.preventDefault()):h.key==="End"?(l(h),h.preventDefault()):V9.concat(q9).includes(h.key)&&(u(h),h.preventDefault())}),onPointerDown:Be(e.onPointerDown,h=>{const p=h.target;p.setPointerCapture(h.pointerId),h.preventDefault(),m.thumbs.has(p)?p.focus():n(h)}),onPointerMove:Be(e.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&i(h)}),onPointerUp:Be(e.onPointerUp,h=>{const p=h.target;p.hasPointerCapture(h.pointerId)&&(p.releasePointerCapture(h.pointerId),a(h))})})}),Y9="SliderTrack",X9=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,i=Kv(Y9,r);return s.jsx(Xe.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...n,ref:t})});X9.displayName=Y9;var J2="SliderRange",Q9=S.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,i=Kv(J2,r),a=G9(J2,r),o=S.useRef(null),l=ht(t,o),u=i.values.length,d=i.values.map(p=>eq(p,i.min,i.max)),m=u>1?Math.min(...d):0,h=100-Math.max(...d);return s.jsx(Xe.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...n,ref:l,style:{...e.style,[a.startEdge]:m+"%",[a.endEdge]:h+"%"}})});Q9.displayName=J2;var eT="SliderThumb",Z9=S.forwardRef((e,t)=>{const r=Nce(e.__scopeSlider),[n,i]=S.useState(null),a=ht(t,l=>i(l)),o=S.useMemo(()=>n?r().findIndex(l=>l.ref.current===n):-1,[r,n]);return s.jsx(Ece,{...e,ref:a,index:o})}),Ece=S.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:i,...a}=e,o=Kv(eT,r),l=G9(eT,r),[u,d]=S.useState(null),m=ht(t,k=>d(k)),h=u?o.form||!!u.closest("form"):!0,p=_v(u),x=o.values[n],w=x===void 0?0:eq(x,o.min,o.max),v=Ice(n,o.values.length),y=p==null?void 0:p[l.size],j=y?Mce(y,w,l.direction):0;return S.useEffect(()=>{if(u)return o.thumbs.add(u),()=>{o.thumbs.delete(u)}},[u,o.thumbs]),s.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${w}% + ${j}px)`},children:[s.jsx(Z2.ItemSlot,{scope:e.__scopeSlider,children:s.jsx(Xe.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":o.min,"aria-valuenow":x,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...a,ref:m,style:x===void 0?{display:"none"}:e.style,onFocus:Be(e.onFocus,()=>{o.valueIndexToChangeRef.current=n})})}),h&&s.jsx(J9,{name:i??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:x},n)]})});Z9.displayName=eT;var _ce="RadioBubbleInput",J9=S.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const i=S.useRef(null),a=ht(i,n),o=Gv(t);return S.useEffect(()=>{const l=i.current;if(!l)return;const u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(o!==t&&m){const h=new Event("input",{bubbles:!0});m.call(l,t),l.dispatchEvent(h)}},[o,t]),s.jsx(Xe.input,{style:{display:"none"},...r,ref:a,defaultValue:t})});J9.displayName=_ce;function Oce(e=[],t,r){const n=[...e];return n[r]=t,n.sort((i,a)=>i-a)}function eq(e,t,r){const a=100/(r-t)*(e-t);return nm(a,[0,100])}function Ice(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Rce(e,t){if(e.length===1)return 0;const r=e.map(i=>Math.abs(i-t)),n=Math.min(...r);return r.indexOf(n)}function Mce(e,t,r){const n=e/2,a=jP([0,50],[0,n]);return(n-a(t)*r)*r}function Dce(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Lce(e,t){if(t>0){const r=Dce(e);return Math.min(...r)>=t}return!0}function jP(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function $ce(e){return(String(e).split(".")[1]||"").length}function Fce(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var tq=U9,Bce=X9,Vce=Q9,qce=Z9;const ay=S.forwardRef(({className:e,...t},r)=>s.jsxs(tq,{ref:r,className:Fe("relative flex w-full touch-none select-none items-center",e),...t,children:[s.jsx(Bce,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:s.jsx(Vce,{className:"absolute h-full bg-primary"})}),s.jsx(qce,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]}));ay.displayName=tq.displayName;const bj=[{id:"awareness",name:"Awareness → Interest",avgLoss:60},{id:"interest",name:"Interest → Consideration",avgLoss:50},{id:"consideration",name:"Consideration → Intent",avgLoss:40},{id:"intent",name:"Intent → Evaluation",avgLoss:30},{id:"evaluation",name:"Evaluation → Decision",avgLoss:25}
615,{id:"decision",name:"Decision → Purchase",avgLoss:20},{id:"purchase",name:"Purchase → Retention",avgLoss:15}];function rq({onLeadCapture:e}){const[t,r]=S.useState(""),[n,i]=S.useState(""),[a,o]=S.useState(Object.fromEntries(bj.map(p=>[p.id,p.avgLoss]))),[l,u]=S.useState(!1),[d,m]=S.useState(null),h=()=>{let x=(parseFloat(t)||0)*3;const w=[];bj.forEach(k=>{const N=a[k.id]/100,C=x*N;w.push({name:k.name,amount:C,percentage:a[k.id]}),x-=C});const v=w.reduce((k,N)=>k+N.amount,0),y=w.reduce((k,N)=>N.amount>k.amount?N:k,w[0]),j=v*.35;m({totalLeak:v,leaksByStage:w,biggestLeak:y,recoveryPotential:j}),u(!0)};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx($i,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"Pipeline Leak Diagnostic"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Find the 7 leaks killing your revenue"})]})]}),l?s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:"bg-gradient-to-r from-red-500/20 to-orange-500/20 border border-red-500/30 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ed,{className:"w-5 h-5 text-red-400"}),s.jsx("span",{className:"text-red-400 font-semibold",children:"Revenue Hemorrhage Detected"})]}),s.jsxs("p",{className:"text-3xl font-bold text-white",children:["$",((d==null?void 0:d.totalLeak)||0).toLocaleString()]}),s.jsx("p",{className:"text-white/60 text-sm",children:"potential revenue leaking from your pipeline"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-white/80 font-medium",children:"Leak Breakdown:"}),d==null?void 0:d.leaksByStage.slice(0,4).map((p,x)=>s.jsxs("div",{className:"flex items-center justify-between bg-white/5 rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:`w-2 h-2 rounded-full ${p===d.biggestLeak?"bg-red-400":"bg-cyan-400"}`}),s.jsx("span",{className:"text-white/70 text-sm",children:p.name})]}),s.jsxs("span",{className:"text-white font-mono",children:["$",p.amount.toLocaleString()]})]},x))]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(Ri,{className:"w-4 h-4 text-red-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Biggest Leak"})]}),s.jsx("p",{className:"text-lg font-bold text-white",children:d==null?void 0:d.biggestLeak.name.split(" → ")[0]})]}),s.jsxs("div",{className:"bg-gradient-to-r from-cyan-500/20 to-cyan-600/20 border border-cyan-500/30 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(Ju,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Recovery Potential"})]}),s.jsxs("p",{className:"text-lg font-bold text-cyan-400",children:["$",((d==null?void 0:d.recoveryPotential)||0).toLocaleString()]})]})]}),s.jsx(pe,{onClick:()=>u(!1),variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-recalculate-pipeline",children:"Recalculate"})]}):s.jsxs(st.div,{initial:{opacity:0}
615,animate:{opacity:1},className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"annualRevenue",className:"text-white/80",children:"Annual Revenue Target ($)"}),s.jsx(Je,{id:"annualRevenue",type:"number",placeholder:"e.g., 5000000",value:t,onChange:p=>r(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-annual-revenue"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"avgDealSize",className:"text-white/80",children:"Average Deal Size ($)"}),s.jsx(Je,{id:"avgDealSize",type:"number",placeholder:"e.g., 25000",value:n,onChange:p=>i(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-avg-deal-size"})]}),s.jsxs("div",{className:"space-y-4 pt-4 border-t border-white/10",children:[s.jsx("p",{className:"text-white/60 text-sm",children:"Adjust your estimated drop-off rates at each stage:"}),bj.slice(0,4).map(p=>s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx(Ze,{className:"text-white/70 text-sm",children:p.name}),s.jsxs("span",{className:"text-cyan-400 font-mono text-sm",children:[a[p.id],"%"]})]}),s.jsx(ay,{value:[a[p.id]],onValueChange:x=>o(w=>({...w,[p.id]:x[0]})),max:90,min:10,step:5,className:"w-full"})]},p.id))]}),s.jsx(pe,{onClick:h,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold","data-testid":"button-diagnose-pipeline",children:"Diagnose My Pipeline"})]})]})}function nq({onLeadCapture:e}){const[t,r]=S.useState(""),[n,i]=S.useState(""),[a,o]=S.useState(""),[l,u]=S.useState(!1),[d,m]=S.useState(null),h=()=>{const p=parseInt(t)||1,x=parseFloat(n)||1e5,w=parseFloat(a)||12e5,v=6.4,y=7.2,k=p*x*.84,C=p*w*.84,A=C*.5,E=x/(v*52);m({sellingHoursPerWeek:v,adminHoursPerWeek:y,annualAdminWaste:k,revenueAtRisk:C,recoveryPotential:A,costPerSellingHour:E}),u(!0)};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx(Oi,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"Rep Productivity Calculator"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Expose the 84% productivity gap"})]})]}),l?s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:"bg-gradient-to-r from-red-500/20 to-orange-500/20 border border-red-500/30 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ed,{className:"w-5 h-5 text-red-400"}),s.jsx("span",{className:"text-red-400 font-semibold",children:"Productivity Crisis Exposed"})]}),s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsx("p",{className:"text-4xl font-bold text-white",children:d==null?void 0:d.sellingHoursPerWeek}),s.jsx("p",{className:"text-white/60",children:"hours selling per week"})]}),s.jsx("p",{className:"text-white/60 text-sm mt-1",children:"That's only 16% of their time actually selling"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(Oi,{className:"w-4 h-4 text-red-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Admin Hours/Week"})]}),s.jsx("p",{className:"text-2xl font-bold text-white",children:d==null?void 0:d.adminHoursPerWeek}),s.jsx("p",{className:"text-white/40 text-xs",children:"6-8 hours wasted per rep"})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(jv,{className:"w-4 h-4 text-red-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Cost per Selling Hour"})]}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:["$",Math.round((d==null?void 0:d.costPerSellingHour)||0)]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(kn,{className:"w-4 h-4 text-white/60"}),s.jsx("span",{className:"text-white/70",children:"Annual Admin Waste"})]}),s.jsxs("span",{className:"text-xl font-bold text-red-400",children:["$",((d==null?void 0:d.annualAdminWaste)||0).toLocaleStr
615ing()]})]}),s.jsxs("div",{className:"flex items-center justify-between bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ju,{className:"w-4 h-4 text-white/60"}),s.jsx("span",{className:"text-white/70",children:"Revenue at Risk"})]}),s.jsxs("span",{className:"text-xl font-bold text-red-400",children:["$",((d==null?void 0:d.revenueAtRisk)||0).toLocaleString()]})]})]}),s.jsxs("div",{className:"bg-gradient-to-r from-cyan-500/20 to-cyan-600/20 border border-cyan-500/30 rounded-lg p-4 text-center",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-2",children:[s.jsx(Ju,{className:"w-5 h-5 text-cyan-400"}),s.jsx("span",{className:"text-cyan-400 font-semibold",children:"Recovery Potential (50%)"})]}),s.jsxs("p",{className:"text-3xl font-bold text-white",children:["$",((d==null?void 0:d.recoveryPotential)||0).toLocaleString()]}),s.jsx("p",{className:"text-white/60 text-sm mt-1",children:"If you recovered just half the wasted time"})]}),s.jsx(pe,{onClick:()=>u(!1),variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-recalculate-productivity",children:"Recalculate"})]}):s.jsxs(st.div,{initial:{opacity:0}
vendor: 9,407 bytes, line 615
615,animate:{opacity:1},className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"repCount",className:"text-white/80",children:"Number of Sales Reps"}),s.jsx(Je,{id:"repCount",type:"number",placeholder:"e.g., 10",value:t,onChange:p=>r(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-rep-count"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"avgOTE",className:"text-white/80",children:"Average OTE ($)"}),s.jsx(Je,{id:"avgOTE",type:"number",placeholder:"e.g., 100000",value:n,onChange:p=>i(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-avg-ote"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"avgQuota",className:"text-white/80",children:"Average Annual Quota ($)"}),s.jsx(Je,{id:"avgQuota",type:"number",placeholder:"e.g., 1200000",value:a,onChange:p=>o(p.target.value),className:"bg-black/50 border-white/20 text-white placeholder:text-white/40","data-testid":"input-avg-quota"})]}),s.jsx(pe,{onClick:h,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold","data-testid":"button-calculate-productivity",children:"Reveal the Truth"})]})]})}var wj=0;function sq(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??R5()),document.body.insertAdjacentElement("beforeend",e[1]??R5()),wj++,()=>{wj===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wj--}},[])}function R5(){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 jj="focusScope.autoFocusOnMount",Sj="focusScope.autoFocusOnUnmount",M5={bubbles:!1,cancelable:!0},Wce="FocusScope",SP=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[l,u]=S.useState(null),d=Mr(i),m=Mr(a),h=S.useRef(null),p=ht(t,v=>u(v)),x=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let v=function(N){if(x.paused||!l)return;const C=N.target;l.contains(C)?h.current=C:ho(h.current,{select:!0})},y=function(N){if(x.paused||!l)return;const C=N.relatedTarget;C!==null&&(l.contains(C)||ho(h.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const A of N)A.removedNodes.length>0&&ho(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const k=new MutationObserver(j);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),k.disconnect()}}},[n,l,x.paused]),S.useEffect(()=>{if(l){L5.add(x);const v=document.activeElement;if(!l.contains(v)){const j=new CustomEvent(jj,M5);l.addEventListener(jj,d),l.dispatchEvent(j),j.defaultPrevented||(zce(Yce(iq(l)),{select:!0}),document.activeElement===v&&ho(l))}return()=>{l.removeEventListener(jj,d),setTimeout(()=>{const j=new CustomEvent(Sj,M5);l.addEventListener(Sj,m),l.dispatchEvent(j),j.defaultPrevented||ho(v??document.body,{select:!0}),l.removeEventListener(Sj,m),L5.remove(x)},0)}}},[l,d,m,x]);const w=S.useCallback(v=>{if(!r&&!n||x.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,j=document.activeElement;if(y&&j){const k=v.currentTarget,[N,C]=Uce(k);N&&C?!v.shiftKey&&j===C?(v.preventDefault(),r&&ho(N,{select:!0})):v.shiftKey&&j===N&&(v.preventDefault(),r&&ho(C,{select:!0})):j===k&&v.preventDefault()}},[r,n,x.paused]);return s.jsx(Xe.div,{tabIndex:-1,...o,ref:p,onKeyDown:w})});SP.displayName=Wce;function zce(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ho(n,{select:t}),document.activeElement!==r)return}function Uce(e){const t=iq(e),r=D5(t,e),n=D5(t.reverse(),e);return[r,n]}function iq(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function D5(e,t){for(const r of e)if(!Hce(r,{upTo:t}))return r}function Hce(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 Gce(e){return e instanceof HTMLInputElement&&"select"in e}function ho(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Gce(e)&&t&&e.select()}}var L5=Kce();function Kce(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=$5(e,t),e.unshift(t)},remove(t){var r;e=$5(e,t),(r=e[0])==null||r.resume()}}}function $5(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Yce(e){return e.filter(t=>t.tagName!=="A")}function Xce(e){const t=Qce(e),r=S.forwardRef((n,i)=>{const{children:a,...o}=n,l=S.Children.toArray(a),u=l.find(Jce);if(u){const d=u.props.children,m=l.map(h=>h===u?S.Children.count(d)>1?S.Children.only(null):S.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:i,children:S.isValidElement(d)?S.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function Qce(e){const t=S.forwardRef((r,n)=>{const{children:i,...a}=r;if(S.isValidElement(i)){const o=tue(i),l=eue(a,i.props);return i.type!==S.Fragment&&(l.ref=n?Wd(n,o):o),S.cloneElement(i,l)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zce=Symbol("radix.slottable");function Jce(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zce}function eue(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function tue(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rue=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},au=new WeakMap,Bg=new WeakMap,Vg={},kj=0,aq=function(e){return e&&(e.host||aq(e.parentNode))},nue=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=aq(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})},sue=function(e,t,r,n){var i=nue(t,Array.isArray(e)?e:[e]);Vg[r]||(Vg[r]=new WeakMap);var a=Vg[r],o=[],l=new Set,u=new Set(i),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};i.forEach(d);var m=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(p){if(l.has(p))m(p);else try{var x=p.getAttribute(n),w=x!==null&&x!=="false",v=(au.get(p)||0)+1,y=(a.get(p)||0)+1;au.set(p,v),a.set(p,y),o.push(p),v===1&&w&&Bg.set(p,!0),y===1&&p.setAttribute(r,"true"),w||p.setAttribute(n,"true")}catch(j){console.error("aria-hidden: cannot operate on ",p,j)}})};return m(t),l.clear(),kj++,function(){o.forEach(function(h){var p=au.get(h)-1,x=a.get(h)-1;au.set(h,p),a.set(h,x),p||(Bg.has(h)||h.removeAttribute(n),Bg.delete(h)),x||h.removeAttribute(r)}),kj--,kj||(au=new WeakMap,au=new WeakMap,Bg=new WeakMap,Vg={})}},oq=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=rue(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),sue(n,i,r,"aria-hidden")):function(){return null}},wi=function(){return wi=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},wi.apply(this,arguments)};function lq(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function iue(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var vx="right-scroll-bar-position",bx="width-before-scroll-bar",aue="with-scroll-bars-hidden",oue="--removed-body-scroll-bar-size";function Nj(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lue(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var cue=typeof window<"u"?S.useLayoutEffect:S.useEffect,F5=new WeakMap;function uue(e,t){var r=lue(null,function(n){return e.forEach(function(i){return Nj(i,n)})});return cue(function(){var n=F5.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;
vendor: 4,224 bytes, lines 615-630
615i.forEach(function(l){a.has(l)||Nj(l,null)}),a.forEach(function(l){i.has(l)||Nj(l,o)})}F5.set(r,e)},[e]),r}function due(e){return e}function fue(e,t){t===void 0&&(t=due);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(a),o=r}var u=function(){var m=o;o=[],m.forEach(a)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(m){o.push(m),d()},filter:function(m){return o=o.filter(m),r}}}};return i}function hue(e){e===void 0&&(e={});var t=fue(null);return t.options=wi({async:!0,ssr:!1},e),t}var cq=function(e){var t=e.sideCar,r=lq(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 S.createElement(n,wi({},r))};cq.isSideCarExport=!0;function mue(e,t){return e.useMedium(t),cq}var uq=hue(),Tj=function(){},Yv=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:Tj,onWheelCapture:Tj,onTouchMoveCapture:Tj}),i=n[0],a=n[1],o=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,m=e.enabled,h=e.shards,p=e.sideCar,x=e.noRelative,w=e.noIsolation,v=e.inert,y=e.allowPinchZoom,j=e.as,k=j===void 0?"div":j,N=e.gapMode,C=lq(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,E=uue([r,t]),_=wi(wi({},C),i);return S.createElement(S.Fragment,null,m&&S.createElement(A,{sideCar:uq,removeScrollBar:d,shards:h,noRelative:x,noIsolation:w,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:N}),o?S.cloneElement(S.Children.only(l),wi(wi({},_),{ref:E})):S.createElement(k,wi({},_,{className:u,ref:E}),l))});Yv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yv.classNames={fullWidth:bx,zeroRight:vx};var pue=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gue(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pue();return t&&e.setAttribute("nonce",t),e}function xue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yue(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vue=function(){var e=0,t=null;return{add:function(r){e==0&&(t=gue())&&(xue(t,r),yue(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bue=function(){var e=vue();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},dq=function(){var e=bue(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},wue={left:0,top:0,right:0,gap:0},Aj=function(e){return parseInt(e||"",10)||0},jue=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Aj(r),Aj(n),Aj(i)]},Sue=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wue;var t=jue(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])}},kue=dq(),Ru="data-scroll-locked",Nue=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),`
616  .`.concat(aue,` {
617   overflow: hidden `).concat(n,`;
618   padding-right: `).concat(l,"px ").concat(n,`;
619  }
620  body[`).concat(Ru,`] {
621    overflow: hidden `).concat(n,`;
622    overscroll-behavior: contain;
623    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
624    padding-left: `.concat(i,`px;
625    padding-top: `).concat(a,`px;
626    padding-right: `).concat(o,`px;
627    margin-left:0;
628    margin-top:0;
629    margin-right: `).concat(l,"px ").concat(n,`;
630    `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
630")].filter(Boolean).join(""),`
631  }
632  
633  .`).concat(vx,` {
634    right: `).concat(l,"px ").concat(n,`;
635  }
636  
637  .`).concat(bx,` {
638    margin-right: `).concat(l,"px ").concat(n,`;
639  }
640  
641  .`).concat(vx," .").concat(vx,` {
642    right: 0 `).concat(n,`;
643  }
644  
645  .`).concat(bx," .").concat(bx,` {
646    margin-right: 0 `).concat(n,`;
647  }
648  
649  body[`).concat(Ru,`] {
650    `).concat(oue,": ").concat(l,`px;
651  }
652`)},B5=function(){var e=parseInt(document.body.getAttribute(Ru)||"0",10);return isFinite(e)?e:0},Tue=function(){S.useEffect(function(){return document.body.setAttribute(Ru,(B5()+1).toString()),function(){var e=B5()-1;e<=0?document.body.removeAttribute(Ru):document.body.setAttribute(Ru,e.toString())}},[])},Aue=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;Tue();var a=S.useMemo(function(){return Sue(i)},[i]);return S.createElement(kue,{styles:Nue(a,!t,i,r?"":"!important")})},tT=!1;if(typeof window<"u")try{var qg=Object.defineProperty({},"passive",{get:function(){return tT=!0,!0}});window.addEventListener("test",qg,qg),window.removeEventListener("test",qg,qg)}catch{tT=!1}var ou=tT?{passive:!1}:!1,Cue=function(e){return e.tagName==="TEXTAREA"},fq=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Cue(e)&&r[t]==="visible")},Pue=function(e){return fq(e,"overflowY")},Eue=function(e){return fq(e,"overflowX")},V5=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=hq(e,n);if(i){var a=mq(e,n),o=a[1],l=a[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_ue=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Oue=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},hq=function(e,t){return e==="v"?Pue(t):Eue(t)},mq=function(e,t){return e==="v"?_ue(t):Oue(t)},Iue=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rue=function(e,t,r,n,i){var a=Iue(e,window.getComputedStyle(t).direction),o=a*n,l=r.target,u=t.contains(l),d=!1,m=o>0,h=0,p=0;do{if(!l)break;var x=mq(e,l),w=x[0],v=x[1],y=x[2],j=v-y-a*w;(w||j)&&hq(e,l)&&(h+=j,p+=w);var k=l.parentNode;l=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(m&&Math.abs(h)<1||!m&&Math.abs(p)<1)&&(d=!0),d},Wg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q5=function(e){return[e.deltaX,e.deltaY]},W5=function(e){return e&&"current"in e?e.current:e},Mue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Due=function(e){return`
653  .block-interactivity-`.concat(e,` {pointer-events: none;}
654  .allow-interactivity-`).concat(e,` {pointer-events: all;}
655`)},Lue=0,lu=[];function $ue(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(Lue++)[0],a=S.useState(dq)[0],o=S.useRef(e);S.useEffect(function(){o.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=iue([e.lockRef.current],(e.shards||[]).map(W5),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=S.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!o.current.allowPinchZoom;var j=Wg(v),k=r.current,N="deltaX"in v?v.deltaX:k[0]-j[0],C="deltaY"in v?v.deltaY:k[1]-j[1],A,E=v.target,_=Math.abs(N)>Math.abs(C)?"h":"v";if("touches"in v&&_==="h"&&E.type==="range")return!1;var R=window.getSelection(),O=R&&R.anchorNode,F=O?O===E||O.contains(E):!1;if(F)return!1;var D=V5(_,E);if(!D)return!0;if(D?A=_:(A=_==="v"?"h":"v",D=V5(_,E)),!D)return!1;if(!n.current&&"changedTouches"in v&&(N||C)&&(n.current=A),!A)return!0;var L=n.current||A;return Rue(L,y,v,L==="h"?N:C)},[]),u=S.useCallback(function(v){var y=v;if(!(!lu.length||lu[lu.length-1]!==a)){var j="deltaY"in y?q5(y):Wg(y),k=t.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&Mue(A.delta,j)})[0];if(k&&k.should){y.cancelable&&y.preventDefault();return}
vendor: 4,141 bytes, line 655
655if(!k){var N=(o.current.shards||[]).map(W5).filter(Boolean).filter(function(A){return A.contains(y.target)}),C=N.length>0?l(y,N[0]):!o.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),d=S.useCallback(function(v,y,j,k){var N={name:v,delta:y,target:j,should:k,shadowParent:Fue(j)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(C){return C!==N})},1)},[]),m=S.useCallback(function(v){r.current=Wg(v),n.current=void 0},[]),h=S.useCallback(function(v){d(v.type,q5(v),v.target,l(v,e.lockRef.current))},[]),p=S.useCallback(function(v){d(v.type,Wg(v),v.target,l(v,e.lockRef.current))},[]);S.useEffect(function(){return lu.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",u,ou),document.addEventListener("touchmove",u,ou),document.addEventListener("touchstart",m,ou),function(){lu=lu.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,ou),document.removeEventListener("touchmove",u,ou),document.removeEventListener("touchstart",m,ou)}},[]);var x=e.removeScrollBar,w=e.inert;return S.createElement(S.Fragment,null,w?S.createElement(a,{styles:Due(i)}):null,x?S.createElement(Aue,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Fue(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bue=mue(uq,$ue);var kP=S.forwardRef(function(e,t){return S.createElement(Yv,wi({},e,{ref:t,sideCar:Bue}))});kP.classNames=Yv.classNames;var Vue=[" ","Enter","ArrowUp","ArrowDown"],que=[" ","Enter"],uc="Select",[Xv,Qv,Wue]=xv(uc),[tf]=hs(uc,[Wue,Ov]),Zv=Ov(),[zue,tl]=tf(uc),[Uue,Hue]=tf(uc),pq=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:l,onValueChange:u,dir:d,name:m,autoComplete:h,disabled:p,required:x,form:w}=e,v=Zv(t),[y,j]=S.useState(null),[k,N]=S.useState(null),[C,A]=S.useState(!1),E=Jd(d),[_,R]=ja({prop:n,defaultProp:i??!1,onChange:a,caller:uc}),[O,F]=ja({prop:o,defaultProp:l,onChange:u,caller:uc}),D=S.useRef(null),L=y?w||!!y.closest("form"):!0,[I,$]=S.useState(new Set),z=Array.from(I).map(K=>K.props.value).join(";");return s.jsx(vte,{...v,children:s.jsxs(zue,{required:x,scope:t,trigger:y,onTriggerChange:j,valueNode:k,onValueNodeChange:N,valueNodeHasChildren:C,onValueNodeHasChildrenChange:A,contentId:Io(),value:O,onValueChange:F,open:_,onOpenChange:R,dir:E,triggerPointerDownPosRef:D,disabled:p,children:[s.jsx(Xv.Provider,{scope:t,children:s.jsx(Uue,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(K=>{$(Z=>new Set(Z).add(K))},[]),onNativeOptionRemove:S.useCallback(K=>{$(Z=>{const U=new Set(Z);return U.delete(K),U})},[]),children:r})}),L?s.jsxs(Fq,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:h,value:O,onChange:K=>F(K.target.value),disabled:p,form:w,children:[O===void 0?s.jsx("option",{value:""}):null,Array.from(I)]},z):null]})})};pq.displayName=uc;var gq="SelectTrigger",xq=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Zv(r),o=tl(gq,r),l=o.disabled||n,u=ht(t,o.onTriggerChange),d=Qv(r),m=S.useRef("touch"),[h,p,x]=Vq(v=>{const y=d().filter(N=>!N.disabled),j=y.find(N=>N.value===o.value),k=qq(y,v,j);k!==void 0&&o.onValueChange(k.value)}),w=v=>{l||(o.onOpenChange(!0),x()),v&&(o.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return s.jsx(b7,{asChild:!0,...a,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":Bq(o.value)?"":void 0,...i,ref:u,onClick:Be(i.onClick,v=>{v.currentTarget.focus(),m.current!=="mouse"&&w(v)}),onPointerDown:Be(i.onPointerDown,v=>{m.current=v.pointerType;const y=v.target;y.hasPointerCapture(v.pointerId)&&y.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:Be(i.onKeyDown,v=>{const y=h.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&p(v.key),!(y&&v.key===" ")&&Vue.includes(v.key)&&
vendor: 13,947 bytes, line 655
655(w(),v.preventDefault())})})})});xq.displayName=gq;var yq="SelectValue",vq=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...l}=e,u=tl(yq,r),{onValueNodeHasChildrenChange:d}=u,m=a!==void 0,h=ht(t,u.onValueNodeChange);return Gr(()=>{d(m)},[d,m]),s.jsx(Xe.span,{...l,ref:h,style:{pointerEvents:"none"},children:Bq(u.value)?s.jsx(s.Fragment,{children:o}):a})});vq.displayName=yq;var Gue="SelectIcon",bq=S.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return s.jsx(Xe.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});bq.displayName=Gue;var Kue="SelectPortal",wq=e=>s.jsx(yv,{asChild:!0,...e});wq.displayName=Kue;var dc="SelectContent",jq=S.forwardRef((e,t)=>{const r=tl(dc,e.__scopeSelect),[n,i]=S.useState();if(Gr(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?qd.createPortal(s.jsx(Sq,{scope:e.__scopeSelect,children:s.jsx(Xv.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(kq,{...e,ref:t})});jq.displayName=dc;var Xs=10,[Sq,rl]=tf(dc),Yue="SelectContentImpl",Xue=Xce("SelectContent.RemoveScroll"),kq=S.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:u,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:p,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:y,...j}=e,k=tl(dc,r),[N,C]=S.useState(null),[A,E]=S.useState(null),_=ht(t,ge=>C(ge)),[R,O]=S.useState(null),[F,D]=S.useState(null),L=Qv(r),[I,$]=S.useState(!1),z=S.useRef(!1);S.useEffect(()=>{if(N)return oq(N)},[N]),sq();const K=S.useCallback(ge=>{const[Ae,...le]=L().map(ae=>ae.ref.current),[Se]=le.slice(-1),Pe=document.activeElement;for(const ae of ge)if(ae===Pe||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===Ae&&A&&(A.scrollTop=0),ae===Se&&A&&(A.scrollTop=A.scrollHeight),ae==null||ae.focus(),document.activeElement!==Pe))return},[L,A]),Z=S.useCallback(()=>K([R,N]),[K,R,N]);S.useEffect(()=>{I&&Z()},[I,Z]);const{onOpenChange:U,triggerPointerDownPosRef:q}=k;S.useEffect(()=>{if(N){let ge={x:0,y:0};const Ae=Se=>{var Pe,ae;ge={x:Math.abs(Math.round(Se.pageX)-(((Pe=q.current)==null?void 0:Pe.x)??0)),y:Math.abs(Math.round(Se.pageY)-(((ae=q.current)==null?void 0:ae.y)??0))}},le=Se=>{ge.x<=10&&ge.y<=10?Se.preventDefault():N.contains(Se.target)||U(!1),document.removeEventListener("pointermove",Ae),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",Ae),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ae),document.removeEventListener("pointerup",le,{capture:!0})}}},[N,U,q]),S.useEffect(()=>{const ge=()=>U(!1);return window.addEventListener("blur",ge),window.addEventListener("resize",ge),()=>{window.removeEventListener("blur",ge),window.removeEventListener("resize",ge)}},[U]);const[B,V]=Vq(ge=>{const Ae=L().filter(Pe=>!Pe.disabled),le=Ae.find(Pe=>Pe.ref.current===document.activeElement),Se=qq(Ae,ge,le);Se&&setTimeout(()=>Se.ref.current.focus())}),X=S.useCallback((ge,Ae,le)=>{const Se=!z.current&&!le;(k.value!==void 0&&k.value===Ae||Se)&&(O(ge),Se&&(z.current=!0))},[k.value]),ce=S.useCallback(()=>N==null?void 0:N.focus(),[N]),ye=S.useCallback((ge,Ae,le)=>{const Se=!z.current&&!le;(k.value!==void 0&&k.value===Ae||Se)&&D(ge)},[k.value]),$e=n==="popper"?rT:Nq,Te=$e===rT?{side:l,sideOffset:u,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:p,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:y}:{};return s.jsx(Sq,{scope:r,content:N,viewport:A,onViewportChange:E,itemRefCallback:X,selectedItem:R,onItemLeave:ce,itemTextRefCallback:ye,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:I,searchRef:B,children:s.jsx(kP,{as:Xue,allowPinchZoom:!0,children:s.jsx(SP,{asChild:!0,trapped:k.open,onMountAutoFocus:ge=>{ge.preventDefault()},onUnmountAutoFocus:Be(i,ge=>{var Ae;(Ae=k.trigger)==null||Ae.focus({preventScroll:!0}),ge.preventDefault()}),children:s.jsx(Ym,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:ge=>ge.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:s.jsx($e,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:ge=>ge.preventDefault(),...j,...Te,onPlaced:()=>$(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:Be(j.onKeyDown,ge=>{const Ae=ge.ctrlKey||ge.altKey||ge.metaKey;if(ge.key==="Tab"&&ge.preventDefault(),!Ae&&ge.key.length===1&&V(ge.key),["ArrowUp","ArrowDown","Home","End"].includes(ge.key)){let Se=L().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(ge.key)&&(Se=Se.slice().reverse()),["ArrowUp","ArrowDown"].includes(ge.key)){const Pe=ge.target,ae=Se.indexOf(Pe);Se=Se.slice(ae+1)}setTimeout(()=>K(Se)),ge.preventDefault()}})})})})})})});kq.displayName=Yue;var Que="SelectItemAlignedPosition",Nq=S.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=tl(dc,r),o=rl(dc,r),[l,u]=S.useState(null),[d,m]=S.useState(null),h=ht(t,_=>m(_)),p=Qv(r),x=S.useRef(!1),w=S.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:j,focusSelectedItem:k}=o,N=S.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&d&&v&&y&&j){const _=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),O=a.valueNode.getBoundingClientRect(),F=j.getBoundingClientRect();if(a.dir!=="rtl"){const Pe=F.left-R.left,ae=O.left-Pe,at=_.left-ae,Ye=_.width+at,mt=Math.max(Ye,R.width),Ie=window.innerWidth-Xs,pt=nm(ae,[Xs,Math.max(Xs,Ie-mt)]);l.style.minWidth=Ye+"px",l.style.left=pt+"px"}else{const Pe=R.right-F.right,ae=window.innerWidth-O.right-Pe,at=window.innerWidth-_.right-ae,Ye=_.width+at,mt=Math.max(Ye,R.width),Ie=window.innerWidth-Xs,pt=nm(ae,[Xs,Math.max(Xs,Ie-mt)]);l.style.minWidth=Ye+"px",l.style.right=pt+"px"}const D=p(),L=window.innerHeight-Xs*2,I=v.scrollHeight,$=window.getComputedStyle(d),z=parseInt($.borderTopWidth,10),K=parseInt($.paddingTop,10),Z=parseInt($.borderBottomWidth,10),U=parseInt($.paddingBottom,10),q=z+K+I+U+Z,B=Math.min(y.offsetHeight*5,q),V=window.getComputedStyle(v),X=parseInt(V.paddingTop,10),ce=parseInt(V.paddingBottom,10),ye=_.top+_.height/2-Xs,$e=L-ye,Te=y.offsetHeight/2,ge=y.offsetTop+Te,Ae=z+K+ge,le=q-Ae;if(Ae<=ye){const Pe=D.length>0&&y===D[D.length-1].ref.current;l.style.bottom="0px";const ae=d.clientHeight-v.offsetTop-v.offsetHeight,at=Math.max($e,Te+(Pe?ce:0)+ae+Z),Ye=Ae+at;l.style.height=Ye+"px"}else{const Pe=D.length>0&&y===D[0].ref.current;l.style.top="0px";const at=Math.max(ye,z+v.offsetTop+(Pe?X:0)+Te)+le;l.style.height=at+"px",v.scrollTop=Ae-ye+v.offsetTop}l.style.margin=`${Xs}px 0`,l.style.minHeight=B+"px",l.style.maxHeight=L+"px",n==null||n(),requestAnimationFrame(()=>x.current=!0)}},[p,a.trigger,a.valueNode,l,d,v,y,j,a.dir,n]);Gr(()=>N(),[N]);const[C,A]=S.useState();Gr(()=>{d&&A(window.getComputedStyle(d).zIndex)},[d]);const E=S.useCallback(_=>{_&&w.current===!0&&(N(),k==null||k(),w.current=!1)},[N,k]);return s.jsx(Jue,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:E,children:s.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:s.jsx(Xe.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Nq.displayName=Que;var Zue="SelectPopperPosition",rT=S.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Xs,...a}=e,o=Zv(r);return s.jsx(w7,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});rT.displayName=Zue;var[Jue,NP]=tf(dc,{}),nT="SelectViewport",Tq=S.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=rl(nT,r),o=NP(nT,r),l=ht(t,a.onViewportChange),u=S.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(Xv.Slot,{scope:r,children:s.jsx(Xe.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Be(i.onScroll,d=>{const m=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&h){const x=Math.abs(u.current-m.scrollTop);if(x>0){const w=window.innerHeight-Xs*2,v=parseFloat(h.style.minHeight),y=parseFloat(h.style.height),j=Math.max(v,y);if(j<w){const k=j+x,N=Math.min(w,k),C=k-N;h.style.height=N+"px",h.style.bottom==="0px"&&(m.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}u.current=m.scrollTop})})})]})});Tq.displayName=nT;var Aq="SelectGroup",[ede,tde]=tf(Aq),rde=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Io();return s.jsx(ede,{scope:r,id:i,children:s.jsx(Xe.div,{role:"group","aria-labelledby":i,...n,ref:t})})});rde.displayName=Aq;var Cq="SelectLabel",Pq=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=tde(Cq,r);return s.jsx(Xe.div,{id:i.id,...n,ref:t})});Pq.displayName=Cq;var oy="SelectItem",[nde,Eq]=tf(oy),_q=S.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,l=tl(oy,r),u=rl(oy,r),d=l.value===n,[m,h]=S.useState(a??""),[p,x]=S.useState(!1),w=ht(t,k=>{var N;return(N=u.itemRefCallback)==null?void 0:N.call(u,k,n,i)}),v=Io(),y=S.useRef("touch"),j=()=>{i||(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(nde,{scope:r,value:n,disabled:i,textId:v,isSelected:d,onItemTextChange:S.useCallback(k=>{h(N=>N||((k==null?void 0:k.textContent)??"").trim())},[]),children:s.jsx(Xv.ItemSlot,{scope:r,value:n,disabled:i,textValue:m,children:s.jsx(Xe.div,{role:"option","aria-labelledby":v,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:w,onFocus:Be(o.onFocus,()=>x(!0)),onBlur:Be(o.onBlur,()=>x(!1)),onClick:Be(o.onClick,()=>{y.current!=="mouse"&&j()}),onPointerUp:Be(o.onPointerUp,()=>{y.current==="mouse"&&j()}),onPointerDown:Be(o.onPointerDown,k=>{y.current=k.pointerType}),onPointerMove:Be(o.onPointerMove,k=>{var N;y.current=k.pointerType,i?(N=u.onItemLeave)==null||N.call(u):y.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Be(o.onPointerLeave,k=>{var N;k.currentTarget===document.activeElement&&((N=u.onItemLeave)==null||N.call(u))}),onKeyDown:Be(o.onKeyDown,k=>{var C;((C=u.searchRef)==null?void 0:C.current)!==""&&k.key===" "||(que.includes(k.key)&&j(),k.key===" "&&k.preventDefault())})})})})});_q.displayName=oy;var Th="SelectItemText",Oq=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=tl(Th,r),l=rl(Th,r),u=Eq(Th,r),d=Hue(Th,r),[m,h]=S.useState(null),p=ht(t,j=>h(j),u.onItemTextChange,j=>{var k;return(k=l.itemTextRefCallback)==null?void 0:k.call(l,j,u.value,u.disabled)}),x=m==null?void 0:m.textContent,w=S.useMemo(()=>s.jsx("option",{value:u.value,disabled:u.disabled,children:x},u.value),[u.disabled,u.value,x]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=d;return Gr(()=>(v(w),()=>y(w)),[v,y,w]),s.jsxs(s.Fragment,{children:[s.jsx(Xe.span,{id:u.textId,...a,ref:p}),u.isSelected&&o.valueNode&&!o.valueNodeHasChildren?qd.createPortal(a.children,o.valueNode):null]})});Oq.displayName=Th;var Iq="SelectItemIndicator",Rq=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Eq(Iq,r).isSelected?s.jsx(Xe.span,{"aria-hidden":!0,...n,ref:t}):null});Rq.displayName=Iq;var sT="SelectScrollUpButton",Mq=S.forwardRef((e,t)=>{const r=rl(sT,e.__scopeSelect),n=NP(sT,e.__scopeSelect),[i,a]=S.useState(!1),o=ht(t,n.onScrollButtonChange);return Gr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=u.scrollTop>0;a(d)};const u=r.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),i?s.jsx(Lq,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop-u.offsetHeight)}}):null});Mq.displayName=sT;var iT="SelectScrollDownButton",Dq=S.forwardRef((e,t)=>{const r=rl(iT,e.__scopeSelect),n=NP(iT,e.__scopeSelect),[i,a]=S.useState(!1),o=ht(t,n.onScrollButtonChange);return Gr(()=>{if(r.viewport&&r.isPositioned){let l=function(){const d=u.scrollHeight-u.clientHeight,m=Math.ceil(u.scrollTop)<d;a(m)};const u=r.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),i?s.jsx(Lq,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:u}=r;l&&u&&(l.scrollTop=l.scrollTop+u.offsetHeight)}}):null});Dq.displayName=iT;var Lq=S.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=rl("SelectScrollButton",r),o=S.useRef(null),l=Qv(r),u=S.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return S.useEffect(()=>()=>u(),[u]),Gr(()=>{var m;const d=l().find(h=>h.ref.current===document.activeElement);(m=d==null?void 0:d.ref.current)==null||m.scrollIntoView({block:"nearest"})},[l]),s.jsx(Xe.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Be(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Be(i.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Be(i.onPointerLeave,()=>{u()})})}),sde="SelectSeparator",$q=S.forwardRef((e,t)=>
vendor: 1,782 bytes, line 655
655{const{__scopeSelect:r,...n}=e;return s.jsx(Xe.div,{"aria-hidden":!0,...n,ref:t})});$q.displayName=sde;var aT="SelectArrow",ide=S.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Zv(r),a=tl(aT,r),o=rl(aT,r);return a.open&&o.position==="popper"?s.jsx(j7,{...i,...n,ref:t}):null});ide.displayName=aT;var ade="SelectBubbleInput",Fq=S.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=S.useRef(null),a=ht(n,i),o=Gv(t);return S.useEffect(()=>{const l=i.current;if(!l)return;const u=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(o!==t&&m){const h=new Event("change",{bubbles:!0});m.call(l,t),l.dispatchEvent(h)}},[o,t]),s.jsx(Xe.select,{...r,style:{...dB,...r.style},ref:a,defaultValue:t})});Fq.displayName=ade;function Bq(e){return e===""||e===void 0}function Vq(e){const t=Mr(e),r=S.useRef(""),n=S.useRef(0),i=S.useCallback(o=>{const l=r.current+o;t(l),(function u(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>u(""),1e3))})(l)},[t]),a=S.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function qq(e,t,r){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=ode(e,Math.max(a,0));i.length===1&&(o=o.filter(d=>d!==r));const u=o.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==r?u:void 0}function ode(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var lde=pq,Wq=xq,cde=vq,ude=bq,dde=wq,zq=jq,fde=Tq,Uq=Pq,Hq=_q,hde=Oq,mde=Rq,Gq=Mq,Kq=Dq,Yq=$q;const Go=lde,Ko=cde,Ca=S.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Wq,{ref:n,className:Fe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
655ing-offset-background data-[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(ude,{asChild:!0,children:s.jsx(wv,{className:"h-4 w-4 opacity-50"})})]}));Ca.displayName=Wq.displayName;const Xq=S.forwardRef(({className:e,...t},r)=>s.jsx(Gq,{ref:r,className:Fe("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(JA,{className:"h-4 w-4"})}));Xq.displayName=Gq.displayName;const Qq=S.forwardRef(({className:e,...t},r)=>s.jsx(Kq,{ref:r,className:Fe("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(wv,{className:"h-4 w-4"})}));Qq.displayName=Kq.displayName;const Pa=S.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>s.jsx(dde,{children:s.jsxs(zq,{ref:i,className:Fe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",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(Xq,{}),s.jsx(fde,{className:Fe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(Qq,{})]})}));Pa.displayName=zq.displayName;const pde=S.forwardRef(({className:e,...t},r)=>s.jsx(Uq,{ref:r,className:Fe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));pde.displayName=Uq.displayName;const Bt=S.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Hq,{ref:n,className:Fe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(mde,{children:s.jsx(Xo,{className:"h-4 w-4"})})}),s.jsx(hde,{children:t})]}));Bt.displayName=Hq.displayName;const gde=S.forwardRef(({className:e,...t},r)=>s.jsx(Yq,{ref:r,className:Fe("-mx-1 my-1 h-px bg-muted",e),...t}));gde.displayName=Yq.displayName;function Zq({onLeadCapture:e}){const[t,r]=S.useState("text"),[n,i]=S.useState(50),[a,o]=S.useState(50),[l,u]=S.useState("1000"),[d,m]=S.useState(!1),[h,p]=S.useState(null),x=()=>{let v=(parseInt(l)||1e3)*.05;const j={text:1,image:1.2,carousel:1.8,video:1.5,document:2,poll:1.4}[t]||1,k=1+n/100,N=1+a/50,C=j*k*N,A=Math.round(v*C),E=Math.round((n+a)/2),_=[];let R="";t==="text"&&(_.push("Switch to carousel or document posts for 80% more reach"),R="Post format limiting your visibility"),n<50&&(_.push("Add a pattern-interrupt hook in first line"),R||(R="Weak opening hook")),a<50&&(_.push("Engage your network 30 min before posting"),R||(R="Low initial engagement momentum")),_.length===0&&(_.push("Your strategy is solid! Focus on consistency"),R="Keep posting consistently"),p({predictedReach:A,reachMultiplier:C,engagementScore:E,recommendations:_,topIssue:R}),m(!0)};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx(rC,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"LinkedIn Algorithm Analyzer"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Based on 318,842 posts analyzed"})]})]}),d?s.jsxs(st.div,{initial:{opacity:0,y:20}
655,animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-gradient-to-r from-cyan-500/20 to-cyan-600/20 border border-cyan-500/30 rounded-lg p-4 text-center",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[s.jsx(is,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Predicted Reach"})]}),s.jsx("p",{className:"text-3xl font-bold text-white",children:((h==null?void 0:h.predictedReach)||0).toLocaleString()})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 text-center",children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[s.jsx(Ju,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-white/60 text-sm",children:"Reach Multiplier"})]}),s.jsxs("p",{className:"text-3xl font-bold text-cyan-400",children:[h==null?void 0:h.reachMultiplier.toFixed(1),"x"]})]})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(vJ,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-white font-medium",children:"Engagement Score"})]}),s.jsx("div",{className:"w-full bg-white/10 rounded-full h-3",children:s.jsx("div",{className:"bg-gradient-to-r from-cyan-500 to-cyan-400 h-3 rounded-full transition-all duration-500",style:{width:`${h==null?void 0:h.engagementScore}%`}})}),s.jsxs("p",{className:"text-white/60 text-sm mt-2",children:[h==null?void 0:h.engagementScore,"% - ",h!=null&&h.engagementScore&&h.engagementScore>70?"Strong":h!=null&&h.engagementScore&&h.engagementScore>40?"Average":"Needs Work"]})]}),s.jsxs("div",{className:"bg-gradient-to-r from-amber-500/20 to-orange-500/20 border border-amber-500/30 rounded-lg p-4",children:[s.jsx("p",{className:"text-amber-400 font-semibold mb-1",children:"Top Issue to Fix:"}),s.jsx("p",{className:"text-white",children:h==null?void 0:h.topIssue})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-white/80 font-medium",children:"Quick Wins:"}),h==null?void 0:h.recommendations.map((w,v)=>s.jsxs("div",{className:"flex items-start gap-2 text-white/70 text-sm",children:[s.jsx("span",{className:"text-cyan-400",children:"→"}),s.jsx("span",{children:w})]},v))]}),s.jsx(pe,{onClick:()=>m(!1),variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-reanalyze-linkedin",children:"Analyze Another Strategy"})]}):s.jsxs(st.div,{initial:{opacity:0}
vendor: 4,108 bytes, line 655
655,animate:{opacity:1},className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{className:"text-white/80",children:"Post Type"}),s.jsxs(Go,{value:t,onValueChange:r,children:[s.jsx(Ca,{className:"bg-black/50 border-white/20 text-white","data-testid":"select-post-type",children:s.jsx(Ko,{placeholder:"Select post type"})}),s.jsxs(Pa,{className:"bg-gray-900 border-white/20",children:[s.jsx(Bt,{value:"text",className:"text-white",children:"Text Only"}),s.jsx(Bt,{value:"image",className:"text-white",children:"Single Image"}),s.jsx(Bt,{value:"carousel",className:"text-white",children:"Carousel"}),s.jsx(Bt,{value:"video",className:"text-white",children:"Video"}),s.jsx(Bt,{value:"document",className:"text-white",children:"Document/PDF"}),s.jsx(Bt,{value:"poll",className:"text-white",children:"Poll"})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{className:"text-white/80",children:"Follower Count"}),s.jsxs(Go,{value:l,onValueChange:u,children:[s.jsx(Ca,{className:"bg-black/50 border-white/20 text-white","data-testid":"select-followers",children:s.jsx(Ko,{placeholder:"Select follower range"})}),s.jsxs(Pa,{className:"bg-gray-900 border-white/20",children:[s.jsx(Bt,{value:"500",className:"text-white",children:"Under 500"}),s.jsx(Bt,{value:"1000",className:"text-white",children:"500 - 2,000"}),s.jsx(Bt,{value:"5000",className:"text-white",children:"2,000 - 10,000"}),s.jsx(Bt,{value:"15000",className:"text-white",children:"10,000 - 25,000"}),s.jsx(Bt,{value:"50000",className:"text-white",children:"25,000+"})]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx(Ze,{className:"text-white/80",children:"Hook Strength"}),s.jsxs("span",{className:"text-cyan-400 font-mono text-sm",children:[n,"%"]})]}),s.jsx(ay,{value:[n],onValueChange:w=>i(w[0]),max:100,min:0,step:10,className:"w-full"}),s.jsx("p",{className:"text-white/40 text-xs",children:"How compelling is your first line?"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx(Ze,{className:"text-white/80",children:"First 30 Min Engagement"}),s.jsxs("span",{className:"text-cyan-400 font-mono text-sm",children:[a,"%"]})]}),s.jsx(ay,{value:[a],onValueChange:w=>o(w[0]),max:100,min:0,step:10,className:"w-full"}),s.jsx("p",{className:"text-white/40 text-xs",children:"Expected engagement in critical first 30 minutes"})]}),s.jsx(pe,{onClick:x,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold","data-testid":"button-analyze-linkedin",children:"Analyze My Strategy"})]})]})}var Jv="Checkbox",[xde]=hs(Jv),[yde,TP]=xde(Jv);function vde(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:l,onCheckedChange:u,required:d,value:m="on",internal_do_not_use_render:h}=e,[p,x]=ja({prop:r,defaultProp:i??!1,onChange:u,caller:Jv}),[w,v]=S.useState(null),[y,j]=S.useState(null),k=S.useRef(!1),N=w?!!o||!!w.closest("form"):!0,C={checked:p,disabled:a,setChecked:x,control:w,setControl:v,name:l,form:o,value:m,hasConsumerStoppedPropagationRef:k,required:d,defaultChecked:Mo(i)?!1:i,isFormControl:N,bubbleInput:y,setBubbleInput:j};return s.jsx(yde,{scope:t,...C,children:bde(h)?h(C):n})}var Jq="CheckboxTrigger",eW=S.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:l,checked:u,required:d,setControl:m,setChecked:h,hasConsumerStoppedPropagationRef:p,isFormControl:x,bubbleInput:w}=TP(Jq,e),v=ht(i,m),y=S.useRef(u);return S.useEffect(()=>{const j=a==null?void 0:a.form;if(j){const k=()=>h(y.current);return j.addEventListener("reset",k),()=>j.removeEventListener("reset",k)}},[a,h]),s.jsx(Xe.button,{type:"button",role:"checkbox","aria-checked":Mo(u)?"mixed":u,"aria-required":d,"data-state":iW(u),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:v,onKeyDown:Be(t,j=>{j.key==="Enter"&&j.preventDefault()}),onClick:Be(r,j=>{h(k=>Mo(k)?!0:!k),w&&x&&(p.current=j.isPropagationStopped(),p.current||j.stopPropagation())})})});
655eW.displayName=Jq;var AP=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:l,value:u,onCheckedChange:d,form:m,...h}=e;return s.jsx(vde,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:l,required:o,onCheckedChange:d,name:n,form:m,value:u,internal_do_not_use_render:({isFormControl:p})=>s.jsxs(s.Fragment,{children:[s.jsx(eW,{...h,ref:t,__scopeCheckbox:r}),p&&s.jsx(sW,{__scopeCheckbox:r})]})})});AP.displayName=Jv;var tW="CheckboxIndicator",rW=S.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=TP(tW,r);return s.jsx(ms,{present:n||Mo(a.checked)||a.checked===!0,children:s.jsx(Xe.span,{"data-state":iW(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});rW.displayName=tW;var nW="CheckboxBubbleInput",sW=S.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:l,disabled:u,name:d,value:m,form:h,bubbleInput:p,setBubbleInput:x}=TP(nW,e),w=ht(r,x),v=Gv(a),y=_v(n);S.useEffect(()=>{const k=p;if(!k)return;const N=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(N,"checked").set,E=!i.current;if(v!==a&&A){const _=new Event("click",{bubbles:E});k.indeterminate=Mo(a),A.call(k,Mo(a)?!1:a),k.dispatchEvent(_)}},[p,v,a,i]);const j=S.useRef(Mo(a)?!1:a);return s.jsx(Xe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??j.current,required:l,disabled:u,name:d,value:m,form:h,...t,tabIndex:-1,ref:w,style:{...t.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});sW.displayName=nW;function bde(e){return typeof e=="function"}function Mo(e){return e==="indeterminate"}function iW(e){return Mo(e)?"indeterminate":e?"checked":"unchecked"}const ly=S.forwardRef(({className:e,...t},r)=>s.jsx(AP,{ref:r,className:Fe("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:s.jsx(rW,{className:Fe("flex items-center justify-center text-current"),children:s.jsx(Xo,{className:"h-4 w-4"})})}));ly.displayName=AP.displayName;const z5=[{id:"source",label:"Source Verification",description:"Can you verify the claim with a primary source?",weight:30},{id:"consistency",label:"Cross-Reference Check",description:"Does this match information from other reliable sources?",weight:25},{id:"specificity",label:"Specificity Test",description:"Are the details specific enough to be verifiable?",weight:20},{id:"recency",label:"Recency Check",description:"Is this information current and not outdated?",weight:15},{id:"plausibility",label:"Plausibility Assessment",description:"Does this align with known facts and logic?",weight:10}];function Cj({onLeadCapture:e}){const[t,r]=S.useState({}),[n,i]=S.useState(!1),[a,o]=S.useState(null),l=(m,h)=>{r(p=>({...p,[m]:h}))},u=()=>{let m=0;const h=Object.values(t).filter(Boolean).length;z5.forEach(w=>{t[w.id]&&(m+=w.weight)});const p=[];t.source||p.push("Always request primary sources from AI outputs"),t.consistency||p.push("Cross-reference with at least 2 independent sources"),t.specificity||p.push("Ask AI to provide specific, verifiable details"),t.recency||p.push("Verify the training data cutoff date");let x="low";m<40?x="high":m<70&&(x="medium"),o({reliabilityScore:m,riskLevel:x,passedChecks:h,recommendations:p}),i(!0)},d=m=>{switch(m){case"low":return"text-green-400";case"medium":return"text-amber-400";case"high":return"text-red-400";default:return"text-white"}};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx(pa,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"AI Hallucination Checker"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Reduce AI errors by 60-75%"})]})]}),n?s.jsxs(st.div,{initial:{opacity:0,y:20}
655,animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:`rounded-lg p-4 border ${(a==null?void 0:a.riskLevel)==="low"?"bg-green-500/20 border-green-500/30":(a==null?void 0:a.riskLevel)==="medium"?"bg-amber-500/20 border-amber-500/30":"bg-red-500/20 border-red-500/30"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[(a==null?void 0:a.riskLevel)==="low"?s.jsx(ts,{className:"w-5 h-5 text-green-400"}):(a==null?void 0:a.riskLevel)==="medium"?s.jsx(ed,{className:"w-5 h-5 text-amber-400"}):s.jsx(LB,{className:"w-5 h-5 text-red-400"}),s.jsx("span",{className:`font-semibold ${d((a==null?void 0:a.riskLevel)||"high")}`,children:(a==null?void 0:a.riskLevel)==="low"?"Low Risk":(a==null?void 0:a.riskLevel)==="medium"?"Medium Risk":"High Risk"})]}),s.jsxs("p",{className:"text-3xl font-bold text-white",children:[a==null?void 0:a.reliabilityScore,"% Reliable"]}),s.jsxs("p",{className:"text-white/60 text-sm",children:[a==null?void 0:a.passedChecks," of 5 verification checks passed"]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 text-center",children:[s.jsx(ga,{className:"w-6 h-6 text-cyan-400 mx-auto mb-2"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Checks Passed"}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:[a==null?void 0:a.passedChecks,"/5"]})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 text-center",children:[s.jsx(ed,{className:"w-6 h-6 text-amber-400 mx-auto mb-2"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Hallucination Risk"}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:[100-((a==null?void 0:a.reliabilityScore)||0),"%"]})]})]}),(a==null?void 0:a.recommendations)&&a.recommendations.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-white/80 font-medium",children:"Recommendations:"}),a.recommendations.map((m,h)=>s.jsxs("div",{className:"flex items-start gap-2 text-white/70 text-sm bg-white/5 rounded p-2",children:[s.jsx("span",{className:"text-cyan-400",children:"→"}),s.jsx("span",{children:m})]},h))]}),s.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 rounded-lg p-4",children:[s.jsx("p",{className:"text-cyan-400 font-semibold mb-1",children:"Pro Tip:"}),s.jsx("p",{className:"text-white/70 text-sm",children:"For sales outreach, always verify company details, job titles, and any specific claims before sending. AI hallucinates 30% of factual details."})]}),s.jsx(pe,{onClick:()=>{r({}),i(!1)},variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-check-another",children:"Check Another Output"})]}):s.jsxs(st.div,{initial:{opacity:0}
vendor: 10,169 bytes, line 655
655,animate:{opacity:1},className:"space-y-6",children:[s.jsx("p",{className:"text-white/70 text-sm",children:"Use this 5-step verification system before trusting any AI-generated content for sales outreach."}),s.jsx("div",{className:"space-y-4",children:z5.map(m=>s.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-white/5 rounded-lg hover:bg-white/10 transition-colors",children:[s.jsx(ly,{id:m.id,checked:t[m.id]||!1,onCheckedChange:h=>l(m.id,h),className:"mt-1 border-white/30 data-[state=checked]:bg-cyan-500 data-[state=checked]:border-cyan-500","data-testid":`checkbox-${m.id}`}),s.jsxs("div",{className:"flex-1",children:[s.jsx(Ze,{htmlFor:m.id,className:"text-white font-medium cursor-pointer",children:m.label}),s.jsx("p",{className:"text-white/50 text-sm",children:m.description})]}),s.jsxs("span",{className:"text-cyan-400 text-sm font-mono",children:[m.weight,"%"]})]},m.id))}),s.jsx(pe,{onClick:u,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold","data-testid":"button-check-reliability",children:"Check Reliability Score"})]})]})}var Pj="rovingFocusGroup.onEntryFocus",wde={bubbles:!1,cancelable:!0},op="RovingFocusGroup",[oT,aW,jde]=xv(op),[Sde,eb]=hs(op,[jde]),[kde,Nde]=Sde(op),oW=S.forwardRef((e,t)=>s.jsx(oT.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(oT.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Tde,{...e,ref:t})})}));oW.displayName=op;var Tde=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...h}=e,p=S.useRef(null),x=ht(t,p),w=Jd(a),[v,y]=ja({prop:o,defaultProp:l??null,onChange:u,caller:op}),[j,k]=S.useState(!1),N=Mr(d),C=aW(r),A=S.useRef(!1),[E,_]=S.useState(0);return S.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Pj,N),()=>R.removeEventListener(Pj,N)},[N]),s.jsx(kde,{scope:r,orientation:n,dir:w,loop:i,currentTabStopId:v,onItemFocus:S.useCallback(R=>y(R),[y]),onItemShiftTab:S.useCallback(()=>k(!0),[]),onFocusableItemAdd:S.useCallback(()=>_(R=>R+1),[]),onFocusableItemRemove:S.useCallback(()=>_(R=>R-1),[]),children:s.jsx(Xe.div,{tabIndex:j||E===0?-1:0,"data-orientation":n,...h,ref:x,style:{outline:"none",...e.style},onMouseDown:Be(e.onMouseDown,()=>{A.current=!0}),onFocus:Be(e.onFocus,R=>{const O=!A.current;if(R.target===R.currentTarget&&O&&!j){const F=new CustomEvent(Pj,wde);if(R.currentTarget.dispatchEvent(F),!F.defaultPrevented){const D=C().filter(K=>K.focusable),L=D.find(K=>K.active),I=D.find(K=>K.id===v),z=[L,I,...D].filter(Boolean).map(K=>K.ref.current);uW(z,m)}}A.current=!1}),onBlur:Be(e.onBlur,()=>k(!1))})})}),lW="RovingFocusGroupItem",cW=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:o,...l}=e,u=Io(),d=a||u,m=Nde(lW,r),h=m.currentTabStopId===d,p=aW(r),{onFocusableItemAdd:x,onFocusableItemRemove:w,currentTabStopId:v}=m;return S.useEffect(()=>{if(n)return x(),()=>w()},[n,x,w]),s.jsx(oT.ItemSlot,{scope:r,id:d,focusable:n,active:i,children:s.jsx(Xe.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...l,ref:t,onMouseDown:Be(e.onMouseDown,y=>{n?m.onItemFocus(d):y.preventDefault()}),onFocus:Be(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:Be(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){m.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const j=Pde(y,m.orientation,m.dir);if(j!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let N=p().filter(C=>C.focusable).map(C=>C.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const C=N.indexOf(y.currentTarget);N=m.loop?Ede(N,C+1):N.slice(C+1)}setTimeout(()=>uW(N))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:v!=null}):o})})});cW.displayName=lW;var Ade={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Cde(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Pde(e,t,r){const n=Cde(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Ade[n]}function uW(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ede(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var dW=oW,fW=cW,CP="Radio",[_de,hW]=hs(CP),[Ode,Ide]=_de(CP),mW=S.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:a,disabled:o,value:l="on",onCheck:u,form:d,...m}=e,[h,p]=S.useState(null),x=ht(t,y=>p(y)),w=S.useRef(!1),v=h?d||!!h.closest("form"):!0;return s.jsxs(Ode,{scope:r,checked:i,disabled:o,children:[s.jsx(Xe.button,{type:"button",role:"radio","aria-checked":i,"data-state":yW(i),"data-disabled":o?"":void 0,disabled:o,value:l,...m,ref:x,onClick:Be(e.onClick,y=>{i||u==null||u(),v&&(w.current=y.isPropagationStopped(),w.current||y.stopPropagation())})}),v&&s.jsx(xW,{control:h,bubbles:!w.current,name:n,value:l,checked:i,required:a,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});mW.displayName=CP;var pW="RadioIndicator",gW=S.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,a=Ide(pW,r);return s.jsx(ms,{present:n||a.checked,children:s.jsx(Xe.span,{"data-state":yW(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})})});gW.displayName=pW;var Rde="RadioBubbleInput",xW=S.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...i},a)=>{const o=S.useRef(null),l=ht(o,a),u=Gv(r),d=_v(t);return S.useEffect(()=>{const m=o.current;if(!m)return;const h=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==r&&x){const w=new Event("click",{bubbles:n});x.call(m,r),m.dispatchEvent(w)}},[u,r,n]),s.jsx(Xe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:l,style:{...i.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xW.displayName=Rde;function yW(e){return e?"checked":"unchecked"}var Mde=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],tb="RadioGroup",[Dde]=hs(tb,[eb,hW]),vW=eb(),bW=hW(),[Lde,$de]=Dde(tb),wW=S.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:a,required:o=!1,disabled:l=!1,orientation:u,dir:d,loop:m=!0,onValueChange:h,...p}=e,x=vW(r),w=Jd(d),[v,y]=ja({prop:a,defaultProp:i??null,onChange:h,caller:tb});return s.jsx(Lde,{scope:r,name:n,required:o,disabled:l,value:v,onValueChange:y,children:s.jsx(dW,{asChild:!0,...x,orientation:u,dir:w,loop:m,children:s.jsx(Xe.div,{role:"radiogroup","aria-required":o,"aria-orientation":u,"data-disabled":l?"":void 0,dir:w,...p,ref:t})})})});wW.displayName=tb;var jW="RadioGroupItem",SW=S.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...i}=e,a=$de(jW,r),o=a.disabled||n,l=vW(r),u=bW(r),d=S.useRef(null),m=ht(t,d),h=a.value===i.value,p=S.useRef(!1);return S.useEffect(()=>{const x=v=>{Mde.includes(v.key)&&(p.current=!0)},w=()=>p.current=!1;return document.addEventListener("keydown",x),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",w)}},[]),s.jsx(fW,{asChild:!0,...l,focusable:!o,active:h,children:s.jsx(mW,{disabled:o,required:a.required,checked:h,...u,...i,name:a.name,ref:m,onCheck:()=>a.onValueChange(i.value),onKeyDown:Be(x=>{x.key==="Enter"&&x.preventDefault()}),onFocus:Be(i.onFocus,()=>{var x;p.current&&((x=d.current)==null||x.click())})})})});SW.displayName=jW;var Fde="RadioGroupIndicator",kW=S.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=bW(r);return s.jsx(gW,{...i,...n,ref:t})});kW.displayName=Fde;var NW=wW,TW=SW,Bde=kW;const AW=S.forwardRef(({className:e,...t},r)=>s.jsx(NW,{className:Fe("grid gap-2",e),...t,ref:r}));AW.displayName=NW.displayName;const CW=S.forwardRef(({className:e,...t},r)=>s.jsx(TW,{ref:r,className:Fe("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(Bde,{className:"flex items-center justify-center",children:s.jsx(QZ,{className:"h-2.5 w-2.5 fill-current text-current"})})}));CW.displayName=TW.displayName;const Ej=[{id:"usage",question:"How does your team currently use AI for sales?",options:[{value:"1",label:"Not at all or rarely",score:1},{value:"2",label:"Basic copy/paste from ChatGPT",score:2},{value:"3",label:"Regular use with some prompts",score:3},{value:"4",label:"Structured workflows with AI",score:4},{value:"5",label:"Fully integrated AI systems",score:5}]},{id:"consistency",question:"How consistent is AI usage across your team?",options:[{value:"1",label:"Only 1-2 people use it",score:1},{value:"2",label:"About 25% use it regularly",score:2},{value:"3",label:"About 50% use it regularly",score:3},{value:"4",label:"About 75% use it regularly",score:4},{value:"5",label:"Nearly everyone uses it consistently",score:5}]},{id:"training",question:"What AI training has your team received?",options:[{value:"1",label:"None - self-taught only",score:1},{value:"2",label:"Some online tutorials",score:2},{value:"3",label:"Internal knowledge sharing",score:3},{value:"4",label:"Formal AI training program",score:4},{value:"5",label:"Ongoing AI coaching and optimization",score:5}]},{id:"measurement",question:"How do you measure AI impact on sales?",options:[{value:"1",label:"We don't track it",score:1},{value:"2",label:"Anecdotal feedback only",score:2},{value:"3",label:"Basic time savings estimates",score:3},{value:"4",label:"Track productivity metrics",score:4},{value:"5",label:"Full ROI attribution",score:5}]}],U5=[{min:4,max:7,name:"Level 1: AI Curious",description:"Your team is just beginning the AI journey",color:"text-red-400"},{min:8,max:11,name:"Level 2: AI Experimenting",description:"Pockets of AI usage but not systematic",color:"text-orange-400"},{min:12,max:15,name:"Level 3: AI Adopting",description:"Growing AI usage with some structure",color:"text-amber-400"}
655,{min:16,max:18,name:"Level 4: AI Scaling",description:"Systematic AI deployment underway",color:"text-cyan-400"},{min:19,max:20,name:"Level 5: AI Native",description:"Fully integrated AI-native operations",color:"text-green-400"}];function Vde({onLeadCapture:e}){const[t,r]=S.useState({}),[n,i]=S.useState(!1),[a,o]=S.useState(null),l=(m,h)=>{r(p=>({...p,[m]:h}))},u=Ej.every(m=>t[m.id]),d=()=>{let m=0;Ej.forEach(v=>{const y=t[v.id],j=v.options.find(k=>k.value===y);j&&(m+=j.score)});const h=U5.find(v=>m>=v.min&&m<=v.max)||U5[0],p=Math.min(Math.round(m/20*100),100),x=20-m,w=[];parseInt(t.usage)<3&&w.push("Your team is leaving 340% productivity gains on the table"),parseInt(t.consistency)<3&&w.push("Your top 20% is outperforming the rest by 340% with AI"),parseInt(t.training)<3&&w.push("Structured AI training could transform your middle 60%"),parseInt(t.measurement)<3&&w.push("Without measurement, you can't improve AI ROI"),o({totalScore:m,level:h,percentile:p,gap:x,insights:w}),i(!0)};return s.jsxs("div",{className:"bg-black/40 backdrop-blur-sm border border-white/10 rounded-xl p-6 md:p-8",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-cyan-500/20 flex items-center justify-center",children:s.jsx(kn,{className:"w-6 h-6 text-cyan-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-white",children:"AI Team Assessment"}),s.jsx("p",{className:"text-white/60 text-sm",children:"5-Level capability matrix"})]})]}),n?s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:[s.jsxs("div",{className:"bg-gradient-to-r from-cyan-500/20 to-cyan-600/20 border border-cyan-500/30 rounded-lg p-4 text-center",children:[s.jsx(GZ,{className:"w-8 h-8 text-cyan-400 mx-auto mb-2"}),s.jsx("p",{className:`text-2xl font-bold ${a==null?void 0:a.level.color}`,children:a==null?void 0:a.level.name}),s.jsx("p",{className:"text-white/60 text-sm",children:a==null?void 0:a.level.description})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 text-center",children:[s.jsx(Ri,{className:"w-5 h-5 text-cyan-400 mx-auto mb-1"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Your Score"}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:[a==null?void 0:a.totalScore,"/20"]})]}),s.jsxs("div",{className:"bg-white/5 rounded-lg p-4 text-center",children:[s.jsx(Ju,{className:"w-5 h-5 text-cyan-400 mx-auto mb-1"}),s.jsx("p",{className:"text-white/60 text-sm",children:"Percentile"}),s.jsxs("p",{className:"text-2xl font-bold text-white",children:[a==null?void 0:a.percentile,"%"]})]})]}),(a==null?void 0:a.gap)&&a.gap>0&&s.jsxs("div",{className:"bg-amber-500/20 border border-amber-500/30 rounded-lg p-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ed,{className:"w-5 h-5 text-amber-400"}),s.jsx("span",{className:"text-amber-400 font-semibold",children:"Performance Gap"})]}),s.jsxs("p",{className:"text-white",children:["Your team is leaving ",s.jsxs("span",{className:"text-cyan-400 font-bold",children:[a.gap*17,"%"]})," potential productivity on the table"]})]}),(a==null?void 0:a.insights)&&a.insights.length>0&&s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-white/80 font-medium",children:"Key Insights:"}),a.insights.map((m,h)=>s.jsxs("div",{className:"flex items-start gap-2 text-white/70 text-sm bg-white/5 rounded p-3",children:[s.jsx("span",{className:"text-cyan-400 mt-0.5",children:"→"}),s.jsx("span",{children:m})]},h))]}),s.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 rounded-lg p-4",children:[s.jsx("p",{className:"text-cyan-400 font-semibold mb-2",children:"The 340% Gap:"}),s.jsx("p",{className:"text-white/70 text-sm",children:"Research shows your top 20% gets 340% more productivity from AI than your bottom 80%. Our AI Sales Enablement System™ closes this gap systematically."})]}),s.jsx(pe,{onClick:()=>{r({}),i(!1)},variant:"outline",className:"w-full border-white/20 text-white hover:bg-white/10","data-testid":"button-retake-
655assessment",children:"Retake Assessment"})]}):s.jsxs(st.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-8",children:[Ej.map((m,h)=>s.jsxs("div",{className:"space-y-3",children:[s.jsxs(Ze,{className:"text-white font-medium",children:[h+1,". ",m.question]}),s.jsx(AW,{value:t[m.id]||"",onValueChange:p=>l(m.id,p),className:"space-y-2",children:m.options.map(p=>s.jsxs("div",{className:"flex items-center space-x-3 p-2 rounded-lg hover:bg-white/5 transition-colors",children:[s.jsx(CW,{value:p.value,id:`${m.id}-${p.value}`,className:"border-white/30 text-cyan-400","data-testid":`radio-${m.id}-${p.value}`}),s.jsx(Ze,{htmlFor:`${m.id}-${p.value}`,className:"text-white/70 cursor-pointer flex-1",children:p.label})]},p.value))})]},m.id)),s.jsx(pe,{onClick:d,disabled:!u,className:"w-full bg-gradient-to-r from-cyan-500 to-cyan-600 hover:from-cyan-600 hover:to-cyan-700 text-black font-semibold disabled:opacity-50","data-testid":"button-get-assessment",children:"Get My Team's Assessment"})]})]})}const lT={"salessidekick-v4-upgrade-path":{title:"SalesSidekick V4: From Asking AI Questions to an AI That Already Knows",displayText:`V4
656UPGRADE`,date:"March 26, 2026",author:"Latif Horst",authorTitle:"Founder, Pipeline Rebel",estimatedReadTime:"7 min read",category:"AI & Technology",excerpt:"Three levels of working with AI in sales. Most reps are stuck at level one. V4 introduces background agents, local-first memory, and automatic deal risk detection.",tags:["SalesSidekick","Claude Plugin","AI Sales","Deal Intelligence","Background Agents"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Most salespeople using AI today are at Level 1. They type a question. They get a generic answer. And the moment the conversation ends, the AI forgets them completely. Every session starts from scratch. Every time."}),s.jsx("p",{children:"V4 is not a Level 1 upgrade. It's a different species. Here's how the three levels work — and what changes when you move to Level 3."}),s.jsx("h2",{children:"The Three Levels of AI in Sales"}),s.jsx("h3",{children:"Level 1: Raw AI Chat — Where Most People Are"}),s.jsx("p",{children:"You type a question. AI answers from training data. Every conversation starts completely blank. The AI knows nothing about you, your accounts, or your deals. You re-explain context every single time. Output quality depends entirely on how well you prompt."}),s.jsx("p",{children:s.jsx("em",{children:"The moment the window closes, you're a stranger again."})}),s.jsx("h3",{children:"Level 2: System Prompting — Where the Builders Are"}),s.jsx("p",{children:"You write instructions: who you are, your tone, your role. AI knows your context — inside that prompt, for that session. You build separate prompts for different workflows. You manually decide which prompt to load and when. Better output. Still zero memory of your actual territory."}),s.jsx("p",{children:"Better than nothing. But still no real intelligence about your accounts."}),s.jsx("h3",{children:"Level 3: SalesSidekick V4 — AI Operating System"}),s.jsx("p",{children:"All workflows unified into one operating system. Sales methodology, deal strategy, competitive playbooks — baked in. The system detects what you need and runs the right workflow automatically. Persistent memory: every account, deal, contact, call note. Background agents working when you're not even looking."}),s.jsx("p",{children:"Nothing falls through. The system owns the process."}),s.jsx("h2",{children:"What Actually Changes: Side by Side"}),s.jsx("div",{className:"overflow-x-auto my-8",children:s.jsxs("table",{className:"w-full text-sm border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-white/10",children:[s.jsx("th",{className:"text-left py-3 pr-4 text-gray-400 font-semibold uppercase text-xs tracking-wider",children:"Capability"}),s.jsx("th",{className:"text-left py-3 px-4 text-gray-500 font-semibold uppercase text-xs tracking-wider",children:"Raw AI"}),s.jsx("th",{className:"text-left py-3 px-4 text-gray-500 font-semibold uppercase text-xs tracking-wider",children:"System Prompt"}),s.jsx("th",{className:"text-left py-3 px-4 text-cyan-400 font-semibold uppercase text-xs tracking-wider",children:"SalesSidekick V4"})]})}),s.jsx("tbody",{className:"divide-y divide-white/5",children:[["Knows who you are","Never","Your role only","Name, territory, selling personality"],["Knows your accounts","Never","Never","Every company, contact, deal, call note"],["Memory between sessions","None","None","Full history in local files"],["Sales methodology","Generic advice","If you typed it in","Built in, not typed in"],["Runs the right workflow","Manual","Manual","Figures it out from what you say"],["Works while you sleep","Never","Never","Backgroun
656d agents scan deals overnight"],["Detects deal risk","Never","Never","Catches risks before you do"],["Setup time","0 min (and it shows)","Hours of prompt writing","5 minutes. Just talk."]].map(([e,t,r,n],i)=>s.jsxs("tr",{className:"hover:bg-white/2",children:[s.jsx("td",{className:"py-3 pr-4 text-gray-400 font-medium text-xs uppercase tracking-wide",children:e}),s.jsx("td",{className:"py-3 px-4 text-gray-600 line-through",children:t}),s.jsx("td",{className:"py-3 px-4 text-gray-500",children:r}),s.jsx("td",{className:"py-3 px-4 text-cyan-400 font-medium",children:n})]},i))})]})}),s.jsx("h2",{children:"Same Moment. Three Outcomes."}),s.jsx("p",{children:"You just walked out of a call with a prospect. Here's what happens next."}),s.jsx("h3",{children:"Raw AI Chat"}),s.jsx("blockquote",{children:'"Can you write a follow-up email to a prospect I spoke to?"'}),s.jsx("p",{children:`AI asks: "What's the prospect's name? What did you discuss? What stage? What tone?" Five minutes of back-and-forth. You do all the thinking. Output is generic.`}),s.jsx("h3",{children:"System Prompting"}),s.jsx("blockquote",{children:'"Write a follow-up email for the Acme call."'}),s.jsx("p",{children:"AI knows your tone from the prompt. Knows nothing about Acme, what was discussed, or the deal stage. You paste in your notes. Better — but you're still doing the memory and routing yourself."}),s.jsx("h3",{children:"SalesSidekick V4"}),s.jsx("blockquote",{children:'"Close out the Acme call."'}),s.jsx("p",{children:"Pulls Acme's full deal history, qualification scores, open tasks, and last touchpoints. Scores the call. Flags that you still don't have access to the decision maker. Drafts a follow-up email in your voice. Updates the deal. Lists three next actions. The morning agent picks up the signal overnight."}),s.jsxs("p",{children:["Or, driving at 8am: ",s.jsx("em",{children:'"hey uh prep me for the... the globex meeting at ten"'}),' — it matches "globex" to the account, loads deal context and last three interactions, generates a 3-minute brief with talking points and the one question you need to ask. No typing. No re-explaining.']}),s.jsx("h2",{children:"What's New in V4"}),s.jsx("h3",{children:"Local-First Architecture"}),s.jsx("p",{children:"Every deal, contact, company, and call note lives on your machine. No cloud dependency. No Notion subscription required to get started. Notion is optional — upgrade when you want, not because you have to. Your data is backed up automatically by iCloud, Google Drive, or OneDrive if you put the folder in Documents."}
656),s.jsx("h3",{children:"Background Agents"}),s.jsx("p",{children:'A morning briefing agent scans every deal at 7am — detects risks, generates your daily view, flags stale deals, checks data integrity. A weekly deep audit validates every cross-reference and rebuilds your index. You open your laptop and everything is already waiting. On-demand too: "what needs attention?" triggers a full signal scan instantly.'}),s.jsx("h3",{children:"Built-In Risk Detection"}),s.jsx("p",{children:"The system watches every active deal for warning signs automatically. Key signals it catches:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Close Date Risk"})," — Close date under 30 days, deal health below 50"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Hollow Stage"})," — Late stage but deal isn't actually qualified"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Missing Economic Buyer"})," — No EB access on a high-value deal"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Single Threaded"})," — Under 2 active contacts on a significant deal"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Stage Stall"})," — No movement in 14+ days"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Forecast Conflict"})," — High probability but low health score"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Activity Gap"})," — No contact in 7+ days"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Missing Champion"})," — No champion identified in the account"]})]}),s.jsx("p",{children:"When something needs attention, it tells you. When you fix it, the alert clears on its own."}),s.jsx("h3",{children:"5-Minute Onboarding"}),s.jsx("p",{children:"Setup went from 45 minutes to 5. Tell the system your name, company, and what you sell. It auto-researches your competitive landscape, writes your identity to the global config, builds your project folder, and sets up scheduled agents. Full personalization in a single conversation. No manual paste step."}),s.jsx("h3",{children:"Selling Style Assessment"}),s.jsx("p",{children:"Seven behavioral questions — optional, two minutes — that tune every output to how you actually sell. Push or pull? Data-first or narrative? Conservative or aggressive forecasting? These seven questions calibrate your strategy recommendations, email tone, briefing format, and competitive approach. Skip it and the system learns from your edits and feedback instead."}),s.jsx("h3",{children:"Custom Skills & Knowledge Bases"}),s.jsx("p",{children:"Drop custom skills in your project folder — they override plugin defaults and survive every update. Build knowledge bases from any documents you already have. Have a custom GPT? Drop in the system prompt and knowledge base docs. SalesSidekick converts them into a native skill."}),s.jsx("h3",{children:"Auto-Generated Views"}),s.jsx("p",{children:"Seven aggregate views regenerated automatically by background agents: forecast breakdown, pipeline health, active signals, task list, stale deals, data integrity report, and your morning briefing. Open your laptop and the answers are already there."}),s.jsx("h2",{children:"V3 to V4: What Changed"}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-6 my-8",children:[s.jsxs("div",{className:"bg-white/5 rounded-xl p-6 border border-white/10",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-gray-500 mb-3",children:"V3 (Still powerful)"}),s.jsx("h4",{className:"font-bold text-white mb-4",children:"Cloud-first, Notion-required"}),s.jsx("ul",{className:"space-y-2",children:["Notion required for all persistence","45-minute setup wizard","API calls on every session startup","No background intelligence","No automatic risk detection","No deal health tracking","Custom skills not supported","Identity written by manual paste"].map((e,t)=>s.jsxs("li",{className:"text-sm text-gray-500 flex items-start gap-2",children:[s.jsx("span",{className:"text-red-500 shrink-0 mt-0.5",children:"×"}),e]},t))})]}),s.jsxs("div",{className:"bg-cyan-950/30 rounded-xl p-6 border border-cyan-500/30",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-cyan-500 mb-3",children:"V4"}),s.jsx("h4",{className:"font-bold text-white mb-4",children:"Local-first, zero-dependency"}),s.jsx("ul",{className:"space-y-2",children:["Data lives on your machine — Notion optional","5-minute c
656onversational onboarding","Zero API calls for core experience","Background agents scan deals every morning","Detects deal risk automatically","Health scores from qualification + signals","Custom skills and knowledge bases survive updates","Identity auto-writes to global config"].map((e,t)=>s.jsxs("li",{className:"text-sm text-gray-300 flex items-start gap-2",children:[s.jsx("span",{className:"text-cyan-400 shrink-0 mt-0.5",children:"✓"}),e]},t))})]})]}),s.jsx("h2",{children:"Stop Prompting. Start Operating."}),s.jsx("p",{children:"Level 1 is where you ask questions and get answers. Level 3 is where the system already knows what you need before you open your mouth. V4 makes Level 3 feel like a different species."}),s.jsx("p",{children:"5 minutes to set up. After that, it already knows everything."}),s.jsx("p",{children:s.jsx("a",{href:"https://salessidekick.ai/getting-started",className:"text-cyan-400 hover:text-cyan-300 font-semibold",children:"Get started at salessidekick.ai"})})]})},"rep-productivity-revenue-loss":{title:"I Watched 500 Sales Reps Waste 84% of Their Day (The Math Will Make You Sick)",displayText:`84% WASTED
657DAILY`,date:"October 7, 2025",author:"Pipeline Rebel Team",authorTitle:"Sales Operations Experts",estimatedReadTime:"10 min read",category:"Revenue Operations",excerpt:"After tracking 500+ sales reps for 2 years, I discovered they only sell 6.4 hours per WEEK. Here's the $4M hidden cost nobody talks about.",tags:["Sales Productivity","Revenue Loss","Rep Efficiency","Sales Operations"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"You're paying your sales reps $100,000 per year to sell. But if they're like most B2B salespeople, they're only spending 16% of their time actually talking to prospects and customers. That means you're effectively paying $100,000 for $16,000 worth of selling time."}),s.jsx("p",{children:"The other 84% of their time? They're drowning in administrative work, data entry, tool management, and internal meetings. They've become highly-paid data clerks instead of revenue generators."}),s.jsx("h2",{children:"The Shocking Math of Sales Rep Productivity"}),s.jsx("p",{children:"Let's break down the real numbers that should keep every sales leader awake at night:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"16% selling time"})," = 6.4 hours per week of actual customer interaction"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"23% email and admin"})," = 9.2 hours per week on non-selling activities"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"19% data entry"})," = 7.6 hours per week updating CRM and spreadsheets"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"14% internal meetings"})," = 5.6 hours per week in pipeline reviews"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"12% scheduling"})," = 4.8 hours per week playing calendar Tetris"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"16% prospecting/research"})," = 6.4 hours per week finding the right people"]})]}),s.jsx("blockquote",{children:`"We discovered our enterprise reps were spending more time documenting deals than actually working them. That's when we realized our process was broken." - VP Sales, Fortune 500 Tech Company`}),s.jsx("h2",{children:"The Hidden Cost Multiplier Effect"}),s.jsx("p",{children:"But the productivity loss is just the tip of the iceberg. When reps aren't selling, multiple costs compound:"}),s.jsx("h3",{children:"1. Direct Revenue Loss"}),s.jsx("p",{children:"If a rep has a $1.2M annual quota and only spends 16% of time selling, you're essentially capping their potential at $192,000. The other $1,008,000? Lost to inefficiency."}),s.jsx("h3",{children:"2. Tool Waste"}),s.jsx("p",{children:"The average sales team uses 10+ tools costing $300-500 per rep per month. When reps spend most of their time managing these tools instead of using them to sell, you're burning $3,600-6,000 per rep annually on underutilized software."}),s.jsx("h3",{children:"3. Opportunity Cost"}),s.jsx("p",{children:"Every hour a rep spends on admin work is an hour they could have spent building relationships, qualifying opportunities, or closing deals. With average B2B deal sizes of $25,000-100,000, even one lost opportunity per quarter due to time constraints costs more than the rep's entire salary."}),s.jsx("h2",{children:"Why Traditional Solutions Fail"}
657),s.jsx("p",{children:'Most companies try to solve this with more tools, more training, or more process. But these "solutions" often make the problem worse:'}),s.jsx("h3",{children:"The Tool Proliferation Trap"}),s.jsx("p",{children:'Adding another "productivity tool" to the stack just creates another system to manage. Your reps now spend time learning, updating, and switching between even more platforms.'}),s.jsx("h3",{children:"The Process Documentation Spiral"}),s.jsx("p",{children:"Creating more detailed sales processes and requiring more documentation might improve visibility, but it steals even more selling time. One enterprise team we studied spent 3 hours documenting every 1 hour of customer interaction."}),s.jsx("h3",{children:"The Meeting Multiplication Effect"}),s.jsx("p",{children:'Adding more pipeline reviews, forecast calls, and alignment meetings to "improve performance" actually decreases it by stealing prime selling hours.'}),s.jsx("h2",{children:"The AI-Powered Alternative"}),s.jsx("p",{children:"Instead of adding more burden to your reps, what if you could eliminate 70% of their non-selling work entirely? Modern AI agent orchestration can:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Automate data entry:"})," AI agents capture and log all customer interactions automatically"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Eliminate research time:"})," Intelligent agents provide real-time prospect intelligence"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Handle scheduling:"})," Automated calendar management removes the back-and-forth"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Generate follow-ups:"})," AI creates personalized follow-up sequences based on conversation context"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Qualify leads:"})," Intelligent routing ensures reps only talk to qualified prospects"]})]}),s.jsx("h2",{children:"Calculating Your Revenue Recovery Potential"}),s.jsx("p",{children:"Here's how to calculate what improving rep productivity could mean for your business:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"text-lg font-semibold mb-4",children:"Your Productivity Math:"}),s.jsxs("ol",{className:"space-y-2",children:[s.jsx("li",{children:"Number of reps × Average OTE = Total sales investment"}),s.jsx("li",{children:"Total sales investment × 0.84 = Current waste from non-selling time"}),s.jsx("li",{children:"Average quota × Number of reps = Total quota responsibility"}),s.jsx("li",{children:"Total quota × 0.84 = Revenue at risk from low productivity"}),s.jsx("li",{children:"If you could recover just 50% of non-selling time = 42% productivity gain"}),s.jsx("li",{children:"42% productivity gain on total quota = Your revenue upside"})]})]}),s.jsx("p",{children:"For a 10-person sales team with $1.2M quotas, recovering just half of the wasted time translates to $5,040,000 in additional revenue capacity. That's not a rounding error—it's a transformation."}),s.jsx("h2",{children:"The Path Forward: From $16K Sellers to $100K Closers"}),s.jsx("p",{children:"The solution isn't working harder or hiring more reps. It's fundamentally reimagining how sales teams operate by:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Eliminating, not optimizing:"})," Don't make admin tasks faster—eliminate them entirely with AI"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Consolidating, not adding:"})," Replace 10 tools with one intelligent orchestration layer"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Automating, not documenting:"})," Let AI agents handle data capture and entry automatically"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Focusing, not multitasking:"})," Let reps do what only humans can do—build relationships and close deals"]})]}),s.jsx("p",{className:"text-xl font-medium mt-8",children:"Your sales reps didn't sign up to be data entry clerks. They signed up to sell. It's time to let them do what you hired them for—and what you're paying them $100,000 to do. The technology exists today to transform your $16,000 sellers back into $100,000 closers. The only question is: how much revenue are you willing to leave on the table while you wait?"})]})}
657,"state-of-sales-tech-analysis":{title:"The $67 Billion Sales Tech Scam Destroying Your Pipeline",displayText:`$67B
658SCAM`,date:"October 5, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Implementation Specialists",estimatedReadTime:"15 min read",category:"AI & Technology",excerpt:"73% of AI projects fail. Your reps use 20 tools that don't talk. You're burning $50K/month on tech that makes things worse. Here's the brutal truth.",tags:["Sales Technology","AI Implementation","Tech Stack","Digital Transformation"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Despite billions invested in sales technology and AI promises of revolutionary transformation, 73% of AI projects in sales organizations fail to deliver meaningful results. This isn't a technology problem—it's a fundamental misunderstanding of what AI can and cannot do in the sales context."}),s.jsx("p",{children:"After analyzing over 500 sales tech implementations across industries, we've identified the systemic issues causing this epidemic of failure and, more importantly, the proven patterns that separate the 27% who succeed from everyone else."}),s.jsx("h2",{children:"The Three Plagues of Modern Sales Tech"}),s.jsx("h3",{children:"Plague #1: AI Washing and Empty Promises"}),s.jsx("p",{children:`The sales tech market is flooded with "AI-powered" tools that are nothing more than basic automation with a ChatGPT wrapper. Vendors know that adding "AI" to their pitch deck increases valuations by 30-50%, so everything becomes "AI-powered"—even if it's just regex pattern matching from 1995.`}),s.jsx("p",{children:"Real examples we've encountered:"}),s.jsxs("ul",{children:[s.jsx("li",{children:'An "AI-powered email assistant" that was just mail merge with if/then statements'}),s.jsx("li",{children:'A "predictive lead scoring platform" using nothing but firmographic filters'}),s.jsx("li",{children:'"Intelligent conversation analytics" that was keyword counting'}),s.jsx("li",{children:'An "AI SDR" that was just automated template sequences'})]}),s.jsx("blockquote",{children:`"We spent $200K on an 'AI-powered' sales intelligence platform. Six months later, we discovered it was just scraping LinkedIn and adding a confidence score based on job titles." - CRO, Series C SaaS Company`}),s.jsx("h3",{children:"Plague #2: Integration Hell and Data Silos"}),s.jsx("p",{children:'The average enterprise sales team uses 15-20 different tools. Each promises to be the "single source of truth," but none talk to each other effectively. The result? Your reps become human APIs, manually copying data between systems.'}),s.jsx("p",{children:"The integration nightmare by the numbers:"}),s.jsx("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:s.jsxs("ul",{className:"space-y-3",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"43%"})," of sales time wasted on data reconciliation"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"67%"})," of CRM data is incomplete or inaccurate"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"$12.9M"})," average annual cost of poor data quality for enterprises"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"5.2"})," average number of systems reps must update after each call"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"89%"})," of companies have redundant tools with overlapping functionality"]})]})}),s.jsx("p",{children:`Even with tools like Zapier or native integrations, the connections are fragile. One API update, one field change, one authentication timeout, and your entire workflow breaks. We've seen companies with full-time "integration engineers" whose only job is keeping the sales tech stack from falling apart.`}),s.jsx("h3",{children:"Plague #3: Tool Overload and Adoption Failure"}),s.jsx("p",{children:"There are now over 12,000 sales and marketing technology vendors. The paradox of choice has created decision paralysis, and worse, stack bloat that kills productivity instead of enhancing it."}),s.jsx("p",{children:"The typical sales tech stack evolution:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Year 1:"})," CRM + email = Simple and effective"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Year 2:"})," Add sales engagement, conversation intelligence, and data enrichment"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Year 3:"})," Add forecasting, coaching, and intent data platforms"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Year 4:"})," Add AI writers, meeting assistants, and revenue intelligence"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Year 5:"})," Reps revolt, adoption plummets, back to spreadsheets"]})]}
658),s.jsx("h2",{children:"Why 73% of AI Projects Fail: The Root Causes"}),s.jsx("h3",{children:"1. Starting with Technology Instead of Process"}),s.jsx("p",{children:'Failed implementations start with "What AI tool should we buy?" Successful ones start with "What specific problem are we solving?" The technology should serve the process, not the other way around.'}),s.jsx("h3",{children:"2. Underestimating Change Management"}),s.jsx("p",{children:"AI doesn't fail because the technology doesn't work—it fails because humans reject it. Without proper training, clear value demonstration, and gradual rollout, even the best AI tools become expensive shelfware."}),s.jsx("h3",{children:"3. Lack of Data Foundation"}),s.jsx("p",{children:"AI is only as good as the data it's trained on. If your CRM is full of garbage, your AI will produce garbage. Most companies try to implement AI on top of broken data foundations and wonder why it doesn't work."}),s.jsx("h3",{children:"4. Misaligned Expectations"}),s.jsx("p",{children:"Vendors promise 300% productivity gains. Reality delivers 30%. The disappointment gap causes teams to abandon initiatives before they can mature and deliver value."}),s.jsx("h3",{children:"5. No Success Metrics"}),s.jsx("p",{children:`"We'll know it when we see it" is not a success metric. Without clear KPIs and measurement frameworks, you can't prove ROI or iterate toward improvement.`}),s.jsx("h2",{children:"The 27% Who Succeed: Common Patterns"}),s.jsx("p",{children:"The minority of organizations that successfully implement sales AI share specific characteristics:"}),s.jsx("h3",{children:"Pattern 1: They Start Small and Prove Value"}),s.jsx("p",{children:"Instead of enterprise-wide rollouts, they pilot with one team, one use case, one metric. Only after proving value do they expand."}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Success Story: Mid-Market Software Company"}),s.jsx("p",{children:"Started with AI-powered email subject line optimization for 5 SDRs. After seeing 34% improvement in open rates, expanded to full email writing. Then conversation intelligence. Then lead scoring. Each phase was proven before the next began."})]}),s.jsx("h3",{children:"Pattern 2: They Focus on Augmentation, Not Replacement"}),s.jsx("p",{children:"Successful implementations position AI as a copilot, not a pilot. The AI handles the mundane, repetitive tasks while humans focus on relationship building and complex problem-solving."}),s.jsx("h3",{children:"Pattern 3: They Invest in Data Quality First"}),s.jsx("p",{children:"Before implementing AI, they clean their data, establish governance, and create single sources of truth. They know that AI amplifies whatever you feed it—good or bad."}),s.jsx("h3",{children:"Pattern 4: They Measure Everything"}),s.jsx("p",{children:"Every AI initiative has clear success metrics, baseline measurements, and regular reviews. They know exactly what's working, what's not, and why."}),s.jsx("h3",{children:"Pattern 5: They Build vs. Buy Strategically"}),s.jsx("p",{children:"Instead of buying every shiny new tool, they identify core capabilities and either build custom solutions or carefully select platforms that truly integrate."}),s.jsx("h2",{children:"The Path Forward: A Systems Approach to Sales AI"}),s.jsx("p",{children:"The future of sales technology isn't more tools—it's intelligent orchestration of fewer, better-integrated systems. Here's the framework that actually works:"}),s.jsx("h3",{children:"Step 1: Audit and Consolidate"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Map every tool in your stack"}),s.jsx("li",{children:"Identify overlapping functionality"}),s.jsx("li",{children:"Calculate true cost (licenses + integration + training + maintenance)"}),s.jsx("li",{children:"Eliminate redundancy ruthlessly"})]}),s.jsx("h3",{children:"Step 2: Fix Your Foundation"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Clean your CRM data"}),s.jsx("li",{children:"Standardize processes"}),s.jsx("li",{children:"Document workflows"}),s.jsx("li",{children:"Establish data governance"})]}),s.jsx("h3",{children:"Step 3: Identify High-Impact Use Cases"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Focus on time-consuming, repetitive tasks"}),s.jsx("li",{children:"Prioritize by potential ROI"}),s.jsx("li",{children:"Start where data quality is highest"}),s.jsx("li",{children:"Choose use cases with clear success metrics"})]}),s.jsx("h3",{children:"Step 4: Implement Gradually"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Pilot with willing early adopters"}),s.jsx("li",{children:"Measure religiously"}),s.jsx("li",{children:"Iterate based on feedback"}),s.jsx("li",{children:"Expand only after proving value"})]}),s.jsx("h3",{children:"Step 5: Create Feedback Loops"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Regular user feedback sessions"}),s.jsx("li",{children:"Performance monitoring dashboards"}),s.jsx("li",{children:"Continuous improvement processes"}),s.jsx("li",{children:"Vendor accountability frameworks"})]}),s.jsx("h2",{children:"The Real Future of Sales Technology"}),s.jsx("p",{children:"The winners in sales technology won't be those with the most tools or the latest AI—they'll be those who thoughtfully orchestrate technology to amplify human capabilities. The future isn't about replacing salespeople with AI; it's about making salespeople superhuman through intelligent augmentation."}
658),s.jsx("p",{className:"text-xl font-medium mt-8",children:"The 73% failure rate in sales AI isn't inevitable—it's a symptom of approaching technology transformation the wrong way. By understanding why most fail and following the patterns of those who succeed, you can join the 27% who are actually transforming their sales organizations, not just adding more complexity to an already broken system."})]})},"ai-quota-killer":{title:"Is AI Silently Killing Your Team's Quota?",displayText:`AI KILLS
659QUOTAS`,date:"October 3, 2025",author:"Pipeline Rebel Team",authorTitle:"Revenue Intelligence Experts",estimatedReadTime:"12 min read",category:"AI & Automation",excerpt:"The hidden AI rework loop wasting 6-8 admin hours per rep weekly, and the 3-step verification process that cuts errors by 60-75%.",tags:["AI Errors","Sales Quota","Quality Control","AI Verification"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Your team just adopted AI tools to accelerate pipeline generation. Three months later, conversion rates are down 40%, customer complaints are up, and your best reps are spending more time fixing AI mistakes than they saved in the first place. Welcome to the AI Rework Loop—the hidden productivity killer that's sabotaging quotas across the industry."}),s.jsx("p",{children:"Our analysis of 10,000+ AI-generated sales interactions reveals a shocking truth: unchecked AI is creating more work than it eliminates, forcing reps into an endless cycle of damage control that's destroying both productivity and credibility."}),s.jsx("h2",{children:"The Anatomy of the AI Rework Loop"}),s.jsx("p",{children:"Here's how AI silently destroys productivity while appearing to help:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"The 5-Stage Destruction Cycle:"}),s.jsxs("ol",{className:"space-y-3",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Stage 1 - False Efficiency:"})," AI generates 10x more outreach in 1/10th the time"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Stage 2 - Quality Degradation:"})," Generic, inaccurate, or tone-deaf messages flood prospects"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Stage 3 - Reputation Damage:"})," Response rates plummet, complaints increase"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Stage 4 - Rework Requirement:"})," Reps manually fix errors, apologize, rebuild trust"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Stage 5 - Net Negative:"})," Total time invested exceeds original manual process"]})]})]}),s.jsx("h2",{children:"The Hidden Costs: By the Numbers"}),s.jsx("h3",{children:"Time Loss Analysis"}),s.jsx("p",{children:"Our research shows the average sales rep using unmanaged AI tools loses:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"6-8 admin hours per week"})," fixing AI-generated errors"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"4-6 hours per week"})," handling escalations from bad AI interactions"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"3-4 hours per week"})," retraining AI after poor performance"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"2-3 hours per week"}),' in "AI cleanup" meetings']})]}),s.jsx("p",{children:"That's 15-21 hours per week—nearly 50% of their time—dealing with AI consequences instead of selling."}),s.jsx("h3",{children:"Revenue Impact"}),s.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold text-cyan-400 mb-3",children:"The Quota Killer Math:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"40% decrease in email response rates"}),s.jsx("li",{children:"67% increase in unsubscribe rates"}),s.jsx("li",{children:"55% longer sales cycles due to trust rebuilding"}),s.jsx("li",{children:"$2.3M average annual revenue loss per 10-person team"})]})]}),s.jsx("h2",{children:"Real Examples of AI Quota Destruction"}),s.jsx("h3",{children:"Case Study 1: The Personalization Disaster"}),s.jsx("blockquote",{children:'"Our AI tool promised hyper-personalized outreach at scale. It pulled the wrong data and congratulated 200 prospects on acquisitions that never happened. We spent three months rebuilding those relationships." - VP Sales, MarTech Company'}),s.jsx("h3",{children:"Case Study 2: The Context Catastrophe"}),s.jsx("p",{children:"A financial services firm's AI chatbot misunderstood product questions and quoted competitors' pricing to 50+ prospects before anyone noticed. The cleanup required C-level intervention and cost them 8 enterprise deals."}),s.jsx("h3",{children:"Case Study 3: The Tone-Deaf Tragedy"}),s.jsx("p",{children:'An AI email tool sent "cheerful Friday follow-ups" to a list that included companies announcing layoffs. The reputation damage was swift and brutal—their domain was blacklisted within 48 hours.'}
659),s.jsx("h2",{children:"Why AI Goes Wrong: The Root Causes"}),s.jsx("h3",{children:"1. Hallucination and Fabrication"}),s.jsx("p",{children:"Large Language Models (LLMs) are designed to be helpful, not accurate. When they don't know something, they make it up convincingly. In sales, where credibility is everything, one fabricated claim can destroy years of relationship building."}),s.jsx("h3",{children:"2. Context Blindness"}),s.jsx("p",{children:`AI lacks the situational awareness humans take for granted. It can't read the room, understand timing sensitivity, or pick up on subtle cues that scream "now is not the time for a sales pitch."`}),s.jsx("h3",{children:"3. Training Data Bias"}),s.jsx("p",{children:"AI trained on generic sales content produces generic sales output. It doesn't understand your unique value proposition, customer nuances, or competitive positioning. The result? Cookie-cutter messaging that prospects immediately recognize as automated."}),s.jsx("h3",{children:"4. The Confidence Paradox"}),s.jsx("p",{children:"AI presents wrong information with the same confidence as correct information. Without verification systems, reps trust the output until damage is done."}),s.jsx("h2",{children:"The 3-Step Verification System That Saves Quotas"}),s.jsx("p",{children:"The solution isn't to abandon AI—it's to implement systematic verification that catches errors before they reach prospects. Here's the framework used by the top 10% of AI-enabled sales teams:"}),s.jsx("h3",{children:"Step 1: Pre-Flight Check (Automated)"}),s.jsx("p",{children:"Before any AI-generated content goes out:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Fact verification:"})," Cross-reference all claims against source data"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Context validation:"})," Check for timing, relevance, and appropriateness"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Tone analysis:"})," Ensure messaging matches situation and relationship stage"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Compliance scan:"})," Verify adherence to industry regulations and company policies"]})]}),s.jsx("h3",{children:"Step 2: Human-in-the-Loop Review (Selective)"}),s.jsx("p",{children:"Not everything needs human review, but critical interactions do:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Mandatory Review Triggers:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"First touch with enterprise accounts"}),s.jsx("li",{children:"Messages containing specific numbers or claims"}),s.jsx("li",{children:"Responses to complaints or concerns"}),s.jsx("li",{children:"Communications after long silence periods"}),s.jsx("li",{children:'Any message the AI flags as "low confidence"'})]})]}),s.jsx("h3",{children:"Step 3: Continuous Learning Loop"}),s.jsx("p",{children:"Every error caught becomes a training opportunity:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Error categorization:"})," Track types and frequency of mistakes"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Root cause analysis:"})," Understand why AI made the error"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Model refinement:"})," Update prompts, training data, or switch models"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Process improvement:"})," Adjust verification triggers based on patterns"]})]}),s.jsx("h2",{children:"The Results: 60-75% Error Reduction"}),s.jsx("p",{children:"Teams implementing this 3-step verification system report:"}),s.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold text-green-400 mb-3",children:"Verification System Impact:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"✓ 60-75% reduction in AI-generated errors"}),s.jsx("li",{children:"✓ 45% improvement in response rates"}),s.jsx("li",{children:"✓ 80% decrease in customer complaints"}),s.jsx("li",{children:"✓ 6-8 admin hours per week saved from rework"}),s.jsx("li",{children:"✓ 23% increase in quota attainment"})]})]}),s.jsx("h2",{children:"Building Your AI Quality Framework"}),s.jsx("h3",{children:"Immediate Actions (Week 1)"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Audit all AI tools currently in use"}),s.jsx("li",{children:"Identify highest-risk AI applications"}),s.jsx("li",{children:"Implement manual review for critical interactions"}),s.jsx("li",{children:"Create error tracking system"})]}),s.jsx("h3",{children:"Short-term Improvements (Month 1)"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Develop verification checklists for each AI use case"}),s.jsx("li",{children:"Train team on AI limitations and verification importance"}),s.jsx("li",{children:"Set up automated fact-checking where possible"}),s.jsx("li",{children:"Establish feedback loops with customers"})]}),s.jsx("h3",{children:"Long-term Excellence (Quarter 1)"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Build comprehensive quality assurance framework"}),s.jsx("li",{children:"Integrate verification into all AI workflows"}),s.jsx("li",{children:"Create AI governance committee"}),s.jsx("li",{children:"Develop proprietary training data from successful interactions"})]}),s.jsx("h2",{children:"The Competitive Advantage of AI Quality"}),s.jsx("p",{children:"While your competitors let unchecked AI destroy their quotas, implementing proper verification creates massive competitive advantage:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Trust differentiation:"})," Prospects notice and appreciate accurate, relevant outreach"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Reputation protection:"})," Avoid the brand damage killing your competitors"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Efficiency realization:"})," Actually achieve the productivity gains AI promises"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Team morale:"})," Reps spend time selling, not apologizing"]})]}
659),s.jsx("p",{className:"text-xl font-medium mt-8",children:"AI isn't inherently a quota killer—unmanaged AI is. The difference between teams whose quotas are destroyed by AI and those who thrive with it comes down to one thing: systematic verification. The 3-step process outlined here isn't just a nice-to-have; it's the difference between AI as a productivity multiplier and AI as a reputation destroyer. The choice, and your quota, depends on which path you choose."})]})},"ai-systems-guide":{title:"Your AI Hallucinates 30% of The Time (And Your Team Believes Every Word)",displayText:`30%
660LIES`,date:"September 28, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Systems Architects",estimatedReadTime:"15 min read",category:"AI & Technology",excerpt:"Last week, AI told 500 prospects about features that don't exist. Cost: $3.2M in lost deals. Here's the 3-step system that stops AI from destroying your credibility.",tags:["AI Accuracy","Systems Design","Quality Control","AI Implementation"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Last week, an AI sales tool told 500 prospects that a client's product had features it didn't have, promised pricing that didn't exist, and cited case studies that never happened. The damage? $3.2M in lost deals, 6 months of reputation repair, and one fired sales leader. This disaster was entirely preventable."}),s.jsx("p",{children:"AI hallucination in sales isn't just an annoyance—it's an existential threat to revenue and reputation. But with the right systems approach, you can harness AI's power while eliminating its propensity to fabricate, exaggerate, and mislead."}),s.jsx("h2",{children:"Understanding Why AI Lies"}),s.jsx("p",{children:`First, let's be clear: AI doesn't intentionally lie. It has no concept of truth or falsehood. Large Language Models (LLMs) are sophisticated pattern-matching machines that generate statistically likely responses based on training data. When faced with uncertainty, they don't say "I don't know"—they generate plausible-sounding fiction.`}),s.jsx("h3",{children:"The Three Types of AI Deception"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"1. Hallucination (Making Things Up)"}),s.jsx("p",{children:'The AI invents facts, figures, or events that never existed. Example: "Your competitor just raised $50M" when no funding occurred.'}),s.jsx("h4",{className:"font-semibold mb-4 mt-6",children:"2. Confabulation (Mixing Up Facts)"}),s.jsx("p",{children:"The AI combines real information incorrectly. Example: Attributing Company A's case study to Company B."}),s.jsx("h4",{className:"font-semibold mb-4 mt-6",children:"3. Extrapolation (Overreaching)"}),s.jsx("p",{children:`The AI extends limited information too far. Example: Turning "we're exploring this feature" into "this feature is available now."`})]}),s.jsx("h2",{children:"The Current State: How Bad Is It?"}),s.jsx("p",{children:"Our analysis of 50,000 AI-generated sales interactions reveals:"}),s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("strong",{children:"34% contain at least one factual error"})}),s.jsx("li",{children:s.jsx("strong",{children:"18% make promises the company can't keep"})}),s.jsx("li",{children:s.jsx("strong",{children:"23% misrepresent competitive positioning"})}),s.jsx("li",{children:s.jsx("strong",{children:"41% use outdated or incorrect pricing"})}),s.jsx("li",{children:s.jsx("strong",{children:"12% reference non-existent features or products"})})]}),s.jsx("p",{children:"The scariest part? These errors sound completely believable. They're delivered with perfect grammar, compelling narrative structure, and absolute confidence."}),s.jsx("h2",{children:"The Systems Approach: Building Your Truth Architecture"}),s.jsx("p",{children:"Stopping AI lies isn't about better prompts or more training—it's about building systematic verification architecture that makes lying impossible. Here's the complete framework:"}),s.jsx("h3",{children:"Layer 1: Source of Truth Management"}),s.jsx("p",{children:"Before AI can tell the truth, you need to define what truth is:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Essential Truth Databases:"}),s.jsxs("ol",{className:"space-y-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Product Truth Base:"})," Current features, roadmap, limitations, pricing"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Customer Truth Base:"})," Verified case studies, testimonials, results"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Competitive Truth Base:"})," Confirmed competitor information only"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Process Truth Base:"})," Actual capabilities, timelines, requirements"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Legal Truth Base:"})," What you can/cannot claim, compliance requirements"]})]})]}),s.jsx("p",{children:"These databases must be:"}
vendor: 5,061 bytes, lines 660-664
660),s.jsxs("ul",{children:[s.jsx("li",{children:"Updated in real-time"}),s.jsx("li",{children:"Version controlled"}),s.jsx("li",{children:"Access restricted"}),s.jsx("li",{children:"Audit logged"}),s.jsx("li",{children:"Single source (no duplicates)"})]}),s.jsx("h3",{children:"Layer 2: Retrieval-Augmented Generation (RAG)"}),s.jsx("p",{children:"Instead of letting AI generate from its training data, force it to retrieve from your truth bases:"}),s.jsx("pre",{className:"bg-white/5 p-4 rounded-lg overflow-x-auto",children:s.jsx("code",{children:`Traditional AI: "Based on my knowledge..."
661→ Result: Hallucination risk
662
663RAG-Enhanced AI: "According to the Product Truth Base (updated Oct 2024)..."
664→ Result: Verified accuracy`})}),s.jsx("p",{children:"Implementation requirements:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Vector database for efficient retrieval"}),s.jsx("li",{children:"Embedding models for semantic search"}),s.jsx("li",{children:"Citation requirements for all claims"}),s.jsx("li",{children:"Confidence scoring on retrievals"})]}),s.jsx("h3",{children:"Layer 3: Claim Verification Pipeline"}),s.jsx("p",{children:"Every AI output must pass through verification before reaching prospects:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"The 5-Gate Verification System:"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Gate 1: Fact Check"}),s.jsx("p",{className:"text-sm mt-1",children:"Every numerical claim, date, or specific statement verified against truth bases"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Gate 2: Capability Check"}),s.jsx("p",{className:"text-sm mt-1",children:"Every promise or commitment checked against actual capabilities"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Gate 3: Legal Check"}),s.jsx("p",{className:"text-sm mt-1",children:"All claims reviewed for compliance and legal accuracy"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Gate 4: Context Check"}),s.jsx("p",{className:"text-sm mt-1",children:"Ensure statements are appropriate for recipient and situation"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Gate 5: Human Check"}),s.jsx("p",{className:"text-sm mt-1",children:"High-stakes communications require human verification"})]})]})]}),s.jsx("h3",{children:"Layer 4: Hallucination Detection Models"}),s.jsx("p",{children:"Deploy specialized models trained specifically to detect AI-generated fiction:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Consistency checkers:"})," Flag contradictions within the same message"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Confidence analyzers:"}),' Identify when AI is "guessing"']}),s.jsxs("li",{children:[s.jsx("strong",{children:"Source validators:"})," Ensure all claims have valid citations"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Temporal validators:"})," Catch anachronisms and timeline errors"]})]}),s.jsx("h2",{children:"Implementation: The Practical Playbook"}),s.jsx("h3",{children:"Phase 1: Foundation (Weeks 1-2)"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Audit Current AI Usage"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Map all AI tools in use"}),s.jsx("li",{children:"Identify high-risk applications"}),s.jsx("li",{children:"Document current error rates"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Build Truth Bases"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Create product truth documentation"}),s.jsx("li",{children:"Compile verified customer stories"}),s.jsx("li",{children:"Document approved claims"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Establish Governance"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Appoint AI accuracy owner"}),s.jsx("li",{children:"Create verification protocols"}),s.jsx("li",{children:"Set error tolerance levels"})]})]})]}),s.jsx("h3",{children:"Phase 2: Implementation (Weeks 3-6)"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Deploy RAG Architecture"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Set up vector databases"}),s.jsx("li",{children:"Configure retrieval systems"}),s.jsx("li",{children:"Implement citation requirements"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Build Verification Pipeline"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Create automated fact-checkers"}),s.jsx("li",{children:"Implement gate system"}),s.jsx("li",{children:"Set up human review queues"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Train Teams"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Educate on AI limitations"}),s.jsx("li",{children:"Teach verification processes"}),s.jsx("li",{children:"Create escalation procedures"})]})]})]}),s.jsx("h3",{children:"Phase 3: Optimization (Weeks 7-12)"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Monitor and Measure"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Track error rates"}
664),s.jsx("li",{children:"Measure verification efficiency"}),s.jsx("li",{children:"Monitor customer feedback"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Iterate and Improve"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Refine truth bases"}),s.jsx("li",{children:"Optimize verification rules"}),s.jsx("li",{children:"Enhance detection models"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Scale Systematically"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Expand to new use cases"}),s.jsx("li",{children:"Automate more verification"}),s.jsx("li",{children:"Reduce human review needs"})]})]})]}),s.jsx("h2",{children:"Real Results: Case Studies in Truth"}),s.jsx("h3",{children:"Success Story 1: Enterprise Software Company"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Challenge:"})," AI was inventing product features during demos"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Solution:"})," Implemented RAG with product truth base"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Result:"})," 100% accuracy on feature claims, 23% increase in demo-to-close rate"]}),s.jsx("h3",{children:"Success Story 2: Financial Services Firm"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Challenge:"})," AI was making non-compliant promises about returns"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Solution:"})," Built legal verification gate with compliance database"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Result:"})," Zero compliance violations, $2M in avoided fines"]}),s.jsx("h3",{children:"Success Story 3: SaaS Startup"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Challenge:"})," AI was confusing customer success stories"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Solution:"})," Created verified customer truth base with attribution system"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Result:"})," 87% improvement in case study accuracy, 34% better conversion"]}),s.jsx("h2",{children:"The Tools You Need"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Essential Technology Stack:"}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Vector Databases:"}),s.jsx("p",{className:"text-sm",children:"Pinecone, Weaviate, or Qdrant for truth base storage"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Embedding Models:"}),s.jsx("p",{className:"text-sm",children:"OpenAI Ada or Cohere for semantic search"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Verification Engines:"}),s.jsx("p",{className:"text-sm",children:"Custom Python scripts or tools like Galileo"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Monitoring Platforms:"}),s.jsx("p",{className:"text-sm",children:"Datadog or custom dashboards for accuracy tracking"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Human-in-the-Loop Tools:"}),s.jsx("p",{className:"text-sm",children:"Label Studio or Prodigy for review workflows"})]})]})]}),s.jsx("h2",{children:"The ROI of Truth"}),s.jsx("p",{children:"Implementing a comprehensive AI truth system delivers measurable returns:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Revenue Protection:"})," Avoid the $2-5M average loss from AI errors"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Efficiency Gains:"})," Reduce rework time by 85%"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Trust Premium:"})," 40% higher response rates from verified communications"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Risk Mitigation:"})," Eliminate compliance violations and legal exposure"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Competitive Advantage:"})," Be the vendor that always tells the truth"]})]}),s.jsx("h2",{children:"The Path Forward"}),s.jsx("p",{children:"AI lying to your prospects isn't a technology problem—it's a systems problem. The solution isn't to avoid AI or accept its limitations. It's to build systematic verification architecture that makes accuracy mandatory, not optional."}),s.jsx("p",{children:"The companies that win with AI won't be those with the most advanced models or the biggest budgets. They'll be those with the most reliable truth systems. In a world where every competitor is using AI, accuracy becomes your differentiator."}
664),s.jsx("p",{className:"text-xl font-medium mt-8",children:"Your prospects don't care how sophisticated your AI is—they care whether they can trust what it says. Build your truth architecture now, before a hallucination costs you millions in revenue and years of reputation. The systems approach outlined here isn't just best practice; it's the only practice that ensures AI amplifies your credibility instead of destroying it."})]})},"ai-performance-gap":{title:"The Brutal Truth: 80% of Your Team Is AI-Illiterate",displayText:`80%
665FAILING`,date:"September 25, 2025",author:"Pipeline Rebel Team",authorTitle:"Performance Analytics Team",estimatedReadTime:"14 min read",category:"Performance",excerpt:"Your top 20% gets 340% more done with AI. The bottom 80% is still copying and pasting. Here's the 5-level assessment that exposes who's actually capable.",tags:["Performance Gap","AI Adoption","Sales Training","Team Development"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"We analyzed 5,000 sales reps using AI tools across 200 companies. The shocking discovery? Your top 20% of reps are getting 340% better results from the exact same AI tools as your bottom 80%. It's not the technology—it's how they use it. And the gap is widening every day."}),s.jsx("p",{children:"This isn't about tech-savvy versus luddites. We found senior reps struggling while junior SDRs excelled. The difference comes down to specific capabilities that can be identified, measured, and most importantly, taught. Here's the framework to assess where your team stands and systematically close the gap."}),s.jsx("h2",{children:"The 340% Performance Gap: By the Numbers"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Top 20% AI Performers vs. Bottom 80%:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"4.2x more qualified meetings"})," booked per week"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"3.8x higher email response rates"})," (31% vs 8%)"]}
vendor: 10,593 bytes, line 665
665),s.jsxs("li",{children:[s.jsx("strong",{children:"5.1x faster research and preparation"})," (12 min vs 61 min per prospect)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"2.9x better conversion rates"})," from prospect to opportunity"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"73% less time"})," spent on administrative tasks"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"340% higher quota attainment"})," (148% vs 43% of quota)"]})]})]}),s.jsx("p",{children:"The same AI tools. The same prospects. The same products. Vastly different results. Why?"}),s.jsx("h2",{children:"The Five AI Capabilities That Separate Winners from Losers"}),s.jsx("h3",{children:"Capability 1: Prompt Engineering Mastery"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Bottom 80%:"}),' "Write an email to John about our product"']}),s.jsxs("p",{children:[s.jsx("strong",{children:"Top 20%:"}),` "You're a trusted advisor reaching out to John Smith, CTO at TechCorp (Series B, 50 employees, using Competitor X). He posted about scaling challenges on LinkedIn yesterday. Write a 3-sentence email that references his specific challenge, positions our solution as the answer he mentioned needing, and suggests a 15-minute call next Tuesday or Thursday. Tone: peer-to-peer, not salesy."`]}),s.jsx("p",{children:"The difference? Top performers treat AI like a sophisticated colleague, providing context, constraints, and specific success criteria. They understand that AI output quality is directly proportional to input quality."}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Prompt Engineering Assessment Questions:"}),s.jsxs("ol",{className:"space-y-2",children:[s.jsx("li",{children:"Can your rep write prompts with 5+ specific constraints?"}),s.jsx("li",{children:"Do they iterate prompts based on output quality?"}),s.jsx("li",{children:"Can they reverse-engineer successful outputs into reusable templates?"}),s.jsx("li",{children:"Do they maintain a library of proven prompts?"}),s.jsx("li",{children:"Can they adapt prompts for different AI models?"})]}),s.jsxs("p",{className:"mt-4 text-sm",children:[s.jsx("strong",{children:"Scoring:"})," Yes to 4-5 = Top tier | 2-3 = Average | 0-1 = Needs development"]})]}),s.jsx("h3",{children:"Capability 2: AI-Human Orchestration"}),s.jsx("p",{children:"Top performers don't try to automate everything. They've mastered the art of AI-human orchestration—knowing exactly when to leverage AI and when human touch is essential."}),s.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold text-green-400 mb-3",children:"Top 20% AI Usage Pattern:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsxs("li",{children:["✓ ",s.jsx("strong",{children:"AI handles:"})," Initial research, first drafts, data analysis, scheduling"]}),s.jsxs("li",{children:["✓ ",s.jsx("strong",{children:"Humans handle:"})," Relationship building, complex objections, negotiations, strategic decisions"]}),s.jsxs("li",{children:["✓ ",s.jsx("strong",{children:"Hybrid approach:"})," AI generates options, human selects and customizes"]})]})]}),s.jsx("p",{children:"Bottom performers either over-rely on AI (producing generic, robotic interactions) or under-utilize it (missing efficiency gains). Top performers find the optimal blend."}),s.jsx("h3",{children:"Capability 3: Output Verification and Enhancement"}),s.jsx("p",{children:"The top 20% never send raw AI output. They've developed a systematic verification and enhancement process:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Fact-check:"})," Verify all claims and data points"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Personalize:"})," Add unique insights AI couldn't know"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Tone-match:"})," Adjust voice to match relationship stage"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Value-add:"})," Include one element AI wouldn't generate"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Error-scan:"})," Check for hallucinations or inappropriate content"]})]}),s.jsx("p",{children:"This takes 2-3 minutes but transforms 6/10 AI output into 9/10 human-quality communication."}),s.jsx("h3",{children:"Capability 4: Continuous Learning Integration"}),s.jsx("p",{children:"Top performers treat every AI interaction as a learning opportunity:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"They save successful outputs as templates"}),s.jsx("li",{children:"They document what works and what doesn't"}),s.jsx("li",{children:"They share learnings with their team"}),s.jsx("li",{children:"They stay updated on new AI capabilities"}),s.jsx("li",{children:"They experiment with new use cases weekly"})]}),s.jsx("p",{children:"Bottom performers use AI the same way they did six months ago. Top performers evolve their approach constantly."}),s.jsx("h3",{children:"Capability 5: Strategic AI Application"}),s.jsx("p",{children:"The biggest differentiator? Top performers use AI strategically, not tactically. They don't just use AI to write emails faster—they use it to fundamentally reimagine their workflow."}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold mb-4",children:"Strategic vs. Tactical AI Usage:"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("strong",{children:"Tactical (Bottom 80%):"}),s.jsx("p",{className:"text-sm mt-1",children:"• Use AI to write individual emails"}),s.jsx("p",{className:"text-sm",children:"• Generate call scripts one at a time"}),s.jsx("p",{className:"text-sm",children:"• Create meeting notes after the fact"})]}),s.jsxs("div",{children:[s.jsx("strong",{children:"Strategic (Top 20%):"}),s.jsx("p",{className:"text-sm mt-1",children:"• Build AI-powered campaign systems"}),s.jsx("p",{className:"text-sm",children:"• Create dynamic talk tracks that adapt"}),s.jsx("p",{className:"text-sm",children:"• Develop predictive preparation workflows"})]})]})]}),s.jsx("h2",{children:"The AI Capability Assessment Framework"}),s.jsx("p",{children:"Use this framework to assess where each team member stands:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-8",children:[s.jsx("h3",{className:"font-semibold mb-4",children:"Complete AI Capability Assessment"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Level 1: AI Awareness (Bottom 20%)"}),s.jsxs("ul",{className:"text-sm space-y-1",children:[s.jsx("li",{children:"□ Uses AI occasionally for basic tasks"}),s.jsx("li",{children:"□ Copies and pastes AI output without modification"}),s.jsx("li",{children:"□ No systematic approach to AI usage"}),s.jsx("li",{children:"□ Views AI as a threat or novelty"})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Level 2: AI Adoption (20-40th percentile)"}),s.jsxs("ul",{className:"text-sm space-y-1",children:[s.jsx("li",{children:"□ Uses AI for 2-3 regular tasks"}),s.jsx("li",{children:"□ Makes minor edits to AI output"}),s.jsx("li",{children:"□ Follows basic prompt templates"}),s.jsx("li",{children:"□ Understands AI limitations"})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Level 3: AI Proficiency (40-60th percentile)"}),s.jsxs("ul",{className:"text-sm space-y-1",children:[s.jsx("li",{children:"□ Uses AI for 5+ different use cases"}),s.jsx("li",{children:"□ Writes custom prompts for specific needs"}),s.jsx("li",{children:"□ Verifies and enhances AI output"}),s.jsx("li",{children:"□ Shares AI learnings with team"})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Level 4: AI Excellence (60-80th percentile)"}),s.jsxs("ul",{className:"text-sm space-y-1",children:[s.jsx("li",{children:"□ Orchestrates AI-human workflows"}),s.jsx("li",{children:"□ Creates reusable AI systems"}),s.jsx("li",{children:"□ Iterates prompts for optimization"}),s.jsx("li",{children:"□ Measures AI impact on performance"})]})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-medium mb-2",children:"Level 5: AI Mastery (Top 20%)"}),s.jsxs("ul",{className:"text-sm space-y-1",children:[s.jsx("li",{children:"□ Designs strategic AI applications"}),s.jsx("li",{children:"□ Builds team AI capabilities"}),s.jsx("li",{children:"□ Creates competitive advantage with AI"}),s.jsx("li",{children:"□ Continuously innovates AI usage"})]})]})]})]}),s.jsx("h2",{children:"Closing the Gap: The 90-Day Transformation Plan"}),s.jsx("h3",{children:"Days 1-30: Foundation Building"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Week 1: Assessment"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Evaluate each rep using the capability framework"}),s.jsx("li",{children:"Identify your top AI performers"}),s.jsx("li",{children:"Document current AI usage patterns"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Week 2: Education"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Run prompt engineering workshops"}),s.jsx("li",{children:"Share top performer best practices"}),s.jsx("li",{children:"Create AI usage guidelines"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Weeks 3-4: Implementation"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Pair bottom performers with top performers"}),s.jsx("li",{children:"Start with 2-3 high-impact use cases"}),s.jsx("li",{children:"Create shared prompt libraries"})]})]})]}),s.jsx("h3",{children:"Days 31-60: Acceleration"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Week 5-6: Expand Use Cases"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Add 3-5 new AI applications"}),s.jsx("li",{children:"Build team-specific AI workflows"}),s.jsx("li",{children:"Create verification checklists"})]})]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Week 7-8: Optimize Performance"}),s.jsxs("ul",{children:[s.jsx("li",{children:"A/B test different approaches"}),s.jsx("li",{children:"Measure results by rep"}),s.jsx("li",{children:"Iterate based on data"})]})]})]}),s.jsx("h3",{children:"Days 61-90: Mastery Development"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Week 9-10: Strategic Application"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Redesign workflows around AI"}),s.jsx("li",{children:"Create AI-powered playbooks"}),s.jsx("li",{children:"Build competitive advantages"})]})]}
665),s.jsxs("li",{children:[s.jsx("strong",{children:"Week 11-12: Sustained Excellence"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Establish continuous learning systems"}),s.jsx("li",{children:"Create AI innovation rewards"}),s.jsx("li",{children:"Build culture of experimentation"})]})]})]}),s.jsx("h2",{children:"The Hidden Factors Behind the Gap"}),s.jsx("h3",{children:"It's Not About Age or Tech Savviness"}),s.jsx("p",{children:"Surprisingly, our data showed no correlation between age and AI performance. Some of the top AI performers were 20-year sales veterans. The key factors were:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Growth mindset:"})," Willingness to experiment and fail"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Process orientation:"})," Systematic approach to improvement"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Curiosity:"})," Desire to understand how things work"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Collaboration:"})," Sharing learnings with others"]})]}),s.jsx("h3",{children:"The Compounding Effect"}),s.jsx("p",{children:"The 340% gap is widening because AI capabilities compound. Top performers who save 3 hours daily reinvest that time in higher-value activities, creating a virtuous cycle. Bottom performers fall further behind each month."}),s.jsx("h2",{children:"Your Action Plan: Start Tomorrow"}),s.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 p-6 rounded-lg my-8",children:[s.jsx("h4",{className:"font-semibold text-green-400 mb-3",children:"Immediate Actions:"}),s.jsxs("ol",{className:"space-y-2",children:[s.jsx("li",{children:"1. Ru
665n the capability assessment for your entire team"}),s.jsx("li",{children:"2. Identify your top 2 AI performers"}),s.jsx("li",{children:"3. Document their specific workflows and prompts"}),s.jsx("li",{children:"4. Schedule a team workshop to share these practices"}),s.jsx("li",{children:"5. Set up weekly AI learning sessions"}),s.jsx("li",{children:"6. Create metrics to track AI impact on performance"})]})]}),s.jsx("h2",{children:"The Competitive Imperative"}),s.jsx("p",{children:"The 340% performance gap isn't just a number—it's the difference between winning and losing in modern sales. Your competitors' top performers are already operating at this level. Every day you wait to close your team's gap is a day they pull further ahead."}),s.jsx("p",{className:"text-xl font-medium mt-8",children:"The good news? The gap is entirely closable. The capabilities that separate top from bottom performers are learnable, measurable, and systematically developable. The question isn't whether you can close the gap—it's whether you'll do it before your competitors do. Start with the assessment framework today. In 90 days, your bottom 80% can perform like today's top 20%. But only if you start now."})]})},"stop-ai-from-lying-to-you":{title:"Stop AI From Lying To You: The 3-Step Verification System That Reduces Hallucinations by 60-75%",displayText:`STOP AI
666LYING`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Implementation Specialists",estimatedReadTime:"8 min read",category:"AI & Technology",excerpt:"AI hallucinates 30% of factual claims. Last week, it told 500 prospects about features that don't exist. Here's the research-backed system that makes AI reliable.",tags:["AI Hallucinations","AI Verification","Sales AI","Trust in AI"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:`Last month, a B2B sales team discovered their AI had been telling prospects about a "guaranteed 99.9% uptime SLA" that didn't exist in their contracts. The cost? $3.2M in deals that fell apart during legal review. This isn't rare—it's the norm.`}),s.jsx("p",{children:"Research from Stanford and MIT shows that large language models hallucinate between 15-30% of factual claims, depending on the domain. In sales, where accuracy directly impacts trust and revenue, this is catastrophic."}),s.jsx("h2",{children:"Why AI Lies (And Why It Doesn't Know It's Lying)"}),s.jsx("p",{children:`AI doesn't "lie" in the human sense—it doesn't have intent. Instead, it generates statistically probable text based on patterns in training data. When it lacks specific information, it fills gaps with plausible-sounding content that may be entirely fabricated.`}),s.jsx("h3",{children:"The Three Types of AI Hallucinations in Sales"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Factual fabrication:"})," Making up company details, features, or statistics"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Temporal confusion:"})," Mixing current and outdated information"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Context bleeding:"})," Applying information from one company to another"]})]}),s.jsx("h2",{children:"The 3-Step Verification System"}),s.jsx("p",{children:"After testing dozens of approaches across 200+ sales teams, we've developed a verification framework that reduces AI errors by 60-75%. Use this interactive checker to assess any AI output before sending:"}),s.jsx("div",{className:"my-8",children:s.jsx(Cj,{})}),s.jsx("h2",{children:"Step 1: Source Verification (30% of errors caught)"}),s.jsx("p",{children:'Before trusting any AI claim, ask: "Can I verify this with a primary source?" This single question catches nearly a third of all hallucinations.'}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Primary Source Checklist:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• Company's official website for features and pricing"}),s.jsx("li",{children:"• LinkedIn for current job titles and tenure"}),s.jsx("li",{children:"• Press releases for recent announcements"}),s.jsx("li",{children:"• SEC filings for financial claims (public companies)"}),s.jsx("li",{children:"• Crunchbase for funding and investor information"})]})]}),s.jsx("h2",{children:"Step 2: Cross-Reference Check (25% of errors caught)"}),s.jsx("p",{children:"Verify claims against at least two independent sources. AI often generates internally consistent but externally false information. Cross-referencing breaks this pattern."}),s.jsx("blockquote",{children:'"We implemented mandatory cross-referencing and caught 3 major factual errors in our first week. One would have cost us a $500K deal." - VP Sales, Enterprise Software Company'}
666),s.jsx("h2",{children:"Step 3: Recency and Specificity Tests (20% of errors caught)"}),s.jsx("p",{children:'Ask two questions: "When was this information last verified?" and "Is this specific enough to be testable?" Vague claims and outdated data are hallucination red flags.'}),s.jsx("h2",{children:"The Admin Time Trap"}),s.jsx("p",{children:`You might think: "This verification takes time." You're right—but consider the alternative. Sales reps already waste 6-8 admin hours per week on non-selling activities. Spending 2 minutes to verify AI output prevents the 2-hour cleanup when things go wrong.`}),s.jsx("h2",{children:"Building AI Trust the Right Way"}),s.jsx("p",{children:"The goal isn't to distrust AI—it's to use it strategically. AI excels at drafting, brainstorming, and pattern recognition. It fails at factual accuracy about specific companies and individuals. Use each capability appropriately."}),s.jsx("p",{className:"text-xl font-medium mt-8",children:"AI is a powerful tool for sales teams, but only when paired with systematic verification. The 60-75% reduction in errors isn't just about avoiding embarrassment—it's about building the trust that closes deals. Start using the verification framework today, and transform AI from a liability into a competitive advantage."})]})},"ai-token-trap-calculator":{title:"AI Is Overcharging You 93%: The Token Trap That's Burning Your Budget",displayText:`93
666%
667OVERCHARGED`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Cost Optimization Experts",estimatedReadTime:"7 min read",category:"AI & Technology",excerpt:"You're paying $360/month for what should cost $22. This diagnostic exposes the Token Trap scam and gives you the framework to slash AI spend by 93%.",tags:["AI Costs","Token Optimization","Sales Tech Stack","Cost Reduction"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"The average sales team spends $360 per rep per month on AI tools. The same functionality, optimized correctly, costs $22. That's a 93% markup you're paying for convenience—and vendors are counting on you never discovering it."}),s.jsx("h2",{children:"The Token Trap Explained"}),s.jsx("p",{children:"Every AI interaction costs tokens—the basic unit of AI pricing. Most sales AI tools charge flat monthly fees that dramatically exceed actual token usage because:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Wasteful prompts:"})," Tools send 10x more tokens than necessary"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Redundant processing:"})," The same information is processed repeatedly"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Premium model overuse:"})," GPT-4 used where GPT-3.5 suffices"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"No caching:"})," Identical queries processed fresh each time"]})]}),s.jsx("h2",{children:"Calculate Your Token Trap"}),s.jsx("p",{children:"Use this calculator to see exactly how much you're overpaying on AI tools:"}),s.jsx("div",{className:"my-8",children:s.jsx(Sce,{})}),s.jsx("h2",{children:"The Hidden Math Behind AI Pricing"}),s.jsx("p",{children:"Let's break down actual costs. A typical sales email assistant:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Per-Email AI Cost Analysis:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• Input tokens (context + prompt): ~500 tokens = $0.0015"}),s.jsx("li",{children:"• Output tokens (email draft): ~200 tokens = $0.0012"}),s.jsx("li",{children:"• Total per email: ~$0.003"}),s.jsx("li",{children:"• 100 emails/rep/day = $0.30/day = $6.60/month"}),s.jsx("li",{children:"• What vendors charge: $50-100/month"})]})]}),s.jsx("h2",{children:"The Tool Proliferation Problem"}),s.jsx("p",{children:"The trap compounds when you stack multiple AI tools. Each tool has its own markup, and together they create massive redundancy:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Email assistant: $50/month"}),s.jsx("li",{children:"Research tool: $75/month"}),s.jsx("li",{children:"Call summarizer: $60/month"}),s.jsx("li",{children:"CRM enrichment: $45/month"}),s.jsx("li",{children:"Prospecting AI: $80/month"})]}),s.jsx("p",{children:"That's $310/month per rep, but at least 60% of these tools perform overlapping functions. You're paying for the same AI capabilities three different times."}),s.jsx("h2",{children:"The Consolidation Solution"}),s.jsx("p",{children:"Smart sales organizations are moving to unified AI orchestration that:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Centralizes token usage:"})," One optimized pipeline for all AI tasks"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Implements caching:"})," Similar queries share results"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Right-sizes models:"})," Uses appropriate AI power per task"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Eliminates redundancy:"})," Each capability exists once"]})]}),s.jsx("blockquote",{children:'"We consolidated 7 AI tools into one orchestration layer. Monthly spend dropped from $2,800 to $340 for our 10-person team. Same capabilities, 88% less cost." - Head of RevOps, SaaS Company'}),s.jsx("h2",{children:"5 Immediate Actions to Escape the Token Trap"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Audit current spend:"})," List every AI tool and its actual monthly cost"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Map overlapping features:"})," Identify which tools do the same things"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Calculate actual usage:"})," How many queries per day per tool?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Research API costs:"})," What would direct access cost?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Evaluate orchestration platforms:"})," Can one system replace many?"]})]}
667),s.jsx("p",{className:"text-xl font-medium mt-8",children:"The Token Trap exists because vendors know most buyers don't understand AI economics. Now you do. Use the calculator above to quantify your overspend, then take action. That 93% you're overpaying could fund an entire additional headcount—or drop straight to your bottom line."})]})},"pipeline-leak-diagnostic":{title:"Your Pipeline is Bleeding $2.7M Right Now: The 7 Leaks Killing Your Revenue",displayText:`$2.7M
668BLEEDING`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"Revenue Operations Experts",estimatedReadTime:"9 min read",category:"Revenue Operations",excerpt:"Every pipeline has leaks. Most companies don't know where they are. This diagnostic exposes the exact 7 stages where you're hemorrhaging deals.",tags:["Pipeline Analysis","Revenue Leaks","Sales Funnel","Conversion Optimization"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"The average B2B company loses 60-70% of qualified leads before they ever speak to a human. Not because the leads are bad—because the pipeline has holes. And every hole is money flowing directly to your competitors."}),s.jsx("h2",{children:"The 7 Critical Pipeline Stages"}),s.jsx("p",{children:"After analyzing over 500 B2B pipelines, we've identified the 7 stages where revenue hemorrhages:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Awareness → Interest:"})," Average 60% loss (market awareness to engagement)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Interest → Consideration:"})," Average 50% loss (engagement to active evaluation)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Consideration → Intent:"})," Average 40% loss (evaluation to expressed intent)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Intent → Evaluation:"})," Average 30% loss (intent to formal process)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Evaluation → Decision:"})," Average 25% loss (process to selection)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Decision → Purchase:"})," Average 20% loss (selection to signed deal)"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Purchase → Retention:"})," Average 15% loss (first year churn)"]})]}),s.jsx("h2",{children:"Calculate Your Pipeline Leaks"}),s.jsx("p",{children:"Use this diagnostic to quantify exactly where your pipeline is bleeding and how much revenue you're losing:"}),s.jsx("div",{className:"my-8",children:s.jsx(rq,{})}),s.jsx("h2",{children:"Why These Leaks Exist"}),s.jsx("h3",{children:"Leak 1: Awareness → Interest (60% Loss)"}),s.jsx("p",{children:"Your market knows you exist but doesn't engage. Root causes: weak positioning, undifferentiated messaging, or targeting the wrong audience segments."}),s.jsx("h3",{children:"Leak 2: Interest → Consideration (50% Loss)"}),s.jsx("p",{children:"Prospects engage but don't evaluate. Root causes: content that informs but doesn't compel, missing proof points, or poor follow-up timing."}),s.jsx("h3",{children:"Leak 3: Consideration → Intent (40% Loss)"}),s.jsx("p",{children:"Evaluators don't express buying intent. Root causes: unclear ROI, complex buying process, or failure to identify and nurture decision-makers."}),s.jsx("h2",{children:"The Compound Effect of Pipeline Leaks"}),s.jsx("p",{children:"Here's what most leaders miss: pipeline leaks compound. If you lose 60% at stage 1, 50% at stage 2, and 40% at stage 3, you've already lost 88% of potential revenue before prospects ever talk to sales."}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"The Compound Math:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• Start: 1,000 potential customers"}),s.jsx("li",{children:"• After Stage 1 (60% loss): 400 remain"}),s.jsx("li",{children:"• After Stage 2 (50% loss): 200 remain"}),s.jsx("li",{children:"• After Stage 3 (40% loss): 120 remain"}),s.jsx("li",{children:"• Only 12% reach sales conversations"})]})]}),s.jsx("h2",{children:"Plugging the Biggest Leaks First"}),s.jsx("p",{children:"Focus improvement efforts where impact is highest. A 10% improvement in Stage 1 converts dramatically more revenue than 10% improvement in Stage 6 because early-stage improvements compound through subsequent stages."}),s.jsx("blockquote",{children:`"We focused exclusively on improving our Awareness → Interest conversion for 90 days. That single-stage improvement increased closed revenue by 34% even though we didn't touch our sales process." - CRO, B2B Platform Company`}),s.jsx("h2",{children:"The AI-Powered Pipeline Fix"}),s.jsx("p",{children:"Modern AI can plug pipeline leaks by:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Predictive scoring:"})," Identifying which leads will convert before wasting resources"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Optimal timing:"})," Reaching prospects at exactly the right moment"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Personalized nurturing:"})," Delivering relevant content at each stage"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Behavior analysis:"})," Understanding why deals stall and how to unstick them"]})]}
668),s.jsx("p",{className:"text-xl font-medium mt-8",children:"Every percentage point of pipeline leakage represents real revenue lost forever. Run your numbers through the diagnostic above, identify your biggest leak, and focus there first. A 10% improvement in your weakest stage could mean millions in recovered revenue."})]})},"linkedin-algorithm-exploit":{title:"LinkedIn Cut Your Reach 65%: The Algorithm Exploit That Gets 225X More Views",displayText:`225X
669MORE VIEWS`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"Social Selling Strategists",estimatedReadTime:"8 min read",category:"Strategy",excerpt:"We analyzed 318,842 LinkedIn posts. The top 1% get 225X more views using specific algorithm patterns. Here's the exploit they use.",tags:["LinkedIn","Social Selling","Algorithm","Content Strategy"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"LinkedIn changed its algorithm in 2024, and most users saw their reach collapse by 65%. But a small group—the top 1% of content creators—actually saw their reach increase. After analyzing 318,842 posts, we discovered exactly what they're doing differently."}),s.jsx("h2",{children:"The Algorithm's Hidden Rules"}),s.jsx("p",{children:"LinkedIn's algorithm optimizes for one thing: keeping users on the platform. Every design decision flows from this principle. Understanding it unlocks everything else."}),s.jsx("h3",{children:"The Critical First 30 Minutes"}),s.jsx("p",{children:"LinkedIn gives every post a small initial audience. If that audience engages strongly in the first 30 minutes, the algorithm expands reach. If not, your post dies. This single window determines 80% of your total reach."}),s.jsx("h2",{children:"Analyze Your LinkedIn Strategy"}),s.jsx("p",{children:"Use this analyzer to see how your current approach stacks up against what actually works:"}),s.jsx("div",{className:"my-8",children:s.jsx(Zq,{})}),s.jsx("h2",{children:"The 5 Algorithm Exploits"}),s.jsx("h3",{children:"Exploit 1: The Hook Pattern"}),s.jsx("p",{children:"Top performers use a specific hook structure that stops scrollers. The pattern: unexpected claim + specific number + implied benefit."}),s.jsxs("div",{className:"bg-white/5 p-4 rounded-lg my-4",children:[s.jsx("p",{className:"text-cyan-400 font-medium",children:"Example hooks that work:"}),s.jsxs("ul",{className:"mt-2 space-y-1 text-white/80",children:[s.jsx("li",{children:'• "I interviewed 147 sales leaders. 91% got this wrong."'}),s.jsx("li",{children:`• "My company's revenue doubled. This one change caused it."`}),s.jsx("li",{children:`• "I lost a $2M deal last week. Here's what I learned."`})]})]}),s.jsx("h3",{children:"Exploit 2: The Format Multiplier"}),s.jsx("p",{children:"Not all content formats are equal. Based on our analysis:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Document/PDF posts: 2.0x baseline reach"}),s.jsx("li",{children:"Carousel posts: 1.8x baseline reach"}),s.jsx("li",{children:"Video (native): 1.5x baseline reach"}),s.jsx("li",{children:"Poll posts: 1.4x baseline reach"}),s.jsx("li",{children:"Image posts: 1.2x baseline reach"}),s.jsx("li",{children:"Text-only: 1.0x baseline reach"})]}),s.jsx("h3",{children:"Exploit 3: The Engagement Priming"}),s.jsx("p",{children:"Top performers don't just post—they prime the algorithm. 30 minutes before posting, they actively engage with others' content. This signals to LinkedIn that they're a high-value user, and their subsequent post gets priority distribution."}),s.jsx("h3",{children:"Exploit 4: The Comment Catalyst"}),s.jsx("p",{children:"The algorithm weights comments 10x higher than likes. Top performers design posts that naturally generate comments through:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Controversial (but professional) opinions"}),s.jsx("li",{children:"Direct questions that invite response"}),s.jsx("li",{children:'Incomplete stories that prompt "what happened?"'}),s.jsx("li",{children:"Polls that divide opinion"})]}),s.jsx("h3",{children:"Exploit 5: The Timing Window"}),s.jsx("p",{children:"Posting when your audience is most active matters, but not for the reason most think. It's not about being seen first—it's about maximizing that critical 30-minute engagement window."}),s.jsx("h2",{children:"The Compound Effect"}),s.jsx("p",{children:"When you stack these exploits, reach multiplies. A carousel post (1.8x) with a strong hook (1.5x) posted with engagement priming (1.3x) = 3.5x reach improvement. Do this consistently, and the algorithm starts favoring all your content."}),s.jsx("blockquote",{children:'"I went from 200 average views to 45,000 average views in 3 months. Same amount of posting, completely different approach based on these patterns." - Sales Director, Tech Company'}
669),s.jsx("p",{className:"text-xl font-medium mt-8",children:"LinkedIn reach isn't about luck or connections—it's about understanding and working with the algorithm. Use the analyzer above to identify where your strategy needs adjustment, then implement the exploits systematically. The 225x difference between average and top performers is entirely achievable."})]})},"rep-productivity-calculator":{title:"Your Reps Sell 6.4 Hours Per WEEK: The $4M Productivity Exposé",displayText:`6.4 HRS
670PER WEEK`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"Sales Operations Analysts",estimatedReadTime:"8 min read",category:"Revenue Operations",excerpt:"Your $100K reps spend 84% of their time NOT selling. This calculator reveals the true cost—and it's making CFOs physically ill.",tags:["Sales Productivity","Time Analysis","Revenue Optimization","Admin Waste"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"The most expensive employees in your company spend 84% of their time doing things that don't generate revenue. You're paying $100,000 for $16,000 worth of actual selling time. When you do the math across your team, the number is sickening."}),s.jsx("h2",{children:"The Brutal Productivity Math"}),s.jsx("p",{children:"Research across 500+ B2B sales organizations reveals a consistent pattern:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"16% selling time:"})," 6.4 hours per week of actual customer interaction"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"84% non-selling time:"})," 33.6 hours per week on everything else"]})]}),s.jsx("h2",{children:"Calculate Your Team's True Cost"}),s.jsx("p",{children:"Enter your numbers to see the real productivity picture:"}),s.jsx("div",{className:"my-8",children:s.jsx(nq,{})}),s.jsx("h2",{children:"Where the 84% Goes"}),s.jsx("p",{children:"The non-selling time breaks down into categories that seem necessary—until you realize AI can handle most of them:"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Time Allocation Breakdown:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsxs("li",{children:["• ",s.jsx("strong",{children:"23% email and admin:"})," 9.2 hours/week"]}),s.jsxs("li",{children:["• ",s.jsx("strong",{children:"19% data entry:"})," 7.6 hours/week (CRM updates, logging)"]}),s.jsxs("li",{children:["• ",s.jsx("strong",{children:"14% internal meetings:"})," 5.6 hours/week"]}),s.jsxs("li",{children:["• ",s.jsx("strong",{children:"12% scheduling:"})," 4.8 hours/week"]}),s.jsxs("li",{children:["• ",s.jsx("strong",{children:"16% prospecting/research:"})," 6.4 hours/week"]})]})]}),s.jsx("h2",{children:"The Hidden Killer: 6-8 Admin Hours Per Rep Per Week"}),s.jsx("p",{children:"Within that breakdown, 6-8 hours per rep per week goes to pure administrative tasks that add zero value: updating CRM fields, writing meeting notes, scheduling follow-ups, and generating reports. This is the most egregious waste because it's the most automatable."}),s.jsx("h2",{children:"The $4M Revelation"}),s.jsx("p",{children:"For a 10-person sales team with $1.2M quotas each:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Total quota responsibility: $12M"}),s.jsx("li",{children:"Revenue capacity lost to non-selling time: $12M × 84% = $10.08M"}),s.jsx("li",{children:"Recoverable with 40% productivity improvement: $4.03M"})]}),s.jsx("p",{children:"That's not a typo. A $4M opportunity hiding in plain sight."}),s.jsx("blockquote",{children:`"We ran these numbers and the CFO literally said 'I think I'm going to be sick.' We immediately prioritized the AI implementation that had been 'on the roadmap' for two years." - VP Sales, Enterprise Software`}),s.jsx("h2",{children:"The Recovery Playbook"}),s.jsx("h3",{children:"Phase 1: Eliminate Data Entry (Week 1-2)"}),s.jsx("p",{children:"Deploy AI that automatically captures and logs all customer interactions. This alone recovers 3-4 hours per rep per week."}),s.jsx("h3",{children:"Phase 2: Automate Scheduling (Week 3-4)"}),s.jsx("p",{children:"Implement AI scheduling assistants that handle the back-and-forth of meeting coordination. Another 2-3 hours recovered."}),s.jsx("h3",{children:"Phase 3: Streamline Research (Week 5-6)"}),s.jsx("p",{children:"Deploy prospect intelligence tools that automatically surface relevant information. 2-3 more hours recovered."}
670),s.jsx("h2",{children:"The Compounding Effect"}),s.jsx("p",{children:"When you recover 7-10 hours per rep per week—more than doubling selling time—the revenue impact isn't linear. It's exponential. More customer conversations lead to more opportunities, better relationships, and faster deals."}),s.jsx("p",{className:"text-xl font-medium mt-8",children:"Run your numbers through the calculator. Then ask yourself: how long can you afford to leave $4M on the table? Every week you wait is another week of paying premium salaries for administrative work. The technology to fix this exists today. The only question is when you'll deploy it."})]})},"sales-tech-scam-analysis":{title:"The $67 Billion Sales Tech Scam: Why 73% of AI Projects Fail",displayText:`$67B
671SCAM`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Implementation Analysts",estimatedReadTime:"12 min read",category:"AI & Technology",excerpt:"73% of enterprise AI projects fail to deliver value. Your reps use 20 tools that don't talk. You're burning $50K/month on tech that makes things worse.",tags:["Sales Technology","AI Failure","Tech Stack Analysis","Digital Waste"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"The sales technology industry is worth $67 billion. And 73% of it delivers zero measurable value. Your team is probably using 15-20 tools that don't integrate, don't talk to each other, and actively waste more time than they save."}),s.jsx("h2",{children:"The Three Plagues of Sales Tech"}),s.jsx("h3",{children:"Plague #1: AI Washing"}),s.jsx("p",{children:`Every tool now claims to be "AI-powered." Most are running the same basic automation they sold in 2019 with a ChatGPT wrapper. The AI does nothing meaningful—it's pure marketing.`}),s.jsx("h3",{children:"Plague #2: Integration Hell"}),s.jsx("p",{children:"Your average sales stack: CRM + email tool + scheduling tool + prospecting tool + call recording + conversation intelligence + content management + forecasting + territory planning + training platform. Ten tools, zero integration, infinite data silos."}),s.jsx("h3",{children:"Plague #3: Feature Overlap"}),s.jsx("p",{children:"Those 10 tools share 60% of their features. You're paying for email tracking in 4 different platforms, call recording in 3, and prospect research in 5. Massive redundancy, massive waste."}),s.jsx("h2",{children:"The Real Cost Analysis"}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Average Enterprise Sales Tech Stack Cost:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• CRM (Salesforce/HubSpot): $150-300/user/month"}),s.jsx("li",{children:"• Sales engagement: $75-150/user/month"}),s.jsx("li",{children:"• Prospecting/intelligence: $100-200/user/month"}),s.jsx("li",{children:"• Conversation intelligence: $50-100/user/month"}),s.jsx("li",{children:"• Various point solutions: $100-200/user/month"}),s.jsxs("li",{children:["• ",s.jsx("strong",{children:"Total: $475-950/user/month = $5,700-11,400/user/year"})]})]})]}),s.jsx("p",{children:"For a 20-person sales team, that's $114,000-228,000 per year in tech spend. And 73% of it is waste."}),s.jsx("h2",{children:"Why 73% of AI Projects Fail"}),s.jsx("h3",{children:"Failure Mode 1: No Clear Use Case"}),s.jsx("p",{children:"Companies buy AI because competitors bought AI. There's no specific problem to solve, no metric to improve, no success criteria defined."}),s.jsx("h3",{children:"Failure Mode 2: Data Quality Disasters"}),s.jsx("p",{children:"AI is only as good as its training data. Most sales orgs have CRMs full of outdated, duplicate, and inaccurate records. Garbage in, garbage out."}),s.jsx("h3",{children:"Failure Mode 3: Adoption Abandonment"}),s.jsx("p",{children:"Tools get purchased, deployed, and forgotten. Without systematic training and accountability, new tech becomes shelfware within 90 days."}),s.jsx("h3",{children:"Failure Mode 4: Integration Impossibility"}),s.jsx("p",{children:"AI tools can't deliver value in isolation. When they can't connect to your other systems, they become data islands instead of force multipliers."}),s.jsx("h2",{children:"The Alternative: Orchestrated AI"}),s.jsx("p",{children:"Successful organizations are moving away from point solutions toward unified AI orchestration. Instead of 10 tools with 10 AI features, one intelligent layer that:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Connects all data sources in real-time"}),s.jsx("li",{children:"Automates workflows across systems"}),s.jsx("li",{children:"Eliminates redundant capabilities"}),s.jsx("li",{children:"Reduces total cost by 60-80%"}),s.jsx("li",{children:"Actually delivers measurable ROI"})]}),s.jsx("blockquote",{children:'"We consolidated our $180K/year tech stack into a $48K orchestration platform. Same capabilities, 73% cost reduction, and our data finally flows properly." - CRO, Mid-Market SaaS'}),s.jsx("h2",{children:"The Audit Framework"}),s.jsx("p",{children:"Before buying another tool, audit what you have:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"List every tool:"})," What does your team actually use daily?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Map feature overlap:"})," Which capabilities exist in multiple tools?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Measure actual usage:"})," What percentage of each tool is really used?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Calculate true cost:"})," License + admin time + integration maintenance"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Identify waste:"})," What can be eliminated without impact?"]})]}
671),s.jsx("p",{className:"text-xl font-medium mt-8",children:"The $67 billion sales tech industry survives because buyers don't do this analysis. They buy tools, add more tools, and never question whether the stack actually works. Be different. Audit ruthlessly, consolidate aggressively, and measure obsessively. That 73% failure rate doesn't have to include you."})]})},"ai-quota-killer-guide":{title:"Is AI Silently Killing Your Team's Quota? The 3-Step Fix",displayText:`AI QUOTA
672KILLER`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"Sales Performance Analysts",estimatedReadTime:"7 min read",category:"Performance",excerpt:"The AI rework loop is wasting 6-8 admin hours per rep weekly. Learn the 3-step check that reduces errors by 60-75% and stops AI from sabotaging your quota.",tags:["AI Performance","Quota Attainment","Sales Efficiency","AI Errors"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Your reps are using AI more than ever. They're also missing quota more than ever. Coincidence? No. There's a hidden cost to AI adoption that nobody talks about: the rework loop."}),s.jsx("h2",{children:"The AI Rework Loop"}),s.jsx("p",{children:"Here's what happens daily in AI-using sales teams:"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Rep uses AI to draft an email"}),s.jsx("li",{children:"Email contains subtle error or off-brand language"}),s.jsx("li",{children:'Prospect notices something "off"'}),s.jsx("li",{children:"Trust erodes, response rates drop"}),s.jsx("li",{children:"Rep spends more time fixing or redoing"}),s.jsx("li",{children:"Less time for actual selling"})]}),s.jsx("p",{children:"This loop is invisible to management but costs 6-8 hours per rep per week in rework, corrections, and damage control."}),s.jsx("h2",{children:"The 3-Step Verification System"}),s.jsx("p",{children:"Use this checker before sending any AI-generated content:"}),s.jsx("div",{className:"my-8",children:s.jsx(Cj,{})}),s.jsx("h2",{children:"Step 1: The Accuracy Check"}),s.jsx("p",{children:"Before trusting any AI output, verify:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Company details:"})," Name, size, industry correct?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Person details:"})," Title, tenure, spelling correct?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Product claims:"})," Features actually exist?"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Data points:"})," Statistics from real sources?"]})]}),s.jsx("h2",{children:"Step 2: The Brand Voice Check"}),s.jsx("p",{children:"AI tends toward generic. Check that output:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Matches your company's tone and style"}),s.jsx("li",{children:"Uses terminology your prospects understand"}),s.jsx("li",{children:'Avoids jargon that screams "AI wrote this"'}),s.jsx("li",{children:"Sounds like a human who knows the industry"})]}),s.jsx("h2",{children:"Step 3: The Relevance Check"}),s.jsx("p",{children:"AI often generates plausible but irrelevant content. Verify:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Pain points match this specific prospect"}),s.jsx("li",{children:"Value props align with their actual situation"}),s.jsx("li",{children:"Timing references are appropriate"}),s.jsx("li",{children:"Call-to-action is realistic"})]}),s.jsx("h2",{children:"The Time Investment Math"}),s.jsx("p",{children:`"But verification takes time," you say. Let's do the math:`}),s.jsxs("div",{className:"bg-white/5 p-6 rounded-lg my-6",children:[s.jsx("h4",{className:"font-semibold mb-3",children:"Without Verification:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• AI drafts: 30 seconds"}),s.jsx("li",{children:"• Quick send: 10 seconds"}),s.jsx("li",{children:"• Error discovered: 2 hours later"}),s.jsx("li",{children:"• Damage control: 20 minutes"}),s.jsx("li",{children:"• Lost opportunity: Priceless"})]})]}),s.jsxs("div",{className:"bg-cyan-500/10 p-6 rounded-lg my-6 border border-cyan-500/30",children:[s.jsx("h4",{className:"font-semibold text-cyan-400 mb-3",children:"With Verification:"}),s.jsxs("ul",{className:"space-y-2",children:[s.jsx("li",{children:"• AI drafts: 30 seconds"}),s.jsx("li",{children:"• Verification: 2 minutes"}),s.jsx("li",{children:"• Confident send: 10 seconds"}),s.jsx("li",{children:"• Higher response rates: +23%"}),s.jsx("li",{children:"• Zero rework loops"})]})]}),s.jsx("h2",{children:"Building Verification Habits"}),s.jsx("p",{children:"Make the 3-step check automatic:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Create a checklist:"})," Physical or digital, visible while working"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Set a timer:"})," 2 minutes per output, no exceptions"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Track catches:"})," Log every error caught for pattern analysis"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Share learnings:"})," Weekly team review of AI mistakes"]})]}),s.jsx("blockquote",{children:'"We mandated the 3-step check for all AI outputs. Rework dropped by 67%, and our reply rates increased 23%. The two are directly connected." - Sales Manager, Tech Company'}
672),s.jsx("p",{className:"text-xl font-medium mt-8",children:"AI is a powerful tool, but it's also a quota killer when used carelessly. The 3-step verification system takes 2 minutes and saves hours. More importantly, it protects the trust that closes deals. Make it mandatory for your team, and watch both productivity and quota attainment improve."})]})},"ai-hallucination-prevention":{title:"Your AI Hallucinates 30% of the Time: The System That Stops It",displayText:`30%
673FALSE`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Implementation Specialists",estimatedReadTime:"9 min read",category:"AI & Technology",excerpt:"Last week, AI told 500 prospects about features that don't exist. Cost: $3.2M in failed deals. Here's the system that stops AI from destroying your credibility.",tags:["AI Hallucinations","AI Reliability","Sales Accuracy","Trust Building"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Every time your sales team uses AI, there's a 15-30% chance it's generating false information. Not wrong opinions—false facts. Company names spelled wrong. Features that don't exist. Statistics pulled from thin air. And every one of these errors costs you trust and revenue."}),s.jsx("h2",{children:"The $3.2M Hallucination Disaster"}),s.jsx("p",{children:"A real case study: A mid-market software company implemented AI for sales outreach. Over 3 months, the AI told prospects about:"}),s.jsxs("ul",{children:[s.jsx("li",{children:'A "guaranteed 99.9% uptime SLA" (they offered 99.5%)'}),s.jsx("li",{children:'Integration with "over 500 platforms" (actual number: 127)'}),s.jsx("li",{children:'A "free 90-day trial" (they offered 14 days)'}),s.jsx("li",{children:"SOC 2 Type II compliance (they had Type I)"})]}),s.jsx("p",{children:"When deals reached legal review, these discrepancies surfaced. Result: $3.2M in opportunities lost and a reputation crisis with 500 prospects who now viewed them as dishonest."}),s.jsx("h2",{children:"Use the Verification Checker"}),s.jsx("p",{children:"This tool guides you through our 5-point verification system that catches 60-75% of hallucinations before they reach prospects:"}),s.jsx("div",{className:"my-8",children:s.jsx(Cj,{})}),s.jsx("h2",{children:"Why AI Hallucinates"}),s.jsx("p",{children:"Understanding the cause helps prevent the problem:"}),s.jsx("h3",{children:"Pattern Completion, Not Fact Retrieval"}),s.jsx("p",{children:`AI doesn't "know" facts—it predicts what text should come next based on patterns. When it lacks specific information, it generates plausible-sounding completions that may be entirely fabricated.`}),s.jsx("h3",{children:"Training Data Limitations"}),s.jsx("p",{children:"AI models have knowledge cutoff dates. Anything that changed after training—new products, leadership changes, acquisitions—gets filled with outdated or invented information."}),s.jsx("h3",{children:"Overconfidence"}),s.jsx("p",{children:"AI presents everything with equal confidence. It sounds just as certain about fabricated details as verified facts, making detection impossible without verification."}),s.jsx("h2",{children:"The 5-Point Verification System"}),s.jsx("h3",{children:"Point 1: Source Verification (30% catch rate)"}),s.jsx("p",{children:'For every factual claim, ask: "Can I find this in an official source?" Check company websites, press releases, and official documentation.'}),s.jsx("h3",{children:"Point 2: Cross-Reference (25% catch rate)"}),s.jsx("p",{children:"Verify claims against multiple independent sources. AI can generate internally consistent but externally false information."}),s.jsx("h3",{children:"Point 3: Specificity Test (20% catch rate)"}),s.jsx("p",{children:"Vague claims hide hallucinations. Push for specifics: exact numbers, dates, names. AI struggles with precision."}),s.jsx("h3",{children:"Point 4: Recency Check (15% catch rate)"}),s.jsx("p",{children:"When was this information last verified? AI's training data has a cutoff. Recent changes won't be reflected."}),s.jsx("h3",{children:"Point 5: Plausibility Assessment (10% catch rate)"}),s.jsx("p",{children:"Does this align with what you know about the industry and company? Trust your expertise when something feels off."}),s.jsx("h2",{children:"Building Organizational Safeguards"}),s.jsx("p",{children:"Beyond individual verification, implement systemic protections:"}),s.jsxs("ol",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Approved content library:"})," Pre-verified claims and statistics"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"AI output review:"})," Human check before external use"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Error logging:"})," Track and learn from caught hallucinations"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Regular audits:"})," Sample check AI outputs weekly"]})]}),s.jsx("blockquote",{children:'"After implementing the verification system, our hallucination-related issues dropped from 12 per week to 1-2. That alone saved three deals in the first month." - Sales Operations Manager'}
673),s.jsx("p",{className:"text-xl font-medium mt-8",children:"AI hallucinations are an inevitable feature of current technology—but their impact isn't inevitable. With systematic verification, you can use AI's speed and scale while maintaining the accuracy that builds trust. The 2 minutes you invest in verification saves hours of damage control and protects millions in revenue."})]})},"ai-team-assessment":{title:"80% of Your Team Is AI-Illiterate: The 5-Level Assessment That Exposes the Gap",displayText:`80%
674ILLITERATE`,date:"November 25, 2025",author:"Pipeline Rebel Team",authorTitle:"AI Training Specialists",estimatedReadTime:"10 min read",category:"Performance",excerpt:"Your top 20% gets 340% more productivity from AI. The bottom 80% still copies and pastes. This assessment reveals exactly where each rep stands.",tags:["AI Assessment","Team Capability","Sales Training","Performance Gap"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Here's the uncomfortable truth about AI in sales: your top 20% are using it to 3-4x their productivity. Your bottom 80% are using it to generate slightly faster emails that perform slightly worse. The gap between them? 340% productivity difference—and it's widening every month."}),s.jsx("h2",{children:"Take the AI Capability Assessment"}),s.jsx("p",{children:"This assessment places your team on the 5-level AI capability matrix:"}),s.jsx("div",{className:"my-8",children:s.jsx(Vde,{})}),s.jsx("h2",{children:"The 5 Levels of AI Capability"}),s.jsx("h3",{children:"Level 1: AI Curious (15% of sales reps)"}),s.jsx("p",{children:"Basic awareness of AI, minimal usage. Still relies primarily on traditional methods. Might use ChatGPT occasionally for simple tasks."}),s.jsx("div",{className:"bg-white/5 p-4 rounded-lg my-2",children:s.jsx("p",{className:"text-white/60 text-sm",children:"Characteristics: Skeptical of AI value, no structured approach, occasional experimentation"})}),s.jsx("h3",{children:"Level 2: AI Experimenting (35% of sales reps)"}),s.jsx("p",{children:"Regular AI use but inconsistent results. Copy-paste approach without understanding prompting. Gets value sometimes, frustration often."}),s.jsx("div",{className:"bg-white/5 p-4 rounded-lg my-2",children:s.jsx("p",{className:"text-white/60 text-sm",children:"Characteristics: Uses 1-2 AI tools, basic prompts, no systematic workflow"})}),s.jsx("h3",{children:"Level 3: AI Adopting (30% of sales reps)"}),s.jsx("p",{children:"Consistent AI usage with developing skills. Starting to create custom prompts and workflows. Sees measurable time savings."}),s.jsx("div",{className:"bg-white/5 p-4 rounded-lg my-2",children:s.jsx("p",{className:"text-white/60 text-sm",children:"Characteristics: Multiple AI tools, prompt library started, 1-2 hours saved weekly"})}),s.jsx("h3",{children:"Level 4: AI Scaling (15% of sales reps)"}),s.jsx("p",{children:"Advanced AI integration in daily workflow. Custom AI systems and sophisticated prompting. Significant productivity gains."}),s.jsx("div",{className:"bg-white/5 p-4 rounded-lg my-2",children:s.jsx("p",{className:"text-white/60 text-sm",children:"Characteristics: AI-first workflow, teaches others, 3-5 hours saved weekly"})}),s.jsx("h3",{children:"Level 5: AI Native (5% of sales reps)"}),s.jsx("p",{children:"Fully AI-integrated operations. Creates competitive advantages through AI. Operates at 3-4x peer productivity."}),s.jsx("div",{className:"bg-white/5 p-4 rounded-lg my-2",children:s.jsx("p",{className:"text-white/60 text-sm",children:"Characteristics: Builds custom AI solutions, strategic AI deployment, 10+ hours saved weekly"})}),s.jsx("h2",{children:"The 340% Gap Explained"}),s.jsx("p",{children:"Level 5 performers save 10+ hours weekly. Level 1-2 performers might save 30 minutes—if they're lucky. In a 40-hour work week:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Level 5: 40 hours + 10 recovered = 50 productive hours"}),s.jsx("li",{children:"Level 1: 40 hours + 0 recovered = 40 productive hours (if that)"}),s.jsx("li",{children:"Difference: 25% at minimum, 340% when you factor in quality improvements"})]}),s.jsx("h2",{children:"Why the Gap Exists"}),s.jsx("h3",{children:"It's Not About Age or Tech Savviness"}),s.jsx("p",{children:"Our research shows zero correlation between age and AI performance. The gap comes from:"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Structured learning:"})," Formal training vs. self-directed experimentation"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Time investment:"})," Deliberate practice vs. occasional use"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Systematic approach:"})," Documented workflows vs. ad-hoc prompts"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Measurement:"})," Tracking improvement vs. hoping for results"]})]}),s.jsx("h2",{children:"Closing the Gap: The 90-Day Program"}),s.jsx("h3",{children:"Days 1-30: Foundation"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Assess every team member's current level"}),s.jsx("li",{children:"Pair lower performers with top performers"}),s.jsx("li",{children:"Focus on 2-3 high-impact use cases"}),s.jsx("li",{children:"Create shared prompt libraries"})]}),s.jsx("h3",{children:"Days 31-60: Acceleration"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Expand use cases to 5-7 applications"}),s.jsx("li",{children:"Build custom workflows per role"}),s.jsx("li",{children:"Implement verification checklists"}),s.jsx("li",{children:"A/B test different approaches"})]}),s.jsx("h3",{children:"Days 61-90: Mastery"}),s.jsxs("ol",{children:[s.jsx("li",{children:"Redesign workflows around AI"}),s.jsx("li",{children:"Create AI-powered playbooks"}),s.jsx("li",{children:"Establish continuous learning"}),s.jsx("li",{children:"Measure and celebrate wins"})]}),s.jsx("blockquote",{children:`"We ran this assessment and discovered our 'best' AI users were actually Level 2. After 90 days of structured training, 60% of the team reached Level 4. Pipeline velocity increased 47%." - VP Sales, B2B Software`}
674),s.jsx("p",{className:"text-xl font-medium mt-8",children:"The 340% gap isn't permanent—it's addressable. But it requires acknowledging that most of your team isn't getting value from AI despite using it daily. Take the assessment, face the reality, and implement systematic training. Your competitors are doing it. The only question is whether you'll close the gap before they widen it further."})]})}},cT={"pipeline-leak-diagnostic":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["GTM Services","Pipeline Diagnostic","Outbound Systems","Lead Generation"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Pipeline problems rarely come from one broken tactic. They usually come from small gaps between targeting, messaging, outreach, follow-up, meetings, events, and CRM discipline."}),s.jsx("p",{children:"Pipeline Rebel uses diagnostics like this to find where the GTM motion is leaking before a team spends more money on tools, ads, agencies, or headcount. The point is simple: identify the next execution constraint, fix that constraint, and make the system easier to run every week."}),s.jsx("h2",{children:"Where pipeline usually leaks"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Targeting:"})," the account list is too broad, too stale, or not tied to the current offer."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Message:"})," the pain is real, but the buyer cannot see why now."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Execution:"})," outreach is inconsistent, follow-up drops, or handoffs rely on memory."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Events:"})," meetings are not prepared, captured, routed, and followed up quickly enough."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Systems:"})," the CRM and outbound tools do not show what is actually moving."]})]}),s.jsx("h2",{children:"What we look for"}),s.jsx("p",{children:"We inspect the work already happening: campaign structure, account quality, outbound steps, call attempts, reply patterns, event follow-up, CRM fields, pipeline stages, and the operating rhythm around all of it."}),s.jsx(rq,{}),s.jsx("h2",{children:"What happens next"}),s.jsx("p",{children:"The output should not be a theoretical report. It should point to the GTM work that needs to happen next: rebuild the list, sharpen the wedge, run real calls, fix the follow-up system, support an event, or add fractional GTM execution capacity."})]})},"linkedin-algorithm-exploit":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["Content-Led GTM","Founder-Led Sales","Demand Generation"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Content-led GTM works when it makes the next commercial conversation easier. It fails when it becomes a posting calendar detached from pipeline."}),s.jsx("p",{children:"The goal is not to chase the algorithm. The goal is to turn founder insight, customer language, product learning, and market tension into useful content that creates warmer conversations with the right accounts."}),s.jsx("h2",{children:"What good content-led GTM needs"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("strong",{children:"A sharp buyer problem:"})," the content must make a real pain easier to name."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"A repeatable point of view:"})," the market should understand what you believe and why."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"A distribution motion:"})," posts, comments, outbound, newsletters, events, and sales follow-up should reinforce each other."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"A pipeline path:"})," content should create reasons to start conversations, not just impressions."]})]}),s.jsx(Zq,{}),s.jsx("h2",{children:"How Pipeline Rebel helps"}),s.jsx("p",{children:"We help turn raw expertise into a GTM rhythm: themes, posts, lead magnets, outbound angles, event follow-up, and sales conversations. The measure is not vanity engagement. The measure is whether the right buyers understand the problem and take the next step."})]})},"rep-productivity-calculator":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["Sales Capacity","GTM Execution","Productivity"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Most teams do not have a motivation problem. They have a capacity problem. Too much seller time gets burned on admin, research, tool stitching, meeting prep, closeout, CRM cleanup, and repeated handoffs."}),s.jsx("p",{children:"This matters for Pipeline Rebel because GTM services only w
674ork when the operating model is realistic. If the team is already overloaded, adding another campaign, tool, or event can create more noise instead of more pipeline."}),s.jsx("h2",{children:"The capacity question"}),s.jsx("p",{children:"Before adding more activity, estimate where the current motion is wasting time. Then decide whether the answer is better systems, fractional GTM capacity, real calling support, content support, event support, or a tighter sales workflow."}),s.jsx(nq,{}),s.jsx("h2",{children:"What to do with the result"}),s.jsx("p",{children:"Use the number as a conversation starter, not a promise. It should help decide where to reduce manual work, where to add human execution, and where the GTM system needs cleaner ownership."})]})},"sales-tech-scam-analysis":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["GTM Engineering","Sales Stack","RevOps"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"Most sales tech stacks are not broken because the tools are bad. They are broken because nobody owns the work between the tools."}),s.jsx("p",{children:"A startup can have a CRM, enrichment, outbound platform, call recorder, calendar tools, forms, automation, dashboards, and AI. That still does not mean the GTM motion is clear, measurable, or easy for people to run."}),s.jsx("h2",{children:"The real fragmentation problem"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Lists are built in one place and qualified somewhere else."}),s.jsx("li",{children:"Outbound sequences do not reflect what sales learns on calls."}),s.jsx("li",{children:"CRM stages show activity but not the next execution constraint."}),s.jsx("li",{children:"Reporting tracks tool usage instead of pipeline movement."}),s.jsx("li",{children:"AI adds more content, but not necessarily better follow-through."})]}),s.jsx("h2",{children:"What GTM engineering should do"}),s.jsx("p",{children:"The work is to make the stack behave like a system: clear sources, clean routing, useful enrichment, reliable automation, human checkpoints, and reporting that helps the team decide what to do next."}),s.jsx("h2",{children:"How Pipeline Rebel fits"}),s.jsx("p",{children:"We can design, build, and run the GTM system around the actual revenue motion: outbound, events, content-led campaigns, calling, follow-up, and fractional execution. The tools matter, but the operating rhythm matters more."})]})},"rep-productivity-revenue-loss":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["GTM Capacity","Sales Execution","Operating Model"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"When people become the glue between disconnected systems, the cost shows up as slower pipeline, weaker follow-up, and managers spending too much time reconstructing what happened."}),s.jsx("p",{children:"This is not just a sales productivity problem. It is a GTM capacity problem. Every manual handoff, duplicated note, repeated research task, and unclear next step reduces the amount of commercial work the team can actually run."}),s.jsx("h2",{children:"Where capacity disappears"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Meeting prep starts from scratch instead of from account memory."}),s.jsx("li",{children:"Call outcomes do not turn into clean follow-up and next actions."}),s.jsx("li",{children:"Event conversations are captured late or not routed at all."}),s.jsx("li",{children:"Campaign learning does not improve targeting or messaging quickly enough."}),s.jsx("li",{children:"Leaders see activity totals without clear execution signal."})]}),s.jsx("h2",{children:"What to fix first"}),s.jsx("p",{children:"Start with the work that touches revenue fastest: account selection, outbound steps, call activity, event follow-up, meeting closeout, and CRM hygiene. Then decide what needs automation, what needs better tooling, and what needs real human execution support."}),s.jsx("h2",{children:"The Pipeline Rebel view"}),s.jsx("p",{children:"Better GTM is not only a strategy deck. It is the daily machinery of finding the right accounts, reaching them, following up, learning from the market, and keeping the system moving."})]})},"state-of-sales-tech-analysis":{author:"Latif Horst",authorTitle:"Founder, RebelHQ Incorporated",tags:["GTM Engineering","Sales Technology","Execution"],content:s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-xl font-medium",children:"The next phase of sales technology will not be won by adding more disconnected tools. It will be won by teams that can turn tools, people, data, and AI into a clearer GTM execution system."}),s.jsx("p",{children:"For startups and scaleups, this is practical. The question is not whether you have the right logo cloud. The question is whether your team can consistently find, reach, qualify, follow up, and learn from the right market."}),s.jsx("h2",{children:"What is changing"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Buyers expect more relevance and less generic automation."}),s.jsx("li",{children:"AI makes content and research faster, but also increases noise."}),s.jsx("li",{children:"Outbound still needs human judgment, calls, and disciplined follow-up."}),s.jsx("li",{children:"Events matter more when digital channels get crowded."}),s.jsx("li",{children:"Teams need clearer signal about what is actually moving pipeline."})]}),s.jsx("h2",{children:"What a useful GTM stack should support"}),s.jsx("p",{children:"A useful stack should help the team choose the right accounts, run the right plays, capture learning, keep follow-up tight, and give leaders a reliable view of pipeline movement."}),s.jsx("h2",{children:"What Pipeline Rebel builds"}),s.jsx("p",{children:"Pipeline Rebel combines GTM engineering with hands-on execution: systems, outbound, calling, events, content-led GTM, and fractional support. The goal is a GTM engine the business can actually run, measure, and improve."})]})}},H5=e=>{const t=Hv.find(n=>n.slug===e),r=cT[e];
674if(!(!t||!r))return{title:t.title,displayText:t.displayText,date:t.date,author:r.author,authorTitle:r.authorTitle,estimatedReadTime:t.readTime,category:t.category,excerpt:t.excerpt,tags:r.tags,content:r.content}},qde=e=>{const t=Hv.filter(r=>r.slug!==e&&cT[r.slug]).map(r=>({slug:r.slug,title:r.title,displayText:r.displayText,date:r.date,readTime:r.readTime,category:r.category}));return cT[e]?t.slice(0,3):Object.entries(lT).filter(([r])=>r!==e).slice(0,3).map(([r,n])=>({slug:r,title:n.title,displayText:n.displayText,date:n.date,readTime:n.estimatedReadTime,category:n.category}))},Wde=()=>{var o;const[,e]=eQ("/blog/:slug"),t=(e==null?void 0:e.slug)||"",r=wP.find(l=>l.slug===t&&!l.targetSites.includes("pipeline-rebel")),n=(r==null?void 0:r.canonicalSite)==="sales-sidekick"?"https://salessidekick.ai/resources":(r==null?void 0:r.canonicalSite)==="sidekick-genius"?"https://sidekickgenius.com/resources":"",i=H5(t)||lT[t]||H5("rep-productivity-revenue-loss")||lT["rep-productivity-revenue-loss"],a=qde(t);return S.useEffect(()=>{n&&window.location.replace(n)},[n]),S.useEffect(()=>{document.title=`${i.title} - Pipeline Rebel`,window.scrollTo(0,0)},[t,i.title]),n?s.jsxs("div",{className:"min-h-screen bg-black px-6 py-32 text-center text-white",children:[s.jsx("p",{className:"text-sm uppercase tracking-[0.18em] text-cyan-400",children:"Redirecting"}),s.jsx("h1",{className:"mt-4 text-3xl font-semibold",children:"This resource now lives on its product site."})]}):s.jsxs("div",{children:[s.jsx(Lr,{title:`${i.title} - Pipeline Rebel`,description:i.excerpt,keywords:`${i.category}, sales development, AI implementation, pipeline generation, ${(o=i.tags)==null?void 0:o.join(", ")}`,canonicalUrl:`https://pipelinerebel.com/blog/${t}`,ogType:"article"}),s.jsx("div",{className:"container max-w-7xl mx-auto px-6 pt-8 pb-4",children:s.jsx(B9,{items:[{href:"/",label:"Home"},{href:"/blog",label:"Blog"},{href:`/blog/${t}`,label:i.title}]})}),s.jsxs(jce,{title:i.title,date:i.date,author:i.author,authorTitle:i.authorTitle,estimatedReadTime:i.estimatedReadTime,category:i.category,children:[i.content,s.jsxs("div",{className:"mt-16 pt-8 border-t border-white/10",children:[s.jsx("h3",{className:"text-2xl font-bold text-white mb-6",children:"Related Articles"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:a.map(l=>{var u;return s.jsx(xe,{href:`/blog/${l.slug}`,children:s.jsxs("div",{className:"group cursor-pointer",children:[s.jsxs("div",{className:"aspect-video rounded-lg bg-gradient-to-br from-[#0c0a09] via-[#1f2937] to-[#0c0a09] overflow-hidden mb-3 flex flex-col items-center justify-center p-6 relative",children:[s.jsx("div",{className:"absolute top-2 left-2 text-[10px] font-bold tracking-wider text-white/30",children:"PIPELINE REBEL"}),s.jsx("div",{className:"text-2xl md:text-3xl font-black leading-none text-center",children:(u=l.displayText)==null?void 0:u.split(`
675`).map((d,m)=>s.jsx("span",{className:"block text-cyan-400",children:d},m))})]}),s.jsx("h4",{className:"text-white font-semibold group-hover:text-cyan-400 transition-colors",children:l.title}),s.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[s.jsx("span",{className:"text-xs font-medium bg-cyan-500/20 text-cyan-400 py-0.5 px-2 rounded-full",children:l.category}),s.jsxs("span",{className:"text-white/60 text-xs",children:[l.date," • ",l.readTime]})]})]})},l.slug)})})]})]})]})},zde=[{icon:Ri,title:"Start with pipeline",text:"We work backwards from the qualified conversations, meetings, and opportunities the business needs next."},{icon:sC,title:"Do the real work",text:"Automated systems matter, but calls, follow-up, event conversations, and founder-selling support still matter too."},{icon:aC,title:"Engineer the motion",text:"The stack should make GTM easier to operate: lists, enrichment, routing, sequences, CRM, analytics, AI research, and handoffs."}],Ude=()=>(S.useEffect(()=>{document.title="About | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"About | Pipeline Rebel",description:"Pipeline Rebel is a GTM services and GTM engineering company helping startups and scaleups build outbound systems, generate pipeline, run event follow-up, and add fractional GTM capacity.",keywords:"Pipeline Rebel, GTM services, outsourced GTM, fractional GTM, GTM engineering, outbound systems",canonicalUrl:"https://pipelinerebel.com/about",ogImage:Pt.images.socialPreview}),s.jsxs("section",{className:"pr-about-hero relative overflow-hidden py-20 md:py-28",children:[s.jsx("div",{className:"pr-about-spaghetti-art","aria-hidden":"true",children:s.jsx("img",{src:Pt.images.spaghettiSandwich,alt:"",loading:"eager"})}),s.jsx("div",{className:"pr-container relative z-10 w-full",children:s.jsxs("div",{className:"pr-about-copy",children:[s.jsx(Cn,{children:"About Pipeline Rebel"}),s.jsx("h1",{className:"mt-5 text-4xl font-semibold leading-tight text-white md:text-6xl",children:"We help startups and scaleups turn GTM intent into pipeline activity."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"Pipeline Rebel combines GTM strategy, systems, outbound execution, content-led campaigns, event follow-up, human calling, and GTM engineering so founders are not carrying the whole motion alone."}),s.jsx("div",{className:"mt-9",children:s.jsx(Vo,{href:"/contact",children:"Book a Conversation"})}),s.jsx("p",{className:"mt-8 max-w-xl text-xs leading-relaxed text-[var(--pr-faint)]",children:"RebelHQ Incorporated operates Pipeline Rebel, SalesSidekick, Sidekick Genius, and Joan."})]})})]}),s.jsx(Ar,{eyebrow:"Point of View",title:"The first GTM system has to be clear enough to run.",intro:"The work is not simply choosing tools or writing a campaign. It is connecting market focus, offer clarity, data, messaging, channels, follow-up, calling, and measurement into one motion.",children:s.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:zde.map(e=>{const t=e.icon;return s.jsxs("article",{className:"pr-card p-6",children:[s.jsx(t,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h2",{className:"mt-5 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",children:s.jsxs("div",{className:"grid gap-8 md:grid-cols-[0.7fr_1.3fr] md:items-center",children:[s.jsxs("div",{className:"pr-card p-6",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ns,{className:"h-6 w-6"}),s.jsx("p",{className:"text-sm font-semibold text-white",children:"Microsoft partner ecosystem"})]}),s.jsx("p",{className:"mt-4 text-sm leading-relaxed text-[var(--pr-muted)]",children:"Microsoft remains important across the RebelHQ portfolio. On Pipeline Rebel, the technology story supports GTM execution rather than becoming the headline."})]}),s.jsxs("div",{children:[s.jsx(Cn,{children:"How We Show Up"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"Senior GTM thinking with execution capacity attached."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:"We can advise, build, and operate. That means the output should not be a deck nobody runs. It should be a working GTM motion with people, systems, follow-up, and evidence."})]})]})}),s.jsxs(Ar,{className:"pb-28",children:[s.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:[["Services","Outsourced GTM, outbound systems, calling, events, content-led GTM, and fractional support."],["Software","SalesSidekick, Sidekick Genius, and Joan live on dedicated product sites for the buyers who need them."],["Resources","Field notes and diagnostics for building a GTM motion that creates useful market signal."]].map(([e,t])=>s.jsxs("div",{className:"pr-card p-6",children:[s.jsx(KZ,{className:"h-6 w-6 text-[var(--pr-green)]"}),s.jsx("h3",{className:"mt-5 text-xl font-semibold text-white",children:e}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:t})]},e))}),s.jsx("div",{className:"mt-8",children:s.jsxs(Vo,{href:"/consulting",children:[s.jsx(eC,{className:"h-4 w-4"}),"See GTM Services"]})})]})]})),zg="RebelHQ Incorporated",G5="440 N Wolfe Rd, Sunnyvale, CA 94085, United States",Hde={"pipeline-rebel":{name:"Pipeline Rebel",canonical:"https://pipelinerebel.com/privacy-policy",homePath:"/",tone:"dark",description:"GTM services, outbound systems, GTM engineering, content-led GTM, event support, and fractional GTM execution."},"sidekick-genius":{name:"Sidekick Genius",canonical:"https://sidekickgenius.com/privacy-policy",homePath:Mi,tone:"warm",description:"Worksp
675ace OS and context engineering for Claude-powered teams."},"sales-sidekick":{name:"SalesSidekick",canonical:"https://salessidekick.ai/privacy-policy",homePath:oi,tone:"sales",description:"Sales context, memory, workflows, and revenue work visibility."},joan:{name:"Joan",canonical:"https://joanai.io/privacy-policy",homePath:ud,tone:"dark",description:"Cross-industry technology engineering, AI implementation, and consulting services."}};function Gde(e,t){return e==="sales-sidekick"?`${oi}${t}`:e==="sidekick-genius"?`${Mi}${t}`:t}const Kde={dark:"min-h-screen bg-[#080a0f] text-white",warm:"min-h-screen bg-[#f6f0e8] text-[#2b211d]",sales:"min-h-screen bg-[#080b0d] text-[#f7efe8]"},Yde={dark:"border-white/10 bg-white/[0.035]",warm:"border-[#dfd0c4] bg-[#fffdf9]",sales:"border-[#263033] bg-[#0e1315]"},K5={dark:"text-[var(--pr-muted)]",warm:"text-[#6d5549]",sales:"text-[#b9c7c6]"};function wx(){const e=Pc(),t=Hde[e];return S.useEffect(()=>{document.title=`Privacy Policy | ${t.name}`,window.scrollTo(0,0)},[t.name]),s.jsxs("div",{className:Kde[t.tone],children:[s.jsx(Lr,{title:`Privacy Policy | ${t.name}`,description:`How ${t.name} and ${zg} collect, use, protect, and share information.`,keywords:"privacy policy, data protection, AI services privacy, website privacy",canonicalUrl:t.canonical,structuredData:{type:"WebPage",data:{name:`${t.name} Privacy Policy`,dateModified:"2026-05-21T00:00:00Z"}}}),s.jsx("header",{className:`border-b px-5 py-5 sm:px-6 lg:px-8 ${t.tone==="warm"?"border-[#dfd0c4]":"border-white/10"}`,children:s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between",children:[s.jsx(xe,{href:t.homePath,className:"font-bold",children:t.name}),s.jsxs("nav",{className:`flex items-center gap-5 text-sm font-semibold ${K5[t.tone]}`,children:[s.jsx(xe,{href:t.homePath,className:"hover:opacity-80",children:"Home"}),s.jsx(xe,{href:Gde(e,"/terms-of-service"),className:"hover:opacity-80",children:"Terms"})]})]})}),s.jsxs("main",{className:"mx-auto max-w-4xl px-5 py-14 sm:px-6 md:py-20 lg:px-8",children:[s.jsx("p",{className:`text-sm font-bold uppercase tracking-[0.16em] ${t.tone==="sales"?"text-[#d4836b]":t.tone==="warm"?"text-[#a8614f]":"text-[var(--pr-cyan)]"}`,children:"Privacy Policy"}),s.jsx("h1",{className:"mt-4 text-4xl font-bold leading-tight md:text-6xl",children:"How we handle information."}),s.jsxs("p",{className:`mt-5 text-lg leading-8 ${K5[t.tone]}`,children:["Last updated: May 21, 2026. This policy applies to ",t.name,", a site and service operated by ",zg,"."]}),s.jsxs("section",{className:`prose prose-lg mt-10 max-w-none rounded-lg border p-6 md:p-8 ${Yde[t.tone]} ${t.tone==="warm"?"prose-stone":"prose-invert"}`,children:[s.jsx("h2",{children:"Who We Are"}),s.jsxs("p",{children:[t.name," is operated by ",zg,". ",t.description," You can contact us at [email protected] or by mail at ",G5,"."]}),s.jsx("h2",{children:"Information We Collect"}),s.jsx("p",{children:"We collect information you choose to provide and limited technical information needed to operate, secure, and improve our websites and services."}),s.jsxs("ul",{children:[s.jsx("li",{children:"Contact details such as name, work email, company, role, and any message you submit."}),s.jsx("li",{children:"Business context you share through forms, proof requests, discovery calls, or implementation work."}),s.jsx("li",{children:"Website and analytics data such as page views, referring pages, device/browser information, approximate location, and interaction events."}),s.jsx("li",{children:"Operational records such as support requests, email preferences, lead source, and service communications."}),s.jsx("li",{children:"When we work with AI tools or connected systems for a scoped engagement, the customer-provided files, prompts, outputs, and workflow evidence needed to perform that engagement."})]}),s.jsx("h2",{children:"How We Use Information"}),s.jsxs("ul",{children:[s.jsx("li",{children:"To respond to requests, qualify opportunities, and provide requested information."}),s.jsx("li",{children:"To deliver consulting, implementation, proof, enablement, and support services."}),s.jsx("li",{children:"To send transactional messages, confirmations, and requested updates."}),s.jsx("li",{children:"To improve website performance, conversion quality, product messaging, and service delivery."}),s.jsx("li",{children:"To protect against spam, abuse, fraud, and security threats."}),s.jsx("li",{children:"To comply with applicable legal, tax, accounting, and contractual obligations."})]}),s.jsx("h2",{children:"AI And Customer Work Context"}),s.jsx("p",{children:"Our services may involve AI systems, Claude, OpenAI, Microsoft, CRM tools, email tools, analytics tools, and other customer-approved platforms. We use customer-provided context only for the scoped work, proof, implementation, or support purpose. We do not sell customer work content."}),s.jsx("h2",{children:"Service Providers"}),s.jsx("p",{children:"We use service providers for hosting, analytics, CRM, email delivery, security, payments, and AI-enabled work. These providers process information on our behalf or as independent platforms used to deliver the service. Examples may include cloud hosting providers, Airtable, email providers, analytics systems, payment processors, and AI model/platform providers."}),s.jsx("h2",{children:"Marketing Communications"}),s.jsx("p",{children:"If you opt in to receive updates, we may send emails about our work, resources, services, or product updates. You can unsubscribe from marketing emails at any time. We may still send transactional or service-related messages."}),s.jsx("h2",{children:"Retention"}),s.jsx("p",{children:"We keep information for as long as needed to respond to requests, deliver services, maintain business records, resolve disputes, enforce agreements, and meet legal obligations. We may retain de-identified or aggregated information for analytics and service improvement."}),s.jsx("h2",{children:"Security"}),s.jsx("p",{children:"We use reasonable administrative, technical, and organizational safeguards designed to protect information. No website, cloud service, email system, or AI platform can be guaranteed completely secure."}),s.jsx("h2",{children:"Your Choices And Rights"}),s.jsx("p",{children:"Depending on where you live, you may have rights to access, correct, delete, restrict, or object to processing of certain personal information. You may also have the right to opt out of certain marketing or data-sharing practices. To make a request, email [email protected]."}),s.jsx("h2",{children:"Children"}),s.jsx("p",{children:"Our websites and services are intended for business users and are not directed to children under 13."}),s.jsx("h2",{children:"Changes"}),s.jsx("p",{children:"We may update this policy from time to time. The updated date above reflects the latest version."}),s.jsx("h2",{children:"Contact"}),s.jsxs("p",{children:["Email: [email protected]",s.jsx("br",{}),"Company: ",zg,s.jsx("br",{}),"Address: ",G5]})]})]})]})}const cu="RebelHQ Incorporated",Y5="440 N Wolfe Rd, Sunnyvale, CA 94085, United States",Xde={"pipeline-rebel":{name:"Pipeline Rebel",canonical:"https://pipelinerebel.com/terms-of-service",homePath:"/",tone:"dark",serviceLine:"GTM services, outsourced and fractional GTM support, outbound systems, cold calling, event support, content-led GTM, GTM engineering, resources, and related business services."},"sidekick-genius":{name:"Sidekick Genius",canonical:"https://sidekickgenius.com/terms-of-service",homePath:Mi,tone:"warm",serviceLine:"Workspace OS, context engineering, proof, consulting, implementation, and enablement services for Claude-powered teams."},"sales-sidekick":{name:"SalesSidekick",canonical:"https://salessidekick.ai/terms-of-service",homePath:oi,tone:"sales",serviceLine:"Sales context, memory, workflow, skill pack, proof, consulting, implementation, and revenue AI services."},joan:{name:"Joan",canonical:"https://joanai.io/terms-of-service",homePath:ud,tone:"dark",serviceLine:"Cross-industry technology engineering, AI implementation, integration, consulting, and related delivery services."}};function Qde(e,t){return e==="sales-sidekick"?`${oi}${t}`:e==="sidekick-genius"?`${Mi}${t}`:t}const Zde={dark:"min-h-screen bg-[#080a0f] text-white",warm:"min-h-screen bg-[#f6f0e8] text-[#2b211d]",sales:"min-h-screen bg-[#080b0d] text-[#f7efe8]"},Jde={dark:"border-white/10 bg-white/[0.035]",warm:"border-[#dfd0c4] bg-[#fffdf9]",sales:"border-[#263033] bg-[#0e1315]"},X5={dark:"text-[var(--pr-muted)]",warm:"text-[#6d5549]",sales:"text-[#b9c7c6]"};function jx(){const e=Pc(),t=Xde[e];return S.useEffect(()=>{document.title=`Terms of Service | ${t.name}`,window.scrollTo(0,0)},[t.name]),s.jsxs("div",{className:Zde[t.tone],children:[s.jsx(Lr,{title:`Terms of Service | ${t.name}`,description:`Terms for using ${t.name} websites, services, content, and related offerings operated by ${cu}.`,keywords:"terms of service, website terms, AI services terms, consulting terms",canonicalUrl:t.canonical,structuredData:{type:"WebPage",data:{name:`${t.name} Terms of Service`,dateModified:"2026-05-21T00:00:00Z"}}}),s.jsx("header",{className:`border-b px-5 py-5 sm:px-6 lg:px-8 ${t.tone==="warm"?"border-[#dfd0c4]":"border-white/10"}`,children:s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between",children:[s.jsx(xe,{href:t.homePath,className:"font-bold",children:t.name}),s.jsxs("nav",{className:`flex items-center gap-5 text-sm font-semibold ${X5[t.tone]}`,children:[s.jsx(xe,{href:t.homePath,className:"hover:opacity-80",children:"Home"}),s.jsx(xe,{href:Qde(e,"/privacy-policy"),className:"hover:opacity-80",children:"Privacy"})]})]})}),s.jsxs("main",{className:"mx-auto max-w-4xl px-5 py-14 sm:px-6 md:py-20 lg:px-8",children:[s.jsx("p",{className:`text-sm font-bold uppercase tracking-[0.16em] ${t.tone==="sales"?"text-[#d4836b]":t.tone
675==="warm"?"text-[#a8614f]":"text-[var(--pr-cyan)]"}`,children:"Terms of Service"}),s.jsxs("h1",{className:"mt-4 text-4xl font-bold leading-tight md:text-6xl",children:["Terms for using ",t.name,"."]}),s.jsxs("p",{className:`mt-5 text-lg leading-8 ${X5[t.tone]}`,children:["Last updated: May 21, 2026. These terms apply to ",t.name,", a site and service operated by ",cu,"."]}),s.jsxs("section",{className:`prose prose-lg mt-10 max-w-none rounded-lg border p-6 md:p-8 ${Jde[t.tone]} ${t.tone==="warm"?"prose-stone":"prose-invert"}`,children:[s.jsx("h2",{children:"1. Agreement"}),s.jsx("p",{children:"By accessing this website, submitting a form, downloading materials, joining a program, or using any related service, you agree to these Terms. If you are using the service on behalf of a company, you represent that you have authority to accept these Terms on its behalf."}),s.jsx("h2",{children:"2. Who Provides The Services"}),s.jsxs("p",{children:[t.name," is operated by ",cu,". Our mailing address is ",Y5,'. References to "we", "us", or "our" mean ',cu," and the applicable ",t.name," site or service."]}),s.jsx("h2",{children:"3. Services"}),s.jsx("p",{children:t.serviceLine}),s.jsx("p",{children:"Specific paid work, proof engagements, implementation services, software access, deliverables, pricing, timing, and support terms may be governed by a separate written agreement, order form, proposal, statement of work, or email-confirmed scope. If there is a conflict, the signed or expressly agreed scope controls for that engagement."}),s.jsx("h2",{children:"4. AI Outputs And Human Review"}),s.jsx("p",{children:"Our services may involve AI models, assistants, workflow tools, customer-provided context, and third-party platforms. AI outputs can be incomplete, stale, inaccurate, or inappropriate for a final business decision without review. You are responsible for reviewing outputs before relying on them, sending them, publishing them, using them with customers, or writing them into business systems."}),s.jsx("h2",{children:"5. No Guaranteed Results"}),s.jsx("p",{children:"We work to improve context, workflow quality, efficiency, visibility, and operating discipline. We do not guarantee revenue, pipeline, profit, cost savings, ranking, adoption, AI accuracy, or any specific business result unless expressly agreed in a signed written agreement."}),s.jsx("h2",{children:"6. Customer Responsibilities"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Provide accurate information and necessary access for scoped work."}),s.jsx("li",{children:"Only provide data you have the right to share."}),s.jsx("li",{children:"Maintain your own licenses, accounts, permissions, security settings, backups, and compliance obligations for third-party tools."}),s.jsx("li",{children:"Review AI-assisted outputs and approve any customer-facing or system-changing action."}),s.jsx("li",{children:"Comply with applicable laws, platform rules, and your internal policies."})]}),s.jsx("h2",{children:"7. Third-Party Platforms"}),s.jsx("p",{children:"Our websites and services may reference or use third-party platforms such as Claude, OpenAI, Microsoft, CRM systems, email systems, analytics services, payment providers, and hosting providers. We do not control those third-party services. Their terms, privacy policies, availability, security, pricing, and product behavior apply separately."}),s.jsx("h2",{children:"8. Intellectual Property"}),s.jsx("p",{children:"We retain ownership of our pre-existing materials, methods, templates, software, documentation, frameworks, know-how, and reusable components. You retain ownership of your pre-existing business data and customer-provided materials. Engagement-specific ownership or license terms may be set out in a separate written agreement."}),s.jsx("h2",{children:"9. Website Content"}),s.jsx("p",{children:"Website content is for general business information. It is not legal, financial, tax, security, or compliance advice. You may not copy, resell, scrape, reverse engineer, or misuse the site, content, or services."}),s.jsx("h2",{children:"10. Acceptable Use"}),s.jsx("p",{children:"You may not use the websites or services to violate laws, infringe rights, transmit malicious code, attempt unauthorized access, overload systems, misrepresent identity, or use AI-enabled workflows for unlawful, deceptive, harmful, or unauthorized purposes."}),s.jsx("h2",{children:"11. Confidentiality"}),s.jsx("p",{children:"If we exchange confidential business information, each party should protect it with reasonable care and use it only for the intended business purpose. More specific confidentiality terms may be included in a separate agreement."}),s.jsx("h2",{children:"12. Disclaimers"}),s.jsx("p",{children:'The websites and any free resources are provided "as is" and "as available". To the maximum extent permitted by law, we disclaim warranties of merchantability, fitness for a particular purpose, non-infringement, accuracy, availability, and error-free operation.'}),s.jsx("h2",{children:"13. Limitation Of Liability"}),s.jsxs("p",{children:["To the maximum extent permitted by law, ",cu," will not be liable for indirect, incidental, special, consequential, exemplary, or punitive damages, or for lost profits, lost revenue, lost data, business interruption, or loss of goodwill. For paid services, our total liability for claims relating to a specific engagement will not exceed the amount you paid us for that engagement in the three months before the event giving rise to the claim, unless a signed agreement states otherwise."]}),s.jsx("h2",{children:"14. Changes"}),s.jsx("p",{children:"We may update these Terms from time to time. Continued use of the website or services after updates means you accept the updated Terms."}),s.jsx("h2",{children:"15. Governing Law"}),s.jsx("p",{children:"These Terms are governed by the laws of the State of Delaware, without regard to conflict-of-law rules, unless a separate written agreement says otherwise."}),s.jsx("h2",{children:"16. Contact"}),s.jsxs("p",{children:["Email: [email protected]",s.jsx("br",{}),"Company: ",cu,s.jsx("br",{}),"Address: ",Y5]})]})]})]})}function PW(e,t){return function(){return e.apply(t,arguments)}}const{toString:efe}=Object.prototype,{getPrototypeOf:fd}=Object,{iterator:lp,toStringTag:EW}=Symbol,cy=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),sm=(e,t)=>{let r=e;const n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),cy(r,t))return!0;r=fd(r)}return!1},tfe=(e,t)=>
vendor: 20,526 bytes, lines 675-677
675e!=null&&sm(e,t)?e[t]:void 0,PP=(e=>t=>{const r=efe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rs=e=>(e=e.toLowerCase(),t=>PP(t)===e),rb=e=>t=>typeof t===e,{isArray:fc}=Array,hc=rb("undefined");function rf(e){return e!==null&&!hc(e)&&e.constructor!==null&&!hc(e.constructor)&&qn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _W=Rs("ArrayBuffer");function rfe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_W(e.buffer),t}const nfe=rb("string"),qn=rb("function"),OW=rb("number"),nf=e=>e!==null&&typeof e=="object",sfe=e=>e===!0||e===!1,Sx=e=>{if(!nf(e))return!1;const t=fd(e);return(t===null||t===Object.prototype||fd(t)===null)&&!sm(e,EW)&&!sm(e,lp)},ife=e=>{if(!nf(e)||rf(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},afe=Rs("Date"),ofe=Rs("File"),lfe=e=>!!(e&&typeof e.uri<"u"),cfe=e=>e&&typeof e.getParts<"u",ufe=Rs("Blob"),dfe=Rs("FileList"),ffe=Rs("Set"),hfe=e=>nf(e)&&qn(e.pipe);function mfe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Q5=mfe(),Z5=typeof Q5.FormData<"u"?Q5.FormData:void 0,pfe=e=>{if(!e)return!1;if(Z5&&e instanceof Z5)return!0;const t=fd(e);if(!t||t===Object.prototype||!qn(e.append))return!1;const r=PP(e);return r==="formdata"||r==="object"&&qn(e.toString)&&e.toString()==="[object FormData]"},gfe=Rs("URLSearchParams"),[xfe,yfe,vfe,bfe]=["ReadableStream","Request","Response","Headers"].map(Rs),wfe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cp(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),fc(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(rf(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(n=0;n<o;n++)l=a[n],t.call(null,e[l],l,e)}}function IW(e,t){if(rf(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ll=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,RW=e=>!hc(e)&&e!==Ll;function uT(...e){const{caseless:t,skipUndefined:r}=RW(this)&&this||{},n={},i=(a,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&IW(n,o)||o,u=cy(n,l)?n[l]:void 0;Sx(u)&&Sx(a)?n[l]=uT(u,a):Sx(a)?n[l]=uT({},a):fc(a)?n[l]=a.slice():(!r||!hc(a))&&(n[l]=a)};for(let a=0,o=e.length;a<o;a++){const l=e[a];if(!l||rf(l)||(cp(l,i),typeof l!="object"||fc(l)))continue;const u=Object.getOwnPropertySymbols(l);for(let d=0;d<u.length;d++){const m=u[d];Ife.call(l,m)&&i(l[m],m)}}return n}const jfe=(e,t,r,{allOwnKeys:n}={})=>(cp(t,(i,a)=>{r&&qn(i)?Object.defineProperty(e,a,{__proto__:null,value:PW(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Sfe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kfe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},Nfe=(e,t,r,n)=>{let i,a,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=r!==!1&&fd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Tfe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Afe=e=>{if(!e)return null;if(fc(e))return e;let t=e.length;if(!OW(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Cfe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fd(Uint8Array)),Pfe=(e,t)=>{const n=(e&&e[lp]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},Efe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},_fe=Rs("HTMLFormElement"),Ofe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),{propertyIsEnumerable:Ife}=Object.prototype,Rfe=Rs("RegExp"),MW=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cp(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},Mfe=e=>{MW(e,(t,r)=>{if(qn(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(qn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Dfe=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return fc(e)?n(e):n(String(e).split(t)),r},Lfe=()=>{},$fe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ffe(e){return!!(e&&qn(e.append)&&e[EW]==="FormData"&&e[lp])}const Bfe=e=>{const t=new WeakSet,r=n=>{if(nf(n)){if(t.has(n))return;if(rf(n))return n;if(!("toJSON"in n)){t.add(n);let i;if(ffe(n)){i=[];for(const a of n){const o=r(a);!hc(o)&&i.push(o)}}else i=fc(n)?[]:{},cp(n,(a,o)=>{const l=r(a);!hc(l)&&(i[o]=l)});return t.delete(n),i}}return n};return r(e)},Vfe=Rs("AsyncFunction"),qfe=e=>e&&(nf(e)||qn(e))&&qn(e.then)&&qn(e.catch),DW=((e,t)=>e?setImmediate:t?((r,n)=>(Ll.addEventListener("message",({source:i,data:a})=>{i===Ll&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ll.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",qn(Ll.postMessage)),Wfe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ll):typeof process<"u"&&process.nextTick||DW,LW=e=>e!=null&&qn(e[lp]),zfe=e=>e!=null&&sm(e,lp)&&LW(e),J={isArray:fc,isArrayBuffer:_W,isBuffer:rf,isFormData:pfe,isArrayBufferView:rfe,isString:nfe,isNumber:OW,isBoolean:sfe,isObject:nf,isPlainObject:Sx,isEmptyObject:ife,isReadableStream:xfe,isRequest:yfe,isResponse:vfe,isHeaders:bfe,isUndefined:hc,isDate:afe,isFile:ofe,isReactNativeBlob:lfe,isReactNative:cfe,isBlob:ufe,isRegExp:Rfe,isFunction:qn,isStream:hfe,isURLSearchParams:gfe,isTypedArray:Cfe,isFileList:dfe,forEach:cp,merge:uT,extend:jfe,trim:wfe,stripBOM:Sfe,inherits:kfe,toFlatObject:Nfe,kindOf:PP,kindOfTest:Rs,endsWith:Tfe,toArray:Afe,forEachEntry:Pfe,matchAll:Efe,isHTMLForm:_fe,hasOwnProperty:cy,hasOwnProp:cy,hasOwnInPrototypeChain:sm,getSafeProp:tfe,reduceDescriptors:MW,freezeMethods:Mfe,toObjectSet:Dfe,toCamelCase:Ofe,noop:Lfe,toFiniteNumber:$fe,findKey:IW,global:Ll,isContextDefined:RW,isSpecCompliantForm:Ffe,toJSONObject:Bfe,isAsyncFn:Vfe,isThenable:qfe,setImmediate:DW,asap:Wfe,isIterable:LW,isSafeIterable:zfe},Ufe=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hfe=e=>{const t={};let r,n,i;return e&&e.split(`
676`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim();const l=J.hasOwnProp(t,r);!r||l&&J.hasOwnProp(Ufe,r)||(r==="set-cookie"?l?t[r].push(n):t[r]=[n]:t[r]=l?t[r]+", "+n:n)}),t};function Gfe(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const Kfe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Yfe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function EP(e,t){return J.isArray(e)?e.map(r=>EP(r,t)):Gfe(String(e).replace(t,""))}const Xfe=e=>EP(e,Kfe),Qfe=e=>EP(e,Yfe);function $W(e){const t=Object.create(null);return J.forEach(e.toJSON(),(r,n)=>{t[n]=Qfe(r)}),t}const J5=Symbol("internals");function ah(e){return e&&String(e).trim().toLowerCase()}function kx(e){return e===!1||e==null?e:J.isArray(e)?e.map(kx):Xfe(String(e))}function Zfe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jfe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function _j(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function ehe(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let r="";for(let n=1;n<t;n++){const i=e.charCodeAt(n);if(i===34||i===92&&(n+=1,n>=t))return e;r+=e[n]}return r}function the(e){const t=Object.create(null),r=String(e);let n=0,i=!1,a=!1;function o(l){const u=_j(r.slice(n,l)),d=u.indexOf("=");if(d<1)return;const m=_j(u.slice(0,d));if(!Jfe.test(m))return;const h=m.toLowerCase();if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=_j(u.slice(d+1));t[h]=ehe(p)}for(let l=0;l<r.length;l++){const u=r.charCodeAt(l);i?a?a=!1:u===92?a=!0:u===34&&(i=!1):u===34?i=!0:(u===44||u===59)&&(o(l),n=l+1)}return o(r.length),t}const rhe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oj(e,t,r,n,i){if(J.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!J.isString(t)){if(J.isString(n))return t.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(t)}}function nhe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function she(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let yn=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(l,u,d){const m=ah(u);if(!m)return;const h=J.findKey(i,m);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||u]=kx(l))}const o=(l,u)=>J.forEach(l,(d,m)=>a(d,m,u));if(J.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(J.isString(t)&&(t=t.trim())&&!rhe(t))o(Hfe(t),r);else if(J.isObject(t)&&J.isSafeIterable(t)){let l=Object.create(null),u,d;for(const m of t){if(!J.isArray(m))throw new TypeError("Object iterator must return a key-value pair");d=m[0],J.hasOwnProp(l,d)?(u=l[d],l[d]=J.isArray(u)?[...u,m[1]]:[u,m[1]]):l[d]=m[1]}o(l,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=ah(t),t){const n=J.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Zfe(i);if(J.isFunction(r))return r.call(this,i,n);if(J.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ah(t),t){const n=J.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Oj(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=ah(o),o){const l=J.findKey(n,o);l&&(!r||Oj(n,n[l],l,r))&&(delete n[l],i=!0)}}return J.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Oj(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return J.forEach(this,(i,a)=>{const o=J.findKey(n,a);if(o){r[o]=kx(i),delete r[a];return}const l=t?nhe(a):String(a).trim();l!==a&&delete r[a],r[l]=kx(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return J.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&J.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
677`)}getSetCookie(){const t=this.get("set-cookie");return J.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return the(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[J5]=this[J5]={accessors:{}}).accessors,i=this.prototype;function a(o){const l=ah(o);n[l]||(she(i,o),n[l]=!0)}return J.isArray(t)?t.forEach(a):a(t),this}};yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(yn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});J.freezeMethods(yn);const uy="[REDACTED ****]";function ihe(e){if(J.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function ahe(e,t){const r=new Set(t.map(a=>String(a).toLowerCase())),n=[],i=a=>{if(a===null||typeof a!="object"||J.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof yn&&(a=a.toJSON()),n.push(a);let o;if(J.isArray(a))o=[],a.forEach((l,u)=>{const d=i(l);J.isUndefined(d)||(o[u]=d)});else{if(!J.isPlainObject(a)&&ihe(a))return n.pop(),a;o=Object.create(null);for(const[l,u]of Object.entries(a)){const d=r.has(l.toLowerCase())?uy:i(u);J.isUndefined(d)||(o[l]=d)}}return n.pop(),o};return i(e)}function eM(e){try{return String(e)}catch{return""}}function ohe(e){return e.errors.map(r=>{try{return r&&r.message?eM(r.message):eM(r)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let Ee=class FW extends Error{static from(t,r,n,i,a,o){let l=t.message;!l&&J.isArray(t.errors)&&t.errors.length&&(l=ohe(t));const u=new FW(l,r||t.code,n,i,a);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),o&&Object.assign(u,o),u}constructor(t,r,n,i,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,r=t&&J.hasOwnProp(t,"redact")?t.redact:void 0,n=J.isArray(r)&&r.length>0?ahe(t,r):J.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ee.ERR_BAD_OPTION="ERR_BAD_OPTION";Ee.ECONNABORTED="ECONNABORTED";Ee.ETIMEDOUT="ETIMEDOUT";Ee.ECONNREFUSED="ECONNREFUSED";Ee.ERR_NETWORK="ERR_NETWORK";Ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ee.ERR_DEPRECATED="ERR_DEPRECATED";Ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ee.ERR_CANCELED="ERR_CANCELED";Ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ee.ERR_INVALID_URL="ERR_INVALID_URL";Ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const lhe=null,BW=100;function dT(e){return J.isPlainObject(e)||J.isArray(e)}function VW(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Ij(e,t,r){return e?e.concat(t).map(function(i,a){return i=VW(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function che(e){return J.isArray(e)&&!e.some(dT)}const uhe=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function nb(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,N){return!J.isUndefined(N[k])});const n=r.metaTokens,i=r.visitor||w,a=r.dots,o=r.indexes,l=r.Blob||typeof Blob<"u"&&Blob,u=r.maxDepth===void 0?BW:r.maxDepth,d=l&&J.isSpecCompliantForm(t),m=[];if(!J.isFunction(i))throw new TypeError("visitor must be a function");function h(j){if(j===null)return"";if(J.isDate(j))return j.toISOString();if(J.isBoolean(j))return j.toString();if(!d&&J.isBlob(j))throw new Ee("Blob is not supported. Use a Buffer instead.");if(J.isArrayBuffer(j)||J.isTypedArray(j)){if(d&&typeof l=="function")return new l([j]);throw new Ee("Blob is not supported. Use a Buffer instead.",Ee.ERR_NOT_SUPPORT)}return j}function p(j){if(j>u)throw new Ee("Object is too deeply nested ("+j+" levels). Max depth: "+u,Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function x(j,k){if(u===1/0)return JSON.stringify(j);const N=[];return JSON.stringify(j,function(A,E){if(!J.isObject(E))return E;for(;N.length&&N[N.length-1]!==this;)N.pop();return N.push(E),p(k+N.length-1),E})}function w(j,k,N){let C=j;if(J.isReactNative(t)&&J.isReactNativeBlob(j))return t.append(Ij(N,k,a),h(j)),!1;if(j&&!N&&typeof j=="object"){if(J.endsWith(k,"{}"))k=n?k:k.slice(0,-2),j=x(j,1);else if(J.isArray(j)&&che(j)||(J.isFileList(j)||J.endsWith(k,"[]"))&&(C=J.toArray(j)))return k=VW(k),C.forEach(function(E,_){!(J.isUndefined(E)||E===null)&&t.append(o===!0?Ij([k],_,a):o===null?k:k+"[]",h(E))}),!1}return dT(j)?!0:(t.append(Ij(N,k,a),h(j)),!1)}const v=Object.assign(uhe,{defaultVisitor:w,convertValue:h,isVisitable:dT});function y(j,k,N=0){if(!J.isUndefined(j)){if(p(N),m.indexOf(j)!==-1)throw new Error("Circular reference detected in "+k.join("."));m.push(j),J.forEach(j,function(A,E){(!(J.isUndefined(A)||A===null)&&i.call(t,A,J.isString(E)?E.trim():E,k,v))===!0&&y(A,k?k.concat(E):[E],N+1)}),m.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return y(e),t}function tM(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function _P(e,t){this._pairs=[],e&&nb(e,this,t)}const qW=_P.prototype;qW.append=function(t,r){this._pairs.push([t,r])};qW.toString=function(t){const r=t?n=>t.call(this,n,tM):tM;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dhe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function WW(e,t,r){if(!t)return e;e=e||"";const n=J.isFunction(r)?{serialize:r}:r,i=J.getSafeProp(n,"encode")||dhe,a=J.getSafeProp(n,"serialize");let o;if(a?o=a(t,n):o=J.isURLSearchParams(t)?t.toString():new _P(t,n).toString(i),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class rM{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(n){n!==null&&t(n)})}}const OP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},fhe=typeof URLSearchParams<"u"?URLSearchParams:_P,hhe=typeof FormData<"u"?FormData:null,mhe=typeof Blob<"u"?Blob:null,phe={isBrowser:!0,classes:{URLSearchParams:fhe,FormData:hhe,Blob:mhe},protocols:["http","https","file","blob","url","data"]},IP=typeof window<"u"&&typeof document<"u",fT=typeof navigator=="object"&&navigator||void 0,ghe=IP&&(!fT||["ReactNative","NativeScript","NS"].indexOf(fT.product)<0),xhe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yhe=IP&&window.location.href||"http://localhost",vhe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:IP,hasStandardBrowserEnv:ghe,hasStandardBrowserWebWorkerEnv:xhe,navigator:fT,origin:yhe},Symbol.toStringTag,{value:"Module"})),en={...vhe,...phe};function bhe(e,t){return nb(e,new en.classes.URLSearchParams,{visitor:function(r,n,i,a){return en.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}const nM=BW;function zW(e){if(e>nM)throw new Ee("FormData field is too deeply nested ("+e+" levels). Max depth: "+nM,Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function whe(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(e))!==null;)zW(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function jhe(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function UW(e){function t(r,n,i,a){zW(a);let o=r[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=a>=r.length;return o=!o&&J.isArray(i)?i.length:o,u?(J.hasOwnProp(i,o)?i[o]=J.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!l):((!J.hasOwnProp(i,o)||!J.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&J.isArray(i[o])&&(i[o]=jhe(i[o])),!l)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(n,i)=>{t(whe(n),i,r,0)}),r}return null}const uu=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function She(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const up={transitional:OP,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=J.isObject(t);
vendor: 22,818 bytes, lines 677-683
677if(a&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(UW(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){const u=uu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return bhe(t,u).toString();if((l=J.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=uu(this,"env"),m=d&&d.FormData;return nb(l?{"files[]":t}:t,m&&new m,u)}}return a||i?(r.setContentType("application/json",!1),She(t)):t}],transformResponse:[function(t){const r=uu(this,"transitional")||up.transitional,n=r&&r.forcedJSONParsing,i=uu(this,"responseType"),a=i==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(n&&!i||a)){const l=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,uu(this,"parseReviver"))}catch(u){if(l)throw u.name==="SyntaxError"?Ee.from(u,Ee.ERR_BAD_RESPONSE,this,null,uu(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch","query"],e=>{up.headers[e]={}});function Rj(e,t){const r=this||up,n=t||r,i=yn.from(n.headers);let a=n.data;return J.forEach(e,function(l){a=l.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function HW(e){return!!(e&&e.__CANCEL__)}let dp=class extends Ee{constructor(t,r,n){super(t??"canceled",Ee.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function GW(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,r.status>=400&&r.status<500?Ee.ERR_BAD_REQUEST:Ee.ERR_BAD_RESPONSE,r.config,r.request,r))}function khe(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Nhe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),m=n[a];o||(o=d),r[i]=u,n[i]=d;let h=a,p=0;for(;h!==i;)p+=r[h++],h=h%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),d-o<t)return;const x=m&&d-m;return x?Math.round(p*1e3/x):void 0}}function The(e,t){let r=0,n=1e3/t,i,a;const o=(d,m=Date.now())=>{r=m,i=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const m=Date.now(),h=m-r;h>=n?o(d,m):(i=d,a||(a=setTimeout(()=>{a=null,o(i)},n-h)))},()=>i&&o(i)]}const dy=(e,t,r=3)=>{let n=0;const i=Nhe(50,250);return The(a=>{if(!a||typeof a.loaded!="number")return;const o=a.loaded,l=a.lengthComputable?a.total:void 0,u=Math.max(0,l!=null?Math.min(o,l):o),d=Math.max(0,u-n),m=i(d);n=Math.max(n,u);const h={loaded:u,total:l,progress:l?u/l:void 0,bytes:d,rate:m||void 0,estimated:m&&l?(l-u)/m:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},sM=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},iM=(e,t=J.asap)=>(...r)=>t(()=>e(...r)),Ahe=en.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,en.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(en.origin),en.navigator&&/(msie|trident)/i.test(en.navigator.userAgent)):()=>!0,Che=en.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),J.isString(n)&&l.push(`path=${n}`),J.isString(i)&&l.push(`domain=${i}`),a===!0&&l.push("secure"),J.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch{return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Phe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ehe(e,t){if(!t)return e;let r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}const _he=/^https?:(?!\/\/)/i,Ohe=/[\t\n\r]/g;function Ihe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Rhe(e){return Ihe(e).replace(Ohe,"")}function Mhe(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,r,n="")=>`${r}${n}${uy}`)}function Dhe(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${uy}@`),r=t.indexOf("#"),i=(r===-1?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${uy}`);return r===-1?i:`${i}#${Mhe(t.slice(r+1))}`}function aM(e,t){if(typeof e=="string"){const r=Rhe(e);if(_he.test(r))throw new Ee(`Invalid URL ${JSON.stringify(Dhe(r))}: missing "//" after protocol`,Ee.ERR_INVALID_URL,t)}}function KW(e,t,r,n){aM(t,n);let i=!Phe(t);return e&&(i||r===!1)?(aM(e,n),Ehe(e,t)):t}const oM=e=>e instanceof yn?{...e}:e,Lhe=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function mc(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(m,h,p,x){return J.isPlainObject(m)&&J.isPlainObject(h)?J.merge.call({caseless:x},m,h):J.isPlainObject(h)?J.merge({},h):J.isArray(h)?h.slice():h}function i(m,h,p,x){if(J.isUndefined(h)){if(!J.isUndefined(m))return n(void 0,m,p,x)}else return n(m,h,p,x)}function a(m,h){if(!J.isUndefined(h))return n(void 0,h)}function o(m,h){if(J.isUndefined(h)){if(!J.isUndefined(m))return n(void 0,m)}else return n(void 0,h)}function l(m){const h=J.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!J.isUndefined(h))if(J.isPlainObject(h)){if(J.hasOwnProp(h,m))return h[m]}else return;const p=J.hasOwnProp(e,"transitional")?e.transitional:void 0;if(J.isPlainObject(p)&&J.hasOwnProp(p,m))return p[m]}function u(m,h,p){if(J.hasOwnProp(t,p))return n(m,h);if(J.hasOwnProp(e,p))return n(void 0,m)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:(m,h,p)=>i(oM(m),oM(h),p,!0)};return J.forEach(Lhe({...e,...t}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=J.hasOwnProp(d,h)?d[h]:i,x=J.hasOwnProp(e,h)?e[h]:void 0,w=J.hasOwnProp(t,h)?t[h]:void 0,v=p(x,w,h);J.isUndefined(v)&&p!==u||(r[h]=v)}),J.hasOwnProp(t,"validateStatus")&&J.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(J.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const $he=["content-type","content-length"];function Fhe(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([n,i])=>{$he.includes(n.toLowerCase())&&e.set(n,i)})}const Bhe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function YW(e){const t=mc({},e),r=p=>J.hasOwnProp(t,p)?t[p]:void 0,n=r("data");let i=r("withXSRFToken");const a=r("xsrfHeaderName"),o=r("xsrfCookieName");let l=r("headers");const u=r("auth"),d=r("baseURL"),m=r("allowAbsoluteUrls"),h=r("url");if(t.headers=l=yn.from(l),t.url=WW(KW(d,h,m,t),r("params"),r("paramsSerializer")),u){const p=J.getSafeProp(u,"username")||"",x=J.getSafeProp(u,"password")||"";try{l.set("Authorization","Basic "+btoa(p+":"+(x?Bhe(x):"")))}catch(w){throw Ee.from(w,Ee.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(n)&&(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv||J.isReactNative(n)?l.setContentType(void 0):J.isFunction(n.getHeaders)&&Fhe(l,n.getHeaders(),r("formDataHeaderPolicy"))),en.hasStandardBrowserEnv&&(J.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ahe(t.url))){const x=a&&o&&Che.read(o);x&&l.set(a,x)}return t}const Vhe=typeof XMLHttpRequest<"u",qhe=Vhe&&function(e){return new Promise(function(r,n){const i=YW(e);let a=i.data;const o=yn.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=i,m,h,p,x,w;function v(){x&&x(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function j(){if(!y)return;const N=yn.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:N,config:e,request:y};GW(function(_){r(_),v()},function(_){n(_),v()},A),y=null}"onloadend"in y?y.onloadend=j:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(j)},y.onabort=function(){y&&(n(new Ee("Request aborted",Ee.ECONNABORTED,e,y)),v(),y=null)},y.onerror=function(C){const A=C&&C.message?C.message:"Network Error",E=new Ee(A,Ee.ERR_NETWORK,e,y);E.event=C||null,n(E),v(),y=null},y.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||OP;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new Ee(C,A.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,y)),v(),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&J.forEach($W(o),function(C,A){y.setRequestHeader(A,C)}),J.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),l&&l!=="json"&&(y.responseType=i.responseType),d&&([p,w]=dy(d,!0),y.addEventListener("progress",p)),u&&y.upload&&([h,x]=dy(u),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(m=N=>{y&&(n(!N||N.type?new dp(null,e,y):N),y.abort(),v(),y=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const k=khe(i.url);if(k&&!en.protocols.includes(k)){n(new Ee("Unsupported protocol "+k+":",Ee.ERR_BAD_REQUEST,e)),v();return}y.send(a||null)})},Whe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const i=function(u){if(!n){n=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Ee?d:new dp(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new Ee(`timeout of ${t}ms exceeded`,Ee.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>{if(!n){if(u.aborted){i.call(u);return}u.addEventListener("abort",i,{once:!0})}});const{signal:l}=r;return l.unsubscribe=()=>J.asap(o),l},zhe=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Uhe=async function*(e,t){for await(const r of Hhe(e))yield*zhe(r,t)},Hhe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},lM=(e,t,r,n)=>{const i=Uhe(e,t);let a=0,o,l=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await i.next();if(d){l(),u.close();return}let h=m.byteLength;if(r){let p=a+=h;r(p)}u.enqueue(new Uint8Array(m))}catch(d){throw l(d),d}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},cM=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,XW=(e,t,r)=>t+2<r&&cM(e.charCodeAt(t+1))&&cM(e.charCodeAt(t+2)),uM=e=>e<=57?e-48:(e&223)-55,Ghe=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Khe=e=>e===9||e===10||e===12||e===13||e===32,Yhe=e=>{const t=Math.floor(e/4),r=e%4;return t*3+(r===2?1:r===3?2:0)},Xhe=e=>{const t=e.length;let r=0;return t>0&&e.charCodeAt(t-1)===61&&(r++,t>1&&e.charCodeAt(t-2)===61&&r++),Math.floor((t-r)*3/4)},Qhe=e=>{const t=e.length;let r=0,n=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&XW(e,a,t)&&(o=uM(e.charCodeAt(a+1))*16+uM(e.charCodeAt(a+2)),a+=2),!Khe(o)){if(o===61){n++;continue}if(!Ghe(o)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!==0||r%4===1?Xhe(e):Yhe(r)},Zhe=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),i=e.slice(r+1);if(/;base64/i.test(n))return t(i);let o=0;for(let l=0,u=i.length;l<u;l++){const d=i.charCodeAt(l);if(d===37&&XW(i,l,u))o+=1,l+=2;else if(d<128)o+=1;else if(d<2048)o+=2;else if(d>=55296&&d<=56319&&l+1<u){const m=i.charCodeAt(l+1);m>=56320&&m<=57343?(o+=4,l++):o+=3}else o+=3}return o};function Jhe(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Zhe(t===-1?e:e.slice(0,t),Qhe)}const RP="1.19.0",dM=64*1024,{isFunction:Ug}=J,eme=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),fM=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},hM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tme=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},rme=e=>{const t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:a,Response:o}=e,l=i?Ug(i):typeof fetch=="function",u=Ug(a),d=Ug(o);if(!l)return!1;const m=l&&Ug(r),h=l&&(typeof n=="function"?(j=>k=>j.encode(k))(new n):async j=>new Uint8Array(await new a(j).arrayBuffer())),p=u&&m&&hM(()=>{let j=!1;const k=new a(en.origin,{body:new r,method:"POST",get duplex(){return j=!0,"half"}}),N=k.headers.has("Content-Type");return k.body!=null&&k.body.cancel(),j&&!N}),x=d&&m&&hM(()=>J.isReadableStream(new o("").body)),w={stream:x&&(j=>j.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(j=>{!w[j]&&(w[j]=(k,N)=>{let C=k&&k[j];if(C)return C.call(k);throw new Ee(`Response type '${j}' is not supported`,Ee.ERR_NOT_SUPPORT,N)})});const v=async j=>{if(j==null)return 0;if(J.isBlob(j))return j.size;if(J.isSpecCompliantForm(j))return(await new a(en.origin,{method:"POST",body:j}).arrayBuffer()).byteLength;if(J.isArrayBufferView(j)||J.isArrayBuffer(j))return j.byteLength;if(J.isURLSearchParams(j)&&(j=j+""),J.isString(j))return(await h(j)).byteLength},y=async(j,k)=>{const N=J.toFiniteNumber(j.getContentLength());return N??v(k)};return async j=>{let{url:k,method:N,data:C,signal:A,cancelToken:E,timeout:_,onDownloadProgress:R,onUploadProgress:O,responseType:F,headers:D,withCredentials:L="same-origin",fetchOptions:I,maxContentLength:$,maxBodyLength:z}=YW(j);const K=J.isNumber($)&&$>-1,Z=J.isNumber(z)&&z>-1,U=Te=>J.hasOwnProp(j,Te)?j[Te]:void 0;let q=i||fetch;F=F?(F+"").toLowerCase():"text";let B=Whe([A,E&&E.toAbortSignal()],_),V=null;const X=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let ce,ye=null;const $e=()=>new Ee("Request body larger than maxBodyLength limit",Ee.ERR_BAD_REQUEST,j,V);try{let Te;const ge=U("auth");if(ge){const Ie=J.getSafeProp(ge,"username")||"",pt=J.getSafeProp(ge,"password")||"";Te={username:Ie,password:pt}}if(tme(k)){const Ie=new URL(k,en.origin);if(!Te&&(Ie.username||Ie.password)){const pt=fM(Ie.username),rr=fM(Ie.password);Te={username:pt,password:rr}}(Ie.username||Ie.password)&&(Ie.username="",Ie.password="",k=Ie.href)}if(Te&&(D.delete("authorization"),D.set("Authorization","Basic "+btoa(eme((Te.username||"")+":"+(Te.password||""))))),K&&typeof k=="string"&&k.startsWith("data:")&&Jhe(k)>$)throw new Ee("maxContentLength size of "+$+" exceeded",Ee.ERR_BAD_RESPONSE,j,V);if(Z&&N!=="get"&&N!=="head"){const Ie=await v(C);if(typeof Ie=="number"&&isFinite(Ie)&&(ce=Ie,Ie>z))throw $e()}const Ae=Z&&(J.isReadableStream(C)||J.isStream(C)),le=(Ie,pt,rr)=>lM(Ie,dM,zt=>{if(Z&&zt>z)throw ye=$e();pt&&pt(zt)},rr);if(p&&N!=="get"&&N!=="head"&&(O||Ae)){if(ce=ce??await y(D,C),ce!==0||Ae){let Ie=new a(k,{method:"POST",body:C,duplex:"half"}),pt;if(J.isFormData(C)&&(pt=Ie.headers.get("content-type"))&&D.setContentType(pt),Ie.body){const[rr,zt]=O&&sM(ce,dy(iM(O)))||[];C=le(Ie.body,rr,zt)}}}else if(Ae&&!u&&m&&N!=="get"&&N!=="head")C=le(C);else if(Ae&&u&&!p&&N!=="get"&&N!=="head")throw new Ee("Stream request bodies are not supported by the current fetch implementation",Ee.ERR_NOT_SUPPORT,j,V);J.isString(L)||(L=L?"include":"omit");const Se=u&&"credentials"in a.prototype;if(J.isFormData(C)){const Ie=D.getContentType();Ie&&/^multipart\/form-data/i.test(Ie)&&!/boundary=/i.test(Ie)&&D.delete("content-type")}D.set("User-Agent","axios/"+RP,!1);const Pe={...I,signal:B,method:N.toUpperCase(),headers:$W(D.normalize()),body:C,duplex:"half",credentials:Se?L:void 0};V=u&&new a(k,Pe);let ae=await(u?q(V,I):q(k,Pe));const at=yn.from(ae.headers);if(K){const Ie=J.toFiniteNumber(at.getContentLength());if(Ie!=null&&Ie>$)throw new Ee("maxContentLength size of "+$+" exceeded",Ee.ERR_BAD_RESPONSE,j,V)}const Ye=x&&(F==="stream"||F==="response");if(x&&ae.body&&(R||K||Ye&&X)){const Ie={};["status","statusText","headers"].forEach(Pr=>{Ie[Pr]=ae[Pr]});const pt=J.toFiniteNumber(at.getContentLength()),[rr,zt]=R&&sM(pt,dy(iM(R),!0))||[];let tn=0;const Fr=Pr=>{if(K&&(tn=Pr,tn>$))throw new Ee("maxContentLength size of "+$+" exceeded",Ee.ERR_BAD_RESPONSE,j,V);rr&&rr(Pr)};ae=new o(lM(ae.body,dM,Fr,()=>{zt&&zt(),X&&X()}),Ie)}F=F||"text";let mt=await w[J.findKey(w,F)||"text"](ae,j);if(K&&!x&&!Ye){let Ie;if(mt!=null&&(typeof mt.byteLength=="number"?Ie=mt.byteLength:typeof mt.size=="number"?Ie=mt.size:typeof mt=="string"&&(Ie=typeof n=="function"?new n().encode(mt).byteLength:mt.length)),typeof Ie=="number"&&Ie>$)throw new Ee("maxContentLength size of "+$+" exceeded",Ee.ERR_BAD_RESPONSE,j,V)}return!Ye&&X&&X(),await new Promise((Ie,pt)=>{GW(Ie,pt,{data:mt,headers:yn.from(ae.headers),status:ae.status,statusText:ae.statusText,config:j,request:V})})}catch(Te){if(X&&X(),B&&B.aborted&&B.reason instanceof Ee){const ge=B.reason;throw ge.config=j,V&&(ge.request=V),Te!==ge&&Object.defineProperty(ge,"cause",{__proto__:null,value:Te,writable:!0,enumerable:!1,configurable:!0}),ge}if(ye)throw V&&!ye.request&&(ye.request=V),ye;if(Te instanceof Ee)throw V&&!Te.request&&(Te.request=V),Te;if(Te&&Te.name==="TypeError"&&/Load failed|fetch/i.test(Te.message)){const ge=new Ee("Network Error",Ee.ERR_NETWORK,j,V,Te&&Te.response);throw Object.defineProperty(ge,"cause",{__proto__:null,value:Te.cause||Te,writable:!0,enumerable:!1,configurable:!0}),ge}throw Ee.from(Te,Te&&Te.code,j,V,Te&&Te.response)}}},nme=new Map,QW=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,l=o,u,d,m=nme;for(;l--;)u=a[l],d=m.get(u),d===void 0&&m.set(u,d=l?new Map:rme(t)),m=d;return d};QW();const MP={http:lhe,xhr:qhe,fetch:{get:QW}};J.forEach(MP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const mM=e=>`- ${e}`,sme=e=>J.isFunction(e)||e===null||e===!1;function ime(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){n=e[o];let l;if(i=n,!sme(n)&&(i=MP[(l=String(n)).toLowerCase()],i===void 0))throw new Ee(`Unknown adapter '${l}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;a[l||"#"+o]=i}if(!i){const o=Object.entries(a).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=r?o.length>1?`since :
678`+o.map(mM).join(`
679`):" "+mM(o[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+l,Ee.ERR_NOT_SUPPORT)}return i}const ZW={getAdapter:ime,adapters:MP};function Mj(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dp(null,e)}function Dj(e){return Mj(e),e.headers=yn.from(e.headers),e.data=Rj.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ZW.getAdapter(e.adapter||up.adapter,e)(e).then(function(n){Mj(e),e.response=n;try{n.data=Rj.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=yn.from(n.headers),n},function(n){if(!HW(n)&&(Mj(e),n&&n.response)){e.response=n.response;try{n.response.data=Rj.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=yn.from(n.response.headers)}return Promise.reject(n)})}const sb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sb[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pM={};sb.transitional=function(t,r,n){function i(a,o){return"[Axios v"+RP+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,l)=>{if(t===!1)throw new Ee(i(o," has been removed"+(r?" in "+r:"")),Ee.ERR_DEPRECATED);return r&&!pM[o]&&(pM[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,l):!0}};sb.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ame(e,t,r){if(typeof e!="object"||e===null)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){const l=e[a],u=l===void 0||o(l,a,e);if(u!==!0)throw new Ee("option "+a+" must be "+u,Ee.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ee("Unknown option "+a,Ee.ERR_BAD_OPTION)}}const Nx={assertOptions:ame,validators:sb},on=Nx.validators;let Jl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rM,response:new rM}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(`
680`);return o===-1?"":i.stack.slice(o+1)})();try{if(!n.stack)n.stack=a;else if(a){const o=a.indexOf(`
681`),l=o===-1?-1:a.indexOf(`
682`,o+1),u=l===-1?"":a.slice(l+1);String(n.stack).endsWith(u)||(n.stack+=`
683`+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=mc(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&Nx.assertOptions(n,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean),legacyInterceptorReqResOrdering:on.transitional(on.boolean),advertiseZstdAcceptEncoding:on.transitional(on.boolean),validateStatusUndefinedResolves:on.transitional(on.boolean)}
vendor: 3,313 bytes, line 683
683,!1),i!=null&&(J.isFunction(i)?r.paramsSerializer={serialize:i}:Nx.assertOptions(i,{encode:on.function,serialize:on.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Nx.assertOptions(r,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&J.merge(a.common,a[r.method]);a&&J.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete a[w]}),r.headers=yn.concat(o,a);const l=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;u=u&&v.synchronous;const y=r.transitional||OP;y&&y.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const d=[];this.interceptors.response.forEach(function(v){d.push(v.fulfilled,v.rejected)});let m,h=0,p;if(!u){const w=[Dj.bind(this),void 0];for(w.unshift(...l),w.push(...d),p=w.length,m=Promise.resolve(r);h<p;)m=m.then(w[h++],w[h++]);return m}p=l.length;let x=r;for(;h<p;){const w=l[h++],v=l[h++];try{x=w?w(x):x}catch(y){if(!v){m=Promise.reject(y);break}try{const j=v.call(this,y);J.isThenable(j)&&(m=Promise.resolve(j).then(()=>Dj.call(this,x)))}catch(j){m=Promise.reject(j)}break}}if(!m)try{m=Dj.call(this,x)}catch(w){m=Promise.reject(w)}for(h=0,p=d.length;h<p;)m=m.then(d[h++],d[h++]);return m}getUri(t){t=mc(this.defaults,t);const r=KW(t.baseURL,t.url,t.allowAbsoluteUrls,t);return WW(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Jl.prototype[t]=function(r,n){return this.request(mc(n||{},{method:t,url:r,data:n&&J.hasOwnProp(n,"data")?n.data:void 0}))}});J.forEach(["post","put","patch","query"],function(t){function r(n){return function(a,o,l){return this.request(mc(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Jl.prototype[t]=r(),t!=="query"&&(Jl.prototype[t+"Form"]=r(!0))});let ome=class JW{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(l=>{n.subscribe(l),a=l}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,l){n.reason||(n.reason=new dp(a,o,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new JW(function(i){t=i}),cancel:t}}};function lme(e){return function(r){return e.apply(null,r)}}function cme(e){return J.isObject(e)&&e.isAxiosError===!0}const hT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
683alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hT).forEach(([e,t])=>{hT[t]=e});function ez(e){const t=new Jl(e),r=PW(Jl.prototype.request,t);return J.extend(r,Jl.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return ez(mc(e,i))},r}const ur=ez(up);ur.Axios=Jl;ur.CanceledError=dp;ur.CancelToken=ome;ur.isCancel=HW;ur.VERSION=RP;ur.toFormData=nb;ur.AxiosError=Ee;ur.Cancel=ur.CanceledError;ur.all=function(t){return Promise.all(t)};ur.spread=lme;ur.isAxiosError=cme;ur.mergeConfig=mc;ur.AxiosHeaders=yn;ur.formToJSON=e=>UW(J.isHTMLForm(e)?new FormData(e):e);ur.getAdapter=ZW.getAdapter;ur.HttpStatusCode=hT;ur.default=ur;const{Axios:fOe,AxiosError:hOe,CanceledError:mOe,isCancel:pOe,CancelToken:gOe,VERSION:xOe,all:yOe,Cancel:vOe,isAxiosError:bOe,spread:wOe,toFormData:jOe,AxiosHeaders:SOe,HttpStatusCode:kOe,formToJSON:NOe,getAdapter:TOe,mergeConfig:AOe,create:COe}=ur,mT=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{className:"relative w-full overflow-auto",children:s.jsx("table",{ref:r,className:Fe("w-full caption-bottom text-sm",e),...t})}));mT.displayName="Table";const pT=S.forwardRef(({className:e,...t},r)=>s.jsx("thead",{ref:r,className:Fe("[&_tr]:border-b",e),...t}));pT.displayName="TableHeader";const gT=S.forwardRef(({className:e,...t},r)=>s.jsx("tbody",{ref:r,className:Fe("[&_tr:last-child]:border-0",e),...t}));gT.displayName="TableBody";const ume=S.forwardRef(({className:e,...t},r)=>s.jsx("tfoot",{ref:r,className:Fe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));ume.displayName="TableFooter";const Ah=S.forwardRef(({className:e,...t},r)=>s.jsx("tr",{ref:r,className:Fe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ah.displayName="TableRow";const mo=S.forwardRef(({className:e,...t},r)=>s.jsx("th",{ref:r,className:Fe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));mo.displayName="TableHead";const po=S.forwardRef(({className:e,...t},r)=>s.jsx("td",{ref:r,className:Fe("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));po.displayName="TableCell";const tz=S.forwardRef(({className:e,...t},r)=>s.jsx("caption",{ref:r,className:Fe("mt-4 text-sm text-muted-foreground",e),...t}));tz.displayName="TableCaption";var ib="Tabs",[dme]=hs(ib,[eb]),rz=eb(),[fme,DP]=dme(ib),nz=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:u="automatic",...d}=e,m=Jd(l),[h,p]=ja({prop:n,onChange:i,defaultProp:a??"",caller:ib});return s.jsx(fme,{scope:r,baseId:Io(),value:h,onValueChange:p,orientation:o,dir:m,activationMode:u,children:s.jsx(Xe.div,{dir:m,"data-orientation":o,...d,ref:t})})});nz.displayName=ib;var sz="TabsList",iz=S.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...i}=e,a=DP(sz,r),o=rz(r);return s.jsx(dW,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:s.jsx(Xe.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});iz.displayName=sz;var az="TabsTrigger",oz=S.forwardRef((e,t)=>
683{const{__scopeTabs:r,value:n,disabled:i=!1,...a}=e,o=DP(az,r),l=rz(r),u=uz(o.baseId,n),d=dz(o.baseId,n),m=n===o.value;return s.jsx(fW,{asChild:!0,...l,focusable:!i,active:m,children:s.jsx(Xe.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...a,ref:t,onMouseDown:Be(e.onMouseDown,h=>{!i&&h.button===0&&h.ctrlKey===!1?o.onValueChange(n):h.preventDefault()}),onKeyDown:Be(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&o.onValueChange(n)}),onFocus:Be(e.onFocus,()=>{const h=o.activationMode!=="manual";!m&&!i&&h&&o.onValueChange(n)})})})});oz.displayName=az;var lz="TabsContent",cz=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:i,children:a,...o}=e,l=DP(lz,r),u=uz(l.baseId,n),d=dz(l.baseId,n),m=n===l.value,h=S.useRef(m);return S.useEffect(()=>{const p=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(p)},[]),s.jsx(ms,{present:i||m,children:({present:p})=>s.jsx(Xe.div,{"data-state":m?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:p&&a})})});cz.displayName=lz;function uz(e,t){return`${e}-trigger-${t}`}function dz(e,t){return`${e}-content-${t}`}var hme=nz,fz=iz,hz=oz,mz=cz;const pz=hme,LP=S.forwardRef(({className:e,...t},r)=>s.jsx(fz,{ref:r,className:Fe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));LP.displayName=fz.displayName;const ia=S.forwardRef(({className:e,...t},r)=>s.jsx(hz,{ref:r,className:Fe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ia.displayName=hz.displayName;const aa=S.forwardRef(({className:e,...t},r)=>s.jsx(mz,{ref:r,className:Fe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));aa.displayName=mz.displayName;const mme=zd("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"}}),Tx=S.forwardRef(({className:e,variant:t,...r},n)=>s.jsx("div",{ref:n,role:"alert",className:Fe(mme({variant:t}),e),...r}));Tx.displayName="Alert";const Ax=S.forwardRef(({className:e,...t},r)=>s.jsx("h5",{ref:r,className:Fe("mb-1 font-medium leading-none tracking-tight",e),...t}));Ax.displayName="AlertTitle";const Cx=S.forwardRef(({className:e,...t},r)=>s.jsx("div",{ref:r,className:Fe("text-sm [&_p]:leading-relaxed",e),...t}));Cx.displayName="AlertDescription";const pme=zd("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 jr({className:e,variant:t,...r}){return s.jsx("div",{className:Fe(pme({variant:t}),e),...r})}const gme=()=>{const[e,t]=S.useState([]),[r,n]=S.useState(null),[i,a]=S.useState([]),[o,l]=S.useState([]),[u,d]=S.useState(!1),[m,h]=S.useState(!1),[p,x]=S.useState(null),[w,v]=S.useState(null),[y,j]=S.useState("csv"),[k,N]=S.useState([]),[C,A]=S.useState(!1),[E,_]=S.useState(null);S.useEffect(()=>{R()},[]);const R=async()=>{try{d(!0),v(null);const I=await ur.get("/api/admin/csv/files");t(I.data.data),d(!1)}catch(I){v("Failed to load CSV files"),d(!1),console.error("Error fetching CSV files:",I)}},O=async I=>{try{h(!0),n(I),v(null);const K=(await(await fetch(`/attached_assets/${I.name}`)).text()).split(`
684`),U=K[0].split(",").map(B=>
684B.trim()).filter(B=>B);l(U);const q=[];for(let B=1;B<K.length;B++){if(!K[B].trim())continue;const V=K[B].split(","),X={};U.forEach((ce,ye)=>{X[ce]=V[ye]?V[ye].trim():""}),q.push(X)}a(q),h(!1)}catch($){v(`Failed to parse CSV file: ${$ instanceof Error?$.message:String($)}`),h(!1),console.error("Error parsing CSV file:",$)}},F=async()=>{if(r)try{d(!0),v(null),x(null);const I=await ur.post("/api/admin/csv/import",{filePath:r.path});x(I.data.data),d(!1),y==="airtable"&&D()}catch(I){v(`Failed to import leads: ${I instanceof Error?I.message:String(I)}`),d(!1),console.error("Error importing leads:",I)}},D=async()=>{try{A(!0),_(null);const I=await ur.get("/api/admin/airtable/Leads/records");N(I.data.data||[]),A(!1)}catch(I){_(`Failed to load Airtable records: ${I instanceof Error?I.message:String(I)}`),A(!1),console.error("Error fetching Airtable records:",I)}},L=I=>{j(I),I==="airtable"&&k.length===0&&!C&&D()};return s.jsxs("div",{className:"container py-10",children:[s.jsx(Vx,{children:s.jsx("title",{children:"Lead Management | Pipeline Rebel"})}),s.jsx(B9,{items:[{href:"/",label:"Home"},{href:"/admin",label:"Admin"},{href:"/lead-management",label:"Lead Management",current:!0}]}),s.jsxs("div",{className:"mb-8 mt-4",children:[s.jsx("h1",{className:"text-4xl font-bold tracking-tight",children:"Lead Management"}),s.jsx("p",{className:"text-xl text-muted-foreground mt-2",children:"Import, view and manage leads from CSV files and Airtable"})]}),s.jsxs(pz,{defaultValue:"csv",value:y,onValueChange:L,children:[s.jsxs(LP,{className:"mb-6",children:[s.jsx(ia,{value:"csv",children:"CSV Leads"}),s.jsx(ia,{value:"airtable",children:"Airtable Integration"})]}),s.jsx(aa,{value:"csv",className:"space-y-6",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs(Re,{className:"md:col-span-1",children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"CSV Files"}),s.jsx(Kt,{children:"Select a CSV file to view and import"})]}),s.jsx(Me,{children:u?s.jsx("div",{className:"flex items-center justify-center py-6",children:s.jsx(Bn,{className:"h-8 w-8 animate-spin text-primary"})}):e.length>0?s.jsx("div",{className:"space-y-2",children:e.map(I=>s.jsxs(pe,{variant:(r==null?void 0:r.path)===I.path?"default":"outline",className:"w-full justify-start text-left",onClick:()=>O(I),children:[s.jsx(hI,{className:"mr-2 h-4 w-4"}),I.name]},I.path))}):s.jsx("div",{className:"text-center py-6 text-muted-foreground",children:s.jsx("p",{children:"No CSV files found in assets"})})}),s.jsx(y2,{children:s.jsx(pe,{variant:"outline",size:"sm",className:"w-full",onClick:R,disabled:u,children:u?s.jsxs(s.Fragment,{children:[s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}),"Refreshing..."]}):"Refresh Files List"})})]}),s.jsxs(Re,{className:"md:col-span-2",children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:r?`Preview: ${r.name}`:"CSV Data Preview"}),s.jsx(Kt,{children:r?`${i.length} records found in file`:"Select a CSV file to preview its contents"})]}),s.jsx(Me,{children:m?s.jsx("div",{className:"flex items-center justify-center py-12",children:s.jsx(Bn,{className:"h-8 w-8 animate-spin text-primary"})}):r?s.jsx("div",{className:"border rounded-md overflow-auto max-h-[500px]",children:s.jsxs(mT,{children:[s.jsx(pT,{children:s.jsx(Ah,{children:o.map(I=>s.jsx(mo,{children:I},I))})}),s.jsx(gT,{children:i.slice(0,10).map((I,$)=>s.jsx(Ah,{children:o.map(z=>s.jsx(po,{children:I[z]||"-"},`${$}-${z}`))},$))}),i.length>10&&s.jsxs(tz,{children:["Showing 10 of ",i.length," records"]})]})}):w?s.jsxs(Tx,{variant:"destructive",children:[s.jsx(ni,{className:"h-4 w-4"}),s.jsx(Ax,{children:"Error"}),s.jsx(Cx,{children:w})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center text-muted-foreground",children:[s.jsx(hI,{className:"h-12 w-12 mb-4"}),s.jsx("p",{children:"Select a CSV file to preview its contents"})]})}),r&&s.jsx(y2,{children:s.jsxs("div",{className:"space-y-4 w-full",children:[s.jsx(pe,{className:"w-full",onClick:F,disabled:u||i.length===0,children:u?s.jsxs(s.Fragment,{children:[s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}),"Importing..."]}):s.jsxs(s.Fragment,{children:[s.jsx(sJ,{className:"mr-2 h-4 w-4"}),"Import ",i.length," Leads to Airtable"]})}),p&&s.jsxs(Tx,{variant:p.failed>0?"destructive":"default",className:"mt-4",children:[s.jsxs("div",{className:"flex items-center",children:[p.failed===0?s.jsx(Xo,{className:"h-4 w-4 mr-2 text-green-500"}):s.jsx(ni,{className:"h-4 w-4 mr-2 text-amber-500"}),s.jsxs(Ax,{children:["Imported ",p.imported," of ",p.total," leads"]})]}),s.jsxs(Cx,{className:"mt-2",children:[p.failed>0&&s.jsxs("div",{className:"text-amber-500 mb-2",children:[p.failed," leads failed to import"]}
684),p.errors.length>0&&s.jsxs("details",{className:"mt-2",children:[s.jsx("summary",{className:"cursor-pointer text-sm font-medium",children:"View error details"}),s.jsx("div",{className:"mt-2 text-sm space-y-2 max-h-32 overflow-auto",children:p.errors.map((I,$)=>s.jsx("div",{className:"p-2 bg-muted rounded",children:I.error},$))})]})]})]})]})})]})]})}),s.jsx(aa,{value:"airtable",className:"space-y-6",children:s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs("div",{children:[s.jsx(Lt,{children:"Airtable Leads"}),s.jsx(Kt,{children:"View leads in your Airtable database"})]}),s.jsx(pe,{variant:"outline",size:"sm",onClick:D,disabled:C,children:C?s.jsxs(s.Fragment,{children:[s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading..."]}):s.jsxs(s.Fragment,{children:[s.jsx(ac,{className:"mr-2 h-4 w-4"}),"Refresh Data"]})})]})}),s.jsx(Me,{children:C?s.jsx("div",{className:"flex items-center justify-center py-12",children:s.jsx(Bn,{className:"h-8 w-8 animate-spin text-primary"})}):E?s.jsxs(Tx,{variant:"destructive",children:[s.jsx(ni,{className:"h-4 w-4"}),s.jsx(Ax,{children:"Connection Error"}),s.jsx(Cx,{children:E})]}):k.length>0?s.jsx("div",{className:"border rounded-md overflow-auto max-h-[600px]",children:s.jsxs(mT,{children:[s.jsx(pT,{children:s.jsxs(Ah,{children:[s.jsx(mo,{children:"Name"}),s.jsx(mo,{children:"Contact"}),s.jsx(mo,{children:"Company"}),s.jsx(mo,{children:"Status"}),s.jsx(mo,{children:"Source"}),s.jsx(mo,{children:"Created"})]})}),s.jsx(gT,{children:k.map(I=>s.jsxs(Ah,{children:[s.jsx(po,{children:I.fields["Lead Name"]||"-"}),s.jsx(po,{children:I.fields["Contact Information"]||"-"}),s.jsx(po,{children:I.fields.Company||"-"}),s.jsx(po,{children:s.jsx(jr,{variant:xme(I.fields.Status),children:I.fields.Status||"New"})}),s.jsx(po,{children:I.fields["Lead Source"]||"-"}),s.jsx(po,{children:I.createdTime?new Date(I.createdTime).toLocaleDateString():"-"})]},I.id))})]})}):s.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center text-muted-foreground",children:[s.jsx(ac,{className:"h-12 w-12 mb-4"}),s.jsx("p",{children:"No records found in your Airtable database"}),s.jsx(pe,{variant:"outline",size:"sm",className:"mt-4",onClick:()=>j("csv"),children:"Import from CSV"})]})})]})})]})]})};function xme(e){if(!e)return"default";const t=e.toLowerCase();return t==="new"?"default":t==="contacted"||t==="in progress"?"outline":t==="qualified"?"secondary":t==="lost"?"destructive":t==="nurturing"?"outline":"default"}function yme(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var $P="ScrollArea",[gz]=hs($P),[vme,Ms]=gz($P),xz=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:i,scrollHideDelay:a=600,...o}=e,[l,u]=S.useState(null),[d,m]=S.useState(null),[h,p]=S.useState(null),[x,w]=S.useState(null),[v,y]=S.useState(null),[j,k]=S.useState(0),[N,C]=S.useState(0),[A,E]=S.useState(!1),[_,R]=S.useState(!1),O=ht(t,D=>u(D)),F=Jd(i);return s.jsx(vme,{scope:r,type:n,dir:F,scrollHideDelay:a,scrollArea:l,viewport:d,onViewportChange:m,content:h,onContentChange:p,scrollbarX:x,onScrollbarXChange:w,scrollbarXEnabled:A,onScrollbarXEnabledChange:E,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:_,onScrollbarYEnabledChange:R,onCornerWidthChange:k,onCornerHeightChange:C,children:s.jsx(Xe.div,{dir:F,...o,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});xz.displayName=$P;var yz="ScrollAreaViewport",vz=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:i,...a}=e,o=Ms(yz,r),l=S.useRef(null),u=ht(t,l,o.onViewportChange);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),s.jsx(Xe.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:s.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});
vendor: 3,437 bytes, line 684
684vz.displayName=yz;var Bi="ScrollAreaScrollbar",FP=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Ms(Bi,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,l=e.orientation==="horizontal";return S.useEffect(()=>(l?a(!0):o(!0),()=>{l?a(!1):o(!1)}),[l,a,o]),i.type==="hover"?s.jsx(bme,{...n,ref:t,forceMount:r}):i.type==="scroll"?s.jsx(wme,{...n,ref:t,forceMount:r}):i.type==="auto"?s.jsx(bz,{...n,ref:t,forceMount:r}):i.type==="always"?s.jsx(BP,{...n,ref:t}):null});FP.displayName=Bi;var bme=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Ms(Bi,e.__scopeScrollArea),[a,o]=S.useState(!1);return S.useEffect(()=>{const l=i.scrollArea;let u=0;if(l){const d=()=>{window.clearTimeout(u),o(!0)},m=()=>{u=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",m),()=>{window.clearTimeout(u),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",m)}}},[i.scrollArea,i.scrollHideDelay]),s.jsx(ms,{present:r||a,children:s.jsx(bz,{"data-state":a?"visible":"hidden",...n,ref:t})})}),wme=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=Ms(Bi,e.__scopeScrollArea),a=e.orientation==="horizontal",o=ob(()=>u("SCROLL_END"),100),[l,u]=yme("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return S.useEffect(()=>{if(l==="idle"){const d=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,i.scrollHideDelay,u]),S.useEffect(()=>{const d=i.viewport,m=a?"scrollLeft":"scrollTop";if(d){let h=d[m];const p=()=>{const x=d[m];h!==x&&(u("SCROLL"),o()),h=x};return d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[i.viewport,a,u,o]),s.jsx(ms,{present:r||l!=="hidden",children:s.jsx(BP,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Be(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:Be(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),bz=S.forwardRef((e,t)=>{const r=Ms(Bi,e.__scopeScrollArea),{forceMount:n,...i}=e,[a,o]=S.useState(!1),l=e.orientation==="horizontal",u=ob(()=>{if(r.viewport){const d=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;o(l?d:m)}},10);return hd(r.viewport,u),hd(r.content,u),s.jsx(ms,{present:n||a,children:s.jsx(BP,{"data-state":a?"visible":"hidden",...i,ref:t})})}),BP=S.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,i=Ms(Bi,e.__scopeScrollArea),a=S.useRef(null),o=S.useRef(0),[l,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Nz(l.viewport,l.content),m={...n,sizes:l,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:p=>a.current=p,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:p=>o.current=p};function h(p,x){return Ame(p,o.current,l,x)}return r==="horizontal"?s.jsx(jme,{...m,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const p=i.viewport.scrollLeft,x=gM(p,l,i.dir);a.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollLeft=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollLeft=h(p,i.dir))}}):r==="vertical"?s.jsx(Sme,{...m,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const p=i.viewport.scrollTop,x=gM(p,l);a.current.style.transform=`translate3d(0, ${x}
684px, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollTop=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollTop=h(p))}}):null}),jme=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,a=Ms(Bi,e.__scopeScrollArea),[o,l]=S.useState(),u=S.useRef(null),d=ht(t,u,a.onScrollbarXChange);return S.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),s.jsx(jz,{"data-orientation":"horizontal",...i,ref:d,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ab(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,h)=>{if(a.viewport){const p=a.viewport.scrollLeft+m.deltaX;e.onWheelScroll(p),Az(p,h)&&m.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:hy(o.paddingLeft),paddingEnd:hy(o.paddingRight)}})}})}),Sme=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...i}=e,a=Ms(Bi,e.__scopeScrollArea),[o,l]=S.useState(),u=S.useRef(null),d=ht(t,u,a.onScrollbarYChange);return S.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),s.jsx(jz,{"data-orientation":"vertical",...i,ref:d,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ab(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,h)=>{if(a.viewport){const p=a.viewport.scrollTop+m.deltaY;e.onWheelScroll(p),Az(p,h)&&m.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&n({content:a.viewport.scrollHeight,viewport:
vendor: 5,785 bytes, line 684
684a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:hy(o.paddingTop),paddingEnd:hy(o.paddingBottom)}})}})}),[kme,wz]=gz(Bi),jz=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:l,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:m,onResize:h,...p}=e,x=Ms(Bi,r),[w,v]=S.useState(null),y=ht(t,O=>v(O)),j=S.useRef(null),k=S.useRef(""),N=x.viewport,C=n.content-n.viewport,A=Mr(m),E=Mr(u),_=ob(h,10);function R(O){if(j.current){const F=O.clientX-j.current.left,D=O.clientY-j.current.top;d({x:F,y:D})}}return S.useEffect(()=>{const O=F=>{const D=F.target;(w==null?void 0:w.contains(D))&&A(F,C)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[N,w,C,A]),S.useEffect(E,[n,E]),hd(w,_),hd(x.content,_),s.jsx(kme,{scope:r,scrollbar:w,hasThumb:i,onThumbChange:Mr(a),onThumbPointerUp:Mr(o),onThumbPositionChange:E,onThumbPointerDown:Mr(l),children:s.jsx(Xe.div,{...p,ref:y,style:{position:"absolute",...p.style},onPointerDown:Be(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),j.current=w.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),R(O))}),onPointerMove:Be(e.onPointerMove,R),onPointerUp:Be(e.onPointerUp,O=>{const F=O.target;F.hasPointerCapture(O.pointerId)&&F.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=k.current,x.viewport&&(x.viewport.style.scrollBehavior=""),j.current=null})})})}),fy="ScrollAreaThumb",Sz=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=wz(fy,e.__scopeScrollArea);return s.jsx(ms,{present:r||i.hasThumb,children:s.jsx(Nme,{ref:t,...n})})}),Nme=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...i}=e,a=Ms(fy,r),o=wz(fy,r),{onThumbPositionChange:l}=o,u=ht(t,h=>o.onThumbChange(h)),d=S.useRef(void 0),m=ob(()=>{d.current&&(d.current(),d.current=void 0)},100);return S.useEffect(()=>{const h=a.viewport;if(h){const p=()=>{if(m(),!d.current){const x=Cme(h,l);d.current=x,l()}};return l(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[a.viewport,m,l]),s.jsx(Xe.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Be(e.onPointerDownCapture,h=>{const x=h.target.getBoundingClientRect(),w=h.clientX-x.left,v=h.clientY-x.top;o.onThumbPointerDown({x:w,y:v})}),onPointerUp:Be(e.onPointerUp,o.onThumbPointerUp)})});Sz.displayName=fy;var VP="ScrollAreaCorner",kz=S.forwardRef((e,t)=>{const r=Ms(VP,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?s.jsx(Tme,{...e,ref:t}):null});kz.displayName=VP;var Tme=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,i=Ms(VP,r),[a,o]=S.useState(0),[l,u]=S.useState(0),d=!!(a&&l);return hd(i.scrollbarX,()=>{var h;const m=((h=i.scrollbarX)==null?void 0:h.offsetHeight)||0;i.onCornerHeightChange(m),u(m)}),hd(i.scrollbarY,()=>{var h;const m=((h=i.scrollbarY)==null?void 0:h.offsetWidth)||0;i.onCornerWidthChange(m),o(m)}),d?s.jsx(Xe.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function hy(e){return e?parseInt(e,10):0}function Nz(e,t){const r=e/t;return isNaN(r)?0:r}function ab(e){const t=Nz(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Ame(e,t,r,n="ltr"){const i=ab(r),a=i/2,o=t||a,l=i-o,u=r.scrollbar.paddingStart+o,d=r.scrollbar.size-r.scrollbar.paddingEnd-l,m=r.content-r.viewport,h=n==="ltr"?[0,m]:[m*-1,0];return Tz([u,d],h)(e)}function gM(e,t,r="ltr"){const n=ab(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,l=a-n,u=r==="ltr"?[0,o]:[o*-1,0],d=nm(e,u);return Tz([0,o],[0,l])(d)}function Tz(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Az(e,t){return e>0&&e<t}var Cme=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=r.left!==a.left,l=r.top!==a.top;(o||l)&&t(),r=a,n=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(n)};function ob(e,t){const r=Mr(e),n=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),S.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function hd(e,t){const r=Mr(t);Gr(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,r])}var Cz=xz,Pme=vz,Eme=kz;const xT=S.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Cz,{ref:n,className:Fe("relative overflow-hidden",e),...r,children:[s.jsx(Pme,{className:"h-full w-full rounded-[inherit]",children:t}),s.jsx(Pz,{}),s.jsx(Eme,{})]}));xT.displayName=Cz.displayName;const Pz=S.forwardRef(({className:e,orientation:t="vertical",...r},n)=>s.jsx(FP,{ref:n,orientation:t,className:Fe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:s.jsx(Sz,{className:"relative flex-1 rounded-full bg-border"})}));Pz.displayName=FP.displayName;var Lj,xM;function Wn(){if(xM)return Lj;xM=1;var e=Array.isArray;return Lj=e,Lj}var $j,yM;function Ez(){if(yM)return $j;yM=1;var e=typeof Pg=="object"&&Pg&&Pg.Object===Object&&Pg;return $j=e,$j}var Fj,vM;function Vi(){if(vM)return Fj;vM=1;
vendor: 7,651 bytes, line 684
684var e=Ez(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Fj=r,Fj}var Bj,bM;function fp(){if(bM)return Bj;bM=1;var e=Vi(),t=e.Symbol;return Bj=t,Bj}var Vj,wM;function _me(){if(wM)return Vj;wM=1;var e=fp(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var l=r.call(o,i),u=o[i];try{o[i]=void 0;var d=!0}catch{}var m=n.call(o);return d&&(l?o[i]=u:delete o[i]),m}return Vj=a,Vj}var qj,jM;function Ome(){if(jM)return qj;jM=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return qj=r,qj}var Wj,SM;function La(){if(SM)return Wj;SM=1;var e=fp(),t=_me(),r=Ome(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:n:a&&a in Object(l)?t(l):r(l)}return Wj=o,Wj}var zj,kM;function $a(){if(kM)return zj;kM=1;function e(t){return t!=null&&typeof t=="object"}return zj=e,zj}var Uj,NM;function sf(){if(NM)return Uj;NM=1;var e=La(),t=$a(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Uj=n,Uj}var Hj,TM;function qP(){if(TM)return Hj;TM=1;var e=Wn(),t=sf(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Hj=i,Hj}var Gj,AM;function nl(){if(AM)return Gj;AM=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Gj=e,Gj}var Kj,CM;function WP(){if(CM)return Kj;CM=1;var e=La(),t=nl(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!t(l))return!1;var u=e(l);return u==n||u==i||u==r||u==a}return Kj=o,Kj}var Yj,PM;function Ime(){if(PM)return Yj;PM=1;var e=Vi(),t=e["__core-js_shared__"];return Yj=t,Yj}var Xj,EM;function Rme(){if(EM)return Xj;EM=1;var e=Ime(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Xj=r,Xj}var Qj,_M;function _z(){if(_M)return Qj;_M=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Qj=r,Qj}var Zj,OM;function Mme(){if(OM)return Zj;OM=1;var e=WP(),t=Rme(),r=nl(),n=_z(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,u=o.toString,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(p){if(!r(p)||t(p))return!1;var x=e(p)?m:a;return x.test(n(p))}return Zj=h,Zj}var Jj,IM;function Dme(){if(IM)return Jj;IM=1;function e(t,r){return t==null?void 0:t[r]}return Jj=e,Jj}var e1,RM;function Ec(){if(RM)return e1;RM=1;var e=Mme(),t=Dme();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return e1=r,e1}var t1,MM;function lb(){if(MM)return t1;MM=1;var e=Ec(),t=e(Object,"create");return t1=t,t1}var r1,DM;function Lme(){if(DM)return r1;DM=1;var e=lb();function t(){this.__data__=e?e(null):{},this.size=0}return r1=t,r1}var n1,LM;function $me(){if(LM)return n1;LM=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return n1=e,n1}var s1,$M;function Fme(){if($M)return s1;$M=1;var e=lb(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var l=o[a];return l===t?void 0:l}return n.call(o,a)?o[a]:void 0}return s1=i,s1}var i1,FM;function Bme(){if(FM)return i1;FM=1;var e=lb(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return i1=n,i1}var a1,BM;function Vme(){if(BM)return a1;BM=1;var e=lb(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return a1=r,a1}var o1,VM;function qme(){if(VM)return o1;VM=1;var e=Lme(),t=$me(),r=Fme(),n=Bme(),i=Vme();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,o1=a,o1}var l1,qM;function Wme(){if(qM)return l1;qM=1;function e(){this.__data__=[],this.size=0}return l1=e,l1}var c1,WM;function zP(){if(WM)return c1;WM=1;function e(t,r){return t===r||t!==t&&r!==r}return c1=e,c1}var u1,zM;function cb(){if(zM)return u1;zM=1;var e=zP();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return u1=t,u1}var d1,UM;function zme(){if(UM)return d1;UM=1;var e=cb(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():r.call(a,o,1),--this.size,!0}return d1=n,d1}var f1,HM;function Ume(){if(HM)return f1;HM=1;var e=cb();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return f1=t,f1}var h1,GM;function Hme(){if(GM)return h1;GM=1;var e=cb();function t(r){return e(this.__data__,r)>-1}return h1=t,h1}var m1,KM;function Gme(){if(KM)return m1;KM=1;var e=cb();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return m1=t,m1}var p1,YM;function ub(){if(YM)return p1;YM=1;var e=Wme(),t=zme(),r=Ume(),n=Hme(),i=Gme();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,p1=a,p1}var g1,XM;function UP(){if(XM)return g1;XM=1;var e=Ec(),t=Vi(),r=e(t,"Map");return g1=r,g1}var x1,QM;function Kme(){if(QM)return x1;QM=1;var e=qme(),t=ub(),r=UP();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return x1=n,x1}var y1,ZM;function Yme(){if(ZM)return y1;ZM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return y1=e,y1}var v1,JM;function db(){if(JM)return v1;JM=1;var e=Yme();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return v1=t,v1}var b1,e3;function Xme(){if(e3)return b1;e3=1;var e=db();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return b1=t,b1}var w1,t3;function Qme(){if(t3)return w1;t3=1;var e=db();function t(r){return e(this,r).get(r)}return w1=t,w1}var j1,r3;function Zme(){if(r3)return j1;r3=1;var e=db();function t(r){return e(this,r).has(r)}return j1=t,j1}var S1,n3;function Jme(){if(n3)return S1;n3=1;var e=db();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return S1=t,S1}var k1,s3;function HP(){if(s3)return k1;s3=1;var e=Kme(),t=Xme(),r=Qme(),n=Zme(),i=Jme();function a(o){var l=-1,u=o==null?0:o.length;for(this.clear();++l<u;){var d=o[l];this.set(d[0],d[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,k1=a,k1}var N1,i3;function Oz(){if(i3)return N1;i3=1;var e=HP(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,l=i?i.apply(this,o):o[0],u=a.cache;if(u.has(l))return u.get(l);var d=n.apply(this,o);return a.cache=u.set(l,d)||u,d};return a.cache=new(r.Cache||e),a}return r.Cache=e,N1=r,N1}var T1,a3;function epe(){if(a3)return T1;a3=1;var e=Oz(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return T1=r,T1}var A1,o3;function tpe(){if(o3)return A1;o3=1;var e=epe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];
vendor: 7,190 bytes, lines 684-692
684return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,l,u,d){a.push(u?d.replace(r,"$1"):l||o)}),a});return A1=n,A1}var C1,l3;function GP(){if(l3)return C1;l3=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return C1=e,C1}var P1,c3;function rpe(){if(c3)return P1;c3=1;var e=fp(),t=GP(),r=Wn(),n=sf(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(r(l))return t(l,o)+"";if(n(l))return a?a.call(l):"";var u=l+"";return u=="0"&&1/l==-1/0?"-0":u}return P1=o,P1}var E1,u3;function Iz(){if(u3)return E1;u3=1;var e=rpe();function t(r){return r==null?"":e(r)}return E1=t,E1}var _1,d3;function Rz(){if(d3)return _1;d3=1;var e=Wn(),t=qP(),r=tpe(),n=Iz();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return _1=i,_1}var O1,f3;function fb(){if(f3)return O1;f3=1;var e=sf();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return O1=t,O1}var I1,h3;function KP(){if(h3)return I1;h3=1;var e=Rz(),t=fb();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return I1=r,I1}var R1,m3;function Mz(){if(m3)return R1;m3=1;var e=KP();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return R1=t,R1}var npe=Mz();const ls=Tt(npe);var M1,p3;function spe(){if(p3)return M1;p3=1;function e(t){return t==null}return M1=e,M1}var ipe=spe();const jt=Tt(ipe);var D1,g3;function ape(){if(g3)return D1;g3=1;var e=La(),t=Wn(),r=$a(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return D1=i,D1}var ope=ape();const pc=Tt(ope);var lpe=WP();const lt=Tt(lpe);var cpe=nl();const af=Tt(cpe);var L1={exports:{}},Ot={};/**
685 * @license React
686 * react-is.production.min.js
687 *
688 * Copyright (c) Facebook, Inc. and its affiliates.
689 *
690 * This source code is licensed under the MIT license found in the
691 * LICENSE file in the root directory of this source tree.
692 */var x3;function upe(){if(x3)return Ot;x3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var j=y.$$typeof;switch(j){case e:switch(y=y.type,y){case r:case i:case n:case d:case m:return y;default:switch(y=y&&y.$$typeof,y){case l:case o:case u:case p:case h:case a:return y;default:return j}}case t:return j}}}return Ot.ContextConsumer=o,Ot.ContextProvider=a,Ot.Element=e,Ot.ForwardRef=u,Ot.Fragment=r,Ot.Lazy=p,Ot.Memo=h,Ot.Portal=t,Ot.Profiler=i,Ot.StrictMode=n,Ot.Suspense=d,Ot.SuspenseList=m,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(y){return v(y)===o},Ot.isContextProvider=function(y){return v(y)===a},Ot.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ot.isForwardRef=function(y){return v(y)===u},Ot.isFragment=function(y){return v(y)===r},Ot.isLazy=function(y){return v(y)===p},Ot.isMemo=function(y){return v(y)===h},Ot.isPortal=function(y){return v(y)===t},Ot.isProfiler=function(y){return v(y)===i},Ot.isStrictMode=function(y){return v(y)===n},Ot.isSuspense=function(y){return v(y)===d},Ot.isSuspenseList=function(y){return v(y)===m},Ot.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===d||y===m||y===x||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===h||y.$$typeof===a||y.$$typeof===o||y.$$typeof===u||y.$$typeof===w||y.getModuleId!==void 0)},Ot.typeOf=v,Ot}var y3;function dpe(){return y3||(y3=1,L1.exports=upe()),L1.exports}var fpe=dpe(),$1,v3;function Dz(){if(v3)return $1;v3=1;var e=La(),t=$a(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return $1=n,$1}var F1,b3;function hpe(){if(b3)return F1;b3=1;var e=Dz();function t(r){return e(r)&&r!=+r}return F1=t,F1}var mpe=hpe();const hp=Tt(mpe);var ppe=Dz();const gpe=Tt(ppe);var Nn=function(t){return t===0?0:t>0?1:-1},$l=function(t){return pc(t)&&t.indexOf("%")===t.length-1},Ne=function(t){return gpe(t)&&!hp(t)},xpe=function(t){return jt(t)},Dr=function(t){return Ne(t)||pc(t)},ype=0,mp=function(t){var r=++ype;return"".concat(t||"").concat(r)},Tn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ne(t)&&!pc(t))return n;var a;if($l(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return hp(a)&&(a=n),i&&a>r&&(a=r),a},bo=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},vpe=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},yo=function(t,r){return Ne(t)&&Ne(r)?function(n){return t+n*(r-t)}:function(){return r}};function yT(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ls(n,t))===r})}var bpe=function(t,r){return Ne(t)&&Ne(r)?t-r:pc(t)&&pc(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mu(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 vT(e){"@babel/helpers - typeof";return vT=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},vT(e)}var wpe=["viewBox","children"],jpe=["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
692dering","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"],w3=["points","pathLength"],B1={svg:wpe,polygon:w3,polyline:w3},YP=["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
692Capture","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"],my=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!af(n))return null;var i={};return Object.keys(n).forEach(function(a){YP.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Spe=function(t,r,n){return function(i){return t(r,n,i),null}},gc=function(t,r,n){if(!af(t)||vT(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];YP.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Spe(o,r,n))}),i},kpe=["children"],Npe=["children"];function j3(e,t){if(e==null)return{};var r=Tpe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tpe(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 S3={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"},va=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},k3=null,V1=null,XP=function e(t){if(t===k3&&Array.isArray(V1))return V1;var r=[];return S.Children.forEach(t,function(n){jt(n)||(fpe.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),V1=r,k3=t,r};function _s(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return va(i)}):n=[va(t)],XP(e).forEach(function(i){var a=ls(i,"type.displayName")||ls(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Yn(e,t){var r=_s(e,t);return r&&r[0]}var N3=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Ne(n)||n<=0||!Ne(i)||i<=0)},Ape=["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"],Cpe=function(t){return t&&t.type&&pc(t.type)&&Ape.indexOf(t.type)>=0},Ppe=function(t,r,n,i){var a,o=(a=B1==null?void 0:B1[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!lt(t)&&(i&&o.includes(r)||jpe.includes(r))||n&&YP.includes(r)},it=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!af(i))return null;var a={};
vendor: 4,472 bytes, line 692
692return Object.keys(i).forEach(function(o){var l;Ppe((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},bT=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return T3(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!T3(a,o))return!1}return!0},T3=function(t,r){if(jt(t)&&jt(r))return!0;if(!jt(t)&&!jt(r)){var n=t.props||{},i=n.children,a=j3(n,kpe),o=r.props||{},l=o.children,u=j3(o,Npe);return i&&l?Mu(a,u)&&bT(i,l):!i&&!l?Mu(a,u):!1}return!1},A3=function(t,r){var n=[],i={};return XP(t).forEach(function(a,o){if(Cpe(a))n.push(a);else if(a){var l=va(a.type),u=r[l]||{},d=u.handler,m=u.once;if(d&&(!m||!i[l])){var h=d(a,l,o);n.push(h),i[l]=!0}}}),n},Epe=function(t){var r=t&&t.type;return r&&S3[r]?S3[r]:null},_pe=function(t,r){return XP(r).indexOf(t)},Ope=["children","width","height","viewBox","className","style","title","desc"];function wT(){return wT=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},wT.apply(this,arguments)}function Ipe(e,t){if(e==null)return{};var r=Rpe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rpe(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 jT(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,d=Ipe(e,Ope),m=i||{width:r,height:n,x:0,y:0},h=yt("recharts-surface",a);return W.createElement("svg",wT({},it(d,!0,"svg"),{className:h,width:r,height:n,style:o,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),W.createElement("title",null,l),W.createElement("desc",null,u),t)}var Mpe=["children","className"];function ST(){return ST=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},ST.apply(this,arguments)}function Dpe(e,t){if(e==null)return{};var r=Lpe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lpe(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 $t=W.forwardRef(function(e,t){var r=e.children,n=e.className,i=Dpe(e,Mpe),a=yt("recharts-layer",n);return W.createElement("g",ST({className:a},it(i,!0),{ref:t}),r)}),si=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},q1,C3;function $pe(){if(C3)return q1;C3=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return q1=e,q1}var W1,P3;function Fpe(){if(P3)return W1;P3=1;var e=$pe();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return W1=t,W1}var z1,E3;function Lz(){if(E3)return z1;E3=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+i+a+"]");function u(d){return l.test(d)}return z1=u,z1}var U1,_3;function Bpe(){if(_3)return U1;_3=1;function e(t){return t.split("")}return U1=e,U1}var H1,O3;function Vpe(){if(O3)return H1;O3=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+u+")",m="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",w=d+"?",v="["+a+"]?",y="(?:"+x+"(?:"+[m,h,p].join("|")+")"+v+w+")*",j=v+w+y,k="(?:"+[m+l+"?",l,h,p,o].join("|")+")",N=RegExp(u+"(?="+u+")|"+k+j,"g");function C(A){return A.match(N)||[]}return H1=C,H1}var G1,I3;function qpe(){if(I3)return G1;I3=1;var e=Bpe(),t=Lz(),r=Vpe();function n(i){return t(i)?r(i):e(i)}return G1=n,G1}var K1,R3;function Wpe(){if(R3)return K1;R3=1;var e=Fpe(),t=Lz(),r=qpe(),n=Iz();function i(a){return function(o){o=n(o);
vendor: 6,252 bytes, line 692
692var l=t(o)?r(o):void 0,u=l?l[0]:o.charAt(0),d=l?e(l,1).join(""):o.slice(1);return u[a]()+d}}return K1=i,K1}var Y1,M3;function zpe(){if(M3)return Y1;M3=1;var e=Wpe(),t=e("toUpperCase");return Y1=t,Y1}var Upe=zpe();const hb=Tt(Upe);function Gt(e){return function(){return e}}const $z=Math.cos,py=Math.sin,ci=Math.sqrt,gy=Math.PI,mb=2*gy,kT=Math.PI,NT=2*kT,El=1e-6,Hpe=NT-El;function Fz(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Gpe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Fz;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Kpe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Fz:Gpe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,u=n-t,d=i-r,m=o-t,h=l-r,p=m*m+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>El)if(!(Math.abs(h*u-d*m)>El)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let x=n-o,w=i-l,v=u*u+d*d,y=x*x+w*w,j=Math.sqrt(v),k=Math.sqrt(p),N=a*Math.tan((kT-Math.acos((v+p-y)/(2*j*k)))/2),C=N/k,A=N/j;Math.abs(C-1)>El&&this._append`L${t+C*m},${r+C*h}`,this._append`A${a},${a},0,0,${+(h*x>m*w)},${this._x1=t+A*u},${this._y1=r+A*d}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),d=t+l,m=r+u,h=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>El||Math.abs(this._y1-m)>El)&&this._append`L${d},${m}`,n&&(p<0&&(p=p%NT+NT),p>Hpe?this._append`A${n},${n},0,1,${h},${t-l},${r-u}A${n},${n},0,1,${h},${this._x1=d},${this._y1=m}`:p>El&&this._append`A${n},${n},0,${+(p>=kT)},${h},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function QP(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 Kpe(t)}function ZP(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Bz(e){this._context=e}Bz.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 pb(e){return new Bz(e)}function Vz(e){return e[0]}function qz(e){return e[1]}function Wz(e,t){var r=Gt(!0),n=null,i=pb,a=null,o=QP(l);e=typeof e=="function"?e:e===void 0?Vz:Gt(e),t=typeof t=="function"?t:t===void 0?qz:Gt(t);function l(u){var d,m=(u=ZP(u)).length,h,p=!1,x;for(n==null&&(a=i(x=o())),d=0;d<=m;++d)!(d<m&&r(h=u[d],d,u))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(h,d,u),+t(h,d,u));if(x)return a=null,x+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Gt(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Gt(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Gt(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),l):n},l}function Hg(e,t,r){var n=null,i=Gt(!0),a=null,o=pb,l=null,u=QP(d);e=typeof e=="function"?e:e===void 0?Vz:Gt(+e),t=typeof t=="function"?t:Gt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?qz:Gt(+r);function d(h){var p,x,w,v=(h=ZP(h)).length,y,j=!1,k,N=new Array(v),C=new Array(v);for(a==null&&(l=o(k=u())),p=0;p<=v;++p){if(!(p<v&&i(y=h[p],p,h))===j)if(j=!j)x=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=p-1;w>=x;--w)l.point(N[w],C[w]);l.lineEnd(),l.areaEnd()}j&&(N[p]=+e(y,p,h),C[p]=+t(y,p,h),l.point(n?+n(y,p,h):N[p],r?+r(y,p,h):C[p]))}if(k)return l=null,k+""||null}function m(){return Wz().defined(i).curve(o).context(a)}return d.x=function(h){return arguments.length?(e=typeof h=="function"?h:Gt(+h),n=null,d):e},d.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Gt(+h),d):e},d.x1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Gt(+h),d):n},d.y=function(h){return arguments.length?(t=typeof h=="function"?h:Gt(+h),r=null,d):t},d.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Gt(+h),d):t},d.y1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Gt(+h),d):r},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(r)},d.lineX1=function(){return m().x(n).y(t)},d.defined=function(h){return arguments.length?(i=typeof h=="function"?h:Gt(!!h),d):i},d.curve=function(h){return arguments.length?(o=h,a!=null&&(l=o(a)),d):o},d.context=function(h){return arguments.length?(h==null?a=l=null:l=o(a=h),d):a},d}class zz{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 Ype(e){return new zz(e,!0)}function Xpe(e){return new zz(e,!1)}const JP={draw(e,t){const r=ci(t/gy);e.moveTo(r,0),e.arc(0,0,r,0,mb)}}
692,Qpe={draw(e,t){const r=ci(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Uz=ci(1/3),Zpe=Uz*2,Jpe={draw(e,t){const r=ci(t/Zpe),n=r*Uz;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ege={draw(e,t){const r=ci(t),n=-r/2;e.rect(n,n,r,r)}},tge=.8908130915292852,Hz=py(gy/10)/py(7*gy/10),rge=py(mb/10)*Hz,nge=-$z(mb/10)*Hz,sge={draw(e,t){const r=ci(t*tge),n=rge*r,i=nge*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=mb*a/5,l=$z(o),u=py(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},X1=ci(3),ige={draw(e,t){const r=-ci(t/(X1*3));e.moveTo(0,r*2),e.lineTo(-X1*r,-r),e.lineTo(X1*r,-r),e.closePath()}},js=-.5,Ss=ci(3)/2,TT=1/ci(12),age=(TT/2+1)*3,oge={draw(e,t){const r=ci(t/age),n=r/2,i=r*TT,a=n,o=r*TT+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(js*n-Ss*i,Ss*n+js*i),e.lineTo(js*a-Ss*o,Ss*a+js*o),e.lineTo(js*l-Ss*u,Ss*l+js*u),e.lineTo(js*n+Ss*i,js*i-Ss*n),e.lineTo(js*a+Ss*o,js*o-Ss*a),e.lineTo(js*l+Ss*u,js*u-Ss*l),e.closePath()}};function lge(e,t){let r=null,n=QP(i);e=typeof e=="function"?e:Gt(e||JP),t=typeof t=="function"?t:Gt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Gt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Gt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function xy(){}function yy(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 Gz(e){this._context=e}Gz.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:yy(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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cge(e){return new Gz(e)}function Kz(e){this._context=e}Kz.prototype={areaStart:xy,areaEnd:xy,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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uge(e){return new Kz(e)}function Yz(e){this._context=e}Yz.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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dge(e){return new Yz(e)}function Xz(e){this._context=e}Xz.prototype={areaStart:xy,areaEnd:xy,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))}};
vendor: 4,108 bytes, line 692
692function fge(e){return new Xz(e)}function D3(e){return e<0?-1:1}function L3(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(D3(a)+D3(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function $3(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Q1(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function vy(e){this._context=e}vy.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:Q1(this,this._t0,$3(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,Q1(this,$3(this,r=L3(this,e,t)),r);break;default:Q1(this,this._t0,r=L3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Qz(e){this._context=new Zz(e)}(Qz.prototype=Object.create(vy.prototype)).point=function(e,t){vy.prototype.point.call(this,t,e)};function Zz(e){this._context=e}Zz.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function hge(e){return new vy(e)}function mge(e){return new Qz(e)}function Jz(e){this._context=e}Jz.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=F3(e),i=F3(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function F3(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function pge(e){return new Jz(e)}function gb(e,t){this._context=e,this._t=t}gb.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 gge(e){return new gb(e,.5)}function xge(e){return new gb(e,0)}function yge(e){return new gb(e,1)}function md(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function AT(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function vge(e,t){return e[t]}function bge(e){const t=[];return t.key=e,t}function wge(){var e=Gt([]),t=AT,r=md,n=vge;function i(a){var o=Array.from(e.apply(this,arguments),bge),l,u=o.length,d=-1,m;
vendor: 16,925 bytes, lines 692-695
692for(const h of a)for(l=0,++d;l<u;++l)(o[l][d]=[0,+n(h,o[l].key,d,a)]).data=h;for(l=0,m=ZP(t(o));l<u;++l)o[m[l]].index=l;return r(o,m),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Gt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Gt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?AT:typeof a=="function"?a:Gt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??md,i):r},i}function jge(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}md(e,t)}}function Sge(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}md(e,t)}}function kge(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var l=0,u=0,d=0;l<o;++l){for(var m=e[t[l]],h=m[n][1]||0,p=m[n-1][1]||0,x=(h-p)/2,w=0;w<l;++w){var v=e[t[w]],y=v[n][1]||0,j=v[n-1][1]||0;x+=y-j}u+=h,d+=x*h}i[n-1][1]+=i[n-1][0]=r,u&&(r-=d/u)}i[n-1][1]+=i[n-1][0]=r,md(e,t)}}function im(e){"@babel/helpers - typeof";return im=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},im(e)}var Nge=["type","size","sizeType"];function CT(){return CT=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},CT.apply(this,arguments)}function B3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B3(Object(r),!0).forEach(function(n){Tge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tge(e,t,r){return t=Age(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Age(e){var t=Cge(e,"string");return im(t)=="symbol"?t:t+""}function Cge(e,t){if(im(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(im(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pge(e,t){if(e==null)return{};var r=Ege(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ege(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 eU={symbolCircle:JP,symbolCross:Qpe,symbolDiamond:Jpe,symbolSquare:ege,symbolStar:sge,symbolTriangle:ige,symbolWye:oge},_ge=Math.PI/180,Oge=function(t){var r="symbol".concat(hb(t));return eU[r]||JP},Ige=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*_ge;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Rge=function(t,r){eU["symbol".concat(hb(t))]=r},eE=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=Pge(t,Nge),d=V3(V3({},u),{},{type:n,size:a,sizeType:l}),m=function(){var y=Oge(n),j=lge().type(y).size(Ige(a,l,n));return j()},h=d.className,p=d.cx,x=d.cy,w=it(d,!0);return p===+p&&x===+x&&a===+a?W.createElement("path",CT({},w,{className:yt("recharts-symbols",h),transform:"translate(".concat(p,", ").concat(x,")"),d:m()})):null};eE.registerSymbol=Rge;function pd(e){"@babel/helpers - typeof";return pd=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},pd(e)}function PT(){return PT=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},PT.apply(this,arguments)}function q3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q3(Object(r),!0).forEach(function(n){am(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rU(n.key),n)}}function $ge(e,t,r){return t&&Lge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fge(e,t,r){return t=by(t),Bge(e,tU()?Reflect.construct(t,r||[],by(e).constructor):t.apply(e,r))}function Bge(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vge(e)}function Vge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tU=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},by(e)}function qge(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&&ET(e,t)}function ET(e,t){return ET=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ET(e,t)}function am(e,t,r){return t=rU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rU(e){var t=Wge(e,"string");return pd(t)=="symbol"?t:t+""}function Wge(e,t){if(pd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ks=32,tE=(function(e){function t(){return Dge(this,t),Fge(this,t,arguments)}return qge(t,e),$ge(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ks/2,o=ks/6,l=ks/3,u=n.inactive?i:n.color;if(n.type==="plainline")return W.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ks,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return W.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(l,`
693            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
694            H`).concat(ks,"M").concat(2*l,",").concat(a,`
695            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return W.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(ks/8,"h").concat(ks,"v").concat(ks*3/4,"h").concat(-ks,"z"),className:"recharts-legend-icon"});if(W.isValidElement(n.legendIcon)){var d=Mge({},n);return delete d.legendIcon,W.cloneElement(n.legendIcon,d)}return W.createElement(eE,{fill:u,cx:a,cy:a,size:ks,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,u=i.formatter,d=i.inactiveColor,m={x:0,y:0,width:ks,height:ks},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(x,w){var v=x.formatter||u,y=yt(am(am({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",x.inactive));if(x.type==="none")return null;var j=lt(x.value)?null:x.value;si(!lt(x.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 k=x.inactive?d:x.color;return W.createElement("li",PT({className:y,style:h,key:"legend-item-".concat(w)},gc(n.props,x,w)),W.createElement(jT,{width:o,height:o,viewBox:m,style:p},n.renderIcon(x)),W.createElement("span",{className:"recharts-legend-item-text",style:{color:k}},v?v(j,x,w):j))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return W.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(S.PureComponent);am(tE,"displayName","Legend");am(tE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Z1,W3;function zge(){if(W3)return Z1;W3=1;var e=ub();function t(){this.__data__=new e,this.size=0}return Z1=t,Z1}var J1,z3;function Uge(){if(z3)return J1;z3=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return J1=e,J1}var eS,U3;function Hge(){if(U3)return eS;U3=1;function e(t){return this.__data__.get(t)}return eS=e,eS}var tS,H3;function Gge(){if(H3)return tS;H3=1;function e(t){return this.__data__.has(t)}return tS=e,tS}var rS,G3;function Kge(){if(G3)return rS;G3=1;var e=ub(),t=UP(),r=HP(),n=200;function i(a,o){var l=this.__data__;if(l instanceof e){var u=l.__data__;if(!t||u.length<n-1)return u.push([a,o]),this.size=++l.size,this;l=this.__data__=new r(u)}return l.set(a,o),this.size=l.size,this}return rS=i,rS}var nS,K3;function nU(){if(K3)return nS;K3=1;var e=ub(),t=zge(),r=Uge(),n=Hge(),i=Gge(),a=Kge();function o(l){var u=this.__data__=new e(l);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,nS=o,nS}var sS,Y3;function Yge(){if(Y3)return sS;Y3=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return sS=t,sS}var iS,X3;function Xge(){if(X3)return iS;X3=1;function e(t){return this.__data__.has(t)}return iS=e,iS}var aS,Q3;function sU(){if(Q3)return aS;Q3=1;var e=HP(),t=Yge(),r=Xge();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,aS=n,aS}var oS,Z3;function iU(){if(Z3)return oS;Z3=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return oS=e,oS}var lS,J3;function aU(){if(J3)return lS;J3=1;function e(t,r){return t.has(r)}return lS=e,lS}var cS,e6;function oU(){if(e6)return cS;e6=1;var e=sU(),t=iU(),r=aU(),n=1,i=2;function a(o,l,u,d,m,h){var p=u&n,x=o.length,w=l.length;if(x!=w&&!(p&&w>x))return!1;var v=h.get(o),y=h.get(l);if(v&&y)return v==l&&y==o;var j=-1,k=!0,N=u&i?new e:void 0;for(h.set(o,l),h.set(l,o);++j<x;){var C=o[j],A=l[j];if(d)var E=p?d(A,C,j,l,o,h):d(C,A,j,o,l,h);if(E!==void 0){if(E)continue;k=!1;break}if(N){if(!t(l,function(_,R){if(!r(N,R)&&(C===_||m(C,_,u,d,h)))return N.push(R)})){k=!1;break}}else if(!(C===A||m(C,A,u,d,h))){k=!1;break}}return h.delete(o),h.delete(l),k}return cS=a,cS}var uS,t6;function Qge(){if(t6)return uS;t6=1;var e=Vi(),t=e.Uint8Array;return uS=t,uS}var dS,r6;function Zge(){if(r6)return dS;r6=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return dS=e,dS}var fS,n6;function rE(){if(n6)return fS;n6=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return fS=e,fS}var hS,s6;function Jge(){if(s6)return hS;s6=1;var e=fp(),t=Qge(),r=zP(),n=oU(),i=Zge(),a=rE(),o=1,l=2,u="[object Boolean]",d="[object Date]",m="[object Error]",h="[object Map]",p="[object Number]",x="[object RegExp]",w="[object Set]",v="[object String]",y="[object Symbol]",j="[object ArrayBuffer]",k="[object DataView]",N=e?e.prototype:void 0,C=N?N.valueOf:void 0;function A(E,_,R,O,F,D,L){switch(R){case k:if(E.byteLength!=_.byteLength||E.byteOffset!=_.byteOffset)return!1;E=E.buffer,_=_.buffer;case j:return!(E.byteLength!=_.byteLength||!D(new t(E),new t(_)));case u:case d:case p:return r(+E,+_);case m:return E.name==_.name&&E.message==_.message;case x:case v:return E==_+"";case h:var I=i;case w:var $=O&o;if(I||(I=a),E.size!=_.size&&!$)return!1;var z=L.get(E);if(z)return z==_;O|=l,L.set(E,_);var K=n(I(E),I(_),O,F,D,L);return L.delete(E),K;case y:if(C)return C.call(E)==C.call(_)}return!1}return hS=A,hS}var mS,i6;function lU(){if(i6)return mS;i6=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return mS=e,mS}var pS,a6;function exe(){if(a6)return pS;a6=1;var e=lU(),t=Wn();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return pS=r,pS}var gS,o6;function txe(){if(o6)return gS;o6=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var l=t[n];r(l,n,t)&&(o[a++]=l)}return o}return gS=e,gS}var xS,l6;function rxe(){if(l6)return xS;l6=1;function e(){return[]}return xS=e,xS}var yS,c6;function nxe(){if(c6)return yS;c6=1;var e=txe(),t=rxe(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(l){return n.call(o,l)}))}:t;return yS=a,yS}var vS,u6;function sxe(){if(u6)return vS;u6=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return vS=e,vS}var bS,d6;function ixe(){if(d6)return bS;d6=1;var e=La(),t=$a(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return bS=n,bS}var wS,f6;function nE(){if(f6)return wS;f6=1;var e=ixe(),t=$a(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return wS=a,wS}var Ch={exports:{}},jS,h6;function axe(){if(h6)return jS;h6=1;function e(){return!1}return jS=e,jS}Ch.exports;var m6;function cU(){return m6||(m6=1,(function(e,t){var r=Vi(),n=axe(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,d=u||n;e.exports=d})(Ch,Ch.exports)),Ch.exports}var SS,p6;function sE(){if(p6)return SS;p6=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return SS=r,SS}var kS,g6;function iE(){if(g6)return kS;g6=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return kS=t,kS}var NS,x6;function oxe(){if(x6)return NS;x6=1;var e=La(),t=iE(),r=$a(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",m="[object Number]",h="[object Object]",p="[object RegExp]",x="[object Set]",w="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",j="[object DataView]",k="[object Float32Array]",N="[object Float64Array]",C="[object Int8Array]",A="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",F="[object Uint32Array]",D={};D[k]=D[N]=D[C]=D[A]=D[E]=D[_]=D[R]=D[O]=D[F]=!0,D[n]=D[i]=D[y]=D[a]=D[j]=D[o]=D[l]=D[u]=D[d]=D[m]=D[h]=D[p]=D[x]=D[w]=D[v]=!1;function L(I){return r(I)&&t(I.length)&&!!D[e(I)]}return NS=L,NS}var TS,y6;function uU(){if(y6)return TS;y6=1;function e(t){return function(r){return t(r)}}return TS=e,TS}var Ph={exports:{}};Ph.exports;var v6;function lxe(){return v6||(v6=1,(function(e,t){var r=Ez(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Ph,Ph.exports)),Ph.exports}var AS,b6;function dU(){if(b6)return AS;b6=1;var e=oxe(),t=uU(),r=lxe(),n=r&&r.isTypedArray,i=n?t(n):e;return AS=i,AS}var CS,w6;function cxe(){if(w6)return CS;w6=1;var e=sxe(),t=nE(),r=Wn(),n=cU(),i=sE(),a=dU(),o=Object.prototype,l=o.hasOwnProperty;function u(d,m){var h=r(d),p=!h&&t(d),x=!h&&!p&&n(d),w=!h&&!p&&!x&&a(d),v=h||p||x||w,y=v?e(d.length,String):[],j=y.length;for(var k in d)(m||l.call(d,k))&&!(v&&(k=="length"||x&&(k=="offset"||k=="parent")||w&&(k=="buffer"||k=="byteLength"||k=="b
695yteOffset")||i(k,j)))&&y.push(k);return y}return CS=u,CS}var PS,j6;function uxe(){if(j6)return PS;j6=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return PS=t,PS}var ES,S6;function fU(){if(S6)return ES;S6=1;function e(t,r){return function(n){return t(r(n))}}return ES=e,ES}var _S,k6;function dxe(){if(k6)return _S;k6=1;var e=fU(),t=e(Object.keys,Object);return _S=t,_S}var OS,N6;function fxe(){if(N6)return OS;N6=1;var e=uxe(),t=dxe(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var l in Object(a))n.call(a,l)&&l!="constructor"&&o.push(l);return o}return OS=i,OS}var IS,T6;function pp(){if(T6)return IS;T6=1;var e=WP(),t=iE();function r(n){return n!=null&&t(n.length)&&!e(n)}return IS=r,IS}var RS,A6;function xb(){if(A6)return RS;A6=1;var e=cxe(),t=fxe(),r=pp();function n(i){return r(i)?e(i):t(i)}return RS=n,RS}var MS,C6;function hxe(){if(C6)return MS;C6=1;var e=exe(),t=nxe(),r=xb();function n(i){return e(i,r,t)}return MS=n,MS}var DS,P6;function mxe(){if(P6)return DS;P6=1;var e=hxe(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,l,u,d,m){var h=l&t,p=e(a),x=p.length,w=e(o),v=w.length;if(x!=v&&!h)return!1;for(var y=x;y--;){var j=p[y];if(!(h?j in o:n.call(o,j)))return!1}var k=m.get(a),N=m.get(o);if(k&&N)return k==o&&N==a;var C=!0;m.set(a,o),m.set(o,a);for(var A=h;++y<x;){j=p[y];var E=a[j],_=o[j];if(u)var R=h?u(_,E,j,o,a,m):u(E,_,j,a,o,m);if(!(R===void 0?E===_||d(E,_,l,u,m):R)){C=!1;break}A||(A=j=="constructor")}if(C&&!A){var O=a.constructor,F=o.constructor;O!=F&&"constructor"in a&&"constructor"in o&&!(typeof O=="function"&&O instanceof O&&typeof F=="function"&&F instanceof F)&&(C=!1)}return m.delete(a),m.delete(o),C}return DS=i,DS}var LS,E6;function pxe(){if(E6)return LS;E6=1;var e=Ec(),t=Vi(),r=e(t,"DataView");return LS=r,LS}var $S,_6;function gxe(){if(_6)return $S;_6=1;var e=Ec(),t=Vi(),r=e(t,"Promise");return $S=r,$S}var FS,O6;function hU(){if(O6)return FS;O6=1;var e=Ec(),t=Vi(),r=e(t,"Set");return FS=r,FS}var BS,I6;function xxe(){if(I6)return BS;I6=1;var e=Ec(),t=Vi(),r=e(t,"WeakMap");return BS=r,BS}var VS,R6;function yxe(){if(R6)return VS;R6=1;var e=pxe(),t=UP(),r=gxe(),n=hU(),i=xxe(),a=La(),o=_z(),l="[object Map]",u="[object Object]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",x=o(e),w=o(t),v=o(r),y=o(n),j=o(i),k=a;
vendor: 45,037 bytes, lines 695-702
695return(e&&k(new e(new ArrayBuffer(1)))!=p||t&&k(new t)!=l||r&&k(r.resolve())!=d||n&&k(new n)!=m||i&&k(new i)!=h)&&(k=function(N){var C=a(N),A=C==u?N.constructor:void 0,E=A?o(A):"";if(E)switch(E){case x:return p;case w:return l;case v:return d;case y:return m;case j:return h}return C}),VS=k,VS}var qS,M6;function vxe(){if(M6)return qS;M6=1;var e=nU(),t=oU(),r=Jge(),n=mxe(),i=yxe(),a=Wn(),o=cU(),l=dU(),u=1,d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype,x=p.hasOwnProperty;function w(v,y,j,k,N,C){var A=a(v),E=a(y),_=A?m:i(v),R=E?m:i(y);_=_==d?h:_,R=R==d?h:R;var O=_==h,F=R==h,D=_==R;if(D&&o(v)){if(!o(y))return!1;A=!0,O=!1}if(D&&!O)return C||(C=new e),A||l(v)?t(v,y,j,k,N,C):r(v,y,_,j,k,N,C);if(!(j&u)){var L=O&&x.call(v,"__wrapped__"),I=F&&x.call(y,"__wrapped__");if(L||I){var $=L?v.value():v,z=I?y.value():y;return C||(C=new e),N($,z,j,k,C)}}return D?(C||(C=new e),n(v,y,j,k,N,C)):!1}return qS=w,qS}var WS,D6;function aE(){if(D6)return WS;D6=1;var e=vxe(),t=$a();function r(n,i,a,o,l){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,l)}return WS=r,WS}var zS,L6;function bxe(){if(L6)return zS;L6=1;var e=nU(),t=aE(),r=1,n=2;function i(a,o,l,u){var d=l.length,m=d,h=!u;if(a==null)return!m;for(a=Object(a);d--;){var p=l[d];if(h&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++d<m;){p=l[d];var x=p[0],w=a[x],v=p[1];if(h&&p[2]){if(w===void 0&&!(x in a))return!1}else{var y=new e;if(u)var j=u(w,v,x,a,o,y);if(!(j===void 0?t(v,w,r|n,u,y):j))return!1}}return!0}return zS=i,zS}var US,$6;function mU(){if($6)return US;$6=1;var e=nl();function t(r){return r===r&&!e(r)}return US=t,US}var HS,F6;function wxe(){if(F6)return HS;F6=1;var e=mU(),t=xb();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],l=n[o];i[a]=[o,l,e(l)]}return i}return HS=r,HS}var GS,B6;function pU(){if(B6)return GS;B6=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return GS=e,GS}var KS,V6;function jxe(){if(V6)return KS;V6=1;var e=bxe(),t=wxe(),r=pU();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return KS=n,KS}var YS,q6;function Sxe(){if(q6)return YS;q6=1;function e(t,r){return t!=null&&r in Object(t)}return YS=e,YS}var XS,W6;function kxe(){if(W6)return XS;W6=1;var e=Rz(),t=nE(),r=Wn(),n=sE(),i=iE(),a=fb();function o(l,u,d){u=e(u,l);for(var m=-1,h=u.length,p=!1;++m<h;){var x=a(u[m]);if(!(p=l!=null&&d(l,x)))break;l=l[x]}return p||++m!=h?p:(h=l==null?0:l.length,!!h&&i(h)&&n(x,h)&&(r(l)||t(l)))}return XS=o,XS}var QS,z6;function Nxe(){if(z6)return QS;z6=1;var e=Sxe(),t=kxe();function r(n,i){return n!=null&&t(n,i,e)}return QS=r,QS}var ZS,U6;function Txe(){if(U6)return ZS;U6=1;var e=aE(),t=Mz(),r=Nxe(),n=qP(),i=mU(),a=pU(),o=fb(),l=1,u=2;function d(m,h){return n(m)&&i(h)?a(o(m),h):function(p){var x=t(p,m);return x===void 0&&x===h?r(p,m):e(h,x,l|u)}}return ZS=d,ZS}var JS,H6;function of(){if(H6)return JS;H6=1;function e(t){return t}return JS=e,JS}var ek,G6;function Axe(){if(G6)return ek;G6=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ek=e,ek}var tk,K6;function Cxe(){if(K6)return tk;K6=1;var e=KP();function t(r){return function(n){return e(n,r)}}return tk=t,tk}var rk,Y6;function Pxe(){if(Y6)return rk;Y6=1;var e=Axe(),t=Cxe(),r=qP(),n=fb();function i(a){return r(a)?e(n(a)):t(a)}return rk=i,rk}var nk,X6;function qi(){if(X6)return nk;X6=1;var e=jxe(),t=Txe(),r=of(),n=Wn(),i=Pxe();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return nk=a,nk}var sk,Q6;function gU(){if(Q6)return sk;Q6=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return sk=e,sk}var ik,Z6;function Exe(){if(Z6)return ik;Z6=1;function e(t){return t!==t}return ik=e,ik}var ak,J6;function _xe(){if(J6)return ak;J6=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return ak=e,ak}var ok,eD;function Oxe(){if(eD)return ok;eD=1;var e=gU(),t=Exe(),r=_xe();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return ok=n,ok}var lk,tD;function Ixe(){if(tD)return lk;tD=1;var e=Oxe();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return lk=t,lk}var ck,rD;function Rxe(){if(rD)return ck;rD=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return ck=e,ck}var uk,nD;function Mxe(){if(nD)return uk;nD=1;function e(){}return uk=e,uk}var dk,sD;function Dxe(){if(sD)return dk;sD=1;var e=hU(),t=Mxe(),r=rE(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return dk=i,dk}var fk,iD;function Lxe(){if(iD)return fk;iD=1;var e=sU(),t=Ixe(),r=Rxe(),n=aU(),i=Dxe(),a=rE(),o=200;function l(u,d,m){var h=-1,p=t,x=u.length,w=!0,v=[],y=v;if(m)w=!1,p=r;else if(x>=o){var j=d?null:i(u);if(j)return a(j);w=!1,p=n,y=new e}else y=d?[]:v;e:for(;++h<x;){var k=u[h],N=d?d(k):k;if(k=m||k!==0?k:0,w&&N===N){for(var C=y.length;C--;)if(y[C]===N)continue e;d&&y.push(N),v.push(k)}else p(y,N,m)||(y!==v&&y.push(N),v.push(k))}return v}return fk=l,fk}var hk,aD;function $xe(){if(aD)return hk;aD=1;var e=qi(),t=Lxe();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return hk=r,hk}var Fxe=$xe();const oD=Tt(Fxe);function xU(e,t,r){return t===!0?oD(e,r):lt(t)?oD(e,t):e}function gd(e){"@babel/helpers - typeof";return gd=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},gd(e)}var Bxe=["ref"];function lD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(r),!0).forEach(function(n){yb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cD(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,vU(n.key),n)}}function qxe(e,t,r){return t&&cD(e.prototype,t),r&&cD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wxe(e,t,r){return t=wy(t),zxe(e,yU()?Reflect.construct(t,r||[],wy(e).constructor):t.apply(e,r))}function zxe(e,t){if(t&&(gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uxe(e)}function Uxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yU=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wy(e)}function Hxe(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&&_T(e,t)}function _T(e,t){return _T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_T(e,t)}function yb(e,t,r){return t=vU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vU(e){var t=Gxe(e,"string");return gd(t)=="symbol"?t:t+""}function Gxe(e,t){if(gd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kxe(e,t){if(e==null)return{};var r=Yxe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yxe(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 Xxe(e){return e.value}function Qxe(e,t){if(W.isValidElement(e))return W.cloneElement(e,t);if(typeof e=="function")return W.createElement(e,t);t.ref;var r=Kxe(t,Bxe);return W.createElement(tE,r)}var uD=1,ec=(function(e){function t(){var r;Vxe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Wxe(this,t,[].concat(i)),yb(r,"lastBoundingBox",{width:-1,height:-1}),r}return Hxe(t,e),qxe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>uD||Math.abs(i.height-this.lastBoundingBox.height)>uD)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ea({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,d=i.chartWidth,m=i.chartHeight,h,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var x=this.getBBoxSnapshot();h={left:((d||0)-x.width)/2}}else h=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var w=this.getBBoxSnapshot();p={top:((m||0)-w.height)/2}}else p=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ea(ea({},h),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,d=i.payloadUniqBy,m=i.payload,h=ea(ea({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return W.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){n.wrapperNode=x}},Qxe(a,ea(ea({},this.props),{},{payload:xU(m,d,Xxe)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ea(ea({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Ne(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(S.PureComponent);yb(ec,"displayName","Legend");yb(ec,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mk,dD;function Zxe(){if(dD)return mk;dD=1;var e=fp(),t=nE(),r=Wn(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mk=i,mk}var pk,fD;function bU(){if(fD)return pk;fD=1;var e=lU(),t=Zxe();function r(n,i,a,o,l){var u=-1,d=n.length;for(a||(a=t),l||(l=[]);++u<d;){var m=n[u];i>0&&a(m)?i>1?r(m,i-1,a,o,l):e(l,m):o||(l[l.length]=m)}return l}return pk=r,pk}var gk,hD;function Jxe(){if(hD)return gk;hD=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),l=i(r),u=l.length;u--;){var d=l[t?u:++a];if(n(o[d],d,o)===!1)break}return r}}return gk=e,gk}var xk,mD;function eye(){if(mD)return xk;mD=1;var e=Jxe(),t=e();return xk=t,xk}var yk,pD;function wU(){if(pD)return yk;pD=1;var e=eye(),t=xb();function r(n,i){return n&&e(n,i,t)}return yk=r,yk}var vk,gD;function tye(){if(gD)return vk;gD=1;var e=pp();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,l=n?o:-1,u=Object(i);(n?l--:++l<o)&&a(u[l],l,u)!==!1;);return i}}return vk=t,vk}var bk,xD;function oE(){if(xD)return bk;xD=1;var e=wU(),t=tye(),r=t(e);return bk=r,bk}var wk,yD;function jU(){if(yD)return wk;yD=1;var e=oE(),t=pp();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(l,u,d){o[++a]=i(l,u,d)}),o}return wk=r,wk}var jk,vD;function rye(){if(vD)return jk;vD=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return jk=e,jk}var Sk,bD;function nye(){if(bD)return Sk;bD=1;var e=sf();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,l=e(r),u=n!==void 0,d=n===null,m=n===n,h=e(n);if(!d&&!h&&!l&&r>n||l&&u&&m&&!d&&!h||a&&u&&m||!i&&m||!o)return 1;if(!a&&!l&&!h&&r<n||h&&i&&o&&!a&&!l||d&&i&&o||!u&&o||!m)return-1}return 0}return Sk=t,Sk}var kk,wD;function sye(){if(wD)return kk;wD=1;var e=nye();function t(r,n,i){for(var a=-1,o=r.criteria,l=n.criteria,u=o.length,d=i.length;++a<u;){var m=e(o[a],l[a]);if(m){if(a>=d)return m;var h=i[a];return m*(h=="desc"?-1:1)}}return r.index-n.index}return kk=t,kk}var Nk,jD;function iye(){if(jD)return Nk;jD=1;var e=GP(),t=KP(),r=qi(),n=jU(),i=rye(),a=uU(),o=sye(),l=of(),u=Wn();function d(m,h,p){h.length?h=e(h,function(v){return u(v)?function(y){return t(y,v.length===1?v[0]:v)}:v}):h=[l];var x=-1;h=e(h,a(r));var w=n(m,function(v,y,j){var k=e(h,function(N){return N(v)});return{criteria:k,index:++x,value:v}});return i(w,function(v,y){return o(v,y,p)})}return Nk=d,Nk}var Tk,SD;function aye(){if(SD)return Tk;SD=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Tk=e,Tk}var Ak,kD;function oye(){if(kD)return Ak;kD=1;var e=aye(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,l=-1,u=t(o.length-i,0),d=Array(u);++l<u;)d[l]=o[i+l];l=-1;for(var m=Array(i+1);++l<i;)m[l]=o[l];return m[i]=a(d),e(n,this,m)}}return Ak=r,Ak}var Ck,ND;function lye(){if(ND)return Ck;ND=1;function e(t){return function(){return t}}return Ck=e,Ck}var Pk,TD;function SU(){if(TD)return Pk;TD=1;var e=Ec(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Pk=t,Pk}var Ek,AD;function cye(){if(AD)return Ek;AD=1;var e=lye(),t=SU(),r=of(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Ek=n,Ek}var _k,CD;function uye(){if(CD)return _k;CD=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var l=r(),u=t-(l-o);if(o=l,u>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _k=n,_k}var Ok,PD;function dye(){if(PD)return Ok;PD=1;var e=cye(),t=uye(),r=t(e);return Ok=r,Ok}var Ik,ED;function fye(){if(ED)return Ik;ED=1;var e=of(),t=oye(),r=dye();function n(i,a){return r(t(i,a,e),i+"")}return Ik=n,Ik}var Rk,_D;function vb(){if(_D)return Rk;_D=1;var e=zP(),t=pp(),r=sE(),n=nl();function i(a,o,l){if(!n(l))return!1;var u=typeof o;return(u=="number"?t(l)&&r(o,l.length):u=="string"&&o in l)?e(l[o],a):!1}return Rk=i,Rk}var Mk,OD;function hye(){if(OD)return Mk;OD=1;var e=bU(),t=iye(),r=fye(),n=vb(),i=r(function(a,o){if(a==null)return[];var l=o.length;return l>1&&n(a,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Mk=i,Mk}var mye=hye();const lE=Tt(mye);function om(e){"@babel/helpers - typeof";return om=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},om(e)}function OT(){return OT=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},OT.apply(this,arguments)}function pye(e,t){return vye(e)||yye(e,t)||xye(e,t)||gye()}function gye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
696In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xye(e,t){if(e){if(typeof e=="string")return ID(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 ID(e,t)}}function ID(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 yye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function vye(e){if(Array.isArray(e))return e}function RD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(r),!0).forEach(function(n){bye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bye(e,t,r){return t=wye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wye(e){var t=jye(e,"string");return om(t)=="symbol"?t:t+""}function jye(e,t){if(om(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(om(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sye(e){return Array.isArray(e)&&Dr(e[0])&&Dr(e[1])?e.join(" ~ "):e}var kye=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,u=t.labelStyle,d=u===void 0?{}:u,m=t.payload,h=t.formatter,p=t.itemSorter,x=t.wrapperClassName,w=t.labelClassName,v=t.label,y=t.labelFormatter,j=t.accessibilityLayer,k=j===void 0?!1:j,N=function(){if(m&&m.length){var L={padding:0,margin:0},I=(p?lE(m,p):m).map(function($,z){if($.type==="none")return null;var K=Dk({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},l),Z=$.formatter||h||Sye,U=$.value,q=$.name,B=U,V=q;if(Z&&B!=null&&V!=null){var X=Z(U,q,$,z,m);if(Array.isArray(X)){var ce=pye(X,2);B=ce[0],V=ce[1]}else B=X}return W.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(z),style:K},Dr(V)?W.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Dr(V)?W.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,W.createElement("span",{className:"recharts-tooltip-item-value"},B),W.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return W.createElement("ul",{className:"recharts-tooltip-item-list",style:L},I)}return null},C=Dk({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),A=Dk({margin:0},d),E=!jt(v),_=E?v:"",R=yt("recharts-default-tooltip",x),O=yt("recharts-tooltip-label",w);E&&y&&m!==void 0&&m!==null&&(_=y(v,m));var F=k?{role:"status","aria-live":"assertive"}:{};return W.createElement("div",OT({className:R,style:C},F),W.createElement("p",{className:O,style:A},W.isValidElement(_)?_:"".concat(_)),N())};function lm(e){"@babel/helpers - typeof";return lm=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},lm(e)}function Gg(e,t,r){return t=Nye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nye(e){var t=Tye(e,"string");return lm(t)=="symbol"?t:t+""}function Tye(e,t){if(lm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oh="recharts-tooltip-wrapper",Aye={visibility:"hidden"};function Cye(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return yt(oh,Gg(Gg(Gg(Gg({},"".concat(oh,"-right"),Ne(r)&&t&&Ne(t.x)&&r>=t.x),"".concat(oh,"-left"),Ne(r)&&t&&Ne(t.x)&&r<t.x),"".concat(oh,"-bottom"),Ne(n)&&t&&Ne(t.y)&&n>=t.y),"".concat(oh,"-top"),Ne(n)&&t&&Ne(t.y)&&n<t.y))}function MD(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,d=e.viewBoxDimension;if(a&&Ne(a[n]))return a[n];var m=r[n]-l-i,h=r[n]+i;if(t[n])return o[n]?m:h;if(o[n]){var p=m,x=u[n];return p<x?Math.max(h,u[n]):Math.max(m,u[n])}var w=h+l,v=u[n]+d;return w>v?Math.max(m,u[n]):Math.max(h,u[n])}function Pye(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 Eye(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,d,m,h;return o.height>0&&o.width>0&&r?(m=MD({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),h=MD({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),d=Pye({translateX:m,translateY:h,useTranslate3d:l})):d=Aye,{cssProperties:d,cssClasses:Cye({translateX:m,translateY:h,coordinate:r})}}function xd(e){"@babel/helpers - typeof";return xd=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},xd(e)}function DD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(r),!0).forEach(function(n){RT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oye(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,NU(n.key),n)}}function Iye(e,t,r){return t&&Oye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rye(e,t,r){return t=jy(t),Mye(e,kU()?Reflect.construct(t,r||[],jy(e).constructor):t.apply(e,r))}function Mye(e,t){if(t&&(xd(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 kU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kU=function(){return!!e})()}function jy(e){return jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jy(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&&IT(e,t)}function IT(e,t){return IT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},IT(e,t)}function RT(e,t,r){return t=NU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NU(e){var t=$ye(e,"string");return xd(t)=="symbol"?t:t+""}function $ye(e,t){if(xd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $D=1,Fye=(function(e){function t(){var r;_ye(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Rye(this,t,[].concat(i)),RT(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),RT(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,u,d,m;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(d=(m=r.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),r}return Lye(t,e),Iye(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>$D||Math.abs(n.height-this.state.lastBoundingBox.height)>$D)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,d=i.children,m=i.coordinate,h=i.hasPayload,p=i.isAnimationActive,x=i.offset,w=i.position,v=i.reverseDirection,y=i.useTranslate3d,j=i.viewBox,k=i.wrapperStyle,N=Eye({allowEscapeViewBox:o,coordinate:m,offsetTopLeft:x,position:w,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:j}),C=N.cssClasses,A=N.cssProperties,E=LD(LD({transition:p&&a?"transform ".concat(l,"ms ").concat(u):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&h?"visible":"hidden",position:"absolute",top:0,left:0},k);return W.createElement("div",{tabIndex:-1,className:C,style:E,ref:function(R){n.wrapperNode=R}},d)}}])})(S.PureComponent),Bye=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},lf={isSsr:Bye()};function yd(e){"@babel/helpers - typeof";return yd=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},yd(e)}function FD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(r),!0).forEach(function(n){cE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qye(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,AU(n.key),n)}}function Wye(e,t,r){return t&&qye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zye(e,t,r){return t=Sy(t),Uye(e,TU()?Reflect.construct(t,r||[],Sy(e).constructor):t.apply(e,r))}function Uye(e,t){if(t&&(yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hye(e)}function Hye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TU=function(){return!!e})()}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sy(e)}function Gye(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&&MT(e,t)}function MT(e,t){return MT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},MT(e,t)}function cE(e,t,r){return t=AU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AU(e){var t=Kye(e,"string");return yd(t)=="symbol"?t:t+""}function Kye(e,t){if(yd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yye(e){return e.dataKey}function Xye(e,t){return W.isValidElement(e)?W.cloneElement(e,t):typeof e=="function"?W.createElement(e,t):W.createElement(kye,t)}var Cs=(function(e){function t(){return Vye(this,t),zye(this,t,arguments)}return Gye(t,e),Wye(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,d=i.content,m=i.coordinate,h=i.filterNull,p=i.isAnimationActive,x=i.offset,w=i.payload,v=i.payloadUniqBy,y=i.position,j=i.reverseDirection,k=i.useTranslate3d,N=i.viewBox,C=i.wrapperStyle,A=w??[];h&&A.length&&(A=xU(w.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,Yye));var E=A.length>0;return W.createElement(Fye,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:p,active:a,coordinate:m,hasPayload:E,offset:x,position:y,reverseDirection:j,useTranslate3d:k,viewBox:N,wrapperStyle:C},Xye(d,BD(BD({},this.props),{},{payload:A})))}}])})(S.PureComponent);cE(Cs,"displayName","Tooltip");cE(Cs,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!lf.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 Lk,VD;function Qye(){if(VD)return Lk;VD=1;var e=Vi(),t=function(){return e.Date.now()};return Lk=t,Lk}var $k,qD;function Zye(){if(qD)return $k;qD=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return $k=t,$k}var Fk,WD;function Jye(){if(WD)return Fk;WD=1;var e=Zye(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Fk=r,Fk}var Bk,zD;function CU(){if(zD)return Bk;zD=1;var e=Jye(),t=nl(),r=sf(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function u(d){if(typeof d=="number")return d;if(r(d))return n;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var h=a.test(d);return h||o.test(d)?l(d.slice(2),h?2:8):i.test(d)?n:+d}return Bk=u,Bk}var Vk,UD;function eve(){if(UD)return Vk;UD=1;var e=nl(),t=Qye(),r=CU(),n="Expected a function",i=Math.max,a=Math.min;function o(l,u,d){var m,h,p,x,w,v,y=0,j=!1,k=!1,N=!0;if(typeof l!="function")throw new TypeError(n);u=r(u)||0,e(d)&&(j=!!d.leading,k="maxWait"in d,p=k?i(r(d.maxWait)||0,u):p,N="trailing"in d?!!d.trailing:N);function C(I){var $=m,z=h;return m=h=void 0,y=I,x=l.apply(z,$),x}function A(I){return y=I,w=setTimeout(R,u),j?C(I):x}function E(I){var $=I-v,z=I-y,K=u-$;return k?a(K,p-z):K}function _(I){var $=I-v,z=I-y;return v===void 0||$>=u||$<0||k&&z>=p}function R(){var I=t();if(_(I))return O(I);w=setTimeout(R,E(I))}function O(I){return w=void 0,N&&m?C(I):(m=h=void 0,x)}function F(){w!==void 0&&clearTimeout(w),y=0,m=v=h=w=void 0}function D(){return w===void 0?x:O(t())}function L(){var I=t(),$=_(I);if(m=arguments,h=this,v=I,$){if(w===void 0)return A(v);if(k)return clearTimeout(w),w=setTimeout(R,u),C(v)}return w===void 0&&(w=setTimeout(R,u)),x}return L.cancel=F,L.flush=D,L}return Vk=o,Vk}var qk,HD;function tve(){if(HD)return qk;HD=1;var e=eve(),t=nl(),r="Expected a function";function n(i,a,o){var l=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(l="leading"in o?!!o.leading:l,u="trailing"in o?!!o.trailing:u),e(i,a,{leading:l,maxWait:a,trailing:u})}return qk=n,qk}var rve=tve();const PU=Tt(rve);function cm(e){"@babel/helpers - typeof";return cm=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},cm(e)}function GD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(r),!0).forEach(function(n){nve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nve(e,t,r){return t=sve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sve(e){var t=ive(e,"string");return cm(t)=="symbol"?t:t+""}function ive(e,t){if(cm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ave(e,t){return uve(e)||cve(e,t)||lve(e,t)||ove()}function ove(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
697In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lve(e,t){if(e){if(typeof e=="string")return KD(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 KD(e,t)}}function KD(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 cve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function uve(e){if(Array.isArray(e))return e}var Wk=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,l=e.height,u=l===void 0?"100%":l,d=e.minWidth,m=d===void 0?0:d,h=e.minHeight,p=e.maxHeight,x=e.children,w=e.debounce,v=w===void 0?0:w,y=e.id,j=e.className,k=e.onResize,N=e.style,C=N===void 0?{}:N,A=S.useRef(null),E=S.useRef();E.current=k,S.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var _=S.useState({containerWidth:i.width,containerHeight:i.height}),R=ave(_,2),O=R[0],F=R[1],D=S.useCallback(function(I,$){F(function(z){var K=Math.round(I),Z=Math.round($);return z.containerWidth===K&&z.containerHeight===Z?z:{containerWidth:K,containerHeight:Z}})},[]);S.useEffect(function(){var I=function(q){var B,V=q[0].contentRect,X=V.width,ce=V.height;D(X,ce),(B=E.current)===null||B===void 0||B.call(E,X,ce)};v>0&&(I=PU(I,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(I),z=A.current.getBoundingClientRect(),K=z.width,Z=z.height;return D(K,Z),$.observe(A.current),function(){$.disconnect()}},[D,v]);var L=S.useMemo(function(){var I=O.containerWidth,$=O.containerHeight;if(I<0||$<0)return null;si($l(o)||$l(u),`The width(%s) and height(%s) are both fixed numbers,
698       maybe you don't need to use a ResponsiveContainer.`,o,u),si(!r||r>0,"The aspect(%s) must be greater than zero.",r);var z=$l(o)?I:o,K=$l(u)?$:u;r&&r>0&&(z?K=z/r:K&&(z=K*r),p&&K>p&&(K=p)),si(z>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0,
699       please check the style of container, or the props width(%s) and height(%s),
700       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
701       height and width.`,z,K,o,u,m,h,r);var Z=!Array.isArray(x)&&va(x.type).endsWith("Chart");return W.Children.map(x,function(U){return W.isValidElement(U)?S.cloneElement(U,Kg({width:z,height:K},Z?{style:Kg({height:"100%",width:"100%",maxHeight:K,maxWidth:z},U.props.style)}:{})):U})},[r,x,u,p,h,m,O,o]);return W.createElement("div",{id:y?"".concat(y):void 0,className:yt("recharts-responsive-container",j),style:Kg(Kg({},C),{},{width:o,height:u,minWidth:m,minHeight:h,maxHeight:p}),ref:A},L)}),um=function(t){return null};um.displayName="Cell";function dm(e){"@babel/helpers - typeof";return dm=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},dm(e)}function YD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YD(Object(r),!0).forEach(function(n){dve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dve(e,t,r){return t=fve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fve(e){var t=hve(e,"string");return dm(t)=="symbol"?t:t+""}function hve(e,t){if(dm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var du={widthCache:{},cacheCount:0},mve=2e3,pve={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},XD="recharts_measurement_span";function gve(e){var t=DT({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Fh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||lf.isSsr)return{width:0,height:0};var n=gve(r),i=JSON.stringify({text:t,copyStyle:n});if(du.widthCache[i])return du.widthCache[i];try{var a=document.getElementById(XD);a||(a=document.createElement("span"),a.setAttribute("id",XD),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=DT(DT({},pve),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return du.widthCache[i]=u,++du.cacheCount>mve&&(du.cacheCount=0,du.widthCache={}),u}catch{return{width:0,height:0}}},xve=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function fm(e){"@babel/helpers - typeof";return fm=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},fm(e)}function ky(e,t){return wve(e)||bve(e,t)||vve(e,t)||yve()}function yve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
702In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vve(e,t){if(e){if(typeof e=="string")return QD(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 QD(e,t)}}function QD(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 bve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function wve(e){if(Array.isArray(e))return e}function jve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(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,kve(n.key),n)}}function Sve(e,t,r){return t&&ZD(e.prototype,t),r&&ZD(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kve(e){var t=Nve(e,"string");return fm(t)=="symbol"?t:t+""}function Nve(e,t){if(fm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var JD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,e8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Tve=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ave=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,EU={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Cve=Object.keys(EU),Nu="NaN";function Pve(e,t){return e*EU[t]}var Yg=(function(){function e(t,r){jve(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Tve.test(r)&&(this.num=NaN,this.unit=""),Cve.includes(r)&&(this.num=Pve(t,r),this.unit="px")}return Sve(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=Ave.exec(r))!==null&&n!==void 0?n:[],a=ky(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])})();function _U(e){if(e.includes(Nu))return Nu;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=JD.exec(t))!==null&&r!==void 0?r:[],i=ky(n,4),a=i[1],o=i[2],l=i[3],u=Yg.parse(a??""),d=Yg.parse(l??""),m=o==="*"?u.multiply(d):u.divide(d);if(m.isNaN())return Nu;t=t.replace(JD,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,p=(h=e8.exec(t))!==null&&h!==void 0?h:[],x=ky(p,4),w=x[1],v=x[2],y=x[3],j=Yg.parse(w??""),k=Yg.parse(y??""),N=v==="+"?j.add(k):j.subtract(k);if(N.isNaN())return Nu;t=t.replace(e8,N.toString())}return t}var t8=/\(([^()]*)\)/;function Eve(e){for(var t=e;t.includes("(");){var r=t8.exec(t),n=ky(r,2),i=n[1];t=t.replace(t8,_U(i))}return t}function _ve(e){var t=e.replace(/\s+/g,"");return t=Eve(t),t=_U(t),t}function Ove(e){try{return _ve(e)}catch{return Nu}}function zk(e){var t=Ove(e.slice(5,-1));return t===Nu?"":t}var Ive=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Rve=["dx","dy","angle","className","breakAll"];function LT(){return LT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
702for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LT.apply(this,arguments)}function r8(e,t){if(e==null)return{};var r=Mve(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mve(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 n8(e,t){return Fve(e)||$ve(e,t)||Lve(e,t)||Dve()}function Dve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
703In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lve(e,t){if(e){if(typeof e=="string")return s8(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 s8(e,t)}}function s8(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 $ve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Fve(e){if(Array.isArray(e))return e}var OU=/[ \f\n\r\t\v\u2028\u2029]+/,IU=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];jt(r)||(n?a=r.toString().split(""):a=r.toString().split(OU));var o=a.map(function(u){return{word:u,width:Fh(u,i).width}}),l=n?0:Fh(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},Bve=function(t,r,n,i,a){var o=t.maxLines,l=t.children,u=t.style,d=t.breakAll,m=Ne(o),h=l,p=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(K,Z){var U=Z.word,q=Z.width,B=K[K.length-1];if(B&&(i==null||a||B.width+q+n<Number(i)))B.words.push(U),B.width+=q+n;else{var V={words:[U],width:q};K.push(V)}return K},[])},x=p(r),w=function(z){return z.reduce(function(K,Z){return K.width>Z.width?K:Z})};if(!m)return x;for(var v="…",y=function(z){var K=h.slice(0,z),Z=IU({breakAll:d,style:u,children:K+v}).wordsWithComputedWidth,U=p(Z),q=U.length>o||w(U).width>Number(i);return[q,U]},j=0,k=h.length-1,N=0,C;j<=k&&N<=h.length-1;){var A=Math.floor((j+k)/2),E=A-1,_=y(E),R=n8(_,2),O=R[0],F=R[1],D=y(A),L=n8(D,1),I=L[0];if(!O&&!I&&(j=A+1),O&&I&&(k=A-1),!O&&I){C=F;break}N++}return C||x},i8=function(t){var r=jt(t)?[]:t.toString().split(OU);return[{words:r}]},Vve=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!lf.isSsr){var u,d,m=IU({breakAll:o,children:i,style:a});if(m){var h=m.wordsWithComputedWidth,p=m.spaceWidth;u=h,d=p}else return i8(i);return Bve({breakAll:o,children:i,maxLines:l,style:a},u,d,r,n)}return i8(i)},a8="#808080",xc=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,d=u===void 0?"0.71em":u,m=t.scaleToFit,h=m===void 0?!1:m,p=t.textAnchor,x=p===void 0?"start":p,w=t.verticalAnchor,v=w===void 0?"end":w,y=t.fill,j=y===void 0?a8:y,k=r8(t,Ive),N=S.useMemo(function(){return Vve({breakAll:k.breakAll,children:k.children,maxLines:k.maxLines,scaleToFit:h,style:k.style,width:k.width})},[k.breakAll,k.children,k.maxLines,h,k.style,k.width]),C=k.dx,A=k.dy,E=k.angle,_=k.className,R=k.breakAll,O=r8(k,Rve);if(!Dr(n)||!Dr(a))return null;var F=n+(Ne(C)?C:0),D=a+(Ne(A)?A:0),L;switch(v){case"start":L=zk("calc(".concat(d,")"));break;case"middle":L=zk("calc(".concat((N.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:L=zk("calc(".concat(N.length-1," * -").concat(l,")"));break}var I=[];if(h){var $=N[0].width,z=k.width;I.push("scale(".concat((Ne(z)?z/$:1)/$,")"))}return E&&I.push("rotate(".concat(E,", ").concat(F,", ").concat(D,")")),I.length&&(O.transform=I.join(" ")),W.createElement("text",LT({},it(O,!0),{x:F,y:D,className:yt("recharts-text",_),textAnchor:x,fill:j.includes("url")?a8:j}),N.map(function(K,Z){var U=K.words.join(R?"":" ");return W.createElement("tspan",{x:F,dy:Z===0?L:l,key:"".concat(U,"-").concat(Z)},U)}))};function Do(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qve(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uE(e){let t,r,n;e.length!==2?(t=Do,r=(l,u)=>Do(e(l),u),n=(l,u)=>e(l)-u):(t=e===Do||e===qve?e:Wve,r=e,n=e);function i(l,u,d=0,m=l.length){if(d<m){if(t(u,u)!==0)return m;do{const h=d+m>>>1;r(l[h],u)<0?d=h+1:m=h}while(d<m)}return d}function a(l,u,d=0,m=l.length){if(d<m){if(t(u,u)!==0)return m;do{const h=d+m>>>1;r(l[h],u)<=0?d=h+1:m=h}while(d<m)}return d}function o(l,u,d=0,m=l.length){const h=i(l,u,d,m-1);return h>d&&n(l[h-1],u)>-n(l[h],u)?h-1:h}return{left:i,center:o,right:a}}function Wve(){return 0}function RU(e){return e===null?NaN:+e}function*zve(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Uve=uE(Do),gp=Uve.right;uE(RU).center;class o8 extends Map{constructor(t,r=Kve){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(l8(this,t))}has(t){return super.has(l8(this,t))}set(t,r){return super.set(Hve(this,t),r)}delete(t){return super.delete(Gve(this,t))}}function l8({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Hve({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Gve({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Kve(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Yve(e=Do){if(e===Do)return MU;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 MU(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Xve=Math.sqrt(50),Qve=Math.sqrt(10),Zve=Math.sqrt(2);function Ny(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Xve?10:a>=Qve?5:a>=Zve?2:1;let l,u,d;return i<0?(d=Math.pow(10,-i)/o,l=Math.round(e*d),u=Math.round(t*d),l/d<e&&++l,u/d>t&&--u,d=-d):(d=Math.pow(10,i)*o,l=Math.round(e/d),u=Math.round(t/d),l*d<e&&++l,u*d>t&&--u),u<l&&.5<=r&&r<2?Ny(e,t,r*2):[l,u,d]}function $T(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ny(t,e,r):Ny(e,t,r);if(!(a>=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let d=0;d<l;++d)u[d]=(a-d)/-o;else for(let d=0;d<l;++d)u[d]=(a-d)*o;else if(o<0)for(let d=0;d<l;++d)u[d]=(i+d)/-o;else for(let d=0;d<l;++d)u[d]=(i+d)*o;return u}function FT(e,t,r){return t=+t,e=+e,r=+r,Ny(e,t,r)[2]}function BT(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?FT(t,e,r):FT(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function c8(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function u8(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
703function DU(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?MU:Yve(i);n>r;){if(n-r>600){const u=n-r+1,d=t-r+1,m=Math.log(u),h=.5*Math.exp(2*m/3),p=.5*Math.sqrt(m*h*(u-h)/u)*(d-u/2<0?-1:1),x=Math.max(r,Math.floor(t-d*h/u+p)),w=Math.min(n,Math.floor(t+(u-d)*h/u+p));DU(e,t,x,w,i)}const a=e[t];let o=r,l=n;for(lh(e,r,t),i(e[n],a)>0&&lh(e,r,n);o<l;){for(lh(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?lh(e,r,l):(++l,lh(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function lh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Jve(e,t,r){if(e=Float64Array.from(zve(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return u8(e);if(t>=1)return c8(e);var n,i=(n-1)*t,a=Math.floor(i),o=c8(DU(e,a).subarray(0,a+1)),l=u8(e.subarray(a+1));return o+(l-o)*(i-a)}}function ebe(e,t,r=RU){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function tbe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ds(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Fa(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const VT=Symbol("implicit");function dE(){var e=new o8,t=[],r=[],n=VT;function i(a){let o=e.get(a);if(o===void 0){if(n!==VT)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new o8;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return dE(t,r).unknown(n)},Ds.apply(i,arguments),i}function hm(){var e=dE().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,l=!1,u=0,d=0,m=.5;delete e.unknown;function h(){var p=t().length,x=i<n,w=x?i:n,v=x?n:i;a=(v-w)/Math.max(1,p-u+d*2),l&&(a=Math.floor(a)),w+=(v-w-a*(p-u))*m,o=a*(1-u),l&&(w=Math.round(w),o=Math.round(o));var y=tbe(p).map(function(j){return w+a*j});return r(x?y.reverse():y)}return e.domain=function(p){return arguments.length?(t(p),h()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,h()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,l=!0,h()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(l=!!p,h()):l},e.padding=function(p){return arguments.length?(u=Math.min(1,d=+p),h()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),h()):u},e.paddingOuter=function(p){return arguments.length?(d=+p,h()):d},e.align=function(p){return arguments.length?(m=Math.max(0,Math.min(1,p)),h()):m},e.copy=function(){return hm(t(),[n,i]).round(l).paddingInner(u).paddingOuter(d).align(m)},Ds.apply(h(),arguments)}function LU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return LU(t())},e}function Bh(){return LU(hm.apply(null,arguments).paddingInner(1))}function fE(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function $U(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xp(){}var mm=.7,Ty=1/mm,Du="\\s*([+-]?\\d+)\\s*",pm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rbe=/^#([0-9a-f]{3,8})$/,nbe=new RegExp(`^rgb\\(${Du},${Du},${Du}\\)$`),sbe=new RegExp(`^rgb\\(${Ei},${Ei},${Ei}\\)$`),ibe=new RegExp(`^rgba\\(${Du},${Du},${Du},${pm}\\)$`),abe=new RegExp(`^rgba\\(${Ei},${Ei},${Ei},${pm}\\)$`),obe=new RegExp(`^hsl\\(${pm},${Ei},${Ei}\\)$`),lbe=new RegExp(`^hsla\\(${pm},${Ei},${Ei},${pm}\\)$`),d8={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};fE(xp,gm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f8,formatHex:f8,formatHex8:cbe,formatHsl:ube,formatRgb:h8,toString:h8});function f8(){return this.rgb().formatHex()}
vendor: 11,577 bytes, line 703
703function cbe(){return this.rgb().formatHex8()}function ube(){return FU(this).formatHsl()}function h8(){return this.rgb().formatRgb()}function gm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=rbe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?m8(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Xg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Xg(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=nbe.exec(e))?new Vn(t[1],t[2],t[3],1):(t=sbe.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ibe.exec(e))?Xg(t[1],t[2],t[3],t[4]):(t=abe.exec(e))?Xg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=obe.exec(e))?x8(t[1],t[2]/100,t[3]/100,1):(t=lbe.exec(e))?x8(t[1],t[2]/100,t[3]/100,t[4]):d8.hasOwnProperty(e)?m8(d8[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function m8(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function Xg(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vn(e,t,r,n)}function dbe(e){return e instanceof xp||(e=gm(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function qT(e,t,r,n){return arguments.length===1?dbe(e):new Vn(e,t,r,n??1)}function Vn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}fE(Vn,qT,$U(xp,{brighter(e){return e=e==null?Ty:Math.pow(Ty,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mm:Math.pow(mm,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(tc(this.r),tc(this.g),tc(this.b),Ay(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:p8,formatHex:p8,formatHex8:fbe,formatRgb:g8,toString:g8}));function p8(){return`#${Fl(this.r)}${Fl(this.g)}${Fl(this.b)}`}function fbe(){return`#${Fl(this.r)}${Fl(this.g)}${Fl(this.b)}${Fl((isNaN(this.opacity)?1:this.opacity)*255)}`}function g8(){const e=Ay(this.opacity);return`${e===1?"rgb(":"rgba("}${tc(this.r)}, ${tc(this.g)}, ${tc(this.b)}${e===1?")":`, ${e})`}`}function Ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fl(e){return e=tc(e),(e<16?"0":"")+e.toString(16)}function x8(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ei(e,t,r,n)}function FU(e){if(e instanceof ei)return new ei(e.h,e.s,e.l,e.opacity);if(e instanceof xp||(e=gm(e)),!e)return new ei;if(e instanceof ei)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new ei(o,l,u,e.opacity)}function hbe(e,t,r,n){return arguments.length===1?FU(e):new ei(e,t,r,n??1)}function ei(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}fE(ei,hbe,$U(xp,{brighter(e){return e=e==null?Ty:Math.pow(Ty,e),new ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mm:Math.pow(mm,e),new ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Vn(Uk(e>=240?e-240:e+120,i,n),Uk(e,i,n),Uk(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ei(y8(this.h),Qg(this.s),Qg(this.l),Ay(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=Ay(this.opacity);return`${e===1?"hsl(":"hsla("}${y8(this.h)}, ${Qg(this.s)*100}%, ${Qg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function y8(e){return e=(e||0)%360,e<0?e+360:e}function Qg(e){return Math.max(0,Math.min(1,e||0))}function Uk(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 hE=e=>()=>e;function mbe(e,t){return function(r){return e+r*t}}function pbe(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 gbe(e){return(e=+e)==1?BU:function(t,r){return r-t?pbe(t,r,e):hE(isNaN(t)?r:t)}}function BU(e,t){var r=t-e;return r?mbe(e,r):hE(isNaN(e)?t:e)}const v8=(function e(t){var r=gbe(t);function n(i,a){var o=r((i=qT(i)).r,(a=qT(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),d=BU(i.opacity,a.opacity);return function(m){return i.r=o(m),i.g=l(m),i.b=u(m),i.opacity=d(m),i+""}}return n.gamma=e,n})(1);function xbe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function ybe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vbe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=cf(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function bbe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Cy(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function wbe(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=cf(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var WT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hk=new RegExp(WT.source,"g");function jbe(e){return function(){return e}}function Sbe(e){return function(t){return e(t)+""}}function kbe(e,t){var r=WT.lastIndex=Hk.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=WT.exec(e))&&(i=Hk.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:Cy(n,i)})),r=Hk.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?u[0]?Sbe(u[0].x):jbe(t):(t=u.length,function(d){for(var m=0,h;m<t;++m)l[(h=u[m]).i]=h.x(d);return l.join("")})}function cf(e,t){var r=typeof t,n;return t==null||r==="boolean"?hE(t):(r==="number"?Cy:r==="string"?(n=gm(t))?(t=n,v8):kbe:t instanceof gm?v8:t instanceof Date?bbe:ybe(t)?xbe:Array.isArray(t)?vbe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wbe:Cy)(e,t)}function mE(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Nbe(e,t){t===void 0&&(t=e,e=cf);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function Tbe(e){return function(){return e}}function Py(e){return+e}var b8=[0,1];function An(e){return e}function zT(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Tbe(isNaN(t)?NaN:.5)}function Abe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Cbe(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=zT(i,n),a=r(o,a)):(n=zT(n,i),a=r(a,o)),function(l){return a(n(l))}}function Pbe(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=zT(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(l){var u=gp(e,l,1,n)-1;return a[u](i[u](l))}}function yp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bb(){var e=b8,t=b8,r=cf,n,i,a,o=An,l,u,d;function m(){var p=Math.min(e.length,t.length);return o!==An&&(o=Abe(e[0],e[p-1])),l=p>2?Pbe:Cbe,u=d=null,h}function h(p){return p==null||isNaN(p=+p)?a:(u||(u=l(e.map(n),t,r)))(n(o(p)))}return h.invert=function(p){return o(i((d||(d=l(t,e.map(n),Cy)))(p)))},h.domain=function(p){return arguments.length?(e=Array.from(p,Py),m()):e.slice()},h.range=function(p){return arguments.length?(t=Array.from(p),m()):t.slice()},h.rangeRound=function(p){return t=Array.from(p),r=mE,m()},h.clamp=function(p){return arguments.length?(o=p?!0:An,m()):o!==An},h.interpolate=function(p){return arguments.length?(r=p,m()):r},h.unknown=function(p){return arguments.length?(a=p,h):a},function(p,x){return n=p,i=x,m()}}function pE(){return bb()(An,An)}function Ebe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ey(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function vd(e){return e=Ey(Math.abs(e)),e?e[1]:NaN}function _be(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Obe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Ibe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xm(e){if(!(t=Ibe.exec(e)))throw new Error("invalid format: "+e);var t;return new gE({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]})}xm.prototype=gE.prototype;function gE(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+""}gE.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 Rbe(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var _y;function Mbe(e,t){var r=Ey(e,t);if(!r)return _y=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(_y=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ey(e,Math.max(0,t+a-1))[0]}function w8(e,t){var r=Ey(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const j8={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ebe,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)=>w8(e*100,t),r:w8,s:Mbe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function S8(e){return e}var k8=Array.prototype.map,N8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dbe(e){var t=e.grouping===void 0||e.thousands===void 0?S8:_be(k8.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?S8:Obe(k8.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function d(h,p){h=xm(h);var x=h.fill,w=h.align,v=h.sign,y=h.symbol,j=h.zero,k=h.width,N=h.comma,C=h.precision,A=h.trim,E=h.type;E==="n"?(N=!0,E="g"):j8[E]||(C===void 0&&(C=12),A=!0,E="g"),(j||x==="0"&&w==="=")&&(j=!0,x="0",w="=");var _=(p&&p.prefix!==void 0?p.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),R=(y==="$"?n:/[%p]/.test(E)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),O=j8[E],F=/[defgprs%]/.test(E);C=C===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function D(L){var I=_,$=R,z,K,Z;if(E==="c")$=O(L)+$,L="";else{L=+L;
vendor: 4,321 bytes, line 703
703var U=L<0||1/L<0;if(L=isNaN(L)?u:O(Math.abs(L),C),A&&(L=Rbe(L)),U&&+L==0&&v!=="+"&&(U=!1),I=(U?v==="("?v:l:v==="-"||v==="("?"":v)+I,$=(E==="s"&&!isNaN(L)&&_y!==void 0?N8[8+_y/3]:"")+$+(U&&v==="("?")":""),F){for(z=-1,K=L.length;++z<K;)if(Z=L.charCodeAt(z),48>Z||Z>57){$=(Z===46?i+L.slice(z+1):L.slice(z))+$,L=L.slice(0,z);break}}}N&&!j&&(L=t(L,1/0));var q=I.length+L.length+$.length,B=q<k?new Array(k-q+1).join(x):"";switch(N&&j&&(L=t(B+L,B.length?k-$.length:1/0),B=""),w){case"<":L=I+L+$+B;break;case"=":L=I+B+L+$;break;case"^":L=B.slice(0,q=B.length>>1)+I+L+$+B.slice(q);break;default:L=B+I+L+$;break}return a(L)}return D.toString=function(){return h+""},D}function m(h,p){var x=Math.max(-8,Math.min(8,Math.floor(vd(p)/3)))*3,w=Math.pow(10,-x),v=d((h=xm(h),h.type="f",h),{suffix:N8[8+x/3]});return function(y){return v(w*y)}}return{format:d,formatPrefix:m}}var Zg,xE,VU;Lbe({thousands:",",grouping:[3],currency:["$",""]});function Lbe(e){return Zg=Dbe(e),xE=Zg.format,VU=Zg.formatPrefix,Zg}function $be(e){return Math.max(0,-vd(Math.abs(e)))}function Fbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vd(t)/3)))*3-vd(Math.abs(e)))}function Bbe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vd(t)-vd(e))+1}function qU(e,t,r,n){var i=BT(e,t,r),a;switch(n=xm(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Fbe(i,o))&&(n.precision=a),VU(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Bbe(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=$be(i))&&(n.precision=a-(n.type==="%")*2);break}}return xE(n)}function sl(e){var t=e.domain;return e.ticks=function(r){var n=t();return $T(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return qU(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,d,m=10;for(l<o&&(d=o,o=l,l=d,d=i,i=a,a=d);m-- >0;){if(d=FT(o,l,r),d===u)return n[i]=o,n[a]=l,t(n);if(d>0)o=Math.floor(o/d)*d,l=Math.ceil(l/d)*d;else if(d<0)o=Math.ceil(o*d)/d,l=Math.floor(l*d)/d;else break;u=d}return e},e}function Oy(){var e=pE();return e.copy=function(){return yp(e,Oy())},Ds.apply(e,arguments),sl(e)}function WU(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,Py),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return WU(e).unknown(t)},e=arguments.length?Array.from(e,Py):[0,1],sl(r)}function zU(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function T8(e){return Math.log(e)}function A8(e){return Math.exp(e)}function Vbe(e){return-Math.log(-e)}function qbe(e){return-Math.exp(-e)}function Wbe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function zbe(e){return e===10?Wbe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ube(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 C8(e){return(t,r)=>-e(-t,r)}function yE(e){const t=e(T8,A8),r=t.domain;let n=10,i,a;function o(){return i=Ube(n),a=zbe(n),r()[0]<0?(i=C8(i),a=C8(a),e(Vbe,qbe)):e(T8,A8),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 u=r();let d=u[0],m=u[u.length-1];const h=m<d;h&&([d,m]=[m,d]);let p=i(d),x=i(m),w,v;const y=l==null?10:+l;let j=[];if(!(n%1)&&x-p<y){if(p=Math.floor(p),x=Math.ceil(x),d>0){for(;p<=x;++p)for(w=1;w<n;++w)if(v=p<0?w/a(-p):w*a(p),!(v<d)){if(v>m)break;j.push(v)}}else for(;p<=x;++p)for(w=n-1;w>=1;--w)if(v=p>0?w/a(-p):w*a(p),!(v<d)){if(v>m)break;j.push(v)}j.length*2<y&&(j=$T(d,m,y))}else j=$T(p,x,Math.min(x-p,y)).map(a);return h?j.reverse():j},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=xm(u)).precision==null&&(u.trim=!0),u=xE(u)),l===1/0)return u;const d=Math.max(1,n*l/t.ticks().length);return m=>{let h=m/a(Math.round(i(m)));return h*n<n-.5&&(h*=n),h<=d?u(m):""}},t.nice=()=>r(zU(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function UU(){const e=yE(bb()).domain([1,10]);return e.copy=()=>yp(e,UU()).base(e.base()),Ds.apply(e,arguments),e}
703function P8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function E8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vE(e){var t=1,r=e(P8(t),E8(t));return r.constant=function(n){return arguments.length?e(P8(t=+n),E8(t)):t},sl(r)}function HU(){var e=vE(bb());return e.copy=function(){return yp(e,HU()).constant(e.constant())},Ds.apply(e,arguments)}function _8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Hbe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gbe(e){return e<0?-e*e:e*e}function bE(e){var t=e(An,An),r=1;function n(){return r===1?e(An,An):r===.5?e(Hbe,Gbe):e(_8(r),_8(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},sl(t)}function wE(){var e=bE(bb());return e.copy=function(){return yp(e,wE()).exponent(e.exponent())},Ds.apply(e,arguments),e}function Kbe(){return wE.apply(null,arguments).exponent(.5)}function O8(e){return Math.sign(e)*e*e}function Ybe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function GU(){var e=pE(),t=[0,1],r=!1,n;function i(a){var o=Ybe(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(O8(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Py)).map(O8)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return GU(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ds.apply(i,arguments),sl(i)}function KU(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=ebe(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?n:t[gp(r,o)]}return a.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]]},a.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(Do),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return KU().domain(e).range(t).unknown(n)},Ds.apply(a,arguments)}function YU(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[gp(n,u,0,r)]:a}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,l()):i.slice()},o.invertExtent=function(u){var d=i.indexOf(u);return d<0?[NaN,NaN]:d<1?[e,n[0]]:d>=r?[n[r-1],t]:[n[d-1],n[d]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return YU().domain([e,t]).range(i).unknown(a)},Ds.apply(sl(o),arguments)}function XU(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[gp(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return XU().domain(e).range(t).unknown(r)},Ds.apply(i,arguments)}const Gk=new Date,Kk=new Date;function $r(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return u;let d;do u.push(d=new Date(+a)),t(a,l),e(a);while(d<a&&a<o);return u},i.filter=a=>$r(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Gk.setTime(+a),Kk.setTime(+o),e(Gk),e(Kk),Math.floor(r(Gk,Kk))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Iy=$r(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Iy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?$r(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Iy);Iy.range;const da=1e3,Es=da*60,fa=Es*60,Ea=fa*24,jE=Ea*7,I8=Ea*30,Yk=Ea*365,Bl=$r(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*da)},(e,t)=>(t-e)/da,e=>e.getUTCSeconds());Bl.range;const SE=$r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*da)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getMinutes());SE.range;
vendor: 12,290 bytes, line 703
703const kE=$r(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getUTCMinutes());kE.range;const NE=$r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*da-e.getMinutes()*Es)},(e,t)=>{e.setTime(+e+t*fa)},(e,t)=>(t-e)/fa,e=>e.getHours());NE.range;const TE=$r(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*fa)},(e,t)=>(t-e)/fa,e=>e.getUTCHours());TE.range;const vp=$r(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Es)/Ea,e=>e.getDate()-1);vp.range;const wb=$r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ea,e=>e.getUTCDate()-1);wb.range;const QU=$r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ea,e=>Math.floor(e/Ea));QU.range;function _c(e){return $r(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())*Es)/jE)}const jb=_c(0),Ry=_c(1),Xbe=_c(2),Qbe=_c(3),bd=_c(4),Zbe=_c(5),Jbe=_c(6);jb.range;Ry.range;Xbe.range;Qbe.range;bd.range;Zbe.range;Jbe.range;function Oc(e){return $r(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)/jE)}const Sb=Oc(0),My=Oc(1),e0e=Oc(2),t0e=Oc(3),wd=Oc(4),r0e=Oc(5),n0e=Oc(6);Sb.range;My.range;e0e.range;t0e.range;wd.range;r0e.range;n0e.range;const AE=$r(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());AE.range;const CE=$r(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());CE.range;const _a=$r(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());_a.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$r(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)});_a.range;const Oa=$r(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());Oa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$r(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)});Oa.range;function ZU(e,t,r,n,i,a){const o=[[Bl,1,da],[Bl,5,5*da],[Bl,15,15*da],[Bl,30,30*da],[a,1,Es],[a,5,5*Es],[a,15,15*Es],[a,30,30*Es],[i,1,fa],[i,3,3*fa],[i,6,6*fa],[i,12,12*fa],[n,1,Ea],[n,2,2*Ea],[r,1,jE],[t,1,I8],[t,3,3*I8],[e,1,Yk]];function l(d,m,h){const p=m<d;p&&([d,m]=[m,d]);const x=h&&typeof h.range=="function"?h:u(d,m,h),w=x?x.range(d,+m+1):[];return p?w.reverse():w}function u(d,m,h){const p=Math.abs(m-d)/h,x=uE(([,,y])=>y).right(o,p);if(x===o.length)return e.every(BT(d/Yk,m/Yk,h));if(x===0)return Iy.every(Math.max(BT(d,m,h),1));const[w,v]=o[p/o[x-1][2]<o[x][2]/p?x-1:x];return w.every(v)}return[l,u]}const[s0e,i0e]=ZU(Oa,CE,Sb,QU,TE,kE),[a0e,o0e]=ZU(_a,AE,jb,vp,NE,SE);function Xk(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 Qk(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 ch(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function l0e(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,d=uh(i),m=dh(i),h=uh(a),p=dh(a),x=uh(o),w=dh(o),v=uh(l),y=dh(l),j=uh(u),k=dh(u),N={a:Z,A:U,b:q,B,c:null,d:F8,e:F8,f:_0e,g:V0e,G:W0e,H:C0e,I:P0e,j:E0e,L:JU,m:O0e,M:I0e,p:V,q:X,Q:q8,s:W8,S:R0e,u:M0e,U:D0e,V:L0e,w:$0e,W:F0e,x:null,X:null,y:B0e,Y:q0e,Z:z0e,"%":V8},C={a:ce,A:ye,b:$e,B:Te,c:null,d:B8,e:B8,f:K0e,g:swe,G:awe,H:U0e,I:H0e,j:G0e,L:tH,m:Y0e,M:X0e,p:ge,q:Ae,Q:q8,s:W8,S:Q0e,u:Z0e,U:J0e,V:ewe,w:twe,W:rwe,x:null,X:null,y:nwe,Y:iwe,Z:owe,"%":V8},A={a:F,A:D,b:L,B:I,c:$,d:L8,e:L8,f:k0e,g:D8,G:M8,H:$8,I:$8,j:b0e,L:S0e,m:v0e,M:w0e,p:O,q:y0e,Q:T0e,s:A0e,S:j0e,u:h0e,U:m0e,V:p0e,w:f0e,W:g0e,x:z,X:K,y:D8,Y:M8,Z:x0e,"%":N0e};N.x=E(r,N),N.X=E(n,N),N.c=E(t,N),C.x=E(r,C),C.X=E(n,C),C.c=E(t,C);function E(le,Se){return function(Pe){var ae=[],at=-1,Ye=0,mt=le.length,Ie,pt,rr;for(Pe instanceof Date||(Pe=new Date(+Pe));++at<mt;)le.charCodeAt(at)===37&&(ae.push(le.slice(Ye,at)),(pt=R8[Ie=le.charAt(++at)])!=null?Ie=le.charAt(++at):pt=Ie==="e"?" ":"0",(rr=Se[Ie])&&(Ie=rr(Pe,pt)),ae.push(Ie),Ye=at+1);return ae.push(le.slice(Ye,at)),ae.join("")}}function _(le,Se){return function(Pe){var ae=ch(1900,void 0,1),at=R(ae,le,Pe+="",0),Ye,mt;if(at!=Pe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(Se&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(Ye=Qk(ch(ae.y,0,1)),mt=Ye.getUTCDay(),Ye=mt>4||mt===0?My.ceil(Ye):My(Ye),Ye=wb.offset(Ye,(ae.V-1)*7),ae.y=Ye.getUTCFullYear(),ae.m=Ye.getUTCMonth(),ae.d=Ye.getUTCDate()+(ae.w+6)%7):(Ye=Xk(ch(ae.y,0,1)),mt=Ye.getDay(),Ye=mt>4||mt===0?Ry.ceil(Ye):Ry(Ye),Ye=vp.offset(Ye,(ae.V-1)*7),ae.y=Ye.getFullYear(),ae.m=Ye.getMonth(),ae.d=Ye.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),mt="Z"in ae?Qk(ch(ae.y,0,1)).getUTCDay():Xk(ch(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(mt+5)%7:ae.w+ae.U*7-(mt+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,Qk(ae)):Xk(ae)}}function R(le,Se,Pe,ae){for(var at=0,Ye=Se.length,mt=Pe.length,Ie,pt;at<Ye;){if(ae>=mt)return-1;if(Ie=Se.charCodeAt(at++),Ie===37){if(Ie=Se.charAt(at++),pt=A[Ie in R8?Se.charAt(at++):Ie],!pt||(ae=pt(le,Pe,ae))<0)return-1}else if(Ie!=Pe.charCodeAt(ae++))return-1}return ae}function O(le,Se,Pe){var ae=d.exec(Se.slice(Pe));return ae?(le.p=m.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function F(le,Se,Pe){var ae=x.exec(Se.slice(Pe));return ae?(le.w=w.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function D(le,Se,Pe){var ae=h.exec(Se.slice(Pe));return ae?(le.w=p.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function L(le,Se,Pe){var ae=j.exec(Se.slice(Pe));return ae?(le.m=k.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function I(le,Se,Pe){var ae=v.exec(Se.slice(Pe));return ae?(le.m=y.get(ae[0].toLowerCase()),Pe+ae[0].length):-1}function $(le,Se,Pe){return R(le,t,Se,Pe)}function z(le,Se,Pe){return R(le,r,Se,Pe)}function K(le,Se,Pe){return R(le,n,Se,Pe)}function Z(le){return o[le.getDay()]}function U(le){return a[le.getDay()]}function q(le){return u[le.getMonth()]}function B(le){return l[le.getMonth()]}function V(le){return i[+(le.getHours()>=12)]}function X(le){return 1+~~(le.getMonth()/3)}function ce(le){return o[le.getUTCDay()]}function ye(le){return a[le.getUTCDay()]}function $e(le){return u[le.getUTCMonth()]}function Te(le){return l[le.getUTCMonth()]}function ge(le){return i[+(le.getUTCHours()>=12)]}function Ae(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var Se=E(le+="",N);return Se.toString=function(){return le},Se},parse:function(le){var Se=_(le+="",!1);return Se.toString=function(){return le},Se},utcFormat:function(le){var Se=E(le+="",C);return Se.toString=function(){return le},Se},utcParse:function(le){var Se=_(le+="",!0);return Se.toString=function(){return le},Se}}}var R8={"-":"",_:" ",0:"0"},Kr=/^\s*\d+/,c0e=/^%/,u0e=/[\\^$*+?|[\]().{}]/g;function _t(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function d0e(e){return e.replace(u0e,"\\$&")}function uh(e){return new RegExp("^(?:"+e.map(d0e).join("|")+")","i")}function dh(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function f0e(e,t,r){var n=Kr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function h0e(e,t,r){var n=Kr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function m0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function p0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function g0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function M8(e,t,r){var n=Kr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function D8(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x0e(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 y0e(e,t,r){var n=Kr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function v0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function L8(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function b0e(e,t,r){var n=Kr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function $8(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function w0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function j0e(e,t,r){var n=Kr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function S0e(e,t,r){var n=Kr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function k0e(e,t,r){var n=Kr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function N0e(e,t,r){var n=c0e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function T0e(e,t,r){var n=Kr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function A0e(e,t,r){var n=Kr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function F8(e,t){return _t(e.getDate(),t,2)}function C0e(e,t){return _t(e.getHours(),t,2)}function P0e(e,t){return _t(e.getHours()%12||12,t,2)}function E0e(e,t){return _t(1+vp.count(_a(e),e),t,3)}function JU(e,t){return _t(e.getMilliseconds(),t,3)}function _0e(e,t){return JU(e,t)+"000"}function O0e(e,t){return _t(e.getMonth()+1,t,2)}function I0e(e,t){return _t(e.getMinutes(),t,2)}function R0e(e,t){return _t(e.getSeconds(),t,2)}function M0e(e){var t=e.getDay();return t===0?7:t}function D0e(e,t){return _t(jb.count(_a(e)-1,e),t,2)}function eH(e){var t=e.getDay();return t>=4||t===0?bd(e):bd.ceil(e)}function L0e(e,t){return e=eH(e),_t(bd.count(_a(e),e)+(_a(e).getDay()===4),t,2)}function $0e(e){return e.getDay()}function F0e(e,t){return _t(Ry.count(_a(e)-1,e),t,2)}function B0e(e,t){return _t(e.getFullYear()%100,t,2)}function V0e(e,t){return e=eH(e),_t(e.getFullYear()%100,t,2)}function q0e(e,t){return _t(e.getFullYear()%1e4,t,4)}function W0e(e,t){var r=e.getDay();return e=r>=4||r===0?bd(e):bd.ceil(e),_t(e.getFullYear()%1e4,t,4)}function z0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_t(t/60|0,"0",2)+_t(t%60,"0",2)}function B8(e,t){return _t(e.getUTCDate(),t,2)}function U0e(e,t){return _t(e.getUTCHours(),t,2)}function H0e(e,t){return _t(e.getUTCHours()%12||12,t,2)}function G0e(e,t){return _t(1+wb.count(Oa(e),e),t,3)}function tH(e,t){return _t(e.getUTCMilliseconds(),t,3)}function K0e(e,t){return tH(e,t)+"000"}function Y0e(e,t){return _t(e.getUTCMonth()+1,t,2)}function X0e(e,t){return _t(e.getUTCMinutes(),t,2)}function Q0e(e,t){return _t(e.getUTCSeconds(),t,2)}function Z0e(e){var t=e.getUTCDay();return t===0?7:t}function J0e(e,t){return _t(Sb.count(Oa(e)-1,e),t,2)}function rH(e){var t=e.getUTCDay();return t>=4||t===0?wd(e):wd.ceil(e)}function ewe(e,t){return e=rH(e),_t(wd.count(Oa(e),e)+(Oa(e).getUTCDay()===4),t,2)}function twe(e){return e.getUTCDay()}function rwe(e,t){return _t(My.count(Oa(e)-1,e),t,2)}function nwe(e,t){return _t(e.getUTCFullYear()%100,t,2)}function swe(e,t){return e=rH(e),_t(e.getUTCFullYear()%100,t,2)}function iwe(e,t){return _t(e.getUTCFullYear()%1e4,t,4)}function awe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wd(e):wd.ceil(e),_t(e.getUTCFullYear()%1e4,t,4)}function owe(){return"+0000"}function V8(){return"%"}function q8(e){return+e}function W8(e){return Math.floor(+e/1e3)}var fu,nH,sH;lwe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
703ay","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 lwe(e){return fu=l0e(e),nH=fu.format,fu.parse,sH=fu.utcFormat,fu.utcParse,fu}function cwe(e){return new Date(e)}function uwe(e){return e instanceof Date?+e:+new Date(+e)}function PE(e,t,r,n,i,a,o,l,u,d){var m=pE(),h=m.invert,p=m.domain,x=d(".%L"),w=d(":%S"),v=d("%I:%M"),y=d("%I %p"),j=d("%a %d"),k=d("%b %d"),N=d("%B"),C=d("%Y");function A(E){return(u(E)<E?x:l(E)<E?w:o(E)<E?v:a(E)<E?y:n(E)<E?i(E)<E?j:k:r(E)<E?N:C)(E)}return m.invert=function(E){return new Date(h(E))},m.domain=function(E){return arguments.length?p(Array.from(E,uwe)):p().map(cwe)},m.ticks=function(E){var _=p();return e(_[0],_[_.length-1],E??10)},m.tickFormat=function(E,_){return _==null?A:d(_)},m.nice=function(E){var _=p();return(!E||typeof E.range!="function")&&(E=t(_[0],_[_.length-1],E??10)),E?p(zU(_,E)):m},m.copy=function(){return yp(m,PE(e,t,r,n,i,a,o,l,u,d))},m}function dwe(){return Ds.apply(PE(a0e,o0e,_a,AE,jb,vp,NE,SE,Bl,nH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fwe(){return Ds.apply(PE(s0e,i0e,Oa,CE,Sb,wb,TE,kE,Bl,sH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function kb(){var e=0,t=1,r,n,i,a,o=An,l=!1,u;function d(h){return h==null||isNaN(h=+h)?u:o(i===0?.5:(h=(a(h)-r)*i,l?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([e,t]=h,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),d):[e,t]},d.clamp=function(h){return arguments.length?(l=!!h,d):l},d.interpolator=function(h){return arguments.length?(o=h,d):o};function m(h){return function(p){var x,w;return arguments.length?([x,w]=p,o=h(x,w),d):[o(0),o(1)]}}return d.range=m(cf),d.rangeRound=m(mE),d.unknown=function(h){return arguments.length?(u=h,d):u},function(h){return a=h,r=h(e),n=h(t),i=r===n?0:1/(n-r),d}}function il(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function iH(){var e=sl(kb()(An));return e.copy=function(){return il(e,iH())},Fa.apply(e,arguments)}function aH(){var e=yE(kb()).domain([1,10]);return e.copy=function(){return il(e,aH()).base(e.base())},Fa.apply(e,arguments)}function oH(){var e=vE(kb());return e.copy=function(){return il(e,oH()).constant(e.constant())},Fa.apply(e,arguments)}function EE(){var e=bE(kb());return e.copy=function(){return il(e,EE()).exponent(e.exponent())},Fa.apply(e,arguments)}function hwe(){return EE.apply(null,arguments).exponent(.5)}function lH(){var e=[],t=An;function r(n){if(n!=null&&!isNaN(n=+n))return t((gp(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Do),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Jve(e,a/n))},r.copy=function(){return lH(t).domain(e)},Fa.apply(r,arguments)}function Nb(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,d=An,m,h=!1,p;function x(v){return isNaN(v=+v)?p:(v=.5+((v=+m(v))-a)*(n*v<n*a?l:u),d(h?Math.max(0,Math.min(1,v)):v))}x.domain=function(v){return arguments.length?([e,t,r]=v,i=m(e=+e),a=m(t=+t),o=m(r=+r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,x):[e,t,r]},x.clamp=function(v){return arguments.length?(h=!!v,x):h},x.interpolator=function(v){return arguments.length?(d=v,x):d};function w(v){return function(y){var j,k,N;return arguments.length?([j,k,N]=y,d=Nbe(v,[j,k,N]),x):[d(0),d(.5),d(1)]}}return x.range=w(cf),x.rangeRound=w(mE),x.unknown=function(v){return arguments.length?(p=v,x):p},function(v){return m=v,i=v(e),a=v(t),o=v(r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,x}}function cH(){var e=sl(Nb()(An));return e.copy=function(){return il(e,cH())},Fa.apply(e,arguments)}function uH(){var e=yE(Nb()).domain([.1,1,10]);return e.copy=function(){return il(e,uH()).base(e.base())},Fa.apply(e,arguments)}function dH(){var e=vE(Nb());return e.copy=function(){return il(e,dH()).constant(e.constant())},Fa.apply(e,arguments)}function _E(){var e=bE(Nb());return e.copy=function(){return il(e,_E()).exponent(e.exponent())},Fa.apply(e,arguments)}function mwe(){return _E.apply(null,arguments).exponent(.5)}const z8=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:hm,scaleDiverging:cH,scaleDivergingLog:uH,scaleDivergingPow:_E,scaleDivergingSqrt:mwe,scaleDivergingSymlog:dH,scaleIdentity:WU,scaleImplicit:VT,scaleLinear:Oy,scaleLog:UU,scaleOrdinal:dE,scalePoint:Bh,scalePow:wE,scaleQuantile:KU,scaleQuantize:YU,scaleRadial:GU,scaleSequential:iH,scaleSequentialLog:aH,scaleSequentialPow:EE,scaleSequentialQuantile:lH,scaleSequentialSqrt:hwe,scaleSequentialSymlog:oH,scaleSqrt:Kbe,scaleSymlog:HU,scaleThreshold:XU,scaleTime:dwe,scaleUtc:fwe,tickFormat:qU},Symbol.toStringTag,{value:"Module"}));var Zk,U8;function Tb(){if(U8)return Zk;U8=1;var e=sf();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var l=r[a],u=n(l);if(u!=null&&(d===void 0?u===u&&!e(u):i(u,d)))var d=u,m=l}return m}return Zk=t,Zk}var Jk,H8;function fH(){if(H8)return Jk;H8=1;function e(t,r){return t>r}return Jk=e,Jk}var eN,G8;function pwe(){if(G8)return eN;G8=1;var e=Tb(),t=fH(),r=of();function n(i){return i&&i.length?e(i,r,t):void 0}return eN=n,eN}var gwe=pwe();const Ab=Tt(gwe);var tN,K8;function hH(){if(K8)return tN;K8=1;function e(t,r){return t<r}return tN=e,tN}var rN,Y8;function xwe(){if(Y8)return rN;Y8=1;var e=Tb(),t=hH(),r=of();function n(i){return i&&i.length?e(i,r,t):void 0}return rN=n,rN}var ywe=xwe();const Cb=Tt(ywe);var nN,X8;
vendor: 132,253 bytes, lines 703-749
703function vwe(){if(X8)return nN;X8=1;var e=GP(),t=qi(),r=jU(),n=Wn();function i(a,o){var l=n(a)?e:r;return l(a,t(o,3))}return nN=i,nN}var sN,Q8;function bwe(){if(Q8)return sN;Q8=1;var e=bU(),t=vwe();function r(n,i){return e(t(n,i),1)}return sN=r,sN}var wwe=bwe();const jwe=Tt(wwe);var iN,Z8;function Swe(){if(Z8)return iN;Z8=1;var e=aE();function t(r,n){return e(r,n)}return iN=t,iN}var kwe=Swe();const Pb=Tt(kwe);var uf=1e9,Nwe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},IE,ir=!0,Os="[DecimalError] ",rc=Os+"Invalid argument: ",OE=Os+"Exponent out of range: ",df=Math.floor,_l=Math.pow,Twe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rs,Ur=1e7,er=7,mH=9007199254740991,Dy=df(mH/er),qe={};qe.absoluteValue=qe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};qe.comparedTo=qe.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};qe.decimalPlaces=qe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*er;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};qe.dividedBy=qe.div=function(e){return ba(this,new this.constructor(e))};qe.dividedToIntegerBy=qe.idiv=function(e){var t=this,r=t.constructor;return qt(ba(t,new r(e),0,1),r.precision)};qe.equals=qe.eq=function(e){return!this.cmp(e)};qe.exponent=function(){return Cr(this)};qe.greaterThan=qe.gt=function(e){return this.cmp(e)>0};qe.greaterThanOrEqualTo=qe.gte=function(e){return this.cmp(e)>=0};qe.isInteger=qe.isint=function(){return this.e>this.d.length-2};qe.isNegative=qe.isneg=function(){return this.s<0};qe.isPositive=qe.ispos=function(){return this.s>0};qe.isZero=function(){return this.s===0};qe.lessThan=qe.lt=function(e){return this.cmp(e)<0};qe.lessThanOrEqualTo=qe.lte=function(e){return this.cmp(e)<1};qe.logarithm=qe.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(rs))throw Error(Os+"NaN");if(r.s<1)throw Error(Os+(r.s?"NaN":"-Infinity"));return r.eq(rs)?new n(0):(ir=!1,t=ba(ym(r,a),ym(e,a),a),ir=!0,qt(t,i))};qe.minus=qe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xH(t,e):pH(t,(e.s=-e.s,e))};qe.modulo=qe.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Os+"NaN");return r.s?(ir=!1,t=ba(r,e,0,1).times(e),ir=!0,r.minus(t)):qt(new n(r),i)};qe.naturalExponential=qe.exp=function(){return gH(this)};qe.naturalLogarithm=qe.ln=function(){return ym(this)};qe.negated=qe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};qe.plus=qe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?pH(t,e):xH(t,(e.s=-e.s,e))};qe.precision=qe.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rc+e);if(t=Cr(i)+1,n=i.d.length-1,r=n*er+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};qe.squareRoot=qe.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Os+"NaN")}for(e=Cr(l),ir=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Si(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=df((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(ba(l,a,o+2)).times(.5),Si(a.d).slice(0,o)===(t=Si(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(qt(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return ir=!0,qt(n,r)};qe.times=qe.mul=function(e){var t,r,n,i,a,o,l,u,d,m=this,h=m.constructor,p=m.d,x=(e=new h(e)).d;if(!m.s||!e.s)return new h(0);for(e.s*=m.s,r=m.e+e.e,u=p.length,d=x.length,u<d&&(a=p,p=x,x=a,o=u,u=d,d=o),a=[],o=u+d,n=o;n--;)a.push(0);for(n=d;--n>=0;){for(t=0,i=u+n;i>n;)l=a[i]+x[n]*p[i-n-1]+t,a[i--]=l%Ur|0,t=l/Ur|0;a[i]=(a[i]+t)%Ur|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ir?qt(e,h.precision):e};qe.toDecimalPlaces=qe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Di(e,0,uf),t===void 0?t=n.rounding:Di(t,0,8),qt(r,e+Cr(r)+1,t))};qe.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=yc(n,!0):(Di(e,0,uf),t===void 0?t=i.rounding:Di(t,0,8),n=qt(new i(n),e+1,t),r=yc(n,!0,e+1)),r};qe.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?yc(i):(Di(e,0,uf),t===void 0?t=a.rounding:Di(t,0,8),n=qt(new a(i),e+Cr(i)+1,t),r=yc(n.abs(),!1,e+Cr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};qe.toInteger=qe.toint=function(){var e=this,t=e.constructor;return qt(new t(e),Cr(e)+1,t.rounding)};qe.toNumber=function(){return+this};qe.toPower=qe.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,d=12,m=+(e=new u(e));if(!e.s)return new u(rs);if(l=new u(l),!l.s){if(e.s<1)throw Error(Os+"Infinity");return l}if(l.eq(rs))return l;if(n=u.precision,e.eq(rs))return qt(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=m<0?-m:m)<=mH){for(i=new u(rs),t=Math.ceil(n/er+4),ir=!1;r%2&&(i=i.times(l),eL(i.d,t)),r=df(r/2),r!==0;)l=l.times(l),eL(l.d,t);return ir=!0,e.s<0?new u(rs).div(i):qt(i,n)}}else if(a<0)throw Error(Os+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,ir=!1,i=e.times(ym(l,n+d)),ir=!0,i=gH(i),i.s=a,i};qe.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Cr(i),n=yc(i,r<=a.toExpNeg||r>=a.toExpPos)):(Di(e,1,uf),t===void 0?t=a.rounding:Di(t,0,8),i=qt(new a(i),e,t),r=Cr(i),n=yc(i,e<=r||r<=a.toExpNeg,e)),n};qe.toSignificantDigits=qe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Di(e,1,uf),t===void 0?t=n.rounding:Di(t,0,8)),qt(new n(r),e,t)};qe.toString=qe.valueOf=qe.val=qe.toJSON=qe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Cr(e),r=e.constructor;return yc(e,t<=r.toExpNeg||t>=r.toExpPos)};function pH(e,t){var r,n,i,a,o,l,u,d,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),ir?qt(t,h):t;if(u=e.d,d=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=d.length):(n=d,i=o,l=u.length),o=Math.ceil(h/er),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=d.length,l-a<0&&(a=l,n=d,d=u,u=n),r=0;a;)r=(u[--a]=u[a]+d[a]+r)/Ur|0,u[a]%=Ur;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,ir?qt(t,h):t}function Di(e,t,r){if(e!==~~e||e<t||e>r)throw Error(rc+e)}function Si(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=er-n.length,r&&(a+=vo(r)),a+=n;o=e[t],n=o+"",r=er-n.length,r&&(a+=vo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var ba=(function(){function e(n,i){var a,o=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+o,n[l]=a%Ur|0,o=a/Ur|0;return o&&n.unshift(o),n}function t(n,i,a,o){var l,u;if(a!=o)u=a>o?1:-1;else for(l=u=0;l<a;l++)if(n[l]!=i[l]){u=n[l]>i[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ur+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var l,u,d,m,h,p,x,w,v,y,j,k,N,C,A,E,_,R,O=n.constructor,F=n.s==i.s?1:-1,D=n.d,L=i.d;if(!n.s)return new O(n);if(!i.s)throw Error(Os+"Division by zero");for(u=n.e-i.e,_=L.length,A=D.length,x=new O(F),w=x.d=[],d=0;L[d]==(D[d]||0);)++d;if(L[d]>(D[d]||0)&&--u,a==null?k=a=O.precision:o?k=a+(Cr(n)-Cr(i))+1:k=a,k<0)return new O(0);if(k=k/er+2|0,d=0,_==1)for(m=0,L=L[0],k++;(d<A||m)&&k--;d++)N=m*Ur+(D[d]||0),w[d]=N/L|0,m=N%L|0;else{for(m=Ur/(L[0]+1)|0,m>1&&(L=e(L,m),D=e(D,m),_=L.length,A=D.length),C=_,v=D.slice(0,_),y=v.length;y<_;)v[y++]=0;R=L.slice(),R.unshift(0),E=L[0],L[1]>=Ur/2&&++E;do m=0,l=t(L,v,_,y),l<0?(j=v[0],_!=y&&(j=j*Ur+(v[1]||0)),m=j/E|0,m>1?(m>=Ur&&(m=Ur-1),h=e(L,m),p=h.length,y=v.length,l=t(h,v,p,y),l==1&&(m--,r(h,_<p?R:L,p))):(m==0&&(l=m=1),h=L.slice()),p=h.length,p<y&&h.unshift(0),r(v,h,y),l==-1&&(y=v.length,l=t(L,v,_,y),l<1&&(m++,r(v,_<y?R:L,y))),y=v.length):l===0&&(m++,v=[0]),w[d++]=m,l&&v[0]?v[y++]=D[C]||0:(v=[D[C]],y=1);while((C++<A||v[0]!==void 0)&&k--)}return w[0]||w.shift(),x.e=u,qt(x,o?a+Cr(x)+1:a)}})();function gH(e,t){var r,n,i,a,o,l,u=0,d=0,m=e.constructor,h=m.precision;if(Cr(e)>16)throw Error(OE+Cr(e));if(!e.s)return new m(rs);for(ir=!1,l=h,o=new m(.03125);e.abs().gte(.1);)e=e.times(o),d+=5;for(n=Math.log(_l(2,d))/Math.LN10*2+5|0,l+=n,r=i=a=new m(rs),m.precision=l;;){if(i=qt(i.times(e),l),r=r.times(++u),o=a.plus(ba(i,r,l)),Si(o.d).slice(0,l)===Si(a.d).slice(0,l)){for(;d--;)a=qt(a.times(a),l);return m.precision=h,t==null?(ir=!0,qt(a,h)):a}a=o}}function Cr(e){for(var t=e.e*er,r=e.d[0];r>=10;r/=10)t++;return t}function aN(e,t,r){if(t>e.LN10.sd())throw ir=!0,r&&(e.precision=r),Error(Os+"LN10 precision limit exceeded");return qt(new e(e.LN10),t)}function vo(e){for(var t="";e--;)t+="0";return t}function ym(e,t){var r,n,i,a,o,l,u,d,m,h=1,p=10,x=e,w=x.d,v=x.constructor,y=v.precision;if(x.s<1)throw Error(Os+(x.s?"NaN":"-Infinity"));if(x.eq(rs))return new v(0);if(t==null?(ir=!1,d=y):d=t,x.eq(10))return t==null&&(ir=!0),aN(v,d);if(d+=p,v.precision=d,r=Si(w),n=r.charAt(0),a=Cr(x),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)x=x.times(e),r=Si(x.d),n=r.charAt(0),h++;a=Cr(x),n>1?(x=new v("0."+r),a++):x=new v(n+"."+r.slice(1))}else return u=aN(v,d+2,y).times(a+""),x=ym(new v(n+"."+r.slice(1)),d-p).plus(u),v.precision=y,t==null?(ir=!0,qt(x,y)):x;for(l=o=x=ba(x.minus(rs),x.plus(rs),d),m=qt(x.times(x),d),i=3;;){if(o=qt(o.times(m),d),u=l.plus(ba(o,new v(i),d)),Si(u.d).slice(0,d)===Si(l.d).slice(0,d))return l=l.times(2),a!==0&&(l=l.plus(aN(v,d+2,y).times(a+""))),l=ba(l,new v(h),d),v.precision=y,t==null?(ir=!0,qt(l,y)):l;l=u,i+=2}}function J8(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=df(r/er),e.d=[],n=(r+1)%er,r<0&&(n+=er),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=er;n<i;)e.d.push(+t.slice(n,n+=er));t=t.slice(n),n=er-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ir&&(e.e>Dy||e.e<-Dy))throw Error(OE+r)}else e.s=0,e.e=0,e.d=[0];return e}function qt(e,t,r){var n,i,a,o,l,u,d,m,h=e.d;for(o=1,a=h[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=er,i=t,d=h[m=0];else{if(m=Math.ceil((n+1)/er),a=h.length,m>=a)return e;for(d=a=h[m],o=1;a>=10;a/=10)o++;n%=er,i=n-er+o}if(r!==void 0&&(a=_l(10,o-i-1),l=d/a%10|0,u=t<0||h[m+1]!==void 0||d%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?d/_l(10,o-i):0:h[m-1])%10&1||r==(e.s<0?8:7))),t<1||!h[0])return u?(a=Cr(e),h.length=1,t=t-a-1,h[0]=_l(10,(er-t%er)%er),e.e=df(-t/er)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(n==0?(h.length=m,a=1,m--):(h.length=m+1,a=_l(10,er-n),h[m]=i>0?(d/_l(10,o-i)%_l(10,i)|0)*a:0),u)for(;;)if(m==0){(h[0]+=a)==Ur&&(h[0]=1,++e.e);break}else{if(h[m]+=a,h[m]!=Ur)break;h[m--]=0,a=1}for(n=h.length;h[--n]===0;)h.pop();if(ir&&(e.e>Dy||e.e<-Dy))throw Error(OE+Cr(e));return e}function xH(e,t){var r,n,i,a,o,l,u,d,m,h,p=e.constructor,x=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),ir?qt(t,x):t;if(u=e.d,h=t.d,n=t.e,d=e.e,u=u.slice(),o=d-n,o){for(m=o<0,m?(r=u,o=-o,l=h.length):(r=h,n=d,l=u.length),i=Math.max(Math.ceil(x/er),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=h.length,m=i<l,m&&(l=i),i=0;i<l;i++)if(u[i]!=h[i]){m=u[i]<h[i];break}o=0}for(m&&(r=u,u=h,h=r,t.s=-t.s),l=u.length,i=h.length-l;i>0;--i)u[l++]=0;for(i=h.length;i>o;){if(u[--i]<h[i]){for(a=i;a&&u[--a]===0;)u[a]=Ur-1;--u[a],u[i]+=Ur}u[i]-=h[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,ir?qt(t,x):t):new p(0)}function yc(e,t,r){var n,i=Cr(e),a=Si(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+vo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+vo(-i-1)+a,r&&(n=r-o)>0&&(a+=vo(n))):i>=o?(a+=vo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+vo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=vo(n))),e.s<0?"-"+a:a}function eL(e,t){if(e.length>t)return e.length=t,!0}function yH(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(rc+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return J8(o,a.toString())}else if(typeof a!="string")throw Error(rc+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Twe.test(a))J8(o,a);else throw Error(rc+a)}if(i.prototype=qe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=yH,i.config=i.set=Awe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Awe(e){if(!e||typeof e!="object")throw Error(Os+"Object expected");var t,r,n,i=["precision",1,uf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(df(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(rc+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(rc+r+": "+n);return this}var IE=yH(Nwe);rs=new IE(1);const Vt=IE;function Cwe(e){return Owe(e)||_we(e)||Ewe(e)||Pwe()}function Pwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
704In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ewe(e,t){if(e){if(typeof e=="string")return UT(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 UT(e,t)}}function _we(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Owe(e){if(Array.isArray(e))return UT(e)}function UT(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 Iwe=function(t){return t},vH={},bH=function(t){return t===vH},tL=function(t){return function r(){return arguments.length===0||arguments.length===1&&bH(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Rwe=function e(t,r){return t===1?r:tL(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==vH}).length;return o>=t?r.apply(void 0,i):e(t-o,tL(function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var m=i.map(function(h){return bH(h)?u.shift():h});return r.apply(void 0,Cwe(m).concat(u))}))})},Eb=function(t){return Rwe(t.length,t)},HT=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Mwe=Eb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Dwe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Iwe;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,u){return u(l)},a.apply(void 0,arguments))}},GT=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},wH=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(l,u){return l===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function Lwe(e){var t;return e===0?t=1:t=Math.floor(new Vt(e).abs().log(10).toNumber())+1,t}function $we(e,t,r){for(var n=new Vt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Fwe=Eb(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),Bwe=Eb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Vwe=Eb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const _b={rangeStep:$we,getDigitCount:Lwe,interpolateNumber:Fwe,uninterpolateNumber:Bwe,uninterpolateTruncation:Vwe};function KT(e){return zwe(e)||Wwe(e)||jH(e)||qwe()}function qwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
705In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wwe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function zwe(e){if(Array.isArray(e))return YT(e)}function vm(e,t){return Gwe(e)||Hwe(e,t)||jH(e,t)||Uwe()}function Uwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
706In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jH(e,t){if(e){if(typeof e=="string")return YT(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 YT(e,t)}}function YT(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 Hwe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function Gwe(e){if(Array.isArray(e))return e}function SH(e){var t=vm(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function kH(e,t,r){if(e.lte(0))return new Vt(0);var n=_b.getDigitCount(e.toNumber()),i=new Vt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new Vt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new Vt(Math.ceil(u))}function Kwe(e,t,r){var n=1,i=new Vt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Vt(10).pow(_b.getDigitCount(e)-1),i=new Vt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Vt(Math.floor(e)))}else e===0?i=new Vt(Math.floor((t-1)/2)):r||(i=new Vt(Math.floor(e)));var o=Math.floor((t-1)/2),l=Dwe(Mwe(function(u){return i.add(new Vt(u-o).mul(n)).toNumber()}),HT);return l(0,t)}function NH(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Vt(0),tickMin:new Vt(0),tickMax:new Vt(0)};var a=kH(new Vt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Vt(0):(o=new Vt(e).add(t).div(2),o=o.sub(new Vt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Vt(t).sub(o).div(a).toNumber()),d=l+u+1;return d>r?NH(e,t,r,n,i+1):(d<r&&(u=t>0?u+(r-d):u,l=t>0?l:l+(r-d)),{step:a,tickMin:o.sub(new Vt(l).mul(a)),tickMax:o.add(new Vt(u).mul(a))})}function Ywe(e){var t=vm(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=SH([r,n]),u=vm(l,2),d=u[0],m=u[1];if(d===-1/0||m===1/0){var h=m===1/0?[d].concat(KT(HT(0,i-1).map(function(){return 1/0}))):[].concat(KT(HT(0,i-1).map(function(){return-1/0})),[m]);return r>n?GT(h):h}if(d===m)return Kwe(d,i,a);var p=NH(d,m,o,a),x=p.step,w=p.tickMin,v=p.tickMax,y=_b.rangeStep(w,v.add(new Vt(.1).mul(x)),x);return r>n?GT(y):y}function Xwe(e,t){var r=vm(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=SH([n,i]),l=vm(o,2),u=l[0],d=l[1];if(u===-1/0||d===1/0)return[n,i];if(u===d)return[u];var m=Math.max(t,2),h=kH(new Vt(d).sub(u).div(m-1),a,0),p=[].concat(KT(_b.rangeStep(new Vt(u),new Vt(d).sub(new Vt(.99).mul(h)),h)),[d]);return n>i?GT(p):p}var Qwe=wH(Ywe),Zwe=wH(Xwe),Jwe="Invariant failed";function vc(e,t){throw new Error(Jwe)}var eje=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jd(e){"@babel/helpers - typeof";return jd=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},jd(e)}function Ly(){return Ly=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},Ly.apply(this,arguments)}function tje(e,t){return ije(e)||sje(e,t)||nje(e,t)||rje()}function rje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
707In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nje(e,t){if(e){if(typeof e=="string")return rL(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 rL(e,t)}}function rL(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 sje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function ije(e){if(Array.isArray(e))return e}function aje(e,t){if(e==null)return{};var r=oje(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oje(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 lje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cje(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,CH(n.key),n)}}function uje(e,t,r){return t&&cje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dje(e,t,r){return t=$y(t),fje(e,TH()?Reflect.construct(t,r||[],$y(e).constructor):t.apply(e,r))}function fje(e,t){if(t&&(jd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hje(e)}function hje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TH=function(){return!!e})()}function $y(e){return $y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$y(e)}function mje(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&&XT(e,t)}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XT(e,t)}function AH(e,t,r){return t=CH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CH(e){var t=pje(e,"string");return jd(t)=="symbol"?t:t+""}function pje(e,t){if(jd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ob=(function(e){function t(){return lje(this,t),dje(this,t,arguments)}return mje(t,e),uje(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,l=n.dataKey,u=n.data,d=n.dataPointFormatter,m=n.xAxis,h=n.yAxis,p=aje(n,eje),x=it(p,!1);this.props.direction==="x"&&m.type!=="number"&&vc();var w=u.map(function(v){var y=d(v,l),j=y.x,k=y.y,N=y.value,C=y.errorVal;if(!C)return null;var A=[],E,_;if(Array.isArray(C)){var R=tje(C,2);E=R[0],_=R[1]}else E=_=C;if(a==="vertical"){var O=m.scale,F=k+i,D=F+o,L=F-o,I=O(N-E),$=O(N+_);A.push({x1:$,y1:D,x2:$,y2:L}),A.push({x1:I,y1:F,x2:$,y2:F}),A.push({x1:I,y1:D,x2:I,y2:L})}else if(a==="horizontal"){var z=h.scale,K=j+i,Z=K-o,U=K+o,q=z(N-E),B=z(N+_);A.push({x1:Z,y1:B,x2:U,y2:B}),A.push({x1:K,y1:q,x2:K,y2:B}),A.push({x1:Z,y1:q,x2:U,y2:q})}return W.createElement($t,Ly({className:"recharts-errorBar",key:"bar-".concat(A.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},x),A.map(function(V){return W.createElement("line",Ly({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return W.createElement($t,{className:"recharts-errorBars"},w)}}])})(W.Component);AH(Ob,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});AH(Ob,"displayName","ErrorBar");function bm(e){"@babel/helpers - typeof";return bm=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},bm(e)}function nL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nL(Object(r),!0).forEach(function(n){gje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gje(e,t,r){return t=xje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xje(e){var t=yje(e,"string");return bm(t)=="symbol"?t:t+""}function yje(e,t){if(bm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PH=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Yn(r,ec);if(!o)return null;var l=ec.defaultProps,u=l!==void 0?Nl(Nl({},l),o.props):{},d;return o.props&&o.props.payload?d=o.props&&o.props.payload:a==="children"?d=(n||[]).reduce(function(m,h){var p=h.item,x=h.props,w=x.sectors||x.data||[];return m.concat(w.map(function(v){return{type:o.props.iconType||p.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):d=(n||[]).map(function(m){var h=m.item,p=h.type.defaultProps,x=p!==void 0?Nl(Nl({},p),h.props):{},w=x.dataKey,v=x.name,y=x.legendType,j=x.hide;return{inactive:j,dataKey:w,type:u.iconType||y||"square",color:RE(h),value:v||w,payload:x}}),Nl(Nl(Nl({},u),ec.getWithHeight(o,i)),{},{payload:d,item:o})};function wm(e){"@babel/helpers - typeof";return wm=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},wm(e)}function sL(e){return jje(e)||wje(e)||bje(e)||vje()}function vje(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
708In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bje(e,t){if(e){if(typeof e=="string")return QT(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 QT(e,t)}}function wje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jje(e){if(Array.isArray(e))return QT(e)}function QT(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 iL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iL(Object(r),!0).forEach(function(n){Lu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lu(e,t,r){return t=Sje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sje(e){var t=kje(e,"string");return wm(t)=="symbol"?t:t+""}function kje(e,t){if(wm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pn(e,t,r){return jt(e)||jt(t)?r:Dr(t)?ls(e,t,r):lt(t)?t(e):r}function Vh(e,t,r,n){var i=jwe(e,function(l){return pn(l,t)});if(r==="number"){var a=i.filter(function(l){return Ne(l)||parseFloat(l)});return a.length?[Cb(a),Ab(a)]:[1/0,-1/0]}var o=n?i.filter(function(l){return!jt(l)}):i;return o.map(function(l){return Dr(l)||l instanceof Date?l:""})}var Nje=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,d=0;d<l;d++){var m=d>0?i[d-1].coordinate:i[l-1].coordinate,h=i[d].coordinate,p=d>=l-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Nn(h-m)!==Nn(p-h)){var w=[];if(Nn(p-h)===Nn(u[1]-u[0])){x=p;var v=h+u[1]-u[0];w[0]=Math.min(v,(v+m)/2),w[1]=Math.max(v,(v+m)/2)}else{x=m;var y=p+u[1]-u[0];w[0]=Math.min(h,(y+h)/2),w[1]=Math.max(h,(y+h)/2)}var j=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(t>j[0]&&t<=j[1]||t>=w[0]&&t<=w[1]){o=i[d].index;break}}else{var k=Math.min(m,p),N=Math.max(m,p);if(t>(k+h)/2&&t<=(N+h)/2){o=i[d].index;break}}}else for(var C=0;C<l;C++)if(C===0&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C>0&&C<l-1&&t>(n[C].coordinate+n[C-1].coordinate)/2&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C===l-1&&t>(n[C].coordinate+n[C-1].coordinate)/2){o=n[C].index;break}return o},RE=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?pr(pr({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},Tje=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,d=l.length;u<d;u++)for(var m=a[l[u]].stackGroups,h=Object.keys(m),p=0,x=h.length;p<x;p++){var w=m[h[p]],v=w.items,y=w.cateAxisId,j=v.filter(function(_){return va(_.type).indexOf("Bar")>=0});if(j&&j.length){var k=j[0].type.defaultProps,N=k!==void 0?pr(pr({},k),j[0].props):j[0].props,C=N.barSize,A=N[y];o[A]||(o[A]=[]);var E=jt(C)?r:C;o[A].push({item:j[0],stackList:j.slice(1),barSize:jt(E)?void 0:Tn(E,n,0)})}}return o},Aje=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var d=Tn(r,i,0,!0),m,h=[];if(o[0].barSize===+o[0].barSize){var p=!1,x=i/u,w=o.reduce(function(C,A){return C+A.barSize||0},0);w+=(u-1)*d,w>=i&&(w-=(u-1)*d,d=0),w>=i&&x>0&&(p=!0,x*=.9,w=u*x);var v=(i-w)/2>>0,y={offset:v-d,size:0};m=o.reduce(function(C,A){var E={item:A.item,position:{offset:y.offset+y.size+d,size:p?x:A.barSize}},_=[].concat(sL(C),[E]);return y=_[_.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(R){_.push({item:R,position:y})}),_},h)}else{var j=Tn(n,i,0,!0);i-2*j-(u-1)*d<=0&&(d=0);var k=(i-2*j-(u-1)*d)/u;k>1&&(k>>=0);var N=l===+l?Math.min(k,l):k;m=o.reduce(function(C,A,E){var _=[].concat(sL(C),[{item:A.item,position:{offset:j+(k+d)*E+(k-N)/2,size:N}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(R){_.push({item:R,position:_[_.length-1].position})}),_},h)}return m},Cje=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),d=PH({children:a,legendWidth:u});if(d){var m=i||{},h=m.width,p=m.height,x=d.align,w=d.verticalAlign,v=d.layout;if((v==="vertical"||v==="horizontal"&&w==="middle")&&x!=="center"&&Ne(t[x]))return pr(pr({},t),{},Lu({},x,t[x]+(h||0)));if((v==="horizontal"||v==="vertical"&&x==="center")&&w!=="middle"&&Ne(t[w]))return pr(pr({},t),{},Lu({},w,t[w]+(p||0)))}return t},Pje=function(t,r,n){return jt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},EH=function(t,r,n,i,a){var o=r.props.children,l=_s(o,Ob).filter(function(d){return Pje(i,a,d.props.direction)});if(l&&l.length){var u=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var h=pn(m,n);if(jt(h))return d;var p=Array.isArray(h)?[Cb(h),Ab(h)]:[h,h],x=u.reduce(function(w,v){var y=pn(m,v,0),j=p[0]-Math.abs(Array.isArray(y)?y[0]:y),k=p[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(j,w[0]),Math.max(k,w[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},Eje=function(t,r,n,i,a){var o=r.map(function(l){return EH(t,l,n,a,i)}).filter(function(l){return!jt(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},_H=function(t,r,n,i,a){var o=r.map(function(u){var d=u.props.dataKey;return n==="number"&&d&&EH(t,u,d,i)||Vh(t,d,n,a)});if(n==="number")return o.reduce(function(u,d){return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,d){for(var m=0,h=d.length;m<h;m++)l[d[m]]||(l[d[m]]=!0,u.push(d[m]));return u},[])},OH=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},IH=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,l=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||l.push(r),o||l.push(n),l},ha=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(d=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Nn(l[0]-l[1])*2*d:d,r&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(h){var p=a?a.indexOf(h):h;return{coordinate:i(p)+d,value:h,offset:d}});return m.filter(function(h){return!hp(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,p){return{coordinate:i(h)+d,value:h,index:p,offset:d}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(h){return{coordinate:i(h)+d,value:h,offset:d}}):i.domain().map(function(h,p){return{coordinate:i(h)+d,value:a?a[h]:h,index:p,offset:d}})},oN=new WeakMap,Jg=function(t,r){if(typeof r!="function")return t;oN.has(t)||oN.set(t,new WeakMap);var n=oN.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},RH=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:hm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Oy(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bh(),realScaleType:"point"}:a==="category"?{scale:hm(),realScaleType:"band"}:{scale:Oy(),realScaleType:"linear"};if(pc(i)){var u="scale".concat(hb(i));return{scale:(z8[u]||Bh)(),realScaleType:z8[u]?u:"point"}}return lt(i)?{scale:i}:{scale:Bh(),realScaleType:"point"}},aL=1e-4,MH=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-aL,o=Math.max(i[0],i[1])+aL,l=t(r[0]),u=t(r[n-1]);(l<a||l>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},_je=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Oje=function(t,r){if(!r||r.length!==2||!Ne(r[0])||!Ne(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!Ne(t[0])||t[0]<n)&&(a[0]=n),(!Ne(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Ije=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,l=0;l<r;++l){var u=hp(t[l][n][1])?t[l][n][0]:t[l][n][1];u>=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},Rje=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var l=hp(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Mje={sign:Ije,expand:jge,none:md,silhouette:Sge,wiggle:kge,positive:Rje},Dje=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=Mje[n],o=wge().keys(i).value(function(l,u){return+pn(l,u,0)}).order(AT).offset(a);return o(t)},Lje=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},d=l.reduce(function(h,p){var x,w=(x=p.type)!==null&&x!==void 0&&x.defaultProps?pr(pr({},p.type.defaultProps),p.props):p.props,v=w.stackId,y=w.hide;if(y)return h;var j=w[n],k=h[j]||{hasStack:!1,stackGroups:{}};if(Dr(v)){var N=k.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};N.items.push(p),k.hasStack=!0,k.stackGroups[v]=N}else k.stackGroups[mp("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return pr(pr({},h),{},Lu({},j,k))},u),m={};return Object.keys(d).reduce(function(h,p){var x=d[p];if(x.hasStack){var w={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(v,y){var j=x.stackGroups[y];return pr(pr({},v),{},Lu({},y,{numericAxisId:n,cateAxisId:i,items:j.items,stackedData:Dje(t,j.items,a)}))},w)}return pr(pr({},h),{},Lu({},p,x))},m)},DH=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=Qwe(d,a,l);return t.domain([Cb(m),Ab(m)]),{niceTicks:m}}if(a&&i==="number"){var h=t.domain(),p=Zwe(h,a,l);return{niceTicks:p}}return null},oL=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=pn(o,r.dataKey,r.domain[l]);return jt(u)?null:r.scale(u)-a/2+i},$je=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},Fje=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?pr(pr({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Dr(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},Bje=function(t){return t.reduce(function(r,n){return[Cb(n.concat([r[0]]).filter(Ne)),Ab(n.concat([r[1]]).filter(Ne))]},[1/0,-1/0])},LH=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(d,m){var h=Bje(m.slice(r,n+1));return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},lL=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cL=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZT=function(t,r,n){if(lt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Ne(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(lL.test(t[0])){var a=+lL.exec(t[0])[1];i[0]=r[0]-a}else lt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Ne(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cL.test(t[1])){var o=+cL.exec(t[1])[1];i[1]=r[1]+o}else lt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Fy=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=lE(r,function(h){return h.coordinate}),o=1/0,l=1,u=a.length;l<u;l++){var d=a[l],m=a[l-1];o=Math.min((d.coordinate||0)-(m.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uL=function(t,r,n){return!t||!t.length||Pb(t,ls(n,"type.defaultProps.domain"))?r:t},$H=function(t,r){var n=t.type.defaultProps?pr(pr({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,l=n.formatter,u=n.tooltipType,d=n.chartType,m=n.hide;return pr(pr({},it(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:RE(t),value:pn(r,i),type:u,payload:r,chartType:d,hide:m})};function jm(e){"@babel/helpers - typeof";return jm=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},jm(e)}function dL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dL(Object(r),!0).forEach(function(n){FH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FH(e,t,r){return t=Vje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vje(e){var t=qje(e,"string");return jm(t)=="symbol"?t:t+""}function qje(e,t){if(jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wje(e,t){return Gje(e)||Hje(e,t)||Uje(e,t)||zje()}function zje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
709In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uje(e,t){if(e){if(typeof e=="string")return fL(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 fL(e,t)}}function fL(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 Hje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Gje(e){if(Array.isArray(e))return e}var By=Math.PI/180,Kje=function(t){return t*180/Math.PI},Yt=function(t,r,n,i){return{x:t+Math.cos(-By*i)*n,y:r+Math.sin(-By*i)*n}},BH=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},Yje=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.startAngle,d=t.endAngle,m=Tn(t.cx,o,o/2),h=Tn(t.cy,l,l/2),p=BH(o,l,n),x=Tn(t.innerRadius,p,0),w=Tn(t.outerRadius,p,p*.8),v=Object.keys(r);return v.reduce(function(y,j){var k=r[j],N=k.domain,C=k.reversed,A;if(jt(k.range))i==="angleAxis"?A=[u,d]:i==="radiusAxis"&&(A=[x,w]),C&&(A=[A[1],A[0]]);else{A=k.range;var E=A,_=Wje(E,2);u=_[0],d=_[1]}var R=RH(k,a),O=R.realScaleType,F=R.scale;F.domain(N).range(A),MH(F);var D=DH(F,sa(sa({},k),{},{realScaleType:O})),L=sa(sa(sa({},k),D),{},{range:A,radius:w,realScaleType:O,scale:F,cx:m,cy:h,innerRadius:x,outerRadius:w,startAngle:u,endAngle:d});return sa(sa({},y),{},FH({},j,L))},{})},Xje=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Qje=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=Xje({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,d=Math.acos(u);return i>o&&(d=2*Math.PI-d),{radius:l,angle:Kje(d),angleInRadian:d}},Zje=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},Jje=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},hL=function(t,r){var n=t.x,i=t.y,a=Qje({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,d=r.outerRadius;if(o<u||o>d)return!1;if(o===0)return!0;var m=Zje(r),h=m.startAngle,p=m.endAngle,x=l,w;if(h<=p){for(;x>p;)x-=360;for(;x<h;)x+=360;w=x>=h&&x<=p}else{for(;x>h;)x-=360;for(;x<p;)x+=360;w=x>=p&&x<=h}return w?sa(sa({},r),{},{radius:o,angle:Jje(x,r)}):null},VH=function(t){return!S.isValidElement(t)&&!lt(t)&&typeof t!="boolean"?t.className:""};function Sm(e){"@babel/helpers - typeof";return Sm=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},Sm(e)}var e1e=["offset"];function t1e(e){return i1e(e)||s1e(e)||n1e(e)||r1e()}function r1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
710In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n1e(e,t){if(e){if(typeof e=="string")return JT(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 JT(e,t)}}function s1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i1e(e){if(Array.isArray(e))return JT(e)}function JT(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 a1e(e,t){if(e==null)return{};var r=o1e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o1e(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 mL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mL(Object(r),!0).forEach(function(n){l1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l1e(e,t,r){return t=c1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c1e(e){var t=u1e(e,"string");return Sm(t)=="symbol"?t:t+""}function u1e(e,t){if(Sm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function km(){return km=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},km.apply(this,arguments)}var d1e=function(t){var r=t.value,n=t.formatter,i=jt(t.children)?r:t.children;return lt(n)?n(i):i},f1e=function(t,r){var n=Nn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},h1e=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,u=a,d=u.cx,m=u.cy,h=u.innerRadius,p=u.outerRadius,x=u.startAngle,w=u.endAngle,v=u.clockWise,y=(h+p)/2,j=f1e(x,w),k=j>=0?1:-1,N,C;i==="insideStart"?(N=x+k*o,C=v):i==="insideEnd"?(N=w-k*o,C=!v):i==="end"&&(N=w+k*o,C=v),C=j<=0?C:!C;var A=Yt(d,m,y,N),E=Yt(d,m,y,N+(C?1:-1)*359),_="M".concat(A.x,",").concat(A.y,`
711    A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
712    `).concat(E.x,",").concat(E.y),R=jt(t.id)?mp("recharts-radial-line-"):t.id;return W.createElement("text",km({},n,{dominantBaseline:"central",className:yt("recharts-radial-bar-label",l)}),W.createElement("defs",null,W.createElement("path",{id:R,d:_})),W.createElement("textPath",{xlinkHref:"#".concat(R)},r))},m1e=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,d=a.outerRadius,m=a.startAngle,h=a.endAngle,p=(m+h)/2;if(i==="outside"){var x=Yt(o,l,d+n,p),w=x.x,v=x.y;return{x:w,y:v,textAnchor:w>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var y=(u+d)/2,j=Yt(o,l,y,p),k=j.x,N=j.y;return{x:k,y:N,textAnchor:"middle",verticalAnchor:"middle"}},p1e=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,d=o.width,m=o.height,h=m>=0?1:-1,p=h*i,x=h>0?"end":"start",w=h>0?"start":"end",v=d>=0?1:-1,y=v*i,j=v>0?"end":"start",k=v>0?"start":"end";if(a==="top"){var N={x:l+d/2,y:u-h*i,textAnchor:"middle",verticalAnchor:x};return Ir(Ir({},N),n?{height:Math.max(u-n.y,0),width:d}:{})}if(a==="bottom"){var C={x:l+d/2,y:u+m+p,textAnchor:"middle",verticalAnchor:w};return Ir(Ir({},C),n?{height:Math.max(n.y+n.height-(u+m),0),width:d}:{})}if(a==="left"){var A={x:l-y,y:u+m/2,textAnchor:j,verticalAnchor:"middle"};return Ir(Ir({},A),n?{width:Math.max(A.x-n.x,0),height:m}:{})}if(a==="right"){var E={x:l+d+y,y:u+m/2,textAnchor:k,verticalAnchor:"middle"};return Ir(Ir({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:m}:{})}var _=n?{width:d,height:m}:{};return a==="insideLeft"?Ir({x:l+y,y:u+m/2,textAnchor:k,verticalAnchor:"middle"},_):a==="insideRight"?Ir({x:l+d-y,y:u+m/2,textAnchor:j,verticalAnchor:"middle"},_):a==="insideTop"?Ir({x:l+d/2,y:u+p,textAnchor:"middle",verticalAnchor:w},_):a==="insideBottom"?Ir({x:l+d/2,y:u+m-p,textAnchor:"middle",verticalAnchor:x},_):a==="insideTopLeft"?Ir({x:l+y,y:u+p,textAnchor:k,verticalAnchor:w},_):a==="insideTopRight"?Ir({x:l+d-y,y:u+p,textAnchor:j,verticalAnchor:w},_):a==="insideBottomLeft"?Ir({x:l+y,y:u+m-p,textAnchor:k,verticalAnchor:x},_):a==="insideBottomRight"?Ir({x:l+d-y,y:u+m-p,textAnchor:j,verticalAnchor:x},_):af(a)&&(Ne(a.x)||$l(a.x))&&(Ne(a.y)||$l(a.y))?Ir({x:l+Tn(a.x,d),y:u+Tn(a.y,m),textAnchor:"end",verticalAnchor:"end"},_):Ir({x:l+d/2,y:u+m/2,textAnchor:"middle",verticalAnchor:"middle"},_)},g1e=function(t){return"cx"in t&&Ne(t.cx)};function Hr(e){var t=e.offset,r=t===void 0?5:t,n=a1e(e,e1e),i=Ir({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,d=i.content,m=i.className,h=m===void 0?"":m,p=i.textBreakAll;if(!a||jt(l)&&jt(u)&&!S.isValidElement(d)&&!lt(d))return null;if(S.isValidElement(d))return S.cloneElement(d,i);var x;if(lt(d)){if(x=S.createElement(d,i),S.isValidElement(x))return x}else x=d1e(i);var w=g1e(a),v=it(i,!0);if(w&&(o==="insideStart"||o==="insideEnd"||o==="end"))return h1e(i,x,v);var y=w?m1e(i):p1e(i);return W.createElement(xc,km({className:yt("recharts-label",h)},v,y,{breakAll:p}),x)}Hr.displayName="Label";var qH=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,d=t.innerRadius,m=t.outerRadius,h=t.x,p=t.y,x=t.top,w=t.left,v=t.width,y=t.height,j=t.clockWise,k=t.labelViewBox;if(k)return k;if(Ne(v)&&Ne(y)){if(Ne(h)&&Ne(p))return{x:h,y:p,width:v,height:y};if(Ne(x)&&Ne(w))return{x,y:w,width:v,height:y}}return Ne(h)&&Ne(p)?{x:h,y:p,width:0,height:0}:Ne(r)&&Ne(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:d||0,outerRadius:m||u||l||0,clockWise:j}:t.viewBox?t.viewBox:{}},x1e=function(t,r){return t?t===!0?W.createElement(Hr,{key:"label-implicit",viewBox:r}):Dr(t)?W.createElement(Hr,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===Hr?S.cloneElement(t,{key:"label-implicit",viewBox:r}):W.createElement(Hr,{key:"label-implicit",content:t,viewBox:r}):lt(t)?W.createElement(Hr,{key:"label-implicit",content:t,viewBox:r}):af(t)?W.createElement(Hr,km({viewBox:r},t,{key:"label-implicit"})):null:null},y1e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=qH(t),o=_s(i,Hr).map(function(u,d){return S.cloneElement(u,{viewBox:r||a,key:"label-".concat(d)})});if(!n)return o;var l=x1e(t.label,r||a);return[l].concat(t1e(o))};Hr.parseViewBox=qH;Hr.renderCallByParent=y1e;var lN,pL;function v1e(){if(pL)return lN;pL=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return lN=e,lN}var b1e=v1e();const w1e=Tt(b1e);function Nm(e){"@babel/helpers - typeof";return Nm=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},Nm(e)}var j1e=["valueAccessor"],S1e=["data","dataKey","clockWise","id","textBreakAll"];function k1e(e){return C1e(e)||A1e(e)||T1e(e)||N1e()}function N1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
713In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T1e(e,t){if(e){if(typeof e=="string")return eA(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 eA(e,t)}}function A1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C1e(e){if(Array.isArray(e))return eA(e)}function eA(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 Vy(){return Vy=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},Vy.apply(this,arguments)}function gL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(r),!0).forEach(function(n){P1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P1e(e,t,r){return t=E1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1e(e){var t=_1e(e,"string");return Nm(t)=="symbol"?t:t+""}function _1e(e,t){if(Nm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yL(e,t){if(e==null)return{};var r=O1e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O1e(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 I1e=function(t){return Array.isArray(t.value)?w1e(t.value):t.value};function Lo(e){var t=e.valueAccessor,r=t===void 0?I1e:t,n=yL(e,j1e),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,d=yL(n,S1e);return!i||!i.length?null:W.createElement($t,{className:"recharts-label-list"},i.map(function(m,h){var p=jt(a)?r(m,h):pn(m&&m.payload,a),x=jt(l)?{}:{id:"".concat(l,"-").concat(h)};return W.createElement(Hr,Vy({},it(m,!0),d,x,{parentViewBox:m.parentViewBox,value:p,textBreakAll:u,viewBox:Hr.parseViewBox(jt(o)?m:xL(xL({},m),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}Lo.displayName="LabelList";function R1e(e,t){return e?e===!0?W.createElement(Lo,{key:"labelList-implicit",data:t}):W.isValidElement(e)||lt(e)?W.createElement(Lo,{key:"labelList-implicit",data:t,content:e}):af(e)?W.createElement(Lo,Vy({data:t},e,{key:"labelList-implicit"})):null:null}function M1e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=_s(n,Lo).map(function(o,l){return S.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=R1e(e.label,t);return[a].concat(k1e(i))}Lo.renderCallByParent=M1e;function Tm(e){"@babel/helpers - typeof";return Tm=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},Tm(e)}function tA(){return tA=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},tA.apply(this,arguments)}function vL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(r),!0).forEach(function(n){D1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D1e(e,t,r){return t=L1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1e(e){var t=$1e(e,"string");return Tm(t)=="symbol"?t:t+""}function $1e(e,t){if(Tm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F1e=function(t,r){var n=Nn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ex=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,u=t.cornerRadius,d=t.cornerIsExternal,m=u*(l?1:-1)+i,h=Math.asin(u/m)/By,p=d?a:a+o*h,x=Yt(r,n,m,p),w=Yt(r,n,i,p),v=d?a-o*h:a,y=Yt(r,n,m*Math.cos(h*By),v);return{center:x,circleTangency:w,lineTangency:y,theta:h}},WH=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,u=F1e(o,l),d=o+u,m=Yt(r,n,a,o),h=Yt(r,n,a,d),p="M ".concat(m.x,",").concat(m.y,`
714    A `).concat(a,",").concat(a,`,0,
715    `).concat(+(Math.abs(u)>180),",").concat(+(o>d),`,
716    `).concat(h.x,",").concat(h.y,`
717  `);if(i>0){var x=Yt(r,n,i,o),w=Yt(r,n,i,d);p+="L ".concat(w.x,",").concat(w.y,`
718            A `).concat(i,",").concat(i,`,0,
719            `).concat(+(Math.abs(u)>180),",").concat(+(o<=d),`,
720            `).concat(x.x,",").concat(x.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},B1e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,h=Nn(m-d),p=ex({cx:r,cy:n,radius:a,angle:d,sign:h,cornerRadius:o,cornerIsExternal:u}),x=p.circleTangency,w=p.lineTangency,v=p.theta,y=ex({cx:r,cy:n,radius:a,angle:m,sign:-h,cornerRadius:o,cornerIsExternal:u}),j=y.circleTangency,k=y.lineTangency,N=y.theta,C=u?Math.abs(d-m):Math.abs(d-m)-v-N;if(C<0)return l?"M ".concat(w.x,",").concat(w.y,`
721        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
722        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
723      `):WH({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:d,endAngle:m});var A="M ".concat(w.x,",").concat(w.y,`
724    A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
725    A`).concat(a,",").concat(a,",0,").concat(+(C>180),",").concat(+(h<0),",").concat(j.x,",").concat(j.y,`
726    A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(k.x,",").concat(k.y,`
727  `);if(i>0){var E=ex({cx:r,cy:n,radius:i,angle:d,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),_=E.circleTangency,R=E.lineTangency,O=E.theta,F=ex({cx:r,cy:n,radius:i,angle:m,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),D=F.circleTangency,L=F.lineTangency,I=F.theta,$=u?Math.abs(d-m):Math.abs(d-m)-O-I;if($<0&&o===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(L.x,",").concat(L.y,`
728      A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(D.x,",").concat(D.y,`
729      A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(h>0),",").concat(_.x,",").concat(_.y,`
730      A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(R.x,",").concat(R.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},V1e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},zH=function(t){var r=bL(bL({},V1e),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,d=r.cornerIsExternal,m=r.startAngle,h=r.endAngle,p=r.className;if(o<a||m===h)return null;var x=yt("recharts-sector",p),w=o-a,v=Tn(l,w,0,!0),y;return v>0&&Math.abs(m-h)<360?y=B1e({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,w/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:m,endAngle:h}):y=WH({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:m,endAngle:h}),W.createElement("path",tA({},it(r,!0),{className:x,d:y,role:"img"}))};function Am(e){"@babel/helpers - typeof";return Am=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},Am(e)}function rA(){return rA=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},rA.apply(this,arguments)}function wL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(r),!0).forEach(function(n){q1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q1e(e,t,r){return t=W1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1e(e){var t=z1e(e,"string");return Am(t)=="symbol"?t:t+""}function z1e(e,t){if(Am(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Am(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SL={curveBasisClosed:uge,curveBasisOpen:dge,curveBasis:cge,curveBumpX:Ype,curveBumpY:Xpe,curveLinearClosed:fge,curveLinear:pb,curveMonotoneX:hge,curveMonotoneY:mge,curveNatural:pge,curveStep:gge,curveStepAfter:yge,curveStepBefore:xge},tx=function(t){return t.x===+t.x&&t.y===+t.y},fh=function(t){return t.x},hh=function(t){return t.y},U1e=function(t,r){if(lt(t))return t;var n="curve".concat(hb(t));return(n==="curveMonotone"||n==="curveBump")&&r?SL["".concat(n).concat(r==="vertical"?"Y":"X")]:SL[n]||pb},H1e=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,u=t.connectNulls,d=u===void 0?!1:u,m=U1e(n,l),h=d?a.filter(function(v){return tx(v)}):a,p;if(Array.isArray(o)){var x=d?o.filter(function(v){return tx(v)}):o,w=h.map(function(v,y){return jL(jL({},v),{},{base:x[y]})});return l==="vertical"?p=Hg().y(hh).x1(fh).x0(function(v){return v.base.x}):p=Hg().x(fh).y1(hh).y0(function(v){return v.base.y}),p.defined(tx).curve(m),p(w)}return l==="vertical"&&Ne(o)?p=Hg().y(hh).x1(fh).x0(o):Ne(o)?p=Hg().x(fh).y1(hh).y0(o):p=Wz().x(fh).y(hh),p.defined(tx).curve(m),p(h)},nA=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?H1e(t):i;return S.createElement("path",rA({},it(t,!1),my(t),{className:yt("recharts-curve",r),d:o,ref:a}))};const{getOwnPropertyNames:G1e,getOwnPropertySymbols:K1e}=Object,{hasOwnProperty:Y1e}=Object.prototype;function cN(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function rx(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),l=a.get(n);if(o&&l)return o===n&&l===r;a.set(r,n),a.set(n,r);const u=e(r,n,i);return a.delete(r),a.delete(n),u}}function X1e(e){return e!=null?e[Symbol.toStringTag]:void 0}function kL(e){return G1e(e).concat(K1e(e))}const Q1e=Object.hasOwn||((e,t)=>Y1e.call(e,t));function Ic(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Z1e="__v",J1e="__o",eSe="_owner",{getOwnPropertyDescriptor:NL,keys:TL}=Object;function tSe(e,t){return e.byteLength===t.byteLength&&qy(new Uint8Array(e),new Uint8Array(t))}function rSe(e,t,r){let 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 nSe(e,t){return e.byteLength===t.byteLength&&qy(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function sSe(e,t){return Ic(e.getTime(),t.getTime())}function iSe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function aSe(e,t){return e===t}function AL(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,l,u=0;for(;(o=a.next())&&!o.done;){const d=t.entries();let m=!1,h=0;for(;(l=d.next())&&!l.done;){if(i[h]){h++;continue}const p=o.value,x=l.value;if(r.equals(p[0],x[0],u,h,e,t,r)&&r.equals(p[1],x[1],p[0],x[0],e,t,r)){m=i[h]=!0;break}h++}if(!m)return!1;u++}return!0}const oSe=Ic;function lSe(e,t,r){const n=TL(e);let i=n.length;if(TL(t).length!==i)return!1;for(;i-- >0;)if(!UH(e,t,r,n[i]))return!1;return!0}function mh(e,t,r){const n=kL(e);let i=n.length;if(kL(t).length!==i)return!1;let a,o,l;for(;i-- >0;)if(a=n[i],!UH(e,t,r,a)||(o=NL(e,a),l=NL(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function cSe(e,t){return Ic(e.valueOf(),t.valueOf())}function uSe(e,t){return e.source===t.source&&e.flags===t.flags}function CL(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const u=t.values();let d=!1,m=0;for(;(l=u.next())&&!l.done;){if(!i[m]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){d=i[m]=!0;break}m++}if(!d)return!1}return!0}function qy(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function dSe(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 UH(e,t,r,n){return(n===eSe||n===J1e||n===Z1e)&&(e.$$typeof||t.$$typeof)?!0:Q1e(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const fSe="[object ArrayBuffer]",hSe="[object Arguments]",mSe="[object Boolean]",pSe="[object DataView]",gSe="[object Date]",xSe="[object Error]",ySe="[object Map]",vSe="[object Number]",bSe="[object Object]",wSe="[object RegExp]",jSe="[object Set]",SSe="[object String]",kSe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},NSe="[object URL]",TSe=Object.prototype.toString;function ASe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:d,areRegExpsEqual:m,areSetsEqual:h,areTypedArraysEqual:p,areUrlsEqual:x,unknownTagComparators:w}){return function(y,j,k){if(y===j)return!0;if(y==null||j==null)return!1;const N=typeof y;if(N!==typeof j)return!1;if(N!=="object")return N==="number"?l(y,j,k):N==="function"?a(y,j,k):!1;const C=y.constructor;if(C!==j.constructor)return!1;if(C===Object)return u(y,j,k);if(Array.isArray(y))return t(y,j,k);if(C===Date)return n(y,j,k);if(C===RegExp)return m(y,j,k);if(C===Map)return o(y,j,k);if(C===Set)return h(y,j,k);const A=TSe.call(y);if(A===gSe)return n(y,j,k);if(A===wSe)return m(y,j,k);if(A===ySe)return o(y,j,k);if(A===jSe)return h(y,j,k);if(A===bSe)return typeof y.then!="function"&&typeof j.then!="function"&&u(y,j,k);if(A===NSe)return x(y,j,k);if(A===xSe)return i(y,j,k);if(A===hSe)return u(y,j,k);if(kSe[A])return p(y,j,k);if(A===fSe)return e(y,j,k);if(A===pSe)return r(y,j,k);if(A===mSe||A===vSe||A===SSe)return d(y,j,k);if(w){let E=w[A];if(!E){const _=X1e(y);_&&(E=w[_])}if(E)return E(y,j,k)}return!1}}function CSe({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:tSe,areArraysEqual:r?mh:rSe,areDataViewsEqual:nSe,areDatesEqual:sSe,areErrorsEqual:iSe,areFunctionsEqual:aSe,areMapsEqual:r?cN(AL,mh):AL,areNumbersEqual:oSe,areObjectsEqual:r?mh:lSe,arePrimitiveWrappersEqual:cSe,areRegExpsEqual:uSe,areSetsEqual:r?cN(CL,mh):CL,areTypedArraysEqual:r?cN(qy,mh):qy,areUrlsEqual:dSe,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=rx(n.areArraysEqual),a=rx(n.areMapsEqual),o=rx(n.areObjectsEqual),l=rx(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return n}function PSe(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function ESe({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(l,u){const{cache:d=e?new WeakMap:void 0,meta:m}=r();return t(l,u,{cache:d,equals:n,meta:m,strict:i})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(l,u){return t(l,u,a)}}const _Se=al();al({strict:!0});al({circular:!0});al({circular:!0,strict:!0});al({createInternalComparator:()=>Ic});al({strict:!0,createInternalComparator:()=>Ic});al({circular:!0,createInternalComparator:()=>Ic});al({circular:!0,createInternalComparator:()=>Ic,strict:!0});function al(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=CSe(e),o=ASe(a),l=r?r(o):PSe(o);return ESe({circular:t,comparator:o,createState:n,equals:l,strict:i})}function OSe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function PL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):OSe(i)};requestAnimationFrame(n)}function sA(e){"@babel/helpers - typeof";return sA=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},sA(e)}function ISe(e){return LSe(e)||DSe(e)||MSe(e)||RSe()}function RSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
731In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MSe(e,t){if(e){if(typeof e=="string")return EL(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 EL(e,t)}}function EL(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 DSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LSe(e){if(Array.isArray(e))return e}function $Se(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,l=ISe(o),u=l[0],d=l.slice(1);if(typeof u=="number"){PL(i.bind(null,d),u);return}i(u),PL(i.bind(null,d));return}sA(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Cm(e){"@babel/helpers - typeof";return Cm=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},Cm(e)}function _L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_L(Object(r),!0).forEach(function(n){HH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_L(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HH(e,t,r){return t=FSe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FSe(e){var t=BSe(e,"string");return Cm(t)==="symbol"?t:String(t)}function BSe(e,t){if(Cm(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cm(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VSe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},qSe=function(t){return t},WSe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},qh=function(t,r){return Object.keys(r).reduce(function(n,i){return OL(OL({},n),{},HH({},i,t(i,r[i])))},{})},IL=function(t,r,n){return t.map(function(i){return"".concat(WSe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function zSe(e,t){return GSe(e)||HSe(e,t)||GH(e,t)||USe()}function USe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
732In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HSe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function GSe(e){if(Array.isArray(e))return e}function KSe(e){return QSe(e)||XSe(e)||GH(e)||YSe()}function YSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
733In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GH(e,t){if(e){if(typeof e=="string")return iA(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 iA(e,t)}}function XSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QSe(e){if(Array.isArray(e))return iA(e)}function iA(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 Wy=1e-4,KH=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},YH=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},RL=function(t,r){return function(n){var i=KH(t,r);return YH(i,n)}},ZSe=function(t,r){return function(n){var i=KH(t,r),a=[].concat(KSe(i.map(function(o,l){return o*l}).slice(1)),[0]);return YH(a,n)}},ML=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var d=u[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),m=zSe(d,4);i=m[0],a=m[1],o=m[2],l=m[3]}}}var h=RL(i,o),p=RL(a,l),x=ZSe(i,o),w=function(j){return j>1?1:j<0?0:j},v=function(j){for(var k=j>1?1:j,N=k,C=0;C<8;++C){var A=h(N)-k,E=x(N);if(Math.abs(A-k)<Wy||E<Wy)return p(N);N=w(N-A/E)}return p(N)};return v.isStepper=!1,v},JSe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(m,h,p){var x=-(m-h)*n,w=p*a,v=p+(x-w)*l/1e3,y=p*l/1e3+m;return Math.abs(y-h)<Wy&&Math.abs(v)<Wy?[h,0]:[y,v]};return u.isStepper=!0,u.dt=l,u},eke=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ML(i);case"spring":return JSe();default:if(i.split("(")[0]==="cubic-bezier")return ML(i)}return typeof i=="function"?i:null};function Pm(e){"@babel/helpers - typeof";return Pm=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},Pm(e)}function DL(e){return nke(e)||rke(e)||XH(e)||tke()}function tke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
734In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nke(e){if(Array.isArray(e))return oA(e)}function LL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LL(Object(r),!0).forEach(function(n){aA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aA(e,t,r){return t=ske(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ske(e){var t=ike(e,"string");return Pm(t)==="symbol"?t:String(t)}function ike(e,t){if(Pm(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pm(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ake(e,t){return cke(e)||lke(e,t)||XH(e,t)||oke()}function oke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
735In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XH(e,t){if(e){if(typeof e=="string")return oA(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 oA(e,t)}}function oA(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 lke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function cke(e){if(Array.isArray(e))return e}var zy=function(t,r,n){return t+(r-t)*n},lA=function(t){var r=t.from,n=t.to;return r!==n},uke=function e(t,r,n){var i=qh(function(a,o){if(lA(o)){var l=t(o.from,o.to,o.velocity),u=ake(l,2),d=u[0],m=u[1];return Qr(Qr({},o),{},{from:d,velocity:m})}return o},r);return n<1?qh(function(a,o){return lA(o)?Qr(Qr({},o),{},{velocity:zy(o.velocity,i[a].velocity,n),from:zy(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const dke=(function(e,t,r,n,i){var a=VSe(e,t),o=a.reduce(function(y,j){return Qr(Qr({},y),{},aA({},j,[e[j],t[j]]))},{}),l=a.reduce(function(y,j){return Qr(Qr({},y),{},aA({},j,{from:e[j],velocity:0,to:t[j]}))},{}),u=-1,d,m,h=function(){return null},p=function(){return qh(function(j,k){return k.from},l)},x=function(){return!Object.values(l).filter(lA).length},w=function(j){d||(d=j);var k=j-d,N=k/r.dt;l=uke(r,l,N),i(Qr(Qr(Qr({},e),t),p())),d=j,x()||(u=requestAnimationFrame(h))},v=function(j){m||(m=j);var k=(j-m)/n,N=qh(function(A,E){return zy.apply(void 0,DL(E).concat([r(k)]))},o);if(i(Qr(Qr(Qr({},e),t),N)),k<1)u=requestAnimationFrame(h);else{var C=qh(function(A,E){return zy.apply(void 0,DL(E).concat([r(1)]))},o);i(Qr(Qr(Qr({},e),t),C))}};return h=r.isStepper?w:v,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(u)}}});function Sd(e){"@babel/helpers - typeof";return Sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sd(e)}var fke=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hke(e,t){if(e==null)return{};var r=mke(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mke(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function uN(e){return yke(e)||xke(e)||gke(e)||pke()}function pke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
736In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gke(e,t){if(e){if(typeof e=="string")return cA(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 cA(e,t)}}function xke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yke(e){if(Array.isArray(e))return cA(e)}function cA(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 $L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$L(Object(r),!0).forEach(function(n){Eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$L(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eh(e,t,r){return t=QH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bke(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,QH(n.key),n)}}function wke(e,t,r){return t&&bke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QH(e){var t=jke(e,"string");return Sd(t)==="symbol"?t:String(t)}function jke(e,t){if(Sd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ske(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&&uA(e,t)}function uA(e,t){return uA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uA(e,t)}function kke(e){var t=Nke();return function(){var n=Uy(e),i;if(t){var a=Uy(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return dA(this,i)}}function dA(e,t){if(t&&(Sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fA(e)}function fA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nke(){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 Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uy(e)}var Ia=(function(e){Ske(r,e);var t=kke(r);function r(n,i){var a;vke(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,d=o.from,m=o.to,h=o.steps,p=o.children,x=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(fA(a)),a.changeStyle=a.changeStyle.bind(fA(a)),!l||x<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:m}),dA(a);if(h&&h.length)a.state={style:h[0].style};else if(d){if(typeof p=="function")return a.state={style:d},dA(a);a.state={style:u?Eh({},u,d):d}}else a.state={style:{}};return a}return wke(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,u=a.attributeName,d=a.shouldReAnimate,m=a.to,h=a.from,p=this.state.style;if(l){if(!o){var x={style:u?Eh({},u,m):m};this.state&&p&&(u&&p[u]!==m||!u&&p!==m)&&this.setState(x);return}if(!(_Se(i.to,m)&&i.canBegin&&i.isActive)){var w=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=w||d?h:i.to;if(this.state&&p){var y={style:u?Eh({},u,v):v};(u&&p[u]!==v||!u&&p!==v)&&this.setState(y)}this.runAnimation(Us(Us({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,u=i.duration,d=i.easing,m=i.begin,h=i.onAnimationEnd,p=i.onAnimationStart,x=dke(o,l,eke(d),u,this.changeStyle),w=function(){a.stopJSAnimation=x()};this.manager.start([p,m,w,u,h])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,d=o[0],m=d.style,h=d.duration,p=h===void 0?0:h,x=function(v,y,j){if(j===0)return v;var k=y.duration,N=y.easing,C=N===void 0?"ease":N,A=y.style,E=y.properties,_=y.onAnimationEnd,R=j>0?o[j-1]:y,O=E||Object.keys(A);if(typeof C=="function"||C==="spring")return[].concat(uN(v),[a.runJSAnimation.bind(a,{from:R.style,to:A,duration:k,easing:C}),k]);var F=IL(O,k,C),D=Us(Us(Us({},R.style),A),{},{transition:F});return[].concat(uN(v),[D,k,_]).filter(qSe)};return this.manager.start([u].concat(uN(o.reduce(x,[m,Math.max(p,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=$Se());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,d=i.easing,m=i.onAnimationStart,h=i.onAnimationEnd,p=i.steps,x=i.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=l?Eh({},l,u):u,y=IL(Object.keys(v),o,d);w.start([m,a,Us(Us({},v),{},{transition:y}),o,h])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=hke(i,fke),d=S.Children.count(a),m=this.state.style;if(typeof a=="function")return a(m);if(!l||d===0||o<=0)return a;var h=function(x){var w=x.props,v=w.style,y=v===void 0?{}:v,j=w.className,k=S.cloneElement(x,Us(Us({},u),{},{style:Us(Us({},y),m),className:j}));return k};return d===1?h(S.Children.only(a)):W.createElement("div",null,S.Children.map(a,function(p){return h(p)}))}}]),r})(S.PureComponent);Ia.displayName="Animate";Ia.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ia.propTypes={from:Qe.oneOfType([Qe.object,Qe.string]),to:Qe.oneOfType([Qe.object,Qe.string]),attributeName:Qe.string,duration:Qe.number,begin:Qe.number,easing:Qe.oneOfType([Qe.string,Qe.func]),steps:Qe.arrayOf(Qe.shape({duration:Qe.number.isRequired,style:Qe.object.isRequired,easing:Qe.oneOfType([Qe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Qe.func]),properties:Qe.arrayOf("string"),onAnimationEnd:Qe.func})),children:Qe.oneOfType([Qe.node,Qe.func]),isActive:Qe.bool,canBegin:Qe.bool,onAnimationEnd:Qe.func,shouldReAnimate:Qe.bool,onAnimationStart:Qe.func,onAnimationReStart:Qe.func};function Em(e){"@babel/helpers - typeof";return Em=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},Em(e)}function Hy(){return Hy=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},Hy.apply(this,arguments)}function Tke(e,t){return Eke(e)||Pke(e,t)||Cke(e,t)||Ake()}function Ake(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
737In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cke(e,t){if(e){if(typeof e=="string")return FL(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 FL(e,t)}}function FL(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 Pke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function Eke(e){if(Array.isArray(e))return e}function BL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BL(Object(r),!0).forEach(function(n){_ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _ke(e,t,r){return t=Oke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oke(e){var t=Ike(e,"string");return Em(t)=="symbol"?t:t+""}function Ike(e,t){if(Em(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Em(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qL=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,u=n>=0?1:-1,d=i>=0&&n>=0||i<0&&n<0?1:0,m;if(o>0&&a instanceof Array){for(var h=[0,0,0,0],p=0,x=4;p<x;p++)h[p]=a[p]>o?o:a[p];m="M".concat(t,",").concat(r+l*h[0]),h[0]>0&&(m+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(d,",").concat(t+u*h[0],",").concat(r)),m+="L ".concat(t+n-u*h[1],",").concat(r),h[1]>0&&(m+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(d,`,
738        `).concat(t+n,",").concat(r+l*h[1])),m+="L ".concat(t+n,",").concat(r+i-l*h[2]),h[2]>0&&(m+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(d,`,
739        `).concat(t+n-u*h[2],",").concat(r+i)),m+="L ".concat(t+u*h[3],",").concat(r+i),h[3]>0&&(m+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(d,`,
740        `).concat(t,",").concat(r+i-l*h[3])),m+="Z"}else if(o>0&&a===+a&&a>0){var w=Math.min(o,a);m="M ".concat(t,",").concat(r+l*w,`
741            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+u*w,",").concat(r,`
742            L `).concat(t+n-u*w,",").concat(r,`
743            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+n,",").concat(r+l*w,`
744            L `).concat(t+n,",").concat(r+i-l*w,`
745            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+n-u*w,",").concat(r+i,`
746            L `).concat(t+u*w,",").concat(r+i,`
747            A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t,",").concat(r+i-l*w," Z")}else m="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return m},Rke=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var d=Math.min(a,a+l),m=Math.max(a,a+l),h=Math.min(o,o+u),p=Math.max(o,o+u);return n>=d&&n<=m&&i>=h&&i<=p}return!1},Mke={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ME=function(t){var r=VL(VL({},Mke),t),n=S.useRef(),i=S.useState(-1),a=Tke(i,2),o=a[0],l=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&l(C)}catch{}},[]);var u=r.x,d=r.y,m=r.width,h=r.height,p=r.radius,x=r.className,w=r.animationEasing,v=r.animationDuration,y=r.animationBegin,j=r.isAnimationActive,k=r.isUpdateAnimationActive;if(u!==+u||d!==+d||m!==+m||h!==+h||m===0||h===0)return null;var N=yt("recharts-rectangle",x);return k?W.createElement(Ia,{canBegin:o>0,from:{width:m,height:h,x:u,y:d},to:{width:m,height:h,x:u,y:d},duration:v,animationEasing:w,isActive:k},function(C){var A=C.width,E=C.height,_=C.x,R=C.y;return W.createElement(Ia,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:j,easing:w},W.createElement("path",Hy({},it(r,!0),{className:N,d:qL(_,R,A,E,p),ref:n})))}):W.createElement("path",Hy({},it(r,!0),{className:N,d:qL(u,d,m,h,p)}))},Dke=["points","className","baseLinePoints","connectNulls"];function Tu(){return Tu=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},Tu.apply(this,arguments)}function Lke(e,t){if(e==null)return{};var r=$ke(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $ke(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 WL(e){return qke(e)||Vke(e)||Bke(e)||Fke()}function Fke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
748In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bke(e,t){if(e){if(typeof e=="string")return hA(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 hA(e,t)}}function Vke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qke(e){if(Array.isArray(e))return hA(e)}function hA(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 zL=function(t){return t&&t.x===+t.x&&t.y===+t.y},Wke=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){zL(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),zL(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Wh=function(t,r){var n=Wke(t);r&&(n=[n.reduce(function(a,o){return[].concat(WL(a),WL(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},zke=function(t,r,n){var i=Wh(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Wh(r.reverse(),n).slice(1))},Uke=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Lke(t,Dke);if(!r||!r.length)return null;var l=yt("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",d=zke(r,i,a);return W.createElement("g",{className:l},W.createElement("path",Tu({},it(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",stroke:"none",d})),u?W.createElement("path",Tu({},it(o,!0),{fill:"none",d:Wh(r,a)})):null,u?W.createElement("path",Tu({},it(o,!0),{fill:"none",d:Wh(i,a)})):null)}var m=Wh(r,a);return W.createElement("path",Tu({},it(o,!0),{fill:m.slice(-1)==="Z"?o.fill:"none",className:l,d:m}))};function mA(){return mA=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},mA.apply(this,arguments)}var DE=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=yt("recharts-dot",a);return r===+r&&n===+n&&i===+i?S.createElement("circle",mA({},it(t,!1),my(t),{className:o,cx:r,cy:n,r:i})):null};function _m(e){"@babel/helpers - typeof";return _m=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},_m(e)}var Hke=["x","y","top","left","width","height","className"];function pA(){return pA=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},pA.apply(this,arguments)}function UL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UL(Object(r),!0).forEach(function(n){Kke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kke(e,t,r){return t=Yke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yke(e){var t=Xke(e,"string");return _m(t)=="symbol"?t:t+""}function Xke(e,t){if(_m(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qke(e,t){if(e==null)return{};var r=Zke(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zke(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 Jke=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},eNe=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,d=u===void 0?0:u,m=t.width,h=m===void 0?0:m,p=t.height,x=p===void 0?0:p,w=t.className,v=Qke(t,Hke),y=Gke({x:n,y:a,top:l,left:d,width:h,height:x},v);return!Ne(n)||!Ne(a)||!Ne(h)||!Ne(x)||!Ne(l)||!Ne(d)?null:W.createElement("path",pA({},it(y,!0),{className:yt("recharts-cross",w),d:Jke(n,a,h,x,l,d)}))},dN,HL;function tNe(){if(HL)return dN;HL=1;var e=Tb(),t=fH(),r=qi();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return dN=n,dN}var rNe=tNe();const nNe=Tt(rNe);var fN,GL;function sNe(){if(GL)return fN;GL=1;var e=Tb(),t=qi(),r=hH();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return fN=n,fN}var iNe=sNe();const aNe=Tt(iNe);var oNe=["cx","cy","angle","ticks","axisLine"],lNe=["ticks","tick","angle","tickFormatter","stroke"];function kd(e){"@babel/helpers - typeof";return kd=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},kd(e)}function zh(){return zh=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},zh.apply(this,arguments)}function KL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KL(Object(r),!0).forEach(function(n){Ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YL(e,t){if(e==null)return{};var r=cNe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cNe(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 uNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XL(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,JH(n.key),n)}}function dNe(e,t,r){return t&&XL(e.prototype,t),r&&XL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fNe(e,t,r){return t=Gy(t),hNe(e,ZH()?Reflect.construct(t,r||[],Gy(e).constructor):t.apply(e,r))}function hNe(e,t){if(t&&(kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mNe(e)}function mNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZH=function(){return!!e})()}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gy(e)}function pNe(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&&gA(e,t)}function gA(e,t){return gA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gA(e,t)}function Ib(e,t,r){return t=JH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JH(e){var t=gNe(e,"string");return kd(t)=="symbol"?t:t+""}function gNe(e,t){if(kd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rb=(function(e){function t(){return uNe(this,t),fNe(this,t,arguments)}return pNe(t,e),dNe(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,l=a.cx,u=a.cy;return Yt(l,u,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,l=n.ticks,u=nNe(l,function(m){return m.coordinate||0}),d=aNe(l,function(m){return m.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:d.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,l=n.ticks,u=n.axisLine,d=YL(n,oNe),m=l.reduce(function(w,v){return[Math.min(w[0],v.coordinate),Math.max(w[1],v.coordinate)]},[1/0,-1/0]),h=Yt(i,a,m[0],o),p=Yt(i,a,m[1],o),x=Tl(Tl(Tl({},it(d,!1)),{},{fill:"none"},it(u,!1)),{},{x1:h.x,y1:h.y,x2:p.x,y2:p.y});return W.createElement("line",zh({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,u=i.tickFormatter,d=i.stroke,m=YL(i,lNe),h=this.getTickTextAnchor(),p=it(m,!1),x=it(o,!1),w=a.map(function(v,y){var j=n.getTickValueCoord(v),k=Tl(Tl(Tl(Tl({textAnchor:h,transform:"rotate(".concat(90-l,", ").concat(j.x,", ").concat(j.y,")")},p),{},{stroke:"none",fill:d},x),{},{index:y},j),{},{payload:v});return W.createElement($t,zh({className:yt("recharts-polar-radius-axis-tick",VH(o)),key:"tick-".concat(v.coordinate)},gc(n.props,v,y)),t.renderTickItem(o,k,u?u(v.value,y):v.value))});return W.createElement($t,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:W.createElement($t,{className:yt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Hr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return W.isValidElement(n)?o=W.cloneElement(n,i):lt(n)?o=n(i):o=W.createElement(xc,zh({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(S.PureComponent);Ib(Rb,"displayName","PolarRadiusAxis");Ib(Rb,"axisType","radiusAxis");Ib(Rb,"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 Nd(e){"@babel/helpers - typeof";return Nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nd(e)}function Il(){return Il=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},Il.apply(this,arguments)}function QL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QL(Object(r),!0).forEach(function(n){Mb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZL(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,tG(n.key),n)}}function yNe(e,t,r){return t&&ZL(e.prototype,t),r&&ZL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vNe(e,t,r){return t=Ky(t),bNe(e,eG()?Reflect.construct(t,r||[],Ky(e).constructor):t.apply(e,r))}function bNe(e,t){if(t&&(Nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wNe(e)}function wNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eG=function(){return!!e})()}function Ky(e){return Ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ky(e)}function jNe(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&&xA(e,t)}function xA(e,t){return xA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xA(e,t)}function Mb(e,t,r){return t=tG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tG(e){var t=SNe(e,"string");return Nd(t)=="symbol"?t:t+""}function SNe(e,t){if(Nd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kNe=Math.PI/180,JL=1e-5,Db=(function(e){function t(){return xNe(this,t),vNe(this,t,arguments)}return jNe(t,e),yNe(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,l=i.radius,u=i.orientation,d=i.tickSize,m=d||8,h=Yt(a,o,l,n.coordinate),p=Yt(a,o,l+(u==="inner"?-1:1)*m,n.coordinate);return{x1:h.x,y1:h.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*kNe),o;return a>JL?o=i==="outer"?"start":"end":a<-JL?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,d=Al(Al({},it(this.props,!1)),{},{fill:"none"},it(l,!1));if(u==="circle")return W.createElement(DE,Il({className:"recharts-polar-angle-axis-line"},d,{cx:i,cy:a,r:o}));var m=this.props.ticks,h=m.map(function(p){return Yt(i,a,o,p.coordinate)});return W.createElement(Uke,Il({className:"recharts-polar-angle-axis-line"},d,{points:h}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,d=i.stroke,m=it(this.props,!1),h=it(o,!1),p=Al(Al({},m),{},{fill:"none"},it(l,!1)),x=a.map(function(w,v){var y=n.getTickLineCoord(w),j=n.getTickTextAnchor(w),k=Al(Al(Al({textAnchor:j},m),{},{stroke:"none",fill:d},h),{},{index:v,payload:w,x:y.x2,y:y.y2});return W.createElement($t,Il({className:yt("recharts-polar-angle-axis-tick",VH(o)),key:"tick-".concat(w.coordinate)},gc(n.props,w,v)),l&&W.createElement("line",Il({className:"recharts-polar-angle-axis-tick-line"},p,y)),o&&t.renderTickItem(o,k,u?u(w.value,v):w.value))});return W.createElement($t,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:W.createElement($t,{className:yt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return W.isValidElement(n)?o=W.cloneElement(n,i):lt(n)?o=n(i):o=W.createElement(xc,Il({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(S.PureComponent);Mb(Db,"displayName","PolarAngleAxis");Mb(Db,"axisType","angleAxis");Mb(Db,"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 hN,e$;function NNe(){if(e$)return hN;e$=1;var e=fU(),t=e(Object.getPrototypeOf,Object);return hN=t,hN}var mN,t$;function TNe(){if(t$)return mN;t$=1;var e=La(),t=NNe(),r=$a(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,l=a.hasOwnProperty,u=o.call(Object);function d(m){if(!r(m)||e(m)!=n)return!1;var h=t(m);if(h===null)return!0;var p=l.call(h,"constructor")&&h.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==u}return mN=d,mN}var ANe=TNe();const CNe=Tt(ANe);var pN,r$;function PNe(){if(r$)return pN;r$=1;var e=La(),t=$a(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return pN=n,pN}var ENe=PNe();const _Ne=Tt(ENe);function Om(e){"@babel/helpers - typeof";return Om=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},Om(e)}function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function ONe(e,t){return DNe(e)||MNe(e,t)||RNe(e,t)||INe()}function INe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
749In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RNe(e,t){if(e){if(typeof e=="string")return n$(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 n$(e,t)}}function n$(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 MNe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function DNe(e){if(Array.isArray(e))return e}function s$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function i$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s$(Object(r),!0).forEach(function(n){LNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LNe(e,t,r){return t=$Ne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Ne(e){var t=FNe(e,"string");return Om(t)=="symbol"?t:t+""}function FNe(e,t){if(Om(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Om(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var a$=function(t,r,n,i,a){var o=n-i,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+a),l+="L ".concat(t+n-o/2-i,",").concat(r+a),l+="L ".concat(t,",").concat(r," Z"),l},BNe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},VNe=function(t){var r=i$(i$({},BNe),t),n=S.useRef(),i=S.useState(-1),a=ONe(i,2),o=a[0],l=a[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var N=n.current.getTotalLength();N&&l(N)}catch{}},[]);var u=r.x,d=r.y,m=r.upperWidth,h=r.lowerWidth,p=r.height,x=r.className,w=r.animationEasing,v=r.animationDuration,y=r.animationBegin,j=r.isUpdateAnimationActive;if(u!==+u||d!==+d||m!==+m||h!==+h||p!==+p||m===0&&h===0||p===0)return null;var k=yt("recharts-trapezoid",x);return j?W.createElement(Ia,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:d},to:{upperWidth:m,lowerWidth:h,height:p,x:u,y:d},duration:v,animationEasing:w,isActive:j},function(N){var C=N.upperWidth,A=N.lowerWidth,E=N.height,_=N.x,R=N.y;return W.createElement(Ia,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:w},W.createElement("path",Yy({},it(r,!0),{className:k,d:a$(_,R,C,A,E),ref:n})))}):W.createElement("g",null,W.createElement("path",Yy({},it(r,!0),{className:k,d:a$(u,d,m,h,p)})))},qNe=["option","shapeType","propTransformer","activeClassName","isActive"];function Im(e){"@babel/helpers - typeof";return Im=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},Im(e)}function WNe(e,t){if(e==null)return{};var r=zNe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zNe(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 o$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o$(Object(r),!0).forEach(function(n){UNe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UNe(e,t,r){return t=HNe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HNe(e){var t=GNe(e,"string");return Im(t)=="symbol"?t:t+""}function GNe(e,t){if(Im(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Im(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KNe(e,t){return Xy(Xy({},t),e)}function YNe(e,t){return e==="symbols"}function l$(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return W.createElement(ME,r);case"trapezoid":return W.createElement(VNe,r);case"sector":return W.createElement(zH,r);case"symbols":if(YNe(t))return W.createElement(eE,r);break;default:return null}}function XNe(e){return S.isValidElement(e)?e.props:e}function rG(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?KNe:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,u=WNe(e,qNe),d;if(S.isValidElement(t))d=S.cloneElement(t,Xy(Xy({},u),XNe(t)));else if(lt(t))d=t(u);else if(CNe(t)&&!_Ne(t)){var m=i(t,u);d=W.createElement(l$,{shapeType:r,elementProps:m})}else{var h=u;d=W.createElement(l$,{shapeType:r,elementProps:h})}return l?W.createElement($t,{className:o},d):d}function Lb(e,t){return t!=null&&"trapezoids"in e.props}function $b(e,t){return t!=null&&"sectors"in e.props}function Rm(e,t){return t!=null&&"points"in e.props}function QNe(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function ZNe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function JNe(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function e2e(e,t){var r;return Lb(e,t)?r=QNe:$b(e,t)?r=ZNe:Rm(e,t)&&(r=JNe),r}function t2e(e,t){var r;return Lb(e,t)?r="trapezoids":$b(e,t)?r="sectors":Rm(e,t)&&(r="points"),r}function r2e(e,t){if(Lb(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($b(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 Rm(e,t)?t.payload:{}}function n2e(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=t2e(r,t),a=r2e(r,t),o=n.filter(function(u,d){var m=Pb(a,u),h=r.props[i].filter(function(w){var v=e2e(r,t);return v(w,t)}),p=r.props[i].indexOf(h[h.length-1]),x=d===p;return m&&x}),l=n.indexOf(o[o.length-1]);return l}var Px;function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Td(e)}function Au(){return Au=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},Au.apply(this,arguments)}function c$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c$(Object(r),!0).forEach(function(n){Ps(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u$(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,sG(n.key),n)}}function i2e(e,t,r){return t&&u$(e.prototype,t),r&&u$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2e(e,t,r){return t=Qy(t),o2e(e,nG()?Reflect.construct(t,r||[],Qy(e).constructor):t.apply(e,r))}function o2e(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l2e(e)}function l2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nG=function(){return!!e})()}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qy(e)}function c2e(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&&yA(e,t)}function yA(e,t){return yA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yA(e,t)}function Ps(e,t,r){return t=sG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sG(e){var t=u2e(e,"string");return Td(t)=="symbol"?t:t+""}function u2e(e,t){if(Td(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Td(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Li=(function(e){function t(r){var n;return s2e(this,t),n=a2e(this,t,[r]),Ps(n,"pieRef",null),Ps(n,"sectorRefs",[]),Ps(n,"id",mp("recharts-pie-")),Ps(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),lt(i)&&i()}),Ps(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),lt(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return c2e(t,e),i2e(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,u=a.dataKey,d=a.valueKey,m=it(this.props,!1),h=it(o,!1),p=it(l,!1),x=o&&o.offsetRadius||20,w=n.map(function(v,y){var j=(v.startAngle+v.endAngle)/2,k=Yt(v.cx,v.cy,v.outerRadius+x,j),N=Ht(Ht(Ht(Ht({},m),v),{},{stroke:"none"},h),{},{index:y,textAnchor:t.getTextAnchor(k.x,v.cx)},k),C=Ht(Ht(Ht(Ht({},m),v),{},{fill:"none",stroke:v.fill},p),{},{index:y,points:[Yt(v.cx,v.cy,v.outerRadius,j),k]}),A=u;return jt(u)&&jt(d)?A="value":jt(u)&&(A=d),W.createElement($t,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(y)},l&&t.renderLabelLineItem(l,C,"line"),t.renderLabelItem(o,N,pn(v,A)))});return W.createElement($t,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,u=a.inactiveShape;return n.map(function(d,m){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&n.length!==1)return null;var h=i.isActiveIndex(m),p=u&&i.hasActiveIndex()?u:null,x=h?o:p,w=Ht(Ht({},d),{},{stroke:l?d.fill:d.stroke,tabIndex:-1});return W.createElement($t,Au({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},gc(i.props,d,m),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(m)}),W.createElement(rG,Au({option:x,isActive:h,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,d=i.animationEasing,m=i.animationId,h=this.state,p=h.prevSectors,x=h.prevIsAnimationActive;return W.createElement(Ia,{begin:l,duration:u,isActive:o,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var v=w.t,y=[],j=a&&a[0],k=j.startAngle;return a.forEach(function(N,C){var A=p&&p[C],E=C>0?ls(N,"paddingAngle",0):0;if(A){var _=yo(A.endAngle-A.startAngle,N.endAngle-N.startAngle),R=Ht(Ht({},N),{},{startAngle:k+E,endAngle:k+_(v)+E});y.push(R),k=R.endAngle}else{var O=N.endAngle,F=N.startAngle,D=yo(0,O-F),L=D(v),I=Ht(Ht({},N),{},{startAngle:k+E,endAngle:k+L+E});y.push(I),k=I.endAngle}}),W.createElement($t,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Pb(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,u=i.label,d=i.cx,m=i.cy,h=i.innerRadius,p=i.outerRadius,x=i.isAnimationActive,w=this.state.isAnimationFinished;if(a||!o||!o.length||!Ne(d)||!Ne(m)||!Ne(h)||!Ne(p))return null;var v=yt("recharts-pie",l);return W.createElement($t,{tabIndex:this.props.rootTabIndex,className:v,ref:function(j){n.pieRef=j}},this.renderSectors(),u&&this.renderLabels(o),Hr.renderCallByParent(this.props,null,!1),(!x||w)&&Lo.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(W.isValidElement(n))return W.cloneElement(n,i);if(lt(n))return n(i);var o=yt("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return W.createElement(nA,Au({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(W.isValidElement(n))return W.cloneElement(n,i);var o=a;if(lt(n)&&(o=n(i),W.isValidElement(o)))return o;var l=yt("recharts-pie-label-text",typeof n!="boolean"&&!lt(n)?n.className:"");return W.createElement(xc,Au({},i,{alignmentBaseline:"middle",className:l}),o)}}])})(S.PureComponent);Px=Li;Ps(Li,"displayName","Pie");Ps(Li,"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:!lf.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Ps(Li,"parseDeltaAngle",function(e,t){var r=Nn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Ps(Li,"getRealPieData",function(e){var t=e.data,r=e.children,n=it(e,!1),i=_s(r,um);return t&&t.length?t.map(function(a,o){return Ht(Ht(Ht({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Ht(Ht({},n),a.props)}):[]});Ps(Li,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=BH(i,a),l=n+Tn(e.cx,i,i/2),u=r+Tn(e.cy,a,a/2),d=Tn(e.innerRadius,o,0),m=Tn(e.outerRadius,o,o*.8),h=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:u,innerRadius:d,outerRadius:m,maxRadius:h}});Ps(Li,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Ht(Ht({},t.type.defaultProps),t.props):t.props,i=Px.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,l=n.endAngle,u=n.paddingAngle,d=n.dataKey,m=n.nameKey,h=n.valueKey,p=n.tooltipType,x=Math.abs(n.minAngle),w=Px.parseCoordinateOfPie(n,r),v=Px.parseDeltaAngle(o,l),y=Math.abs(v),j=d;jt(d)&&jt(h)?(si(!1,`Use "dataKey" to specify the value of pie,
750      the props "valueKey" will be deprecated in 1.1.0`),j="value"):jt(d)&&(si(!1,`Use "dataKey" to specify the value of pie,
751      the props "valueKey" will be deprecated in 1.1.0`),j=h);var k=i.filter(function(R){return pn(R,j,0)!==0}).length,N=(y>=360?k:k-1)*u,C=y-k*x-N,A=i.reduce(function(R,O){var F=pn(O,j,0);return R+(Ne(F)?F:0)},0),E;if(A>0){var _;E=i.map(function(R,O){var F=pn(R,j,0),D=pn(R,m,O),L=(Ne(F)?F:0)/A,I;O?I=_.endAngle+Nn(v)*u*(F!==0?1:0):I=o;var $=I+Nn(v)*((F!==0?x:0)+L*C),z=(I+$)/2,K=(w.innerRadius+w.outerRadius)/2,Z=[{name:D,value:F,payload:R,dataKey:j,type:p}],U=Yt(w.cx,w.cy,K,z);return _=Ht(Ht(Ht({percent:L,cornerRadius:a,name:D,tooltipPayload:Z,midAngle:z,middleRadius:K,tooltipPosition:U},R),w),{},{value:pn(R,j),startAngle:I,endAngle:$,payload:R,paddingAngle:Nn(v)*u}),_})}return Ht(Ht({},w),{},{sectors:E,data:i})});var gN,d$;function d2e(){if(d$)return gN;d$=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var l=-1,u=t(e((i-n)/(a||1)),0),d=Array(u);u--;)d[o?u:++l]=n,n+=a;return d}return gN=r,gN}var xN,f$;function iG(){if(f$)return xN;f$=1;var e=CU(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return xN=n,xN}var yN,h$;function f2e(){if(h$)return yN;h$=1;var e=d2e(),t=vb(),r=iG();function n(i){return function(a,o,l){return l&&typeof l!="number"&&t(a,o,l)&&(o=l=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),l=l===void 0?a<o?1:-1:r(l),e(a,o,l,i)}}return yN=n,yN}var vN,m$;function h2e(){if(m$)return vN;m$=1;var e=f2e(),t=e();return vN=t,vN}var m2e=h2e();const Zy=Tt(m2e);function Mm(e){"@babel/helpers - typeof";return Mm=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},Mm(e)}function p$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p$(Object(r),!0).forEach(function(n){aG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aG(e,t,r){return t=p2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p2e(e){var t=g2e(e,"string");return Mm(t)=="symbol"?t:t+""}function g2e(e,t){if(Mm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x2e=["Webkit","Moz","O","ms"],y2e=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=x2e.reduce(function(a,o){return g$(g$({},a),{},aG({},o+n,r))},{});return i[t]=r,i};function Ad(e){"@babel/helpers - typeof";return Ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ad(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function x$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x$(Object(r),!0).forEach(function(n){Kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y$(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,lG(n.key),n)}}function b2e(e,t,r){return t&&y$(e.prototype,t),r&&y$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w2e(e,t,r){return t=ev(t),j2e(e,oG()?Reflect.construct(t,r||[],ev(e).constructor):t.apply(e,r))}function j2e(e,t){if(t&&(Ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S2e(e)}function S2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oG=function(){return!!e})()}function ev(e){return ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ev(e)}function k2e(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&&vA(e,t)}function vA(e,t){return vA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vA(e,t)}function Kn(e,t,r){return t=lG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lG(e){var t=N2e(e,"string");return Ad(t)=="symbol"?t:t+""}function N2e(e,t){if(Ad(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ad(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T2e=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,d=Bh().domain(Zy(0,u)).range([a,a+o-l]),m=d.domain().map(function(h){return d(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(n),endX:d(i),scale:d,scaleValues:m}},v$=function(t){return t.changedTouches&&!!t.changedTouches.length},Cd=(function(e){function t(r){var n;return v2e(this,t),n=w2e(this,t,[r]),Kn(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Kn(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Kn(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),Kn(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Kn(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Kn(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Kn(n,"handleSlideDragStart",function(i){var a=v$(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}
vendor: 109,840 bytes, lines 751-755
751return k2e(t,e),b2e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,d=l.data,m=d.length-1,h=Math.min(i,a),p=Math.max(i,a),x=t.getIndexInRange(o,h),w=t.getIndexInRange(o,p);return{startIndex:x-x%u,endIndex:w===m?m:w-w%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=pn(a[n],l,n);return lt(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,d=u.x,m=u.width,h=u.travellerWidth,p=u.startIndex,x=u.endIndex,w=u.onChange,v=n.pageX-a;v>0?v=Math.min(v,d+m-h-l,d+m-h-o):v<0&&(v=Math.max(v,d-o,d-l));var y=this.getIndex({startX:o+v,endX:l+v});(y.startIndex!==p||y.endIndex!==x)&&w&&w(y),this.setState({startX:o+v,endX:l+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=v$(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,d=this.state[o],m=this.props,h=m.x,p=m.width,x=m.travellerWidth,w=m.onChange,v=m.gap,y=m.data,j={startX:this.state.startX,endX:this.state.endX},k=n.pageX-a;k>0?k=Math.min(k,h+p-x-d):k<0&&(k=Math.max(k,h-d)),j[o]=d+k;var N=this.getIndex(j),C=N.startIndex,A=N.endIndex,E=function(){var R=y.length-1;return o==="startX"&&(l>u?C%v===0:A%v===0)||l<u&&A===R||o==="endX"&&(l>u?A%v===0:C%v===0)||l>u&&A===R};this.setState(Kn(Kn({},o,d+k),"brushMoveStartX",n.pageX),function(){w&&E()&&w(N)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,d=o.endX,m=this.state[i],h=l.indexOf(m);if(h!==-1){var p=h+n;if(!(p===-1||p>=l.length)){var x=l[p];i==="startX"&&x>=d||i==="endX"&&x<=u||this.setState(Kn({},i,x),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,d=n.stroke;return W.createElement("rect",{stroke:d,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,d=n.children,m=n.padding,h=S.Children.only(d);return h?W.cloneElement(h,{x:i,y:a,width:o,height:l,margin:m,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,d=u.y,m=u.travellerWidth,h=u.height,p=u.traveller,x=u.ariaLabel,w=u.data,v=u.startIndex,y=u.endIndex,j=Math.max(n,this.props.x),k=bN(bN({},it(this.props,!1)),{},{x:j,y:d,width:m,height:h}),N=x||"Min value: ".concat((a=w[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=w[y])===null||o===void 0?void 0:o.name);return W.createElement($t,{tabIndex:0,role:"slider","aria-label":N,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),l.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,k))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,d=a.travellerWidth,m=Math.min(n,i)+d,h=Math.max(Math.abs(i-n)-d,0);return W.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:m,y:o,width:h,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,d=n.stroke,m=this.state,h=m.startX,p=m.endX,x=5,w={pointerEvents:"none",fill:d};return W.createElement($t,{className:"recharts-brush-texts"},W.createElement(xc,Jy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,p)-x,y:o+l/2},w),this.getTextOfTick(i)),W.createElement(xc,Jy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,p)+u+x,y:o+l/2},w),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,d=n.width,m=n.height,h=n.alwaysShowText,p=this.state,x=p.startX,w=p.endX,v=p.isTextActive,y=p.isSlideMoving,j=p.isTravellerMoving,k=p.isTravellerFocused;if(!i||!i.length||!Ne(l)||!Ne(u)||!Ne(d)||!Ne(m)||d<=0||m<=0)return null;var N=yt("recharts-brush",a),C=W.Children.count(o)===1,A=y2e("userSelect","none");return W.createElement($t,{className:N,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(x,w),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(w,"endX"),(v||y||j||k||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,d=Math.floor(a+l/2)-1;return W.createElement(W.Fragment,null,W.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),W.createElement("line",{x1:i+1,y1:d,x2:i+o-1,y2:d,fill:"none",stroke:"#fff"}),W.createElement("line",{x1:i+1,y1:d+2,x2:i+o-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return W.isValidElement(n)?a=W.cloneElement(n,i):lt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,d=n.updateId,m=n.startIndex,h=n.endIndex;if(a!==i.prevData||d!==i.prevUpdateId)return bN({prevData:a,prevTravellerWidth:u,prevUpdateId:d,prevX:l,prevWidth:o},a&&a.length?T2e({data:a,width:o,x:l,travellerWidth:u,startIndex:m,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var p=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:d,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])})(S.PureComponent);Kn(Cd,"displayName","Brush");Kn(Cd,"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 wN,b$;function A2e(){if(b$)return wN;b$=1;var e=oE();function t(r,n){var i;return e(r,function(a,o,l){return i=n(a,o,l),!i}),!!i}return wN=t,wN}var jN,w$;function C2e(){if(w$)return jN;w$=1;var e=iU(),t=qi(),r=A2e(),n=Wn(),i=vb();function a(o,l,u){var d=n(o)?e:r;return u&&i(o,l,u)&&(l=void 0),d(o,t(l,3))}return jN=a,jN}var P2e=C2e();const E2e=Tt(P2e);var _i=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},SN,j$;function _2e(){if(j$)return SN;j$=1;var e=SU();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return SN=t,SN}var kN,S$;function O2e(){if(S$)return kN;S$=1;var e=_2e(),t=wU(),r=qi();function n(i,a){var o={};return a=r(a,3),t(i,function(l,u,d){e(o,u,a(l,u,d))}),o}return kN=n,kN}var I2e=O2e();const R2e=Tt(I2e);var NN,k$;function M2e(){if(k$)return NN;k$=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return NN=e,NN}var TN,N$;function D2e(){if(N$)return TN;N$=1;var e=oE();function t(r,n){var i=!0;return e(r,function(a,o,l){return i=!!n(a,o,l),i}),i}return TN=t,TN}var AN,T$;function L2e(){if(T$)return AN;T$=1;var e=M2e(),t=D2e(),r=qi(),n=Wn(),i=vb();function a(o,l,u){var d=n(o)?e:t;return u&&i(o,l,u)&&(l=void 0),d(o,r(l,3))}return AN=a,AN}var $2e=L2e();const cG=Tt($2e);var F2e=["x","y"];function Dm(e){"@babel/helpers - typeof";return Dm=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},Dm(e)}function bA(){return bA=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},bA.apply(this,arguments)}function A$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ph(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){B2e(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 B2e(e,t,r){return t=V2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V2e(e){var t=q2e(e,"string");return Dm(t)=="symbol"?t:t+""}function q2e(e,t){if(Dm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W2e(e,t){if(e==null)return{};var r=z2e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function z2e(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 U2e(e,t){var r=e.x,n=e.y,i=W2e(e,F2e),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),d="".concat(t.height||i.height),m=parseInt(d,10),h="".concat(t.width||i.width),p=parseInt(h,10);return ph(ph(ph(ph(ph({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:m,width:p,name:t.name,radius:t.radius})}function C$(e){return W.createElement(rG,bA({shapeType:"rectangle",propTransformer:U2e,activeClassName:"recharts-active-bar"},e))}var H2e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=Ne(n)||xpe(n);return a?t(n,i):(a||vc(),r)}},G2e=["value","background"],uG;function Pd(e){"@babel/helpers - typeof";return Pd=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},Pd(e)}function K2e(e,t){if(e==null)return{};var r=Y2e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y2e(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 tv(){return tv=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},tv.apply(this,arguments)}function P$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P$(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E$(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,fG(n.key),n)}}function Q2e(e,t,r){return t&&E$(e.prototype,t),r&&E$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z2e(e,t,r){return t=rv(t),J2e(e,dG()?Reflect.construct(t,r||[],rv(e).constructor):t.apply(e,r))}function J2e(e,t){if(t&&(Pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eTe(e)}function eTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dG=function(){return!!e})()}function rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rv(e)}function tTe(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&&wA(e,t)}function wA(e,t){return wA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wA(e,t)}function _o(e,t,r){return t=fG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fG(e){var t=rTe(e,"string");return Pd(t)=="symbol"?t:t+""}function rTe(e,t){if(Pd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rc=(function(e){function t(){var r;X2e(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Z2e(this,t,[].concat(i)),_o(r,"state",{isAnimationFinished:!1}),_o(r,"id",mp("recharts-bar-")),_o(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),_o(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return tTe(t,e),Q2e(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,l=a.dataKey,u=a.activeIndex,d=a.activeBar,m=it(this.props,!1);return n&&n.map(function(h,p){var x=p===u,w=x?d:o,v=Nr(Nr(Nr({},m),h),{},{isActive:x,option:w,index:p,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return W.createElement($t,tv({className:"recharts-bar-rectangle"},gc(i.props,h,p),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(p)}),W.createElement(C$,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,u=i.animationBegin,d=i.animationDuration,m=i.animationEasing,h=i.animationId,p=this.state.prevData;return W.createElement(Ia,{begin:u,duration:d,isActive:l,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var w=x.t,v=a.map(function(y,j){var k=p&&p[j];if(k){var N=yo(k.x,y.x),C=yo(k.y,y.y),A=yo(k.width,y.width),E=yo(k.height,y.height);return Nr(Nr({},y),{},{x:N(w),y:C(w),width:A(w),height:E(w)})}if(o==="horizontal"){var _=yo(0,y.height),R=_(w);return Nr(Nr({},y),{},{y:y.y+y.height-R,height:R})}var O=yo(0,y.width),F=O(w);return Nr(Nr({},y),{},{width:F})});return W.createElement($t,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Pb(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,u=it(this.props.background,!1);return a.map(function(d,m){d.value;var h=d.background,p=K2e(d,G2e);if(!h)return null;var x=Nr(Nr(Nr(Nr(Nr({},p),{},{fill:"#eee"},h),u),gc(n.props,d,m)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:m,className:"recharts-bar-background-rectangle"});return W.createElement(C$,tv({key:"background-bar-".concat(m),option:n.props.background,isActive:m===l},x))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,u=a.yAxis,d=a.layout,m=a.children,h=_s(m,Ob);if(!h)return null;var p=d==="vertical"?o[0].height/2:o[0].width/2,x=function(y,j){var k=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:k,errorVal:pn(y,j)}},w={clipPath:n?"url(#clipPath-".concat(i,")"):null};return W.createElement($t,w,h.map(function(v){return W.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:u,layout:d,offset:p,dataPointFormatter:x})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,l=n.xAxis,u=n.yAxis,d=n.left,m=n.top,h=n.width,p=n.height,x=n.isAnimationActive,w=n.background,v=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,j=yt("recharts-bar",o),k=l&&l.allowDataOverflow,N=u&&u.allowDataOverflow,C=k||N,A=jt(v)?this.id:v;return W.createElement($t,{className:j},k||N?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(A)},W.createElement("rect",{x:k?d:d-h/2,y:N?m:m-p/2,width:k?h:h*2,height:N?p:p*2}))):null,W.createElement($t,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(A,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,A),(!x||y)&&Lo.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(S.PureComponent);uG=Rc;_o(Rc,"displayName","Bar");_o(Rc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!lf.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});_o(Rc,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,h=e.displayedData,p=e.offset,x=_je(n,r);if(!x)return null;var w=t.layout,v=r.type.defaultProps,y=v!==void 0?Nr(Nr({},v),r.props):r.props,j=y.dataKey,k=y.children,N=y.minPointSize,C=w==="horizontal"?o:a,A=d?C.scale.domain():null,E=$je({numericAxis:C}),_=_s(k,um),R=h.map(function(O,F){var D,L,I,$,z,K;d?D=Oje(d[m+F],A):(D=pn(O,j),Array.isArray(D)||(D=[E,D]));var Z=H2e(N,uG.defaultProps.minPointSize)(D[1],F);if(w==="horizontal"){var U,q=[o.scale(D[0]),o.scale(D[1])],B=q[0],V=q[1];L=oL({axis:a,ticks:l,bandSize:i,offset:x.offset,entry:O,index:F}),I=(U=V??B)!==null&&U!==void 0?U:void 0,$=x.size;var X=B-V;if(z=Number.isNaN(X)?0:X,K={x:L,y:o.y,width:$,height:o.height},Math.abs(Z)>0&&Math.abs(z)<Math.abs(Z)){var ce=Nn(z||Z)*(Math.abs(Z)-Math.abs(z));I-=ce,z+=ce}}else{var ye=[a.scale(D[0]),a.scale(D[1])],$e=ye[0],Te=ye[1];if(L=$e,I=oL({axis:o,ticks:u,bandSize:i,offset:x.offset,entry:O,index:F}),$=Te-$e,z=x.size,K={x:a.x,y:I,width:a.width,height:z},Math.abs(Z)>0&&Math.abs($)<Math.abs(Z)){var ge=Nn($||Z)*(Math.abs(Z)-Math.abs($));$+=ge}}return Nr(Nr(Nr({},O),{},{x:L,y:I,width:$,height:z,value:d?D:D[1],payload:O,background:K},_&&_[F]&&_[F].props),{},{tooltipPayload:[$H(r,O)],tooltipPosition:{x:L+$/2,y:I+z/2}})});return Nr({data:R,layout:w},p)});function Lm(e){"@babel/helpers - typeof";return Lm=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},Lm(e)}function nTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _$(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,hG(n.key),n)}}function sTe(e,t,r){return t&&_$(e.prototype,t),r&&_$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(r),!0).forEach(function(n){Fb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fb(e,t,r){return t=hG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hG(e){var t=iTe(e,"string");return Lm(t)=="symbol"?t:t+""}function iTe(e,t){if(Lm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aTe=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.layout,d=t.children,m=Object.keys(r),h={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},p=!!Yn(d,Rc);return m.reduce(function(x,w){var v=r[w],y=v.orientation,j=v.domain,k=v.padding,N=k===void 0?{}:k,C=v.mirror,A=v.reversed,E="".concat(y).concat(C?"Mirror":""),_,R,O,F,D;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var L=j[1]-j[0],I=1/0,$=v.categoricalDomain.sort(bpe);if($.forEach(function(ye,$e){$e>0&&(I=Math.min((ye||0)-($[$e-1]||0),I))}),Number.isFinite(I)){var z=I/L,K=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=z*K/2),v.padding==="no-gap"){var Z=Tn(t.barCategoryGap,z*K),U=z*K/2;_=U-Z-(U-Z)/K*Z}}}i==="xAxis"?R=[n.left+(N.left||0)+(_||0),n.left+n.width-(N.right||0)-(_||0)]:i==="yAxis"?R=u==="horizontal"?[n.top+n.height-(N.bottom||0),n.top+(N.top||0)]:[n.top+(N.top||0)+(_||0),n.top+n.height-(N.bottom||0)-(_||0)]:R=v.range,A&&(R=[R[1],R[0]]);var q=RH(v,a,p),B=q.scale,V=q.realScaleType;B.domain(j).range(R),MH(B);var X=DH(B,Zs(Zs({},v),{},{realScaleType:V}));i==="xAxis"?(D=y==="top"&&!C||y==="bottom"&&C,O=n.left,F=h[E]-D*v.height):i==="yAxis"&&(D=y==="left"&&!C||y==="right"&&C,O=h[E]-D*v.width,F=n.top);var ce=Zs(Zs(Zs({},v),X),{},{realScaleType:V,x:O,y:F,scale:B,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return ce.bandSize=Fy(ce,X),!v.hide&&i==="xAxis"?h[E]+=(D?-1:1)*ce.height:v.hide||(h[E]+=(D?-1:1)*ce.width),Zs(Zs({},x),{},Fb({},w,ce))},{})},mG=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},oTe=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return mG({x:r,y:n},{x:i,y:a})},pG=(function(){function e(t){nTe(this,e),this.scale=t}return sTe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Fb(pG,"EPS",1e-4);var LE=function(t){var r=Object.keys(t).reduce(function(n,i){return Zs(Zs({},n),{},Fb({},i,pG.create(t[i])))},{});return Zs(Zs({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return R2e(i,function(u,d){return r[d].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return cG(i,function(a,o){return r[o].isInRange(a)})}})};function lTe(e){return(e%180+180)%180}var cTe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=lTe(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},CN,I$;function uTe(){if(I$)return CN;I$=1;var e=qi(),t=pp(),r=xb();function n(i){return function(a,o,l){var u=Object(a);if(!t(a)){var d=e(o,3);a=r(a),o=function(h){return d(u[h],h,u)}}var m=i(a,o,l);return m>-1?u[d?a[m]:m]:void 0}}return CN=n,CN}var PN,R$;function dTe(){if(R$)return PN;R$=1;var e=iG();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return PN=t,PN}var EN,M$;function fTe(){if(M$)return EN;M$=1;var e=gU(),t=qi(),r=dTe(),n=Math.max;function i(a,o,l){var u=a==null?0:a.length;if(!u)return-1;var d=l==null?0:r(l);return d<0&&(d=n(u+d,0)),e(a,t(o,3),d)}return EN=i,EN}var _N,D$;function hTe(){if(D$)return _N;D$=1;var e=uTe(),t=fTe(),r=e(t);return _N=r,_N}var mTe=hTe();const pTe=Tt(mTe);var gTe=Oz();const xTe=Tt(gTe);var yTe=xTe(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("")}),$E=S.createContext(void 0),FE=S.createContext(void 0),gG=S.createContext(void 0),xG=S.createContext({}),yG=S.createContext(void 0),vG=S.createContext(0),bG=S.createContext(0),L$=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,l=t.children,u=t.width,d=t.height,m=yTe(a);return W.createElement($E.Provider,{value:n},W.createElement(FE.Provider,{value:i},W.createElement(xG.Provider,{value:a},W.createElement(gG.Provider,{value:m},W.createElement(yG.Provider,{value:o},W.createElement(vG.Provider,{value:d},W.createElement(bG.Provider,{value:u},l)))))))},vTe=function(){return S.useContext(yG)},wG=function(t){var r=S.useContext($E);r==null&&vc();var n=r[t];return n==null&&vc(),n},bTe=function(){var t=S.useContext($E);return bo(t)},wTe=function(){var t=S.useContext(FE),r=pTe(t,function(n){return cG(n.domain,Number.isFinite)});return r||bo(t)},jG=function(t){var r=S.useContext(FE);r==null&&vc();var n=r[t];return n==null&&vc(),n},jTe=function(){var t=S.useContext(gG);return t},STe=function(){return S.useContext(xG)},BE=function(){return S.useContext(bG)},VE=function(){return S.useContext(vG)};function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ed(e)}function kTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NTe(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,kG(n.key),n)}}function TTe(e,t,r){return t&&NTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ATe(e,t,r){return t=nv(t),CTe(e,SG()?Reflect.construct(t,r||[],nv(e).constructor):t.apply(e,r))}function CTe(e,t){if(t&&(Ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PTe(e)}function PTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SG=function(){return!!e})()}function nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nv(e)}function ETe(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&&jA(e,t)}function jA(e,t){return jA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jA(e,t)}function $$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function F$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$$(Object(r),!0).forEach(function(n){qE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qE(e,t,r){return t=kG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kG(e){var t=_Te(e,"string");return Ed(t)=="symbol"?t:t+""}function _Te(e,t){if(Ed(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ed(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OTe(e,t){return DTe(e)||MTe(e,t)||RTe(e,t)||ITe()}function ITe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
752In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RTe(e,t){if(e){if(typeof e=="string")return B$(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 B$(e,t)}}function B$(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 MTe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function DTe(e){if(Array.isArray(e))return e}function SA(){return SA=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},SA.apply(this,arguments)}var LTe=function(t,r){var n;return W.isValidElement(t)?n=W.cloneElement(t,r):lt(t)?n=t(r):n=W.createElement("line",SA({},r,{className:"recharts-reference-line-line"})),n},$Te=function(t,r,n,i,a,o,l,u,d){var m=a.x,h=a.y,p=a.width,x=a.height;if(n){var w=d.y,v=t.y.apply(w,{position:o});if(_i(d,"discard")&&!t.y.isInRange(v))return null;var y=[{x:m+p,y:v},{x:m,y:v}];return u==="left"?y.reverse():y}if(r){var j=d.x,k=t.x.apply(j,{position:o});if(_i(d,"discard")&&!t.x.isInRange(k))return null;var N=[{x:k,y:h+x},{x:k,y:h}];return l==="top"?N.reverse():N}if(i){var C=d.segment,A=C.map(function(E){return t.apply(E,{position:o})});return _i(d,"discard")&&E2e(A,function(E){return!t.isInRange(E)})?null:A}return null};function FTe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,u=e.alwaysShow,d=vTe(),m=wG(i),h=jG(a),p=jTe();if(!d||!p)return null;si(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=LE({x:m.scale,y:h.scale}),w=Dr(t),v=Dr(r),y=n&&n.length===2,j=$Te(x,w,v,y,p,e.position,m.orientation,h.orientation,e);if(!j)return null;var k=OTe(j,2),N=k[0],C=N.x,A=N.y,E=k[1],_=E.x,R=E.y,O=_i(e,"hidden")?"url(#".concat(d,")"):void 0,F=F$(F$({clipPath:O},it(e,!0)),{},{x1:C,y1:A,x2:_,y2:R});return W.createElement($t,{className:yt("recharts-reference-line",l)},LTe(o,F),Hr.renderCallByParent(e,oTe({x1:C,y1:A,x2:_,y2:R})))}var WE=(function(e){function t(){return kTe(this,t),ATe(this,t,arguments)}return ETe(t,e),TTe(t,[{key:"render",value:function(){return W.createElement(FTe,this.props)}}])})(W.Component);qE(WE,"displayName","ReferenceLine");qE(WE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function kA(){return kA=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},kA.apply(this,arguments)}function _d(e){"@babel/helpers - typeof";return _d=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},_d(e)}function V$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V$(Object(r),!0).forEach(function(n){Bb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VTe(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,TG(n.key),n)}}function qTe(e,t,r){return t&&VTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WTe(e,t,r){return t=sv(t),zTe(e,NG()?Reflect.construct(t,r||[],sv(e).constructor):t.apply(e,r))}function zTe(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UTe(e)}function UTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NG=function(){return!!e})()}function sv(e){return sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sv(e)}function HTe(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&&NA(e,t)}function NA(e,t){return NA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},NA(e,t)}function Bb(e,t,r){return t=TG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TG(e){var t=GTe(e,"string");return _d(t)=="symbol"?t:t+""}function GTe(e,t){if(_d(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_d(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KTe=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=LE({x:i.scale,y:a.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return _i(t,"discard")&&!o.isInRange(l)?null:l},Vb=(function(e){function t(){return BTe(this,t),WTe(this,t,arguments)}return HTe(t,e),qTe(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,l=n.alwaysShow,u=n.clipPathId,d=Dr(i),m=Dr(a);if(si(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var h=KTe(this.props);if(!h)return null;var p=h.x,x=h.y,w=this.props,v=w.shape,y=w.className,j=_i(this.props,"hidden")?"url(#".concat(u,")"):void 0,k=q$(q$({clipPath:j},it(this.props,!0)),{},{cx:p,cy:x});return W.createElement($t,{className:yt("recharts-reference-dot",y)},t.renderDot(v,k),Hr.renderCallByParent(this.props,{x:p-o,y:x-o,width:2*o,height:2*o}))}}])})(W.Component);Bb(Vb,"displayName","ReferenceDot");Bb(Vb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Bb(Vb,"renderDot",function(e,t){var r;return W.isValidElement(e)?r=W.cloneElement(e,t):lt(e)?r=e(t):r=W.createElement(DE,kA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function TA(){return TA=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},TA.apply(this,arguments)}function Od(e){"@babel/helpers - typeof";return Od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Od(e)}function W$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W$(Object(r),!0).forEach(function(n){qb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XTe(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,CG(n.key),n)}}function QTe(e,t,r){return t&&XTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZTe(e,t,r){return t=iv(t),JTe(e,AG()?Reflect.construct(t,r||[],iv(e).constructor):t.apply(e,r))}function JTe(e,t){if(t&&(Od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eAe(e)}function eAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AG=function(){return!!e})()}function iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},iv(e)}function tAe(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&&AA(e,t)}function AA(e,t){return AA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},AA(e,t)}function qb(e,t,r){return t=CG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CG(e){var t=rAe(e,"string");return Od(t)=="symbol"?t:t+""}function rAe(e,t){if(Od(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Od(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nAe=function(t,r,n,i,a){var o=a.x1,l=a.x2,u=a.y1,d=a.y2,m=a.xAxis,h=a.yAxis;if(!m||!h)return null;var p=LE({x:m.scale,y:h.scale}),x={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(u,{position:"start"}):p.y.rangeMin},w={x:r?p.x.apply(l,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(d,{position:"end"}):p.y.rangeMax};return _i(a,"discard")&&(!p.isInRange(x)||!p.isInRange(w))?null:mG(x,w)},Wb=(function(e){function t(){return YTe(this,t),ZTe(this,t,arguments)}return tAe(t,e),QTe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,l=n.y2,u=n.className,d=n.alwaysShow,m=n.clipPathId;si(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Dr(i),p=Dr(a),x=Dr(o),w=Dr(l),v=this.props.shape;if(!h&&!p&&!x&&!w&&!v)return null;var y=nAe(h,p,x,w,this.props);if(!y&&!v)return null;var j=_i(this.props,"hidden")?"url(#".concat(m,")"):void 0;return W.createElement($t,{className:yt("recharts-reference-area",u)},t.renderRect(v,z$(z$({clipPath:j},it(this.props,!0)),y)),Hr.renderCallByParent(this.props,y))}}])})(W.Component);qb(Wb,"displayName","ReferenceArea");qb(Wb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});qb(Wb,"renderRect",function(e,t){var r;return W.isValidElement(e)?r=W.cloneElement(e,t):lt(e)?r=e(t):r=W.createElement(ME,TA({},t,{className:"recharts-reference-area-rect"})),r});function PG(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function sAe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return cTe(n,r)}function iAe(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function av(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function aAe(e,t){return PG(e,t+1)}function oAe(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,d=1,m=o,h=function(){var w=n==null?void 0:n[u];if(w===void 0)return{v:PG(n,d)};var v=u,y,j=function(){return y===void 0&&(y=r(w,v)),y},k=w.coordinate,N=u===0||av(e,k,j,m,l);N||(u=0,m=o,d+=1),N&&(m=k+e*(j()/2+i),u+=d)},p;d<=a.length;)if(p=h(),p)return p.v;return[]}function $m(e){"@babel/helpers - typeof";return $m=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},$m(e)}function U$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U$(Object(r),!0).forEach(function(n){lAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lAe(e,t,r){return t=cAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cAe(e){var t=uAe(e,"string");return $m(t)=="symbol"?t:t+""}function uAe(e,t){if($m(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dAe(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,l=t.start,u=t.end,d=function(p){var x=a[p],w,v=function(){return w===void 0&&(w=r(x,p)),w};if(p===o-1){var y=e*(x.coordinate+e*v()/2-u);a[p]=x=dn(dn({},x),{},{tickCoord:y>0?x.coordinate-y*e:x.coordinate})}else a[p]=x=dn(dn({},x),{},{tickCoord:x.coordinate});var j=av(e,x.tickCoord,v,l,u);j&&(u=x.tickCoord-e*(v()/2+i),a[p]=dn(dn({},x),{},{isShow:!0}))},m=o-1;m>=0;m--)d(m);return a}function fAe(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,d=t.end;if(a){var m=n[l-1],h=r(m,l-1),p=e*(m.coordinate+e*h/2-d);o[l-1]=m=dn(dn({},m),{},{tickCoord:p>0?m.coordinate-p*e:m.coordinate});var x=av(e,m.tickCoord,function(){return h},u,d);x&&(d=m.tickCoord-e*(h/2+i),o[l-1]=dn(dn({},m),{},{isShow:!0}))}for(var w=a?l-1:l,v=function(k){var N=o[k],C,A=function(){return C===void 0&&(C=r(N,k)),C};if(k===0){var E=e*(N.coordinate-e*A()/2-u);o[k]=N=dn(dn({},N),{},{tickCoord:E<0?N.coordinate-E*e:N.coordinate})}else o[k]=N=dn(dn({},N),{},{tickCoord:N.coordinate});var _=av(e,N.tickCoord,A,u,d);_&&(u=N.tickCoord+e*(A()/2+i),o[k]=dn(dn({},N),{},{isShow:!0}))},y=0;y<w;y++)v(y);return o}function zE(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,u=e.interval,d=e.tickFormatter,m=e.unit,h=e.angle;if(!i||!i.length||!n)return[];if(Ne(u)||lf.isSsr)return aAe(i,typeof u=="number"&&Ne(u)?u:0);var p=[],x=l==="top"||l==="bottom"?"width":"height",w=m&&x==="width"?Fh(m,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(N,C){var A=lt(d)?d(N.value,C):N.value;return x==="width"?sAe(Fh(A,{fontSize:t,letterSpacing:r}),w,h):Fh(A,{fontSize:t,letterSpacing:r})[x]},y=i.length>=2?Nn(i[1].coordinate-i[0].coordinate):1,j=iAe(a,y,x);return u==="equidistantPreserveStart"?oAe(y,j,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?p=fAe(y,j,v,i,o,u==="preserveStartEnd"):p=dAe(y,j,v,i,o),p.filter(function(k){return k.isShow}))}var hAe=["viewBox"],mAe=["viewBox"],pAe=["ticks"];function Id(e){"@babel/helpers - typeof";return Id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Id(e)}function Cu(){return Cu=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},Cu.apply(this,arguments)}function H$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H$(Object(r),!0).forEach(function(n){UE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ON(e,t){if(e==null)return{};var r=gAe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gAe(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 xAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G$(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,_G(n.key),n)}}function yAe(e,t,r){return t&&G$(e.prototype,t),r&&G$(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vAe(e,t,r){return t=ov(t),bAe(e,EG()?Reflect.construct(t,r||[],ov(e).constructor):t.apply(e,r))}function bAe(e,t){if(t&&(Id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wAe(e)}function wAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EG=function(){return!!e})()}function ov(e){return ov=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ov(e)}function jAe(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&&CA(e,t)}function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CA(e,t)}function UE(e,t,r){return t=_G(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _G(e){var t=SAe(e,"string");return Id(t)=="symbol"?t:t+""}function SAe(e,t){if(Id(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Id(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ff=(function(e){function t(r){var n;return xAe(this,t),n=vAe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return jAe(t,e),yAe(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ON(n,hAe),l=this.props,u=l.viewBox,d=ON(l,mAe);return!Mu(a,u)||!Mu(o,d)||!Mu(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,l=i.width,u=i.height,d=i.orientation,m=i.tickSize,h=i.mirror,p=i.tickMargin,x,w,v,y,j,k,N=h?-1:1,C=n.tickSize||m,A=Ne(n.tickCoord)?n.tickCoord:n.coordinate;switch(d){case"top":x=w=n.coordinate,y=o+ +!h*u,v=y-N*C,k=v-N*p,j=A;break;case"left":v=y=n.coordinate,w=a+ +!h*l,x=w-N*C,j=x-N*p,k=A;break;case"right":v=y=n.coordinate,w=a+ +h*l,x=w+N*C,j=x+N*p,k=A;break;default:x=w=n.coordinate,y=o+ +h*u,v=y+N*C,k=v+N*p,j=A;break}return{line:{x1:x,y1:v,x2:w,y2:y},tick:{x:j,y:k}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.orientation,d=n.mirror,m=n.axisLine,h=Or(Or(Or({},it(this.props,!1)),it(m,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var p=+(u==="top"&&!d||u==="bottom"&&d);h=Or(Or({},h),{},{x1:i,y1:a+p*l,x2:i+o,y2:a+p*l})}else{var x=+(u==="left"&&!d||u==="right"&&d);h=Or(Or({},h),{},{x1:i+x*o,y1:a,x2:i+x*o,y2:a+l})}return W.createElement("line",Cu({},h,{className:yt("recharts-cartesian-axis-line",ls(m,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,l=this.props,u=l.tickLine,d=l.stroke,m=l.tick,h=l.tickFormatter,p=l.unit,x=zE(Or(Or({},this.props),{},{ticks:n}),i,a),w=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),y=it(this.props,!1),j=it(m,!1),k=Or(Or({},y),{},{fill:"none"},it(u,!1)),N=x.map(function(C,A){var E=o.getTickLineCoord(C),_=E.line,R=E.tick,O=Or(Or(Or(Or({textAnchor:w,verticalAnchor:v},y),{},{stroke:"none",fill:d},j),R),{},{index:A,payload:C,visibleTicksCount:x.length,tickFormatter:h});return W.createElement($t,Cu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},gc(o.props,C,A)),u&&W.createElement("line",Cu({},k,_,{className:yt("recharts-cartesian-axis-tick-line",ls(u,"className"))})),m&&t.renderTickItem(m,O,"".concat(lt(h)?h(C.value,A):C.value).concat(p||"")))});return W.createElement("g",{className:"recharts-cartesian-axis-ticks"},N)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,u=i.ticksGenerator,d=i.className,m=i.hide;if(m)return null;var h=this.props,p=h.ticks,x=ON(h,pAe),w=p;return lt(u)&&(w=p&&p.length>0?u(this.props):u(x)),o<=0||l<=0||!w||!w.length?null:W.createElement($t,{className:yt("recharts-cartesian-axis",d),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),Hr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=yt(i.className,"recharts-cartesian-axis-tick-value");return W.isValidElement(n)?o=W.cloneElement(n,Or(Or({},i),{},{className:l})):lt(n)?o=n(Or(Or({},i),{},{className:l})):o=W.createElement(xc,Cu({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(S.Component);UE(ff,"displayName","CartesianAxis");UE(ff,"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 kAe=["x1","y1","x2","y2","key"],NAe=["offset"];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 K$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K$(Object(r),!0).forEach(function(n){TAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TAe(e,t,r){return t=AAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AAe(e){var t=CAe(e,"string");return bc(t)=="symbol"?t:t+""}function CAe(e,t){if(bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vl(){return Vl=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},Vl.apply(this,arguments)}function Y$(e,t){if(e==null)return{};var r=PAe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PAe(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 EAe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,l=t.height,u=t.ry;return W.createElement("rect",{x:i,y:a,ry:u,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function OG(e,t){var r;if(W.isValidElement(e))r=W.cloneElement(e,t);else if(lt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,u=Y$(t,kAe),d=it(u,!1);d.offset;var m=Y$(d,NAe);r=W.createElement("line",Vl({},m,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:l}))}return r}function _Ae(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var d=hn(hn({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(u),index:u});return OG(i,d)});return W.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function OAe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var d=hn(hn({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(u),index:u});return OG(i,d)});return W.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function IAe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,u=e.horizontal,d=u===void 0?!0:u;if(!d||!t||!t.length)return null;var m=l.map(function(p){return Math.round(p+i-i)}).sort(function(p,x){return p-x});i!==m[0]&&m.unshift(0);var h=m.map(function(p,x){var w=!m[x+1],v=w?i+o-p:m[x+1]-p;if(v<=0)return null;var y=x%t.length;return W.createElement("rect",{key:"react-".concat(x),y:p,x:n,height:v,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function RAe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,u=e.height,d=e.verticalPoints;if(!r||!n||!n.length)return null;var m=d.map(function(p){return Math.round(p+a-a)}).sort(function(p,x){return p-x});a!==m[0]&&m.unshift(0);var h=m.map(function(p,x){var w=!m[x+1],v=w?a+l-p:m[x+1]-p;if(v<=0)return null;var y=x%n.length;return W.createElement("rect",{key:"react-".concat(x),x:p,y:o,width:v,height:u,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var MAe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return IH(zE(hn(hn(hn({},ff.defaultProps),n),{},{ticks:ha(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},DAe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return IH(zE(hn(hn(hn({},ff.defaultProps),n),{},{ticks:ha(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},hu={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function IG(e){var t,r,n,i,a,o,l=BE(),u=VE(),d=STe(),m=hn(hn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:hu.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:hu.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:hu.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:hu.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:hu.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:hu.verticalFill,x:Ne(e.x)?e.x:d.left,y:Ne(e.y)?e.y:d.top,width:Ne(e.width)?e.width:d.width,height:Ne(e.height)?e.height:d.height}),h=m.x,p=m.y,x=m.width,w=m.height,v=m.syncWithTicks,y=m.horizontalValues,j=m.verticalValues,k=bTe(),N=wTe();if(!Ne(x)||x<=0||!Ne(w)||w<=0||!Ne(h)||h!==+h||!Ne(p)||p!==+p)return null;var C=m.verticalCoordinatesGenerator||MAe,A=m.horizontalCoordinatesGenerator||DAe,E=m.horizontalPoints,_=m.verticalPoints;if((!E||!E.length)&&lt(A)){var R=y&&y.length,O=A({yAxis:N?hn(hn({},N),{},{ticks:R?y:N.ticks}):void 0,width:l,height:u,offset:d},R?!0:v);si(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(bc(O),"]")),Array.isArray(O)&&(E=O)}if((!_||!_.length)&&lt(C)){var F=j&&j.length,D=C({xAxis:k?hn(hn({},k),{},{ticks:F?j:k.ticks}):void 0,width:l,height:u,offset:d},F?!0:v);si(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(bc(D),"]")),Array.isArray(D)&&(_=D)}return W.createElement("g",{className:"recharts-cartesian-grid"},W.createElement(EAe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),W.createElement(_Ae,Vl({},m,{offset:d,horizontalPoints:E,xAxis:k,yAxis:N})),W.createElement(OAe,Vl({},m,{offset:d,verticalPoints:_,xAxis:k,yAxis:N})),W.createElement(IAe,Vl({},m,{horizontalPoints:E})),W.createElement(RAe,Vl({},m,{verticalPoints:_})))}IG.displayName="CartesianGrid";function Rd(e){"@babel/helpers - typeof";return Rd=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},Rd(e)}function LAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ae(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,DG(n.key),n)}}function FAe(e,t,r){return t&&$Ae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BAe(e,t,r){return t=lv(t),VAe(e,RG()?Reflect.construct(t,r||[],lv(e).constructor):t.apply(e,r))}function VAe(e,t){if(t&&(Rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qAe(e)}function qAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RG=function(){return!!e})()}function lv(e){return lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lv(e)}function WAe(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&&PA(e,t)}function PA(e,t){return PA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},PA(e,t)}function MG(e,t,r){return t=DG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DG(e){var t=zAe(e,"string");return Rd(t)=="symbol"?t:t+""}function zAe(e,t){if(Rd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EA(){return EA=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},EA.apply(this,arguments)}function UAe(e){var t=e.xAxisId,r=BE(),n=VE(),i=wG(t);return i==null?null:S.createElement(ff,EA({},i,{className:yt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return ha(o,!0)}}))}var zb=(function(e){function t(){return LAe(this,t),BAe(this,t,arguments)}return WAe(t,e),FAe(t,[{key:"render",value:function(){return S.createElement(UAe,this.props)}}])})(S.Component);MG(zb,"displayName","XAxis");MG(zb,"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 Md(e){"@babel/helpers - typeof";return Md=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},Md(e)}function HAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GAe(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,FG(n.key),n)}}function KAe(e,t,r){return t&&GAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YAe(e,t,r){return t=cv(t),XAe(e,LG()?Reflect.construct(t,r||[],cv(e).constructor):t.apply(e,r))}function XAe(e,t){if(t&&(Md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QAe(e)}function QAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LG=function(){return!!e})()}function cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cv(e)}function ZAe(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&&_A(e,t)}function _A(e,t){return _A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_A(e,t)}function $G(e,t,r){return t=FG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FG(e){var t=JAe(e,"string");return Md(t)=="symbol"?t:t+""}function JAe(e,t){if(Md(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Md(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OA(){return OA=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},OA.apply(this,arguments)}var eCe=function(t){var r=t.yAxisId,n=BE(),i=VE(),a=jG(r);return a==null?null:S.createElement(ff,OA({},a,{className:yt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(l){return ha(l,!0)}}))},Ub=(function(e){function t(){return HAe(this,t),YAe(this,t,arguments)}return ZAe(t,e),KAe(t,[{key:"render",value:function(){return S.createElement(eCe,this.props)}}])})(S.Component);$G(Ub,"displayName","YAxis");$G(Ub,"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 X$(e){return sCe(e)||nCe(e)||rCe(e)||tCe()}function tCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
753In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rCe(e,t){if(e){if(typeof e=="string")return IA(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 IA(e,t)}}function nCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sCe(e){if(Array.isArray(e))return IA(e)}function IA(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 RA=function(t,r,n,i,a){var o=_s(t,WE),l=_s(t,Vb),u=[].concat(X$(o),X$(l)),d=_s(t,Wb),m="".concat(i,"Id"),h=i[0],p=r;if(u.length&&(p=u.reduce(function(v,y){if(y.props[m]===n&&_i(y.props,"extendDomain")&&Ne(y.props[h])){var j=y.props[h];return[Math.min(v[0],j),Math.max(v[1],j)]}return v},p)),d.length){var x="".concat(h,"1"),w="".concat(h,"2");p=d.reduce(function(v,y){if(y.props[m]===n&&_i(y.props,"extendDomain")&&Ne(y.props[x])&&Ne(y.props[w])){var j=y.props[x],k=y.props[w];return[Math.min(v[0],j,k),Math.max(v[1],j,k)]}return v},p)}return a&&a.length&&(p=a.reduce(function(v,y){return Ne(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},p)),p},IN={exports:{}},Q$;function iCe(){return Q$||(Q$=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,d,m){this.fn=u,this.context=d,this.once=m||!1}function a(u,d,m,h,p){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,h||u,p),w=r?r+d:d;return u._events[w]?u._events[w].fn?u._events[w]=[u._events[w],x]:u._events[w].push(x):(u._events[w]=x,u._eventsCount++),u}function o(u,d){--u._eventsCount===0?u._events=new n:delete u._events[d]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],m,h;if(this._eventsCount===0)return d;for(h in m=this._events)t.call(m,h)&&d.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},l.prototype.listeners=function(d){var m=r?r+d:d,h=this._events[m];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,x=h.length,w=new Array(x);p<x;p++)w[p]=h[p].fn;return w},l.prototype.listenerCount=function(d){var m=r?r+d:d,h=this._events[m];return h?h.fn?1:h.length:0},l.prototype.emit=function(d,m,h,p,x,w){var v=r?r+d:d;if(!this._events[v])return!1;var y=this._events[v],j=arguments.length,k,N;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),j){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,m),!0;case 3:return y.fn.call(y.context,m,h),!0;case 4:return y.fn.call(y.context,m,h,p),!0;case 5:return y.fn.call(y.context,m,h,p,x),!0;case 6:return y.fn.call(y.context,m,h,p,x,w),!0}for(N=1,k=new Array(j-1);N<j;N++)k[N-1]=arguments[N];y.fn.apply(y.context,k)}else{var C=y.length,A;for(N=0;N<C;N++)switch(y[N].once&&this.removeListener(d,y[N].fn,void 0,!0),j){case 1:y[N].fn.call(y[N].context);break;case 2:y[N].fn.call(y[N].context,m);break;case 3:y[N].fn.call(y[N].context,m,h);break;case 4:y[N].fn.call(y[N].context,m,h,p);break;default:if(!k)for(A=1,k=new Array(j-1);A<j;A++)k[A-1]=arguments[A];y[N].fn.apply(y[N].context,k)}}return!0},l.prototype.on=function(d,m,h){return a(this,d,m,h,!1)},l.prototype.once=function(d,m,h){return a(this,d,m,h,!0)},l.prototype.removeListener=function(d,m,h,p){var x=r?r+d:d;if(!this._events[x])return this;if(!m)return o(this,x),this;var w=this._events[x];if(w.fn)w.fn===m&&(!p||w.once)&&(!h||w.context===h)&&o(this,x);else{for(var v=0,y=[],j=w.length;v<j;v++)(w[v].fn!==m||p&&!w[v].once||h&&w[v].context!==h)&&y.push(w[v]);y.length?this._events[x]=y.length===1?y[0]:y:o(this,x)}return this},l.prototype.removeAllListeners=function(d){var m;return d?(m=r?r+d:d,this._events[m]&&o(this,m)):(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})(IN)),IN.exports}var aCe=iCe();const oCe=Tt(aCe);var RN=new oCe,MN="recharts.syncMouseEvents";function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}function lCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cCe(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,BG(n.key),n)}}function uCe(e,t,r){return t&&cCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DN(e,t,r){return t=BG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BG(e){var t=dCe(e,"string");return Fm(t)=="symbol"?t:t+""}function dCe(e,t){if(Fm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fCe=(function(){function e(){lCe(this,e),DN(this,"activeIndex",0),DN(this,"coordinateList",[]),DN(this,"layout","horizontal")}return uCe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,l=o===void 0?null:o,u=r.layout,d=u===void 0?null:u,m=r.offset,h=m===void 0?null:m,p=r.mouseHandlerCallback,x=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,d=((r=window)===null||r===void 0?void 0:r.scrollX)||0,m=((n=window)===null||n===void 0?void 0:n.scrollY)||0,h=a+u+d,p=o+this.offset.top+l/2+m;this.mouseHandlerCallback({pageX:h,pageY:p})}}}])})();function hCe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&Ne(n)&&Ne(i))return!0}return!1}function mCe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function VG(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Yt(t,r,n,i),l=Yt(t,r,n,a);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function pCe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,d=t.innerRadius,m=t.outerRadius,h=t.angle,p=Yt(l,u,d,h),x=Yt(l,u,m,h);n=p.x,i=p.y,a=x.x,o=x.y}else return VG(t);return[{x:n,y:i},{x:a,y:o}]}function Bm(e){"@babel/helpers - typeof";return Bm=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},Bm(e)}function Z$(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z$(Object(r),!0).forEach(function(n){gCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z$(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gCe(e,t,r){return t=xCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xCe(e){var t=yCe(e,"string");return Bm(t)=="symbol"?t:t+""}function yCe(e,t){if(Bm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vCe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,u=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,h=e.layout,p=e.chartName,x=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!x||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var w,v=nA;if(p==="ScatterChart")w=o,v=eNe;else if(p==="BarChart")w=mCe(h,o,u,m),v=ME;else if(h==="radial"){var y=VG(o),j=y.cx,k=y.cy,N=y.radius,C=y.startAngle,A=y.endAngle;w={cx:j,cy:k,startAngle:C,endAngle:A,innerRadius:N,outerRadius:N},v=zH}else w={points:pCe(h,o,u)},v=nA;var E=nx(nx(nx(nx({stroke:"#ccc",pointerEvents:"none"},u),w),it(x,!1)),{},{payload:l,payloadIndex:d,className:yt("recharts-tooltip-cursor",x.className)});return S.isValidElement(x)?S.cloneElement(x,E):S.createElement(v,E)}var bCe=["item"],wCe=["children","className","width","height","style","compact","title","desc"];function Dd(e){"@babel/helpers - typeof";return Dd=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},Dd(e)}function Pu(){return Pu=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},Pu.apply(this,arguments)}function J$(e,t){return kCe(e)||SCe(e,t)||WG(e,t)||jCe()}function jCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
754In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function kCe(e){if(Array.isArray(e))return e}function eF(e,t){if(e==null)return{};var r=NCe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NCe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ACe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zG(n.key),n)}}function CCe(e,t,r){return t&&ACe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PCe(e,t,r){return t=uv(t),ECe(e,qG()?Reflect.construct(t,r||[],uv(e).constructor):t.apply(e,r))}function ECe(e,t){if(t&&(Dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Ce(e)}function _Ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qG=function(){return!!e})()}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uv(e)}function OCe(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&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},MA(e,t)}function Ld(e){return MCe(e)||RCe(e)||WG(e)||ICe()}function ICe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
755In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WG(e,t){if(e){if(typeof e=="string")return DA(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 DA(e,t)}}function RCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MCe(e){if(Array.isArray(e))return DA(e)}function DA(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 tF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tF(Object(r),!0).forEach(function(n){rt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tF(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rt(e,t,r){return t=zG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zG(e){var t=DCe(e,"string");return Dd(t)=="symbol"?t:t+""}function DCe(e,t){if(Dd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LCe={xAxis:["bottom","top"],yAxis:["left","right"]},$Ce={width:"100%",height:"100%"},UG={x:0,y:0};function sx(e){return e}var FCe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},BCe=function(t,r,n,i){var a=r.find(function(m){return m&&m.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return oe(oe(oe({},i),Yt(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var u=a.coordinate,d=i.angle;return oe(oe(oe({},i),Yt(i.cx,i.cy,u,d)),{},{angle:d,radius:u})}return UG},Hb=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(l,u){var d=u.props.data;return d&&d.length?[].concat(Ld(l),Ld(d)):l},[]);return o.length>0?o:t&&t.length&&Ne(i)&&Ne(a)?t.slice(i,a+1):[]};function HG(e){return e==="number"?[0,"auto"]:void 0}var LA=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Hb(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,d){var m,h=(m=d.props.data)!==null&&m!==void 0?m:r;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var x=h===void 0?l:h;p=yT(x,o.dataKey,i)}else p=h&&h[n]||l[n];return p?[].concat(Ld(u),[$H(d,p)]):u},[])},rF=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=FCe(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,d=t.tooltipTicks,m=Nje(o,l,d,u);if(m>=0&&d){var h=d[m]&&d[m].value,p=LA(t,r,m,h),x=BCe(n,l,m,a);return{activeTooltipIndex:m,activeLabel:h,activePayload:p,activeCoordinate:x}}return null},VCe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,m=t.layout,h=t.children,p=t.stackOffset,x=OH(m,a);return n.reduce(function(w,v){var y,j=v.type.defaultProps!==void 0?oe(oe({},v.type.defaultProps),v.props):v.props,k=j.type,N=j.dataKey,C=j.allowDataOverflow,A=j.allowDuplicatedCategory,E=j.scale,_=j.ticks,R=j.includeHidden,O=j[o];if(w[O])return w;var F=Hb(t.data,{graphicalItems:i.filter(function(X){var ce,ye=o in X.props?X.props[o]:(ce=X.type.defaultProps)===null||ce===void 0?void 0:ce[o];return ye===O}),dataStartIndex:u,dataEndIndex:d}),D=F.length,L,I,$;hCe(j.domain,C,k)&&(L=ZT(j.domain,null,C),x&&(k==="number"||E!=="auto")&&($=Vh(F,N,"category")));var z=HG(k);if(!L||L.length===0){var K,Z=(K=j.domain)!==null&&K!==void 0?K:z;if(N){if(L=Vh(F,N,k),k==="category"&&x){var U=vpe(L);A&&U?(I=L,L=Zy(0,D)):A||(L=uL(Z,L,v).reduce(function(X,ce){return X.indexOf(ce)>=0?X:[].concat(Ld(X),[ce])},[]))}else if(k==="category")A?L=L.filter(function(X){return X!==""&&!jt(X)}):L=uL(Z,L,v).reduce(function(X,ce){return X.indexOf(ce)>=0||ce===""||jt(ce)?X:[].concat(Ld(X),[ce])},[]);else if(k==="number"){var q=Eje(F,i.filter(function(X){var ce,ye,$e=o in X.props?X.props[o]:(ce=X.type.defaultProps)===null||ce===void 0?void 0:ce[o],Te="hide"in X.props?X.props.hide:(ye=X.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return $e===O&&(R||!Te)}),N,a,m);q&&(L=q)}x&&(k==="number"||E!=="auto")&&($=Vh(F,N,"category"))}else x?L=Zy(0,D):l&&l[O]&&l[O].hasStack&&k==="number"?L=p==="expand"?[0,1]:LH(l[O].stackGroups,u,d):L=_H(F,i.filter(function(X){var ce=o in X.props?X.props[o]:X.type.defaultProps[o],ye="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return ce===O&&(R||!ye)}),k,m,!0);if(k==="number")L=RA(h,L,O,a,_),Z&&(L=ZT(Z,L,C));else if(k==="category"&&Z){var B=Z,V=L.every(function(X){return B.indexOf(X)>=0});V&&(L=B)}}return oe(oe({},w),{},rt({},O,oe(oe({},j),{},{axisType:a,domain:L,categoricalDomain:$,duplicateDomain:I,originalDomain:(y=j.domain)!==null&&y!==void 0?y:z,isCategorical:x,layout:m})))},{})},qCe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,m=t.layout,h=t.children,p=Hb(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:d}),x=p.length,w=OH(m,a),v=-1;return n.reduce(function(y,j){var k=j.type.defaultProps!==void 0?oe(oe({},j.type.defaultProps),j.props):j.props,N=k[o],C=HG("number");if(!y[N]){v++;var A;return w?A=Zy(0,x):l&&l[N]&&l[N].hasStack?(A=LH(l[N].stackGroups,u,d),A=RA(h,A,N,a)):(A=ZT(C,_H(p,n.filter(function(E){var _,R,O=o in E.props?E.props[o]:(_=E.type.defaultProps)===null||_===void 0?void 0:_[o],F="hide"in E.props?E.props.hide:(R=E.type.defaultProps)===null||R===void 0?void 0:R.hide;return O===N&&!F}),"number",m),i.defaultProps.allowDataOverflow),A=RA(h,A,N,a)),oe(oe({},y),{},rt({},N,oe(oe({axisType:a},i.defaultProps),{},{hide:!0,orientation:ls(LCe,"".concat(a,".").concat(v%2),null),domain:A,originalDomain:C,isCategorical:w,layout:m})))}return y},{})},WCe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,d=r.dataEndIndex,m=t.children,h="".concat(i,"Id"),p=_s(m,a),x={};return p&&p.length?x=VCe(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:d}):o&&o.length&&(x=qCe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:d})),x},zCe=function(t){var r=bo(t),n=ha(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:lE(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Fy(r,n)}},nF=function(t){var r=t.children,n=t.defaultShowTooltip,i=Yn(r,Cd),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},UCe=function(t){return!t||!t.length?!1:t.some(function(r){var n=va(r&&r.type);return n&&n.indexOf("Bar")>=0})},sF=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"}},HCe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,d=n.width,m=n.height,h=n.children,p=n.margin||{},x=Yn(h,Cd),w=Yn(h,ec),v=Object.keys(u).reduce(function(A,E){var _=u[E],R=_.orientation;return!_.mirror&&!_.hide?oe(oe({},A),{},rt({},R,A[R]+_.width)):A},{left:p.left||0,right:p.right||0}),y=Object.keys(o).reduce(function(A,E){var _=o[E],R=_.orientation;return!_.mirror&&!_.hide?oe(oe({},A),{},rt({},R,ls(A,"".concat(R))+_.height)):A},{top:p.top||0,bottom:p.bottom||0}),j=oe(oe({},y),v),k=j.bottom;x&&(j.bottom+=x.props.height||Cd.defaultProps.height),w&&r&&(j=Cje(j,i,n,r));var N=d-j.left-j.right,C=m-j.top-j.bottom;return oe(oe({brushBottom:k},j),{},{width:Math.max(N,0),height:Math.max(C,0)})},GCe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},GG=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,h=t.defaultProps,p=function(j,k){var N=k.graphicalItems,C=k.stackGroups,A=k.offset,E=k.updateId,_=k.dataStartIndex,R=k.dataEndIndex,O=j.barSize,F=j.layout,D=j.barGap,L=j.barCategoryGap,I=j.maxBarSize,$=sF(F),z=$.numericAxisName,K=$.cateAxisName,Z=UCe(N),U=[];return N.forEach(function(q,B){var V=Hb(j.data,{graphicalItems:[q],dataStartIndex:_,dataEndIndex:R}),X=q.type.defaultProps!==void 0?oe(oe({},q.type.defaultProps),q.props):q.props,ce=X.dataKey,ye=X.maxBarSize,$e=X["".concat(z,"Id")],Te=X["".concat(K,"Id")],ge={},Ae=u.reduce(function(Fr,Pr){var ol=k["".concat(Pr.axisType,"Map")],Ba=X["".concat(Pr.axisType,"Id")];ol&&ol[Ba]||Pr.axisType==="zAxis"||vc();var G=ol[Ba];return oe(oe({},Fr),{},rt(rt({},Pr.axisType,G),"".concat(Pr.axisType,"Ticks"),ha(G)))},ge),le=Ae[K],Se=Ae["".concat(K,"Ticks")],Pe=C&&C[$e]&&C[$e].hasStack&&Fje(q,C[$e].stackGroups),ae=va(q.type).indexOf("Bar")>=0,at=Fy(le,Se),Ye=[],mt=Z&&Tje({barSize:O,stackGroups:C,totalSize:GCe(Ae,K)});if(ae){var Ie,pt,rr=jt(ye)?I:ye,zt=(Ie=(pt=Fy(le,Se,!0))!==null&&pt!==void 0?pt:rr)!==null&&Ie!==void 0?Ie:0;Ye=Aje({barGap:D,barCategoryGap:L,bandSize:zt!==at?zt:at,sizeList:mt[Te],maxBarSize:rr}),zt!==at&&(Ye=Ye.map(function(Fr){return oe(oe({},Fr),{},{position:oe(oe({},Fr.position),{},{offset:Fr.position.offset-zt/2})})}))}var tn=q&&q.type&&q.type.getComposedData;tn&&U.push({props:oe(oe({},tn(oe(oe({},Ae),{},{displayedData:V,props:j,dataKey:ce,item:q,bandSize:at,barPosition:Ye,offset:A,stackedData:Pe,layout:F,dataStartIndex:_,dataEndIndex:R}))),{},rt(rt(rt({key:q.key||"item-".concat(B)},z,Ae[z]),K,Ae[K]),"animationId",E)),childIndex:_pe(q,j.children),item:q})}),U},x=function(j,k){var N=j.props,C=j.dataStartIndex,A=j.dataEndIndex,E=j.updateId;if(!N3({props:N}))return null;var _=N.children,R=N.layout,O=N.stackOffset,F=N.data,D=N.reverseStackOrder,L=sF(R),I=L.numericAxisName,$=L.cateAxisName,z=_s(_,n),K=Lje(F,z,"".concat(I,"Id"),"".concat($,"Id"),O,D),Z=u.reduce(function(X,ce){var ye="".concat(ce.axisType,"Map");return oe(oe({},X),{},rt({},ye,WCe(N,oe(oe({},ce),{},{graphicalItems:z,stackGroups:ce.axisType===I&&K,dataStartIndex:C,dataEndIndex:A}))))},{}),U=HCe(oe(oe({},Z),{},{props:N,graphicalItems:z}),k==null?void 0:k.legendBBox);Object.keys(Z).forEach(function(X){Z[X]=m(N,Z[X],U,X.replace("Map",""),r)});var q=Z["".concat($,"Map")],B=zCe(q),V=p(N,oe(oe({},Z),{},{dataStartIndex:C,dataEndIndex:A,updateId:E,graphicalItems:z,stackGroups:K,offset:U}));return oe(oe({formattedGraphicalItems:V,graphicalItems:z,offset:U,stackGroups:K},B),Z)},w=(function(y){function j(k){var N,C,A;return TCe(this,j),A=PCe(this,j,[k]),rt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),rt(A,"accessibilityManager",new fCe),rt(A,"handleLegendBBoxUpdate",function(E){if(E){var _=A.state,R=_.dataStartIndex,O=_.dataEndIndex,F=_.updateId;A.setState(oe({legendBBox:E},x({props:A.props,dataStartIndex:R,dataEndIndex:O,updateId:F},oe(oe({},A.state),{},{legendBBox:E}))))}}),rt(A,"handleReceiveSyncEvent",function(E,_,R){if(A.props.syncId===E){if(R===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(_)}}),rt(A,"handleBrushChange",function(E){var _=E.startIndex,R=E.endIndex;if(_!==A.state.dataStartIndex||R!==A.state.dataEndIndex){var O=A.state.updateId;A.setState(function(){return oe({dataStartIndex:_,dataEndIndex:R},x({props:A.props,dataStartIndex:_,dataEndIndex:R,updateId:O},A.state))}),A.triggerSyncEvent({dataStartIndex:_,dataEndIndex:R})}}),rt(A,"handleMouseEnter",function(E){var _=A.getMouseInfo(E);if(_){var R=oe(oe({},_),{},{isTooltipActive:!0});A.setState(R),A.triggerSyncEvent(R);var O=A.props.onMouseEnter;lt(O)&&O(R,E)}}),rt(A,"triggeredAfterMouseMove",function(E){var _=A.getMouseInfo(E),R=_?oe(oe({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(R),A.triggerSyncEvent(R);var O=A.props.onMouseMove;lt(O)&&O(R,E)}),rt(A,"handleItemMouseEnter",function(E){A.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),rt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),rt(A,"handleMouseMove",function(E){E.persist(),A.throttleTriggeredAfterMouseMove(E)}),rt(A,"handleMouseLeave",function(E){A.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};A.setState(_),A.triggerSyncEvent(_);var R=A.props.onMouseLeave;lt(R)&&R(_,E)}),rt(A,"handleOuterEvent",function(E){var _=Epe(E),R=ls(A.props,"".concat(_));if(_&&lt(R)){var O,F;/.*touch.*/i.test(_)?F=A.getMouseInfo(E.changedTouches[0]):F=A.getMouseInfo(E),R((O=F)!==null&&O!==void 0?O:{},E)}}),rt(A,"handleClick",function(E){var _=A.getMouseInfo(E);if(_){var R=oe(oe({},_),{},{isTooltipActive:!0});A.setState(R),A.triggerSyncEvent(R);var O=A.props.onClick;lt(O)&&O(R,E)}}),rt(A,"handleMouseDown",function(E){var _=A.props.onMouseDown;if(lt(_)){var R=A.getMouseInfo(E);_(R,E)}}),rt(A,"handleMouseUp",function(E){var _=A.props.onMouseUp;if(lt(_)){var R=A.getMouseInfo(E);_(R,E)}}),rt(A,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),rt(A,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&A.handleMouseDown(E.changedTouches[0])}),rt(A,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&A.handleMouseUp(E.changedTouches[0])}),rt(A,"handleDoubleClick",function(E){var _=A.props.onDoubleClick;if(lt(_)){var R=A.getMouseInfo(E);_(R,E)}}),rt(A,"handleContextMenu",function(E){var _=A.props.onContextMenu;if(lt(_)){var R=A.getMouseInfo(E);_(R,E)}}),rt(A,"triggerSyncEvent",function(E){A.props.syncId!==void 0&&RN.emit(MN,A.props.syncId,E,A.eventEmitterSymbol)}),rt(A,"applySyncEvent",function(E){var _=A.props,R=_.layout,O=_.syncMethod,F=A.state.updateId,D=E.dataStartIndex,L=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)A.setState(oe({dataStartIndex:D,dataEndIndex:L},x({props:A.props,dataStartIndex:D,dataEndIndex:L,updateId:F},A.state)));else if(E.activeTooltipIndex!==void 0){var I=E.chartX,$=E.chartY,z=E.activeTooltipIndex,K=A.state,Z=K.offset,U=K.tooltipTicks;if(!Z)return;if(typeof O=="function")z=O(U,E);else if(O==="value"){z=-1;for(var q=0;q<U.length;q++)if(U[q].value===E.activeLabel){z=q;break}}var B=oe(oe({},Z),{},{x:Z.left,y:Z.top}),V=Math.min(I,B.x+B.width),X=Math.min($,B.y+B.height),ce=U[z]&&U[z].value,ye=LA(A.state,A.props.data,z),$e=U[z]?{x:R==="horizontal"?U[z].coordinate:V,y:R==="horizontal"?X:U[z].coordinate}:UG;A.setState(oe(oe({},E),{},{activeLabel:ce,activeCoordinate:$e,activePayload:ye,activeTooltipIndex:z}))}else A.setState(E)}),rt(A,"renderCursor",function(E){var _,R=A.state,O=R.isTooltipActive,F=R.activeCoordinate,D=R.activePayload,L=R.offset,I=R.activeTooltipIndex,$=R.tooltipAxisBandSize,z=A.getTooltipEventType(),K=(_=E.props.active)!==null&&_!==void 0?_:O,Z=A.props.layout,U=E.key||"_recharts-cursor";return W.createElement(vCe,{key:U,activeCoordinate:F,activePayload:D,activeTooltipIndex:I,chartName:r,element:E,isActive:K,layout:Z,offset:L,tooltipAxisBandSize:$,tooltipEventType:z})}),rt(A,"renderPolarAxis",function(E,_,R){var O=ls(E,"type.axisType"),F=ls(A.state,"".concat(O,"Map")),D=E.type.defaultProps,L=D!==void 0?oe(oe({},D),E.props):E.props,I=F&&F[L["".concat(O,"Id")]];return S.cloneElement(E,oe(oe({},I),{},{className:yt(O,I.className),key:E.key||"".concat(_,"-").concat(R),ticks:ha(I,!0)}))}),rt(A,"renderPolarGrid",function(E){var _=E.props,R=_.radialLines,O=_.polarAngles,F=_.polarRadius,D=A.state,L=D.radiusAxisMap,I=D.angleAxisMap,$=bo(L),z=bo(I),K=z.cx,Z=z.cy,U=z.innerRadius,q=z.outerRadius;return S.cloneElement(E,{polarAngles:Array.isArray(O)?O:ha(z,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(F)?F:ha($,!0).map(function(B){return B.coordinate}),cx:K,cy:Z,innerRadius:U,outerRadius:q,key:E.key||"polar-grid",radialLines:R})}),rt(A,"renderLegend",function(){var E=A.state.formattedGraphicalItems,_=A.props,R=_.children,O=_.width,F=_.height,D=A.props.margin||{},L=O-(D.left||0)-(D.right||0),I=PH({children:R,formattedGraphicalItems:E,legendWidth:L,legendContent:d});if(!I)return null;var $=I.item,z=eF(I,bCe);return S.cloneElement($,oe(oe({},z),{},{chartWidth:O,chartHeight:F,margin:D,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),rt(A,"renderTooltip",function(){var E,_=A.props,R=_.children,O=_.accessibilityLayer,F=Yn(R,Cs);if(!F)return null;var D=A.state,L=D.isTooltipActive,I=D.activeCoordinate,$=D.activePayload,z=D.activeLabel,K=D.offset,Z=(E=F.props.active)!==null&&E!==void 0?E:L;return S.cloneElement(F,{viewBox:oe(oe({},K),{},{x:K.left,y:K.top}),active:Z,label:z,payload:Z?$:[],coordinate:I,accessibilityLayer:O})}),rt(A,"renderBrush",function(E){var _=A.props,R=_.margin,O=_.data,F=A.state,D=F.offset,L=F.dataStartIndex,I=F.dataEndIndex,$=F.updateId;return S.cloneElement(E,{key:E.key||"_recharts-brush",onChange:Jg(A.handleBrushChange,E.props.onChange),data:O,x:Ne(E.props.x)?E.props.x:D.left,y:Ne(E.props.y)?E.props.y:D.top+D.height+D.brushBottom-(R.bottom||0),width:Ne(E.props.width)?E.props.width:D.width,startIndex:L,endIndex:I,updateId:"brush-".concat($)})}),rt(A,"renderReferenceElement",function(E,_,R){if(!E)return null;var O=A,F=O.clipPathId,D=A.state,L=D.xAxisMap,I=D.yAxisMap,$=D.offset,z=E.type.defaultProps||{},K=E.props,Z=K.xAxisId,U=Z===void 0?z.xAxisId:Z,q=K.yAxisId,B=q===void 0?z.yAxisId:q;return S.cloneElement(E,{key:E.key||"".concat(_,"-").concat(R),xAxis:L[U],yAxis:I[B],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:F})}),rt(A,"renderActivePoints",function(E){var _=E.item,R=E.activePoint,O=E.basePoint,F=E.childIndex,D=E.isRange,L=[],I=_.props.key,$=_.item.type.defaultProps!==void 0?oe(oe({},_.item.type.defaultProps),_.item.props):_.item.props,z=$.activeDot,K=$.dataKey,Z=oe(oe({index:F,dataKey:K,cx:R.x,cy:R.y,r:4,fill:RE(_.item),strokeWidth:2,stroke:"#fff",payload:R.payload,value:R.value},it(z,!1)),my(z));return L.push(j.renderActiveDot(z,Z,"".concat(I,"-activePoint-").concat(F))),O?L.push(j.renderActiveDot(z,oe(oe({},Z),{},{cx:O.x,cy:O.y}),"".concat(I,"-basePoint-").concat(F))):D&&L.push(null),L}),rt(A,"renderGraphicChild",function(E,_,R){var O=A.filterFormatItem(E,_,R);if(!O)return null;var F=A.getTooltipEventType(),D=A.state,L=D.isTooltipActive,I=D.tooltipAxis,$=D.activeTooltipIndex,z=D.activeLabel,K=A.props.children,Z=Yn(K,Cs),U=O.props,q=U.points,B=U.isRange,V=U.baseLine,X=O.item.type.defaultProps!==void 0?oe(oe({},O.item.type.defaultProps),O.item.props):O.item.props,ce=X.activeDot,ye=X.hide,$e=X.activeBar,Te=X.activeShape,ge=!!(!ye&&L&&Z&&(ce||$e||Te)),Ae={};F!=="axis"&&Z&&Z.props.trigger==="click"?Ae={onClick:Jg(A.handleItemMouseEnter,E.props.onClick)}:F!=="axis"&&(Ae={onMouseLeave:Jg(A.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Jg(A.handleItemMouseEnter,E.props.onMouseEnter)});var le=S.cloneElement(E,oe(oe({},O.props),Ae));function Se(Pr){return typeof I.dataKey=="function"?I.dataKey(Pr.payload):null}if(ge)if($>=0){var Pe,ae;if(I.dataKey&&!I.allowDuplicatedCategory){var at=typeof I.dataKey=="function"?Se:"payload.".concat(I.dataKey.toString());Pe=yT(q,at,z),ae=B&&V&&yT(V,at,z)}else Pe=q==null?void 0:q[$],ae=B&&V&&V[$];if(Te||$e){var Ye=E.props.activeIndex!==void 0?E.props.activeIndex:$;return[S.cloneElement(E,oe(oe(oe({},O.props),Ae),{},{activeIndex:Ye})),null,null]}if(!jt(Pe))return[le].concat(Ld(A.renderActivePoints({item:O,activePoint:Pe,basePoint:ae,childIndex:$,isRange:B})))}else{var mt,Ie=(mt=A.getItemByXY(A.state.activeCoordinate))!==null&&mt!==void 0?mt:{graphicalItem:le},pt=Ie.graphicalItem,rr=pt.item,zt=rr===void 0?E:rr,tn=pt.childIndex,Fr=oe(oe(oe({},O.props),Ae),{},{activeIndex:tn});return[S.cloneElement(zt,Fr),null,null]}return B?[le,null,null]:[le,null]}),rt(A,"renderCustomized",function(E,_,R){return S.cloneElement(E,oe(oe({key:"recharts-customized-".concat(R)},A.props),A.state))}),rt(A,"renderMap",{CartesianGrid:{handler:sx,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:sx},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:sx},YAxis:{handler:sx},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((N=k.id)!==null&&N!==void 0?N:mp("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=PU(A.triggeredAfterMouseMove,(C=k.throttleDelay)!==null&&C!==void 0?C:1e3/60),A.state={},A}return OCe(j,y),CCe(j,[{key:"componentDidMount",value:function(){var N,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(N=this.props.margin.left)!==null&&N!==void 0?N:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var N=this.props,C=N.children,A=N.data,E=N.height,_=N.layout,R=Yn(C,Cs);if(R){var O=R.props.defaultIndex;if(!(typeof O!="number"||O<0||O>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[O]&&this.state.tooltipTicks[O].value,D=LA(this.state,A,O,F),L=this.state.tooltipTicks[O].coordinate,I=(this.state.offset.top+E)/2,$=_==="horizontal",z=$?{x:L,y:I}:{y:L,x:I},K=this.state.formattedGraphicalItems.find(function(U){var q=U.item;return q.type.name==="Scatter"});K&&(z=oe(oe({},z),K.props.points[O].tooltipPosition),D=K.props.points[O].tooltipPayload);var Z={activeTooltipIndex:O,isTooltipActive:!0,activeLabel:F,activePayload:D,activeCoordinate:z};this.setState(Z),this.renderCursor(R),this.accessibilityManager.setIndex(O)}}}},{key:"getSnapshotBeforeUpdate",value:function(N,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==N.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==N.margin){var A,E;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(N){bT([Yn(N.children,Cs)],[Yn(this.props.children,Cs)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var N=Yn(this.props.children,Cs);if(N&&typeof N.props.shared=="boolean"){var C=N.props.shared?"axis":"item";return l.indexOf(C)>=0?C:a}return a}},{key:"getMouseInfo",value:function(N){if(!this.container)return null;var C=this.container,A=C.getBoundingClientRect(),E=xve(A),_={chartX:Math.round(N.pageX-E.left),chartY:Math.round(N.pageY-E.top)},R=A.width/C.offsetWidth||1,O=this.inRange(_.chartX,_.chartY,R);if(!O)return null;var F=this.state,D=F.xAxisMap,L=F.yAxisMap,I=this.getTooltipEventType(),$=rF(this.state,this.props.data,this.props.layout,O);if(I!=="axis"&&D&&L){var z=bo(D).scale,K=bo(L).scale,Z=z&&z.invert?z.invert(_.chartX):null,U=K&&K.invert?K.invert(_.chartY):null;return oe(oe({},_),{},{xValue:Z,yValue:U},$)}return $?oe(oe({},_),$):null}},{key:"inRange",value:function(N,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,_=N/A,R=C/A;if(E==="horizontal"||E==="vertical"){var O=this.state.offset,F=_>=O.left&&_<=O.left+O.width&&R>=O.top&&R<=O.top+O.height;return F?{x:_,y:R}:null}var D=this.state,L=D.angleAxisMap,I=D.radiusAxisMap;if(L&&I){var $=bo(L);return hL({x:_,y:R},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var N=this.props.children,C=this.getTooltipEventType(),A=Yn(N,Cs),E={};A&&C==="axis"&&(A.props.trigger==="click"?E={onClick:this.handleClick}:E={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 _=my(this.props,this.handleOuterEvent);return oe(oe({},_),E)}},{key:"addListener",value:function(){RN.on(MN,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){RN.removeListener(MN,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(N,C,A){for(var E=this.state.formattedGraphicalItems,_=0,R=E.length;_<R;_++){var O=E[_];if(O.item===N||O.props.key===N.key||C===va(O.item.type)&&A===O.childIndex)return O}return null}},{key:"renderClipPath",value:function(){var N=this.clipPathId,C=this.state.offset,A=C.left,E=C.top,_=C.height,R=C.width;return W.createElement("defs",null,W.createElement("clipPath",{id:N},W.createElement("rect",{x:A,y:E,height:_,width:R})))}},{key:"getXScales",value:function(){var N=this.state.xAxisMap;return N?Object.entries(N).reduce(function(C,A){var E=J$(A,2),_=E[0],R=E[1];return oe(oe({},C),{},rt({},_,R.scale))},{}):null}},{key:"getYScales",value:function(){var N=this.state.yAxisMap;return N?Object.entries(N).reduce(function(C,A){var E=J$(A,2),_=E[0],R=E[1];return oe(oe({},C),{},rt({},_,R.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(N){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[N])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(N){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[N])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(N){var C=this.state,A=C.formattedGraphicalItems,E=C.activeItem;if(A&&A.length)for(var _=0,R=A.length;_<R;_++){var O=A[_],F=O.props,D=O.item,L=D.type.defaultProps!==void 0?oe(oe({},D.type.defaultProps),D.props):D.props,I=va(D.type);if(I==="Bar"){var $=(F.data||[]).find(function(U){return Rke(N,U)});if($)return{graphicalItem:O,payload:$}}else if(I==="RadialBar"){var z=(F.data||[]).find(function(U){return hL(N,U)});if(z)return{graphicalItem:O,payload:z}}else if(Lb(O,E)||$b(O,E)||Rm(O,E)){var K=n2e({graphicalItem:O,activeTooltipItem:E,itemData:L.data}),Z=L.activeIndex===void 0?K:L.activeIndex;return{graphicalItem:oe(oe({},O),{},{childIndex:Z}),payload:Rm(O,E)?L.data[K]:O.props.data[K]}}}return null}},{key:"render",value:function(){var N=this;if(!N3(this))return null;var C=this.props,A=C.children,E=C.className,_=C.width,R=C.height,O=C.style,F=C.compact,D=C.title,L=C.desc,I=eF(C,wCe),$=it(I,!1);if(F)return W.createElement(L$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement(jT,Pu({},$,{width:_,height:R,title:D,desc:L}),this.renderClipPath(),A3(A,this.renderMap)));if(this.props.accessibilityLayer){var z,K;$.tabIndex=(z=this.props.tabIndex)!==null&&z!==void 0?z:0,$.role=(K=this.props.role)!==null&&K!==void 0?K:"application",$.onKeyDown=function(U){N.accessibilityManager.keyboardEvent(U)},$.onFocus=function(){N.accessibilityManager.focus()}}var Z=this.parseEventsOfWrapper();return W.createElement(L$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement("div",Pu({className:yt("recharts-wrapper",E),style:oe({position:"relative",cursor:"default",width:_,height:R},O)},Z,{ref:function(q){N.container=q}}),W.createElement(jT,Pu({},$,{width:_,height:R,title:D,desc:L,style:$Ce}),this.renderClipPath(),A3(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);rt(w,"displayName",r),rt(w,"defaultProps",oe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),rt(w,"getDerivedStateFromProps",function(y,j){var k=y.dataKey,N=y.data,C=y.children,A=y.width,E=y.height,_=y.layout,R=y.stackOffset,O=y.margin,F=j.dataStartIndex,D=j.dataEndIndex;if(j.updateId===void 0){var L=nF(y);return oe(oe(oe({},L),{},{updateId:0},x(oe(oe({props:y},L),{},{updateId:0}),j)),{},{prevDataKey:k,prevData:N,prevWidth:A,prevHeight:E,prevLayout:_,prevStackOffset:R,prevMargin:O,prevChildren:C})}if(k!==j.prevDataKey||N!==j.prevData||A!==j.prevWidth||E!==j.prevHeight||_!==j.prevLayout||R!==j.prevStackOffset||!Mu(O,j.prevMargin)){var I=nF(y),$={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},z=oe(oe({},rF(j,N,_)),{},{updateId:j.updateId+1}),K=oe(oe(oe({},I),$),z);return oe(oe(oe({},K),x(oe({props:y},K),j)),{},{prevDataKey:k,prevData:N,prevWidth:A,prevHeight:E,prevLayout:_,prevStackOffset:R,prevMargin:O,prevChildren:C})}if(!bT(C,j.prevChildren)){var Z,U,q,B,V=Yn(C,Cd),X=V&&(Z=(U=V.props)===null||U===void 0?void 0:U.startIndex)!==null&&Z!==void 0?Z:F,ce=V&&(q=(B=V.props)===null||B===void 0?void 0:B.endIndex)!==null&&q!==void 0?q:D,ye=X!==F||ce!==D,$e=!jt(N),Te=$e&&!ye?j.updateId:j.updateId+1;return oe(oe({updateId:Te},x(oe(oe({props:y},j),{},{updateId:Te,dataStartIndex:X,dataEndIndex:ce}),j)),{},{prevChildren:C,dataStartIndex:X,dataEndIndex:ce})}return null}),rt(w,"renderActiveDot",function(y,j,k){var N;return S.isValidElement(y)?N=S.cloneElement(y,j):lt(y)?N=y(j):N=W.createElement(DE,j),W.createElement($t,{className:"recharts-active-dot",ke
755y:k},N)});var v=S.forwardRef(function(j,k){return W.createElement(w,Pu({},j,{ref:k}))});return v.displayName=w.displayName,v},KCe=GG({chartName:"BarChart",GraphicalChild:Rc,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:zb},{axisType:"yAxis",AxisComp:Ub}],formatAxisMap:aTe}),iF=GG({chartName:"PieChart",GraphicalChild:Li,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Db},{axisType:"radiusAxis",AxisComp:Rb}],formatAxisMap:Yje,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Wt(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 Yo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const KG=6048e5,YCe=864e5,ix=43200,aF=1440;let XCe={};function bp(){return XCe}function Vm(e,t){var l,u,d,m;const r=bp(),n=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((m=(d=r.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,i=Wt(e),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function dv(e){return Vm(e,{weekStartsOn:1})}function YG(e){const t=Wt(e),r=t.getFullYear(),n=Yo(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const i=dv(n),a=Yo(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=dv(a);return t.getTime()>=i.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function oF(e){const t=Wt(e);return t.setHours(0,0,0,0),t}function fv(e){const t=Wt(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 QCe(e,t){const r=oF(e),n=oF(t),i=+r-fv(r),a=+n-fv(n);return Math.round((i-a)/YCe)}function ZCe(e){const t=YG(e),r=Yo(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),dv(r)}function Ex(e,t){const r=Wt(e),n=Wt(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function JCe(e){return Yo(e,Date.now())}function ePe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tPe(e){if(!ePe(e)&&typeof e!="number")return!1;const t=Wt(e);return!isNaN(Number(t))}function rPe(e,t){const r=Wt(e),n=Wt(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function nPe(e){return t=>{const r=Math.trunc,n=r(t);return n===0?0:n}}function sPe(e,t){return+Wt(e)-+Wt(t)}function iPe(e){const t=Wt(e);return t.setHours(23,59,59,999),t}function aPe(e){const t=Wt(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function oPe(e){const t=Wt(e);return+iPe(t)==+aPe(t)}function lPe(e,t){const r=Wt(e),n=Wt(t),i=Ex(r,n),a=Math.abs(rPe(r,n));let o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Ex(r,n)===-i;oPe(Wt(e))&&a===1&&Ex(e,n)===1&&(l=!1),o=i*(a-Number(l))}return o===0?0:o}function cPe(e,t,r){const n=sPe(e,t)/1e3;return nPe()(n)}function uPe(e){const t=Wt(e),r=Yo(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}const dPe={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"}},fPe=(e,t,r)=>{let n;const i=dPe[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function LN(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const hPe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mPe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pPe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gPe={date:LN({formats:hPe,defaultWidth:"full"}),time:LN({formats:mPe,defaultWidth:"full"}),dateTime:LN({formats:pPe,defaultWidth:"full"})},xPe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yPe=(e,t,r,n)=>xPe[e];function gh(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const vPe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bPe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wPe={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"]},jPe={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
755ay","Saturday"]},SPe={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"}},kPe={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"}},NPe=(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"},TPe={ordinalNumber:NPe,era:gh({values:vPe,defaultWidth:"wide"}),quarter:gh({values:bPe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gh({values:wPe,defaultWidth:"wide"}),day:gh({values:jPe,defaultWidth:"wide"}),dayPeriod:gh({values:SPe,defaultWidth:"wide",formattingValues:kPe,defaultFormattingWidth:"wide"})};function xh(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?CPe(l,h=>h.test(o)):APe(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(u):u,d=r.valueCallback?r.valueCallback(d):d;const m=t.slice(o.length);return{value:d,rest:m}}}function APe(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function CPe(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function PPe(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const EPe=/^(\d+)(th|st|nd|rd)?/i,_Pe=/\d+/i,OPe={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},IPe={any:[/^b/i,/^(a|c)/i]},RPe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},MPe={any:[/1/i,/2/i,/3/i,/4/i]},DPe={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},LPe={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]},$Pe={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},FPe={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]},BPe={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},VPe={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}},qPe={ordinalNumber:PPe({matchPattern:EPe,parsePattern:_Pe,valueCallback:e=>parseInt(e,10)}),era:xh({matchPatterns:OPe,defaultMatchWidth:"wide",parsePatterns:IPe,defaultParseWidth:"any"}),quarter:xh({matchPatterns:RPe,defaultMatchWidth:"wide",parsePatterns:MPe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xh({matchPatterns:DPe,defaultMatchWidth:"wide",parsePatterns:LPe,defaultParseWidth:"any"}),day:xh({matchPatterns:$Pe,defaultMatchWidth:"wide",parsePatterns:FPe,defaultParseWidth:"any"}),dayPeriod:xh({matchPatterns:BPe,defaultMatchWidth:"any",parsePatterns:VPe,defaultParseWidth:"any"})},XG={code:"en-US",formatDistance:fPe,formatLong:gPe,formatRelative:yPe,localize:TPe,match:qPe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function WPe(e){const t=Wt(e);return QCe(t,uPe(t))+1}function zPe(e){const t=Wt(e),r=+dv(t)-+ZCe(t);return Math.round(r/KG)+1}function QG(e,t){var m,h,p,x;const r=Wt(e),n=r.getFullYear(),i=bp(),a=(t==null?void 0:t.firstWeekContainsDate)??((h=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(p=i.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,o=Yo(e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const l=Vm(o,t),u=Yo(e,0);u.setFullYear(n,0,a),u.setHours(0,0,0,0);const d=Vm(u,t);return r.getTime()>=l.getTime()?n+1:r.getTime()>=d.getTime()?n:n-1}function UPe(e,t){var l,u,d,m;const r=bp(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(d=r.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,i=QG(e,t),a=Yo(e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),Vm(a,t)}function HPe(e,t){const r=Wt(e),n=+Vm(r,t)-+UPe(r,t);return Math.round(n/KG)+1}function Dt(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const co={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Dt(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Dt(r+1,2)},d(e,t){return Dt(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 Dt(e.getHours()%12||12,t.length)},H(e,t){return Dt(e.getHours(),t.length)},m(e,t){return Dt(e.getMinutes(),t.length)},s(e,t){return Dt(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return Dt(i,t.length)}},mu={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lF={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(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return co.y(e,t)},Y:function(e,t,r,n){const i=QG(e,n),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Dt(o,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):Dt(a,t.length)},R:function(e,t){const r=YG(e);return Dt(r,t.length)},u:function(e,t){const r=e.getFullYear();return Dt(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 Dt(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 Dt(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 co.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 Dt(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 i=HPe(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Dt(i,t.length)},I:function(e,t,r){const n=zPe(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Dt(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):co.d(e,t)},D:function(e,t,r){const n=WPe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Dt(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 i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Dt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Dt(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return Dt(i,t.length);case"io":return r.ordinalNumber(i,{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 i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=mu.noon:n===0?i=mu.midnight:i=n/12>
vendor: 4,427 bytes, line 755
755=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=mu.evening:n>=12?i=mu.afternoon:n>=4?i=mu.morning:i=mu.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{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 co.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):co.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Dt(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Dt(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):co.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):co.s(e,t)},S:function(e,t){return co.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return uF(n);case"XXXX":case"XX":return Ol(n);case"XXXXX":case"XXX":default:return Ol(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return uF(n);case"xxxx":case"xx":return Ol(n);case"xxxxx":case"xxx":default:return Ol(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cF(n,":");case"OOOO":default:return"GMT"+Ol(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cF(n,":");case"zzzz":default:return"GMT"+Ol(n,":")}},t:function(e,t,r){const n=Math.trunc(e.getTime()/1e3);return Dt(n,t.length)},T:function(e,t,r){const n=e.getTime();return Dt(n,t.length)}};function cF(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+t+Dt(a,2)}function uF(e,t){return e%60===0?(e>0?"-":"+")+Dt(Math.abs(e)/60,2):Ol(e,t)}function Ol(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Dt(Math.trunc(n/60),2),a=Dt(n%60,2);return r+i+t+a}const dF=(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"})}},ZG=(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"})}},GPe=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return dF(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",dF(n,t)).replace("{{time}}",ZG(i,t))},KPe={p:ZG,P:GPe},YPe=/^D+$/,XPe=/^Y+$/,QPe=["D","DD","YY","YYYY"];function ZPe(e){return YPe.test(e)}function JPe(e){return XPe.test(e)}function eEe(e,t,r){const n=tEe(e,t,r);if(console.warn(n),QPe.includes(e))throw new RangeError(n)}function tEe(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 rEe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nEe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sEe=/^'([^]*?)'?$/,iEe=/''/g,aEe=/[a-zA-Z]/;function oEe(e,t,r){var m,h,p,x;const n=bp(),i=n.locale??XG,a=n.firstWeekContainsDate??((h=(m=n.locale)==null?void 0:m.options)==null?void 0:h.firstWeekContainsDate)??1,o=n.weekStartsOn??((x=(p=n.locale)==null?void 0:p.options)==null?void 0:x.weekStartsOn)??0,l=Wt(e);if(!tPe(l))throw new RangeError("Invalid time value");let u=t.match(nEe).map(w=>{const v=w[0];if(v==="p"||v==="P"){const y=KPe[v];return y(w,i.formatLong)}return w}).join("").match(rEe).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const v=w[0];if(v==="'")return{isToken:!1,value:lEe(w)};if(lF[v])return{isToken:!0,value:w};
755if(v.match(aEe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(u=i.localize.preprocessor(l,u));const d={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return u.map(w=>{if(!w.isToken)return w.value;const v=w.value;(JPe(v)||ZPe(v))&&eEe(v,t,String(e));const y=lF[v[0]];return y(l,v,i.localize,d)}).join("")}function lEe(e){const t=e.match(sEe);return t?t[1].replace(iEe,"'"):e}function cEe(e,t,r){const n=bp(),i=(r==null?void 0:r.locale)??n.locale??XG,a=2520,o=Ex(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 u,d;o>0?(u=Wt(t),d=Wt(e)):(u=Wt(e),d=Wt(t));const m=cPe(d,u),h=(fv(d)-fv(u))/1e3,p=Math.round((m-h)/60);let x;if(p<2)return p===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",p,l);if(p<45)return i.formatDistance("xMinutes",p,l);if(p<90)return i.formatDistance("aboutXHours",1,l);if(p<aF){const w=Math.round(p/60);return i.formatDistance("aboutXHours",w,l)}else{if(p<a)return i.formatDistance("xDays",1,l);if(p<ix){const w=Math.round(p/aF);return i.formatDistance("xDays",w,l)}else if(p<ix*2)return x=Math.round(p/ix),i.formatDistance("aboutXMonths",x,l)}if(x=lPe(d,u),x<12){const w=Math.round(p/ix);return i.formatDistance("xMonths",w,l)}else{const w=x%12,v=Math.trunc(x/12);return w<3?i.formatDistance("aboutXYears",v,l):w<9?i.formatDistance("overXYears",v,l):i.formatDistance("almostXYears",v+1,l)}}function ri(e,t){return cEe(e,JCe(e),t)}const ta={all:"All Sites","pipeline-rebel":"Pipeline Rebel / RebelHQ","sidekick-genius":"Sidekick Genius","sales-sidekick":"SalesSidekick",joan:"Joan",unregistered:"Unregistered host"};function uEe(){var C,A,E,_,R,O,F,D,L;const[e,t]=S.useState("30"),[r,n]=S.useState("all"),[i,a]=S.useState(null),[o,l]=S.useState(null),{data:u,isLoading:d,error:m,refetch:h}=Qu({queryKey:["/api/analytics/summary",e,r],queryFn:async()=>{const I=new URLSearchParams({days:e});r!=="all"&&I.set("site",r);const $=await fetch(`/api/analytics/summary?${I.toString()}`,{credentials:"same-origin"});if(!$.ok)throw new Error("Failed to fetch analytics");return $.json()},refetchInterval:6e4}),p=()=>{h()},x=async()=>{const I=new URLSearchParams({days:e,limit:"5000",format:"csv"});r!=="all"&&I.set("site",r);try{const $=await fetch(`/api/analytics/form-security/quarantines?${I.toString()}`,{credentials:"same-origin"});if(!$.ok)throw new Error("Export failed");const z=Number($.headers.get("X-Export-Total")||0),K=Number($.headers.get("X-Export-Returned")||0),Z=await $.blob(),U=window.URL.createObjectURL(Z),q=document.createElement("a");q.href=U,q.download=`public-form-quarantine-${r}-${new Date().toISOString().slice(0,10)}.csv`,q.click(),window.URL.revokeObjectURL(U),K<z&&window.alert(`The export contains ${K} of ${z} records. Narrow the website or date range before using it as a complete review manifest.`)}catch{window.alert("The quarantine export could not be created. Please refresh and try again.")}},w=async(I,$)=>{const z=$==="legitimate"?"legitimate request":"abuse";if(window.confirm(`Mark this quarantine record as ${z}? This records the decision but sends no email or CRM update.`)){l(I);try{if(!(await fetch(`/api/analytics/form-security/quarantines/${encodeURIComponent(I)}/review`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({outcome:$})})).ok)throw new Error("Review failed");await h()}catch{window.alert("The quarantine decision could not be recorded. Please refresh and try again.")}finally{l(null)}}},v=()=>{if(!u)return;const I=u.siteFilter||"all",$=[["Section","Metric","Value"],["Scope","Website",ta[I]],["Scope","Start",u.dateRange.start],["Scope","End",u.dateRange.end],["Summary","Unique Visitors",u.metrics.uniqueVisitors],["Summary","Page Views",u.metrics.pageViews],["Summary","Conversions",u.metrics.conversions],["Summary","Conversion Rate",u.metrics.conversionRate],["Summary","Sessions",u.metrics.totalSessions],["Summary","Bounce Rate",u.metrics.bounceRate],["Summary","Avg Session Duration",u.metrics.avgSessionDuration],["Summary","Recent visitor rows",u.recentSessions.length],...u.siteBreakdown.flatMap(B=>[["Website",`${ta[B.siteId]||B.siteId} Sessions`,B.sessions],["Website",`${ta[B.siteId]||B.siteId} Page Views`,B.pageViews],["Website",`${ta[B.siteId]||B.siteId} Conversions`,B.conversions]]),...u.trafficSources.map(B=>["Traffic source",B.source,B.sessions]),...u.topPages.flatMap(B=>[["Top page views",B.path,B.views],["Top page unique views",B.path,B.uniqueViews],["Top page average time",B.path,B.avgTimeOnPage],["Top page bounce rate",B.path,B.bounceRate]]),...u.locations.map(B=>["Geography",`${B.city}, ${B.country}`,B.sessions]),...u.devices.map(B=>["Device",B.type,B.count]),...u.browsers.map(B=>["Browser",B.name,B.count])],z=B=>`"${String(B).replace(/"/g,'""')}"`,K=$.map(B=>B.map(z).join(",")).join(`
756`),Z=new Blob([`\uFEFF${K}`],{type:"text/csv;charset=utf-8"}),U=window.URL.createObjectURL(Z),q=document.createElement("a");q.href=U,q.download=`analytics-${I}-${e}days-${new Date().toISOString().split("T")[0]}.csv`,q.click(),window.URL.revokeObjectURL(U)};if(m)return s.jsx("div",{className:"container mx-auto p-6",children:s.jsxs(Re,{className:"border-destructive",children:[s.jsx(Nt,{children:s.jsxs(Lt,{className:"flex items-center gap-2 text-destructive",children:[s.jsx(ni,{className:"w-5 h-5"}),"Analytics Error"]})}),s.jsxs(Me,{children:[s.jsx("p",{className:"text-muted-foreground",children:"Failed to load anal
756ytics data. Please check your tracking configuration."}),s.jsx(pe,{onClick:p,className:"mt-4",children:"Try Again"})]})]})});const y=["#22d3ee","#f97316","#dc2626","#9333ea","#06b6d4","#eab308"],j=(u==null?void 0:u.devices)||[],k=(u==null?void 0:u.browsers)||[],N=(u==null?void 0:u.locations)||[];return s.jsxs("div",{className:"container mx-auto p-6 space-y-6",children:[s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold",children:"Analytics Dashboard"}),s.jsxs("p",{className:"text-muted-foreground mt-1",children:["Viewing ",ta[r]," with server-owned website attribution"]})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsxs(Go,{value:r,onValueChange:I=>{n(I),a(null)},children:[s.jsx(Ca,{className:"w-52","aria-label":"Website analytics scope",children:s.jsx(Ko,{placeholder:"Select website"})}),s.jsxs(Pa,{children:[s.jsx(Bt,{value:"all",children:"All Sites"}),s.jsx(Bt,{value:"pipeline-rebel",children:"Pipeline Rebel / RebelHQ"}),s.jsx(Bt,{value:"sidekick-genius",children:"Sidekick Genius"}),s.jsx(Bt,{value:"sales-sidekick",children:"SalesSidekick"}),s.jsx(Bt,{value:"joan",children:"Joan"})]})]}),s.jsxs(Go,{value:e,onValueChange:I=>{t(I),a(null)},children:[s.jsx(Ca,{className:"w-32",children:s.jsx(Ko,{})}),s.jsxs(Pa,{children:[s.jsx(Bt,{value:"7",children:"Last 7 days"}),s.jsx(Bt,{value:"30",children:"Last 30 days"}),s.jsx(Bt,{value:"60",children:"Last 60 days"}),s.jsx(Bt,{value:"90",children:"Last 90 days"})]})]}),s.jsx(pe,{onClick:p,size:"icon",variant:"outline","aria-label":"Refresh analytics",children:s.jsx(iC,{className:`w-4 h-4 ${d?"animate-spin":""}`})}),s.jsx(pe,{onClick:v,size:"icon",variant:"outline","aria-label":"Export filtered analytics",disabled:!u,children:s.jsx($o,{className:"w-4 h-4"})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs(Re,{children:[s.jsx(Nt,{className:"pb-2",children:s.jsx(Kt,{children:"Unique Visitors"})}),s.jsxs(Me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:(u==null?void 0:u.metrics.uniqueVisitors)||0}),s.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[(u==null?void 0:u.metrics.totalSessions)||0," total sessions"]})]})]}),s.jsxs(Re,{children:[s.jsx(Nt,{className:"pb-2",children:s.jsx(Kt,{children:"Page Views"})}),s.jsxs(Me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:(u==null?void 0:u.metrics.pageViews)||0}),s.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[(u==null?void 0:u.metrics.avgPageViewsPerSession)||0," per session"]})]})]}),s.jsxs(Re,{children:[s.jsx(Nt,{className:"pb-2",children:s.jsx(Kt,{children:"Conversions"})}),s.jsxs(Me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:(u==null?void 0:u.metrics.conversions)||0}),s.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[(u==null?void 0:u.metrics.conversionRate)||"0%"," conversion rate"]})]})]}),s.jsxs(Re,{children:[s.jsx(Nt,{className:"pb-2",children:s.jsx(Kt,{children:"Avg Session Duration"})}),s.jsxs(Me,{children:[s.jsx("div",{className:"text-2xl font-bold",children:(u==null?void 0:u.metrics.avgSessionDuration)||"0:00"}),s.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[(u==null?void 0:u.metrics.bounceRate)||"0%"," bounce rate"]})]})]})]}),s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:r==="all"?"Website-by-website visibility":`${ta[r]} visibility`}),s.jsx(Kt,{children:"All metrics below use the selected server-assigned website identity, never a browser-supplied site claim."})]}),s.jsx(Me,{children:s.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-4",children:((u==null?void 0:u.siteBreakdown)||[]).map(I=>s.jsxs("div",{className:"rounded-lg border p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("p",{className:"font-semibold",children:ta[I.siteId]||I.siteId}),I.siteId==="unregistered"&&s.jsx(jr,{variant:"destructive",children:"Review"})]}),s.jsxs("div",{className:"mt-3 grid grid-cols-3 gap-2 text-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xl font-bold",children:I.sessions}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Sessions"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xl font-bold",children:I.pageViews}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Views"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xl font-bold",children:I.conversions}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Conversions"})]})]})]},I.siteId))})})]}),s.jsxs(Re,{className:((u==null?void 0:u.formSecurity.captureTotals.unavailable)||0)>0?"border-red-500":(u==null?void 0:u.formSecurity.verificationMode)==="manual-review"?"border-amber-400":"border-emerald-400",children:[s.jsx(Nt,{children:s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs(Lt,{className:"flex items-center gap-2",children:[s.jsx(mJ,{className:"h-5 w-5"}),"Public form security and review queue"]}),s.jsx(Kt,{children:"Portfolio-wide security queue across all websites. Every protected request is decided before CRM or email effects."})]}),s.jsx(jr,{variant:(u==null?void 0:u.formSecurity.verificationMode)==="turnstile"?"default":"destructive",children:(u==null?void 0:u.formSecurity.verificationMode)==="turnstile"?"Automated verification active":"Manual-review mode"}),s.jsxs(pe,{variant:"outline",size:"sm",onClick:()=>void x(),children:[s.jsx($o,{className:"mr-2 h-4 w-4"}),"Export review queue"]})]})}),s.jsxs(Me,{className:"space-y-5",children:[s.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4 lg:grid-cols-7",children:[["Captured",((u==null?void 0:u.formSecurity.captureTotals.accepted)||0)+((u==null?void 0:u.formSecurity.captureTotals.acceptedDegraded)||0)],["Degraded",(u==null?void 0:u.formSecurity.captureTotals.acceptedDegraded)||0],["Capture pending",(u==null?void 0:u.formSecurity.captureTotals.pending)||0],["Capture failed",(u==null?void 0:u.formSecurity.captureTotals.unavailable)||0],["Quarantined",(u==null?void 0:u.formSecurity.totals.quarantined)||0],["Duplicates",(u==null?void 0:u.formSecurity.totals.duplicate)||0],["Rate limited",(u==null?void 0:u.formSecurity.totals.rate_limited)||0]].map(([I,$])=>s.jsxs("div",{className:"rounded-lg border p-3 text-center",children:[s.jsx("p",{className:"text-2xl font-bold",children:$}),s.jsx("p",{className:"text-xs text-muted-foreground",children:I})]},I))}),((u==null?void 0:u.formSecurity.destinationFailures)||[]).length>0&&s.jsxs("div",{className:"rounded-lg border border-red-300 bg-red-50/50 p-4",children:[s.jsx("p",{className:"text-sm font-semibold text-red-900",children:"Destination failures requiring reconciliation"}),s.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:((u==null?void 0:u.formSecurity.destinationFailures)||[]).map(I=>s.jsxs(jr,{variant:"destructive",children:[I.destination,": ",I.errorCode," (",I.count,")"]},`${I.destination}:${I.errorCode}`))})]}),((u==null?void 0:u.formSecurity.recentQuarantines)||[]).length===0?s.jsx("p",{className:"rounded-lg border border-dashed p-5 text-sm text-muted-foreground",children:"No quarantined requests in this date range."}):s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-sm font-semibold",children:"Recent requests requiring review"}),((u==null?void 0:u.formSecurity.recentQuarantines)||[]).map(I=>{const $=I.payload||{}
756,z=[$.firstName,$.lastName].filter(Boolean).join(" "),K=$.message||$.rollupGoal||$.workflowPain||$.notes;return s.jsx("div",{className:"rounded-lg border border-amber-300 bg-amber-50/50 p-4",children:s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx(jr,{variant:"outline",children:ta[I.siteId]||I.siteId}),s.jsx(jr,{variant:"secondary",children:I.reasonCode})]}),s.jsxs("p",{className:"mt-3 font-semibold",children:[z||"Name unavailable",$.company?` · ${$.company}`:""]}),$.email&&s.jsx("p",{className:"text-sm",children:$.email}),K&&s.jsx("p",{className:"mt-2 max-w-4xl text-sm text-muted-foreground",children:String(K).slice(0,500)})]}),s.jsxs("div",{className:"text-right text-xs text-muted-foreground",children:[s.jsx("p",{children:oEe(new Date(I.createdAt),"PPp")}),s.jsx("p",{className:"mt-1 font-mono",children:I.submissionId}),I.requestId&&s.jsxs("p",{className:"font-mono",children:["request ",I.requestId]}),I.traceId&&s.jsxs("p",{className:"font-mono",children:["trace ",I.traceId]}),s.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[s.jsx(pe,{variant:"outline",size:"sm",disabled:o===I.submissionId,onClick:()=>void w(I.submissionId,"legitimate"),children:"Legitimate"}),s.jsx(pe,{variant:"destructive",size:"sm",disabled:o===I.submissionId,onClick:()=>void w(I.submissionId,"abuse"),children:"Abuse"})]})]})]})},I.submissionId)})]})]})]}),s.jsxs(pz,{defaultValue:"leads",className:"space-y-4",children:[s.jsxs(LP,{children:[s.jsx(ia,{value:"leads",children:"Identified Leads"}),s.jsx(ia,{value:"visitors",children:"Visitor Details"}),s.jsx(ia,{value:"pages",children:"Page Analytics"}),s.jsx(ia,{value:"sources",children:"Traffic Sources"}),s.jsx(ia,{value:"geography",children:"Geography"}),s.jsx(ia,{value:"technology",children:"Technology"})]}),s.jsx(aa,{value:"leads",children:s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsxs(Lt,{className:"flex items-center gap-2",children:[s.jsx(f2,{className:"w-5 h-5 text-cyan-500"}),"Identified Leads"]}),s.jsx(Kt,{children:"Visitors who have been identified via chat, forms, or other interactions"})]}),s.jsx(Me,{children:s.jsx(xT,{className:"h-[500px] pr-4",children:((C=u==null?void 0:u.identifiedLeads)==null?void 0:C.length)===0?s.jsxs("div",{className:"text-center py-12",children:[s.jsx(Mx,{className:"w-12 h-12 mx-auto text-muted-foreground mb-4"}),s.jsx("p",{className:"text-muted-foreground",children:"No identified leads yet. Leads are identified when visitors provide their email via chat or forms."})]}):s.jsx("div",{className:"space-y-3",children:(A=u==null?void 0:u.identifiedLeads)==null?void 0:A.map((I,$)=>s.jsx(Re,{className:"border-cyan-500/30",children:s.jsx(Me,{className:"p-4",children:s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(xn,{className:"w-4 h-4 text-cyan-500"}),s.jsx("span",{className:"font-medium",children:I.email}),s.jsx(jr,{variant:"default",className:"bg-cyan-500 ml-2",children:"Identified"})]}),I.name&&s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Mx,{className:"w-3 h-3 text-muted-foreground"}),s.jsx("span",{children:I.name})]}),I.company&&s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(l2,{className:"w-3 h-3 text-muted-foreground"}),s.jsx("span",{children:I.company})]}),I.location&&s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(pI,{className:"w-3 h-3"}),s.jsx("span",{children:I.location})]})]}),s.jsxs("div",{className:"text-right text-sm text-muted-foreground",children:[s.jsxs("div",{children:["First seen: ",new Date(I.firstSeen).toLocaleDateString()]}),s.jsxs("div",{children:["Last seen: ",new Date(I.lastSeen).toLocaleDateString()]}),s.jsx("div",{className:"mt-1",children:s.jsx(jr,{variant:"outline",children:I.source})})]})]})})},$))})})})]})}),s.jsx(aa,{value:"visitors",children:s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Recent Visitor Sessions"}),s.jsx(Kt,{children:"Detailed information about recent visitors including location and behavior"})]}),s.jsx(Me,{children:s.jsx(xT,{className:"h-[600px] pr-4",children:((E=u==null?void 0:u.recentSessions)==null?void 0:E.length)===0?s.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No visitor sessions recorded yet"}):s.jsx("div",{className:"space-y-4",children:(_=u==null?void 0:u.recentSessions)==null?void 0:_.map(I=>{var $;
756return s.jsx(Re,{className:`cursor-pointer transition-all ${i===I.sessionId?"border-cyan-500":""}`,onClick:()=>a(i===I.sessionId?null:I.sessionId),children:s.jsxs(Me,{className:"p-4",children:[s.jsxs("div",{className:"flex justify-between items-start mb-3",children:[s.jsxs("div",{className:"space-y-1",children:[I.isIdentified&&I.identityAuthority==="server"&&s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsxs(jr,{variant:"default",className:"bg-cyan-500",children:[s.jsx(f2,{className:"w-3 h-3 mr-1"}),"Identified"]}),s.jsx("span",{className:"font-medium text-cyan-500",children:I.identifiedEmail}),I.identifiedName&&s.jsxs("span",{className:"text-sm",children:["(",I.identifiedName,")"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(pI,{className:"w-4 h-4 text-muted-foreground"}),s.jsxs("span",{className:"font-medium",children:[I.city||"Unknown",", ",I.country||"Unknown"]}),s.jsx(jr,{variant:"outline",className:"ml-2",children:ta[I.siteId]||I.siteId})]}),(I.org||I.identifiedCompany)&&s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(l2,{className:"w-3 h-3 text-muted-foreground"}),s.jsx("span",{className:"text-muted-foreground",children:I.identifiedCompany||I.org})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[s.jsxs("span",{className:"flex items-center gap-1",children:[I.deviceType==="desktop"&&s.jsx(cJ,{className:"w-3 h-3"}),I.deviceType==="mobile"&&s.jsx(pJ,{className:"w-3 h-3"}),I.deviceType==="tablet"&&s.jsx(xJ,{className:"w-3 h-3"}),I.deviceType||"Unknown"]}),s.jsx("span",{children:I.browser||"Unknown"}),s.jsx("span",{children:I.os||"Unknown"})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-sm text-muted-foreground",children:new Date(I.createdAt).toLocaleString()}),s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Session: ",I.sessionId.slice(0,8),"..."]})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"Landing Page"}),s.jsx("p",{className:"text-sm font-medium",children:I.landingPage||"Direct"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"Referrer"}),s.jsx("p",{className:"text-sm font-medium",children:I.referrerHost||I.referrer||"Direct"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:I.sourceType||"direct"})]})]}),i===I.sessionId&&(($=I.pageViews)==null?void 0:$.length)>0&&s.jsxs("div",{className:"mt-4 pt-4 border-t",children:[s.jsxs("p",{className:"text-sm font-medium mb-2",children:["Page Journey (",I.pageViews.length," pages)"]}),s.jsx("div",{className:"space-y-2",children:I.pageViews.map((z,K)=>s.jsxs("div",{className:"flex items-center justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-cyan-500 font-medium",children:[K+1,"."]}),s.jsx(is,{className:"w-3 h-3 text-muted-foreground"}),s.jsx("span",{children:z.pagePath})]}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[s.jsxs("span",{children:[Math.floor((z.timeOnPage||0)/60),":",((z.timeOnPage||0)%60).toString().padStart(2,"0")]}),s.jsx(Oi,{className:"w-3 h-3"})]})]},K))})]})]})},I.sessionId)})})})})]})}),s.jsx(aa,{value:"pages",children:s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Top Pages"}),s.jsx(Kt,{children:"Most visited pages with engagement metrics"})]}),s.jsx(Me,{children:((R=u==null?void 0:u.topPages)==null?void 0:R.length)===0?s.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No page data available"}):s.jsx("div",{className:"space-y-3",children:(O=u==null?void 0:u.topPages)==null?void 0:O.map((I,$)=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"text-2xl font-bold text-cyan-500",children:$+1}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:I.path}),s.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground mt-1",children:[s.jsxs("span",{children:[I.views," views"]}),s.jsxs("span",{children:[I.uniqueViews," unique"]}),s.jsxs("span",{children:["Avg: ",I.avgTimeOnPage]}),s.jsxs("span",{children:["Bounce: ",I.bounceRate]})]})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-lg font-bold",children:I.views}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"page views"})]})]},$))})})]})}),s.jsx(aa,{value:"sources",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{children:"Traffic Sources"})}),s.jsx(Me,{children:((F=u==null?void 0:u.trafficSources)==null?void 0:F.length)===0?s.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No traffic source data available"}):s.jsx("div",{className:"space-y-3",children:(D=u==null?void 0:u.trafficSources)==null?void 0:D.map((I,$)=>s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(u2,{className:"w-4 h-4 text-muted-foreground"}),s.jsx("span",{className:"font-medium",children:I.source})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-bold",children:I.sessions}),s.jsxs(jr,{variant:"outline",children:[I.percentage,"%"]})]})]},$))})})]}),s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{children:"Source Distribution"})}),s.jsx(Me,{children:s.jsx(Wk,{width:"100%",height:250,children:s.jsxs(iF,{children:[s.jsx(Li,{data:(u==null?void 0:u.trafficSources)||[],dataKey:"sessions",nameKey:"source",cx:"50%",cy:"50%",outerRadius:80,fill:"#8884d8",label:!0,children:(L=u==null?void 0:u.trafficSources)==null?void 0:L.map((I,$)=>s.jsx(um,{fill:y[$%y.length]},`cell-${$}`))}),s.jsx(Cs,{})]})})})]})]})}),s.jsx(aa,{value:"geography",children:s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Visitor Locations"}),s.jsx(Kt,{children:"Geographic distribution of your visitors"})]}),s.jsx(Me,{children:s.jsx("div",{className:"space-y-3",children:N.length===0?s.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No location data available"}):N.map((I,$)=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(hx,{className:"w-5 h-5 text-cyan-500"}),s.jsxs("div",{children:[s.jsxs("p",{className:"font-medium",children:[I.city,", ",I.country]}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:[I.pageViews," page views"]})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-lg font-bold",children:I.sessions}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"sessions"})]})]},$))})})]})}),s.jsx(aa,{value:"technology",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{children:"Devices"})}),s.jsx(Me,{children:s.jsx(Wk,{width:"100%",height:250,children:s.jsxs(iF,{children:[s.jsx(Li,{data:j,dataKey:"count",nameKey:"type",cx:"50%",cy:"50%",outerRadius:80,fill:"#8884d8",label:!0,children:j.map((I,$)=>s.jsx(um,{fill:y[$%y.length]},`cell-${$}`))}),s.jsx(Cs,{}),s.jsx(ec,{})]})})})]}),s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{children:"Browsers"})}),s.jsx(Me,{children:s.jsx(Wk,{width:"100%",height:250,children:s.jsxs(KCe,{data:k,children:[s.jsx(IG,{strokeDasharray:"3 3"}),s.jsx(zb,{dataKey:"name"}),s.jsx(Ub,{}),s.jsx(Cs,{}),s.jsx(Rc,{dataKey:"count",fill:"#22d3ee"})]})})})]})]})})]})]})}function dEe(e){const t=fEe(e),r=S.forwardRef((n,i)=>{const{children:a,...o}=n,l=S.Children.toArray(a),u=l.find(mEe);
vendor: 7,409 bytes, lines 756-760
756if(u){const d=u.props.children,m=l.map(h=>h===u?S.Children.count(d)>1?S.Children.only(null):S.isValidElement(d)?d.props.children:null:h);return s.jsx(t,{...o,ref:i,children:S.isValidElement(d)?S.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function fEe(e){const t=S.forwardRef((r,n)=>{const{children:i,...a}=r;if(S.isValidElement(i)){const o=gEe(i),l=pEe(a,i.props);return i.type!==S.Fragment&&(l.ref=n?Wd(n,o):o),S.cloneElement(i,l)}return S.Children.count(i)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hEe=Symbol("radix.slottable");function mEe(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hEe}function pEe(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...l)=>{const u=a(...l);return i(...l),u}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function gEe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gb="Dialog",[JG]=hs(Gb),[xEe,ui]=JG(Gb),eK=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,l=S.useRef(null),u=S.useRef(null),[d,m]=ja({prop:n,defaultProp:i??!1,onChange:a,caller:Gb});return s.jsx(xEe,{scope:t,triggerRef:l,contentRef:u,contentId:Io(),titleId:Io(),descriptionId:Io(),open:d,onOpenChange:m,onOpenToggle:S.useCallback(()=>m(h=>!h),[m]),modal:o,children:r})};eK.displayName=Gb;var tK="DialogTrigger",rK=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=ui(tK,r),a=ht(t,i.triggerRef);return s.jsx(Xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":KE(i.open),...n,ref:a,onClick:Be(e.onClick,i.onOpenToggle)})});rK.displayName=tK;var HE="DialogPortal",[yEe,nK]=JG(HE,{forceMount:void 0}),sK=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=ui(HE,t);return s.jsx(yEe,{scope:t,forceMount:r,children:S.Children.map(n,o=>s.jsx(ms,{present:r||a.open,children:s.jsx(yv,{asChild:!0,container:i,children:o})}))})};sK.displayName=HE;var hv="DialogOverlay",iK=S.forwardRef((e,t)=>{const r=nK(hv,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=ui(hv,e.__scopeDialog);return a.modal?s.jsx(ms,{present:n||a.open,children:s.jsx(bEe,{...i,ref:t})}):null});iK.displayName=hv;var vEe=dEe("DialogOverlay.RemoveScroll"),bEe=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=ui(hv,r);return s.jsx(kP,{as:vEe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsx(Xe.div,{"data-state":KE(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),wc="DialogContent",aK=S.forwardRef((e,t)=>{const r=nK(wc,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=ui(wc,e.__scopeDialog);return s.jsx(ms,{present:n||a.open,children:a.modal?s.jsx(wEe,{...i,ref:t}):s.jsx(jEe,{...i,ref:t})})});aK.displayName=wc;var wEe=S.forwardRef((e,t)=>{const r=ui(wc,e.__scopeDialog),n=S.useRef(null),i=ht(t,r.contentRef,n);return S.useEffect(()=>{const a=n.current;if(a)return oq(a)},[]),s.jsx(oK,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Be(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&a.preventDefault()}),onFocusOutside:Be(e.onFocusOutside,a=>a.preventDefault())})}),jEe=S.forwardRef((e,t)=>{const r=ui(wc,e.__scopeDialog),n=S.useRef(!1),i=S.useRef(!1);return s.jsx(oK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),oK=S.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,l=ui(wc,r),u=S.useRef(null),d=ht(t,u);return sq(),s.jsxs(s.Fragment,{children:[s.jsx(SP,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:s.jsx(Ym,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":KE(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(SEe,{titleId:l.titleId}),s.jsx(NEe,{contentRef:u,descriptionId:l.descriptionId})]})]})}),GE="DialogTitle",lK=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=ui(GE,r);return s.jsx(Xe.h2,{id:i.titleId,...n,ref:t})});lK.displayName=GE;var cK="DialogDescription",uK=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=ui(cK,r);return s.jsx(Xe.p,{id:i.descriptionId,...n,ref:t})});uK.displayName=cK;var dK="DialogClose",fK=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=ui(dK,r);return s.jsx(Xe.button,{type:"button",...n,ref:t,onClick:Be(e.onClick,()=>i.onOpenChange(!1))})});fK.displayName=dK;function KE(e){return e?"open":"closed"}var hK="DialogTitleWarning",[POe,mK]=KQ(hK,{contentName:wc,titleName:GE,docsSlug:"dialog"}),SEe=({titleId:e})=>{const t=mK(hK),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
757
758If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
759
760For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},kEe="DialogDescriptionWarning",NEe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mK(kEe).contentName}}.`;return S.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},pK=eK,gK=rK,xK=sK,Kb=iK,Yb=aK,Xb=lK,Qb=uK,yK=fK;const $d=pK,TEe=gK,AEe=xK,vK=S.forwardRef(({className:e,...t},r)=>s.jsx(Kb,{ref:r,className:Fe("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}));vK.displayName=Kb.displayName;const jc=S.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(AEe,{children:[s.jsx(vK,{}),s.jsxs(Yb,{ref:n,className:Fe("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),...r,children:[t,s.jsxs(yK,{className:"absolute right-4 top-4 roun
760ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(Tv,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jc.displayName=Yb.displayName;const Sc=({className:e,...t})=>s.jsx("div",{className:Fe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Sc.displayName="DialogHeader";const qm=({className:e,...t})=>s.jsx("div",{className:Fe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qm.displayName="DialogFooter";const kc=S.forwardRef(({className:e,...t},r)=>s.jsx(Xb,{ref:r,className:Fe("text-lg font-semibold leading-none tracking-tight",e),...t}));kc.displayName=Xb.displayName;const Nc=S.forwardRef(({className:e,...t},r)=>s.jsx(Qb,{ref:r,className:Fe("text-sm text-muted-foreground",e),...t}));Nc.displayName=Qb.displayName;const Fd=S.forwardRef(({className:e,...t},r)=>s.jsx("textarea",{className:Fe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-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 md:text-sm",e),ref:r,...t}));Fd.displayName="Textarea";function CEe(){const{toast:e}=fs(),[t,r]=S.useState(!1),[n,i]=S.useState(null),[a,o]=S.useState(!1),[l,u]=S.useState([]),[d,m]=S.useState(""),[h,p]=S.useState(""),[x,w]=S.useState(""),[v,y]=S.useState(""),[j,k]=S.useState(""),[N,C]=S.useState(""),{data:A=[],error:E,refetch:_}=Qu({queryKey:["/api/lead-sharing/available-magnets"],staleTime:0,refetchOnMount:!0,refetchOnWindowFocus:!0});S.useEffect(()=>{console.log("Available magnets:",A),console.log("Magnets error:",E)},[A,E]);const{data:R=[],isLoading:O}=Qu({queryKey:["/api/lead-sharing"]}),F=ma({mutationFn:q=>ss("/api/lead-sharing",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)}),onSuccess:q=>{var B;ki.invalidateQueries({queryKey:["/api/lead-sharing"]}),r(!1),(B=q.share)!=null&&B.url&&(navigator.clipboard.writeText(q.share.url),e({title:"Share link created!",description:"The link has been copied to your clipboard."})),m(""),p(""),w(""),y(""),k(""),C("")},onError:()=>{e({title:"Error",description:"Failed to create share link",variant:"destructive"})}}),D=ma({mutationFn:q=>ss(`/api/lead-sharing/${q}/revoke`,{method:"PATCH"}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/lead-sharing"]}),e({title:"Share revoked",description:"The share link has been revoked successfully."})},onError:()=>{e({title:"Error",description:"Failed to revoke share link",variant:"destructive"})}}),L=ma({mutationFn:q=>ss(`/api/lead-sharing/${q}`,{method:"DELETE"}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/lead-sharing"]}),e({title:"Share deleted",description:"The share link has been permanently deleted."})},onError:()=>{e({title:"Error",description:"Failed to delete share link",variant:"destructive"})}}),I=async q=>{try{const V=await(await fetch(`/api/lead-sharing/${q}`)).json();u(V.events||[])}catch(B){console.error("Failed to fetch share details:",B)}},$=()=>{const q={slug:d};h&&(q.recipientEmail=h),x&&(q.recipientName=x),v&&(q.notes=v),j&&(q.maxUses=parseInt(j)),N&&(q.expiresInHours=parseInt(N)),F.mutate(q)},z=async q=>{i(q),o(!0),await I(q.id)},K=q=>{const V=`${window.location.origin}/${q.slug}.html?token=${q.token||"[TOKEN]"}`;navigator.clipboard.writeText(V),e({title:"Copied!",description:"Share link copied to clipboard"})},Z=q=>q.status==="revoked"?s.jsx(jr,{variant:"destructive",children:"Revoked"}):q.expiresAt&&new Date(q.expiresAt)<new Date?s.jsx(jr,{variant:"secondary",children:"Expired"}):q.maxUses&&q.uses>=q.maxUses?s.jsx(jr,{variant:"secondary",children:"Exhausted"}):s.jsx(jr,{variant:"default",children:"Active"}),U=q=>{if(!q.maxUses)return"Unlimited";const B=q.maxUses-q.uses;return B>0?`${B} remaining`:"No uses remaining"};return s.jsxs("div",{className:"container mx-auto py-8 px-4",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Secure Proposal Sharing"}),s.jsx("p",{className:"text-gray-600",children:"Create and manage secure, trackable links for client proposals and confidential documents"}),s.jsx("div",{className:"mt-4 p-4 bg-cyan-950/30 border border-cyan-500/30 rounded-lg",children:s.jsxs("p",{className:"text-sm text-cyan-200",children:[s.jsx("strong",{children:"Note:"})," This system is for secure client proposals (like ai-sales-enablement-proposal.html). Lead magnets are publicly accessible and tracked automatically through analytics."]})})]}),s.jsx("div",{className:"mb-6",children:s.jsxs(pe,{onClick:()=>r(!0),"data-testid":"button-create-share",children:[s.jsx(ga,{className:"mr-2 h-4 w-4"}),"Create Secure Share Link"]})}),O?s.jsx("div",{className:"text-center py-8",children:"Loading shares..."}):R.length===0?s.jsx(Re,{children:s.jsx(Me,{className:"text-center py-8",children:s.jsx("p",{className:"text-gray-500",children:"No share links created yet"})})}):s.jsx("div",{className:"grid gap-4",children:R.map(q=>s.jsxs(Re,{"data-testid":`card-share-${q.id}`,children:[s.jsx(Nt,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsxs(Lt,{className:"text-lg",children:[q.slug,".html"]}
760),s.jsxs(Kt,{children:[q.recipientName&&s.jsxs("span",{className:"block",children:["For: ",q.recipientName]}),q.recipientEmail&&s.jsx("span",{className:"block text-xs",children:q.recipientEmail}),"Created ",ri(new Date(q.createdAt))," ago"]})]}),s.jsx("div",{className:"flex items-center gap-2",children:Z(q)})]})}),s.jsxs(Me,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(kn,{className:"h-4 w-4 text-gray-500"}),s.jsxs("span",{className:"text-sm",children:[q.uses," uses / ",U(q)]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Sa,{className:"h-4 w-4 text-gray-500"}),s.jsx("span",{className:"text-sm",children:q.expiresAt?`Expires ${ri(new Date(q.expiresAt))} from now`:"No expiration"})]}),q.lastUsedAt&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(c2,{className:"h-4 w-4 text-gray-500"}),s.jsxs("span",{className:"text-sm",children:["Last used ",ri(new Date(q.lastUsedAt))," ago"]})]})]}),q.notes&&s.jsxs("div",{className:"mb-4 p-3 bg-gray-50 rounded text-sm",children:[s.jsx("strong",{children:"Notes:"})," ",q.notes]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(pe,{variant:"outline",size:"sm",onClick:()=>K(q),disabled:q.status==="revoked","data-testid":`button-copy-${q.id}`,children:[s.jsx($B,{className:"mr-2 h-4 w-4"}),"Copy Link"]}),s.jsxs(pe,{variant:"outline",size:"sm",onClick:()=>{const V=`${window.location.origin}/${q.slug}.html?token=${q.token||"[TOKEN]"}`;window.open(V,"_blank")},disabled:q.status==="revoked","data-testid":`button-view-${q.id}`,children:[s.jsx(is,{className:"mr-2 h-4 w-4"}),"View"]}),s.jsx(pe,{variant:"outline",size:"sm",onClick:()=>z(q),"data-testid":`button-details-${q.id}`,children:"View Details"}),q.status==="active"&&s.jsxs(pe,{variant:"outline",size:"sm",onClick:()=>D.mutate(q.id),"data-testid":`button-revoke-${q.id}`,children:[s.jsx(LB,{className:"mr-2 h-4 w-4"}),"Revoke"]}),s.jsxs(pe,{variant:"destructive",size:"sm",onClick:()=>{confirm("Are you sure you want to permanently delete this share?")&&L.mutate(q.id)},"data-testid":`button-delete-${q.id}`,children:[s.jsx(Nv,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]},q.id))}),s.jsx($d,{open:t,onOpenChange:r,children:s.jsxs(jc,{className:"sm:max-w-[500px]",children:[s.jsxs(Sc,{children:[s.jsx(kc,{children:"Create Secure Share Link"}),s.jsx(Nc,{children:"Generate a secure, token-protected link for a client proposal"})]}),s.jsxs("div",{className:"grid gap-4 py-4",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"magnet",children:"Proposal *"}),s.jsxs(Go,{value:d,onValueChange:m,children:[s.jsx(Ca,{"data-testid":"select-lead-magnet",children:s.jsx(Ko,{placeholder:"Select a proposal"})}),s.jsx(Pa,{children:A.map(q=>s.jsx(Bt,{value:q.slug,children:q.filename},q.slug))})]})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"recipientName",children:"Recipient Name (optional)"}),s.jsx(Je,{id:"recipientName",value:x,onChange:q=>w(q.target.value),placeholder:"John Doe","data-testid":"input-recipient-name"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"recipientEmail",children:"Recipient Email (optional)"}),s.jsx(Je,{id:"recipientEmail",type:"email",value:h,onChange:q=>p(q.target.value),placeholder:"[email protected]","data-testid":"input-recipient-email"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"notes",children:"Internal Notes (optional)"}),s.jsx(Fd,{id:"notes",value:v,onChange:q=>y(q.target.value),placeholder:"Add any notes about this share...","data-testid":"input-notes"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"maxUses",children:"Max Uses (optional)"}),s.jsx(Je,{id:"maxUses",type:"number",value:j,onChange:q=>k(q.target.value),placeholder:"Unlimited",min:"1","data-testid":"input-max-uses"})]}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(Ze,{htmlFor:"expiresInHours",children:"Expires In (hours)"}),s.jsx(Je,{id:"expiresInHours",type:"number",value:N,onChange:q=>C(q.target.value),placeholder:"Never",min:"1","data-testid":"input-expires-hours"})]})]})]}),s.jsxs(qm,{children:[s.jsx(pe,{variant:"outline",onClick:()=>r(!1),"data-testid":"button-cancel-create",children:"Cancel"}),s.jsx(pe,{onClick:$,disabled:!d||F.isPending,"data-testid":"button-confirm-create",children:F.isPending?"Creating...":"Create Share Link"})]})]})}),s.jsx($d,{open:a,onOpenChange:o,children:s.jsxs(jc,{className:"sm:max-w-[600px]",children:[s.jsxs(Sc,{children:[s.jsx(kc,{children:"Share Details"}),s.jsx(Nc,{children:"Access history and events for this share link"})]}),n&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid gap-2",children:[s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Proposal:"}),s.jsxs("span",{className:"text-sm",children:[n.slug,".html"]})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Status:"}),Z(n)]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Uses:"}),s.jsxs("span",{className:"text-sm",children:[n.uses," / ",n.maxUses||"∞"]})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:"Created:"}),s.jsx("span",{className:"text-sm",children:new Date(n.createdAt).toLocaleStr
760ing()})]})]}),s.jsxs("div",{className:"border-t pt-4",children:[s.jsx("h4",{className:"font-medium mb-2",children:"Access Events"}),l.length===0?s.jsx("p",{className:"text-sm text-gray-500",children:"No access events yet"}):s.jsx("div",{className:"space-y-2 max-h-60 overflow-y-auto",children:l.map(q=>s.jsxs("div",{className:"flex items-start gap-2 p-2 bg-gray-50 rounded text-sm",children:[s.jsx(ni,{className:`h-4 w-4 mt-0.5 ${q.type==="accessed"?"text-green-600":q.type==="denied"?"text-red-600":"text-yellow-600"}`}),s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"font-medium capitalize",children:q.type}),s.jsxs("div",{className:"text-xs text-gray-500",children:[ri(new Date(q.occurredAt))," ago"]})]})]},q.id))})]})]}),s.jsx(qm,{children:s.jsx(pe,{onClick:()=>o(!1),"data-testid":"button-close-details",children:"Close"})})]})})]})}function PEe(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState(""),[i,a]=S.useState(""),[o,l]=S.useState(!1),u=async d=>{d.preventDefault(),l(!0);try{const m=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:r,password:i}),credentials:"include"}),h=await m.json();m.ok?(t({title:"Login successful",description:"Welcome back, admin!"}),e("/admin")):t({title:"Login failed",description:h.error||"Invalid credentials",variant:"destructive"})}catch(m){console.error("Login error:",m),t({title:"Error",description:"Failed to connect to server",variant:"destructive"})}finally{l(!1)}};return s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-gray-900 via-gray-800 to-gray-900",children:s.jsxs(Re,{className:"w-full max-w-md",children:[s.jsxs(Nt,{className:"space-y-1",children:[s.jsx("div",{className:"flex items-center justify-center mb-4",children:s.jsx(ga,{className:"h-12 w-12 text-cyan-500"})}),s.jsx(Lt,{className:"text-2xl text-center",children:"Admin Login"}),s.jsx(Kt,{className:"text-center",children:"Enter your credentials to access the admin panel"})]}),s.jsx(Me,{children:s.jsxs("form",{onSubmit:u,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"username",children:"Username"}),s.jsx(Je,{id:"username",type:"text",placeholder:"admin",value:r,onChange:d=>n(d.target.value),required:!0,autoFocus:!0,"data-testid":"input-username"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"password",children:"Password"}),s.jsx(Je,{id:"password",type:"password",placeholder:"Enter your password",value:i,onChange:d=>a(d.target.value),required:!0,"data-testid":"input-password"})]}),s.jsxs(pe,{type:"submit",className:"w-full",disabled:o,"data-testid":"button-login",children:[o?"Logging in...":"Login",s.jsx(iJ,{className:"ml-2 h-4 w-4"})]})]})})]})})}function EEe(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState(null),[i,a]=S.useState(null),[o,l]=S.useState(!1),u=async()=>{l(!0);try{const h=await fetch("/api/admin/dashboard-summary",{credentials:"include"});if(h.ok){const p=await h.json();a(p)}}catch(h){console.error("Failed to fetch dashboard summary:",h)}finally{l(!1)}};S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(h=>h.json()).then(h=>{h.authenticated?(n(h.user),u()):e("/login")}).catch(()=>{e("/login")})},[e]);const d=async()=>{console.log("Logout button clicked!");try{const h=await fetch("/api/auth/logout",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}});console.log("Logout response:",h.status,h.statusText),h.ok?(t({title:"Logged out",description:"You have been successfully logged out"}),setTimeout(()=>{e("/login")},100)):(console.error("Logout failed:",h.status),t({title:"Error",description:`Failed to logout: ${h.statusText}`,variant:"destructive"}))}catch(h){console.error("Logout error:",h),t({title:"Error",description:"Failed to logout",variant:"destructive"})}},m=[{title:"Lead Management",description:"View and manage all leads, import CSV files, and sync with Airtable",icon:s.jsx(kn,{className:"h-6 w-6"}),href:"/lead-management",color:"bg-cyan-500"},{title:"Secure Proposal Sharing",description:"Create secure, token-protected share links for proposals",icon:s.jsx(d2,{className:"h-6 w-6"}),href:"/lead-sharing",color:"bg-green-500"},{title:"HTML File Manager",description:"Create and manage HTML proposal files",icon:s.jsx(Ni,{className:"h-6 w-6"}),href:"/html-files",color:"bg-yellow-500"},{title:"Analytics Dashboard",description:"View website traffic, conversions, and visitor behavior",icon:s.jsx($i,{className:"h-6 w-6"}),href:"/analytics",color:"bg-cyan-600"},{title:"Email Subscribers",description:"Manage the Pipeline Rebel newsletter list and automation records",icon:s.jsx(xn,{className:"h-6 w-6"}),href:"/email-subscribers",color:"bg-cyan-600"},{title:"Database Manager",description:"Direct database access for advanced operations",icon:s.jsx(ac,{className:"h-6 w-6"}),href:"/database",color:"bg-cyan-700"},{title:"Content Manager",description:"Manage blog posts and resources",icon:s.jsx(Ni,{className:"h-6 w-6"}),href:"/content",color:"bg-cyan-600"},{title:"GTM Assessments",description:"View submitted GTM assessment forms",icon:s.jsx(DB,{className:"h-6 w-6"}),href:"/gtm-assessments",color:"bg-teal-500"}
760,{title:"Chat Sessions",description:"Monitor and review chat conversations",icon:s.jsx(f2,{className:"h-6 w-6"}),href:"/chat-sessions",color:"bg-cyan-500"},{title:"Newsletter Publisher",description:"Import Freedom Brief drafts, preview, and send only after approval",icon:s.jsx(xI,{className:"h-6 w-6"}),href:"/newsletter-publisher",color:"bg-emerald-500"}];return r?s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700",children:s.jsx("div",{className:"container mx-auto px-4 py-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ga,{className:"h-8 w-8 text-cyan-500"}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"Admin Dashboard"}),s.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Welcome back, ",r.username]})]})]}),s.jsxs("button",{type:"button",onClick:h=>{h.preventDefault(),console.log("Button actually clicked!"),d()},className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-600 transition-colors cursor-pointer z-50",style:{position:"relative",zIndex:9999},children:[s.jsx(aJ,{className:"w-4 h-4"}),s.jsx("span",{children:"Logout"})]})]})})}),s.jsxs("div",{className:"container mx-auto px-4 py-8",children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[s.jsxs(pe,{onClick:()=>e("/newsletter-publisher"),className:"bg-emerald-600 hover:bg-emerald-700",children:[s.jsx(Sv,{className:"w-4 h-4 mr-2"}),"New Newsletter"]}),s.jsxs(pe,{onClick:()=>e("/lead-sharing"),variant:"outline",children:[s.jsx(d2,{className:"w-4 h-4 mr-2"}),"Create Share Link"]}),s.jsxs(pe,{onClick:()=>e("/lead-management"),variant:"outline",children:[s.jsx(kn,{className:"w-4 h-4 mr-2"}),"View Leads"]}),s.jsxs(pe,{onClick:u,variant:"ghost",disabled:o,children:[s.jsx(iC,{className:`w-4 h-4 mr-2 ${o?"animate-spin":""}`}),"Refresh"]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4 mb-8",children:[s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Total Leads"}),s.jsx("p",{className:"text-2xl font-bold",children:o?"...":(i==null?void 0:i.kpis.totalLeads)??0}),i&&i.kpis.recentLeads7d>0&&s.jsxs("p",{className:"text-xs text-green-500",children:["+",i.kpis.recentLeads7d," this week"]})]}),s.jsx(kn,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Page Views Today"}),s.jsx("p",{className:"text-2xl font-bold",children:o?"...":(i==null?void 0:i.kpis.pageViewsToday)??0})]}),s.jsx(is,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Active Shares"}),s.jsx("p",{className:"text-2xl font-bold",children:o?"...":(i==null?void 0:i.kpis.activeShares)??0})]}),s.jsx(u2,{className:"h-8 w-8 text-green-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Newsletter Subscribers"}),s.jsx("p",{className:"text-2xl font-bold",children:o?"...":(i==null?void 0:i.kpis.newsletterSubscribers)??0}),s.jsxs("p",{className:"text-xs text-gray-500",children:[(i==null?void 0:i.kpis.totalSubscribers)??0," in sequence"]})]}),s.jsx(xn,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Newsletters Sent"}),s.jsx("p",{className:"text-2xl font-bold",children:o?"...":(i==null?void 0:i.kpis.publishedNewsletters)??0})]}),s.jsx(xI,{className:"h-8 w-8 text-emerald-500"})]})})})]}),i&&i.activityFeed.length>0&&s.jsxs("div",{className:"mb-8",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(IB,{className:"h-5 w-5 text-cyan-500"}),s.jsx("h2",{className:"text-xl font-semibold",children:"Recent Activity"})]}),s.jsx(Re,{children:s.jsx(Me,{className:"p-0",children:s.jsx("div",{className:"divide-y dark:divide-gray-700",children:i.activityFeed.slice(0,8).map((h,p)=>s.jsxs("div",{className:"flex items-center gap-4 p-4 hover:bg-gray-50 dark:hover:bg-gray-800",children:[s.jsxs("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${h.type==="lead"?"bg-cyan-100 text-cyan-600":h.type==="newsletter"?"bg-emerald-100 text-emerald-600":"bg-green-100 text-green-600"}`,children:[h.type==="lead"&&s.jsx(kn,{className:"h-5 w-5"}),h.type==="newsletter"&&s.jsx(xn,{className:"h-5 w-5"}),h.type==="share"&&s.jsx(u2,{className:"h-5 w-5"})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:h.title}),s.jsx("p",{className:"text-sm text-gray-500",children:h.subtitle})]}),s.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[s.jsx(Oi,{className:"h-3 w-3"}),new Date(h.timestamp).toLocaleDateString()]})]},p))})})})]}),s.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Management Tools"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:m.map(h=>s.jsxs(Re,{className:"hover:shadow-lg transition-shadow cursor-pointer",onClick:()=>e(h.href),"data-testid":`card-${h.href.substring(1)}`,children:[s.jsxs(Nt,{children:[s.jsx("div",{className:`w-12 h-12 rounded-lg ${h.color} flex items-center justify-center text-white mb-3`,children:h.icon}),s.jsx(Lt,{className:"text-lg",children:h.title}),s.jsx(Kt,{children:h.description})]}),s.jsx(Me,{children:s.jsx(pe,{variant:"ghost",className:"w-full justify-start","data-testid":`button-navigate-${h.href.substring(1)}`,children:"Open →"})})]},h.href))}),s.jsxs("div",{className:"mt-8 p-4 bg-gray-100 dark:bg-gray-800 rounded-lg",children:[s.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:[s.jsx("strong",{children:"System Status:"})," All systems operational"]}),s.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Last updated: ",new Date().toLocaleStr
760ing()]})]})]})]}):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-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-4 text-gray-600",children:"Loading..."})]})})}function _Ee(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState(""),[i,a]=S.useState(!1),[o,l]=S.useState(!1),[u,d]=S.useState(null),[m,h]=S.useState({email:"",firstName:"",lastName:"",company:"",source:"manual",leadMagnet:"",status:"active",sequenceDay:1});S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(O=>O.json()).then(O=>{O.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const{data:p=[],isLoading:x}=Qu({queryKey:["/api/admin/email-subscribers"],queryFn:async()=>{const O=await fetch("/api/admin/email-subscribers",{credentials:"include"});if(!O.ok){if(O.status===401)return e("/login"),[];throw new Error("Failed to fetch subscribers")}return O.json()}}),w=p.filter(O=>{var F,D,L;return O.email.toLowerCase().includes(r.toLowerCase())||((F=O.firstName)==null?void 0:F.toLowerCase().includes(r.toLowerCase()))||((D=O.lastName)==null?void 0:D.toLowerCase().includes(r.toLowerCase()))||((L=O.company)==null?void 0:L.toLowerCase().includes(r.toLowerCase()))}),v=p.filter(O=>O.status==="active").length,y=p.filter(O=>O.status==="unsubscribed").length,j=ma({mutationFn:async O=>ss("/api/admin/email-subscribers",{method:"POST",body:JSON.stringify(O)}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/admin/email-subscribers"]}
760),t({title:"Success",description:"Subscriber added successfully"}),a(!1),C()},onError:()=>{t({title:"Error",description:"Failed to add subscriber",variant:"destructive"})}}),k=ma({mutationFn:async O=>ss(`/api/admin/email-subscribers/${O.id}`,{method:"PUT",body:JSON.stringify(O)}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/admin/email-subscribers"]}),t({title:"Success",description:"Subscriber updated successfully"}),l(!1),d(null),C()},onError:()=>{t({title:"Error",description:"Failed to update subscriber",variant:"destructive"})}}),N=ma({mutationFn:async O=>ss(`/api/admin/email-subscribers/${O}`,{method:"DELETE"}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/admin/email-subscribers"]}),t({title:"Success",description:"Subscriber deleted successfully"})},onError:()=>{t({title:"Error",description:"Failed to delete subscriber",variant:"destructive"})}}),C=()=>{h({email:"",firstName:"",lastName:"",company:"",source:"manual",leadMagnet:"",status:"active",sequenceDay:1})},A=O=>{d(O),h({email:O.email,firstName:O.firstName||"",lastName:O.lastName||"",company:O.company||"",source:O.source,leadMagnet:O.leadMagnet||"",status:O.status,sequenceDay:O.sequenceDay}),l(!0)},E=O=>{confirm("Are you sure you want to delete this subscriber?")&&N.mutate(O)},_=()=>{const O=["Email","Name","Company","Source","Status","Sequence Day","Subscribed"],F=w.map(z=>[z.email,`${z.firstName||""} ${z.lastName||""}`.trim(),z.company||"",z.source,z.status,z.sequenceDay.toString(),new Date(z.subscribedAt).toLocaleDateString()]),D=[O.join(","),...F.map(z=>z.map(K=>`"${K}"`).join(","))].join(`
761`),L=new Blob([D],{type:"text/csv"}),I=window.URL.createObjectURL(L),$=document.createElement("a");$.href=I,$.download=`subscribers-${new Date().toISOString().split("T")[0]}.csv`,$.click(),t({title:"Export successful",description:`Exported ${w.length} subscribers to CSV`})},R=async O=>{try{if((await fetch(`/api/admin/email-subscribers/${O}/test`,{method:"POST",credentials:"include"})).ok)t({title:"Test email sent",description:"Check the subscriber's inbox"});else throw new Error("Failed to send test email")}catch{t({title:"Error",description:"Failed to send test email",variant:"destructive"})}};return s.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b",children:s.jsx("div",{className:"container mx-auto px-4 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(pe,{variant:"ghost",size:"sm",onClick:()=>e("/admin"),"data-testid":"button-back",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),"Back to Admin"]}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Email Subscribers"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Manage the newsletter list and legacy automation records"})]})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(pe,{onClick:()=>a(!0),"data-testid":"button-add",children:[s.jsx(Sv,{className:"h-4 w-4 mr-2"}),"Add Subscriber"]}),s.jsxs(pe,{onClick:_,variant:"outline","data-testid":"button-export",children:[s.jsx($o,{className:"h-4 w-4 mr-2"}),"Export CSV"]})]})]})})}),s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Total Email Records"}),s.jsx("p",{className:"text-2xl font-bold",children:p.length})]}),s.jsx(kn,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Active"}),s.jsx("p",{className:"text-2xl font-bold text-green-600",children:v})]}),s.jsx(IB,{className:"h-8 w-8 text-green-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Unsubscribed"}),s.jsx("p",{className:"text-2xl font-bold text-gray-500",children:y})]}),s.jsx(wJ,{className:"h-8 w-8 text-gray-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Avg. Sequence Day"}),s.jsx("p",{className:"text-2xl font-bold",children:p.length>0?Math.round(p.reduce((O,F)=>O+F.sequenceDay,0)/p.length):0})]}),s.jsx(Zu,{className:"h-8 w-8 text-cyan-500"})]})})})]}),s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"relative",children:[s.jsx(Ud,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),s.jsx(Je,{type:"text",placeholder:"Search by email, name, or company...",value:r,onChange:O=>n(O.target.value),className:"pl-10","data-testid":"input-search"})]})}),s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"All Subscribers"}),s.jsxs(Kt,{children:[w.length," subscriber",w.length!==1?"s":""," found"]}
761)]}),s.jsx(Me,{children:x?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading subscribers..."})]}):w.length===0?s.jsx("div",{className:"text-center py-8 text-gray-500",children:"No subscribers found"}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b",children:[s.jsx("th",{className:"text-left p-2 font-medium",children:"Email"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Name"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Source"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Status"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Day"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Subscribed"}),s.jsx("th",{className:"text-left p-2 font-medium",children:"Actions"})]})}),s.jsx("tbody",{children:w.map(O=>s.jsxs("tr",{className:"border-b hover:bg-gray-50 dark:hover:bg-gray-800",children:[s.jsx("td",{className:"p-2",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(xn,{className:"h-4 w-4 text-gray-400"}),s.jsx("span",{className:"font-medium",children:O.email})]})}),s.jsx("td",{className:"p-2",children:s.jsxs("div",{children:[s.jsxs("div",{children:[O.firstName," ",O.lastName]}),O.company&&s.jsx("div",{className:"text-xs text-gray-500",children:O.company})]})}),s.jsx("td",{className:"p-2",children:s.jsxs("div",{children:[s.jsx("div",{className:"text-sm",children:O.source}),O.leadMagnet&&s.jsx("div",{className:"text-xs text-gray-500",children:O.leadMagnet})]})}),s.jsx("td",{className:"p-2",children:s.jsx(jr,{variant:O.status==="active"?"default":"secondary",children:O.status})}),s.jsx("td",{className:"p-2",children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Sa,{className:"h-3 w-3 text-gray-400"}),s.jsxs("span",{className:"text-sm",children:["Day ",O.sequenceDay]})]})}),s.jsxs("td",{className:"p-2 text-sm text-gray-600",children:[ri(new Date(O.subscribedAt))," ago"]}),s.jsx("td",{className:"p-2",children:s.jsxs("div",{className:"flex gap-1",children:[s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>A(O),"data-testid":`button-edit-${O.id}`,title:"Edit subscriber",children:s.jsx(oC,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>R(O.id),disabled:O.status!=="active","data-testid":`button-test-${O.id}`,title:"Send test email",children:s.jsx(Zu,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>E(O.id),"data-testid":`button-delete-${O.id}`,className:"text-red-600 hover:text-red-700",title:"Delete subscriber",children:s.jsx(Nv,{className:"h-4 w-4"})})]})})]},O.id))})]})})})]})]}),s.jsx($d,{open:i,onOpenChange:a,children:s.jsxs(jc,{children:[s.jsxs(Sc,{children:[s.jsx(kc,{children:"Add New Subscriber"}),s.jsx(Nc,{children:"Manually add someone only when they explicitly asked to receive the newsletter."})]}),s.jsxs("div",{className:"grid gap-4 py-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"email",children:"Email *"}),s.jsx(Je,{id:"email",type:"email",value:m.email,onChange:O=>h({...m,email:O.target.value}),placeholder:"[email protected]",required:!0})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"status",children:"Status"}),s.jsxs(Go,{value:m.status,onValueChange:O=>h({...m,status:O}),children:[s.jsx(Ca,{id:"status",children:s.jsx(Ko,{})}),s.jsxs(Pa,{children:[s.jsx(Bt,{value:"active",children:"Active"}),s.jsx(Bt,{value:"unsubscribed",children:"Unsubscribed"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"firstName",children:"First Name"}),s.jsx(Je,{id:"firstName",value:m.firstName,onChange:O=>h({...m,firstName:O.target.value}),placeholder:"John"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"lastName",children:"Last Name"}),s.jsx(Je,{id:"lastName",value:m.lastName,onChange:O=>h({...m,lastName:O.target.value}),placeholder:"Doe"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"company",children:"Company"}),s.jsx(Je,{id:"company",value:m.company,onChange:O=>h({...m,company:O.target.value}),placeholder:"Acme Inc"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"sequenceDay",children:"Sequence Day"}),s.jsx(Je,{id:"sequenceDay",type:"number",min:"1",max:"30",value:m.sequenceDay,onChange:O=>h({...m,sequenceDay:parseInt(O.target.value)||1})})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"source",children:"Source"}
761),s.jsx(Je,{id:"source",value:m.source,onChange:O=>h({...m,source:O.target.value}),placeholder:"manual"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"leadMagnet",children:"Lead Magnet"}),s.jsx(Je,{id:"leadMagnet",value:m.leadMagnet,onChange:O=>h({...m,leadMagnet:O.target.value}),placeholder:"Optional"})]})]})]}),s.jsxs(qm,{children:[s.jsx(pe,{variant:"outline",onClick:()=>a(!1),children:"Cancel"}),s.jsx(pe,{onClick:()=>j.mutate(m),disabled:!m.email||j.isPending,children:j.isPending?"Adding...":"Add Subscriber"})]})]})}),s.jsx($d,{open:o,onOpenChange:l,children:s.jsxs(jc,{children:[s.jsxs(Sc,{children:[s.jsx(kc,{children:"Edit Subscriber"}),s.jsx(Nc,{children:"Update subscriber information"})]}),s.jsxs("div",{className:"grid gap-4 py-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-email",children:"Email *"}),s.jsx(Je,{id:"edit-email",type:"email",value:m.email,onChange:O=>h({...m,email:O.target.value}),placeholder:"[email protected]",required:!0})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-status",children:"Status"}),s.jsxs(Go,{value:m.status,onValueChange:O=>h({...m,status:O}),children:[s.jsx(Ca,{id:"edit-status",children:s.jsx(Ko,{})}),s.jsxs(Pa,{children:[s.jsx(Bt,{value:"active",children:"Active"}),s.jsx(Bt,{value:"unsubscribed",children:"Unsubscribed"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-firstName",children:"First Name"}),s.jsx(Je,{id:"edit-firstName",value:m.firstName,onChange:O=>h({...m,firstName:O.target.value}),placeholder:"John"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-lastName",children:"Last Name"}),s.jsx(Je,{id:"edit-lastName",value:m.lastName,onChange:O=>h({...m,lastName:O.target.value}),placeholder:"Doe"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-company",children:"Company"}),s.jsx(Je,{id:"edit-company",value:m.company,onChange:O=>h({...m,company:O.target.value}),placeholder:"Acme Inc"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-sequenceDay",children:"Sequence Day"}),s.jsx(Je,{id:"edit-sequenceDay",type:"number",min:"1",max:"30",value:m.sequenceDay,onChange:O=>h({...m,sequenceDay:parseInt(O.target.value)||1})})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-source",children:"Source"}),s.jsx(Je,{id:"edit-source",value:m.source,onChange:O=>h({...m,source:O.target.value}),placeholder:"manual"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-leadMagnet",children:"Lead Magnet"}),s.jsx(Je,{id:"edit-leadMagnet",value:m.leadMagnet,onChange:O=>h({...m,leadMagnet:O.target.value}),placeholder:"Optional"})]})]})]}),s.jsxs(qm,{children:[s.jsx(pe,{variant:"outline",onClick:()=>l(!1),children:"Cancel"}),s.jsx(pe,{onClick:()=>u&&k.mutate({...m,id:u.id}),disabled:!m.email||k.isPending,children:k.isPending?"Updating...":"Update Subscriber"})]})]})})]})}function OEe(){const[,e]=Pn(),[t,r]=S.useState(""),[n,i]=S.useState(null);S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(h=>h.json()).then(h=>{h.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const{data:a=[],isLoading:o}=Qu({queryKey:["/api/admin/gtm-assessments"],queryFn:async()=>{const h=await fetch("/api/admin/gtm-assessments",{credentials:"include"});if(!h.ok){if(h.status===401)return e("/login"),[];throw new Error("Failed to fetch assessments")}return h.json()}}),l=a.filter(h=>h.companyName.toLowerCase().includes(t.toLowerCase())||h.email.toLowerCase().includes(t.toLowerCase())||h.firstName.toLowerCase().includes(t.toLowerCase())||h.lastName.toLowerCase().includes(t.toLowerCase())),u=()=>{const h=["Company","Contact","Email","Stage","Revenue","Date"],p=l.map(j=>[j.companyName,`${j.firstName} ${j.lastName}`,j.email,j.currentStage,j.monthlyRevenue,new Date(j.createdAt).toLocaleDateString()]),x=[h.join(","),...p.map(j=>j.map(k=>`"${k}"`).join(","))].join(`
762`),w=new Blob([x],{type:"text/csv"}),v=window.URL.createObjectURL(w),y=document.createElement("a");y.href=v,y.download=`gtm-assessments-${new Date().toISOString().split("T")[0]}.csv`,y.click()},d=h=>({adminOverload:"Admin Overload",pipelineBlackHoles:"Pipeline Black Holes",forecastingByGut:"Forecasting b
762y Gut",risingCacFallingRoi:"Rising CAC/Falling ROI",slowDealVelocity:"Slow Deal Velocity",poorVisibility:"Poor Visibility",disconnectedTools:"Disconnected Tools",manualLeadRouting:"Manual Lead Routing",contentChaos:"Content Chaos"})[h]||h,m=h=>h>=4?"text-red-600 font-bold":h>=3?"text-cyan-600":"text-gray-600";return s.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b",children:s.jsx("div",{className:"container mx-auto px-4 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(pe,{variant:"ghost",size:"sm",onClick:()=>e("/admin"),"data-testid":"button-back",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),"Back to Admin"]}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"GTM Assessments"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Review submitted GTM assessment forms"})]})]}),s.jsxs(pe,{onClick:u,"data-testid":"button-export",children:[s.jsx($o,{className:"h-4 w-4 mr-2"}),"Export CSV"]})]})})}),s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Total Assessments"}),s.jsx("p",{className:"text-2xl font-bold",children:a.length})]}),s.jsx(DB,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"This Week"}),s.jsx("p",{className:"text-2xl font-bold",children:a.filter(h=>new Date(h.createdAt)>new Date(Date.now()-10080*60*1e3)).length})]}),s.jsx(Sa,{className:"h-8 w-8 text-green-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Enterprise"}),s.jsx("p",{className:"text-2xl font-bold",children:a.filter(h=>parseInt(h.monthlyRevenue.replace(/[^0-9]/g,""))>1e6).length})]}),s.jsx(l2,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"High Growth"}),s.jsx("p",{className:"text-2xl font-bold",children:a.filter(h=>h.currentStage==="Scaling"||h.currentStage==="Growth").length})]}),s.jsx(Ju,{className:"h-8 w-8 text-cyan-500"})]})})})]}),s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"relative",children:[s.jsx(Ud,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),s.jsx(Je,{type:"text",placeholder:"Search by company, name, or email...",value:t,onChange:h=>r(h.target.value),className:"pl-10","data-testid":"input-search"})]})}),s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Assessment Submissions"}),s.jsxs(Kt,{children:[l.length," assessment",l.length!==1?"s":""," found"]})]}),s.jsx(Me,{children:o?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading assessments..."})]}):l.length===0?s.jsx("div",{className:"text-center py-8 text-gray-500",children:"No assessments found"}):s.jsx("div",{className:"space-y-4",children:l.map(h=>s.jsx(Re,{className:"hover:shadow-md transition-shadow",children:s.jsx(Me,{className:"p-4",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("h3",{className:"font-semibold text-lg",children:h.companyName}),s.jsx(jr,{children:h.currentStage})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Contact:"})," ",h.firstName," ",h.lastName]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Email:"})," ",s.jsx("a",{href:`mailto:${h.email}`,className:"text-cyan-600 hover:underline",children:h.email})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Revenue:"})," ",h.monthlyRevenue]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Target:"})," ",h.targetRevenue]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Sales Cycle:"})," ",h.salesCycle]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Submitted:"})," ",ri(new Date(h.createdAt))," ago"]})]}),s.jsxs("div",{className:"mt-4",children:[s.jsx("p",{className:"text-sm font-medium mb-2",children:"Top Pain Points:"}),s.jsx("div",{className:"grid grid-cols-3 gap-2 text-xs",children:Object.entries(h.painPoints).sort(([,p],[,x])=>x-p).slice(0,3).map(([p,x])=>s.jsxs("div",{className:`flex items-center gap-1 ${m(x)}`,children:[s.jsxs("span",{className:"font-medium",children:[x,"/5"]}),s.jsx("span",{children:d(p)})]},p))})]})]}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>i(h),"data-testid":`button-view-${h.id}`,children:s.jsx(is,{className:"h-4 w-4"})})]})})},h.id))})})]})]}),n&&s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:s.jsxs(Re,{className:"max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[s.jsxs(Nt,{children:[s.jsxs(Lt,{children:[n.companyName," - Assessment Details"]}
762),s.jsxs(Kt,{children:["Submitted ",ri(new Date(n.createdAt))," ago"]})]}),s.jsxs(Me,{className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Contact"}),s.jsxs("p",{children:[n.firstName," ",n.lastName]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Email"}),s.jsx("p",{children:n.email})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Website"}),s.jsx("p",{children:n.website})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Stage"}),s.jsx("p",{children:n.currentStage})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Monthly Revenue"}),s.jsx("p",{children:n.monthlyRevenue})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Target Revenue"}),s.jsx("p",{children:n.targetRevenue})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium mb-2",children:"Pain Points (1-5 scale)"}),s.jsx("div",{className:"space-y-2",children:Object.entries(n.painPoints).map(([h,p])=>s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm",children:d(h)}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"w-32 bg-gray-200 rounded-full h-2",children:s.jsx("div",{className:`h-2 rounded-full ${p>=4?"bg-cyan-500":p>=3?"bg-cyan-400":"bg-gray-400"}`,style:{width:`${p/5*100}%`}})}),s.jsx("span",{className:`text-sm font-medium w-8 text-right ${m(p)}`,children:p})]})]},h))})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(pe,{onClick:()=>i(null),children:"Close"})})]})]})})]})}function IEe(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState([]),[i,a]=S.useState(!0),[o,l]=S.useState(new Date);S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(h=>h.json()).then(h=>{h.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const u=async()=>{a(!0);try{const h=await fetch("/api/admin/database-stats",{credentials:"include"});if(!h.ok){if(h.status===401){e("/login");return}throw new Error("Failed to fetch database stats")}const p=await h.json();n([{name:"Users",count:p.users||0,icon:s.jsx(kn,{className:"h-5 w-5"}),description:"Admin and system users"},{name:"Email Subscribers",count:p.emailSubscribers||0,icon:s.jsx(xn,{className:"h-5 w-5"}),description:"Newsletter and automation subscribers"},{name:"Lead Magnet Shares",count:p.leadMagnetShares||0,icon:s.jsx(d2,{className:"h-5 w-5"}),description:"Secure share links for lead magnets"},{name:"Visitor Sessions",count:p.visitorSessions||0,icon:s.jsx(kn,{className:"h-5 w-5"}),description:"Website visitor tracking"},{name:"Page Views",count:p.pageViews||0,icon:s.jsx(Ni,{className:"h-5 w-5"}),description:"Page view analytics"},{name:"Conversions",count:p.conversions||0,icon:s.jsx(ts,{className:"h-5 w-5"}),description:"Lead conversions and signups"}]),l(new Date)}catch(h){console.error("Error fetching database stats:",h),t({title:"Error",description:"Failed to fetch database statistics",variant:"destructive"})}finally{a(!1)}};S.useEffect(()=>{u()},[]);const d=async()=>{try{if((await fetch("/api/admin/database-optimize",{method:"POST",credentials:"include"})).ok)t({title:"Optimization complete",description:"Database has been optimized successfully"}),u();else throw new Error("Optimization failed")}catch{t({title:"Error",description:"Failed to optimize database",variant:"destructive"})}},m=h=>h>=1e6?`${(h/1e6).toFixed(1)}M`:h>=1e3?`${(h/1e3).toFixed(1)}K`:h.toString();return s.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b",children:s.jsx("div",{className:"container mx-auto px-4 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(pe,{variant:"ghost",size:"sm",onClick:()=>e("/admin"),"data-testid":"button-back",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),"Back to Admin"]}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Database Manager"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Monitor database tables and performance"})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(pe,{variant:"outline",onClick:u,disabled:i,"data-testid":"button-refresh",children:[s.jsx(iC,{className:`h-4 w-4 mr-2 ${i?"animate-spin":""}`}),"Refresh"]}),s.jsx(pe,{onClick:d,disabled:i,"data-testid":"button-optimize",children:"Optimize Database"})]})]})})}),s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs(Re,{className:"mb-6",children:[s.jsx(Nt,{children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx(Lt,{children:"Database Status"}),s.jsx(Kt,{children:"PostgreSQL (Neon-backed)"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ts,{className:"h-5 w-5 text-green-500"}),s.jsx("span",{className:"text-sm font-medium text-green-600",children:"Connected"})]})]})}),s.jsx(Me,{children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Connection String:"}),s.jsx("p",{className:"font-mono text-xs mt-1",children:"DATABASE_URL (Environment Variable)"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Last Updated:"}
762),s.jsx("p",{children:o.toLocaleString()})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-gray-500",children:"Total Records:"}),s.jsx("p",{className:"text-xl font-bold",children:m(r.reduce((h,p)=>h+p.count,0))})]})]})})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mb-6",children:i?s.jsx(Re,{className:"col-span-full",children:s.jsx(Me,{className:"py-12",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading database statistics..."})]})})}):r.map(h=>s.jsxs(Re,{className:"hover:shadow-md transition-shadow",children:[s.jsx(Nt,{className:"pb-3",children:s.jsx("div",{className:"flex items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"p-2 bg-gray-100 dark:bg-gray-700 rounded-lg",children:h.icon}),s.jsxs("div",{children:[s.jsx(Lt,{className:"text-base",children:h.name}),s.jsx(Kt,{className:"text-xs",children:h.description})]})]})})}),s.jsxs(Me,{children:[s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold",children:m(h.count)}),s.jsx("span",{className:"text-sm text-gray-500",children:"records"})]}),s.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[s.jsx(gJ,{className:"h-3 w-3 text-gray-400"}),s.jsxs("span",{className:"text-xs text-gray-500",children:["Table: ",h.name.toLowerCase().replace(/ /g,"_")]})]})]})]},h.name))}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{className:"text-lg",children:"Database Operations"})}),s.jsxs(Me,{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ts,{className:"h-4 w-4 text-green-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Automatic Backups"}),s.jsx("p",{className:"text-gray-500",children:"Daily automated backups at 3 AM UTC"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ts,{className:"h-4 w-4 text-green-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Session Management"}),s.jsx("p",{className:"text-gray-500",children:"Sessions stored in PostgreSQL with 30-day expiry"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ts,{className:"h-4 w-4 text-green-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Data Encryption"}),s.jsx("p",{className:"text-gray-500",children:"Passwords hashed with bcrypt, tokens with SHA-256"})]})]})]})]}),s.jsxs(Re,{children:[s.jsx(Nt,{children:s.jsx(Lt,{className:"text-lg",children:"Performance Tips"})}),s.jsxs(Me,{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ni,{className:"h-4 w-4 text-yellow-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Index Optimization"}),s.jsx("p",{className:"text-gray-500",children:"Indexes on email, username, and token fields"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ni,{className:"h-4 w-4 text-yellow-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Query Performance"}),s.jsx("p",{className:"text-gray-500",children:"Use pagination for large result sets"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(ni,{className:"h-4 w-4 text-yellow-500 mt-1"}),s.jsxs("div",{className:"text-sm",children:[s.jsx("p",{className:"font-medium",children:"Connection Pooling"}),s.jsx("p",{className:"text-gray-500",children:"Managed by Neon for optimal performance"})]})]})]})]})]})]})]})}function REe(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState(""),[i,a]=S.useState("all"),[o,l]=S.useState([]),[u,d]=S.useState(!0);S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(j=>j.json()).then(j=>
762{j.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const m=async()=>{d(!0);try{const j=await fetch("/api/admin/content",{credentials:"include"});if(!j.ok){if(j.status===401){e("/login");return}throw new Error("Failed to fetch content")}const k=await j.json();l(k)}catch(j){console.error("Error fetching content:",j),t({title:"Error",description:"Failed to fetch content items",variant:"destructive"})}finally{d(!1)}};S.useEffect(()=>{m()},[]);const h=o.filter(j=>{const k=j.title.toLowerCase().includes(r.toLowerCase())||j.author.toLowerCase().includes(r.toLowerCase())||j.category.toLowerCase().includes(r.toLowerCase()),N=i==="all"||j.type===i;return k&&N}),p=j=>{switch(j){case"blog":return"bg-cyan-100 text-cyan-800";case"resource":return"bg-green-100 text-green-800";case"lead-magnet":return"bg-cyan-200 text-cyan-900";default:return"bg-gray-100 text-gray-800"}},x=j=>j==="published"?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800",w=o.reduce((j,k)=>j+k.views,0),v=o.reduce((j,k)=>j+(k.downloads||0),0),y=o.filter(j=>j.status==="published").length;return s.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b",children:s.jsx("div",{className:"container mx-auto px-4 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(pe,{variant:"ghost",size:"sm",onClick:()=>e("/admin"),"data-testid":"button-back",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),"Back to Admin"]}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Content Manager"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Manage blog posts, resources, and lead magnets"})]})]}),s.jsxs(pe,{"data-testid":"button-new",children:[s.jsx(Sv,{className:"h-4 w-4 mr-2"}),"New Content"]})]})})}),s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Total Content"}),s.jsx("p",{className:"text-2xl font-bold",children:o.length})]}),s.jsx(Ni,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Published"}),s.jsx("p",{className:"text-2xl font-bold text-green-600",children:y})]}),s.jsx(Ix,{className:"h-8 w-8 text-green-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Total Views"}),s.jsx("p",{className:"text-2xl font-bold",children:w>=1e3?`${(w/1e3).toFixed(1)}K`:w})]}),s.jsx(is,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Downloads"}),s.jsx("p",{className:"text-2xl font-bold",children:v>=1e3?`${(v/1e3).toFixed(1)}K`:v})]}),s.jsx($o,{className:"h-8 w-8 text-cyan-500"})]})})})]}),s.jsxs("div",{className:"mb-6 flex flex-col sm:flex-row gap-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Ud,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),s.jsx(Je,{type:"text",placeholder:"Search by title, author, or category...",value:r,onChange:j=>n(j.target.value),className:"pl-10","data-testid":"input-search"})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(pe,{variant:i==="all"?"default":"outline",size:"sm",onClick:()=>a("all"),"data-testid":"filter-all",children:"All"}),s.jsx(pe,{variant:i==="blog"?"default":"outline",size:"sm",onClick:()=>a("blog"),"data-testid":"filter-blog",children:"Blog"}),s.jsx(pe,{variant:i==="resource"?"default":"outline",size:"sm",onClick:()=>a("resource"),"data-testid":"filter-resource",children:"Resources"}),s.jsx(pe,{variant:i==="lead-magnet"?"default":"outline",size:"sm",onClick:()=>a("lead-magnet"),"data-testid":"filter-lead-magnet",children:"Lead Magnets"})]})]}),s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Content Items"}),s.jsxs(Kt,{children:[h.length," item",h.length!==1?"s":""," found"]}
762)]}),s.jsx(Me,{children:u?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading content..."})]}):h.length===0?s.jsx("div",{className:"text-center py-8 text-gray-500",children:"No content items found"}):s.jsx("div",{className:"space-y-4",children:h.map(j=>s.jsx(Re,{className:"hover:shadow-md transition-shadow",children:s.jsx(Me,{className:"p-4",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("h3",{className:"font-semibold",children:j.title}),s.jsx(jr,{className:p(j.type),children:j.type.replace("-"," ")}),s.jsx(jr,{className:x(j.status),children:j.status})]}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm text-gray-600 mb-2",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Sa,{className:"h-3 w-3"}),j.publishedAt?ri(new Date(j.publishedAt))+" ago":"Not published"]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(is,{className:"h-3 w-3"}),j.views," views"]}),j.downloads!==void 0&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx($o,{className:"h-3 w-3"}),j.downloads," downloads"]}),s.jsxs("div",{children:["By ",j.author]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(yJ,{className:"h-3 w-3 text-gray-400"}),s.jsx("span",{className:"text-xs text-gray-500",children:j.category}),j.tags.map(k=>s.jsx(jr,{variant:"secondary",className:"text-xs",children:k},k))]})]}),s.jsxs("div",{className:"flex gap-2 ml-4",children:[j.url&&s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>window.open(j.url,"_blank"),"data-testid":`button-view-${j.id}`,children:s.jsx(is,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost","data-testid":`button-edit-${j.id}`,children:s.jsx(oC,{className:"h-4 w-4"})})]})]})})},j.id))})})]})]})]})}function MEe(){const[,e]=Pn(),[t,r]=S.useState([]),[n,i]=S.useState(""),[a,o]=S.useState(new Set),[l,u]=S.useState(!0);S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(y=>y.json()).then(y=>{y.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const d=async()=>{u(!0);try{const y=await fetch("/api/admin/chat-sessions",{credentials:"include"});if(!y.ok){if(y.status===401){e("/login");return}throw new Error("Failed to fetch sessions")}const j=await y.json();r(j)}catch(y){console.error("Error fetching sessions:",y)}finally{u(!1)}};S.useEffect(()=>{d()},[]);const m=t.filter(y=>y.email&&y.email.toLowerCase().includes(n.toLowerCase())||y.name&&y.name.toLowerCase().includes(n.toLowerCase())||y.sessionId.toLowerCase().includes(n.toLowerCase())||y.messages.some(j=>j.content.toLowerCase().includes(n.toLowerCase()))),h=y=>{const j=new Set(a);j.has(y)?j.delete(y):j.add(y),o(j)},p=y=>{switch(y){case"active":return"bg-green-100 text-green-800";case"converted":return"bg-cyan-100 text-cyan-800";case"idle":return"bg-gray-100 text-gray-800";default:return"bg-gray-100 text-gray-800"}},x=t.filter(y=>y.status==="active").length,w=t.filter(y=>y.status==="converted").length,v=t.length>0?Math.round(t.reduce((y,j)=>y+j.messageCount,0)/t.length):0;return s.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[s.jsx("div",{className:"bg-white dark:bg-gray-800 shadow-sm border-b",children:s.jsx("div",{className:"container mx-auto px-4 py-4",children:s.jsx("div",{className:"flex items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs(pe,{variant:"ghost",size:"sm",onClick:()=>e("/admin"),"data-testid":"button-back",children:[s.jsx(li,{className:"h-4 w-4 mr-2"}),"Back to Admin"]}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Chat Sessions"}),s.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Monitor and review AI chat conversations"})]})]})})})}),s.jsxs("div",{className:"container mx-auto px-4 py-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mb-6",children:[s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Total Sessions"}),s.jsx("p",{className:"text-2xl font-bold",children:t.length})]}),s.jsx(gI,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Active Now"}),s.jsx("p",{className:"text-2xl font-bold text-green-600",children:x})]}),s.jsx(Mx,{className:"h-8 w-8 text-green-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Converted"}),s.jsx("p",{className:"text-2xl font-bold text-cyan-600",children:w})]}),s.jsx(xn,{className:"h-8 w-8 text-cyan-500"})]})})}),s.jsx(Re,{children:s.jsx(Me,{className:"p-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-gray-600",children:"Avg. Messages"}),s.jsx("p",{className:"text-2xl font-bold",children:v})]}),s.jsx(Oi,{className:"h-8 w-8 text-cyan-500"})]})})})]}),s.jsx("div",{className:"mb-6",children:s.jsxs("div",{className:"relative",children:[s.jsx(Ud,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),s.jsx(Je,{type:"text",placeholder:"Search by email, name, or message content...",value:n,onChange:y=>i(y.target.value),className:"pl-10","data-testid":"input-search"})]})}),s.jsxs(Re,{children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:"Chat Sessions"}),s.jsxs(Kt,{children:[m.length," session",m.length!==1?"s":""," found"]}
762)]}),s.jsx(Me,{children:l?s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-cyan-500 mx-auto"}),s.jsx("p",{className:"mt-2 text-gray-600",children:"Loading chat sessions..."})]}):m.length===0?s.jsx("div",{className:"text-center py-8 text-gray-500",children:"No chat sessions found"}):s.jsx("div",{className:"space-y-4",children:m.map(y=>s.jsx(Re,{className:"hover:shadow-md transition-shadow",children:s.jsxs(Me,{className:"p-4",children:[s.jsxs("div",{className:"flex items-start justify-between mb-2",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("h3",{className:"font-medium",children:y.name||y.email||`Session ${y.sessionId.slice(0,8)}`}),s.jsx(jr,{className:p(y.status),children:y.status})]}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm text-gray-600",children:[y.email&&s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(xn,{className:"h-3 w-3"}),y.email]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Sa,{className:"h-3 w-3"}),"Started ",ri(new Date(y.startedAt))," ago"]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(gI,{className:"h-3 w-3"}),y.messageCount," messages"]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Oi,{className:"h-3 w-3"}),"Last: ",ri(new Date(y.lastMessageAt))," ago"]})]})]}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>h(y.id),"data-testid":`button-expand-${y.id}`,children:a.has(y.id)?s.jsx(JA,{className:"h-4 w-4"}):s.jsx(wv,{className:"h-4 w-4"})})]}),a.has(y.id)&&s.jsx("div",{className:"mt-4 border-t pt-4",children:s.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:y.messages.map((j,k)=>s.jsxs("div",{className:`flex gap-3 ${j.role==="assistant"?"bg-gray-50 dark:bg-gray-800":""} p-3 rounded-lg`,children:[s.jsx("div",{className:`p-2 rounded-full ${j.role==="assistant"?"bg-cyan-100 text-cyan-600":"bg-gray-100 text-gray-600"}`,children:j.role==="assistant"?s.jsx(ic,{className:"h-4 w-4"}):s.jsx(Mx,{className:"h-4 w-4"})}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"font-medium text-sm",children:j.role==="assistant"?"Pipeline Rebel":"User"}),s.jsxs("span",{className:"text-xs text-gray-500",children:[ri(new Date(j.timestamp))," ago"]})]}),s.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-300 whitespace-pre-wrap",children:j.content})]})]},k))})})]})},y.id))})})]})]})]})}function DEe(){const{toast:e}=fs(),[t,r]=S.useState(!1),[n,i]=S.useState(!1),[a,o]=S.useState(null),[l,u]=S.useState(""),[d,m]=S.useState(""),[h,p]=S.useState(""),[x,w]=S.useState("proposal"),{data:v=[],isLoading:y}=Qu({queryKey:["/api/html-files"]}),j=ma({mutationFn:async D=>ss("/api/html-files",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/html-files"]}),r(!1),m(""),p(""),w("proposal"),e({title:"File created successfully",description:"Your HTML file has been saved to the public directory."})},onError:D=>{e({title:"Error creating file",description:D.message||"Failed to create HTML file",variant:"destructive"})}}),k=ma({mutationFn:async D=>ss(`/api/html-files/${encodeURIComponent(D.filename)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:D.content})}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/html-files"]}),i(!1),o(null),u(""),e({title:"File updated successfully",description:"Your changes have been saved."})},onError:D=>{e({title:"Error updating file",description:D.message||"Failed to update HTML file",variant:"destructive"})}}),N=ma({mutationFn:async D=>ss(`/api/html-files/${encodeURIComponent(D)}`,{method:"DELETE"}),onSuccess:()=>{ki.invalidateQueries({queryKey:["/api/html-files"]}),e({title:"File deleted",description:"The HTML file has been permanently deleted."})},onError:D=>{e({title:"Error deleting file",description:D.message||"Failed to delete HTML file",variant:"destructive"})}}),C=()=>
762{if(!d.trim()){e({title:"Filename required",description:"Please enter a filename for your HTML file",variant:"destructive"});return}if(!h.trim()){e({title:"Content required",description:"Please paste your HTML content",variant:"destructive"});return}const D=d.endsWith(".html")?d:`${d}.html`;j.mutate({filename:D,content:h,fileType:x})},A=async D=>{try{const I=await(await fetch(`/api/html-files/${encodeURIComponent(D.filename)}`)).json();u(I.content),o(D),i(!0)}catch{e({title:"Error loading file",description:"Failed to load file content for editing",variant:"destructive"})}},E=()=>{a&&k.mutate({filename:a.filename,content:l})},_=D=>{const L=`${window.location.origin}/${D.filename}`;navigator.clipboard.writeText(L),e({title:"URL copied!",description:"File URL has been copied to clipboard"})},R=D=>{window.open(`/${D.filename}`,"_blank")},O=D=>D<1024?`${D} B`:D<1024*1024?`${(D/1024).toFixed(1)} KB`:`${(D/(1024*1024)).toFixed(1)} MB`,F=D=>new Date(D).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"HTML File Manager"}),s.jsx("p",{className:"text-gray-400",children:"Create and manage HTML proposal files directly from the admin panel"})]}),s.jsxs($d,{open:t,onOpenChange:r,children:[s.jsx(TEe,{asChild:!0,children:s.jsxs(pe,{className:"bg-cyan-500 hover:bg-cyan-600 text-black",children:[s.jsx(Sv,{className:"h-5 w-5 mr-2"}),"Create HTML File"]})}),s.jsxs(jc,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",children:[s.jsxs(Sc,{children:[s.jsx(kc,{children:"Create HTML File"}),s.jsx(Nc,{children:"Paste your HTML content and give it a filename"})]}),s.jsxs("div",{className:"space-y-6 mt-6",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"filename",children:"Filename"}),s.jsx(Je,{id:"filename",placeholder:"e.g., q1-2025-proposal or special-offer.html",value:d,onChange:D=>m(D.target.value),className:"mt-2"}),s.jsx("p",{className:"text-sm text-gray-500 mt-1",children:".html will be added automatically if not included"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"fileType",children:"File Type"}),s.jsxs(Go,{value:x,onValueChange:D=>w(D),children:[s.jsx(Ca,{className:"mt-2",children:s.jsx(Ko,{placeholder:"Select file type"})}),s.jsxs(Pa,{children:[s.jsx(Bt,{value:"proposal",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ga,{className:"h-4 w-4"}),"Proposal (Protected with token)"]})}),s.jsx(Bt,{value:"lead-magnet",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(hx,{className:"h-4 w-4"}),"Lead Magnet (Public access)"]})})]})]}),s.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Proposals require a token to access, Lead Magnets are publicly accessible"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"content",children:"HTML Content"}),s.jsx(Fd,{id:"content",placeholder:"Paste your complete HTML content here...",value:h,onChange:D=>p(D.target.value),className:"mt-2 font-mono text-sm min-h-[400px]"})]}),s.jsxs("div",{className:"flex justify-end gap-3",children:[s.jsx(pe,{variant:"outline",onClick:()=>{r(!1),m(""),p(""),w("proposal")},children:"Cancel"}),s.jsx(pe,{onClick:C,disabled:j.isPending,className:"bg-cyan-500 hover:bg-cyan-600 text-black",children:j.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Bn,{className:"h-4 w-4 mr-2 animate-spin"})," Creating..."]}):s.jsx(s.Fragment,{children:"Create File"})})]})]})]})]})]}),y?s.jsx("div",{className:"flex items-center justify-center py-12",children:s.jsx(Bn,{className:"h-8 w-8 animate-spin text-cyan-500"})}):v.length===0?s.jsx(Re,{children:s.jsxs(Me,{className:"flex flex-col items-center justify-center py-12",children:[s.jsx(JZ,{className:"h-12 w-12 text-gray-500 mb-4"}),s.jsx("p",{className:"text-lg text-gray-400 mb-2",children:"No HTML files yet"}),s.jsx("p",{className:"text-gray-500",children:"Create your first HTML file to get started"})]})}):s.jsx("div",{className:"grid gap-4",children:v.map(D=>s.jsx(Re,{className:"bg-gray-900/50 border-gray-800",children:s.jsxs(Me,{className:"flex items-center justify-between p-6",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:`p-3 ${D.fileType==="proposal"?"bg-amber-500/10":"bg-cyan-500/10"} rounded-lg`,children:D.fileType==="proposal"?s.jsx(ga,{className:"h-6 w-6 text-amber-500"}):s.jsx(hx,{className:"h-6 w-6 text-cyan-500"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-white text-lg",children:D.filename}),s.jsxs("div",{className:"flex items-center gap-4 mt-1",children:[s.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-medium ${D.fileType==="proposal"?"bg-amber-500/20 text-amber-400":"bg-cyan-500/20 text-cyan-400"}`,children:D.fileType==="proposal"?s.jsxs(s.Fragment,{children:[s.jsx(ga,{className:"h-3 w-3"}),"Proposal"]}):s.jsxs(s.Fragment,{children:[s.jsx(hx,{className:"h-3 w-3"}),"Lead Magnet"]})}),s.jsx("span",{className:"text-sm text-gray-500",children:O(D.size)}),s.jsxs("span",{className:"text-sm text-gray-500",children:["Modified: ",F(D.modified)]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>_(D),className:"text-gray-400 hover:text-white",children:s.jsx($B,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>R(D),className:"text-gray-400 hover:text-white",children:s.jsx(is,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>A(D),className:"text-gray-400 hover:text-white",children:s.jsx(oC,{className:"h-4 w-4"})}),s.jsx(pe,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Are you sure you want to delete ${D.filename}?`)&&N.mutate(D.filename)},className:"text-gray-400 hover:text-white",children:s.jsx(Nv,{className:"h-4 w-4"})})]})]})},D.filename))}),s.jsx($d,{open:n,onOpenChange:i,children:s.jsxs(jc,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",children:[s.jsxs(Sc,{children:[s.jsxs(kc,{children:["Edit ",a==null?void 0:a.filename]}),s.jsx(Nc,{children:"Modify the HTML content of this file"})]}),s.jsxs("div",{className:"space-y-6 mt-6",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"edit-content",children:"HTML Content"}
762),s.jsx(Fd,{id:"edit-content",value:l,onChange:D=>u(D.target.value),className:"mt-2 font-mono text-sm min-h-[400px]"})]}),s.jsxs("div",{className:"flex justify-end gap-3",children:[s.jsx(pe,{variant:"outline",onClick:()=>{i(!1),o(null),u("")},children:"Cancel"}),s.jsx(pe,{onClick:E,disabled:k.isPending,className:"bg-cyan-500 hover:bg-cyan-600 text-black",children:k.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Bn,{className:"h-4 w-4 mr-2 animate-spin"})," Saving..."]}):s.jsx(s.Fragment,{children:"Save Changes"})})]})]})]})})]})}const fF={title:"",subject:"",content:"",excerpt:"",newsletter:"Freedom Brief",audience:"",issueNumber:"",approvedToSend:!1,approvalRequired:!0};function yh(e){return e?new Date(e).toLocaleDateString():""}function LEe(e){return e.approvedToSend||e.manualApprovalRecorded}function $Ee(){const[,e]=Pn(),{toast:t}=fs(),[r,n]=S.useState(!0),[i,a]=S.useState([]),[o,l]=S.useState(null),[u,d]=S.useState(!1),[m,h]=S.useState(!1),[p,x]=S.useState(null),[w,v]=S.useState(!1),[y,j]=S.useState(!1),[k,N]=S.useState(""),[C,A]=S.useState(""),[E,_]=S.useState(!1),[R,O]=S.useState(!1),[F,D]=S.useState(fF);S.useEffect(()=>{fetch("/api/auth/status",{credentials:"include"}).then(B=>B.json()).then(B=>{B.authenticated||e("/login")}).catch(()=>e("/login"))},[e]);const L=async()=>{try{const[B,V]=await Promise.all([fetch("/api/newsletter/posts",{credentials:"include"}),fetch("/api/newsletter/stats",{credentials:"include"})]);B.ok&&a(await B.json()),V.ok&&l(await V.json())}catch(B){console.error("Failed to fetch newsletter data:",B)}finally{n(!1)}};S.useEffect(()=>{L()},[]),S.useEffect(()=>{if(r||u)return;const B=Number(new URLSearchParams(window.location.search).get("post"));if(!B)return;const V=i.find(X=>X.id===B);V&&$(V)},[r,i,u]);const I=()=>{x(null),D(fF),d(!0),h(!1)},$=B=>{x(B),D({title:B.title,subject:B.subject||B.title,content:B.content,excerpt:B.excerpt||"",newsletter:B.newsletter||"Freedom Brief",audience:B.audience||"",issueNumber:B.issueNumber?String(B.issueNumber):"",approvedToSend:B.approvedToSend,approvalRequired:B.approvalRequired}),d(!0),h(!1)},z=async()=>{if(!k.trim()&&!C.trim()){t({title:"Missing package",description:"Paste a Cowork package JSON or provide a whitelisted local package path.",variant:"destructive"});return}_(!0);try{const B=k.trim()?{packageJson:JSON.parse(k)}:{packagePath:C.trim()},V=await fetch("/api/newsletter/import-package",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)}),X=await V.json();if(!V.ok)throw new Error(X.error||"Failed to import package");t({title:X.mode==="updated_draft"?"Draft updated":"Draft imported",description:X.approvalEmailSent?`Post ${X.post.id} is a private draft. Approval email sent to Latif.`:`Post ${X.post.id} is a private draft. Approval email was not sent.`,variant:X.approvalEmailSent?"default":"destructive"}),N(""),A(""),await L(),e(`/newsletter-publisher?post=${X.post.id}`),$(X.post)}catch(B){t({title:"Import failed",description:B.message||"The package could not be imported.",variant:"destructive"})}finally{_(!1)}},K=async B=>{O(!0);try{const V=await fetch(`/api/newsletter/posts/${B.id}/request-approval`,{method:"POST",credentials:"include"}),X=await V.json();if(!V.ok)throw new Error(X.error||"Failed to send approval email");t({title:"Approval email sent",description:"Latif can review and approve this draft by email. No newsletter was sent."}),await L(),X.post&&(p==null?void 0:p.id)===B.id&&x(X.post)}catch(V){t({title:"Approval email failed",description:V.message||"Could not send approval email.",variant:"destructive"})}finally{O(!1)}},Z=async()=>{if(!F.title||!F.subject||!F.content){t({title:"Missing fields",description:"Title, subject, and content are required",variant:"destructive"});return}v(!0);try{const B=p?`/api/newsletter/posts/${p.id}`:"/api/newsletter/posts",V=await fetch(B,{method:p?"PUT":"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({...F,issueNumber:F.issueNumber?Number(F.issueNumber):null})});if(V.ok)t({title:"Saved",description:"Newsletter draft saved. No email was sent."}),d(!1),L();else{const X=await V.json();throw new Error(X.error||"Failed to save")}}catch(B){t({title:"Error",description:B.message||"Failed to save newsletter",variant:"destructive"})}finally{v(!1)}},U=async B=>{if(!o||o.subscribers.confirmedWebsiteNewsletter===0){t({title:"No newsletter subscribers",description:"There are no people on the newsletter list to send to.",variant:"destructive"});return}if(window.prompt(`This will publish and send to ${o.subscribers.confirmedWebsiteNewsletter} newsletter subscriber(s). Type PUBLISH_AND_SEND to continue.`)!=="PUBLISH_AND_SEND")return;let X=!1,ce="";if(!B.approvedToSend){if(X=window.confirm("This draft is not approved_to_send in the package. C
762ontinue only if Latif manually approved this send."),!X)return;if(ce=window.prompt("Record the manual Latif approval note:")||"",!ce.trim()){t({title:"Approval note required",description:"Manual approval must be recorded before sending.",variant:"destructive"});return}}j(!0);try{const ye=await fetch(`/api/newsletter/posts/${B.id}/publish`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirmation:"PUBLISH_AND_SEND",manualLatifApproval:X,approvalNote:ce})}),$e=await ye.json();if(ye.ok)t({title:"Published and sent",description:`Newsletter sent to ${$e.sentCount} subscriber(s)`}),d(!1),L();else throw new Error($e.error||"Failed to publish")}catch(ye){t({title:"Publish blocked",description:ye.message||"Failed to publish newsletter",variant:"destructive"})}finally{j(!1)}},q=async B=>{if(window.confirm("Delete this newsletter draft?"))try{(await fetch(`/api/newsletter/posts/${B}`,{method:"DELETE",credentials:"include"})).ok&&(t({title:"Deleted",description:"Newsletter deleted"}),L())}catch{t({title:"Error",description:"Failed to delete",variant:"destructive"})}};return r?s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-black",children:s.jsx(Bn,{className:"h-8 w-8 animate-spin text-cyan-500"})}):s.jsx("div",{className:"min-h-screen bg-black text-white",children:s.jsxs("div",{className:"container mx-auto px-4 py-8",children:[s.jsxs(pe,{variant:"ghost",onClick:()=>e("/admin"),className:"mb-6 text-gray-400 hover:text-white",children:[s.jsx(li,{className:"mr-2 h-4 w-4"}),"Back to Admin"]}),s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between mb-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-3xl font-bold",children:"Newsletter Publisher"}),s.jsx("p",{className:"text-gray-400 mt-1",children:"Import Cowork issue packages as drafts, preview, and send only after manual approval."})]}),!u&&s.jsxs(pe,{onClick:I,className:"bg-cyan-500 hover:bg-cyan-600",children:[s.jsx(Ni,{className:"mr-2 h-4 w-4"}),"Create Draft"]})]}),o&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4 mb-8",children:[s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"pt-6",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(kn,{className:"h-8 w-8 text-cyan-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-2xl font-bold",children:o.subscribers.confirmedWebsiteNewsletter}),s.jsx("p",{className:"text-sm text-gray-400",children:"Newsletter People"})]})]})})}),s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"pt-6",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Ni,{className:"h-8 w-8 text-yellow-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-2xl font-bold",children:o.posts.drafts}),s.jsx("p",{className:"text-sm text-gray-400",children:"Drafts"})]})]})})}),s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"pt-6",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ni,{className:"h-8 w-8 text-orange-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-2xl font-bold",children:o.subscribers.campaignAdded}),s.jsx("p",{className:"text-sm text-gray-400",children:"Outbound Records Excluded"})]})]})})}),s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"pt-6",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ts,{className:"h-8 w-8 text-green-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-2xl font-bold",children:o.posts.published}),s.jsx("p",{className:"text-sm text-gray-400",children:"Published"})]})]})})}),s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"pt-6",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Tc,{className:"h-8 w-8 text-gray-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-2xl font-bold",children:o.sendLogs.total}),s.jsx("p",{className:"text-sm text-gray-400",children:"Send Logs"})]})]})})})]}
762),!u&&s.jsxs(Re,{className:"bg-gray-900 border-gray-800 mb-8",children:[s.jsxs(Nt,{children:[s.jsxs(Lt,{className:"flex items-center gap-2",children:[s.jsx(yI,{className:"h-5 w-5 text-cyan-400"}),"Import Cowork Package"]}),s.jsx(Kt,{children:"Creates or updates a private draft only. Import never sends, publishes, logs a send, or changes subscribers."})]}),s.jsxs(Me,{className:"space-y-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"packageJson",children:"Package JSON"}),s.jsx(Fd,{id:"packageJson",value:k,onChange:B=>N(B.target.value),placeholder:"Paste pipeline_rebel.newsletter_issue_package.v1 JSON here...",className:"bg-gray-800 border-gray-700 min-h-[180px] font-mono text-sm"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"packagePath",children:"Whitelisted local package path"}),s.jsx(Je,{id:"packagePath",value:C,onChange:B=>A(B.target.value),placeholder:"/Users/latifhorst/pipeline-rebel-cowork/exports/newsletter/...-package.json",className:"bg-gray-800 border-gray-700"})]}),s.jsxs(pe,{onClick:z,disabled:E,className:"bg-cyan-500 hover:bg-cyan-600",children:[E?s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}):s.jsx(yI,{className:"mr-2 h-4 w-4"}),"Import as Draft"]})]})]}),u?s.jsxs(Re,{className:"bg-gray-900 border-gray-800",children:[s.jsxs(Nt,{children:[s.jsx(Lt,{children:p?"Edit Newsletter Draft":"Create Newsletter Draft"}),s.jsx(Kt,{children:p!=null&&p.sentToSubscribers?"This newsletter has already been sent.":"Draft edits are private until publish and send is explicitly confirmed."})]}),s.jsxs(Me,{className:"space-y-6",children:[(p==null?void 0:p.sourcePackageId)&&s.jsxs("div",{className:"rounded-lg border border-cyan-900/60 bg-cyan-950/20 p-4 text-sm text-cyan-100",children:["Imported package: ",s.jsx("span",{className:"font-mono",children:p.sourcePackageId})]}),(p==null?void 0:p.approvalEmailSentAt)&&s.jsxs("div",{className:"rounded-lg border border-emerald-900/60 bg-emerald-950/20 p-4 text-sm text-emerald-100",children:["Approval email sent: ",yh(p.approvalEmailSentAt),p.approvalTokenExpiresAt&&` | Link expires: ${yh(p.approvalTokenExpiresAt)}`]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"title",children:"Archive/Admin Title"}),s.jsx(Je,{id:"title",placeholder:"The Freedom Brief #1: ...",value:F.title,onChange:B=>D(V=>({...V,title:B.target.value})),className:"bg-gray-800 border-gray-700"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"subject",children:"Email Subject"}),s.jsx(Je,{id:"subject",placeholder:"Subject line...",value:F.subject,onChange:B=>D(V=>({...V,subject:B.target.value})),className:"bg-gray-800 border-gray-700"})]})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"audience",children:"Audience"}),s.jsx(Je,{id:"audience",value:F.audience,onChange:B=>D(V=>({...V,audience:B.target.value})),className:"bg-gray-800 border-gray-700"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"issueNumber",children:"Issue Number"}),s.jsx(Je,{id:"issueNumber",type:"number",min:"1",value:F.issueNumber,onChange:B=>D(V=>({...V,issueNumber:B.target.value})),className:"bg-gray-800 border-gray-700"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"excerpt",children:"Excerpt"}),s.jsx(Je,{id:"excerpt",placeholder:"Brief archive/admin summary...",value:F.excerpt,onChange:B=>D(V=>({...V,excerpt:B.target.value})),className:"bg-gray-800 border-gray-700"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[s.jsxs("label",{className:"flex items-start gap-3 rounded-lg border border-gray-800 bg-gray-950 p-4",children:[s.jsx(ly,{checked:F.approvalRequired,onCheckedChange:B=>D(V=>({...V,approvalRequired:B===!0}))}),s.jsxs("span",{children:[s.jsx("span",{className:"block font-medium",children:"Approval required"}),s.jsx("span",{className:"text-sm text-gray-400",children:"Keep this on unless Latif explicitly changes policy."})]})]}),s.jsxs("label",{className:"flex items-start gap-3 rounded-lg border border-gray-800 bg-gray-950 p-4",children:[s.jsx(ly,{checked:F.approvedToSend,onCheckedChange:B=>D(V=>({...V,approvedToSend:B===!0}))}),s.jsxs("span",{children:[s.jsx("span",{className:"block font-medium",children:"Approved to send"}),s.jsx("span",{className:"text-sm text-gray-400",children:"Package approval flag or manual admin a
762pproval."})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(Ze,{htmlFor:"content",children:"Body HTML Fragment"}),s.jsxs(pe,{variant:"ghost",size:"sm",onClick:()=>h(!m),className:"text-cyan-500",children:[s.jsx(is,{className:"mr-1 h-4 w-4"}),m?"Hide Preview":"Show Preview"]})]}),s.jsx(Fd,{id:"content",placeholder:"<h2>The Pain</h2><p>...</p>",value:F.content,onChange:B=>D(V=>({...V,content:B.target.value})),className:"bg-gray-800 border-gray-700 min-h-[320px] font-mono text-sm"})]}),m&&s.jsxs("div",{className:"border border-gray-700 rounded-lg p-6 bg-gray-950",children:[s.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-400",children:"Preview"}),s.jsx("div",{className:"prose prose-invert max-w-none prose-headings:text-cyan-300 prose-a:text-cyan-300 prose-blockquote:border-cyan-700 prose-blockquote:text-gray-300",dangerouslySetInnerHTML:{__html:F.content}})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 pt-4",children:[s.jsx(pe,{variant:"outline",onClick:()=>d(!1),className:"border-gray-700",children:"Cancel"}),s.jsxs(pe,{onClick:Z,disabled:w,className:"bg-gray-700 hover:bg-gray-600",children:[w?s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}):s.jsx(fJ,{className:"mr-2 h-4 w-4"}),"Save Draft"]}),p&&!p.sentToSubscribers&&s.jsxs(pe,{onClick:()=>K(p),disabled:R,className:"bg-cyan-600 hover:bg-cyan-700 disabled:opacity-50",children:[R?s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}):s.jsx(mI,{className:"mr-2 h-4 w-4"}),"Email Approval"]}),p&&!p.sentToSubscribers&&s.jsxs(pe,{onClick:()=>U(p),disabled:y,className:"bg-emerald-600 hover:bg-emerald-700 disabled:opacity-50",children:[y?s.jsx(Bn,{className:"mr-2 h-4 w-4 animate-spin"}):s.jsx(Zu,{className:"mr-2 h-4 w-4"}),"Publish & Send"]})]}),p&&!LEe(p)&&s.jsx("p",{className:"text-sm text-orange-300",children:"Send is blocked until the package is approved_to_send or manual Latif approval is recorded."})]})]}):s.jsx("div",{className:"space-y-4",children:i.length===0?s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsxs(Me,{className:"py-12 text-center",children:[s.jsx(Ni,{className:"h-12 w-12 text-gray-600 mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-semibold mb-2",children:"No newsletters yet"}),s.jsx("p",{className:"text-gray-400 mb-4",children:"Import a Cowork package or create a private draft."}),s.jsx(pe,{onClick:I,className:"bg-cyan-500 hover:bg-cyan-600",children:"Create Draft"})]})}):i.map(B=>s.jsx(Re,{className:"bg-gray-900 border-gray-800",children:s.jsx(Me,{className:"py-4",children:s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[s.jsx("h3",{className:"font-semibold text-lg",children:B.title}),B.status==="published"?s.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-green-900 text-green-300",children:"Published"}):s.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-gray-700 text-gray-300",children:"Draft"}),B.approvedToSend?s.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-emerald-950 text-emerald-300",children:"Approved"}):s.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-orange-950 text-orange-300",children:"Send blocked"}),B.sentToSubscribers&&s.jsxs("span",{className:"px-2 py-0.5 text-xs rounded-full bg-cyan-900 text-cyan-300",children:["Sent to ",B.sentCount]})]}),s.jsxs("p",{className:"text-sm text-gray-300 mb-1",children:["Subject: ",B.subject||B.title]}),s.jsx("p",{className:"text-gray-400 text-sm",children:B.excerpt}),s.jsxs("p",{className:"text-gray-500 text-xs mt-2",children:["Created: ",yh(B.createdAt),B.publishedAt&&` | Published: ${yh(B.publishedAt)}`,B.sourcePackageId&&` | Package: ${B.sourcePackageId}`,B.approvalEmailSentAt&&` | Approval email: ${yh(B.approvalEmailSentAt)}`]})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(pe,{variant:"ghost",size:"sm",onClick:()=>$(B),className:"text-gray-400 hover:text-white",children:s.jsx(dJ,{className:"h-4 w-4"})}),!B.sentToSubscribers&&s.jsxs(s.Fragment,{children:[s.jsx(pe,{variant:"ghost",size:"sm",onClick:()=>K(B),disabled:R,className:"text-cyan-400 hover:text-cyan-300 disabled:opacity-50",children:s.jsx(mI,{className:"h-4 w-4"})}),s.jsx(pe,{variant:"ghost",size:"sm",onClick:()=>U(B),className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(Zu,{className:"h-4 w-4"})}),s.jsx(pe,{variant:"ghost",size:"sm",onClick:()=>q(B.id),className:"text-red-400 hover:text-red-300",children:s.jsx(Nv,{className:"h-4 w-4"})})]})]})]})})},B.id))})]})})}const $N="https://www.skool.com/rebel-hq-8818";function hF(){return s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-md border border-[#b86a52]/35 bg-[#f2dfd3] text-[#241714]","aria-hidden":"true",children:s.jsx(Ra,{className:"h-5 w-5 text-[#b86a52]"})})}function mF(){const{toast:e}=fs(),[t]=Pn(),r=yP(t)?oi:"",n=w=>r?`${r}${w}`:w,[i,a]=S.useState([]),[o,l]=S.useState(!1),[u,d]=S.useState(!1),[m,h]=S.useState({firstName:"",email:"",referredBy:"",rebelHqOptIn:!0});S.useEffect(()=>{document.title="Strategic AI Sellers | SalesSidekick",window.scrollTo(0,0),Ho("page_view",{page:"sales_sidekick_community",title:"Strategic AI Sellers + The Freedom Brief"}),fetch("/api/newsletter/posts/published").then(w=>
762w.json()).then(w=>a(Array.isArray(w)?w:[])).catch(w=>{console.error("Failed to load newsletters:",w),a([])})},[]);const p=()=>{var w;(w=document.getElementById("freedom-signup"))==null||w.scrollIntoView({behavior:"smooth",block:"center"})},x=async w=>{if(w.preventDefault(),!m.email||!m.firstName){e({title:"Required fields",description:"Please enter your first name and email.",variant:"destructive"});return}l(!0);try{await ss("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:m.firstName,email:m.email,source:"SalesSidekick Community - Freedom Brief",newsletterOptIn:!0,rebelHqOptIn:m.rebelHqOptIn,leadMagnet:m.rebelHqOptIn?"SalesSidekick Freedom Brief + Strategic AI Sellers Invite":"SalesSidekick Freedom Brief",referredBy:m.referredBy||ap()})}),Ho("form_submit",{form:"sales_sidekick_freedom_brief_signup",rebelHqOptIn:m.rebelHqOptIn}),d(!0),e({title:"You're in",description:m.rebelHqOptIn?"You're on the Freedom Brief list. Use the community button for Strategic AI Sellers.":"You're on the Freedom Brief list."})}catch(v){e({title:"Error",description:v.message||"Failed to subscribe. Please try again.",variant:"destructive"})}finally{l(!1)}};return s.jsxs("div",{className:"min-h-screen bg-[#f8f1e8] text-[#241714]",children:[s.jsx(Lr,{title:"Strategic AI Sellers | SalesSidekick",description:"Join The Freedom Brief and Strategic AI Sellers community for practical sales AI workflows, SalesSidekick setup help, office hours, and seller operating systems.",keywords:"SalesSidekick community, Strategic AI Sellers, Freedom Brief, sales AI community, Claude sales workflow, AI for sellers",canonicalUrl:"https://salessidekick.ai/community"}),s.jsx("header",{className:"sticky top-0 z-40 border-b border-[#ddcec1] bg-[#f8f1e8]/92 backdrop-blur",children:s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-5 py-4 sm:px-6 lg:px-8",children:[s.jsxs(xe,{href:n("/"),className:"flex items-center gap-3",children:[s.jsx(hF,{}),s.jsx("span",{className:"text-lg font-bold text-[#241714]",children:"SalesSidekick"})]}),s.jsxs("nav",{className:"hidden items-center gap-5 text-sm font-semibold text-[#6d6259] lg:flex","aria-label":"SalesSidekick community",children:[s.jsx(xe,{href:n("/individual"),className:"transition hover:text-[#241714]",children:"Founders"}),s.jsx(xe,{href:n("/team-os"),className:"transition hover:text-[#241714]",children:"Teams"}),s.jsx(xe,{href:n("/enterprise"),className:"transition hover:text-[#241714]",children:"Enterprise"}),s.jsx(xe,{href:n("/resources"),className:"transition hover:text-[#241714]",children:"Resources"}),s.jsx(xe,{href:n("/getting-started"),className:"transition hover:text-[#241714]",children:"Get started"})]}),s.jsxs("a",{href:$N,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-lg bg-[#b86a52] px-4 py-2.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:[s.jsx("span",{className:"hidden sm:inline",children:"Join community"}),s.jsx(Ft,{className:"h-4 w-4"})]})]})}),s.jsxs("main",{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#ddcec1]",children:[s.jsx("div",{className:"absolute inset-0 opacity-65",style:{background:"radial-gradient(circle at 20% 15%, rgba(184,106,82,0.15), transparent 34%), radial-gradient(circle at 82% 28%, rgba(65,125,115,0.11), transparent 32%), linear-gradient(180deg, #f8f1e8 0%, #efe4d7 100%)"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl gap-10 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[1.05fr_0.95fr] lg:items-center lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#d6c4b4] bg-[#f4eadf] px-4 py-2 text-sm font-bold text-[#6a5b50]",children:[s.jsx(Ra,{className:"h-4 w-4 text-[#b86a52]"}),"The Freedom Brief + Strategic AI Sellers"]}),s.jsx("h1",{className:"mt-6 max-w-4xl text-4xl font-bold leading-[1.04] text-[#241714] sm:text-5xl lg:text-7xl",children:"A practical community for sellers building better AI workflows."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#6a5b50] md:text-xl",children:"Get the weekly Freedom Brief and join Strategic AI Sellers for office hours, workflow help, SalesSidekick setup supp
762ort, and practical ways to make sales context carry forward."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("button",{type:"button",onClick:p,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:["Get The Freedom Brief",s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsx("a",{href:$N,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-lg border border-[#d6c4b4] bg-[#fbf5ed] px-6 py-3.5 text-sm font-bold text-[#241714] transition hover:border-[#bda999]",children:"Join Strategic AI Sellers"})]})]}),s.jsx("div",{id:"freedom-signup",className:"scroll-mt-28 rounded-lg border border-[#d6c4b4] bg-[#fffaf3] p-5 shadow-[0_20px_55px_rgba(91,66,48,0.12)] sm:p-7",children:u?s.jsxs("div",{className:"py-8 text-center",children:[s.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-lg bg-[#e6f0e6]",children:s.jsx(ts,{className:"h-8 w-8 text-[#416f59]"})}),s.jsx("h2",{className:"mt-6 text-2xl font-bold text-[#241714]",children:"You're on the list."}),s.jsx("p",{className:"mx-auto mt-3 max-w-md text-sm leading-6 text-[#6a5b50]",children:"The next Freedom Brief will hit your inbox. The community is where office hours, recordings, and workflow help happen."}),s.jsxs("a",{href:$N,target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-flex items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-5 py-3 text-sm font-bold text-[#fffaf3]",children:["Join Strategic AI Sellers",s.jsx(Ft,{className:"h-4 w-4"})]})]}):s.jsxs("form",{onSubmit:x,className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("div",{className:"mb-3 inline-flex h-12 w-12 items-center justify-center rounded-xl bg-[#f4eadf]",children:s.jsx(xn,{className:"h-6 w-6 text-[#b86a52]"})}),s.jsx("h2",{className:"text-2xl font-bold text-[#241714]",children:"Get The Freedom Brief"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:"One practical sales AI workflow note, one useful setup move, and the community path when you want help."})]}),s.jsxs("label",{className:"block text-sm font-bold text-[#46342c]",children:["First name",s.jsx("input",{value:m.firstName,onChange:w=>h(v=>({...v,firstName:w.target.value})),className:"mt-2 w-full rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-4 py-3 text-sm text-[#241714] outline-none focus:border-[#b86a52] focus:ring-2 focus:ring-[#b86a52]/20",required:!0})]}),s.jsxs("label",{className:"block text-sm font-bold text-[#46342c]",children:["Email",s.jsx("input",{type:"email",value:m.email,onChange:w=>h(v=>({...v,email:w.target.value})),className:"mt-2 w-full rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-4 py-3 text-sm text-[#241714] outline-none focus:border-[#b86a52] focus:ring-2 focus:ring-[#b86a52]/20",required:!0})]}),s.jsxs("label",{className:"block text-sm font-bold text-[#46342c]",children:["Referred by email (optional)",s.jsx("input",{type:"email",value:m.referredBy,onChange:w=>h(v=>({...v,referredBy:w.target.value})),className:"mt-2 w-full rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-4 py-3 text-sm text-[#241714] outline-none focus:border-[#b86a52] focus:ring-2 focus:ring-[#b86a52]/20"})]}),s.jsxs("label",{className:"flex items-start gap-3 rounded-lg border border-[#ddcec1] bg-[#f8f1e8] p-4 text-sm leading-6 text-[#6a5b50]",children:[s.jsx("input",{type:"checkbox",checked:m.rebelHqOptIn,onChange:w=>h(v=>({...v,rebelHqOptIn:w.target.checked})),className:"mt-1"}),s.jsx("span",{children:"Also send me the Strategic AI Sellers community invite."})]}),s.jsxs("button",{type:"submit",disabled:o,className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62] disabled:cursor-not-allowed disabled:opacity-60",children:[o?"Sending...":"Get The Freedom Brief",s.jsx(Ft,{className:"h-4 w-4"})]})]})})]})]}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"What happens inside"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Practical help for real sales workflows."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"This is not generic AI inspiration. It is for sellers and revenue teams trying to make AI useful across prep, research, follow-up, pipeline, handoff, and planning."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[{icon:cC,title:"Weekly workflow moves",text:"Short, practical ideas you can test in the work you already do."},{icon:jJ,title:"Office hours path",text:"Bring messy workflows, setup questions, and SalesSidekick implementation friction."},{icon:kn,title:"Seller community",text:"Learn with people who are also building AI into real sales work."},{icon:lJ,title:"Tool-flexible help",text:"Claude, Microsoft, ChatGPT, CRM, email, and whatever your company allows."}].map(w=>{const v=w.icon;return s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx(v,{className:"h-6 w-6 text-[#417d73]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold text-[#241714]",children:w.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:w.text})]},w.title)})})]}),i.length>0&&s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Recent Freedom Briefs"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Recent notes from the list."})]}),s.jsx("div",{className:"mt-10 grid gap-5 md:grid-cols-3",children:i.slice(0,3).map(w=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#8
762c7d71]",children:w.publishedAt?new Date(w.publishedAt).toLocaleDateString():"Freedom Brief"}),s.jsx("h3",{className:"mt-4 text-xl font-bold text-[#241714]",children:w.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:w.excerpt})]},w.id))})]})})]}),s.jsx("footer",{className:"border-t border-[#ddcec1] bg-[#f8f1e8] px-5 py-10 text-[#786a60] sm:px-6 lg:px-8",children:s.jsxs("div",{className:"mx-auto flex max-w-7xl flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(hF,{}),s.jsx("span",{className:"text-lg font-bold text-[#241714]",children:"SalesSidekick"})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#8c7d71]",children:"SalesSidekick is operated by RebelHQ Incorporated, 440 N Wolfe Rd, Sunnyvale, CA 94085, United States."})]}),s.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[s.jsx(xe,{href:n("/privacy-policy"),className:"hover:text-[#241714]",children:"Privacy"}),s.jsx(xe,{href:n("/terms-of-service"),className:"hover:text-[#241714]",children:"Terms"}),s.jsx("a",{href:"mailto:[email protected]",className:"hover:text-[#241714]",children:"[email protected]"})]})]})})]})}const FEe=()=>{S.useEffect(()=>{document.title="Methodology | Pipeline Rebel",window.scrollTo(0,0)},[]);const e=[{icon:s.jsx(pa,{className:"w-8 h-8"}),title:"Human-First Design",description:"Technology serves people, not the other way around. We design systems that amplify human intelligence and creativity."},{icon:s.jsx(Ri,{className:"w-8 h-8"}),title:"Systems Thinking",description:"Every component must work in harmony. We improve the whole system, not just individual parts."},{icon:s.jsx(kn,{className:"w-8 h-8"}),title:"Team Enablement",description:"Success comes from empowered teams. We build systems that make your people brilliant at what they do."},{icon:s.jsx(cC,{className:"w-8 h-8"}),title:"Continuous Evolution",description:"Markets change, teams grow, technology advances. We build adaptive systems that evolve with you."}],t=[{phase:"Discovery",duration:"Week 1-2",focus:"Deep Understanding",activities:["Current state mapping","Team interviews and shadowing","Process documentation","Technology audit","Goal alignment sessions"]},{phase:"Design",duration:"Week 3-4",focus:"System Architecture",activities:["Future state design","Process improvement","Technology integration plan","Team role definition","Success metrics framework"]},{phase:"Build",duration:"Week 5-12",focus:"Implementation",activities:["System configuration","Automation implementation","Team training programs","Testing and refinement","Performance monitoring setup"]},{phase:"Evolve",duration:"Ongoing",focus:"Continuous Improvement",activities:["Performance analysis","System refinements","Team coaching","New opportunity identification","Strategic evolution planning"]}];return s.jsxs("div",{className:"pt-16",children:[s.jsx(Lr,{title:"Methodology | Pipeline Rebel",description:"Our proven GTM engineering methodology: Human-first design, systems thinking, team enablement, and continuous evolution. See how we make teams brilliant.",keywords:"GTM methodology, systems thinking, human-first design, team enablement, revenue operations methodology",canonicalUrl:"https://pipelinerebel.com/methodology",structuredData:{type:"Service",data:{name:"GTM Engineering Methodology",description:"Proven methodology for go-to-market system engineering",provider:{"@type":"Organization",name:"Pipeline Rebel"}}}}),s.jsxs("section",{className:"pt-24 pb-12 bg-gradient-to-b from-background/80 to-background relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-cyan-500/8 via-transparent to-cyan-600/8"}),s.jsx("div",{className:"container max-w-7xl mx-auto px-6 relative z-10",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-center max-w-4xl mx-auto",children:[s.jsxs("div",{className:"inline-flex items-center space-x-2 bg-cyan-500/15 border border-cyan-400/30 rounded-full px-4 py-2 mb-6 backdrop-blur-sm",children:[s.jsx(pa,{className:"w-4 h-4 text-cyan-400"}),s.jsx("span",{className:"text-sm font-medium text-cyan-400",children:"Our Methodology"})]}),s.jsxs("h1",{className:"text-5xl md:text-6xl font-bold mb-6 leading-tight",children:["How We Make Your People ",s.jsx("span",{className:"text-cyan-400",children:"Brilliant"})]}
762),s.jsx("p",{className:"text-xl text-foreground/70 mb-8 leading-relaxed",children:"Our proven methodology combines human-centered design with systems thinking to create GTM engines that amplify your team's natural abilities."}),s.jsx(xe,{href:"/get-started",children:s.jsxs(pe,{size:"lg",className:"bg-primary hover:bg-primary/90",children:[s.jsx(Ri,{className:"w-5 h-5 mr-2"}),"Apply Our Methodology"]})})]})})]}),s.jsx("section",{className:"py-20",children:s.jsxs("div",{className:"container max-w-7xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Our Core Principles"}),s.jsx("p",{className:"text-xl text-foreground/70 max-w-3xl mx-auto",children:"These principles guide every decision we make when designing your GTM system."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((r,n)=>s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-card border border-border rounded-lg p-6 text-center hover:shadow-lg transition-shadow",children:[s.jsx("div",{className:"text-primary mb-4 flex justify-center",children:r.icon}),s.jsx("h3",{className:"text-xl font-semibold mb-3",children:r.title}),s.jsx("p",{className:"text-foreground/70",children:r.description})]},n))})]})}),s.jsx("section",{className:"py-20 bg-card/50",children:s.jsxs("div",{className:"container max-w-7xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Implementation Phases"}),s.jsx("p",{className:"text-xl text-foreground/70 max-w-3xl mx-auto",children:"Our systematic approach ensures smooth evolution from current state to improved GTM engine."})]}),s.jsx("div",{className:"space-y-8",children:t.map((r,n)=>s.jsx(st.div,{initial:{opacity:0,x:n%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-card border border-border rounded-lg p-8",children:s.jsxs("div",{className:"grid lg:grid-cols-4 gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-1",children:[s.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:String(n+1).padStart(2,"0")}),s.jsx("h3",{className:"text-2xl font-bold mb-2",children:r.phase}),s.jsx("div",{className:"text-sm text-primary font-medium mb-2",children:r.duration}),s.jsx("div",{className:"text-foreground/70 font-medium",children:r.focus})]}),s.jsx("div",{className:"lg:col-span-3",children:s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:r.activities.map((i,a)=>s.jsxs("div",{className:"flex items-start space-x-3",children:[s.jsx(ts,{className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),s.jsx("span",{className:"text-foreground/80",children:i})]},a))})})]})},n))})]})}),s.jsx("section",{className:"py-20",children:s.jsxs("div",{className:"container max-w-7xl mx-auto px-6",children:[s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How We Measure Success"}),s.jsx("p",{className:"text-xl text-foreground/70 max-w-3xl mx-auto",children:"We track what matters: team performance, system efficiency, and business results."})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{category:"Team Performance",metrics:["Activity to outcome ratios","Time to productivity for new hires","Employee satisfaction scores","Cross-functional collaboration"]},{category:"System Efficiency",metrics:["Process automation percentage","Data accuracy and completeness","Lead routing and response times","Technology adoption rates"]},{category:"Business Results",metrics:["Revenue per employee","Customer acquisition cost","Sales cycle length","Pipeline predictability"]}].map((r,n)=>s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-card border border-border rounded-lg p-6",children:[s.jsx("h3",{className:"text-xl font-semibold mb-4 text-primary",children:r.category}),s.jsx("ul",{className:"space-y-3",children:r.metrics.map((i,a)=>s.jsxs("li",{className:"flex items-start",children:[s.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-2 mr-3 flex-shrink-0"}
762),s.jsx("span",{className:"text-foreground/80",children:i})]},a))})]},n))})]})}),s.jsx("section",{className:"py-20",children:s.jsx("div",{className:"container max-w-7xl mx-auto px-6 text-center",children:s.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-3xl mx-auto",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Ready to Apply Our Methodology?"}),s.jsx("p",{className:"text-xl text-foreground/70 mb-8",children:"Let's discuss how our proven approach can engineer your GTM system."}),s.jsx(xe,{href:"/get-started",children:s.jsxs(pe,{size:"lg",className:"bg-primary hover:bg-primary/90",children:[s.jsx(pa,{className:"w-5 h-5 mr-2"}),"Start Your Journey",s.jsx(Ft,{className:"w-4 h-4 ml-2"})]})})]})})})]})},$A=new Map,ax=new Map;async function nc(e,t=!1){const r=$A.get(e);if(!t&&r&&r.expiresAt>Date.now()+6e4)return r;const n=ax.get(e);if(!t&&n)return n;const i=(async()=>{const a=await fetch(`/api/forms/challenge?formId=${encodeURIComponent(e)}`,{method:"GET",headers:{Accept:"application/json"},credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new Error("Form security challenge is unavailable");const o=await a.json();if(typeof o.challenge!="string"||typeof o.expiresAt!="string")throw new Error("Form security challenge response is invalid");const l={challenge:o.challenge,expiresAt:Date.parse(o.expiresAt),turnstileSiteKey:typeof o.turnstileSiteKey=="string"&&o.turnstileSiteKey.trim()?o.turnstileSiteKey.trim():null};if(!Number.isFinite(l.expiresAt))throw new Error("Form security challenge expiry is invali
762d");return $A.set(e,l),l})();ax.set(e,i);try{return await i}finally{ax.get(e)===i&&ax.delete(e)}}function mv(e){$A.delete(e)}let vh;function BEe(){return window.turnstile?Promise.resolve(window.turnstile):vh||(vh=new Promise((e,t)=>{const r=document.querySelector('script[data-public-form-turnstile="true"]'),n=r||document.createElement("script"),i=()=>window.turnstile?e(window.turnstile):t(new Error("Turnstile loaded without an API"));n.addEventListener("load",i,{once:!0}),n.addEventListener("error",()=>t(new Error("Turnstile could not load")),{once:!0}),r||(n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.defer=!0,n.dataset.publicFormTurnstile="true",document.head.appendChild(n))}).catch(e=>{throw vh=void 0,e}),vh)}function bK({formId:e,resetSignal:t,onSubmissionReady:r}){const n=S.useRef(null),[i,a]=S.useState(""),[o,l]=S.useState("loading");return S.useEffect(()=>{r==null||r(o==="verified"||o==="review")},[o,r]),S.useEffect(()=>{let u=!1,d,m;return a(""),l("loading"),(async()=>{try{const h=await nc(e,t>0);if(u)return;if(!h.turnstileSiteKey){l("review");return}if(d=await BEe(),u||!n.current)return;l("challenge"),m=d.render(n.current,{sitekey:h.turnstileSiteKey,action:e,appearance:"interaction-only",size:"flexible",theme:"light","response-field":!1,callback:p=>{a(p),l("verified")},"expired-callback":()=>{a(""),l("challenge")},"error-callback":()=>(a(""),l("review"),!0)})}catch{u||l("review")}})(),()=>{u=!0,d&&m&&d.remove(m)}},[e,t]),s.jsxs("div",{className:"space-y-2",children:[s.jsx("input",{type:"hidden",name:"_turnstileToken",value:i,readOnly:!0}),s.jsx("div",{ref:n,className:"min-h-0"}),o==="loading"&&s.jsx("p",{className:"text-xs text-slate-500",children:"Preparing the security check…"}),o==="verified"&&s.jsx("p",{className:"text-xs font-semibold text-emerald-700",children:"Security check complete."}),o==="review"&&s.jsx("p",{className:"rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-xs leading-5 text-amber-900",children:"Automated verification is temporarily unavailable. Your request will be held securely for manual review before any follow-up is sent."})]})}const pF={firstName:"",lastName:"",email:"",company:"",role:"",teamSize:"",currentAiSurface:"",lookingFor:"unspecified",workflowPain:"",notes:""},wK={individual:"Community workspace","team-os":"Revenue team platform",enterprise:"Enterprise platform",unspecified:"Not sure yet"},VEe={home:{title:"SalesSidekick | Revenue AI Work Intelligence Platform",description:"SalesSidekick helps revenue teams make AI-assisted customer work visible, trusted, measurable, and worth scaling.",canonicalPath:"/"},individual:{title:"Community Workspace | SalesSidekick",description:"Learn SalesSidekick patterns through community resources, examples, free workspace materials, and practical AI sales upskilling.",canonicalPath:"/individual"},"team-os":{title:"For Revenue Teams | SalesSidekick",description:"Help revenue teams use AI with shared context, account memory, quality controls, cost signal, and manager visibility.",canonicalPath:"/team-os"},enterprise:{title:"Enterprise Revenue AI Work Intelligence | SalesSidekick",description:"Bring owned memory, control, auditability, cost visibility, digital-worker readiness, and executive reporting to AI-assisted revenue work.",canonicalPath:"/enterprise"},"claude-microsoft":{title:"AI Platforms And Revenue Systems | SalesSidekick",description:"Control revenue work happening across approved AI tools, Microsoft Copilot, HubSpot, Salesforce, Slack, Google Workspace, and customer systems.",canonicalPath:"/claude-microsoft"},workflows:{title:"Revenue AI Work Intelligence | SalesSidekick",description:"SalesSidekick captures AI-assisted revenue work across customer prep, follow-up, CRM updates, forecasting, handoffs, review, and recurring agent tasks.",canonicalPath:"/workflows"},skills:{title:"AI Sales Controls | SalesSidekick",description:"Make sales process, product rules, pricing guidance, competitor notes, and CRM standards usable inside AI-assisted work.",canonicalPath:"/skills"},agents:{title:"Agent And Task Control | SalesSidekick",description:"Track recurring AI tasks, scheduled agents, owners, review points, cost, and business value before agent sprawl gets out of hand.",canonicalPath:"/agents"},services:{title:"Platform Deployment Services | SalesSidekick",description:"SalesSidekick platform setup, revenue-team enablement, system connection, and managed improvement for teams rolling out AI.",canonicalPath:"/services"},resources:{title:"Resources | SalesSidekick",description:"SalesSidekick resources on AI adoption, correction work, hallucination risk, agent sprawl, cost control, sales quality, and revenue-team rollout.",canonicalPath:"/resources"},"getting-started":{title:"Get Started | SalesSidekick",description:"Start by mapping where AI is creating inconsistency, correction work, hallucination risk, agent sprawl, cost, or unclear ROI.",canonicalPath:"/getting-started"}},jK=[{key:"team-os",eyebrow:"Revenue Teams",title:"Make AI-assisted revenue work repeatable.",body:"For teams that need company-owned context, account memory, source rules, fewer corrections, safer customer work, cleaner handoffs, controlled agent tasks, and visible cost-to-value signal.",cta:"Map team AI work",
762icon:Qo},{key:"enterprise",eyebrow:"Enterprise",title:"Make revenue AI work visible, governed, and useful at enterprise scale.",body:"For larger organizations managing approved AI tools, CRM, Slack, Google Workspace, agents, governance, budget, adoption, digital-worker strategy, and executive reporting.",cta:"Map enterprise AI work",icon:$i}],SK=[{icon:XZ,title:"Account research and meeting prep",input:"Sellers ask AI to prepare for calls using CRM notes, old emails, docs, call summaries, and public research.",output:"SalesSidekick controls which sources are trusted, what gaps must be flagged, and what claims need review.",saved:"Less hallucinated research, less repeated prep, and better call readiness across the team."},{icon:Rx,title:"Follow-up and customer messages",input:"AI drafts follow-up emails, summaries, proposals, and next-step messages after calls.",output:"SalesSidekick controls tone, product claims, pricing language, promised actions, and review requirements.",saved:"Fewer risky messages, fewer manager rewrites, and more consistent customer communication."},{icon:xn,title:"CRM updates and pipeline hygiene",input:"AI summarizes calls, drafts field updates, spots stale deals, and suggests next actions.",output:"SalesSidekick controls what can be drafted, what needs approval, and what should never be written back silently.",saved:"Cleaner CRM data, safer updates, less admin, and clear human control."},{icon:qB,title:"Forecast and manager review",input:"AI helps sellers and managers prepare pipeline reviews, forecast notes, risks, and next-step plans.",output:"SalesSidekick highlights missing evidence, inconsistent reasoning, correction patterns, and coaching needs.",saved:"Managers see where AI is helping, where quality is weak, and where review effort is increasing."},{icon:Ri,title:"Handoffs across revenue roles",input:"Sales, customer success, support, RevOps, and leadership use AI to move work between owners.",output:"SalesSidekick controls what context moves, what is still uncertain, and who owns the next action.",saved:"Fewer dropped commitments, cleaner handoffs, and less context loss between teams."},{icon:kv,title:"Recurring agents and background tasks",input:"Teams create briefings, reminders, stale-deal checks, research agents, and other recurring AI work.",output:"SalesSidekick tracks owner, purpose, source access, review point, cost, and whether the task is still useful.",saved:"Less agent sprawl, fewer runaway tasks, and clearer ROI on background AI work."}],qEe=[{name:"Adoption",icon:Qo,team:"Measure useful AI adoption in sales work alongside simple tool usage.",enterprise:"Measure business adoption across teams, tools, and regions."},{name:"Quality",icon:cs,team:"Reduce inconsistent output, weak follow-up, poor research, and manager correction work.",enterprise:"Track quality trends across teams, platforms, use cases, and business-critical customer moments."},{name:"Risk",icon:Tc,team:"Catch hallucinated claims, unsupported product statements, pricing errors, and risky customer messages before they go out.",enterprise:"Create clearer review boundaries for customer-facing claims, CRM changes, sensitive accounts, and regulated work."},{name:"Cost",icon:Qm,team:"Find repeated prompts, wasted tokens, duplicated research, avoidable review loops, and low-value agent activity.",enterprise:"Tie platform and token spend to useful revenue work, quality improvement, and operational value."},{name:"Agent sprawl",icon:ic,team:"Track recurring AI tasks, scheduled briefings, owners, review points, and whether agents are still useful.",enterprise:"Maintain an inventory of people, agents, systems, approvals, costs, and business owners across AI activity."},{name:"ROI",icon:$i,team:"Show where AI reduces rework, improves speed, increases consistency, or creates more review burden.",enterprise:"Report whether AI investment is improving sales execution, forecast quality, customer work, and leadership visibility."}],WEe=[{title:"Product and pricing controls",focus:"Tell AI what it can say about product capabilities, packages, pricing, discounts, and commercial limits.",controls:["Approved claims","Pricing guardrails","Exception handling","Review required"]},{title:"Competitor and objection controls",focus:"Keep AI aligned to current competitive guidance so sellers use approved responses and avoid invented claims.",controls:["Battle-card source","Do-not-say list","Evidence check","Manager review"]},{title:"Follow-up quality controls",focus:"Standardize what good follow-up looks like while preserving each seller's voice.",controls:["Customer facts","Promised actions","Tone range","Approval boundary"]},{title:"CRM update controls",focus:"Make AI useful for CRM hygiene while preventing silent, low-confidence, or unsupported field changes.",controls:["Field scope","Evidence required","Draft mode","Human approval"]},{title:"Forecast review controls",focus:"Help managers see the evidence behind forecast notes, risk summaries, and deal movement.",controls:["Risk reason","Source link","Confidence","Coaching flag"]},{title:"New use-case builder",focus:"Let teams add new AI-supported sales work with source, qual
762ity, review, cost, and ownership rules attached.",controls:["Owner","Use case","Inputs","Review path"]}],zEe=[{title:"Agent inventory",focus:"Track every recurring AI task or background agent, including owner, purpose, source access, and expected value.",controls:["Owner","Purpose","Source access","Business value"]},{title:"Cost and token checks",focus:"Spot expensive recurring tasks, repeated context loading, low-value runs, and agent activity with no clear return.",controls:["Run frequency","Token pattern","Value check","Stop rule"]},{title:"Source and access review",focus:"Make clear what each agent is allowed to inspect before it starts summarizing, drafting, or escalating work.",controls:["Allowed systems","Sensitive data","Expiry","Review point"]},{title:"Output review queue",focus:"Route risky drafts, CRM changes, customer claims, and manager-sensitive output to the right human before action.",controls:["Risk level","Approver","SLA","Escalation"]},{title:"Stale agent cleanup",focus:"Identify agents and scheduled tasks that are duplicative, outdated, unused, or no longer aligned to the sales process.",controls:["Last useful run","Duplicate check","Owner review","Retire action"]},{title:"Agent performance review",focus:"Compare recurring AI work against correction rates, review effort, seller adoption, and manager usefulness.",controls:["Correction rate","Review effort","Adoption","ROI signal"]}];function UEe(e){const t=e.replace(new RegExp(`^${oi}`),"")||"/";if(t==="/")return"home";const r=t.replace(/^\/+/,"");return["individual","team-os","enterprise","claude-microsoft","workflows","skills","agents","services","resources","getting-started"].includes(r)?r:"home"}function gF(){return s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-md border border-[#b86a52]/35 bg-[#f2dfd3] text-[#241714]","aria-hidden":"true",children:s.jsx(Ra,{className:"h-5 w-5 text-[#b86a52]"})})}function HEe(){const e=[{title:"Work layer",body:"Make the customer work visible across sellers, managers, RevOps, AI tools, agents, CRM, collaboration systems, docs, email, and calendar.",items:["Sellers and managers","AI-augmented work","Approved AI tools","CRM and workspace","Agents and tasks"]},{title:"Operating layer",body:"Keep useful work as owned account context, deal memory, source rules, review gates, and reusable standards.",items:["Account memory","Deal context","Customer promises","Source rules","Reusable standards"]},{title:"Economic readout",body:"Show where AI is improving quality, reducing effort, increasing review drag, or costing more than it returns.",items:["Cost-to-value","Review burden","Quality signal","Token waste","Manager visibility"]},{title:"Agent path",body:"Identify the repeatable work that has enough context, ownership, review, and economics to become a managed digital worker.",items:["Agent owners","Action boundaries","Review queues","Repeatable work","Digital-worker candidates"]}];return s.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-hidden rounded-xl border border-[#ddcec1] bg-[#fffaf3] p-5 shadow-[0_28px_70px_rgba(91,66,48,0.14)]",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Revenue AI work intelligence platform"}),s.jsx("h2",{className:"mt-3 break-words text-2xl font-bold leading-tight text-[#241714] sm:text-3xl",children:"See the work, the cost, and the agent path."}),s.jsx("div",{className:"mt-5 grid gap-3 sm:grid-cols-2",children:e.map(t=>s.jsxs("article",{className:"min-w-0 rounded-lg border border-[#ddcec1] bg-[#f8f1e8] p-4",children:[s.jsx("h3",{className:"break-words text-sm font-bold text-[#241714]",children:t.title}),s.jsx("p",{className:"mt-2 text-xs leading-5 text-[#6a5b50]",children:t.body}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:t.items.map(r=>s.jsx("span",{className:"max-w-full break-words rounded-full border border-[#ddcec1] bg-[#fffaf3] px-2.5 py-1 text-[11px] font-semibold leading-4 text-[#5e5048]",children:r},r))})]},t.title))})]})}function GEe(){const e=[{title:"Customer and account work",detail
762:"Research, call prep, follow-up, customer promises, account planning, and deal movement.",examples:["Account context","Deal updates","Customer asks","Next steps"]},{title:"Revenue team activity",detail:"Sales, CS, support, RevOps, enablement, and leadership work that AI already helps create or review.",examples:["Handoffs","Forecast notes","Coaching","Escalations"]},{title:"Systems and sources",detail:"CRM, call notes, engagement tools, BI, documents, product guidance, pricing, email, and calendar.",examples:["CRM","Calls","Docs","Email"]},{title:"Agents and recurring tasks",detail:"Briefings, stale-deal checks, research agents, reminders, background tasks, and future digital workers.",examples:["Owner","Purpose","Cost","Review point"]}],t=[{title:"Action-surface capture",body:"What AI-assisted revenue work is happening, where it happens, who owns it, and what systems it touches.",icon:qB},{title:"Account and deal memory",body:"What should carry forward from research, calls, updates, handoffs, customer promises, and decisions.",icon:cs},{title:"Source and claim rules",body:"Which product, pricing, competitor, legal, customer, and CRM claims need evidence, freshness, or review.",icon:Tc},{title:"Review and escalation",body:"What AI can draft, summarize, update, escalate, send to review, or never write back silently.",icon:Rx},{title:"Cost and ROI signal",body:"Where repeated prompts, duplicated research, long context, agent runs, and review loops cost more than they return.",icon:Qm},{title:"Agent inventory",body:"Which agents and recurring tasks exist, what they access, who owns them, what they cost, and whether they still help.",icon:ic},{title:"Digital-worker candidates",body:"Which repeated, governed, high-value work patterns are ready to become managed digital workers.",icon:lC},{title:"Manager and RevOps rollups",body:"Which work is improving, where quality is weak, what needs attention, and where the rollout should expand.",icon:kv}],r=["Work captured","Context normalized","Controls applied","Cost measured","Signal rolled up","Digital workers recommended"],n=[{title:"Sellers",body:"Less repeated context, better prep, safer follow-up, cleaner CRM updates, and clearer next steps."},{title:"Managers",body:"Visibility into inconsistent output, risky messages, review burden, coaching needs, and repeated work worth standardizing."},{title:"RevOps",body:"A better handle on CRM quality, process drift, agent inventory, cost patterns, source rules, and rollout health."},{title:"Executives",body:"A clear read on whether AI spend is improving revenue execution, lowering correction cost, and creating digital-worker leverage."}];return s.jsx("section",{id:"controls",className:"border-y border-[#ddcec1] bg-[#f4eadf] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Product architecture"}),s.jsxs("div",{className:"mt-4 grid gap-6 lg:grid-cols-[0.85fr_1fr] lg:items-end",children:[s.jsx("h2",{className:"text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Revenue work signal to managed digital workers."}),s.jsx("p",{className:"text-lg leading-8 text-[#6a5b50]",children:"SalesSidekick captures the work AI is already touching, keeps the useful context and memory, applies quality and cost controls, then shows where repeatable revenue work is ready for managed automation."})]}),s.jsxs("div",{className:"mt-10 grid gap-5 lg:grid-cols-[0.72fr_1.28fr]",children:[s.jsxs("div",{className:"rounded-xl border border-[#d7c5b7] bg-[#fffaf3] p-5 shadow-[0_20px_55px_rgba(91,66,48,0.10)]",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#8c7d71]",children:"Revenue action surface"}),s.jsx("div",{className:"mt-5 grid gap-3",children:e.map(i=>s.jsxs("article",{className:"min-w-0 rounded-lg border border-[#ddcec1] bg-[#f8f1e8] p-4",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-base font-bold text-[#241714]",children:i.title}),s.jsx("p",{className:"mt-1 text-sm leading-6 text-[#6a5b50]",children:i.detail})]}),s.jsx(Ft,{className:"mt-1 h-4 w-4 shrink-0 text-[#b86a52]"})]}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:i.examples.map(a=>s.jsx("span",{className:"max-w-full rounded-full border border-[#ddcec1] bg-[#fffaf3] px-2.5 py-1 text-[11px] font-bold leading-4 text-[#5e5048]",children:a},a))})]},i.title))})]}),s.jsxs("div",{className:"min-w-0 rounded-xl border-2 border-[#b86a52]/35 bg-[#241714] p-5 text-[#fffaf3] shadow-[0_26px_70px_rgba(36,23,20,0.24)] md:p-6",children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-[#5c4339] pb-5 md:flex-row md:items-start md:justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-[#d7a18d]",children:"SalesSidekick work system"}),s.jsx("h3",{className:"mt-3 max-w-2xl text-2xl font-bold leading-tight md:text-3xl",children:"Revenue context, memory, controls, cost signal, and digital-worker readiness."})]}),s.jsx("div",{className:"rounded-lg border border-[#5c4339] bg-[#32231f] p-3 text-xs leading-5 text-[#e8d9cf] md:max-w-xs",children:"SalesSidekick sits around approved AI and revenue systems so the company owns the rules, memory, review model, and operating signal."})]}),s.jsx("div",{className:"mt-5 grid gap-3 md:grid-cols-2",children:t.map(i=>{const a=i.icon;return s.jsxs("article",{className:"min-w-0 rounded-lg bg-[#3b2a24] p-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-[#4b372f] text-[#d7a18d]",children:s.jsx(a,{className:"h-4 w-4"})}),s.jsx("h4",{className:"text-sm font-bold text-[#fffaf3]",children:i.title})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#d9c7ba]",children:i.body})]},i.title)})}),s.jsxs("div",{className:"mt-5 rounded-lg border border-[#5c4339] bg-[#2f211d] p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#d7a18d]",children:"Management trail"}),s.jsx("div",{className:"mt-3 grid gap-2 sm:grid-cols-2 xl:grid-cols-3",children:r.map((i,a)=>s.jsxs("div",{className:"flex items-center gap-3 rounded-md bg-[#402f28] px-3 py-2",children:[s.jsx("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#d7a18d] text-[11px] font-black text-[#241714]",children:a+1}),s.jsx("span",{className:"text-xs font-bold text-[#f8f1e8]",children:i})]},i))})]})]})]}),s.jsx("div",{className:"mt-5 grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:n.map(i=>s.jsxs("article",{className:"rounded-lg border border-[#c9d8c8] bg-[#eef4ee] p-5",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#5e756d]",children:i.title}),s.jsx("p",{className:"mt-3 text-sm font-semibold leading-6 text-[#46695e]",children:i.body})]},i.title))})]})})}function KEe(){const e=[{title:"Microsoft-cloud deployment path",body:"SalesSidekick is built to run as a product platform around Microsoft 365, Copilot, Agent 365, Graph, Entra, Purview, Defender, Power Platform, Dynamics, and Azure-hosted infrastru
762cture where that is the customer standard.",icon:Tc},{title:"Model and tool flexible",body:"The same company-owned context, memory, source rules, review gates, cost signal, and manager visibility can support approved AI tools, Copilot, Salesforce, HubSpot, Slack, Google Workspace, and future revenue surfaces.",icon:Zm},{title:"Digital-worker foundation",body:"As the platform learns which revenue work repeats, where quality breaks, and which tasks have clear owners and value, it can recommend and manage digital workers for repeatable revenue operations.",icon:ic}];return s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsxs("div",{className:"grid gap-8 lg:grid-cols-[0.85fr_1.15fr] lg:items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Platform trajectory"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"SalesSidekick starts with revenue work intelligence and grows into digital work orchestration."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"The first job is to make AI-assisted revenue work visible, trusted, reusable, and cost-aware. Once that layer exists, the business can see which repeated work should be standardized, automated, or assigned to governed digital workers."})]}),s.jsx("div",{className:"grid gap-4",children:e.map(t=>{const r=t.icon;return s.jsx("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6 shadow-[0_16px_44px_rgba(91,66,48,0.08)]",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg bg-[#e6f0e6] text-[#417d73]",children:s.jsx(r,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-[#241714]",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:t.body})]})]})},t.title)})})]})})}function YEe({path:e}){const r={individual:{title:"How we validate the individual workspace",items:["Inspect a real sales task where AI output takes too much correction.","Show which guidance, source checks, and review points would improve the work.","Identify which habits can become team controls later."],limit:"Out of scope: team-wide rollup, manager attribution, and enterprise data normalization."},"team-os":{title:"How we validate the team work system",items:["Review where sellers and managers are already using AI across a few high-value revenue activities.","Find correction work, hallucination risk, inconsistent output, recurring agent tasks, and repeated prompts.","Set up the first memory, source, review, and cost controls, then measure whether quality, review effort, cost, and adoption improve."],limit:"Out of scope: full enterprise data normalization and comprehensive business-goal attribution."},enterprise:{title:"How we validate the enterprise rollout",items:["Map approved and shadow AI use across people, agents, revenue systems, collaboration tools, and business units.","Identify agent sprawl, platform cost, risky customer-facing work, CRM update boundaries, and review gaps.","Recommend the first platform rollout with clear owners, controls, measurement, executive reporting, and digital-worker candidates."],limit:"Out of scope: generic usage dashboards, prompt cleanup, CRM replacement, and guaranteed ROI claims."},unspecified:{title:"How we find the right starting point",items:["Understand where AI is already being used across revenue work.","Identify where quality, hallucinations, cost, adoption, or agent sprawl is creating the most risk.","Recommend the smallest useful work system worth installing first."],limit:"The evidence stays scoped to the data available and the path selected."}}[e];return s.jsxs("div",{className:"rounded-lg border border-[#d9c7b8] bg-[#fbf5ed] p-6",children:[s.jsx("h3",{className:"text-2xl font-bold text-[#241714]",children:r.title}),s.jsx("div",{className:"mt-5 space-y-3",children:r.items.map(n=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:"mt-0.5 h-5 w-5 shrink-0 text-[#5a8f72]"}),s.jsx("p",{className:"text-sm leading-6 text-[#64564d]",children:n})]},n))}),s.jsx("p",{className:"mt-5 border-t border-[#ddcec1] pt-5 text-sm leading-6 text-[#786a60]",children:r.limit})]})}function fr(){const[e]=Pn(),t=UEe(e),r=VEe[t],{toast:n}=fs(),i=S.useRef(null),[a,o]=S.useState(pF),[l,u]=S.useState(!1),[d,m]=S.useState(!1),[h,p]=S.useState(!1),[x,w]=S.useState(0),[v,y]=S.useState(!1),j=yP(e)?oi:"",k=`https://salessidekick.ai${r.canonicalPath==="/"?"/":r.canonicalPath}`;S.useEffect(()=>{document.title=r.title,window.scrollTo(0,0),Ho("sales_sidekick_page_viewed",{event_category:"site",event_label:t})},[r.title,t]),S.useEffect(()=>
762{nc("sales-sidekick-signup").catch(()=>{})},[]);const N=O=>j?O==="/"?j:`${j}${O}`:O,C=(O,F)=>{var D;o(L=>({...L,lookingFor:O})),_9(`SalesSidekick ${wK[O]}`,F),(D=i.current)==null||D.scrollIntoView({behavior:"smooth",block:"start"})},A=()=>{h||(p(!0),sy("SalesSidekick signup","started"))},E=(O,F)=>{o(D=>({...D,[O]:F}))},_=async O=>{O.preventDefault();const F=O.currentTarget;m(!0);try{const D=await nc("sales-sidekick-signup"),L=new FormData(F),I=String(L.get("_companyWebsite")||""),$=String(L.get("_turnstileToken")||"");await ss("/api/sales-sidekick/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,offerPath:a.lookingFor,referredBy:ap(),_formChallenge:D.challenge,_companyWebsite:I,_turnstileToken:$,_analyticsSessionId:E9()})}),sy("SalesSidekick signup","completed",Object.values(a).filter(Boolean).length),mv("sales-sidekick-signup"),u(!0),o(pF)}catch{mv("sales-sidekick-signup"),w(L=>L+1);try{await nc("sales-sidekick-signup",!0)}catch{}n({title:"Submission did not go through",description:"Please try again or email [email protected].",variant:"destructive"})}finally{m(!1)}},R=S.useMemo(()=>t==="individual"?"individual":t==="team-os"?"team-os":t==="enterprise"?"enterprise":a.lookingFor,[a.lookingFor,t]);return s.jsxs("div",{className:"min-h-screen overflow-x-hidden bg-[#f8f1e8] text-[#241714]",children:[s.jsx(Lr,{title:r.title,description:r.description,keywords:"SalesSidekick, revenue AI work intelligence, revenue AI platform, AI adoption, hallucination risk, agent sprawl, AI cost control, sales AI governance, Microsoft Copilot revenue team, HubSpot AI, Salesforce AI",canonicalUrl:k,ogImage:"/revamp-assets/social-preview.svg",structuredData:{type:"SoftwareApplication",data:{name:"SalesSidekick",applicationCategory:"BusinessApplication",operatingSystem:"Web",provider:{"@type":"Organization",name:"RebelHQ Incorporated",url:"https://pipelinerebel.com"},url:"https://salessidekick.ai",description:r.description}}}),s.jsxs("header",{className:"sticky top-0 z-40 overflow-x-hidden border-b border-[#ddcec1] bg-[#f8f1e8]/92 backdrop-blur",children:[s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-5 py-4 sm:px-6 lg:px-8",children:[s.jsxs(xe,{href:N("/"),className:"flex items-center gap-3",children:[s.jsx(gF,{}),s.jsx("span",{className:"text-lg font-bold text-[#241714]",children:"SalesSidekick"})]}),s.jsxs("nav",{className:"hidden items-center gap-5 text-sm font-semibold text-[#6d6259] lg:flex","aria-label":"SalesSidekick primary",children:[s.jsx(xe,{href:N("/team-os"),className:"transition hover:text-[#241714]",children:"Revenue Teams"}),s.jsx(xe,{href:N("/enterprise"),className:"transition hover:text-[#241714]",children:"Enterprise"}),s.jsx(xe,{href:N("/workflows"),className:"transition hover:text-[#241714]",children:"How It Works"}),s.jsx(xe,{href:N("/resources"),className:"transition hover:text-[#241714]",children:"Resources"}),s.jsx(xe,{href:N("/getting-started"),className:"transition hover:text-[#241714]",children:"Request Access"})]}),s.jsxs("button",{type:"button",onClick:()=>C(R,"nav"),className:"inline-flex items-center gap-2 rounded-lg bg-[#b86a52] px-4 py-2.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:[s.jsx("span",{className:"hidden sm:inline",children:"Request Access"}),s.jsx(Ft,{className:"h-4 w-4"})]})]}),s.jsxs("nav",{className:"mx-auto flex w-full max-w-7xl flex-nowrap gap-2 overflow-x-auto px-5 pb-3 text-xs font-bold text-[#6d6259] sm:px-6 lg:hidden","aria-label":"SalesSidekick mobile primary",children:[s.jsx(xe,{href:N("/team-os"),className:"rounded-full border border-[#ddcec1] bg-[#fffaf3] px-3 py-2",children:"Revenue Teams"}),s.jsx(xe,{href:N("/enterprise"),className:"rounded-full border border-[#ddcec1] bg-[#fffaf3] px-3 py-2",children:"Enterprise"}),s.jsx(xe,{href:N("/workflows"),className:"rounded-full border border-[#ddcec1] bg-[#fffaf3] px-3 py-2",children:"How It Works"}),s.jsx(xe,{href:N("/resources"),className:"rounded-full border border-[#ddcec1] bg-[#fffaf3] px-3 py-2",children:"Resources"})]})]}),s.jsxs("main",{children:[t==="home"&&s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#ddcec1]",children:[s.jsx("div",{className:"absolute inset-0 opacity-65",style:{background:"radial-gradient(circle at 20% 15%, rgba(184,106,82,0.15), transparent 34%), radial-gradient(circle at 82% 28%, rgba(65,125,115,0.11), transparent 32%), linear-gradient(180deg, #f8f1e8 0%, #efe4d7 100%)"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto grid w-full max-w-7xl min-w-0 items-center gap-12 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[0.9fr_1.1fr] lg:px-8",children:[s.jsxs("div",{className:"min-w-0 max-w-full",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#d6c4b4] bg-[#f4eadf] px-4 py-2 text-sm font-bold text-[#6a5b50]",children:[s.jsx(Ra,{className:"h-4 w-4 text-[#b86a52]"}),"Revenue AI work intelligence platform"]}),s.jsx("h1",{className:"mt-6 max-w-4xl break-words text-4xl font-bold leading-[1.04] text-[#241714] sm:text-5xl lg:text-7xl",children:"Make AI-assisted revenue work visible, trusted, and worth scaling."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#6a5b50] md:text-xl",children:"SalesSidekick gives sellers, managers, RevOps, and agents trusted account context, reusable deal memory, review gates, agent ownership, and cost-to-value signal so AI-assisted customer work gets faster, cleaner, easier to measure, and easier to scale."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("a",{href:"#starting-point",className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:["Map our revenue AI work",s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsxs(xe,{href:N("/workflows"),className:"inline-flex items-center justify-center gap-2 rounded-lg border border-[#d6c4b4] bg-[#fbf5ed] px-6 py-3.5 text-sm font-bold text-[#241714] transition hover:border-[#bda999]",children:["See how it works",s.jsx(nC,{className:"h-4 w-4"})]})]})]}),s.jsx(HEe,{}),s.jsxs("div",{className:"min-w-0 lg:col-span-2",children:[s.jsx(NC,{audience:"revenue"}),s.jsx(SC,{className:"mt-5",variant:"warm",label:"Experience behind the operating patterns"})]})]})]}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"The problem"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"AI adoption is creating correction work, cost, and lost intelligence."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"Revenue teams have tried docs, folders, enablement sessions, battle cards, and prompt examples. The problem is that AI still produces inconsistent work when every chat, agent, follow-up, update, and review loop has to rebuild context from scratch."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:["People keep re-explaining the same account, product, pricing, and process context.","Managers spend time correcting hallucinated claims, weak follow-up, and inconsistent updates.","Agents and recurring tasks multiply without clear owners, cost controls, or value signal.","Leaders see AI usage before they can see whether revenue execution is improving."].map(O=>s.jsxs("div",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx(Xo,{className:"h-5 w-5 text-[#417d73]"}),s.jsx("p",{className:"mt-4 text-sm font-semibold leading-6 text-[#3e322c]",children:O})]},O))})]}),s.jsx("section",{id:"starting-point",className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Revenue team or enterprise"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Start where scattered AI work is creating the most drag."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"Revenue teams usually need shared memory, quality, review, cost signal, and manager visibility first. Enterprise teams usually need deeper agent inventory, Microsoft or multi-platform governance, auditability, executive reporting, and digital-worker operating models."})]}),s.jsx("div",{className:"mt-10 grid gap-5 lg:grid-cols-2",children:jK.map(O=>{const F=O.icon;return s.jsx(xe,{href:N(`/${O.key}`),children:s.jsxs("article",{className:"group h-full cursor-pointer rounded-lg border border-[#ddcec1] bg-[#f4eadf] p-6 transition hover:border-[#b86a52]/45 hover:bg-[#fbf4ec]",children:[s.jsx(F,{className:"h-7 w-7 text-[#b86a52]"}),s.jsx("p",{className:"mt-5 text-sm font-bold uppercase tracking-[0.14em] text-[#786a60]",children:O.eyebrow}),s.jsx("h3",{className:"mt-3 text-2xl font-bold leading-tight text-[#241714]",children:O.title}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6a5b50]",children:O.body}),s.jsxs("span",{className:"mt-6 inline-flex items-center gap-2 text-sm font-bold text-[#417d73]",children:[O.cta,s.jsx(ZA,{className:"h-4 w-4 transition group-hover:translate-x-1"})]})]})},O.key)})})]})}),s.jsx(GEe,{}),s.jsx(KEe,{}),s.jsx(kK,{sitePath:N}
762),s.jsx(XEe,{}),s.jsx(BN,{formRef:i,formData:a,updateField:E,handleSubmit:_,markFormStarted:A,submitted:l,isSubmitting:d,verificationReset:x,securityReady:v,setSecurityReady:y,startPath:C})]}),t==="individual"&&s.jsx(FN,{kind:"individual",sitePath:N,startPath:C}),t==="team-os"&&s.jsx(FN,{kind:"team-os",sitePath:N,startPath:C}),t==="enterprise"&&s.jsx(FN,{kind:"enterprise",sitePath:N,startPath:C}),t==="claude-microsoft"&&s.jsx(QEe,{startPath:C}),t==="workflows"&&s.jsx(ZEe,{startPath:C}),t==="skills"&&s.jsx(JEe,{startPath:C}),t==="agents"&&s.jsx(e_e,{startPath:C}),t==="services"&&s.jsx(t_e,{startPath:C}),t==="resources"&&s.jsx(r_e,{}),t==="getting-started"&&s.jsxs(s.Fragment,{children:[s.jsx(n_e,{sitePath:N,startPath:C}),s.jsx(BN,{formRef:i,formData:a,updateField:E,handleSubmit:_,markFormStarted:A,submitted:l,isSubmitting:d,verificationReset:x,securityReady:v,setSecurityReady:y,startPath:C})]}),t!=="home"&&t!=="getting-started"&&s.jsx(BN,{formRef:i,formData:a,updateField:E,handleSubmit:_,markFormStarted:A,submitted:l,isSubmitting:d,verificationReset:x,securityReady:v,setSecurityReady:y,startPath:C})]}),s.jsx("footer",{className:"border-t border-[#ddcec1] bg-[#f8f1e8] px-5 py-10 text-[#786a60] sm:px-6 lg:px-8",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-8 md:grid-cols-[1.2fr_1fr_1fr]",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(gF,{}),s.jsx("span",{className:"text-lg font-bold text-[#241714]",children:"SalesSidekick"})]}),s.jsx("p",{className:"mt-4 max-w-md text-sm leading-6",children:"Revenue AI work intelligence for company-owned context, account memory, controls, cost signal, manager visibility, and digital-worker readiness."}),s.jsx("p",{className:"mt-4 text-xs leading-5 text-[#8c7d71]",children:"SalesSidekick is operated by RebelHQ Incorporated, 440 N Wolfe Rd, Sunnyvale, CA 94085, United States."})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#241714]",children:"Explore"}),s.jsxs("div",{className:"mt-4 grid gap-2 text-sm",children:[s.jsx(xe,{href:N("/team-os"),className:"hover:text-[#241714]",children:"Revenue Teams"}),s.jsx(xe,{href:N("/enterprise"),className:"hover:text-[#241714]",children:"Enterprise"}),s.jsx(xe,{href:N("/workflows"),className:"hover:text-[#241714]",children:"How It Works"}),s.jsx(xe,{href:N("/services"),className:"hover:text-[#241714]",children:"Services"}),s.jsx(xe,{href:N("/resources"),className:"hover:text-[#241714]",children:"Resources"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#241714]",children:"Company"}),s.jsxs("div",{className:"mt-4 grid gap-2 text-sm",children:[s.jsx("a",{href:"mailto:[email protected]",className:"hover:text-[#241714]",children:"[email protected]"}),s.jsx(xe,{href:N("/privacy-policy"),className:"hover:text-[#241714]",children:"Privacy Policy"}),s.jsx(xe,{href:N("/terms-of-service"),className:"hover:text-[#241714]",children:"Terms of Service"}),s.jsx("a",{href:"https://pipelinerebel.com",className:"hover:text-[#241714]",children:"Pipeline Rebel"})]})]})]})})]})}function kK({sitePath:e}){return s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Where the platform shows up"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"These are example surfaces. The product can work beyond them."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"SalesSidekick can be applied wherever AI touches revenue work. The core product is owned context, memory, controls, cost signal, and manager readout. These examples show how that system appears in daily work."})]}),s.jsxs(xe,{href:e("/workflows"),className:"inline-flex items-center gap-2 text-sm font-bold text-[#417d73]",children:["See examples",s.jsx(Ft,{className:"h-4 w-4"})]})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:SK.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx(r,{className:"h-6 w-6 text-[#417d73]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold text-[#241714]",children:t.title}),s.jsx("p",{className:"mt-4 text-xs font-bold uppercase tracking-[0.12em] text-[#b86a52]",children:"Example work surface"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:t.input}),s.jsx("p",{className:"mt-4 text-xs font-bold uppercase tracking-[0.12em] text-[#b86a52]",children:"What the platform applies"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:t.output}),s.jsx("p",{className:"mt-4 border-t border-[#ddcec1] pt-4 text-sm font-semibold leading-6 text-[#3e322c]",children:t.saved})]},t.title)})})]})}function XEe(){return s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"What leaders can manage"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"The platform gets deeper as the rollout gets bigger."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"A team rollout starts with shared context, quality, adoption, review, and cost signal. An enterprise rollout adds agent inventory, system boundaries, auditability, executive reporting, digital-worker planning, and deeper governance."})]}),s.jsx("div",{className:"mt-10 overflow-hidden rounded-lg border border-[#ddcec1]",children:qEe.map(e=>{const t=e.icon;return s.jsxs("div",{className:"grid gap-0 border-b border-[#ddcec1] last:border-b-0 lg:grid-cols-[0.55fr_1fr_1fr]",children:[s.jsxs("div",{className:"flex items-center gap-3 bg-[#f1e6da] p-4",children:[s.jsx(t,{className:"h-5 w-5 text-[#b86a52]"}),s.jsx("span",{className:"font-bold text-[#241714]",children:e.name})]}),s.jsx(xF,{title:"Revenue teams",body:e.team}),s.jsx(xF,{title:"Enterprise",body:e.enterprise})]},e.name)})})]})})}function xF({title:e,body:t}){return s.jsxs("div",{className:"border-t border-[#ddcec1] bg-[#fdf9f3] p-4 lg:border-l lg:border-t-0",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.12em] text-[#8
762c7d71]",children:e}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:t})]})}function FN({kind:e,sitePath:t,startPath:r}){const n={individual:{eyebrow:"Community workspace",h1:"Learn how AI sales work should be controlled before rolling it out.",body:"For individual practitioners who want examples, resources, and training before a team decides how to control quality, review, cost, and repeatable AI sales work.",bullets:["Practical AI sales examples","Quality and review patterns","Source and review discipline","Claude and AI sales upskilling","Cost-aware usage habits","Patterns a team can later control"],evidence:["A representative sales task","Repeated prompt patterns","Correction work","Quality and source gaps"],install:["Learning examples","AI sales patterns","Review checklist","Reusable usage habits"],signals:["Less repeated setup","Fewer weak drafts","Better source discipline","Patterns ready for team rollout"],cta:"Explore resources",builtFor:"This is a learning and adoption path for practitioners before a commercial team rollout.",whatComesLater:"Manager visibility, agent inventory, cost reporting, CRM boundaries, and enterprise controls come through the revenue-team or enterprise route."},"team-os":{eyebrow:"Revenue Teams",h1:"Give the revenue team shared AI memory and manager visibility.",body:"For sales, RevOps, enablement, GTM strategy, BD, customer success, and support leaders who need to reduce correction work, improve output quality, control recurring agents, see cost-to-value signal, and make useful context reusable across the team.",bullets:["Revenue action-surface map","Account and deal memory","Quality and hallucination controls","Follow-up and CRM review rules","Agent and task tracking","Cost and correction signals"],evidence:["Where approved AI tools are used now","Examples of inconsistent output and correction work","Recurring agent tasks and owners","CRM, follow-up, handoff, and review pain"],install:["Team platform map","Memory and source rules","Review and cost controls","Manager readout"],signals:["Fewer risky drafts","Less review drag","Reusable context","Visible adoption and cost signals"],cta:"Map team AI work",builtFor:"This is built for a focused revenue-team rollout: account context, deal memory, source rules, review habits, CRM discipline, manager visibility, and practical cost signal.",whatComesLater:"Enterprise identity design, broad source normalization, cross-team agent governance, finance-grade economics, and executive reporting come through the enterprise route."},enterprise:{eyebrow:"Enterprise",h1:"Build the enterprise platform around revenue AI work.",body:"For CROs, COOs, RevOps leaders, AI owners, security stakeholders, and executives managing approved AI tools, CRM, collaboration systems, agents, budgets, risk, adoption, and digital-worker strategy.",bullets:["Enterprise action-surface inventory","Owned account and deal memory","Cost and ROI reporting","Hallucination and claims controls","Agent and system boundaries","Executive-ready rollups"],evidence:["Approved and shadow AI use","Recurring agents and background tasks","CRM, workspace, BI, call, and engagement signals","Cost, quality, review, risk, and business-priority alignment"],install:["Enterprise platform map","Agent and system boundary model","Review and escalation rules","Leadership reporting model"],signals:["Owned revenue memory","Visible agent ownership","Cost and quality visibility","Business impact reporting"],cta:"Map enterprise AI work",builtFor:"This is built for deeper revenue AI work intelligence across teams, systems, vendors, agents, review boundaries, cost, risk, Microsoft governance paths, and leadership reporting.",whatComesLater:"The scope can expand into broader source alignment, business-object modeling, cross-team memory, cost evaluation, digital-worker orchestration, and enterprise rollups when the evidence supports it."}}[e];return s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#ddcec1]",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{background:"radial-gradient(circle at 18% 16%, rgba(184,106,82,0.15), transparent 34%), radial-gradient(circle at 80% 18%, rgba(65,125,115,0.10), transparent 35%), #f8f1e8"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl items-center gap-10 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[0.95fr_1.05fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:n.eyebrow}),s.jsx("h1",{className:"mt-5 text-4xl font-bold leading-[1.04] text-[#241714] sm:text-5xl lg:text-6xl",children:n.h1}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#6a5b50]",children:n.body}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("button",{type:"button",onClick:()=>r(e,`${e}-hero`),className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:[n.cta,s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsxs(xe,{href:t("/workflows"),className:"inline-flex items-center justify-center gap-2 rounded-lg border border-[#d6c4b4] bg-[#fbf5ed] px-6 py-3.5 text-sm font-bold text-[#241714] transition hover:border-[#bda999]",children:["See the platform",s.jsx(Zo,{className:"h-4 w-4"})]})]})]}),s.jsxs("div",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.16em] text-[#417d73]",children:"What changes"}),s.jsx("div",{className:"mt-5 grid gap-3",children:n.bullets.map(i=>s.jsxs("div",{className:"flex gap-3 rounded-md bg-[#f3e7dc] p-3",children:[s.jsx(cs,{className:"mt-0.5 h-5 w-5 shrink-0 text-[#5a8f72]"}),s.jsx("span",{className:"text-sm font-semibold leading-6 text-[#3e322c]",children:i})]},i))})]})]})]}),s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-20 lg:px-8",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:[["Evidence we inspect",n.evidence],["What SalesSidekick sets up",n.install],["What should improve",n.signals]].map(([i,a])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("h2",{className:"text-xl font-bold text-[#241714]",children:i}),s.jsx("div",{className:"mt-4 grid gap-3",children:a.map(o=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#5a8f72]"}),s.jsx("p",{className:"text-sm font-semibold leading-6 text-[#5e5048]",children:o})]},o))})]},i))})}),s.jsxs("section",{className:"mx-auto grid max-w-7xl gap-5 px-5 pb-16 sm:px-6 md:pb-24 lg:grid-cols-[1fr_1fr] lg:px-8",children:[s.jsx(YEe,{path:e}),s.jsxs("div",{className:"rounded-lg border border-[#d9c7b8] bg-[#fbf5ed] p-6",children:[s.jsx("h2",{className:"text-2xl font-bold text-[#241714]",children:"What this is built for"}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6a5b50]",children:n.builtFor}),s.jsx("h3",{className:"mt-7 text-xl font-bold text-[#241714]",children:"What c
762omes later"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:n.whatComesLater})]})]}),s.jsx(kK,{sitePath:t})]})}function QEe({startPath:e}){const t=[{title:"Claude route",body:"For teams using Claude projects, skills, and agents for sales research, writing, analysis, follow-up, and recurring work.",icon:VB,controls:["Work inventory","Quality checks","Agent owners","Human review"]},{title:"OpenAI route",body:"For teams using ChatGPT Business, ChatGPT Enterprise, or OpenAI-backed tools for customer research, drafting, analysis, and recurring revenue work.",icon:Ra,controls:["Output quality","Source checks","Cost patterns","Review and escalation"]},{title:"Microsoft route",body:"For teams running AI through Microsoft 365, Copilot, Agent 365, Teams, Outlook, Dynamics, Graph, Entra, Purview, Defender, and Power Platform.",icon:Tc,controls:["Identity boundary","Agent control","Data access","Reporting and measurement"]},{title:"CRM and collaboration route",body:"For teams where AI touches HubSpot, Salesforce, Slack, Google Workspace, handoffs, customer records, and internal review.",icon:Zm,controls:["HubSpot / Salesforce","Slack / Workspace","CRM update rules","Manager visibility"]}];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"AI platforms and revenue systems",title:"Control revenue AI across the tools your team already uses.",body:"SalesSidekick works around approved AI tools, Microsoft Copilot, HubSpot, Salesforce, Slack, Google Workspace, and other customer systems. The product tracks work, quality, agents, review, cost, and manager visibility across the approved stack.",cta:"Map our stack",onCta:()=>e("unspecified","sales-claude-microsoft-hero")}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Implementation routes"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"The platform changes. The management problem stays the same."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"Buyers need a clear view of where AI is being used, what agents are running, which outputs create risk, where costs are rising, and which use cases are actually improving sales work."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:t.map(r=>{const n=r.icon;return s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx(n,{className:"h-6 w-6 text-[#b86a52]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold text-[#241714]",children:r.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:r.body}),s.jsx("div",{className:"mt-5 grid gap-2",children:r.controls.map(i=>s.jsx("div",{className:"rounded-md bg-[#f3e7dc] px-3 py-2 text-xs font-bold text-[#5e5048]",children:i},i))})]},r.title)})})]}),s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsx(NC,{audience:"revenue"}),s.jsx("div",{className:"mt-10 grid gap-5 md:grid-cols-3",children:[["AI platforms","Claude, ChatGPT Business, ChatGPT Enterprise, Copilot, and future AI tools can all create useful customer work or unmanaged risk."],["Revenue systems","HubSpot, Salesforce, enrichment, analytics, and BI systems remain sources of truth. SalesSidekick controls how AI uses them and where updates need review."],["Collaboration systems","Slack and Google Workspace / G Suite carry real decisions, customer context, and handoffs. SalesSidekick helps managers see and control the work happening there."]].map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("h2",{className:"text-xl font-bold text-[#241714]",children:r}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:n})]},r))})]})})]})}function ZEe({startPath:e}){const t=[["Action surface","Which people, AI surfaces, agents, systems, customer moments, and recurring tasks are involved in the work."],["Owned context","Which account, deal, customer, product, pricing, process, and source context should carry forward."],["Memory rules","What should be remembered, reused, refreshed, discarded, or escalated 
762when the same work appears again."],["Control rules","Which claims, customer messages, CRM updates, escalations, or forecasts need evidence or human approval."],["Cost signal","Where AI creates repeated prompts, long context, duplicated research, agent runs, or extra review burden."],["Digital-worker readiness","Which repeated work is governed, valuable, measurable, and clear enough to automate safely."]];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"How the platform works",title:"SalesSidekick gives AI-assisted revenue work reusable operating signal.",body:"The platform captures the work surface, keeps useful context and memory, applies source and review rules, measures cost, and shows which repeated work is ready for managed automation.",cta:"Map our revenue AI work",onCta:()=>e("unspecified","workflows-hero")}),s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-20 lg:px-8",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:t.map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx("p",{className:"text-sm font-bold text-[#241714]",children:r}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:n})]},r))})}),s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Example entry points"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Start with the revenue work creating the most correction burden or wasted spend."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"The first win is usually practical: attach controls, memory, and measurement to the moments where AI is already touching customers, CRM, handoffs, forecast, recurring tasks, and manager review."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:SK.map(r=>{const n=r.icon;return s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx(n,{className:"h-6 w-6 text-[#417d73]"}),s.jsx("h2",{className:"mt-5 text-2xl font-bold text-[#241714]",children:r.title}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6a5b50]",children:r.input}),s.jsx("p",{className:"mt-4 border-t border-[#ddcec1] pt-4 text-sm font-semibold leading-6 text-[#3e322c]",children:r.output})]},r.title)})})]})})]})}function JEe({startPath:e}){const t=[["Sales process rules","The system uses the process the team already expects sellers to follow and reduces dependence on each user's prompt skill."],["Product and pricing rules","AI output can be checked against current product, package, discount, pricing, and customer-claim guidance."],["Source checks","The system distinguishes trusted sources from guesses, stale material, assumptions, and unsupported claims."],["Review triggers","Risky messages, CRM updates, forecast notes, and customer-facing claims can be sent to the right human."],["Cost controls","The system helps reduce repeated context setup, duplicated prompts, low-value tasks, and avoidable review loops."],["Manager readout","Managers can see where quality is improving, where corrections are rising, and which AI use cases are worth scaling."]];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"AI sales controls",title:"Make sales rules usable inside AI-assisted work.",body:"Most teams already have sales process, product guidance, pricing rules, battle cards, CRM standards, and review expectations. SalesSidekick brings those rules to the point where AI is creating work.",cta:"Control our AI use",onCta:()=>e("team-os","skills-hero")}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-20 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Control anatomy"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Existing sales guidance becomes controls AI has to respect."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"Buyers have usually tried documentation already. SalesSidekick is different because the controls are attached to AI work itself: sources, claims, review, cost, output quality, and manager visibility."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:t.map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx(Ni,{className:"h-5 w-5 text-[#b86a52]"}),s.jsx("h3",{className:"mt-4 text-xl font-bold text-[#241714]",children:r}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:n})]},r))})]}),s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Representative controls"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"The starting points are practical sales controls."})]}),s.jsx("div",{className:"mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:WEe.map(r=>s.jsxs("div",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx(Ni,{className:"h-5 w-5 text-[#b86a52]"}),s.jsx("h3",{className:"mt-4 text-xl font-bold text-[#241714]",children:r.title}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:r.focus}),s.jsx("div",{className:"mt-5 grid gap-2",children:r.controls.map(n=>s.jsx("div",{className:"rounded-md bg-[#f3e7dc] px-3 py-2 text-xs font-bold text-[#5e5048]",children:n},n))})]},r.title))})]})})]})}function e_e({startPath:e}){const t=[["Owner","Who is accountable for the agent, its source access, its output, and whether it should keep running."],["Purpose","What business job the agent is supposed to do and how the team knows whether it is useful."],["Source access","Which systems, docs, CRM records, channels, and customer material the agent is allowed to inspect."],["Action boundary","What the agent can summarize, draft, recommend, escalate, update, or only send for review."],["Cost pattern","How often the agent runs, what it consumes, and when cost no longer matches value."],["Review point","Where human approval is required before customer messages, CRM updates, or sensitive escalation."]];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"Agent and task control",title:"Stop agent sprawl before it becomes a cost and quality problem.",body:"Revenue teams are starting to create briefings, research agents, stale-deal checks, follow-up reminders, and other recurring AI tasks. SalesSidekick helps track what exists, who owns it, what it costs, what it can access, and whether it is still useful.",cta:"Map our agents",onCta:()=>e("team-os","agents-hero")}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-20 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Agent management"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"An agent needs an owner, a cost pattern, a review point, and a reason to keep running."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"A team can quickly end up with dozens of recurring AI tasks. Clear ownership, review points, and cost visibility keep automation useful, consistent, and economically justified."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:t.map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx(ic,{className:"h-5 w-5 text-[#417d73]"}),s.jsx("h3",{className:"mt-4 text-xl font-bold text-[#241714]",children:r}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:n})]},r))})]}),s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Representative controls"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Every recurring AI task needs a management record."})]}),s.jsx("div",{className:"mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:zEe.map(r=>s.jsxs("div",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-5",children:[s.jsx(ic,{className:"h-5 w-5 text-[#417d73]"}),s.jsx("h3",{className:"mt-4 text-xl font-bold text-[#241714]",children:r.title}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6a5b50]",children:r.focus}),s.jsx("div",{className:"mt-5 grid gap-2",children:r.controls.map(n=>s.jsx("div",{className:"rounded-md bg-[#eef4ee] px-3 py-2 text-xs font-bold text-[#46695e]",children:n},n))})]},r.title))})]})})]})}function t_e({startPath:e}){const t=[{title:"1. Map the revenue action surface",body:"We inspect where sellers, managers, RevOps, CS, support, and agents are already using AI, then identify correction work, hallucination risk, repeated prompts, review burden, cost waste, and unclear ROI.",outputs:["Work inventory","Risk map","Cost readout","Platform starting point"]},{title:"2. Install the first work system",body:"We configure the first company-owned context, memory, source rules, review gates, cost controls, agent register, and manager readout around high-value revenue work.",outputs:["Context and memory rules","Review rules","Agent register","Quality baseline"]},{title:"3. Roll out the platform",body:"We connect SalesSidekick around approved AI tools, CRM, collaboration channels, Microsoft or Google workspace patterns, and the revenue process, then train users and managers on how to operate it.",outputs:["Team rollout plan","Platform controls","Manager dashboard","Enablement"]},{title:"4. Manage, improve, and automate",body:"We keep improving the platform as models, agents, tools, people, pricing, product guidance, CRM rules, and sales priorities change, then identify repeated work ready for managed digital workers.",outputs:["Cost tuning","Quality review","Agent cleanup","Digital-worker roadmap"]}],r=[["Platform mapping","Map current AI use, agent activity, correction work, hallucination risk, adoption gaps, cost patterns, and repeated work."],["Platform setup","Configure the first context, memory, review, source, CRM, cost, and manager-visibility controls."],["System connection","Connect SalesSidekick around approved AI tools, CRM, collaboration, workspace, Microsoft cloud, and reporting patterns."],["Managed 
762improvement","Maintain quality controls, agent inventory, cost tuning, rollout health, expansion paths, and digital-worker candidates."]];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"Platform deployment services",title:"SalesSidekick is a product platform with implementation support.",body:"We map current AI-assisted revenue work, install the first work system, connect the right systems, train the team, and keep improving memory, controls, cost, agents, manager visibility, and digital-worker readiness.",cta:"Map our AI rollout",onCta:()=>e("unspecified","services-hero")}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Delivery model"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"We start with the AI work already creating risk or waste."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"The deployment is intentionally staged so buyers can see what is broken, install a practical first work system, then decide what should scale across the team or enterprise."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2",children:t.map(n=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx(cs,{className:"h-6 w-6 text-[#5a8f72]"}),s.jsx("h2",{className:"mt-5 text-xl font-bold text-[#241714]",children:n.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:n.body}),s.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:n.outputs.map(i=>s.jsx("span",{className:"rounded-full border border-[#ddcec1] bg-[#f8f1e8] px-3 py-1 text-xs font-bold text-[#5e5048]",children:i},i))})]},n.title))})]}),s.jsx("section",{className:"border-y border-[#ddcec1] bg-[#efe4d7] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Service lines"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Map, deploy, operate, and improve."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:r.map(([n,i])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("h2",{className:"text-xl font-bold text-[#241714]",children:n}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:i})]},n))}),s.jsxs("div",{className:"mt-6 rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#b86a52]",children:"Supported routes"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:"We can implement around Claude, ChatGPT Business, ChatGPT Enterprise, Microsoft Copilot, Agent 365, Copilot Studio, HubSpot, Salesforce, Slack, Google Workspace / G Suite, and other customer systems. The claim is implementation experience and SalesSidekick control design, not vendor endorsement or replacement."})]})]})})]})}function r_e(){const e=F9("sales-sidekick").filter(r=>r.canonicalSite==="sales-sidekick"||r.targetSites.includes("sales-sidekick")),t=[["AI sales work examples","Practical examples for account research, follow-up, CRM updates, handoffs, forecast prep, review, and recurring agents."],["Quality and risk patterns","Resources on hallucination risk, correction work, customer-facing claims, review boundaries, and safer output."],["Cost and adoption guidance","Education on repeated prompts, token waste, agent sprawl, manager visibility, and proving whether AI rollout is helping."]];return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"Resources",title:"Learn how to control AI sales work before it scales.",body:"Resources focus on the practical issues revenue teams are already facing: inconsistent output, hallucinations, correction work, agent sprawl, cost, adoption, and manager visibility.",cta:"Browse resources",onCta:()=>{var r;
762(r=document.getElementById("sales-resources-list"))==null||r.scrollIntoView({behavior:"smooth",block:"start"})}}),s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-20 lg:px-8",children:s.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:t.map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("h2",{className:"text-xl font-bold text-[#241714]",children:r}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:n})]},r))})}),s.jsx("section",{id:"sales-resources-list",className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsx("div",{className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:e.map(r=>s.jsxs("article",{className:"rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#b86a52]",children:r.type}),s.jsx("h2",{className:"mt-4 text-xl font-bold text-[#241714]",children:r.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6a5b50]",children:r.excerpt})]},r.id))})})]})}function n_e({sitePath:e,startPath:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Mc,{eyebrow:"Request access",title:"Start with the AI work that is already messy.",body:"Choose the commercial path that matches the buyer situation. Revenue teams usually need quality, review, adoption, agent, and cost controls first. Enterprise buyers usually need deeper auditability, system boundaries, governance, and executive reporting.",cta:"Start the conversation",onCta:()=>t("unspecified","getting-started-hero")}),s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsx("div",{className:"grid gap-5 lg:grid-cols-2",children:jK.map(r=>{const n=r.icon;return s.jsx(xe,{href:e(`/${r.key}`),children:s.jsxs("article",{className:"h-full rounded-lg border border-[#ddcec1] bg-[#fffaf3] p-6 transition hover:border-[#b86a52]/45",children:[s.jsx(n,{className:"h-6 w-6 text-[#b86a52]"}),s.jsx("h2",{className:"mt-5 text-2xl font-bold text-[#241714]",children:r.eyebrow}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6a5b50]",children:r.body})]})},r.key)})})})]})}function Mc({eyebrow:e,title:t,body:r,cta:n,onCta:i}){return s.jsxs("section",{className:"relative overflow-hidden border-b border-[#ddcec1]",children:[s.jsx("div",{className:"absolute inset-0 opacity-60",style:{background:"radial-gradient(circle at 18% 16%, rgba(184,106,82,0.14), transparent 34%), radial-gradient(circle at 80% 22%, rgba(65,125,115,0.10), transparent 35%), #f8f1e8"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto max-w-5xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:e}),s.jsx("h1",{className:"mt-5 text-4xl font-bold leading-[1.04] text-[#241714] sm:text-5xl lg:text-6xl",children:t}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-8 text-[#6a5b50]",children:r}),s.jsxs("button",{type:"button",onClick:i,className:"mt-8 inline-flex items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62]",children:[n,s.jsx(Ft,{className:"h-4 w-4"})]})]})]})}function BN({formRef:e,formData:t,updateField:r,handleSubmit:n,markFormStarted:i,submitted:a,isSubmitting:o,verificationReset:l,securityReady:u,setSecurityReady:d,startPath:m}){return s.jsx("section",{ref:e,className:"border-t border-[#ddcec1] bg-[#f4eadf] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-10 px-5 sm:px-6 lg:grid-cols-[0.9fr_1.1fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#b86a52]",children:"Request access"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#241714] md:text-5xl",children:"Tell us where revenue AI is creating inconsistency, risk, or cost."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6a5b50]",children:"We will route you to the right starting point: revenue team platform setup or enterprise platform rollout."}),s.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:["team-os","enterprise"].map(h=>s.jsx("button",{type:"button",onClick:()=>m(h,"form-shortcut"),className:"rounded-full border border-[#d6c4b4] bg-[#fffaf3] px-4 py-2 text-sm font-bold text-[#6a5b50] transition hover:border-[#b86a52]/50 hover:text-[#241714]",children:wK[h]},h))})]}),s.jsx("div",{className:"rounded-lg border border-[#d6c4b4] bg-[#fffaf3] p-5 text-[#241714] sm:p-7 shadow-[0_20px_55px_rgba(91,66,48,0.12)]",children:a?s.jsxs("div",{className:"py-10 text-center",children:[s.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-lg bg-[#e6f0e6]",children:s.jsx(Xo,{className:"h-7 w-7 text-[#416f59]"})}),s.jsx("h3",{className:"mt-6 text-2xl font-bold text-[#241714]",children:"Request received."}),s.jsx("p",{className:"mx-auto mt-3 max-w-md text-sm leading-6 text-[#604c43]",children:"Latif will review what you shared and come back with the cleanest SalesSidekick platform path."})]}):s.jsxs("form",{onSubmit:n,onFocus:i,className:"space-y-5",children:[s.jsx("input",{type:"text",name:"_companyWebsite",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute left-[-10000px] h-px w-px overflow-hidden"}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(xi,{label:"First name",children:s.jsx("input",{className:gi,value:t.firstName,onChange:h=>r("firstName",h.target.value),required:!0})}),s.jsx(xi,{label:"Last name",children:s.jsx("input",{className:gi,value:t.lastName,onChange:h=>r("lastName",h.target.value),required:!0})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(xi,{label:"Work email",children:s.jsx("input",{className:gi,type:"email",value:t.email,onChange:h=>r("email",h.target.value),required:!0})}),s.jsx(xi,{label:"Company",children:s.jsx("input",{className:gi,value:t.company,onChange:h=>r("company",h.target.value),required:!0})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(xi,{label:"Role",children:s.jsx("input",{className:gi,value:t.role,onChange:h=>r("role",h.target.value),placeholder:"VP Revenue, RevOps, Enablement, AI owner..."})}),s.jsx(xi,{label:"Team size",children:s.jsxs("select",{className:gi,value:t.teamSize,onChange:h=>r("teamSize",h.target.value),children:[s.jsx("option",{value:"",children:"Select one"}),s.jsx("option",{value:"2-10",children:"2-10"}),s.jsx("option",{value:"11-50",children:"11-50"}),s.jsx("option",{value:"51-200",children:"51-200"}),s.jsx("option",{value:"201+",children:"201+"})]})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(xi,{label:"I'm looking for help with",children:s.jsxs("select",{className:gi,value:t.lookingFor,onChange:h=>r("lookingFor",h.target.value),children:[s.jsx("option",{value:"team-os",children:"Revenue team platform setup"}),s.jsx("option",{value:"enterprise",children:"Enterprise platform rollout"}),s.jsx("option",{value:"unspecified",children:"Not sure yet"})]})}),s.jsx(xi,{label:"Current AI / revenue stack",children:s.jsxs("select",{className:gi,value:t.currentAiSurface,onChange:h=>r("currentAiSurface",h.target.value),children:[s.jsx("option",{value:"",children:"Select one"}),s.jsx("option",{value:"Claude",children:"Claude"}),s.jsx("option",{value:"Claude projects / skills",children:"Claude projects / skills"}),s.jsx("option",{value:"ChatGPT Business / Enterprise",children:"ChatGPT Business / Enterprise"}),s.jsx("option",{value:"OpenAI tools",children:"OpenAI tools"}),s.jsx("option",{value:"Microsoft Copilot",children:"Microsoft Copilot"}),s.jsx("option",{value:"HubSpot / Salesforce",children:"HubSpot / Salesforce"}
762),s.jsx("option",{value:"Google Workspace / G Suite",children:"Google Workspace / G Suite"}),s.jsx("option",{value:"Slack",children:"Slack"}),s.jsx("option",{value:"Mixed",children:"Mixed"}),s.jsx("option",{value:"Not sure",children:"Not sure"})]})})]}),s.jsx(xi,{label:"Where is revenue AI getting messy today?",children:s.jsx("textarea",{className:`${gi} min-h-24 resize-y`,value:t.workflowPain,onChange:h=>r("workflowPain",h.target.value),placeholder:"Correction work, hallucinated claims, inconsistent follow-up, risky customer messages, Salesforce or HubSpot updates, agent sprawl, token cost, low adoption, unclear ROI, manager visibility, or review burden."})}),s.jsx(xi,{label:"Anything else worth knowing?",children:s.jsx("textarea",{className:`${gi} min-h-24 resize-y`,value:t.notes,onChange:h=>r("notes",h.target.value),placeholder:"Current AI tools, CRM, collaboration stack, agents already running, teams in scope, review process, timing, or constraints."})}),s.jsx(bK,{formId:"sales-sidekick-signup",resetSignal:l,onSubmissionReady:d}),s.jsxs("button",{type:"submit",disabled:o||!u,className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-[#b86a52] px-6 py-3.5 text-sm font-bold text-[#fffaf3] transition hover:bg-[#ca7a62] disabled:cursor-not-allowed disabled:opacity-60",children:[o?"Sending...":u?"Send request":"Preparing security...",s.jsx(Ft,{className:"h-4 w-4"})]})]})})]})})}const gi="mt-2 w-full rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-4 py-3 text-sm text-[#241714] outline-none transition focus:border-[#b86a52] focus:ring-2 focus:ring-[#b86a52]/20";function xi({label:e,children:t}){return s.jsxs("label",{className:"block text-sm font-bold text-[#49352d]",children:[e,t]})}const s_e=["Microsoft for Startups Founders Hub","Microsoft ISV Success","Microsoft CSP / Cloud Solution Provider"],i_e={sales:{section:"border-y border-[#ddcec1] bg-[#fffaf3] text-[#241714]",eyebrow:"text-[#b86a52]",title:"text-[#241714]",body:"text-[#6a5b50]",card:"border-[#d6c4b4] bg-[#fbf5ed]",badge:"border-[#d6c4b4] bg-[#fffaf3] text-[#3e322c]",check:"text-[#417d73]",link:"text-[#417d73] hover:text-[#315f57]"},workspace:{section:"border-y border-[#dfd0c4] bg-[#fff8f0] text-[#2b211d]",eyebrow:"text-[#a8614f]",title:"text-[#2b211d]",body:"text-[#6d5549]",card:"border-[#d8c8bb] bg-[#fffdf9]",badge:"border-[#d8c8bb] bg-[#f6f0e8] text-[#46342c]",check:"text-[#7b9c89]",link:"text-[#7b9c89] hover:text-[#5d806b]"}};function a_e({tone:e,eyebrow:t="Route detail",title:r,intro:n,claude:i,openai:a,microsoft:o}){const l=i_e[e];return s.jsx("section",{id:"implementation-routes",className:`${l.section} py-14 md:py-20`,children:s.jsx("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:s.jsxs("div",{children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:`text-sm font-bold uppercase tracking-[0.16em] ${l.eyebrow}`,children:t}),s.jsx("h2",{className:`mt-4 text-3xl font-bold leading-tight md:text-4xl ${l.title}`,children:r}),s.jsx("p",{className:`mt-5 text-base leading-7 md:text-lg ${l.body}`,children:n})]}),s.jsxs("div",{className:"mt-8 grid gap-4 lg:grid-cols-3",children:[s.jsx(VN,{icon:s.jsx(Xd,{className:"h-5 w-5","aria-hidden":"true"}),route:i,styles:l}),s.jsx(VN,{icon:s.jsx(Yd,{className:"h-5 w-5","aria-hidden":"true"}),route:a,styles:l}),s.jsx(VN,{icon:s.jsx(ns,{className:"h-5 w-5"}),route:o,styles:l,credentials:s_e})]})]})})})}function VN({icon:e,route:t,styles:r,credentials:n}){return s.jsxs("article",{className:`flex h-full flex-col rounded-lg border p-5 ${r.card}`,children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border ${r.badge}`,children:e}),s.jsxs("div",{children:[s.jsx("h3",{className:`text-xl font-bold leading-tight ${r.title}`,children:t.title}),s.jsx("p",{className:`mt-2 text-sm leading-6 ${r.body}`,children:t.body})]})]}),s.jsx("div",{className:"mt-5 space-y-3",children:t.bullets.map(i=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:`mt-0.5 h-4 w-4 shrink-0 ${r.check}`}),s.jsx("p",{className:`text-sm leading-6 ${r.body}`,children:i})]},i))}),n&&s.jsx(s.Fragment,{children:s.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:n.map(i=>s.jsx("span",{className:`rounded-full border px-3 py-1 text-xs font-bold ${r.badge}`,children:i},i))})})]})}const yF={firstName:"",lastName:"",email:"",company:"",role:"",teamSize:"",claudeUsage:"",lookingFor:"unspecified",priority:"",rollupGoal:"",message:""},NK={"team-os":"Team platform","enterprise-os":"Enterprise platform",unspecified:"Not sure yet"},o_e={home:{title:"Sidekick Genius | AI Work Intelligence Platform",description:"Sidekick Genius helps teams make AI work visible, trusted, and worth scaling with clearer context, memory, review rules, cost signal, and business evidence.",canonicalPath:"/"},"team-os":{title:"For Teams | Sidekick Genius",description:"Help one team make repeated AI-assisted work more consistent with shared workflows, approved context, useful memory, review rules, cost signal, and manager visibility.",canonicalPath:"/team-os"},"enterprise-os":{title:"For Enterprise | Sidekick Genius",description:"Help larger organizations scale AI across teams with approved sources, review rules, security boundaries, cost visibility, agent ownership, and executive reporting.",canonicalPath:"/enterprise-os"},"ai-platforms":{title:"AI Platforms | Sidekick Genius",description:"Bring owned context, memory, review, and visibility to AI work happening across Claude, ChatGPT, Codex, Microsoft Copilot, Agent 365, Google Worksp
762ace, Slack, and business systems.",canonicalPath:"/ai-platforms"},"operating-model":{title:"How It Works | Sidekick Genius",description:"See how Sidekick Genius gives teams shared workflows, approved sources, review rules, useful memory, and evidence of value.",canonicalPath:"/operating-model"},services:{title:"Platform Deployment Services | Sidekick Genius",description:"Sidekick Genius platform setup, deployment implementation, enablement, and managed improvement for teams rolling out Claude, Microsoft, OpenAI, or mixed AI tools.",canonicalPath:"/services"},resources:{title:"Resources | Sidekick Genius",description:"Sidekick Genius resources on AI adoption, correction work, hallucination risk, agent sprawl, cost control, memory, and business visibility.",canonicalPath:"/resources"},"getting-started":{title:"Get Started | Sidekick Genius",description:"Start by mapping where AI is creating repeated context work, inconsistency, review burden, agent sprawl, cost, or unclear ROI.",canonicalPath:"/getting-started"}},l_e=[{key:"team-os",eyebrow:"For teams",title:"I need one team using AI in a consistent, useful way.",body:"For a department, function, or team that needs better AI workflows before it needs an enterprise-wide program.",cta:"Map my team",icon:Qo},{key:"enterprise-os",eyebrow:"For enterprise",title:"I need a company-wide way to manage AI work.",body:"For leaders coordinating AI across teams, tools, approved sources, security, finance, governance, agents, and executive evidence.",cta:"Map enterprise platform",icon:$i}],c_e=[{name:"Cost",icon:Qm,team:"Find duplicated research, low-value AI use, review loops, and recurring agents that cost more than they return.",enterprise:"Tie model spend, token usage, review effort, and agent activity to useful business work, with raw usage kept in context."},{name:"Context",icon:eC,team:"Make trusted sources, current facts, role guidance, and handoff context easier for normal users to apply.",enterprise:"Align source rules, policy context, business priorities, sensitive data boundaries, and approved work surfaces."},{name:"Control",icon:FB,team:"Set practical review points for risky outputs, stale context, customer-facing claims, and system updates.",enterprise:"Create deeper boundaries across teams, systems, vendors, agents, permissions, approvals, and sensitive work."},{name:"Memory",icon:pa,team:"Teams can decide what should stay private, what should become shared, and what needs review first.",enterprise:"Institutional knowledge becomes less dependent on private chats, individual habits, or one vendor memory."},{name:"Performance",icon:tC,team:"Managers can see where AI helps, where quality varies, and where people need clearer support or controls.",enterprise:"Leaders can connect AI-assisted work to priorities, quality, adoption, cost, review burden, and next decisions."},{name:"Portability",icon:kv,team:"Reusable patterns survive onboarding, role changes, new tools, and team growth.",enterprise:"The business is less dependent on one model, one private chat history, or one disconnected AI surface."}],u_e=[{icon:VB,title:"Repeated context",body:"People keep re-explaining the same company facts, priorities, decisions, customer context, and preferences."},{icon:Zo,title:"Correction work",body:"Managers and operators spend time fixing hallucinations, stale context, weak drafts, and inconsistent outputs."},{icon:ac,title:"Invisible AI work",body:"Leaders see licenses and chat volume before they can see what work improved, what agents are running, or what needs review."}];function d_e(e){const t=e.replace(new RegExp(`^${Mi}`),"")||"/";if(t==="/")return"home";const r=t.replace(/^\/+/,"");return r==="claude-microsoft"?"ai-platforms":r==="how-it-works"?"operating-model":["team-os","enterprise-os","ai-platforms","operating-model","services","resources","getting-started"].includes(r)?r:"home"}function vF(){return s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[#2b211d] text-[#fff8f0]","aria-hidden":"true",children:s.jsx(Ra,{className:"h-5 w-5 text-[#d4836b]"})})}function f_e(){const e=[["Context rebuilt","People and agents keep loading the same company, customer, project, and role context."],["Review drag","Human review time goes into fixing stale context, weak drafts, unsupported claims, and inconsistent outputs."],["Memory trapped","Useful corrections, decisions, and lessons stay inside private chats and fail to improve the next workflow."],["Unclear economics","Leaders see usage before they can see better work, lower effort, or what should scale."]];return s.jsxs("div",{className:"w-full max-w-full overflow-hidden rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-5 shadow-[0_30px_80px_rgba(43,33,29,0.12)]",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.18em] text-[#a8614f]",children:"The market pressure"}),s.jsxs("div",{className:"mt-5 grid gap-5 lg:grid-cols-[1.05fr_0.95fr] lg:items-center",children:[s.jsxs("svg",{viewBox:"0 0 440 235",className:"min-h-[220px] w-full rounded-lg border border-[#eaded4] bg-[#fffdf9]",role:"img","aria-label":"AI spend rising faster than proved value",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"sidekickSpendFill",x1:"0",x2:"1",y1:"0",y2:"0",children:[s.jsx("stop",{offset:"0",stopColor:"#d4836b",stopOpacity:"0.06"}),s.jsx("stop",{offset:"1",stopColor:"#d4836b",stopOpacity:"0.22"})]})}
762),s.jsx("line",{x1:"40",y1:"188",x2:"402",y2:"188",stroke:"#cdb9aa",strokeWidth:"1.5"}),s.jsx("line",{x1:"40",y1:"35",x2:"40",y2:"188",stroke:"#cdb9aa",strokeWidth:"1.5"}),s.jsx("path",{d:"M42 172 C 96 162, 145 144, 193 123 C 252 96, 316 62, 398 34 L 398 188 L 42 188 Z",fill:"url(#sidekickSpendFill)"}),s.jsx("path",{d:"M42 172 C 96 162, 145 144, 193 123 C 252 96, 316 62, 398 34",fill:"none",stroke:"#d4836b",strokeWidth:"4",strokeLinecap:"round"}),s.jsx("path",{d:"M42 172 C 92 168, 152 167, 210 162 C 276 156, 333 150, 398 143",fill:"none",stroke:"#417d73",strokeWidth:"4",strokeLinecap:"round"}),s.jsx("circle",{cx:"398",cy:"34",r:"7",fill:"#d4836b"}),s.jsx("circle",{cx:"398",cy:"143",r:"7",fill:"#417d73"}),s.jsx("text",{x:"52",y:"215",fill:"#8a7366",fontSize:"12",fontWeight:"700",children:"more seats, tools, tokens, agents"}),s.jsx("text",{x:"276",y:"31",fill:"#a8614f",fontSize:"13",fontWeight:"800",children:"spend"}),s.jsx("text",{x:"300",y:"137",fill:"#417d73",fontSize:"13",fontWeight:"800",children:"proved value"})]}),s.jsxs("div",{className:"grid gap-4",children:[s.jsxs("div",{className:"flex gap-3",children:[s.jsx("span",{className:"mt-1 h-3 w-3 shrink-0 rounded-full bg-[#d4836b]"}),s.jsxs("p",{className:"text-sm leading-6 text-[#6d5549]",children:[s.jsx("b",{className:"text-[#46342c]",children:"Spend is visible."})," Seats, tokens, tool overlap, recurring agent runs, and human review time all add up."]})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsx("span",{className:"mt-1 h-3 w-3 shrink-0 rounded-full bg-[#417d73]"}),s.jsxs("p",{className:"text-sm leading-6 text-[#6d5549]",children:[s.jsx("b",{className:"text-[#46342c]",children:"Value is harder to see."})," Most teams can show AI activity before they can show economic impact."]})]})]})]}),s.jsx("div",{className:"mt-5 grid gap-3 md:grid-cols-2",children:e.map(([t,r])=>s.jsxs("div",{className:"rounded-lg border border-[#eaded4] bg-[#fff8f0] p-4",children:[s.jsx("p",{className:"text-sm font-bold text-[#2b211d]",children:t}),s.jsx("p",{className:"mt-2 text-xs leading-5 text-[#6d5549]",children:r})]},t))})]})}function h_e(){const e=[{title:"Microsoft-governed teams",body:"Run the Sidekick Genius platform around Microsoft 365, Copilot, Agent 365, Copilot Studio, Graph, Entra, Purview, Defender, Intune, Power Platform, Dynamics, and Azure-hosted infrastructure where Microsoft is the customer standard."},{title:"Claude-powered work",body:"Give Claude, Claude Code, projects, skills, and agents the same company-owned context, memory, source rules, review points, and cost-aware operating signal."},{title:"OpenAI and future surfaces",body:"Let ChatGPT Business, ChatGPT Enterprise, Codex, and future approved AI tools execute against the same context, memory, review, routing, cost, and visibility layer."}];return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"grid gap-10 lg:grid-cols-[0.9fr_1.1fr] lg:items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Approved AI surfaces"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"One owned work system across approved AI tools and business apps."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"People are already working across AI tools and business systems. Sidekick Genius gives the business a consistent way to own context, memory, rules, review, cost signal, and operating visibility across approved surfaces."})]}),s.jsx("div",{className:"grid gap-4",children:e.map(t=>s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("h3",{className:"text-xl font-bold text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:t.body})]},t.title))})]})})})}function m_e(){const e=["Models","Chat","Copilots","Coding tools","Connectors","Agents"],t=["People","AI-assisted people","Autonomous agents","Skills","Workflows","Custom agents"],r=["Context contracts","Source rules","Security policy","Permissions","Skill contracts","Memory rules","Review gates","Receipts","Economics"],n=[{title:"Systems of record",items:["CRM","ERP","HRIS","Finance","Marketing ops"]},{title:"Knowledge and content",items:["Docs and drives","Wikis","Files","Evidence stores"]},{title:"Data and analytics",items:["Warehouses","BI","Product data","Semantic layer"]},{title:"Communication",items:["Email","Chat","Calendar","Call notes"]},{title:"Engineering systems",items:["Repos","CI/CD","Issue trackers","Observability"]},{title:"Service and product",items:["Support","Customer success","Telemetry","Product ops"]}],i=[["Cost","seats, tokens, rework"],["Context","approved, missing, stale"],["Control","policy, gates, actions"],["Memory","reusable vs local"],["Performance","quality, speed, outcome"],["Portability","survives tool change"]];return s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Customer-owned AI work system"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"The tools are rented. The working system should be owned."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius focuses on the two middle layers: how people and agents do the work, and the shared context, controls, memory, review, security, and economics that make that work repeatable."})]}),s.jsxs("div",{className:"mt-10 overflow-hidden rounded-xl border border-[#d8c8bb] bg-[#fffdf9] p-5 shadow-[0_30px_90px_rgba(43,33,29,0.10)] sm:p-6",children:[s.jsx("div",{className:"rounded-lg border border-[#eaded4] bg-[#fbf7f1] p-4",children:s.jsxs("div",{className:"grid gap-4 lg:grid-cols-[0.78fr_1.22fr_0.78fr] lg:items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#8a7366]",children:"Layer 1 · rented"}),s.jsx("h3",{className:"mt-2 text-xl font-bold text-[#2b211d]",children:"AI tool layer"})]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(a=>s.jsx("span",{className:"rounded-full border border-[#b8cce6] bg-[#ecf4ff] px-4 py-2 text-sm font-bold text-[#31517c]",children:a},a))}),s.jsx("p",{className:"text-sm font-semibold leading-6 text-[#6d5549] lg:text-right",children:"Powerful rented tools still need adoption, trust, and value behind them."})]})}),s.jsx("div",{className:"mx-auto my-5 h-10 max-w-3xl rounded-b-[42px] border-x border-b border-[#becde0]","aria-hidden":"true"}),s.jsx("div",{className:"rounded-xl border-2 border-[#f0b2a1] bg-[#fff8f0] p-4 sm:p-5",children:s.jsxs("div",{className:"rounded-lg border border-[#eaded4] bg-[#fffdf9] p-4 sm:p-5",children:[s.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:"Layers 2 and 3 · owned"}),s.jsx("h3",{className:"mt-2 text-3xl font-bold leading-tight text-[#2b211d]",children:"The customer-owned operating core"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6d5549]",children:"Two layers with one owner: the work itself, and the system the work runs on."})]}
762),s.jsx("span",{className:"w-fit rounded-full border border-[#f0b2a1] bg-[#fff0e8] px-4 py-2 text-xs font-bold uppercase tracking-[0.12em] text-[#a8614f]",children:"Focus area"})]}),s.jsx("div",{className:"mt-6 rounded-lg border border-[#eaded4] bg-[#fbf7f1] p-4",children:s.jsxs("div",{className:"grid gap-4 md:grid-cols-[0.9fr_0.18fr_1.2fr] md:items-center",children:[s.jsxs("div",{className:"rounded-lg border border-[#e2c7be] bg-[#fffdf9] p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:"Today"}),s.jsxs("svg",{viewBox:"0 0 270 84",className:"mt-3 h-24 w-full",role:"img","aria-label":"Scattered work",children:[s.jsx("path",{d:"M12 21 C 58 46, 93 6, 141 47 S 220 45, 258 13",fill:"none",stroke:"#c88f82",strokeWidth:"3",strokeLinecap:"round"}),s.jsx("path",{d:"M16 58 C 62 16, 95 61, 135 35 S 208 27, 252 67",fill:"none",stroke:"#c88f82",strokeWidth:"3",strokeLinecap:"round",opacity:"0.8"}),s.jsx("path",{d:"M25 39 C 69 29, 91 67, 128 57 S 200 4, 244 30",fill:"none",stroke:"#c88f82",strokeWidth:"3",strokeLinecap:"round",opacity:"0.65"})]}),s.jsx("p",{className:"mt-2 text-sm font-bold text-[#a8614f]",children:"People stitch tools, context, and systems together by hand."})]}),s.jsx("div",{className:"hidden text-center text-2xl font-bold text-[#a8614f] md:block",children:"→"}),s.jsxs("div",{className:"rounded-lg border border-[#d7e2d3] bg-[#f6fbf4] p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#3e5545]",children:"With a governed work system"}),s.jsx("div",{className:"mt-4 grid gap-2",children:[0,1,2,3].map(a=>s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-[#417d73]"}),s.jsx("span",{className:"h-px flex-1 bg-[#b9d0ca]"}),s.jsx("span",{className:"h-2 w-2 rounded-full bg-[#417d73]"})]},a))}),s.jsx("p",{className:"mt-5 text-sm font-bold text-[#417d73]",children:"Work becomes governed, repeatable, measurable, and easier to improve."})]})]})}),s.jsx("div",{className:"mt-5 rounded-lg border border-[#e3b7a8] bg-[#fffdf9] p-4",children:s.jsxs("div",{className:"grid gap-5 lg:grid-cols-[0.78fr_1.22fr] lg:items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:"Layer 2 · the work"}),s.jsx("h4",{className:"mt-2 text-2xl font-bold text-[#2b211d]",children:"Work execution layer"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:"Where people and agents run meetings, research, deals, documents, decisions, handoffs, and repeatable tasks."})]}),s.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t.map(a=>s.jsx("span",{className:"rounded-lg border border-[#eaded4] bg-[#fff8f0] px-3 py-2 text-sm font-bold text-[#46342c]",children:a},a))})]})}),s.jsx("div",{className:"my-4 rounded-lg border border-dashed border-[#e3b7a8] bg-[#fff8f0] px-4 py-3 text-center text-sm font-bold text-[#a8614f]",children:"The live work runs above. The shared context, contracts, controls, and evidence sit below it."}),s.jsx("div",{className:"rounded-lg border border-[#b9d0ca] bg-[#f6fbf4] p-4",children:s.jsxs("div",{className:"grid gap-5 lg:grid-cols-[0.78fr_1.22fr] lg:items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#417d73]",children:"Layer 3 · the system"}),s.jsx("h4",{className:"mt-2 text-2xl font-bold text-[#2b211d]",children:"Context, control, memory, and evidence"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:"The shared company layer that governs what the work can use, what needs review, what gets remembered, and what can be measured."})]}),s.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:r.map(a=>s.jsx("span",{className:"rounded-lg border border-[#b9d0ca] bg-white px-3 py-2 text-sm font-bold text-[#46342c]",children:a},a))})]})}),s.jsxs("div",{className:"mt-5 rounded-lg bg-[#2b211d] p-4 text-[#fff8f0]",children:[s.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[s.jsx("p",{className:"text-sm font-bold text-[#fff8f0]",children:"Measured here"}),s.jsx("p",{className:"text-sm text-[#cdb9aa]",children:"The shared system gives leaders a business readout on AI activity."})]}),s.jsx("div",{className:"mt-4 grid gap-3 md:grid-cols-2 xl:grid-cols-6",children:i.map(([a,o])=>s.jsxs("div",{className:"rounded-lg border border-[#6b564d] bg-[#3a2b25] p-3",children:[s.jsx("p",{className:"text-sm font-bold text-[#fff8f0]",children:a}),s.jsx("p",{className:"mt-1 text-xs leading-5 text-[#cdb9aa]",children:o})]},a))})]})]})}),s.jsx("div",{className:"mx-auto my-5 h-10 max-w-3xl rounded-t-[42px] border-x border-t border-[#e0c18f]","aria-hidden":"true"}),s.jsx("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-4",children:s.jsxs("div",{className:"grid gap-5 lg:grid-cols-[0.6fr_1.4fr]",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#8a7366]",children:"Layer 4 · ground truth"}),s.jsx("h3",{className:"mt-2 text-2xl font-bold text-[#2b211d]",children:"Existing systems, sources, and data"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:"The work should connect back to the evidence leaders already use to run the business."})]}),s.jsx("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:n.map(a=>s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#8a7366]",children:a.title}),s.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:a.items.map(o=>s.jsx("span",{className:"rounded-lg border border-[#eaded4] bg-[#fff8f0] px-3 py-2 text-xs font-bold text-[#6d5549]",children:o},o))})]},a.title))})]})})]})]})}function p_e(){const e=[{title:"Microsoft-cloud platform path",body:"Sidekick Genius is positioned as a product platform that can run around Microsoft 365, Copilot, Agent 365, Graph, Entra, Purview, Defender, Power Platform, Dynamics, and Azure-hosted infrastru
762cture where customers want a Microsoft-governed environment.",icon:Tc},{title:"Model and workspace flexible",body:"Claude, ChatGPT, Codex, Copilot, Slack, Google Workspace, docs, email, calendar, and business systems can all feed the same owned context, memory, source, review, cost, and visibility layer.",icon:Zm},{title:"Digital worker foundation",body:"Once the platform understands how people work, what repeats, what breaks, what costs too much, and what has clear value, it can recommend and manage governed digital workers for repeatable tasks.",icon:Zo}];return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-16 md:py-24",children:s.jsx("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"grid gap-8 lg:grid-cols-[0.85fr_1.15fr] lg:items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Product platform"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Sidekick Genius starts with AI work intelligence and grows into digital work orchestration."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"The first job is to make AI-assisted work visible, trusted, reusable, and cost-aware. Once that layer exists, the platform can see which repeated work should be standardized, automated, or assigned to governed digital workers."})]}),s.jsx("div",{className:"grid gap-4",children:e.map(t=>{const r=t.icon;return s.jsx("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6 shadow-[0_16px_44px_rgba(43,33,29,0.08)]",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-lg bg-[#dfeddb] text-[#3e5545]",children:s.jsx(r,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:t.body})]})]})},t.title)})})]})})})}function g_e({path:e}){const r={"team-os":{title:"Team evidence readout",items:["Inspect where the team is using AI, what outputs vary, what needs review, and where people keep rebuilding context.","Run a small evidence pass around source rules, shared memory, output standards, review gates, cost signals, and visible team rollups.","Show whether consistency, quality, handoffs, cost awareness, or adoption improves before adding enterprise scope."],limit:"Out of scope: full enterprise data normalization, comprehensive KPI correlation, and broad system-wide controls."},"enterprise-os":{title:"Enterprise evidence readout",items:["Inspect AI-assisted work across selected teams, tools, agents, sources, review points, priorities, and cost patterns.","Analyze context, memory, quality, hallucination risk, review burden, agent sprawl, cost, adoption, and executive rollup needs.","Recommend the first platform path worth installing before broader rollout, system alignment, digital-worker planning, or executive reporting."],limit:"Out of scope: generic usage dashboards, prompt cleanup, and guaranteed ROI claims. The output is a clearer platform path."},unspecified:{title:"Platform evidence readout",items:["Identify whether the first evidence pass should focus on one person, one team, or an enterprise AI work intelligence problem.","Inspect where AI work is already happening and where value is being lost through rework, correction, review, or cost.","Recommend the smallest useful work system that creates evidence with appropriate scope."],limit:"The readout stays scoped to the path, work sample, and evidence available."}}[e];return s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"How we validate it"}),s.jsx("h3",{className:"mt-3 text-2xl font-bold text-[#2b211d]",children:r.title}),s.jsx("div",{className:"mt-5 space-y-3",children:r.items.map(n=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(ZZ,{className:"mt-0.5 h-5 w-5 shrink-0 text-[#7b9c89]"}),s.jsx("p",{className:"text-sm leading-6 text-[#6d5549]",children:n})]},n))}),s.jsx("p",{className:"mt-5 border-t border-[#eaded4] pt-5 text-sm leading-6 text-[#8a7366]",children:r.limit})]})}function vr(){const[e]=Pn(),t=d_e(e),r=o_e[t],{toast:n}=fs(),[i,a]=S.useState(yF),[o,l]=S.useState(!1),[u,d]=S.useState(!1),[m,h]=S.useState(!1),[p,x]=S.useState(0),[w,v]=S.useState(!1),y=S.useRef(null),j=Lle(e)?Mi:"",k=`https://sidekickgenius.com${r.canonicalPath==="/"?"/":r.canonicalPath}`;S.useEffect(()=>{document.title=r.title,window.scrollTo(0,0),Ho("sidekick_genius_page_viewed",{event_category:"site",event_label:t})},[r.title,t]),S.useEffect(()=>{nc("sidekick-genius-proof").catch(()=>{})},[]);const N=O=>j?O==="/"?j:`${j}${O}`:O,C=(O,F)=>{var D;a(L=>({...L,lookingFor:O})),_9(`Sidekick Genius ${NK[O]}`,F),(D=y.current)==null||D.scrollIntoView({behavior:"smooth",block:"start"})},A=()=>{m||(h(!0),sy("Sidekick Genius request","started"))},E=(O,F)=>{a(D=>({...D,[O]:F}))},_=async O=>{O.preventDefault();const F=O.currentTarget;d(!0);try{const D=await nc("sidekick-genius-proof"),L=new FormData(F),I=String(L.get("_companyWebsite")||""),$=String(L.get("_turnstileToken")||"");await ss("/api/sidekick-genius/proof",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,offerPath:i.lookingFor,referredBy:ap(),_formChallenge:D.challenge,_companyWebsite:I,_turnstileToken:$,_analyticsSessionId:E9()})}),sy("Sidekick Genius request","completed",Object.values(i).filter(
762Boolean).length),mv("sidekick-genius-proof"),l(!0),a(yF)}catch{mv("sidekick-genius-proof"),x(L=>L+1);try{await nc("sidekick-genius-proof",!0)}catch{}n({title:"Submission did not go through",description:"Please try again or email [email protected].",variant:"destructive"})}finally{d(!1)}},R=S.useMemo(()=>t==="team-os"?"team-os":t==="enterprise-os"?"enterprise-os":i.lookingFor,[i.lookingFor,t]);return s.jsxs("div",{className:"min-h-screen overflow-x-hidden bg-[#f6f0e8] text-[#2b211d]",children:[s.jsx(Lr,{title:r.title,description:r.description,keywords:"Sidekick Genius, AI work intelligence platform, digital work platform, digital workers, AI adoption, hallucination risk, agent sprawl, AI cost control, Claude teams, ChatGPT teams, Codex teams, Microsoft Copilot teams, Microsoft AI platform",canonicalUrl:k,ogImage:"/sidekick-genius-social-preview.svg",structuredData:{type:"SoftwareApplication",data:{name:"Sidekick Genius",applicationCategory:"BusinessApplication",operatingSystem:"Web",provider:{"@type":"Organization",name:"RebelHQ Incorporated",url:"https://pipelinerebel.com"},url:"https://sidekickgenius.com",description:r.description}}}),s.jsx("header",{className:"sticky top-0 z-40 overflow-x-hidden border-b border-[#dfd0c4] bg-[#f6f0e8]/92 backdrop-blur",children:s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-5 py-4 sm:px-6 lg:px-8",children:[s.jsxs(xe,{href:N("/"),className:"flex items-center gap-3",children:[s.jsx(vF,{}),s.jsx("span",{className:"text-lg font-bold text-[#2b211d]",children:"Sidekick Genius"})]}),s.jsxs("nav",{className:"hidden items-center gap-5 text-sm font-semibold text-[#6d5549] lg:flex","aria-label":"Sidekick Genius primary",children:[s.jsx(xe,{href:N("/team-os"),className:"transition hover:text-[#2b211d]",children:"Team"}),s.jsx(xe,{href:N("/enterprise-os"),className:"transition hover:text-[#2b211d]",children:"Enterprise"}),s.jsx(xe,{href:N("/operating-model"),className:"transition hover:text-[#2b211d]",children:"How it works"}),s.jsx(xe,{href:N("/ai-platforms"),className:"transition hover:text-[#2b211d]",children:"AI Platforms"}),s.jsx(xe,{href:N("/services"),className:"transition hover:text-[#2b211d]",children:"Services"}),s.jsx(xe,{href:N("/resources"),className:"transition hover:text-[#2b211d]",children:"Resources"}),s.jsx(xe,{href:N("/getting-started"),className:"transition hover:text-[#2b211d]",children:"Get started"})]}),s.jsxs("button",{type:"button",onClick:()=>C(R,"nav"),className:"inline-flex items-center gap-2 rounded-lg bg-[#d4836b] px-4 py-2.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761]",children:[s.jsx("span",{className:"hidden sm:inline",children:"Get started"}),s.jsx(Ft,{className:"h-4 w-4"})]})]})}),s.jsxs("main",{children:[t==="home"&&s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(43,33,29,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,29,0.055) 1px, transparent 1px)",backgroundSize:"54px 54px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto w-full max-w-7xl min-w-0 px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"mx-auto max-w-5xl min-w-0 text-center",children:[s.jsxs("div",{className:"mx-auto inline-flex items-center gap-2 rounded-full border border-[#d8c8bb] bg-[#fffdf9] px-4 py-2 text-sm font-semibold text-[#6d5549]",children:[s.jsx(lC,{className:"h-4 w-4 text-[#d4836b]"}),"AI work intelligence platform"]}),s.jsx("h1",{className:"mt-6 text-4xl font-bold leading-[1.05] text-[#2b211d] sm:text-5xl lg:mt-8 lg:text-7xl",children:"Make AI work visible, trusted, and worth scaling."}),s.jsx("p",{className:"mx-auto mt-5 max-w-3xl text-lg leading-7 text-[#6d5549] md:mt-7 md:text-xl md:leading-8",children:"AI tools are already moving through the business. Sidekick Genius builds the customer-owned operating layer around that work: approved context, useful memory, review rules, cost signal, and evidence for which human, AI-augmented, and agentic workflows should scale next."}),s.jsxs("div",{className:"mt-7 flex flex-col items-center justify-center gap-3 sm:flex-row md:mt-9",children:[s.jsxs("a",{href:"#starting-point",className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-[#d4836b] px-6 py-3.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761] sm:w-auto",children:["Find your path",s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsxs(xe,{href:N("/operating-model"),className:"inline-flex w-full items-center justify-center gap-2 rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-6 py-3.5 text-sm font-bold text-[#46342c] transition hover:border-[#b99f8f] sm:w-auto",children:["See the model",s.jsx(nC,{className:"h-4 w-4"})]})]})]}),s.jsx("div",{className:"mt-10 md:mt-14",children:s.jsx(f_e,{})})]})]}),s.jsx(y_e,{sitePath:N}
762),s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-8",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsx(NC,{}),s.jsx(SC,{className:"mt-5",variant:"warm",label:"Experience behind the operating patterns"})]})}),s.jsx(h_e,{}),s.jsx(m_e,{}),s.jsx(p_e,{}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"The correction tax is real"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"The waste shows up as rework, corrections, review burden, cost, and unclear ROI."}),s.jsx("p",{className:"mt-6 text-lg leading-8 text-[#6d5549]",children:"AI licenses are only part of the cost story. The real expense is useful intelligence being rebuilt, hallucinated outputs being corrected, low-value agents running in the background, and managers reviewing work that should have been easier to trust at the point of use."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:["People rebuild the same context.","Outputs vary across the team.","Review catches avoidable mistakes.","Leaders see activity before value."].map(O=>s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-5",children:[s.jsx(Xo,{className:"h-5 w-5 text-[#7b9c89]"}),s.jsx("p",{className:"mt-4 text-sm font-semibold leading-6 text-[#46342c]",children:O})]},O))})]}),s.jsx(TK,{sitePath:N}),s.jsx(AK,{}),s.jsx(x_e,{sitePath:N}),s.jsx(qN,{formRef:y,formData:i,updateField:E,handleSubmit:_,markFormStarted:A,submitted:o,isSubmitting:u,verificationReset:p,securityReady:w,setSecurityReady:v,startPath:C})]}),t==="team-os"&&s.jsx(wF,{kind:"team-os",sitePath:N,startPath:C}),t==="enterprise-os"&&s.jsx(wF,{kind:"enterprise-os",sitePath:N,startPath:C}),t==="ai-platforms"&&s.jsx(A_e,{startPath:C}),t==="operating-model"&&s.jsx(v_e,{sitePath:N,startPath:C}),t==="services"&&s.jsx(C_e,{startPath:C}),t==="resources"&&s.jsx(P_e,{}),t==="getting-started"&&s.jsxs(s.Fragment,{children:[s.jsx(E_e,{sitePath:N,startPath:C}),s.jsx(qN,{formRef:y,formData:i,updateField:E,handleSubmit:_,markFormStarted:A,submitted:o,isSubmitting:u,verificationReset:p,securityReady:w,setSecurityReady:v,startPath:C})]}),t!=="home"&&t!=="getting-started"&&s.jsx(qN,{formRef:y,formData:i,updateField:E,handleSubmit:_,markFormStarted:A,submitted:o,isSubmitting:u,verificationReset:p,securityReady:w,setSecurityReady:v,startPath:C})]}),s.jsx("footer",{className:"border-t border-[#dfd0c4] bg-[#f6f0e8] px-5 py-10 text-[#6d5549] sm:px-6 lg:px-8",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-8 md:grid-cols-[1.2fr_1fr_1fr]",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(vF,{}),s.jsx("span",{className:"text-lg font-bold text-[#2b211d]",children:"Sidekick Genius"})]}),s.jsx("p",{className:"mt-4 max-w-md text-sm leading-6",children:"AI work intelligence platform for teams and larger organizations using approved AI tools."}),s.jsx("p",{className:"mt-4 text-xs leading-5 text-[#8a7366]",children:"Sidekick Genius is operated by RebelHQ Incorporated, 440 N Wolfe Rd, Sunnyvale, CA 94085, United States."})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#2b211d]",children:"Explore"}),s.jsxs("div",{className:"mt-4 grid gap-2 text-sm",children:[s.jsx(xe,{href:N("/team-os"),className:"hover:text-[#2b211d]",children:"Team"}),s.jsx(xe,{href:N("/enterprise-os"),className:"hover:text-[#2b211d]",children:"Enterprise"}),s.jsx(xe,{href:N("/operating-model"),className:"hover:text-[#2b211d]",children:"How it works"}),s.jsx(xe,{href:N("/services"),className:"hover:text-[#2b211d]",children:"Services"}),s.jsx(xe,{href:N("/resources"),className:"hover:text-[#2b211d]",children:"Resources"}),s.jsx(xe,{href:N("/ai-platforms"),className:"hover:text-[#2b211d]",children:"AI Platforms"}),s.jsx(xe,{href:N("/careers"),className:"hover:text-[#2b211d]",children:"Careers"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#2b211d]",children:"Company"}),s.jsxs("div",{className:"mt-4 grid gap-2 text-sm",children:[s.jsx("a",{href:"mailto:[email protected]",className:"hover:text-[#2b211d]",children:"[email protected]"}),s.jsx(xe,{href:N("/privacy-policy"),className:"hover:text-[#2b211d]",children:"Privacy Policy"}),s.jsx(xe,{href:N("/terms-of-service"),className:"hover:text-[#2b211d]",children:"Terms of Service"}),s.jsx("a",{href:"https://pipelinerebel.com",className:"hover:text-[#2b211d]",children:"Pipeline Rebel"})]})]})]})})]})}function TK({sitePath:e}){return s.jsx("section",{id:"starting-point",className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Start here"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Choose the path that matches the problem."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Team and enterprise buyers need different implementation depth. The goal is to reach the right starting point quickly and avoid overbuilding."})]}),s.jsx("div",{className:"mt-10 grid gap-5 lg:grid-cols-2",children:l_e.map(t=>{const r=t.icon;return s.jsx(xe,{href:e(`/${t.key}`),children:s.jsxs("article",{className:"group h-full cursor-pointer rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6 transition hover:border-[#d4836b]/60 hover:bg-white",children:[s.jsx(r,{className:"h-7 w-7 text-[#d4836b]"}),s.jsx("p",{className:"mt-5 text-sm font-bold text-[#a8614f]",children:t.eyebrow}),s.jsx("h3",{className:"mt-3 text-2xl font-bold leading-tight text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6d5549]",children:t.body}),s.jsxs("span",{className:"mt-6 inline-flex items-center gap-2 text-sm font-bold text-[#7b4b3f]",children:[t.cta,s.jsx(ZA,{className:"h-4 w-4 transition group-hover:translate-x-1"})]})]})},t.key)})})]})})}function AK(){return s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Platform depth changes by path"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Same value themes. Different platform depth."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Everyone cares about cost, context, control, memory, performance, and portability. The promise changes depending on whether we are helping one person, one team, or a larger organization."})]}),s.jsx("div",{className:"mt-10 overflow-hidden rounded-lg border border-[#d8c8bb]",children:c_e.map(e=>{const t=e.icon;return s.jsxs("div",{className:"grid border-b border-[#d8c8bb] last:border-b-0 lg:grid-cols-[0.55fr_1fr_1fr]",children:[s.jsxs("div",{className:"flex items-center gap-3 bg-[#fff8f0] p-4",children:[s.jsx(t,{className:"h-5 w-5 text-[#d4836b]"}),s.jsx("span",{className:"font-bold text-[#2b211d]",children:e.name})]}),s.jsx(bF,{title:"Team",body:e.team}),s.jsx(bF,{title:"Enterprise",body:e.enterprise})]},e.name)})})]})}function bF({title:e,body:t}){return s.jsxs("div",{className:"border-t border-[#d8c8bb] bg-[#fffdf9] p-4 lg:border-l lg:border-t-0",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.12em] text-[#a8614f]",children:e}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6d5549]",children:t})]})}function x_e({sitePath:e}){return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#2b211d] py-16 text-[#fff8f0] md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#e7b15e]",children:"Deployment approach"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight md:text-5xl",children:"Start where AI work is already creating rework, risk, cost, or lost intelligence."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#e7d8cb]",children:"We map the work, identify where context is rebuilt or corrected, install the first useful work system, and identify what should carry forward for the user and the business."})]}),s.jsxs(xe,{href:e("/operating-model"),className:"inline-flex items-center gap-2 text-sm font-bold text-[#e7b15e]",children:["See how it works",s.jsx(Ft,{className:"h-4 w-4"})]})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-3",children:u_e.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#6b564d] bg-[#352821] p-6",children:[s.jsx(r,{className:"h-6 w-6 text-[#e7b15e]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#e7d8cb]",children:t.body})]},t.title)})})]})})}
762function y_e({sitePath:e}){const t=[["Pick the work","Find the repeated AI work where quality, rework, or cost already matters."],["Set the rules","Define approved sources, review points, and what can be reused."],["Enable the team","Package the setup into simple workflows people can actually follow."],["Show the evidence","Measure adoption, quality, review burden, cost, and reusable work."]];return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#2b211d] py-12 text-[#fff8f0]",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl items-center gap-8 px-5 sm:px-6 lg:grid-cols-[0.9fr_1.1fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#e7b15e]",children:"How it works"}),s.jsx("h2",{className:"mt-3 text-2xl font-bold leading-tight sm:text-3xl",children:"A shared way to use AI at work."}),s.jsx("p",{className:"mt-4 max-w-2xl text-sm leading-6 text-[#e7d8cb]",children:"Most teams already have AI access. Sidekick Genius helps them use it through approved workflows, shared context, review rules, useful memory, and evidence of value."}),s.jsxs(xe,{href:e("/operating-model"),className:"mt-6 inline-flex items-center gap-2 text-sm font-bold text-[#e7b15e]",children:["See how it works",s.jsx(Ft,{className:"h-4 w-4"})]})]}),s.jsx("div",{className:"rounded-lg border border-[#6b564d] bg-[#352821] p-5",children:s.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:t.map(([r,n],i)=>s.jsxs("div",{className:"rounded-lg border border-[#6b564d] bg-[#2b211d] p-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#d4836b] text-sm font-bold text-[#2b211d]",children:i+1}),s.jsx("p",{className:"text-sm font-bold",children:r})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[#e7d8cb]",children:n})]},r))})})]})})}function v_e({sitePath:e,startPath:t}){return s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#dfd0c4]",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(43,33,29,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,29,0.05) 1px, transparent 1px)",backgroundSize:"54px 54px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto max-w-7xl px-5 py-14 sm:px-6 md:py-20 lg:px-8",children:[s.jsxs("div",{className:"max-w-4xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"How it works"}),s.jsx("h1",{className:"mt-5 text-4xl font-bold leading-[1.04] text-[#2b211d] sm:text-5xl lg:text-7xl",children:"Give teams a shared way to use AI at work."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius helps teams use the AI tools they already have with approved sources, clear review rules, reusable context, practical enablement, and evidence that the work is getting better."}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("button",{type:"button",onClick:()=>t("unspecified","operating-model-hero"),className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#d4836b] px-6 py-3.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761]",children:["Map our AI work",s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsxs(xe,{href:e("/services"),className:"inline-flex items-center justify-center gap-2 rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-6 py-3.5 text-sm font-bold text-[#46342c] transition hover:border-[#b99f8f]",children:["See deployment services",s.jsx(Zo,{className:"h-4 w-4"})]})]})]}),s.jsx("div",{className:"mt-10",children:s.jsx(b_e,{})})]})]}),s.jsx(w_e,{}),s.jsx(CK,{}),s.jsx(PK,{}),s.jsx(j_e,{}),s.jsx(S_e,{}),s.jsx(k_e,{}),s.jsx(N_e,{})]})}function b_e(){const e=[{eyebrow:"Today",title:"AI use is scattered",body:"People use AI in private chats and one-off workflows. Context gets repeated, sources vary, and managers mostly see the output after the fact.",items:["private prompts","repeated context","unclear sources","manual review"]},{eyebrow:"Sidekick Genius sets up",title:"A shared way to work",body:"We map the work, define approved sources, set review rules, package reusable context, and make the first workflows easy for the team to use.",items:["approved sources","workflow cards","review rules","team memory"],highlight:!0},{eyebrow:"After",title:"The work becomes visible",body:"Leaders can see what is being reused, where review is still needed, where cost is rising, and which w
762orkflows are ready to scale.",items:["quality signal","cost visibility","reuse","scale decisions"]}];return s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-5 shadow-[0_30px_80px_rgba(43,33,29,0.12)]",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-[#d8c8bb] pb-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:"Scattered use to managed work"}),s.jsx("p",{className:"mt-1 text-sm font-semibold text-[#6d5549]",children:"A simple path buyers can understand before any enterprise build is discussed."})]}),s.jsx(Zm,{className:"h-6 w-6 shrink-0 text-[#d4836b]"})]}),s.jsx("div",{className:"mt-5 grid gap-4 lg:grid-cols-3",children:e.map((t,r)=>s.jsxs("article",{className:t.highlight?"rounded-lg border border-[#d4836b] bg-[#fff8f0] p-5":"rounded-lg border border-[#d8c8bb] bg-white p-5",children:[s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:t.eyebrow}),s.jsx("span",{className:t.highlight?"flex h-9 w-9 items-center justify-center rounded-lg bg-[#d4836b] text-sm font-bold text-[#2b211d]":"flex h-9 w-9 items-center justify-center rounded-lg bg-[#2b211d] text-sm font-bold text-[#fff8f0]",children:r+1})]}),s.jsx("h2",{className:"mt-5 text-2xl font-bold leading-tight text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6d5549]",children:t.body}),s.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:t.items.map(n=>s.jsx("span",{className:"rounded-full border border-[#d8c8bb] bg-[#fffdf9] px-3 py-1 text-xs font-bold text-[#6d5549]",children:n},n))})]},t.title))}),s.jsxs("div",{className:"mt-4 rounded-lg border border-dashed border-[#c5ad9e] bg-[#fbf7f1] px-4 py-3",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:"Why this matters"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6d5549]",children:"The value comes from fewer repeated prompts, fewer avoidable corrections, clearer source use, better review discipline, and a stronger case for where AI should scale next."})]})]})}function w_e(){const e=[["Choose the work","Pick the workflows where AI already creates rework, review burden, cost, or inconsistent output."],["Set up the rules","Define approved sources, reusable context, review points, and what requires human judgment."],["Enable the team","Package the setup into practical workflows, examples, office hours, and manager rhythm."],["Measure what changed","Track quality, adoption, review burden, repeated work, cost, and what is ready to scale."]];return s.jsxs("section",{className:"mx-auto grid max-w-7xl gap-8 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[0.8fr_1.2fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"How the rollout works"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"A practical rollout that improves the work."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius starts with the work your people already do. The goal is to make AI easier to use well, easier to review, easier to measure, and safer to scale."})]}),s.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:e.map(([t,r],n)=>s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[#fff0e8] text-sm font-bold text-[#a8614f]",children:n+1}),s.jsx("h3",{className:"mt-5 text-xl font-bold text-[#2b211d]",children:t}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:r})]},t))})]})}function CK({active:e}){const t=[{label:"Best fit",team:"One department, function, or team with repeated work that AI can improve now.",enterprise:"Several teams or business units using AI across different tools, data sources, and risk levels."},{label:"What changes",team:"The team gets a lightweight shared setup: workflow guides, approved sources, reusable context, review rules, useful memory, and a practical manager readout.",enterprise:"The business gets a clearer rollout plan across teams, security, approved data, agents, cost, ownership, and reporting."}
762,{label:"Who is involved",team:"Team lead, manager, workflow owner, and light IT or security support when needed.",enterprise:"Business sponsor, IT, security, data owners, finance, enablement, and platform owners."},{label:"Evidence",team:"Show better output quality, fewer repeated prompts, less review burden, stronger adoption, and practical cost signal with a lightweight build.",enterprise:"Show which teams, tools, workflows, agents, controls, and reporting should scale next."},{label:"Choose this when",team:"You need a credible rollout with one team, using shared docs, workspace files, lightweight configuration, and clear operating habits.",enterprise:"You need a company-wide model for AI work, budgets, agents, security, and reporting."}],r=n=>e===n?"border-[#d4836b] bg-[#fff8f0] shadow-[0_16px_44px_rgba(212,131,107,0.16)]":"border-[#d8c8bb] bg-[#fffdf9]";return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Team vs enterprise"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Team is a focused rollout. Enterprise is company-wide control."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"If one team is struggling with repeated prompts, inconsistent outputs, or manager review, start with Team. If AI is spreading across departments, tools, agents, security boundaries, and budgets, choose Enterprise."})]}),s.jsxs("div",{className:"mt-10 grid gap-5 lg:grid-cols-[0.92fr_1.08fr]",children:[s.jsxs("div",{className:`rounded-lg border p-6 ${r("team-os")}`,children:[s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Team path"}),s.jsx("h3",{className:"mt-2 text-2xl font-bold text-[#2b211d]",children:"Improve one team’s AI work."})]}),s.jsx(Qo,{className:"h-7 w-7 text-[#d4836b]"})]}),s.jsx("div",{className:"mt-6 grid gap-3",children:t.map(n=>s.jsxs("div",{className:"rounded-lg border border-[#eaded4] bg-white/70 p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:n.label}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6d5549]",children:n.team})]},n.label))})]}),s.jsxs("div",{className:`rounded-lg border p-6 ${r("enterprise-os")}`,children:[s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Enterprise path"}),s.jsx("h3",{className:"mt-2 text-2xl font-bold text-[#2b211d]",children:"Scale AI across the business."})]}),s.jsx($i,{className:"h-7 w-7 text-[#d4836b]"})]}),s.jsx("div",{className:"mt-6 grid gap-3",children:t.map(n=>s.jsxs("div",{className:"rounded-lg border border-[#eaded4] bg-white/70 p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:n.label}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#6d5549]",children:n.enterprise})]},n.label))})]})]})]})})}function PK(){const e=[{title:"Business teams",body:"Sales, support, operations, leadership, and other business teams usually need better sources, reusable context, review rules, handoffs, and manager visibility.",items:["customer research","summaries","drafts","handoffs","team memory"],icon:Qo},{title:"Engineering teams",body:"Engineering teams need stricter controls because AI can touch code, repos, terminals, tests, tickets, secrets, pull requests, and release paths.",items:["specs","tickets","repo boundaries","CI and tests","release review"],icon:Zo},{title:"Leadership",body:"Leaders need to know which type of work is being improved, what controls apply, what value is visible, and what still needs work before scaling.",items:["quality","risk","cost","adoption","scale decisions"],icon:$i}];return s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-4xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Different work needs different c
762ontrols"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Sales and engineering workflows need different controls."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius starts with the work and then applies the right controls. Business teams need better context, review, handoffs, and visibility. Engineering teams need tighter boundaries around code, tools, tests, secrets, and releases."})]}),s.jsx("div",{className:"mt-10 grid gap-5 lg:grid-cols-3",children:e.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx(r,{className:"h-7 w-7 text-[#d4836b]"}),s.jsx("h3",{className:"mt-5 text-2xl font-bold text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6d5549]",children:t.body}),s.jsx("div",{className:"mt-5 flex flex-wrap gap-2",children:t.items.map(n=>s.jsx("span",{className:"rounded-full border border-[#d8c8bb] bg-[#fff8f0] px-3 py-1 text-xs font-bold text-[#6d5549]",children:n},n))})]},t.title)})})]})}function j_e(){const e=[["Align","Pick the team, outcome, risk boundary, and first evidence point."],["Crawl","Map the work, sources, workflows, prompts, agents, review needs, and visible waste."],["Walk","Configure approved workflows, context, memory rules, review points, and value measurement."],["Run","Scale what works across teams, reporting, cost economics, governance, and custom agent opportunities."]];return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#fff8f0] py-16 md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Engagement path"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Start small enough to show value. Build enough structure to scale it."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius starts with the work and moves toward a repeatable system. Each phase should make the next decision easier and reduce vague AI activity."})]}),s.jsx("div",{className:"mt-10 grid gap-4 lg:grid-cols-4",children:e.map(([t,r],n)=>s.jsxs("article",{className:"relative rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[#2b211d] text-sm font-bold text-[#fff8f0]",children:n+1}),s.jsx(lC,{className:"h-5 w-5 text-[#d4836b]"})]}),s.jsx("h3",{className:"mt-6 text-xl font-bold text-[#2b211d]",children:t}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:r})]},t))})]})})}function S_e(){const e=[{title:"Native platforms own",icon:ac,items:["identity and permissions","native connectors","model and app admin","security logs","source systems"]},{title:"Sidekick Genius adds",icon:Zo,items:["AI work map","approved context","review rules","agent inventory","memory and value measurement"]},{title:"The business sees",icon:$i,items:["clear workflows","measurable adoption","cost signal","governed agents","portable knowledge"]}];return s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsxs("div",{className:"grid gap-8 lg:grid-cols-[0.75fr_1.25fr]",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Use what you already bought"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Work with the platforms your company already uses."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Sidekick Genius works alongside Claude, ChatGPT, Copilot, Google Workspace, Microsoft 365, your CRM, and your security stack. It helps the work around those tools become clearer, safer, more reusable, and easier to measure."})]}),s.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:e.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-5",children:[s.jsx(r,{className:"h-6 w-6 text-[#d4836b]"}),s.jsx("h3",{className:"mt-4 text-lg font-bold text-[#2b211d]",children:t.title}),s.jsx("div",{className:"mt-5 grid gap-2",children:t.items.map(n=>s.jsxs("div",{className:"flex gap-2 rounded-lg bg-[#fff8f0] p-3",children:[s.jsx(Xo,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#7b9c89]"}),s.jsx("span",{className:"text-xs font-semibold leading-5 text-[#6d5549]",children:n})]},n))})]},t.title)})})]})})}function k_e(){const e=[{name:"Cost economics",icon:Qm,body:"Where AI creates value, duplicated work, avoidable rework, or waste."},{name:"Context",icon:eC,body:"What facts, sources, policies, and priorities the work should rely on."},{name:"Control",icon:FB,body:"What needs review, escalation, approval, or a harder boundary."},{name:"Memory",icon:pa,body:"What should stay private, become shared, or be reused safely."},{name:"Performance",icon:tC,body:"Where quality, speed, adoption, and review burden are improving."},{name:"Portability",icon:kv,body:"What should survive tool changes, role changes, and vendor shifts."}];return s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#2b211d] py-16 text-[#fff8f0] md:py-24",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#e7b15e]",children:"Six business lenses"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight md:text-5xl",children:"Leaders need more than usage reports."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#e7d8cb]",children:"The operating model should make the right questions visible: what costs too much, what context is trusted, what needs control, what should be remembered, what performs, and what stays portable."})]}),s.jsx("div",{className:"mt-10 grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#6b564d] bg-[#352821] p-6",children:[s.jsx(r,{className:"h-6 w-6 text-[#e7b15e]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold",children:t.name}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#e7d8cb]",children:t.body})]},t.name)}
762)})]})})}function N_e(){const e=[{title:"Security",icon:Tc,body:"Sensitive work, approval points, policy boundaries, vendor constraints, and review rules have to show up at the workflow level."},{title:"Observability",icon:$i,body:"Leaders need signal across adoption, quality, review burden, agent activity, source use, and value creation across approved tools."},{title:"Cost economics",icon:Qm,body:"The real cost includes licenses, tokens, repeated context work, correction loops, overbuilt automations, and low-value agent runs."}];return s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Controls that wrap the model"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"Security, observability, and cost economics need to be present from the start."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"They are part of how the system earns trust. The work should be safer, easier to inspect, and easier to evaluate as usage expands."})]}),s.jsx("div",{className:"mt-10 grid gap-5 md:grid-cols-3",children:e.map(t=>{const r=t.icon;return s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx(r,{className:"h-7 w-7 text-[#d4836b]"}),s.jsx("h3",{className:"mt-5 text-xl font-bold text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:t.body})]},t.title)})})]})}function T_e({kind:e,changes:t}){const r=e==="team-os",n=r?{eyebrow:"Team setup",title:"A shared workflow for one team",before:["private prompts","repeated context","inconsistent sources","manual review"],after:["approved sources","shared examples","review rules","team memory"],evidence:"The manager can see what improved, what still needs review, and what should be reused."}:{eyebrow:"Enterprise setup",title:"A managed rollout across teams",before:["tool sprawl","unclear policy","unknown agents","cost surprise"],after:["approved rollout map","security boundaries","agent ownership","executive reporting"],evidence:"Leaders can see where AI is working, where risk remains, and where to invest next."};return s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-5 shadow-[0_24px_70px_rgba(43,33,29,0.10)]",children:[s.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-[#d8c8bb] pb-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.16em] text-[#a8614f]",children:n.eyebrow}),s.jsx("h2",{className:"mt-2 text-xl font-bold text-[#2b211d]",children:n.title})]}),r?s.jsx(Qo,{className:"h-7 w-7 text-[#d4836b]"}):s.jsx($i,{className:"h-7 w-7 text-[#d4836b]"})]}),s.jsxs("div",{className:"mt-5 grid gap-4",children:[s.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-white p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:"Before"}),s.jsx("div",{className:"mt-4 grid gap-2",children:n.before.map(i=>s.jsx("div",{className:"rounded-lg bg-[#fbf7f1] px-4 py-3 text-sm font-semibold text-[#6d5549]",children:i},i))})]}),s.jsxs("div",{className:"rounded-lg border border-[#d4836b] bg-[#fff8f0] p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:"With Sidekick Genius"}),s.jsx("div",{className:"mt-4 grid gap-2",children:n.after.map(i=>s.jsxs("div",{className:"flex gap-3 rounded-lg bg-[#fffdf9] px-4 py-3",children:[s.jsx(cs,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#7b9c89]"}),s.jsx("span",{className:"text-sm font-semibold text-[#46342c]",children:i})]},i))})]})]}),s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-white p-4",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"What gets clearer"}),s.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:t.map(i=>s.jsxs("div",{className:"flex gap-3 rounded-lg bg-[#fff8f0] p-3",children:[s.jsx(cs,{className:"mt-0.5 h-5 w-5 shrink-0 text-[#7b9c89]"}),s.jsx("span",{className:"text-sm font-semibold leading-6 text-[#46342c]",children:i})]},i))}),s.jsxs("div",{className:"mt-4 rounded-lg bg-[#2b211d] p-4 text-[#fff8f0]",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#e7b15e]",children:"Evidence"}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#e7d8cb]",children:n.evidence})]})]})]})]})}function wF({kind:e,sitePath:t,startPath:r}){const n={"team-os":{eyebrow:"For teams",h1:"Give one team a shared way to use AI every day.",body:"For teams already using AI and still relying on private prompts, inconsistent sources, manual review, and one-off habits. Sidekick Genius gives the team shared workflows, approved context, review rules, useful memory, and manager visibility.",changes:["Which workflows matter first","Which sources people should trust","What needs review before it is used","What should become shared team memory","Where AI is saving or wasting effort","What the manager can improve next"],cta:"Map my team",builtFor:"This is built for a team leader who wants practical improvement now: better source use, less repeated prompting, clearer review, better handoffs, and visibility into where AI is actually helping.",comesLater:"Enterprise identity design, broad data normalization, cross-team agent governance, comprehensive audit, finance-grade economics, and company-wide operating rollups come later."},"enterprise-os":{eyebrow:"For enterprise",h1:"Scale AI across the business with clearer ownership.",body:"For leaders who need AI to work across teams, approved tools, sources, security boundaries, finance concerns, engineering workflows, agents, review points, and executive reporting.",changes:["Where AI is being used across teams","Which sources and tools are approved","Who owns each agent or recurring workflow","Where security and review rules apply","Where cost, quality, or adoption need attention","What should scale, stop, or be built next"],cta:"Map enterprise platform",builtFor:"This is built for larger organizations where AI adoption has moved beyond experimentation and now needs clearer ownership, stronger controls, better economics, and a credible executive view.",comesLater:"The scope expands only where evidence shows value: more systems, deeper data alignment, broader controls, custom agents, engineering-specific controls, and persistent customer tools."}}[e];return s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#dfd0c4]",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(43,33,29,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,29,0.05) 1px, transparent 1px)",backgroundSize:"54px 54px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl items-center gap-10 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[0.95fr_1.05fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:n.eyebrow}),s.jsx("h1",{className:"mt-5 text-4xl font-bold leading-[1.04] text-[#2b211d] sm:text-5xl lg:text-6xl",children:n.h1}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#6d5549]",children:n.body}),s.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[s.jsxs("button",{type:"button",onClick:()=>r(e,`${e}-hero`),className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#d4836b] px-6 py-3.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761]",children:[n.cta,s.jsx(Ft,{className:"h-4 w-4"})]}),s.jsxs(xe,{href:t("/services"),className:"inline-flex items-center justify-center gap-2 rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-6 py-3.5 text-sm font-bold text-[#46342c] transition hover:border-[#b99f8f]",children:["See services",s.jsx(Zo,{className:"h-4 w-4"})]})]})]}),s.jsx(T_e,{kind:e,changes:n.changes})]})]}),s.jsx(CK,{active:e}),s.jsxs("section",{className:"mx-auto grid max-w-7xl gap-5 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[1fr_1fr] lg:px-8",children:[s.jsx(g_e,{path:e}),s.jsxs("div",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("h2",{className:"text-2xl font-bold text-[#2b211d]",children:"What this is built for"}),s.jsx("p",{className:"mt-4 text-sm leading-6 text-[#6d5549]",children:n.builtFor}),s.jsx("h3",{className:"mt-7 text-xl font-bold text-[#2b211d]",children:"What c
762omes later"}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:n.comesLater})]})]}),s.jsx(PK,{}),s.jsx(AK,{})]})}function A_e({startPath:e}){return s.jsxs(s.Fragment,{children:[s.jsx(Zb,{eyebrow:"AI platforms",title:"Claude, OpenAI/Codex, or Microsoft. The work intelligence stays company-owned.",body:"Sidekick Genius works around the AI tools your people are already allowed to use. Claude, ChatGPT, Codex, Microsoft Copilot, agents, and business systems can all feed the same context, memory, source, review, cost, and operating-visibility layer.",cta:"Talk through our stack",onCta:()=>e("unspecified","sidekick-ai-platforms-hero")}),s.jsx(a_e,{tone:"workspace",title:"Three platform paths. One control model.",intro:"The platform works around the buyer's approved vendors. It gives approved AI work a shared way to use context, remember useful work, respect source and review rules, control cost, and surface what is happening across the business.",claude:{title:"Teams using Claude",body:"Use this route when people rely on Claude for thinking, drafting, analysis, planning, handoffs, reusable skills, projects, and agent-style work.",bullets:["Source rules for projects, skills, memory, and shared context","Review boundaries for risky drafts, decisions, and handoffs","Cost-aware prompts, recurring tasks, and usage habits"]},openai:{title:"Teams using OpenAI and Codex",body:"Use this route when ChatGPT Business, ChatGPT Enterprise, Codex, or OpenAI-backed agents are approved work surfaces for analysis, drafting, implementation, research, or repeatable tasks.",bullets:["Company-owned context and source rules for ChatGPT work, Codex tasks, and OpenAI-backed agents","Review gates for analysis, generated work, customer-facing output, and implementation changes","Quality, cost, and adoption signal across prompts, tasks, model usage, and reusable work patterns"]},microsoft:{title:"Microsoft-governed teams",body:"Use this route when the work surface is Microsoft 365, Copilot, Agent 365, Copilot Studio, Teams, Outlook, Graph, Entra, Purview, Defender, Intune, Power Platform, or a Microsoft-governed frontier rollout.",bullets:["Microsoft 365 Copilot, Work IQ, Frontier, and related agentic tooling","Agent 365, Copilot Studio, Agent Store, and Copilot Control System","Business context, review, reporting, and controls across inbox, calendar, docs, Teams, and approved systems"]}}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"max-w-3xl",children:[s.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#a8614f]",children:"What Sidekick Genius owns"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight text-[#2b211d] md:text-5xl",children:"The logo is only the surface. The value comes from the controls around the work."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#6d5549]",children:"Each AI platform has different strengths and admin models. Sidekick Genius keeps the business-level intelligence consistent: what context should be trusted, what work should be remembered, what needs review, what costs too much, and what should roll up for leaders."})]}),s.jsx("div",{className:"mt-10 grid gap-5 md:grid-cols-3",children:[["Context and source rules","The same customer facts, product rules, policy boundaries, and live business context can be applied across Claude, OpenAI/Codex, Microsoft, and approved business apps."],["Review and cost controls","Risky work can trigger human review, stale context warnings, escalation paths, and cost checks before the business pays for more low-value AI output."],["Memory and rollup","Useful corrections, decisions, reusable patterns, agent activity, and operating signal can survive the chat and become visible to the right team or leader."]].map(([t,r])=>s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("h2",{className:"text-xl font-bold text-[#2b211d]",children:t}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:r})]},t))})]})]})}function C_e({startPath:e}){const t=[["Platform mapping","Map where AI is already being used, what outputs vary, what needs review, what agents exist, and where cost or rework is rising."],["Platform evidence","Install a scoped evidence layer for a team or enterprise environment with the right depth for the buyer path."],["Control and memory design","Define what AI can use, remember, draft, cite, escalate, update, or leave for human judgment."],["Deployment implementation","Implement around approved AI surfaces, including Claude, Microsoft-governed teams, ChatGPT, Codex, agents, and future approved tools."],["Enablement","Make the platform useful for normal users so controls improve work and reduce administrative overhead."],["Managed 
762improvement","Maintain source rules, memory, review gates, cost patterns, agent inventory, rollout health, digital-worker candidates, and reporting as the business changes."]];return s.jsxs(s.Fragment,{children:[s.jsx(Zb,{eyebrow:"Platform deployment services",title:"Sidekick Genius is a product platform with implementation support.",body:"We map current AI-assisted work, install the first work system, connect approved AI and business systems, train the team, and keep improving memory, controls, cost, agents, visibility, and digital-worker readiness.",cta:"Talk through deployment",onCta:()=>e("unspecified","services-hero")}),s.jsx("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:t.map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx(cs,{className:"h-6 w-6 text-[#7b9c89]"}),s.jsx("h2",{className:"mt-5 text-xl font-bold text-[#2b211d]",children:r}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:n})]},r))})}),s.jsx("section",{className:"border-y border-[#dfd0c4] bg-[#2b211d] py-16 text-[#fff8f0] md:py-24",children:s.jsx("div",{className:"mx-auto grid max-w-7xl gap-6 px-5 sm:px-6 lg:grid-cols-3 lg:px-8",children:[["Claude route","For teams using Claude for thinking, planning, writing, analysis, reusable skills, projects, and recurring work."],["Microsoft route","For teams where Microsoft 365, Copilot, Agent 365, Copilot Studio, Outlook, Teams, Graph, Entra, Purview, Defender, Intune, or Power Platform are the natural work surface."],["Cost focus","Better platform controls reduce repeated setup, oversized prompts, stale context, avoidable rework, review drag, and low-value agent runs."]].map(([r,n])=>s.jsxs("article",{className:"rounded-lg border border-[#6b564d] bg-[#352821] p-6",children:[s.jsx("h2",{className:"text-xl font-bold",children:r}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#e7d8cb]",children:n})]},r))})})]})}function P_e(){const e=F9("sidekick-genius").filter(t=>t.canonicalSite==="sidekick-genius"||t.targetSites.includes("sidekick-genius"));return s.jsxs(s.Fragment,{children:[s.jsx(Zb,{eyebrow:"Resources",title:"Practical resources for controlling AI work.",body:"Resources focus on the practical issues teams are already facing: repeated context, inconsistent outputs, hallucinations, correction work, agent sprawl, cost, adoption, memory, and business visibility.",cta:"Browse resources",onCta:()=>{var t;(t=document.getElementById("sidekick-resources-list"))==null||t.scrollIntoView({behavior:"smooth",block:"start"})}}),s.jsx("section",{id:"sidekick-resources-list",className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:s.jsx("div",{className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:e.map(t=>s.jsxs("article",{className:"rounded-lg border border-[#d8c8bb] bg-[#fffdf9] p-6",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#a8614f]",children:t.type}),s.jsx("h2",{className:"mt-4 text-xl font-bold text-[#2b211d]",children:t.title}),s.jsx("p",{className:"mt-3 text-sm leading-6 text-[#6d5549]",children:t.excerpt})]},t.id))})})]})}function E_e({sitePath:e,startPath:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Zb,{eyebrow:"Get started",title:"Start where AI is creating rework, risk, or cost.",body:"Choose the path that matches your current situation. The point is to validate the smallest useful work system before adding more scope.",cta:"Start the conversation",onCta:()=>t("unspecified","getting-started-hero")}),s.jsx(TK,{sitePath:e})]})}function Zb({eyebrow:e,title:t,body:r,cta:n,onCta:i}){return s.jsxs("section",{className:"relative overflow-hidden border-b border-[#dfd0c4]",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(43,33,29,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,29,0.05) 1px, transparent 1px)",backgroundSize:"54px 54px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto max-w-5xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:e}),s.jsx("h1",{className:"mt-5 text-4xl font-bold leading-[1.04] text-[#2b211d] sm:text-5xl lg:text-6xl",children:t}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-8 text-[#6d5549]",children:r}
762),s.jsxs("button",{type:"button",onClick:i,className:"mt-8 inline-flex items-center justify-center gap-2 rounded-lg bg-[#d4836b] px-6 py-3.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761]",children:[n,s.jsx(Ft,{className:"h-4 w-4"})]})]})]})}function qN({formRef:e,formData:t,updateField:r,handleSubmit:n,markFormStarted:i,submitted:a,isSubmitting:o,verificationReset:l,securityReady:u,setSecurityReady:d,startPath:m}){return s.jsx("section",{ref:e,className:"border-t border-[#dfd0c4] bg-[#2b211d] py-16 text-[#fff8f0] md:py-24",children:s.jsxs("div",{className:"mx-auto grid max-w-7xl gap-10 px-5 sm:px-6 lg:grid-cols-[0.9fr_1.1fr] lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#e7b15e]",children:"Get started"}),s.jsx("h2",{className:"mt-4 text-3xl font-bold leading-tight md:text-5xl",children:"Tell us where AI is creating rework, risk, or cost."}),s.jsx("p",{className:"mt-5 text-lg leading-8 text-[#e7d8cb]",children:"We will route you to the right first path: team platform or broader enterprise AI work intelligence."}),s.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:["team-os","enterprise-os"].map(h=>s.jsx("button",{type:"button",onClick:()=>m(h,"form-shortcut"),className:"rounded-full border border-[#6b564d] bg-[#352821] px-4 py-2 text-sm font-bold text-[#e7d8cb] transition hover:border-[#d4836b]/70 hover:text-white",children:NK[h]},h))})]}),s.jsx("div",{className:"rounded-lg border border-[#6b564d] bg-[#fff8f0] p-5 text-[#2b211d] sm:p-7",children:a?s.jsxs("div",{className:"py-10 text-center",children:[s.jsx("div",{className:"mx-auto flex h-14 w-14 items-center justify-center rounded-lg bg-[#dfeddb]",children:s.jsx(Xo,{className:"h-7 w-7 text-[#3e5545]"})}),s.jsx("h3",{className:"mt-6 text-2xl font-bold text-[#2b211d]",children:"Request received."}),s.jsx("p",{className:"mx-auto mt-3 max-w-md text-sm leading-6 text-[#6d5549]",children:"Latif will review what you shared and come back with the cleanest first Sidekick Genius platform path."})]}):s.jsxs("form",{onSubmit:n,onFocus:i,className:"space-y-5",children:[s.jsx("input",{type:"text",name:"_companyWebsite",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute left-[-10000px] h-px w-px overflow-hidden"}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(Gs,{label:"First name",children:s.jsx("input",{className:Hs,value:t.firstName,onChange:h=>r("firstName",h.target.value),required:!0})}),s.jsx(Gs,{label:"Last name",children:s.jsx("input",{className:Hs,value:t.lastName,onChange:h=>r("lastName",h.target.value),required:!0})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(Gs,{label:"Work email",children:s.jsx("input",{className:Hs,type:"email",value:t.email,onChange:h=>r("email",h.target.value),required:!0})}),s.jsx(Gs,{label:"Company",children:s.jsx("input",{className:Hs,value:t.company,onChange:h=>r("company",h.target.value),required:!0})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(Gs,{label:"Role",children:s.jsx("input",{className:Hs,value:t.role,onChange:h=>r("role",h.target.value),placeholder:"COO, RevOps, AI lead..."})}),s.jsx(Gs,{label:"Team size",children:s.jsxs("select",{className:Hs,value:t.teamSize,onChange:h=>r("teamSize",h.target.value),children:[s.jsx("option",{value:"",children:"Select one"}),s.jsx("option",{value:"1-10",children:"1-10"}),s.jsx("option",{value:"11-50",children:"11-50"}),s.jsx("option",{value:"51-200",children:"51-200"}),s.jsx("option",{value:"201+",children:"201+"})]})})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsx(Gs,{label:"I'm looking for help with",children:s.jsxs("select",{className:Hs,value:t.lookingFor,onChange:h=>r("lookingFor",h.target.value),children:[s.jsx("option",{value:"team-os",children:"My team platform"}),s.jsx("option",{value:"enterprise-os",children:"Enterprise AI work platform"}),s.jsx("option",{value:"unspecified",children:"Not sure yet"})]})}),s.jsx(Gs,{label:"AI setup today",children:s.jsxs("select",{className:Hs,value:t.claudeUsage,onChange:h=>r("claudeUsage",h.target.value),children:[s.jsx("option",{value:"",children:"Select one"}),s.jsx("option",{value:"Early pilot / small group",children:"Early pilot / small group"}),s.jsx("option",{value:"Claude",children:"Claude"}),s.jsx("option",{value:"Microsoft",children:"Microsoft"}),s.jsx("option",{value:"OpenAI",children:"OpenAI / ChatGPT / Codex"}),s.jsx("option",{value:"Mixed",children:"Mixed approved AI tools"}),s.jsx("option",{value:"Enterprise deployment",children:"Enterprise deployment"}),s.jsx("option",{value:"Planning rollout",children:"Planning rollout"})]})})]}),s.jsx(Gs,{label:"First priority",children:s.jsxs("select",{className:Hs,value:t.priority,onChange:h=>r("priority",h.target.value),children:[s.jsx("option",{value:"",children:"Select one"}),s.jsx("option",{value:"Repeated context",children:"Repeated context"}),s.jsx("option",{value:"Inconsistent output",children:"Inconsistent output"}),s.jsx("option",{value:"Correction and review burden",children:"Correction and review burden"}),s.jsx("option",{value:"Cost and low-value usage",children:"Cost and low-value usage"}),s.jsx("option",{value:"Agent sprawl",children:"Agent sprawl"}),s.jsx("option",{value:"Risk and source control",children:"Risk and source control"}),s.jsx("option",{value:"Business visibility",children:"Business visibility"})]})}),s.jsx(Gs,{label:"Where is AI getting messy today?",children:s.jsx("textarea",{className:`${Hs}
762 min-h-24 resize-y`,value:t.rollupGoal,onChange:h=>r("rollupGoal",h.target.value),placeholder:"Repeated prompts, hallucinations, inconsistent outputs, private chats, review burden, agent sprawl, rising cost, low adoption, unclear ROI, or leaders missing useful signal."})}),s.jsx(Gs,{label:"Anything else worth knowing?",children:s.jsx("textarea",{className:`${Hs} min-h-24 resize-y`,value:t.message,onChange:h=>r("message",h.target.value),placeholder:"Current AI tools, team size, business systems, rollout timing, or the first problem you want under control."})}),s.jsx(bK,{formId:"sidekick-genius-proof",resetSignal:l,onSubmissionReady:d}),s.jsxs("button",{type:"submit",disabled:o||!u,className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-[#d4836b] px-6 py-3.5 text-sm font-bold text-[#2b211d] transition hover:bg-[#c97761] disabled:cursor-not-allowed disabled:opacity-60",children:[o?"Sending...":u?"Send request":"Preparing security...",s.jsx(Ft,{className:"h-4 w-4"})]})]})})]})})}const Hs="mt-2 w-full rounded-lg border border-[#d8c8bb] bg-[#fffdf9] px-4 py-3 text-sm text-[#2b211d] outline-none transition focus:border-[#d4836b] focus:ring-2 focus:ring-[#d4836b]/20";function Gs({label:e,children:t}){return s.jsxs("label",{className:"block text-sm font-bold text-[#46342c]",children:[e,t]})}const __e=[{family:"Client delivery",title:"Client Engagement & Delivery Lead",summary:"Own the client relationship, engagement mandate and delivery system from agreed responsibility through accepted results.",salary:"$135,000–$175,000 USD",contract:"$75–$115 USD/hour",responsibilities:["Establish priorities, decision rights, responsibilities and operating cadence.","Maintain the working relationship with executives, process owners and users.","Translate business priorities into clear work for architects and engineers.","Keep scope, dependencies, risks, decisions and acceptance criteria visible.","Drive adoption, handover and evidence that the resulting system is operating."],profile:"Senior consulting, transformation, delivery or operating leadership experience. You can work credibly with executives and technical teams, bring structure without bureaucracy, and remain accountable for forward motion rather than activity."},{family:"Microsoft work systems",title:"Forward-Deployed AI Workflow Architect",specialization:"Microsoft",summary:"Turn Microsoft 365 and Microsoft’s AI environment into a working operating layer around the people, information and decisions inside a client organization.",salary:"$145,000–$185,000 USD",contract:"$85–$130 USD/hour",responsibilities:["Map how individuals and teams work, including decisions, exceptions and handoffs.","Configure Microsoft 365, Copilot and related AI capabilities around real roles and responsibilities.","Design organizational, team and user context, knowledge boundaries, skills and repeatable workflows.","Build appropriate native agents, low-code automation and connections to approved information.","Train users, observe real use and specify where custom agent engineering is required."],profile:"Deep Microsoft platform fluency combined with operating judgment. You understand Microsoft 365 administration, identity and information boundaries, but your work begins with how the business operates—not with a product demonstration."},{family:"Frontier AI work systems",title:"Forward-Deployed AI Workflow Architect",specialization:"Claude & OpenAI",summary:"Redesign how teams work with Claude, ChatGPT and related agentic tools, then configure the context, knowledge, skills and controls that make those workflows dependable.",salary:"$145,000–$185,000 USD",contract:"$85–$130 USD/hour",responsibilities:["Discover the work beneath the process diagram: judgment, information, exceptions and approvals.","Design human-and-agent workflows with explicit roles, context, evidence and review boundaries.","Configure Claude and OpenAI organizational environments, projects, skills and reusable methods.","Connect approved tools and information sources through native capabilities and MCP where appropriate.","Work alongside users until the new method is adopted, measured and ready to hand over."],profile:"Experience changing how knowledge work operates, supported by strong hands-on ability with Claude, ChatGPT and agentic tooling. This is not a prompt-writing or classroom-training position. You must make the resulting system work with real users."},{family:"Applied AI engineering",title:"Forward-Deployed AI Engineer",specialization:"Agents & Applied AI",summary:"Build the custom agents, applications and production AI systems required when configured platforms and native capabilities need to go further.",salary:"$155,000–$200,000 USD",contract:"$100–$150 USD/hour",responsibilities:["Design and build custom agents, tools, services, APIs and systems integrations.","Implement orchestration, retrieval, structured context, memory and governed data flows.","Choose and integrate models without making the architecture dependent on one provider.","Own evaluation, testing, observability, permissions, failure handling and production reliability.","Turn useful client-specific learning into secure, reusable engineering patterns."],profile:"A senior software or AI engineer who has shipped consequential systems into production. You are comfortable with modern model APIs, agent frameworks, cloud infrastru
762cture and difficult enterprise integration—and equally comfortable working directly with users."}];function O_e(){return s.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[#2b211d] text-[#d4836b]",children:s.jsx(Ra,{className:"h-5 w-5"})})}function jF(){const[e]=Pn(),r=(e.startsWith("/sidekick-genius")?"/sidekick-genius":"")||"/";return s.jsxs("div",{className:"min-h-screen bg-[#f6f0e8] text-[#2b211d]",children:[s.jsx(Lr,{title:"Careers | Sidekick Genius",description:"Join the RebelHQ team behind Sidekick Genius, Joan and Joans. Full-time and contract opportunities in client delivery, AI workflow architecture and applied AI engineering.",keywords:"AI careers, forward deployed AI engineer, AI workflow architect, Microsoft AI jobs, Claude jobs, OpenAI jobs",canonicalUrl:"https://sidekickgenius.com/careers",ogImage:"/sidekick-genius-social-preview.svg"}),s.jsx("header",{className:"sticky top-0 z-40 border-b border-[#dfd0c4] bg-[#f6f0e8]/95 backdrop-blur",children:s.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-5 py-4 sm:px-6 lg:px-8",children:[s.jsxs(xe,{href:r,className:"flex items-center gap-3",children:[s.jsx(O_e,{}),s.jsx("span",{className:"text-lg font-bold",children:"Sidekick Genius"})]}),s.jsxs("a",{href:"mailto:[email protected]?subject=Working%20with%20RebelHQ",className:"inline-flex min-h-11 items-center gap-2 rounded-lg border border-[#b99f8f] bg-[#fffdf9] px-4 text-sm font-bold",children:["Contact the team ",s.jsx(Ft,{className:"h-4 w-4"})]})]})}),s.jsxs("main",{children:[s.jsxs("section",{className:"relative overflow-hidden border-b border-[#dfd0c4]",children:[s.jsx("div",{className:"absolute inset-0 opacity-70",style:{backgroundImage:"linear-gradient(rgba(43,33,29,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(43,33,29,.055) 1px,transparent 1px)",backgroundSize:"54px 54px"},"aria-hidden":"true"}),s.jsxs("div",{className:"relative mx-auto grid max-w-7xl gap-12 px-5 py-16 sm:px-6 md:py-24 lg:grid-cols-[1.2fr_.8fr] lg:items-end lg:px-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Careers at RebelHQ"}),s.jsx("h1",{className:"mt-5 text-5xl font-bold leading-[1.02] tracking-[-.05em] sm:text-6xl lg:text-7xl",children:"Build the systems that make AI useful at work."})]}),s.jsx("div",{className:"border-l-2 border-[#d4836b] pl-6",children:s.jsx("p",{className:"text-lg leading-8 text-[#6d5549]",children:"These roles work across Sidekick Genius, Joan and the specialist Joans practice. We configure the operating environment around real teams and build the custom agents required when native platforms need to go further."})})]})]}),s.jsx("section",{className:"border-b border-[#dfd0c4] bg-[#fff8f0]",children:s.jsx("div",{className:"mx-auto grid max-w-7xl divide-y divide-[#dfd0c4] px-5 sm:px-6 md:grid-cols-3 md:divide-x md:divide-y-0 lg:px-8",children:[["Location","United States · Remote","Client travel when required"],["Engagement","Full-time or contract","Both paths are open for every role"],["Compensation","Published below","Offer depends on experience, location, scope and structure"]].map(([n,i,a])=>s.jsxs("div",{className:"py-7 md:px-7 md:first:pl-0",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[.14em] text-[#a8614f]",children:n}),s.jsx("p",{className:"mt-3 text-lg font-bold",children:i}),s.jsx("p",{className:"mt-2 text-sm leading-6 text-[#8a7366]",children:a})]},n))})}),s.jsxs("section",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsxs("div",{className:"grid gap-8 lg:grid-cols-[1.1fr_.9fr] lg:items-end",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-bold text-[#a8614f]",children:"Open roles"}),s.jsx("h2",{className:"mt-4 text-4xl font-bold tracking-[-.04em] sm:text-5xl",children:"Four accountabilities. One delivery system."})]}),s.jsx("p",{className:"text-lg leading-8 text-[#6d5549]",children:"The engagement lead owns the client result. Workflow architects redesign and configure how work operates. The AI engineer builds the custom production systems."})]}),s.jsx("div",{className:"mt-12 space-y-6",children:__e.map((n,i)=>{const a=encodeURIComponent(`Application — ${n.title}${"specialization"in n?` — ${n.specialization}`:""}`);return s.jsxs("article",{className:"overflow-hidden rounded-lg border border-[#d8c8bb] bg-[#fffdf9]",children:[s.jsxs("header",{className:"grid gap-7 border-b border-[#eaded4] p-6 sm:p-8 lg:grid-cols-[1.1fr_.9fr]",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-xs font-bold uppercase tracking-[.14em] text-[#a8614f]",children:[String(i+1).padStart(2,"0")," / ",n.family]}),s.jsxs("h2",{className:"mt-5 text-3xl font-bold tracking-[-.035em] sm:text-4xl",children:[n.title,"specialization"in n?s.jsx("span",{className:"mt-3 block text-sm uppercase tracking-[.14em] text-[#a8614f]",children:n.specialization}):null]})]}),s.jsx("p",{className:"self-end text-base leading-7 text-[#6d5549]",children:n.summary})]}),s.jsxs("div",{className:"grid lg:grid-cols-[1.1fr_.9fr]",children:[s.jsxs("section",{className:"border-b border-[#eaded4] p-6 sm:p-8 lg:border-b-0 lg:border-r",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-[.14em] text-[#a8614f]",children:"What you will own"}
762),s.jsx("ul",{className:"mt-5 divide-y divide-[#eaded4] border-y border-[#eaded4]",children:n.responsibilities.map(o=>s.jsx("li",{className:"py-4 text-sm leading-7 text-[#46342c]",children:o},o))})]}),s.jsxs("section",{className:"p-6 sm:p-8",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-[.14em] text-[#a8614f]",children:"What we are looking for"}),s.jsx("p",{className:"mt-5 text-sm leading-7 text-[#6d5549]",children:n.profile})]})]}),s.jsxs("footer",{className:"grid border-t border-[#eaded4] md:grid-cols-[1fr_1fr_auto]",children:[s.jsxs("div",{className:"border-b border-[#eaded4] p-6 md:border-b-0 md:border-r",children:[s.jsx("p",{className:"text-xs font-bold text-[#8a7366]",children:"Full-time base salary"}),s.jsx("p",{className:"mt-2 font-bold",children:n.salary})]}),s.jsxs("div",{className:"border-b border-[#eaded4] p-6 md:border-b-0 md:border-r",children:[s.jsx("p",{className:"text-xs font-bold text-[#8a7366]",children:"Contract range"}),s.jsx("p",{className:"mt-2 font-bold",children:n.contract})]}),s.jsxs("a",{href:`mailto:[email protected]?subject=${a}`,className:"inline-flex min-h-24 items-center gap-3 bg-[#d4836b] px-7 font-bold",children:["Apply for this role ",s.jsx(Ft,{className:"h-4 w-4"})]})]})]},`${n.title}-${"specialization"in n?n.specialization:""}`)})})]}),s.jsx("section",{className:"bg-[#2b211d] text-[#fff8f0]",children:s.jsxs("div",{className:"mx-auto max-w-7xl px-5 py-16 sm:px-6 md:py-24 lg:px-8",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-[.14em] text-[#e7b15e]",children:"How to apply"}),s.jsx("h2",{className:"mt-5 max-w-4xl text-4xl font-bold tracking-[-.04em] sm:text-6xl",children:"Show us work that reached the real world."}),s.jsx("p",{className:"mt-6 max-w-3xl text-lg leading-8 text-[#e7d8cb]",children:"Email a resume or LinkedIn profile and a short note describing a system, workflow or client engagement you personally helped put into operation. Tell us which role fits and whether you are interested in full-time employment, contract work or either."}),s.jsxs("a",{href:"mailto:[email protected]?subject=Working%20with%20RebelHQ",className:"mt-8 inline-flex min-h-12 items-center gap-3 rounded-lg border border-[#6b564d] px-5 font-bold",children:["Email [email protected] ",s.jsx(Ft,{className:"h-4 w-4"})]})]})})]})]})}const I_e=[{icon:nJ,title:"Remembers",text:"Keeps continuity across accounts, deals, workflows, commitments, and operating context."},{icon:is,title:"Notices",text:"Surfaces account, pipeline, meeting, activity, and risk signals that need attention."},{icon:pa,title:"Works with context",text:"Uses the right business context and memory instead of starting each task from a blank model window."},{icon:tJ,title:"Asks when needed",text:"Escalates judgment, approvals, sensitive actions, and unclear instructions to humans by policy."}],FA=()=>(S.useEffect(()=>{document.title="Joan | Pipeline Rebel",window.scrollTo(0,0)},[]),s.jsxs("div",{className:"pt-20",children:[s.jsx(Lr,{title:"Joan | Digital Worker Layer",description:"Joan is Pipeline Rebel's digital worker layer for governed AI work across GTM workflows.",keywords:"Joan, digital workers, GTM digital work, AI workers, governed AI workers",canonicalUrl:"https://pipelinerebel.com/joan",ogImage:Pt.images.socialPreview}),s.jsx("section",{className:"relative overflow-hidden py-20 md:py-28",children:s.jsxs("div",{className:"pr-container grid items-center gap-12 lg:grid-cols-[0.95fr_1.05fr]",children:[s.jsxs("div",{children:[s.jsx(Cn,{children:"Joan"}),s.jsx("h1",{className:"mt-5 text-4xl font-semibold leading-tight text-white md:text-6xl",children:"Digital workers for repeatable GTM work, not another chatbot."}),s.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-[var(--pr-muted)] md:text-xl",children:"Joan is the layer where governed digital workers perform repeatable work with memory, continuity, controls, and human oversight: prep, research, follow-up, routing, review, and recurring operating tasks."}),s.jsxs("div",{className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[s.jsx(Vo,{href:"/contact",children:"Book a Conversation"}),s.jsx(TC,{href:"/software",children:"Back to Software"})]})]}),s.jsx(Wre,{src:Pt.videos.joanMemory,poster:Pt.images.joanBanner,label:"Joan memory preview"})]})}),s.jsx(Ar,{eyebrow:"Digital Work",title:"Joan does not replace the team. Joan takes ownership of repeatable work under rules.",intro:"The goal is a governed worker that can remember, notice, route, draft, update, and escalate under clear rules, while the team keeps judgment and accountability.",children:s.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:I_e.map(e=>{const t=e.icon;return s.jsxs("article",{className:"pr-card p-6",children:[s.jsx(t,{className:"h-6 w-6 text-[var(--pr-cyan)]"}),s.jsx("h2",{className:"mt-5 text-xl font-semibold text-white",children:e.title}),s.jsx("p",{className:"mt-3 text-sm leading-relaxed text-[var(--pr-muted)]",children:e.text})]},e.title)})})}),s.jsx(Ar,{className:"border-y border-white/10 bg-white/[0.02]",children:s.jsxs("div",{className:"grid items-center gap-10 lg:grid-cols-2",children:[s.jsx(lc,{src:Pt.images.insideOperatingSystem,alt:"Joan inside the operating system",caption:"Joan works best when repeatable work has clear context, memory, approval rules, and human escalation paths."}),s.jsxs("div",{children:[s.jsx(Cn,{children:"Relationship to the work"}),s.jsx("h2",{className:"mt-4 text-3xl font-semibold text-white md:text-5xl",children:"Joan works inside a defined operating rhythm."}),s.jsx("p",{className:"mt-5 text-lg leading-relaxed text-[var(--pr-muted)]",children:"Joan is the digital worker layer for repeatable business work. It needs clear inputs, rules, review boundaries, memory, and escalation paths so the work can run without losing human judgment."}),s.jsx("div",{className:"mt-7 space-y-4",children:["Governed worker identity","Persistent work memory","Human approval policy","Measurable contribution and audit trails"].map(e=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx(cs,{className:"mt-1 h-5 w-5 shrink-0 text-[var(--pr-green)]"}),s.jsx("p",{className:"text-sm leading-relaxed text-[var(--pr-muted)]",children:e})]},e))})]})]})})]})),WN=({size:e=20})=>s.jsxs("svg",{width:e,height:e,viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"0",y:"0",width:"11",height:"11",fill:"#f25022"}),s.jsx("rect",{x:"12",y:"0",width:"11",height:"11",fill:"#7fba00"}),s.jsx("rect",{x:"0",y:"12",width:"11",height:"11",fill:"#00a4ef"}),s.jsx("rect",{x:"12",y:"12",width:"11",height:"11",fill:"#ffb900"})]}),Wr="#0078D4",bh=({children:e,alt:t=!1})=>s.jsx("section",{className:`py-20 px-6 ${t?"bg-white/[0.02]":""}`,children:s.jsx("div",{className:"max-w-5xl mx-auto",children:e})}),ox=({children:e})=>s.jsx("p",{className:"text-xs font-mono uppercase tracking-widest mb-3",style:{color:Wr},children:e}),lx=({children:e,className:t=""})=>s.jsx("div",{className:`rounded-xl p-6 ${t}`,style:{background:"rgba(0,120,212,0.05)",border:"1px solid rgba(0,120,212,0.15)"},children:e}),R_e=()=>s.jsx("span",{className:"mt-1.5 w-1.5 h-1.5 rounded-full shrink-0 inline-block",style:{background:Wr}}),cx=({children:e})=>s.jsxs("li",{className:"flex items-start gap-3 text-gray-300 text-sm",children:[s.jsx(ts,{className:"w-4 h-4 shrink-0 mt-0.5",style:{color:Wr}}),s.jsx("span",{children:e})]});function M_e(){return s.jsxs(s.Fragment,{children:[s.jsx(Lr,{title:"Built on Azure | Microsoft Founders Hub | Pipeline Rebel",description:"Joan 
762is a Microsoft Founders Hub startup at the highest tier. Built entirely on Azure — Container Apps, Azure OpenAI, AI Search, and enterprise-grade security controls.",keywords:"Azure architecture, Microsoft Founders Hub, Joan, enterprise security, Entra ID, governed AI workers",canonicalUrl:"https://pipelinerebel.com/built-on-azure"}),s.jsx("section",{className:"pt-32 pb-20 px-6",children:s.jsx("div",{className:"max-w-5xl mx-auto",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[s.jsxs("div",{className:"inline-flex items-center gap-3 px-5 py-2.5 rounded-full mb-8",style:{background:"rgba(0,120,212,0.1)",border:"1px solid rgba(0,120,212,0.3)"},children:[s.jsx(WN,{size:18}),s.jsx("span",{className:"text-sm font-semibold",style:{color:Wr},children:"Microsoft for Startups Founders Hub — Investor Tier"})]}),s.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-6 leading-tight",children:["Built on Azure.",s.jsx("br",{}),s.jsx("span",{style:{color:Wr},children:"Microsoft-first."})]}),s.jsx("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto leading-relaxed",children:"We chose the Microsoft Cloud because our customers need to trust the infrastructure their sales data lives on. Enterprise-grade security, compliance controls, and the reliability of Azure — built in from day one."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 mt-10",children:[s.jsxs("a",{href:"https://foundershub.startups.microsoft.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-semibold transition-opacity hover:opacity-80",style:{background:Wr,color:"#fff"},children:[s.jsx(WN,{size:16}),"Microsoft Founders Hub",s.jsx(c2,{className:"w-3.5 h-3.5"})]}),s.jsx(xe,{href:"/get-started",children:s.jsxs("span",{className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-semibold transition-opacity hover:opacity-80 cursor-pointer",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",color:"#fff"},children:["Get Started",s.jsx(c2,{className:"w-3.5 h-3.5"})]})})]})]})})}),s.jsxs(bh,{alt:!0,children:[s.jsx(ox,{children:"The Partnership"}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-3xl font-bold text-white mb-4",children:"Why we chose Microsoft"}),s.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"When your sales data — deal notes, call transcripts, account intelligence — lives in a system, that system needs to earn trust. We chose Azure because it's the infrastructure your enterprise IT and security teams already know, audit, and approve."}),s.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"Microsoft for Startups Founders Hub is Microsoft's flagship startup program. Being appointed to the highest tier means Microsoft has reviewed the architecture and backed it with full program support — which gives our customers a direct line of sight into the infrastructure decisions behind the product."}),s.jsx("p",{className:"text-gray-400 leading-relaxed",children:"Every component of Joan — compute, AI inference, storage, observability — runs on the Microsoft Cloud. That's not a marketing choice. It's how we give enterprise buyers confidence in what they're deploying."})]}),s.jsx("div",{className:"space-y-3",children:[{label:"Program",value:"Microsoft for Startups Founders Hub"},{label:"Tier",value:"Highest tier — appointed on product merit"},{label:"Cloud",value:"100% Azure"},{label:"Why",value:"Enterprise trust, compliance, and reliability"},{label:"Commitment",value:"Microsoft-first architecture"}].map(({label:e,value:t})=>s.jsxs("div",{className:"flex gap-3 items-start p-3 rounded-lg",style:{background:"rgba(0,120,212,0.05)",border:"1px solid rgba(0,120,212,0.12)"},children:[s.jsx("span",{className:"text-xs font-mono text-gray-500 w-28 shrink-0 mt-0.5 uppercase tracking-wide",children:e}),s.jsx("span",{className:"text-sm text-white font-medium",children:t})]},e))})]})]}),s.jsxs(bh,{children:[s.jsx(ox,{children:"Azure Architecture"}),s.jsxs("div",{className:"mb-10",children:[s.jsx("h2",{className:"text-3xl font-bold text-white mb-3",children:"How Joan is built"}),s.jsx("p",{className:"text-gray-400 max-w-2xl",children:"Every component maps to a specific Azure service chosen for resilience, scalability, and security — not convenience."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-5 mb-10",children:[s.jsxs(lx,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(0,120,212,0.15)"},children:s.jsx(cC,{className:"w-4 h-4",style:{color:Wr}})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-white text-sm",children:"Azure Container Apps"}),s.jsx("p",{className:"text-gray-500 text-xs",children:"Master orchestration loop"})]})]}),s.jsx("p",{className:"text-sm text-gray-400 leading-relaxed",children:"The core reasoning loop runs on Container Apps — fully managed, auto-scaling, with built-in ingress and service-to-service communication. No servers to manage, no infrastru
762cture toil."})]}),s.jsxs(lx,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(0,120,212,0.15)"},children:s.jsx(hJ,{className:"w-4 h-4",style:{color:Wr}})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-white text-sm",children:"Azure Durable Functions"}),s.jsx("p",{className:"text-gray-500 text-xs",children:"Skill execution layer"})]})]}),s.jsx("p",{className:"text-sm text-gray-400 leading-relaxed",children:"Each sales skill — call analysis, deal qualification, account research — runs as a Durable Function. Stateful, long-running, and fault-tolerant. Workflows survive failures and resume automatically."})]}),s.jsxs(lx,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(0,120,212,0.15)"},children:s.jsx(ac,{className:"w-4 h-4",style:{color:Wr}})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-white text-sm",children:"Azure AI Foundry"}),s.jsx("p",{className:"text-gray-500 text-xs",children:"All AI inference"})]})]}),s.jsx("p",{className:"text-sm text-gray-400 leading-relaxed",children:"Every AI call — deal scoring, context assembly, coaching analysis — goes through Azure AI Foundry. Private endpoints, no data leaving the Azure boundary, consistent latency SLAs."})]}),s.jsxs(lx,{children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center shrink-0",style:{background:"rgba(0,120,212,0.15)"},children:s.jsx(is,{className:"w-4 h-4",style:{color:Wr}})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-white text-sm",children:"Application Insights"}),s.jsx("p",{className:"text-gray-500 text-xs",children:"Full observability"})]})]}),s.jsx("p",{className:"text-sm text-gray-400 leading-relaxed",children:"Every request, every reasoning step, every skill invocation is traced through Application Insights. Correlation IDs across the full call chain — no black boxes."})]})]}),s.jsxs("div",{className:"rounded-xl p-7",style:{background:"rgba(0,120,212,0.04)",border:"1px solid rgba(0,120,212,0.15)"},children:[s.jsx("h3",{className:"font-bold text-white mb-2",children:"10-Layer Context Engine"}),s.jsx("p",{className:"text-gray-400 text-sm mb-5 leading-relaxed",children:"Before any AI reasoning happens, Joan assembles context from every relevant signal available. This is spec amplification — not prompting. The AI receives structured intelligence, not a question."}),s.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-2.5",children:["User DNA — your rep's profile, style, quota context","Company DNA — org structure, product lines, ICP","Market Signals — news, hiring, funding activity","Deal Dynamics — stage, momentum, risk signals","Competitive Intelligence — objections, positioning","MEDDPICC (deal qualification scoring) — gap analysis","Challenger methodology — teaching angles, tailoring","Workshop lifecycle — draft → review → final state","Historical patterns — what has worked before","Conversation context — current session memory"].map(e=>s.jsxs("div",{className:"flex items-start gap-2 text-xs text-gray-400 p-2 rounded-lg",style:{background:"rgba(0,0,0,0.2)"},children:[s.jsx(R_e,{}),s.jsx("span",{children:e})]},e))})]})]}),s.jsxs(bh,{alt:!0,children:[s.jsx(ox,{children:"Enterprise Security"}),s.jsxs("div",{className:"mb-10",children:[s.jsx("h2",{className:"text-3xl font-bold text-white mb-3",children:"Security controls, not security theatre"}),s.jsx("p",{className:"text-gray-400 max-w-2xl",children:"Security is automated, fail-closed, and verified on every commit. No manual checklists. No silent fallbacks."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-10",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(ga,{className:"w-5 h-5",style:{color:Wr}}),s.jsx("h3",{className:"font-bold text-white",children:"Auth & Data Isolation"})]}),s.jsx("ul",{className:"space-y-2.5",children:["Clerk JWT validation via JWKS on every request","Every database table enforces Row-Level Security (RLS)","Every query binds tenant_id — no broad scans ever","Missing auth returns explicit 401/403 — never silent success","RLS on all context_vault tables","Fail-closed: no defaults to open"].map(e=>s.jsx(cx,{children:e},e))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(Ii,{className:"w-5 h-5",style:{color:Wr}}),s.jsx("h3",{className:"font-bold text-white",children:"Service-to-Service Integrity"})]}),s.jsx("ul",{className:"space-y-2.5",children:["HMAC-SHA256 signing for all Core API → workflow calls","Replay protection with 5-minute timestamp window","Constant-time signature comparison (prevents timing attacks)","HMAC-SHA256 over timestamp + full payload","X-Rebel-Signature and X-Rebel-Timestamp headers","HTTPS transport — no secrets in URLs, ever"].map(e=>s.jsx(cx,{children:e},e))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(ac,{className:"w-5 h-5",style:{color:Wr}}),s.jsx("h3",{className:"font-bold text-white",children:"Secrets & Code Hygiene"})]}),s.jsx("ul",{className:"space-y-2.5",children:["Zero secrets in code — validate-no-secrets.sh runs on every commit","No tokens in URLs — headers or environment variables only","Azure Key Vault for all secret storage and rotation","Logs redact secrets as [REDACTED] — no accidental exposure","validate-security-patterns.sh runs 
762in pre-commit and CI","No eval, no pickle.loads, no verify=False in the codebase"].map(e=>s.jsx(cx,{children:e},e))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(is,{className:"w-5 h-5",style:{color:Wr}}),s.jsx("h3",{className:"font-bold text-white",children:"OWASP 2021 Controls"})]}),s.jsx("ul",{className:"space-y-2.5",children:["A01 Access — tenant isolation, no admin shortcuts","A02 Crypto — constant-time compare, no DIY crypto","A03 Injection — no string-concat SQL, no unsafe eval","A07 Auth — never default allow; 401/403 explicit","A09 Logging — correlation IDs, PII redaction","A10 SSRF — allowlisted hosts, strict URL validation"].map(e=>s.jsx(cx,{children:e},e))})]})]}),s.jsxs("div",{className:"rounded-xl overflow-hidden",style:{border:"1px solid rgba(0,120,212,0.15)"},children:[s.jsxs("div",{className:"px-6 py-4 flex items-center gap-3",style:{background:"rgba(0,120,212,0.1)",borderBottom:"1px solid rgba(0,120,212,0.15)"},children:[s.jsx(ga,{className:"w-4 h-4",style:{color:Wr}}),s.jsx("span",{className:"font-bold text-white text-sm",children:"SOC 2 Type II Mapping"})]}),s.jsx("div",{className:"divide-y",style:{borderColor:"rgba(0,120,212,0.08)"},children:[{control:"CC6.1 Logical Access",detail:"HMAC auth, JWT validation, tenant binding on every operation"},{control:"CC6.7 Transmission Integrity",detail:"HMAC-SHA256 signing, HTTPS-only transport enforced by Azure"},{control:"CC6.8 Side-Channel Prevention",detail:"Constant-time signature comparison via crypto.timingSafeEqual"}].map(({control:e,detail:t})=>s.jsxs("div",{className:"px-6 py-4 grid md:grid-cols-[200px_1fr] gap-3",children:[s.jsx("span",{className:"text-xs font-mono font-bold",style:{color:Wr},children:e}),s.jsx("span",{className:"text-sm text-gray-400",children:t})]},e))})]})]}),s.jsxs(bh,{children:[s.jsx(ox,{children:"Attack Mitigation"}),s.jsx("h2",{className:"text-3xl font-bold text-white mb-8",children:"Specific threats, specific mitigations"}),s.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-4",children:[{threat:"Replay attacks",mitigation:"5-minute timestamp window on every signed request"},{threat:"Timing attacks",mitigation:"crypto.timingSafeEqual for all signature comparisons"},{threat:"MITM",mitigation:"HTTPS transport enforced at the Azure layer"},{threat:"Payload tampering",mitigation:"HMAC covers the full request payload"},{threat:"Secret extraction",mitigation:"Environment variables only — never in code or URLs"},{threat:"Tenant data leakage",mitigation:"tenant_id bound on every query — RLS enforced at DB level"}].map(({threat:e,mitigation:t})=>s.jsxs("div",{className:"rounded-xl p-5",style:{background:"rgba(0,120,212,0.04)",border:"1px solid rgba(0,120,212,0.12)"},children:[s.jsx("p",{className:"text-xs font-mono uppercase tracking-wide mb-2",style:{color:Wr},children:e}),s.jsx("p",{className:"text-sm text-gray-300",children:t})]},e))})]}),s.jsx(bh,{alt:!0,children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-center gap-3 mb-6",children:[s.jsx(WN,{size:28}),s.jsx("span",{className:"text-lg font-bold text-white",children:"Joan"})]}),s.jsxs("h2",{className:"text-3xl font-bold text-white mb-4",children:["Enterprise-grade infrastructure.",s.jsx("br",{}),"Built for GTM teams."]}),s.jsx("p",{className:"text-gray-400 mb-8 leading-relaxed",children:"The same security controls that protect enterprise deployments protect every worker on the platform. No tradeoffs between usability and security."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx(xe,{href:"/get-started",children:s.jsx("span",{className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg font-semibold cursor-pointer transition-opacity hover:opacity-80",style:{background:Wr,color:"#fff"},children:"Get Started"})}),s.jsx(xe,{href:"/contact",children:s.jsx("span",{className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg font-semibold cursor-pointer transition-opacity hover:opacity-80",style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.12)",color:"#fff"},children:"Talk to Latif"})})]})]})})]})}function D_e(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,a]=S.useState(""),[o,l]=S.useState(!1),[u,d]=S.useState(!0);S.useRef(null);const m=p=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p);S.useEffect(()=>{const p=sessionStorage.getItem("partner_auth");if(p)try{const{email:x,password:w}=JSON.parse(p);if(x&&w){fetch("/api/partner/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x,password:w})}).then(v=>v.json()).then(v=>{v.success&&v.deckHtml?(document.open(),document.write(v.deckHtml),document.close()):(sessionStorage.removeItem("partner_auth"),d(!1))}).catch(()=>{sessionStorage.removeItem("partner_auth"),d(!1)});return}}catch{}d(!1)},[]);const h=async p=>{if(p.preventDefault(),a(""),!m(e)){a("Please enter a valid email address");return}if(!r){a("Please enter the password");return}l(!0);try{const w=await(await fetch("/api/partner/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:r})})).json();w.success&&w.deckHtml?(sessionStorage.setItem("partner_auth",JSON.stringify({email:e,password:r})),document.open(),document.write(w.deckHtml),document.close()):(a(w.error||"Incorrect password"),l(!1))}catch(x){console.error("[Partner] Request failed:",x),a(`Connection failed: ${x.message||"Unknown error"}`),l(!1)}};return u?s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:s.jsx("div",{className:"text-gray-400",children:"Loading..."})}):s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-6",children:s.jsxs("div",{className:"max-w-md w-full",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-cyan-500/10 border border-cyan-500/30 mb-6",children:s.jsx(Ii,{className:"w-8 h-8 text-cyan-400"})}),s.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Partner Deck"}),s.jsx("p",{className:"text-gray-400",children:"Enter your email and password to access"})]}),s.jsxs("form",{onSubmit:h,className:"space-y-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(xn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"email",placeholder:"Your email address",value:e,onCh
762ange:p=>t(p.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10",autoFocus:!0})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Ii,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"password",placeholder:"Password",value:r,onChange:p=>n(p.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10"})]}),i&&s.jsx("p",{className:"text-red-400 text-sm",children:i}),s.jsx(pe,{type:"submit",className:"w-full bg-cyan-500 hover:bg-cyan-600 text-black font-semibold",disabled:o||!r||!e,children:o?"Verifying...":"Access Deck"})]}),s.jsx("p",{className:"mt-4 text-center text-xs text-gray-600",children:"Your email helps us know who's viewing. We won't spam you."}),s.jsx("div",{className:"mt-8 text-center",children:s.jsx(xe,{href:"/",children:s.jsxs("span",{className:"text-gray-500 hover:text-cyan-400 text-sm inline-flex items-center gap-2 cursor-pointer",children:[s.jsx(li,{className:"w-4 h-4"}),"Back to Pipeline Rebel"]})})})]})})}function SF(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,a]=S.useState(""),[o,l]=S.useState(!1),[u,d]=S.useState(!0),[m,h]=S.useState(null),p=S.useRef(null),x=y=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y);S.useEffect(()=>{const y=sessionStorage.getItem("andre_client_auth");if(y)try{const j=JSON.parse(y);if(j.authenticated&&j.email&&j.password){w(j.email,j.password);return}}catch{}d(!1)},[]);const w=async(y,j)=>{try{const k=await fetch("/api/client/andre/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:y,password:j})}),N=k.headers.get("content-type");if(N!=null&&N.includes("text/html")){const C=await k.text();h(C),d(!1)}else sessionStorage.removeItem("andre_client_auth"),d(!1)}catch{sessionStorage.removeItem("andre_client_auth"),d(!1)}},v=async y=>{if(y.preventDefault(),a(""),!x(e)){a("Please enter a valid email address");return}if(!r){a("Please enter the password");return}l(!0);try{const j=await fetch("/api/client/andre/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:r})}),k=j.headers.get("content-type");if(k!=null&&k.includes("text/html")){sessionStorage.setItem("andre_client_auth",JSON.stringify({authenticated:!0,email:e,password:r}));const N=await j.text();h(N)}else{const N=await j.json();a(N.error||"Incorrect password"),l(!1)}}catch(j){console.error("[ClientPortal] Request failed:",j),a(`Connection failed: ${j.message||"Unknown error"}`),l(!1)}};return S.useEffect(()=>{if(m&&p.current){const y=p.current.contentDocument;y&&(y.open(),y.write(m),y.close())}},[m]),u?s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:s.jsx("div",{className:"text-gray-400",children:"Loading..."})}):m?s.jsx("iframe",{ref:p,title:"Client Portal",className:"w-full h-screen border-0",sandbox:"allow-scripts allow-same-origin"}):s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-6",children:s.jsxs("div",{className:"max-w-md w-full",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-cyan-500/10 border border-cyan-500/30 mb-6",children:s.jsx(Ii,{className:"w-8 h-8 text-cyan-400"})}),s.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Client Portal"}),s.jsx("p",{className:"text-gray-400",children:"Enter your email and password to access"})]}),s.jsxs("form",{onSubmit:v,className:"space-y-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(xn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"email",placeholder:"Your email address",value:e,onChange:y=>t(y.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10",autoFocus:!0})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Ii,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"password",placeholder:"Password",value:r,onChange:y=>n(y.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10"})]}),i&&s.jsx("p",{className:"text-red-400 text-sm",children:i}),s.jsx(pe,{type:"submit",className:"w-full bg-cyan-500 hover:bg-cyan-600 text-black font-semibold",disabled:o||!r||!e,children:o?"Verifying...":"Access Portal"})]}),s.jsx("p",{className:"mt-4 text-center text-xs text-gray-600",children:"Your email helps us know who's viewing. We won't spam you."}),s.jsx("div",{className:"mt-8 text-center",children:s.jsx(xe,{href:"/",children:s.jsxs("span",{className:"text-gray-500 hover:text-cyan-400 text-sm inline-flex items-center gap-2 cursor-pointer",children:[s.jsx(li,{className:"w-4 h-4"}),"Back to Pipeline Rebel"]})})})]})})}function L_e(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,a]=S.useState(""),[o,l]=S.useState(!1),[u,d]=S.useState(!0),[m,h]=S.useState(null),p=v=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v);S.useEffect(()=>{const v=sessionStorage.getItem("michelle_client_auth");if(v)try{const y=JSON.parse(v);if(y.authenticated&&y.email&&y.password){x(y.email,y.password);return}}catch{}d(!1)},[]);const x=async(v,y)=>{try{const j=await fetch("/api/client/michelle/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v,password:y})}),k=j.headers.get("content-type");if(k!=null&&k.includes("text/html")){const N=await j.text();h(N),d(!1)}else sessionStorage.removeItem("michelle_client_auth"),d(!1)}catch{sessionStorage.removeItem("michelle_client_auth"),d(!1)}},w=async v=>{if(v.preventDefault(),a(""),!p(e)){a("Please enter a valid email address");return}if(!r){a("Please enter the password");return}l(!0);try{const y=await fetch("/api/client/michelle/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:r})}),j=y.headers.get("content-type");if(j!=null&&j.includes("text/html")){sessionStorage.setItem("michelle_client_auth",JSON.stringify({authenticated:!0,email:e,password:r}));const k=await y.text();h(k)}
762else{const k=await y.json();a(k.error||"Incorrect password"),l(!1)}}catch(y){console.error("[ClientPortal] Request failed:",y),a(`Connection failed: ${y.message||"Unknown error"}`),l(!1)}};if(u)return s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:s.jsx("div",{className:"text-gray-400",children:"Loading..."})});if(m){const y=window.location.search.includes("payment=success")?m.replace("<script>",`<script>
763window._paymentSuccess = true;
764`):m;return s.jsx("iframe",{srcDoc:y,title:"Client Portal",className:"w-full h-screen border-0",sandbox:"allow-scripts allow-same-origin allow-top-navigation allow-popups allow-popups-to-escape-sandbox"})}return s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-6",children:s.jsxs("div",{className:"max-w-md w-full",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-cyan-500/10 border border-cyan-500/30 mb-6",children:s.jsx(Ii,{className:"w-8 h-8 text-cyan-400"})}),s.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Client Portal"}),s.jsx("p",{className:"text-gray-400",children:"Enter your email and password to access"})]}),s.jsxs("form",{onSubmit:w,className:"space-y-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(xn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"email",placeholder:"Your email address",value:e,onChange:v=>t(v.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10",autoFocus:!0})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Ii,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"password",placeholder:"Password",value:r,onChange:v=>n(v.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10"})]}),i&&s.jsx("p",{className:"text-red-400 text-sm",children:i}),s.jsx(pe,{type:"submit",className:"w-full bg-cyan-500 hover:bg-cyan-600 text-black font-semibold",disabled:o||!r||!e,children:o?"Verifying...":"Access Portal"})]}),s.jsx("p",{className:"mt-4 text-center text-xs text-gray-600",children:"Your email helps us know who's viewing. We won't spam you."}),s.jsx("div",{className:"mt-8 text-center",children:s.jsx(xe,{href:"/",children:s.jsxs("span",{className:"text-gray-500 hover:text-cyan-400 text-sm inline-flex items-center gap-2 cursor-pointer",children:[s.jsx(li,{className:"w-4 h-4"}),"Back to Pipeline Rebel"]})})})]})})}function $_e(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[i,a]=S.useState(""),[o,l]=S.useState(!1),[u,d]=S.useState(!0),[m,h]=S.useState(null),p=v=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v);S.useEffect(()=>{const v=sessionStorage.getItem("jb_client_auth");if(v)try{const y=JSON.parse(v);if(y.authenticated&&y.email&&y.password){x(y.email,y.password);return}}catch{}d(!1)},[]);const x=async(v,y)=>{try{const j=await fetch("/api/client/jb/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:v,password:y})}),k=j.headers.get("content-type");if(k!=null&&k.includes("text/html")){const N=await j.text();h(N),d(!1)}else sessionStorage.removeItem("jb_client_auth"),d(!1)}catch{sessionStorage.removeItem("jb_client_auth"),d(!1)}},w=async v=>{if(v.preventDefault(),a(""),!p(e)){a("Please enter a valid email address");return}if(!r){a("Please enter the password");return}l(!0);try{const y=await fetch("/api/client/jb/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:r})}),j=y.headers.get("content-type");if(j!=null&&j.includes("text/html")){sessionStorage.setItem("jb_client_auth",JSON.stringify({authenticated:!0,email:e,password:r}));const k=await y.text();h(k)}else{const k=await y.json();a(k.error||"Incorrect password"),l(!1)}}catch(y){console.error("[ClientPortal] Request failed:",y),a(`Connection failed: ${y.message||"Unknown error"}`),l(!1)}};return u?s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:s.jsx("div",{className:"text-gray-400",children:"Loading..."})}):m?s.jsx("iframe",{srcDoc:m,title:"Client Portal",className:"w-full h-screen border-0",sandbox:"allow-scripts allow-same-origin allow-top-navigation allow-popups allow-popups-to-escape-sandbox"}):s.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center px-6",children:s.jsxs("div",{className:"max-w-md w-full",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-cyan-500/10 border border-cyan-500/30 mb-6",children:s.jsx(Ii,{className:"w-8 h-8 text-cyan-400"})}),s.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Client Portal"}),s.jsx("p",{className:"text-gray-400",children:"Enter your email and password to access"})]}),s.jsxs("form",{onSubmit:w,className:"space-y-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(xn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"email",placeholder:"Your email address",value:e,onCh
764ange:v=>t(v.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10",autoFocus:!0})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Ii,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),s.jsx(Je,{type:"password",placeholder:"Password",value:r,onChange:v=>n(v.target.value),className:"bg-gray-900 border-gray-700 text-white placeholder:text-gray-500 pl-10"})]}),i&&s.jsx("p",{className:"text-red-400 text-sm",children:i}),s.jsx(pe,{type:"submit",className:"w-full bg-cyan-500 hover:bg-cyan-600 text-black font-semibold",disabled:o||!r||!e,children:o?"Verifying...":"Access Portal"})]}),s.jsx("p",{className:"mt-4 text-center text-xs text-gray-600",children:"Your email helps us know who's viewing. We won't spam you."}),s.jsx("div",{className:"mt-8 text-center",children:s.jsx(xe,{href:"/",children:s.jsxs("span",{className:"text-gray-500 hover:text-cyan-400 text-sm inline-flex items-center gap-2 cursor-pointer",children:[s.jsx(li,{className:"w-4 h-4"}),"Back to Pipeline Rebel"]})})})]})})}const Ts="#D4836B",kF="#0a0e17",F_e="/api/plugin/download",B_e=[{number:"01",title:"Upload to Claude Cowork",time:"2 min",required:!0,summary:"Add the plugin zip file to Claude Desktop.",detail:s.jsxs("ol",{className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.65)"},children:[s.jsxs("li",{children:["1. Open ",s.jsx("strong",{className:"text-white",children:"Claude Desktop"})," and switch to ",s.jsx("strong",{className:"text-white",children:"Cowork mode"})]}),s.jsxs("li",{children:["2. Click ",s.jsx("strong",{className:"text-white",children:"Customize"})," in the left sidebar"]}),s.jsxs("li",{children:["3. Click ",s.jsx("strong",{className:"text-white",children:"Plugins → + → Add personal plugin"})]}),s.jsxs("li",{children:["4. Select the ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-xs font-mono",style:{background:"rgba(212,131,107,0.15)",color:Ts},children:"SalesSidekick.zip"})," file you just downloaded"]}),s.jsxs("li",{children:["5. Confirm it loads — you'll see ",s.jsx("strong",{className:"text-white",children:"SalesSidekick"})," appear in your plugins list"]})]})},{number:"02",title:"Create Your Local Workspace",time:"30 sec",required:!0,summary:"V4 is local-first — your data lives on your machine, not in the cloud.",isHighlight:!0,highlightLabel:"No Notion needed",detail:s.jsxs("div",{className:"space-y-3",children:[s.jsxs("ol",{className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.65)"},children:[s.jsxs("li",{children:["1. Create this folder on your machine: ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-xs font-mono",style:{background:"rgba(212,131,107,0.15)",color:Ts},children:"~/Documents/SalesSidekick/"})]}),s.jsxs("li",{children:["2. When you open a Claude conversation, click ",s.jsx("strong",{className:"text-white",children:"Work in a folder"})," at the bottom left"]}),s.jsxs("li",{children:["3. Select your ",s.jsx("strong",{className:"text-white",children:"SalesSidekick"})," folder"]}),s.jsx("li",{children:"4. That's it — the plugin writes everything to local files from here"})]}),s.jsxs("div",{className:"rounded-lg p-3 text-sm",style:{background:"rgba(212,131,107,0.08)",border:"1px solid rgba(212,131,107,0.25)"},children:[s.jsx("p",{style:{color:Ts},className:"font-medium mb-1",children:"Your data stays on your machine."}),s.jsx("p",{style:{color:"rgba(255,255,255,0.55)"},children:"Accounts, deals, contacts, and call notes are stored as local files. iCloud, Google Drive, or OneDrive will back them up automatically if your Documents folder is synced. Notion is optional — connect it later if you want a cloud copy."})]})]})},{number:"03",title:"Run the 5-Minute Setup",time:"5 min",required:!0,summary:"One conversation. After this, it knows your world and never asks again.",detail:s.jsxs("div",{className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.65)"},children:[s.jsx("p",{children:"Open Claude with your SalesSidekick folder selected and just say:"}),s.jsx("div",{className:"px-3 py-2 rounded-lg font-mono text-xs my-3",style:{background:"rgba(255,255,255,0.04)",color:"rgba(255,255,255,0.7)",border:"1px solid rgba(255,255,255,0.08)"},children:'"Set me up"'}),s.jsx("p",{children:"It will ask your name, company, and what you sell. Then it auto-researches your competitors, writes your identity to the global config, builds your project folder, and sets up background agents."}),s.jsx("p",{style:{color:"rgba(255,255,255,0.4)"},children:"Total time: about 5 minutes. You only do this once."})]})},{number:"04",title:"Paste Global Settings",time:"3 min",required:!1,summary:"Optional but noticeable — sets a quality floor for everything Claude does in Cowork.",detail:s.jsxs("div",{className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.65)"},children:[s.jsxs("p",{children:["Go to ",s.jsx("strong",{className:"text-white",children:"Settings → Cowork"})," and find the global instructions field."]}),s.jsx("p",{children:"The install guide inside your zip includes a ready-made block of quality rules to paste there — things like no hallucination, check your work, no filler language."}),s.jsxs("p",{children:["This applies to ",s.jsx("em",{children:"all"})," Cowork sessions, not just SalesSidekick. It's the quality floor every plugin inherits."]}),s.jsx("p",{className:"pt-1",style:{color:"rgba(255,255,255,0.4)"},children:"Users who skip this get a working system. Users who do it get noticeably better output from day one."})]})},{number:"05",title:"Start Talking",time:"2 min",required:!0,summary:"Open Cowork, select your folder, and say anything.",detail:s.jsxs("div",{className:"space-y-2 text-sm",style:{color:"rgba(255,255,255,0.65)"},children:[s.jsx("p",{children:"Open a new Cowork conversation, select your SalesSidekick folder, and just start:"}),s.jsx("div",{className:"space-y-1.5 my-3",children:['"What can you do?"','"Help me prep for a call."','"I just got off a call with someone interesting."'].map(e=>s.jsx("div",{className:"px-3 py-2 rounded-lg font-mono text-xs",style:{background:"rgba(255,255,255,0.04)",color:"rgba(255,255,255,0.7)",border:"1px solid rgba(255,255,255,0.08)"},children:e},e))}),s.jsx("p",{children:"SalesSidekick will ask for your name, company, and what you sell — three questions, one exchange, under a minute. Then it offers to research your company. After that you're in business."})]})}];function V_e(){const[e,t]=S.useState({firstName:"",email:"",password:"",referredBy:""}),[r,n]=S.useState(!1),[i,a]=S.useState(!1),[o,l]=S.useState(""),[u,d]=S.useState(0);S.useEffect(()=>{document.title="SalesSidekick Plugin — Download & Install | Pipeline Rebel",sessionStorage.getItem("plugin_authed")==="true"&&n(!0)},[]);const m=async h=>{if(h.preventDefault(),!(!e.firstName||!e.email||!e.password)){a(!0),l("");try{(await(await fetch("/api/plugin/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e.password,firstName:e.firstName,email:e.email,referredBy:e.referredBy||ap()})})).json()).success?(sessionStorage.setItem("plugin_authed","true"),n(!0)):(l("Incorrect password. Check with Latif if you need access."),t(w=>({...w,password:""})))}catch{l("Something went wrong. Try again.")}finally{a(!1)}}};return r?s.jsx("div",{style:{background:kF},className:"min-h-screen",children:s.jsxs("div",{className:"max-w-2xl mx-auto px-6 py-16",children:[s.jsxs(st.div,{initial:{opacity:0,y:20}
764,animate:{opacity:1,y:0},className:"text-center mb-12",children:[s.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full px-4 py-1.5 mb-6 text-xs font-semibold tracking-widest uppercase",style:{background:"rgba(212,131,107,0.1)",border:"1px solid rgba(212,131,107,0.25)",color:Ts},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full animate-pulse",style:{background:Ts}}),"Founding Member Access"]}),s.jsx("h1",{className:"text-4xl font-black text-white mb-3",children:"SalesSidekick Plugin"}),s.jsx("p",{className:"text-lg",style:{color:"rgba(255,255,255,0.5)"},children:"Download the latest version and follow the steps below to get set up in about 10 minutes."})]}),s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl p-8 mb-10 text-center",style:{background:"rgba(212,131,107,0.06)",border:"1px solid rgba(212,131,107,0.3)"},children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"rgba(212,131,107,0.15)"},children:s.jsx($o,{className:"w-7 h-7",style:{color:Ts}})}),s.jsx("div",{className:"text-white font-bold text-lg mb-1",children:"SalesSidekick.zip"}),s.jsx("div",{className:"text-sm mb-6",style:{color:"rgba(255,255,255,0.4)"},children:"Latest release · All capabilities, skills, and Notion schema included"}),s.jsxs("a",{href:F_e,className:"inline-flex items-center gap-2 px-8 py-4 rounded-xl font-bold text-white text-base transition-all hover:opacity-90",style:{background:Ts},children:[s.jsx($o,{className:"w-5 h-5"}),"Download SalesSidekick.zip"]}),s.jsx("p",{className:"mt-4 text-xs",style:{color:"rgba(255,255,255,0.25)"},children:"Always the latest version — directly from the GitHub release"})]}),s.jsx(st.div,{initial:{opacity:0}
764,animate:{opacity:1},transition:{delay:.15},className:"grid grid-cols-3 gap-3 mb-10",children:[{label:"Total time",value:"~10 min"},{label:"Required steps",value:"3 of 5"},{label:"Dependencies",value:"None — local-first"}].map(({label:h,value:p})=>s.jsxs("div",{className:"rounded-xl p-4 text-center",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.07)"},children:[s.jsx("div",{className:"text-lg font-bold text-white",children:p}),s.jsx("div",{className:"text-xs mt-0.5",style:{color:"rgba(255,255,255,0.35)"},children:h})]},h))}),s.jsxs(st.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:[s.jsx("h2",{className:"text-xl font-bold text-white mb-4",children:"Installation steps"}),s.jsx("div",{className:"space-y-3",children:B_e.map((h,p)=>s.jsxs("div",{className:"rounded-xl overflow-hidden",style:{border:`1px solid ${u===p?"rgba(212,131,107,0.35)":"rgba(255,255,255,0.08)"}`,background:u===p?"rgba(212,131,107,0.04)":"rgba(255,255,255,0.02)"},children:[s.jsxs("button",{onClick:()=>d(u===p?null:p),className:"w-full flex items-center gap-4 px-5 py-4 text-left transition-all",children:[s.jsx("span",{className:"text-xs font-mono font-bold shrink-0",style:{color:Ts},children:h.number}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:"font-semibold text-white text-sm",children:h.title}),h.isHighlight&&s.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{background:"rgba(239,68,68,0.12)",color:"#f87171"},children:["⚠ ",h.highlightLabel]})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-0.5",children:[s.jsx("span",{className:"text-xs",style:{color:"rgba(255,255,255,0.35)"},children:h.time}),s.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded font-medium",style:{background:h.required?"rgba(34,211,238,0.08)":"rgba(255,255,255,0.05)",color:h.required?"#22d3ee":"rgba(255,255,255,0.35)"},children:h.required?"Required":"Optional"})]})]}),u===p?s.jsx(JA,{className:"w-4 h-4 shrink-0",style:{color:Ts}}):s.jsx(wv,{className:"w-4 h-4 shrink-0",style:{color:"rgba(255,255,255,0.3)"}})]}),s.jsx(nne,{children:u===p&&s.jsx(st.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},children:s.jsx("div",{className:"px-5 pb-5 pt-1 border-t",style:{borderColor:"rgba(212,131,107,0.15)"},children:h.detail})})})]},p))})]}),s.jsxs(st.div,{initial:{opacity:0}
764,animate:{opacity:1},transition:{delay:.3},className:"mt-10 rounded-xl p-5 text-center",style:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)"},children:[s.jsx("p",{className:"text-sm mb-1 text-white font-medium",children:"Stuck on a step?"}),s.jsxs("p",{className:"text-sm",style:{color:"rgba(255,255,255,0.4)"},children:["Bring it to Friday office hours or email"," ",s.jsx("a",{href:"mailto:[email protected]",style:{color:Ts},className:"hover:underline",children:"[email protected]"})]})]})]})}):s.jsx("div",{style:{background:kF},className:"min-h-screen flex items-center justify-center px-6",children:s.jsxs(st.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-sm",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-5",style:{background:"rgba(212,131,107,0.12)",border:"1px solid rgba(212,131,107,0.3)"},children:s.jsx(Ii,{className:"w-6 h-6",style:{color:Ts}})}),s.jsx("div",{className:"text-2xl font-bold text-white mb-1",children:"SalesSidekick Plugin"}),s.jsx("div",{className:"text-sm",style:{color:"rgba(255,255,255,0.4)"},children:"Enter your details to access the download"})]}),s.jsxs("form",{onSubmit:m,className:"space-y-3",children:[s.jsx("input",{type:"text",value:e.firstName,onChange:h=>t(p=>({...p,firstName:h.target.value})),placeholder:"First name",required:!0,autoFocus:!0,className:"w-full px-4 py-3 rounded-xl text-white placeholder:text-gray-600 outline-none transition-all",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)"}}),s.jsx("input",{type:"email",value:e.email,onChange:h=>t(p=>({...p,email:h.target.value})),placeholder:"Your email address",required:!0,className:"w-full px-4 py-3 rounded-xl text-white placeholder:text-gray-600 outline-none transition-all",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)"}}),s.jsx("input",{type:"email",value:e.referredBy,onChange:h=>t(p=>({...p,referredBy:h.target.value})),placeholder:"Referred by (email) — optional",className:"w-full px-4 py-3 rounded-xl text-white placeholder:text-gray-600 outline-none transition-all",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)"}}),s.jsx("input",{type:"password",value:e.password,onChange:h=>t(p=>({...p,password:h.target.value})),placeholder:"Access password",required:!0,className:"w-full px-4 py-3 rounded-xl text-white placeholder:text-gray-600 outline-none transition-all",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)"}}),o&&s.jsxs("div",{className:"flex items-center gap-2 text-sm px-3 py-2 rounded-lg",style:{background:"rgba(239,68,68,0.1)",color:"#f87171"},children:[s.jsx(ni,{className:"w-4 h-4 shrink-0"}),o]}),s.jsx("button",{type:"submit",disabled:!e.firstName||!e.email||!e.password||i,className:"w-full py-3 rounded-xl font-bold text-white transition-all hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:Ts},children:i?"Checking...":"Access Download →"})]})]})})}const q_e=pK,W_e=gK,z_e=xK,EK=S.forwardRef(({className:e,...t},r)=>s.jsx(Kb,{className:Fe("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}));EK.displayName=Kb.displayName;const U_e=zd("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"}}),_K=S.forwardRef(({side:e="right",className:t,children:r,...n},i)=>s.jsxs(z_e,{children:[s.jsx(EK,{}),s.jsxs(Yb,{ref:i,className:Fe(U_e({side:e}),t),...n,children:[r,s.jsxs(yK,{className:"absolute right-4 top-4 roun
764ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[s.jsx(Tv,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));_K.displayName=Yb.displayName;const H_e=S.forwardRef(({className:e,...t},r)=>s.jsx(Xb,{ref:r,className:Fe("text-lg font-semibold text-foreground",e),...t}));H_e.displayName=Xb.displayName;const G_e=S.forwardRef(({className:e,...t},r)=>s.jsx(Qb,{ref:r,className:Fe("text-sm text-muted-foreground",e),...t}));G_e.displayName=Qb.displayName;const NF=[{label:"Services",href:"/consulting",description:"Outsourced GTM, fractional GTM, outbound systems, calling, events, and GTM engineering",icon:YZ},{label:"Software",href:"/software",description:"SalesSidekick, Sidekick Genius, and Joan product sites",icon:uJ},{label:"Resources",href:"/resources",description:"GTM field notes, diagnostics, and practical execution resources",icon:Ix},{label:"About",href:"/about",description:"Pipeline Rebel's GTM services point of view",icon:Ix}],K_e=()=>{const[e]=Pn(),[t,r]=S.useState(!1),[n,i]=S.useState(!1);S.useEffect(()=>{const l=()=>r(window.scrollY>10);return l(),window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const a=l=>l==="/"&&e==="/"?!0:l!=="/"&&e.startsWith(l),o=()=>i(!1);return s.jsx("nav",{className:`fixed left-0 right-0 top-0 z-50 transition-all duration-300 ${t?"border-b border-white/10 bg-[rgba(8,10,15,0.84)] shadow-lg shadow-black/20 backdrop-blur-xl":"bg-transparent"}`,children:s.jsx("div",{className:"pr-container",children:s.jsxs("div",{className:"flex h-16 items-center justify-between",children:[s.jsxs(xe,{href:"/",className:"group flex items-center gap-3",children:[s.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-white/10 bg-white/[0.04] text-sm font-black text-[var(--pr-cyan)]",children:"PR"}),s.jsx("span",{className:"text-lg font-semibold text-white",children:"Pipeline Rebel"})]}),s.jsx("div",{className:"hidden items-center gap-5 xl:flex",children:NF.map(l=>{const u=l.icon;return s.jsxs(xe,{href:l.href,className:`group relative flex items-center gap-2 text-sm font-medium transition-colors ${a(l.href)?"text-white":"text-[var(--pr-muted)] hover:text-white"}`,children:[s.jsx(u,{className:"h-4 w-4"}),s.jsx("span",{children:l.label}),a(l.href)&&s.jsx("span",{className:"absolute -bottom-5 left-0 right-0 h-px bg-[var(--pr-cyan)]"})]},l.href)})}),s.jsx("div",{className:"hidden xl:block",children:s.jsx(xe,{href:"/contact",children:s.jsx("span",{className:"pr-button cursor-pointer",children:"Book a Conversation"})})}),s.jsx("div",{className:"xl:hidden",children:s.jsxs(q_e,{open:n,onOpenChange:i,children:[s.jsx(W_e,{asChild:!0,children:s.jsx(pe,{variant:"ghost",size:"icon",className:"text-white hover:bg-white/10",children:n?s.jsx(Tv,{className:"h-6 w-6"}):s.jsx(oJ,{className:"h-6 w-6"})})}),s.jsx(_K,{side:"right",className:"w-[320px] border-white/10 bg-[var(--pr-panel)] text-white sm:w-[400px]",children:s.jsxs("div",{className:"flex h-full flex-col",children:[s.jsxs(xe,{href:"/",onClick:o,className:"flex items-center gap-3",children:[s.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-white/10 bg-white/[0.04] text-sm font-black text-[var(--pr-cyan)]",children:"PR"}),s.jsx("span",{className:"text-lg font-semibold text-white",children:"Pipeline Rebel"})]}),s.jsx("div",{className:"mt-8 flex flex-1 flex-col gap-3",children:NF.map(l=>{const u=l.icon;return s.jsxs(xe,{href:l.href,onClick:o,className:`rounded-lg border p-4 transition-colors ${a(l.href)?"border-[rgba(0,194,215,0.35)] bg-[rgba(0,194,215,0.09)]":"border-white/10 bg-white/[0.03] hover:bg-white/[0.06]"}`,children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(u,{className:"h-5 w-5 text-[var(--pr-cyan)]"}),s.jsx("span",{className:"font-semibold text-white",children:l.label})]}),s.jsx("p",{className:"mt-2 text-sm leading-relaxed text-[var(--pr-muted)]",children:l.description})]},l.href)})}),s.jsx(xe,{href:"/contact",onClick:o,children:s.jsx("span",{className:"pr-button w-full cursor-pointer",children:"Book a Conversation"})})]})})]})})]})})})},Y_e=()=>{const e=new Date().getFullYear();return s.jsx("footer",{className:"relative border-t border-white/10 bg-[rgba(8,10,15,0.72)] py-14 text-[var(--pr-muted)]",children:s.jsxs("div",{className:"pr-container",children:[s.jsxs("div",{className:"grid gap-10 lg:grid-cols-[1.15fr_1fr_1fr_1fr]",children:[s.jsxs("div",{children:[s.jsxs(xe,{href:"/",className:"inline-flex items-center gap-3",children:[s.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-white/10 bg-white/[0.04] text-sm font-black text-[var(--pr-cyan)]",children:"PR"}),s.jsx("span",{className:"text-lg font-semibold text-white",children:"Pipeline Rebel"})]}),s.jsx("p",{className:"mt-4 max-w-sm text-sm leading-relaxed",children:"GTM services, outbound systems, cold calling, event support, content-led GTM, GTM engineering, and fractional execution for startups and scaleups."}),s.jsxs("div",{className:"mt-5 flex gap-3",children:[s.jsx("a",{href:"mailto:[email protected]","aria-label":"Email Pipeline Rebel",className:"rounded-md border border-white/10 p-2 text-[var(--pr-muted)] transition-colors hover:text-white",children:s.jsx(xn,{className:"h-4 w-4"})}),s.jsx("a",{href:"https://linkedin.com/company/pipelinerebel",target:"_blank",rel:"noopener noreferrer","aria-label":"Pipeline Rebel on LinkedIn",className:"rounded-md border border-white/10 p-2 text-[var(--pr-muted)] transition-colors hover:text-white",children:s.jsx(rC,{
764className:"h-4 w-4"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-white",children:"Company"}),s.jsxs("ul",{className:"mt-4 space-y-3 text-sm",children:[s.jsx("li",{children:s.jsx(xe,{href:"/consulting",className:"hover:text-white",children:"Services"})}),s.jsx("li",{children:s.jsx(xe,{href:"/software",className:"hover:text-white",children:"Software"})}),s.jsx("li",{children:s.jsx(xe,{href:"/about",className:"hover:text-white",children:"About"})}),s.jsx("li",{children:s.jsx(xe,{href:"/contact",className:"hover:text-white",children:"Book a Conversation"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-white",children:"Software"}),s.jsxs("ul",{className:"mt-4 space-y-3 text-sm",children:[s.jsx("li",{children:s.jsx("a",{href:"https://salessidekick.ai",className:"hover:text-white",children:"SalesSidekick"})}),s.jsx("li",{children:s.jsx("a",{href:"https://sidekickgenius.com",className:"hover:text-white",children:"Sidekick Genius"})}),s.jsx("li",{children:s.jsx("a",{href:"https://joanai.io",className:"hover:text-white",children:"Joan"})}),s.jsx("li",{children:s.jsx(xe,{href:"/gtmplaybook",className:"hover:text-white",children:"GTM Playbook"})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-white",children:"Resources"}),s.jsxs("ul",{className:"mt-4 space-y-3 text-sm",children:[s.jsx("li",{children:s.jsx(xe,{href:"/resources",className:"hover:text-white",children:"Resource Library"})}),s.jsx("li",{children:s.jsx(xe,{href:"/blog",className:"hover:text-white",children:"Blog"})}),s.jsx("li",{children:s.jsx("a",{href:"https://salessidekick.ai/community",className:"hover:text-white",children:"SalesSidekick Community"})}),s.jsx("li",{children:s.jsx(xe,{href:"/privacy-policy",className:"hover:text-white",children:"Privacy Policy"})}),s.jsx("li",{children:s.jsx(xe,{href:"/terms-of-service",className:"hover:text-white",children:"Terms of Service"})})]})]})]}),s.jsxs("div",{className:"mt-12 border-t border-white/10 pt-8",children:[s.jsxs("div",{className:"flex flex-col gap-3 text-xs text-[var(--pr-faint)] md:flex-row md:items-center md:justify-between",children:[s.jsx("p",{children:"Build the GTM motion, operate the work, and turn activity into qualified pipeline."}),s.jsxs("p",{children:["© ",e," RebelHQ Incorporated. All rights reserved."]})]}),s.jsx("p",{className:"mt-3 text-xs leading-5 text-[var(--pr-faint)]",children:"Pipeline Rebel is operated by RebelHQ Incorporated, 440 N Wolfe Rd, Sunnyvale, CA 94085, United States."})]})]})})},X_e=()=>s.jsxs("div",{className:"pointer-events-none fixed inset-0 z-0 overflow-hidden bg-[var(--pr-bg)]",children:[s.jsx("div",{className:"absolute inset-0 pr-grid-bg"}),s.jsx("div",{className:"absolute inset-x-0 top-0 h-[520px] bg-[radial-gradient(ellipse_at_top,rgba(0,194,215,0.13),transparent_62%)]"})]}),Q_e={theme:"system",setTheme:()=>null},Z_e=S.createContext(Q_e);function J_e({children:e,defaultTheme:t="system",storageKey:r="vite-ui-theme",...n}){const[i,a]=S.useState(()=>localStorage.getItem(r)||t);S.useEffect(()=>{const l=window.document.documentElement;if(l.classList.remove("light","dark"),i==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";l.classList.add(u);return}l.classList.add(i)},[i]);const o={theme:i,setTheme:l=>{localStorage.setItem(r,l),a(l)}};return s.jsx(Z_e.Provider,{...n,value:o,children:e})}function ra({to:e}){return S.useEffect(()=>{window.location.replace(e)},[e]),null}function eOe({siteId:e}){const t=e==="sales-sidekick",r=e==="joan",n=r?FA:t?fr:vr;return s.jsxs(HF,{children:[s.jsx(he,{path:"/",component:n}),s.jsx(he,{path:"/privacy-policy",component:wx}),s.jsx(he,{path:"/terms-of-service",component:jx}),r?s.jsx(s.Fragment,{children:s.jsx(he,{path:"/joan",component:FA})}):t?s.jsxs(s.Fragment,{children:[s.jsx(he,{path:"/individual",component:fr}),s.jsx(he,{path:"/team-os",component:fr}),s.jsx(he,{path:"/enterprise",component:fr}),s.jsx(he,{path:"/claude-microsoft",component:fr}),s.jsx(he,{path:"/workflows",component:fr}),s.jsx(he,{path:"/skills",component:fr}),s.jsx(he,{path:"/agents",component:fr}),s.jsx(he,{path:"/getting-started",component:fr}),s.jsx(he,{path:"/community",component:mF}),s.jsx(he,{path:"/resources",component:fr}),s.jsx(he,{path:"/services",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/individual",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/team-os",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/enterprise",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/claude-microsoft",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/workflows",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/skills",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/agents",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/getting-started",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/community",component:mF}),s.jsx(he,{path:"/sales-sidekick-ai/resources",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/services",component:fr}),s.jsx(he,{path:"/sales-sidekick-ai/privacy-policy",component:wx}),s.jsx(he,{path:"/sales-sidekick-ai/terms-of-service",component:jx})]}):s.jsxs(s.Fragment,{children:[s.jsx(he,{path:"/careers",component:jF}),s.jsx(he,{path:"/sidekick-genius/careers",component:jF}),s.jsx(he,{path:"/sidekick-genius",component:vr}),s.jsx(he,{path:"/team-os",component:vr}),s.jsx(he,{path:"/enterprise-os",component:vr}),s.jsx(he,{path:"/ai-platforms",component:vr}),s.jsx(he,{path:"/claude-microsoft",component:vr}),s.jsx(he,{path:"/operating-model",component:vr}),s.jsx(he,{path:"/how-it-works",component:vr}),s.jsx(he,{path:"/getting-started",component:vr}),s.jsx(he,{path:"/resources",component:vr}),s.jsx(he,{path:"/services",component:vr}),s.jsx(he,{path:"/sidekick-genius/team-os",component:vr}),s.jsx(he,{path:"/sidekick-genius/enterprise-os",component:vr}),s.jsx(he,{path:"/sidekick-genius/ai-platforms",component:vr}),s.jsx(he,{path:"/sidekick-genius/claude-microsoft",component:vr}),s.jsx(he,{path:"/sidekick-genius/operating-model",component:vr}),s.jsx(he,{path:"/sidekick-genius/how-it-works",component:vr}),s.jsx(he,{path:"/sidekick-genius/getting-started",component:vr}),s.jsx(he,{path:"/sidekick-genius/resources",component:vr}),s.jsx(he,{path:"/sidekick-genius/services",component:vr}),s.jsx(he,{path:"/sidekick-genius/privacy-policy",component:wx}),s.jsx(he,{path:"/sidekick-genius/terms-of-service",component:jx})]}),s.jsx(he,{component:n})]})}
764function tOe({siteId:e}){return e!=="pipeline-rebel"?s.jsx(eOe,{siteId:e}):s.jsxs(HF,{children:[s.jsx(he,{path:"/",component:Gre}),s.jsx(he,{path:"/consulting",component:Xre}),s.jsx(he,{path:"/software",component:Zre}),s.jsx(he,{path:"/signal-claw",children:()=>s.jsx(ra,{to:"/software"})}),s.jsx(he,{path:"/gtmplaybook",children:()=>s.jsx(ra,{to:"/gtmplaybook.html"})}),s.jsx(he,{path:"/how-it-works",component:mce}),s.jsx(he,{path:"/approach",component:pce}),s.jsx(he,{path:"/resources",component:yce}),s.jsx(he,{path:"/contact",component:vce}),s.jsx(he,{path:"/about",component:Ude}),s.jsx(he,{path:"/blog",component:wce}),s.jsx(he,{path:"/blog/:slug",component:Wde}),s.jsx(he,{path:"/privacy-policy",component:wx}),s.jsx(he,{path:"/terms-of-service",component:jx}),s.jsx(he,{path:"/lead-management",component:gme}),s.jsx(he,{path:"/analytics",component:uEe}),s.jsx(he,{path:"/lead-sharing",component:CEe}),s.jsx(he,{path:"/login",component:PEe}),s.jsx(he,{path:"/admin",component:EEe}),s.jsx(he,{path:"/email-subscribers",component:_Ee}),s.jsx(he,{path:"/gtm-assessments",component:OEe}),s.jsx(he,{path:"/database",component:IEe}),s.jsx(he,{path:"/content",component:REe}),s.jsx(he,{path:"/chat-sessions",component:MEe}),s.jsx(he,{path:"/html-files",component:DEe}),s.jsx(he,{path:"/newsletter-publisher",component:$Ee}),s.jsx(he,{path:"/community",children:()=>s.jsx(ra,{to:"https://salessidekick.ai/community"})}),s.jsx(he,{path:"/services",children:()=>s.jsx(ra,{to:"/consulting"})}),s.jsx(he,{path:"/methodology",component:FEe}),s.jsx(he,{path:"/get-started",children:()=>s.jsx(ra,{to:"/contact"})}),s.jsx(he,{path:"/sales-sidekick",children:()=>s.jsx(ra,{to:"https://salessidekick.ai/"})}),s.jsx(he,{path:"/sidekick-genius",component:vr}),s.jsx(he,{path:"/joan",component:FA}),s.jsx(he,{path:"/claude-cowork",children:()=>s.jsx(ra,{to:"https://salessidekick.ai/getting-started"})}),s.jsx(he,{path:"/built-on-azure",component:M_e}),s.jsx(he,{path:"/advisory",children:()=>s.jsx(ra,{to:"/consulting"})}),s.jsx(he,{path:"/enterprise",children:()=>s.jsx(ra,{to:"/consulting"})}),s.jsx(he,{path:"/partners",component:D_e}),s.jsx(he,{path:"/andr%C3%A9",component:SF}),s.jsx(he,{path:"/andre",component:SF}),s.jsx(he,{path:"/michelle",component:L_e}),s.jsx(he,{path:"/jb",component:$_e}),s.jsx(he,{path:"/plugin-download",component:V_e}),s.jsx(he,{component:Vte})]})}function rOe(){const[e]=Pn(),t=S.useRef(null),r=S.useRef(null),n=S.useRef(e);n.current=e;const i=Pc(void 0,e),a=Fle(void 0,e),o=Ble(void 0,e);S.useEffect(()=>{let d=!1;return(async()=>{for(let m=0;m<3&&!d;m+=1){t.current||(t.current=Gle());const h=await t.current;if(h==="disabled")return;if(h==="failed")t.current=null;else if(n.current===e&&r.current!==e){if(await Kle(qv(e),document.title)){r.current=e;return}t.current=null}else return;await new Promise(p=>window.setTimeout(p,250*(m+1)))}})(),()=>{d=!0}},[e]);const u=["/admin","/login","/lead-management","/analytics","/lead-sharing","/email-subscribers","/gtm-assessments","/database","/content","/chat-sessions","/html-files","/partners","/andr%C3%A9","/andre","/andré","/michelle","/jb","/plugin-download"].includes(e)||Vle(void 0,e)||a||o;return s.jsx(PQ,{client:ki,children:s.jsx(J_e,{defaultTheme:"dark",children:s.jsxs(Fte,{children:[s.jsx(see,{}),!u&&s.jsx(X_e,{}),s.jsxs("div",{className:"flex flex-col min-h-screen relative z-10",children:[!u&&s.jsx(K_e,{}),s.jsx("main",{className:"flex-grow",children:s.jsx(tOe,{siteId:i})}),!u&&s.jsx(Y_e,{})]})]})})})}const nOe=({children:e})=>s.jsx("div",{className:"dark",children:e});RX.createRoot(document.getElementById("root")).render(s.jsx(nOe,{children:s.jsx(rOe,{})}));

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.