var ID=Object.defineProperty;var zC=t=>{throw TypeError(t)};var PD=(t,e,r)=>e in t?ID(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var it=(t,e,r)=>PD(t,typeof e!="symbol"?e+"":e,r),Db=(t,e,r)=>e.has(t)||zC("Cannot "+r);var X=(t,e,r)=>(Db(t,e,"read from private field"),r?r.call(t):e.get(t)),Je=(t,e,r)=>e.has(t)?zC("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),De=(t,e,r,n)=>(Db(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Fn=(t,e,r)=>(Db(t,e,"access private method"),r);var xg=(t,e,r,n)=>({set _(a){De(t,e,a,r)},get _(){return X(t,e,n)}});function TD(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function LD(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var HE={exports:{}},Iy={},KE={exports:{}},Pt={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ap=Symbol.for("react.element"),UD=Symbol.for("react.portal"),_D=Symbol.for("react.fragment"),MD=Symbol.for("react.strict_mode"),QD=Symbol.for("react.profiler"),DD=Symbol.for("react.provider"),RD=Symbol.for("react.context"),OD=Symbol.for("react.forward_ref"),HD=Symbol.for("react.suspense"),KD=Symbol.for("react.memo"),VD=Symbol.for("react.lazy"),WC=Symbol.iterator;function zD(t){return t===null||typeof t!="object"?null:(t=WC&&t[WC]||t["@@iterator"],typeof t=="function"?t:null)}var VE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zE=Object.assign,WE={};function nh(t,e,r){this.props=t,this.context=e,this.refs=WE,this.updater=r||VE}nh.prototype.isReactComponent={};nh.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};nh.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $E(){}$E.prototype=nh.prototype;function x5(t,e,r){this.props=t,this.context=e,this.refs=WE,this.updater=r||VE}var y5=x5.prototype=new $E;y5.constructor=x5;zE(y5,nh.prototype);y5.isPureReactComponent=!0;var $C=Array.isArray,GE=Object.prototype.hasOwnProperty,v5={current:null},qE={key:!0,ref:!0,__self:!0,__source:!0};function YE(t,e,r){var n,a={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)GE.call(e,n)&&!qE.hasOwnProperty(n)&&(a[n]=e[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,I=Q[te];if(0>>1;tea(Z,ie))nea(Y,Z)?(Q[te]=Y,Q[ne]=ie,te=ne):(Q[te]=Z,Q[K]=ie,te=K);else if(nea(Y,ie))Q[te]=Y,Q[ne]=ie,te=ne;else break e}}return q}function a(Q,q){var ie=Q.sortIndex-q.sortIndex;return ie!==0?ie:Q.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],A=1,u=null,h=3,m=!1,g=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(Q){for(var q=r(d);q!==null;){if(q.callback===null)n(d);else if(q.startTime<=Q)n(d),q.sortIndex=q.expirationTime,e(c,q);else break;q=r(d)}}function S(Q){if(p=!1,j(Q),!g)if(r(c)!==null)g=!0,V(F);else{var q=r(d);q!==null&&J(S,q.startTime-Q)}}function F(Q,q){g=!1,p&&(p=!1,y(P),P=-1),m=!0;var ie=h;try{for(j(q),u=r(c);u!==null&&(!(u.expirationTime>q)||Q&&!B());){var te=u.callback;if(typeof te=="function"){u.callback=null,h=u.priorityLevel;var I=te(u.expirationTime<=q);q=t.unstable_now(),typeof I=="function"?u.callback=I:u===r(c)&&n(c),j(q)}else n(c);u=r(c)}if(u!==null)var L=!0;else{var K=r(d);K!==null&&J(S,K.startTime-q),L=!1}return L}finally{u=null,h=ie,m=!1}}var U=!1,M=null,P=-1,W=5,$=-1;function B(){return!(t.unstable_now()-$Q||125te?(Q.sortIndex=ie,e(d,Q),r(c)===null&&Q===r(d)&&(p?(y(P),P=-1):p=!0,J(S,ie-te))):(Q.sortIndex=I,e(c,Q),g||m||(g=!0,V(F))),Q},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(Q){var q=h;return function(){var ie=h;h=q;try{return Q.apply(this,arguments)}finally{h=ie}}}})(rF);tF.exports=rF;var rR=tF.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var nR=b,qs=rR;function Te(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_1=Object.prototype.hasOwnProperty,sR=/^[: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]*$/,qC={},YC={};function aR(t){return _1.call(YC,t)?!0:_1.call(qC,t)?!1:sR.test(t)?YC[t]=!0:(qC[t]=!0,!1)}function iR(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function oR(t,e,r,n){if(e===null||typeof e>"u"||iR(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function os(t,e,r,n,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Sn[t]=new os(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Sn[e]=new os(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Sn[t]=new os(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Sn[t]=new os(t,2,!1,t,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(t){Sn[t]=new os(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Sn[t]=new os(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Sn[t]=new os(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Sn[t]=new os(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Sn[t]=new os(t,5,!1,t.toLowerCase(),null,!1,!1)});var w5=/[\-:]([a-z])/g;function j5(t){return t[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(t){var e=t.replace(w5,j5);Sn[e]=new os(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(w5,j5);Sn[e]=new os(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(w5,j5);Sn[e]=new os(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Sn[t]=new os(t,1,!1,t.toLowerCase(),null,!1,!1)});Sn.xlinkHref=new os("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Sn[t]=new os(t,1,!1,t.toLowerCase(),null,!0,!0)});function N5(t,e,r,n){var a=Sn.hasOwnProperty(e)?Sn[e]:null;(a!==null?a.type!==0:n||!(2l||a[o]!==i[l]){var c=` `+a[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=l);break}}}finally{Hb=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?gm(t):""}function lR(t){switch(t.tag){case 5:return gm(t.type);case 16:return gm("Lazy");case 13:return gm("Suspense");case 19:return gm("SuspenseList");case 0:case 2:case 15:return t=Kb(t.type,!1),t;case 11:return t=Kb(t.type.render,!1),t;case 1:return t=Kb(t.type,!0),t;default:return""}}function R1(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case HA:return"Fragment";case OA:return"Portal";case M1:return"Profiler";case C5:return"StrictMode";case Q1:return"Suspense";case D1:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case aF:return(t.displayName||"Context")+".Consumer";case sF:return(t._context.displayName||"Context")+".Provider";case B5:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case S5:return e=t.displayName||null,e!==null?e:R1(t.type)||"Memo";case il:e=t._payload,t=t._init;try{return R1(t(e))}catch{}}return null}function cR(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R1(e);case 8:return e===C5?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function $l(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function oF(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dR(t){var e=oF(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function bg(t){t._valueTracker||(t._valueTracker=dR(t))}function lF(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=oF(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function u0(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function O1(t,e){var r=e.checked;return Cr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function XC(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=$l(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function cF(t,e){e=e.checked,e!=null&&N5(t,"checked",e,!1)}function H1(t,e){cF(t,e);var r=$l(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?K1(t,e.type,r):e.hasOwnProperty("defaultValue")&&K1(t,e.type,$l(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ZC(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function K1(t,e,r){(e!=="number"||u0(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var xm=Array.isArray;function ou(t,e,r,n){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=wg.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function of(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Pm={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},AR=["Webkit","ms","Moz","O"];Object.keys(Pm).forEach(function(t){AR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Pm[e]=Pm[t]})});function hF(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Pm.hasOwnProperty(t)&&Pm[t]?(""+e).trim():e+"px"}function mF(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=hF(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,a):t[r]=a}}var uR=Cr({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 W1(t,e){if(e){if(uR[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Te(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Te(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Te(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Te(62))}}function $1(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 G1=null;function k5(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var q1=null,lu=null,cu=null;function rB(t){if(t=lp(t)){if(typeof q1!="function")throw Error(Te(280));var e=t.stateNode;e&&(e=_y(e),q1(t.stateNode,t.type,e))}}function fF(t){lu?cu?cu.push(t):cu=[t]:lu=t}function pF(){if(lu){var t=lu,e=cu;if(cu=lu=null,rB(t),e)for(t=0;t>>=0,t===0?32:31-(jR(t)/NR|0)|0}var jg=64,Ng=4194304;function ym(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function p0(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,a=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var l=o&~a;l!==0?n=ym(l):(i&=o,i!==0&&(n=ym(i)))}else o=r&~a,o!==0?n=ym(o):i!==0&&(n=ym(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&a)&&(a=n&-n,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function ip(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ya(e),t[e]=r}function kR(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=Lm),AB=" ",uB=!1;function _F(t,e){switch(t){case"keyup":return rO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MF(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var KA=!1;function sO(t,e){switch(t){case"compositionend":return MF(e);case"keypress":return e.which!==32?null:(uB=!0,AB);case"textInput":return t=e.data,t===AB&&uB?null:t;default:return null}}function aO(t,e){if(KA)return t==="compositionend"||!_5&&_F(t,e)?(t=LF(),Lx=T5=Bl=null,KA=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pB(r)}}function OF(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?OF(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function HF(){for(var t=window,e=u0();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=u0(t.document)}return e}function M5(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function mO(t){var e=HF(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&OF(r.ownerDocument.documentElement,r)){if(n!==null&&M5(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!t.extend&&i>n&&(a=n,n=i,i=a),a=gB(r,i);var o=gB(r,n);a&&o&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,VA=null,t2=null,_m=null,r2=!1;function xB(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;r2||VA==null||VA!==u0(n)||(n=VA,"selectionStart"in n&&M5(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_m&&hf(_m,n)||(_m=n,n=y0(t2,"onSelect"),0$A||(t.current=l2[$A],l2[$A]=null,$A--)}function dr(t,e){$A++,l2[$A]=t.current,t.current=e}var Gl={},Wn=cc(Gl),Cs=cc(!1),Ad=Gl;function Qu(t,e){var r=t.type.contextTypes;if(!r)return Gl;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Bs(t){return t=t.childContextTypes,t!=null}function b0(){mr(Cs),mr(Wn)}function CB(t,e,r){if(Wn.current!==Gl)throw Error(Te(168));dr(Wn,e),dr(Cs,r)}function JF(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(Te(108,cR(t)||"Unknown",a));return Cr({},r,n)}function w0(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Gl,Ad=Wn.current,dr(Wn,t),dr(Cs,Cs.current),!0}function BB(t,e,r){var n=t.stateNode;if(!n)throw Error(Te(169));r?(t=JF(t,e,Ad),n.__reactInternalMemoizedMergedChildContext=t,mr(Cs),mr(Wn),dr(Wn,t)):mr(Cs),dr(Cs,r)}var oo=null,My=!1,nw=!1;function XF(t){oo===null?oo=[t]:oo.push(t)}function BO(t){My=!0,XF(t)}function dc(){if(!nw&&oo!==null){nw=!0;var t=0,e=Jt;try{var r=oo;for(Jt=1;t>=o,a-=o,fo=1<<32-Ya(e)+a|r<P?(W=M,M=null):W=M.sibling;var $=h(y,M,j[P],S);if($===null){M===null&&(M=W);break}t&&M&&$.alternate===null&&e(y,M),v=i($,v,P),U===null?F=$:U.sibling=$,U=$,M=W}if(P===j.length)return r(y,M),xr&&Pc(y,P),F;if(M===null){for(;PP?(W=M,M=null):W=M.sibling;var B=h(y,M,$.value,S);if(B===null){M===null&&(M=W);break}t&&M&&B.alternate===null&&e(y,M),v=i(B,v,P),U===null?F=B:U.sibling=B,U=B,M=W}if($.done)return r(y,M),xr&&Pc(y,P),F;if(M===null){for(;!$.done;P++,$=j.next())$=u(y,$.value,S),$!==null&&(v=i($,v,P),U===null?F=$:U.sibling=$,U=$);return xr&&Pc(y,P),F}for(M=n(y,M);!$.done;P++,$=j.next())$=m(M,y,P,$.value,S),$!==null&&(t&&$.alternate!==null&&M.delete($.key===null?P:$.key),v=i($,v,P),U===null?F=$:U.sibling=$,U=$);return t&&M.forEach(function(k){return e(y,k)}),xr&&Pc(y,P),F}function w(y,v,j,S){if(typeof j=="object"&&j!==null&&j.type===HA&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case vg:e:{for(var F=j.key,U=v;U!==null;){if(U.key===F){if(F=j.type,F===HA){if(U.tag===7){r(y,U.sibling),v=a(U,j.props.children),v.return=y,y=v;break e}}else if(U.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===il&&EB(F)===U.type){r(y,U.sibling),v=a(U,j.props),v.ref=rm(y,U,j),v.return=y,y=v;break e}r(y,U);break}else e(y,U);U=U.sibling}j.type===HA?(v=td(j.props.children,y.mode,S,j.key),v.return=y,y=v):(S=Hx(j.type,j.key,j.props,null,y.mode,S),S.ref=rm(y,v,j),S.return=y,y=S)}return o(y);case OA:e:{for(U=j.key;v!==null;){if(v.key===U)if(v.tag===4&&v.stateNode.containerInfo===j.containerInfo&&v.stateNode.implementation===j.implementation){r(y,v.sibling),v=a(v,j.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else e(y,v);v=v.sibling}v=Aw(j,y.mode,S),v.return=y,y=v}return o(y);case il:return U=j._init,w(y,v,U(j._payload),S)}if(xm(j))return g(y,v,j,S);if(Jh(j))return p(y,v,j,S);Ig(y,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,v!==null&&v.tag===6?(r(y,v.sibling),v=a(v,j),v.return=y,y=v):(r(y,v),v=dw(j,y.mode,S),v.return=y,y=v),o(y)):r(y,v)}return w}var Ru=r8(!0),n8=r8(!1),C0=cc(null),B0=null,YA=null,O5=null;function H5(){O5=YA=B0=null}function K5(t){var e=C0.current;mr(C0),t._currentValue=e}function A2(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Au(t,e){B0=t,O5=YA=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(js=!0),t.firstContext=null)}function wa(t){var e=t._currentValue;if(O5!==t)if(t={context:t,memoizedValue:e,next:null},YA===null){if(B0===null)throw Error(Te(308));YA=t,B0.dependencies={lanes:0,firstContext:t}}else YA=YA.next=t;return e}var Oc=null;function V5(t){Oc===null?Oc=[t]:Oc.push(t)}function s8(t,e,r,n){var a=e.interleaved;return a===null?(r.next=r,V5(e)):(r.next=a.next,a.next=r),e.interleaved=r,wo(t,n)}function wo(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var ol=!1;function z5(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function a8(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function go(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ql(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ot&2){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,wo(t,r)}return a=n.interleaved,a===null?(e.next=e,V5(n)):(e.next=a.next,a.next=e),n.interleaved=e,wo(t,r)}function _x(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,F5(t,r)}}function FB(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=e:i=i.next=e}else a=i=e;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function S0(t,e,r,n){var a=t.updateQueue;ol=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?i=d:o.next=d,o=c;var A=t.alternate;A!==null&&(A=A.updateQueue,l=A.lastBaseUpdate,l!==o&&(l===null?A.firstBaseUpdate=d:l.next=d,A.lastBaseUpdate=c))}if(i!==null){var u=a.baseState;o=0,A=d=c=null,l=i;do{var h=l.lane,m=l.eventTime;if((n&h)===h){A!==null&&(A=A.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=t,p=l;switch(h=e,m=r,p.tag){case 1:if(g=p.payload,typeof g=="function"){u=g.call(m,u,h);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,h=typeof g=="function"?g.call(m,u,h):g,h==null)break e;u=Cr({},u,h);break e;case 2:ol=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,h=a.effects,h===null?a.effects=[l]:h.push(l))}else m={eventTime:m,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},A===null?(d=A=m,c=u):A=A.next=m,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;h=l,l=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);if(A===null&&(c=u),a.baseState=c,a.firstBaseUpdate=d,a.lastBaseUpdate=A,e=a.shared.interleaved,e!==null){a=e;do o|=a.lane,a=a.next;while(a!==e)}else i===null&&(a.shared.lanes=0);md|=o,t.lanes=o,t.memoizedState=u}}function IB(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=aw.transition;aw.transition={};try{t(!1),e()}finally{Jt=r,aw.transition=n}}function w8(){return ja().memoizedState}function FO(t,e,r){var n=Rl(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},j8(t))N8(e,r);else if(r=s8(t,e,r,n),r!==null){var a=as();Ja(r,t,n,a),C8(r,e,n)}}function IO(t,e,r){var n=Rl(t),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(j8(t))N8(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,l=i(o,r);if(a.hasEagerState=!0,a.eagerState=l,Xa(l,o)){var c=e.interleaved;c===null?(a.next=a,V5(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}r=s8(t,e,a,n),r!==null&&(a=as(),Ja(r,t,n,a),C8(r,e,n))}}function j8(t){var e=t.alternate;return t===jr||e!==null&&e===jr}function N8(t,e){Mm=E0=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function C8(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,F5(t,r)}}var F0={readContext:wa,useCallback:In,useContext:In,useEffect:In,useImperativeHandle:In,useInsertionEffect:In,useLayoutEffect:In,useMemo:In,useReducer:In,useRef:In,useState:In,useDebugValue:In,useDeferredValue:In,useTransition:In,useMutableSource:In,useSyncExternalStore:In,useId:In,unstable_isNewReconciler:!1},PO={readContext:wa,useCallback:function(t,e){return gi().memoizedState=[t,e===void 0?null:e],t},useContext:wa,useEffect:TB,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Qx(4194308,4,g8.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Qx(4194308,4,t,e)},useInsertionEffect:function(t,e){return Qx(4,2,t,e)},useMemo:function(t,e){var r=gi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=gi();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=FO.bind(null,jr,t),[n.memoizedState,t]},useRef:function(t){var e=gi();return t={current:t},e.memoizedState=t},useState:PB,useDebugValue:Z5,useDeferredValue:function(t){return gi().memoizedState=t},useTransition:function(){var t=PB(!1),e=t[0];return t=EO.bind(null,t[1]),gi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=jr,a=gi();if(xr){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=e(),xn===null)throw Error(Te(349));hd&30||c8(n,e,r)}a.memoizedState=r;var i={value:r,getSnapshot:e};return a.queue=i,TB(A8.bind(null,n,i,t),[t]),n.flags|=2048,bf(9,d8.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=gi(),e=xn.identifierPrefix;if(xr){var r=po,n=fo;r=(n&~(1<<32-Ya(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=yf++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[bi]=e,t[pf]=n,U8(t,e,!1,!1),e.stateNode=t;e:{switch(o=$1(r,n),r){case"dialog":ur("cancel",t),ur("close",t),a=n;break;case"iframe":case"object":case"embed":ur("load",t),a=n;break;case"video":case"audio":for(a=0;aKu&&(e.flags|=128,n=!0,nm(i,!1),e.lanes=4194304)}else{if(!n)if(t=k0(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),nm(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!xr)return Pn(e),null}else 2*Hr()-i.renderingStartTime>Ku&&r!==1073741824&&(e.flags|=128,n=!0,nm(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Hr(),e.sibling=null,r=br.current,dr(br,n?r&1|2:r&1),e):(Pn(e),null);case 22:case 23:return a4(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Qs&1073741824&&(Pn(e),e.subtreeFlags&6&&(e.flags|=8192)):Pn(e),null;case 24:return null;case 25:return null}throw Error(Te(156,e.tag))}function RO(t,e){switch(D5(e),e.tag){case 1:return Bs(e.type)&&b0(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ou(),mr(Cs),mr(Wn),G5(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return $5(e),null;case 13:if(mr(br),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Te(340));Du()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return mr(br),null;case 4:return Ou(),null;case 10:return K5(e.type._context),null;case 22:case 23:return a4(),null;case 24:return null;default:return null}}var Tg=!1,On=!1,OO=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function JA(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Pr(t,e,n)}else r.current=null}function v2(t,e,r){try{r()}catch(n){Pr(t,e,n)}}var VB=!1;function HO(t,e){if(n2=g0,t=HF(),M5(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,d=0,A=0,u=t,h=null;t:for(;;){for(var m;u!==r||a!==0&&u.nodeType!==3||(l=o+a),u!==i||n!==0&&u.nodeType!==3||(c=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(m=u.firstChild)!==null;)h=u,u=m;for(;;){if(u===t)break t;if(h===r&&++d===a&&(l=o),h===i&&++A===n&&(c=o),(m=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(s2={focusedElem:t,selectionRange:r},g0=!1,Ze=e;Ze!==null;)if(e=Ze,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ze=t;else for(;Ze!==null;){e=Ze;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,w=g.memoizedState,y=e.stateNode,v=y.getSnapshotBeforeUpdate(e.elementType===e.type?p:Ha(e.type,p),w);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var j=e.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(S){Pr(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,Ze=t;break}Ze=e.return}return g=VB,VB=!1,g}function Qm(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&v2(e,r,i)}a=a.next}while(a!==n)}}function Ry(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function b2(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Q8(t){var e=t.alternate;e!==null&&(t.alternate=null,Q8(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[bi],delete e[pf],delete e[o2],delete e[NO],delete e[CO])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function D8(t){return t.tag===5||t.tag===3||t.tag===4}function zB(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||D8(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function w2(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=v0));else if(n!==4&&(t=t.child,t!==null))for(w2(t,e,r),t=t.sibling;t!==null;)w2(t,e,r),t=t.sibling}function j2(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(j2(t,e,r),t=t.sibling;t!==null;)j2(t,e,r),t=t.sibling}var wn=null,Wa=!1;function qo(t,e,r){for(r=r.child;r!==null;)R8(t,e,r),r=r.sibling}function R8(t,e,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(Py,r)}catch{}switch(r.tag){case 5:On||JA(r,e);case 6:var n=wn,a=Wa;wn=null,qo(t,e,r),wn=n,Wa=a,wn!==null&&(Wa?(t=wn,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):wn.removeChild(r.stateNode));break;case 18:wn!==null&&(Wa?(t=wn,r=r.stateNode,t.nodeType===8?rw(t.parentNode,r):t.nodeType===1&&rw(t,r),Af(t)):rw(wn,r.stateNode));break;case 4:n=wn,a=Wa,wn=r.stateNode.containerInfo,Wa=!0,qo(t,e,r),wn=n,Wa=a;break;case 0:case 11:case 14:case 15:if(!On&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&v2(r,e,o),a=a.next}while(a!==n)}qo(t,e,r);break;case 1:if(!On&&(JA(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Pr(r,e,l)}qo(t,e,r);break;case 21:qo(t,e,r);break;case 22:r.mode&1?(On=(n=On)||r.memoizedState!==null,qo(t,e,r),On=n):qo(t,e,r);break;default:qo(t,e,r)}}function WB(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new OO),e.forEach(function(n){var a=JO.bind(null,t,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Ua(t,e){var r=e.deletions;if(r!==null)for(var n=0;na&&(a=o),n&=~i}if(n=a,n=Hr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VO(n/1960))-n,10t?16:t,Sl===null)var n=!1;else{if(t=Sl,Sl=null,T0=0,Ot&6)throw Error(Te(331));var a=Ot;for(Ot|=4,Ze=t.current;Ze!==null;){var i=Ze,o=i.child;if(Ze.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cHr()-n4?ed(t,0):r4|=r),Ss(t,e)}function G8(t,e){e===0&&(t.mode&1?(e=Ng,Ng<<=1,!(Ng&130023424)&&(Ng=4194304)):e=1);var r=as();t=wo(t,e),t!==null&&(ip(t,e,r),Ss(t,r))}function YO(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),G8(t,r)}function JO(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(Te(314))}n!==null&&n.delete(e),G8(t,r)}var q8;q8=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Cs.current)js=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return js=!1,QO(t,e,r);js=!!(t.flags&131072)}else js=!1,xr&&e.flags&1048576&&ZF(e,N0,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Dx(t,e),t=e.pendingProps;var a=Qu(e,Wn.current);Au(e,r),a=Y5(null,e,n,t,a,r);var i=J5();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Bs(n)?(i=!0,w0(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,z5(e),a.updater=Dy,e.stateNode=a,a._reactInternals=e,h2(e,n,t,r),e=p2(null,e,n,!0,i,r)):(e.tag=0,xr&&i&&Q5(e),rs(null,e,a,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Dx(t,e),t=e.pendingProps,a=n._init,n=a(n._payload),e.type=n,a=e.tag=ZO(n),t=Ha(n,t),a){case 0:e=f2(null,e,n,t,r);break e;case 1:e=OB(null,e,n,t,r);break e;case 11:e=DB(null,e,n,t,r);break e;case 14:e=RB(null,e,n,Ha(n.type,t),r);break e}throw Error(Te(306,n,""))}return e;case 0:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Ha(n,a),f2(t,e,n,a,r);case 1:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Ha(n,a),OB(t,e,n,a,r);case 3:e:{if(P8(e),t===null)throw Error(Te(387));n=e.pendingProps,i=e.memoizedState,a=i.element,a8(t,e),S0(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=Hu(Error(Te(423)),e),e=HB(t,e,n,r,a);break e}else if(n!==a){a=Hu(Error(Te(424)),e),e=HB(t,e,n,r,a);break e}else for(Os=Ml(e.stateNode.containerInfo.firstChild),zs=e,xr=!0,Ga=null,r=n8(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Du(),n===a){e=jo(t,e,r);break e}rs(t,e,n,r)}e=e.child}return e;case 5:return i8(e),t===null&&d2(e),n=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,o=a.children,a2(n,a)?o=null:i!==null&&a2(n,i)&&(e.flags|=32),I8(t,e),rs(t,e,o,r),e.child;case 6:return t===null&&d2(e),null;case 13:return T8(t,e,r);case 4:return W5(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ru(e,null,n,r):rs(t,e,n,r),e.child;case 11:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Ha(n,a),DB(t,e,n,a,r);case 7:return rs(t,e,e.pendingProps,r),e.child;case 8:return rs(t,e,e.pendingProps.children,r),e.child;case 12:return rs(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dr(C0,n._currentValue),n._currentValue=o,i!==null)if(Xa(i.value,o)){if(i.children===a.children&&!Cs.current){e=jo(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=go(-1,r&-r),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var A=d.pending;A===null?c.next=c:(c.next=A.next,A.next=c),d.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),A2(i.return,r,e),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(Te(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),A2(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}rs(t,e,a.children,r),e=e.child}return e;case 9:return a=e.type,n=e.pendingProps.children,Au(e,r),a=wa(a),n=n(a),e.flags|=1,rs(t,e,n,r),e.child;case 14:return n=e.type,a=Ha(n,e.pendingProps),a=Ha(n.type,a),RB(t,e,n,a,r);case 15:return E8(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Ha(n,a),Dx(t,e),e.tag=1,Bs(n)?(t=!0,w0(e)):t=!1,Au(e,r),B8(e,n,a),h2(e,n,a,r),p2(null,e,n,!0,t,r);case 19:return L8(t,e,r);case 22:return F8(t,e,r)}throw Error(Te(156,e.tag))};function Y8(t,e){return jF(t,e)}function XO(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(t,e,r,n){return new XO(t,e,r,n)}function o4(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ZO(t){if(typeof t=="function")return o4(t)?1:0;if(t!=null){if(t=t.$$typeof,t===B5)return 11;if(t===S5)return 14}return 2}function Ol(t,e){var r=t.alternate;return r===null?(r=ga(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Hx(t,e,r,n,a,i){var o=2;if(n=t,typeof t=="function")o4(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case HA:return td(r.children,a,i,e);case C5:o=8,a|=8;break;case M1:return t=ga(12,r,e,a|2),t.elementType=M1,t.lanes=i,t;case Q1:return t=ga(13,r,e,a),t.elementType=Q1,t.lanes=i,t;case D1:return t=ga(19,r,e,a),t.elementType=D1,t.lanes=i,t;case iF:return Hy(r,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case sF:o=10;break e;case aF:o=9;break e;case B5:o=11;break e;case S5:o=14;break e;case il:o=16,n=null;break e}throw Error(Te(130,t==null?t:typeof t,""))}return e=ga(o,r,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function td(t,e,r,n){return t=ga(7,t,n,e),t.lanes=r,t}function Hy(t,e,r,n){return t=ga(22,t,n,e),t.elementType=iF,t.lanes=r,t.stateNode={isHidden:!1},t}function dw(t,e,r){return t=ga(6,t,null,e),t.lanes=r,t}function Aw(t,e,r){return e=ga(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function e9(t,e,r,n,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zb(0),this.expirationTimes=zb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zb(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function l4(t,e,r,n,a,i,o,l,c){return t=new e9(t,e,r,l,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ga(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},z5(i),t}function t9(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eI)}catch(t){console.error(t)}}eI(),eF.exports=Js;var Fd=eF.exports;const tI=Sd(Fd);var rI,e3=Fd;rI=e3.createRoot,e3.hydrateRoot;const i9=1,o9=1e6;let uw=0;function l9(){return uw=(uw+1)%Number.MAX_SAFE_INTEGER,uw.toString()}const hw=new Map,t3=t=>{if(hw.has(t))return;const e=setTimeout(()=>{hw.delete(t),Om({type:"REMOVE_TOAST",toastId:t})},o9);hw.set(t,e)},c9=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,i9)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?t3(r):t.toasts.forEach(n=>{t3(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Kx=[];let Vx={toasts:[]};function Om(t){Vx=c9(Vx,t),Kx.forEach(e=>{e(Vx)})}function d9({...t}){const e=l9(),r=a=>Om({type:"UPDATE_TOAST",toast:{...a,id:e}}),n=()=>Om({type:"DISMISS_TOAST",toastId:e});return Om({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:a=>{a||n()}}}),{id:e,dismiss:n,update:r}}function ih(){const[t,e]=b.useState(Vx);return b.useEffect(()=>(Kx.push(e),()=>{const r=Kx.indexOf(e);r>-1&&Kx.splice(r,1)}),[t]),{...t,toast:d9,dismiss:r=>Om({type:"DISMISS_TOAST",toastId:r})}}function st(t,e,{checkForDefaultPrevented:r=!0}={}){return function(a){if(t==null||t(a),r===!1||!a.defaultPrevented)return e==null?void 0:e(a)}}function A9(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function nI(...t){return e=>t.forEach(r=>A9(r,e))}function er(...t){return b.useCallback(nI(...t),t)}function u9(t,e=[]){let r=[];function n(i,o){const l=b.createContext(o),c=r.length;r=[...r,o];function d(u){const{scope:h,children:m,...g}=u,p=(h==null?void 0:h[t][c])||l,w=b.useMemo(()=>g,Object.values(g));return s.jsx(p.Provider,{value:w,children:m})}function A(u,h){const m=(h==null?void 0:h[t][c])||l,g=b.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,A]}const a=()=>{const i=r.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[t])||i;return b.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return a.scopeName=t,[n,h9(a,...e)]}function h9(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const u=c(i)[`__scope${d}`];return{...l,...u}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var ql=b.forwardRef((t,e)=>{const{children:r,...n}=t,a=b.Children.toArray(r),i=a.find(m9);if(i){const o=i.props.children,l=a.map(c=>c===i?b.Children.count(o)>1?b.Children.only(null):b.isValidElement(o)?o.props.children:null:c);return s.jsx(k2,{...n,ref:e,children:b.isValidElement(o)?b.cloneElement(o,void 0,l):null})}return s.jsx(k2,{...n,ref:e,children:r})});ql.displayName="Slot";var k2=b.forwardRef((t,e)=>{const{children:r,...n}=t;if(b.isValidElement(r)){const a=p9(r);return b.cloneElement(r,{...f9(n,r.props),ref:e?nI(e,a):a})}return b.Children.count(r)>1?b.Children.only(null):null});k2.displayName="SlotClone";var sI=({children:t})=>s.jsx(s.Fragment,{children:t});function m9(t){return b.isValidElement(t)&&t.type===sI}function f9(t,e){const r={...e};for(const n in e){const a=t[n],i=e[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{i(...l),a(...l)}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...t,...r}}function p9(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function aI(t){const e=t+"CollectionProvider",[r,n]=u9(e),[a,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:g,children:p}=m,w=Ue.useRef(null),y=Ue.useRef(new Map).current;return s.jsx(a,{scope:g,itemMap:y,collectionRef:w,children:p})};o.displayName=e;const l=t+"CollectionSlot",c=Ue.forwardRef((m,g)=>{const{scope:p,children:w}=m,y=i(l,p),v=er(g,y.collectionRef);return s.jsx(ql,{ref:v,children:w})});c.displayName=l;const d=t+"CollectionItemSlot",A="data-radix-collection-item",u=Ue.forwardRef((m,g)=>{const{scope:p,children:w,...y}=m,v=Ue.useRef(null),j=er(g,v),S=i(d,p);return Ue.useEffect(()=>(S.itemMap.set(v,{ref:v,...y}),()=>void S.itemMap.delete(v))),s.jsx(ql,{[A]:"",ref:j,children:w})});u.displayName=d;function h(m){const g=i(t+"CollectionConsumer",m);return Ue.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${A}]`));return Array.from(g.itemMap.values()).sort((S,F)=>y.indexOf(S.ref.current)-y.indexOf(F.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:c,ItemSlot:u},h,n]}function g9(t,e){const r=b.createContext(e),n=i=>{const{children:o,...l}=i,c=b.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:o})};n.displayName=t+"Provider";function a(i){const o=b.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,a]}function Id(t,e=[]){let r=[];function n(i,o){const l=b.createContext(o),c=r.length;r=[...r,o];const d=u=>{var y;const{scope:h,children:m,...g}=u,p=((y=h==null?void 0:h[t])==null?void 0:y[c])||l,w=b.useMemo(()=>g,Object.values(g));return s.jsx(p.Provider,{value:w,children:m})};d.displayName=i+"Provider";function A(u,h){var p;const m=((p=h==null?void 0:h[t])==null?void 0:p[c])||l,g=b.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[d,A]}const a=()=>{const i=r.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[t])||i;return b.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return a.scopeName=t,[n,x9(a,...e)]}function x9(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const u=c(i)[`__scope${d}`];return{...l,...u}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}var y9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Et=y9.reduce((t,e)=>{const r=b.forwardRef((n,a)=>{const{asChild:i,...o}=n,l=i?ql:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(l,{...o,ref:a})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function iI(t,e){t&&Fd.flushSync(()=>t.dispatchEvent(e))}function Ys(t){const e=b.useRef(t);return b.useEffect(()=>{e.current=t}),b.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function v9(t,e=globalThis==null?void 0:globalThis.document){const r=Ys(t);b.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var b9="DismissableLayer",E2="dismissableLayer.update",w9="dismissableLayer.pointerDownOutside",j9="dismissableLayer.focusOutside",r3,oI=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oh=b.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=t,d=b.useContext(oI),[A,u]=b.useState(null),h=(A==null?void 0:A.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),g=er(e,M=>u(M)),p=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(w),v=A?p.indexOf(A):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,S=v>=y,F=C9(M=>{const P=M.target,W=[...d.branches].some($=>$.contains(P));!S||W||(a==null||a(M),o==null||o(M),M.defaultPrevented||l==null||l())},h),U=B9(M=>{const P=M.target;[...d.branches].some($=>$.contains(P))||(i==null||i(M),o==null||o(M),M.defaultPrevented||l==null||l())},h);return v9(M=>{v===d.layers.size-1&&(n==null||n(M),!M.defaultPrevented&&l&&(M.preventDefault(),l()))},h),b.useEffect(()=>{if(A)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(r3=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(A)),d.layers.add(A),n3(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=r3)}},[A,h,r,d]),b.useEffect(()=>()=>{A&&(d.layers.delete(A),d.layersWithOutsidePointerEventsDisabled.delete(A),n3())},[A,d]),b.useEffect(()=>{const M=()=>m({});return document.addEventListener(E2,M),()=>document.removeEventListener(E2,M)},[]),s.jsx(Et.div,{...c,ref:g,style:{pointerEvents:j?S?"auto":"none":void 0,...t.style},onFocusCapture:st(t.onFocusCapture,U.onFocusCapture),onBlurCapture:st(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:st(t.onPointerDownCapture,F.onPointerDownCapture)})});oh.displayName=b9;var N9="DismissableLayerBranch",lI=b.forwardRef((t,e)=>{const r=b.useContext(oI),n=b.useRef(null),a=er(e,n);return b.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),s.jsx(Et.div,{...t,ref:a})});lI.displayName=N9;function C9(t,e=globalThis==null?void 0:globalThis.document){const r=Ys(t),n=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){cI(w9,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",a.current),a.current=c,e.addEventListener("click",a.current,{once:!0})):c()}else e.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",a.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function B9(t,e=globalThis==null?void 0:globalThis.document){const r=Ys(t),n=b.useRef(!1);return b.useEffect(()=>{const a=i=>{i.target&&!n.current&&cI(j9,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",a),()=>e.removeEventListener("focusin",a)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function n3(){const t=new CustomEvent(E2);document.dispatchEvent(t)}function cI(t,e,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&a.addEventListener(t,e,{once:!0}),n?iI(a,i):a.dispatchEvent(i)}var S9=oh,k9=lI,$n=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},E9="Portal",$y=b.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[a,i]=b.useState(!1);$n(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?tI.createPortal(s.jsx(Et.div,{...n,ref:e}),o):null});$y.displayName=E9;function F9(t,e){return b.useReducer((r,n)=>e[r][n]??r,t)}var Ac=t=>{const{present:e,children:r}=t,n=I9(e),a=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),i=er(n.ref,P9(a));return typeof r=="function"||n.isPresent?b.cloneElement(a,{ref:i}):null};Ac.displayName="Presence";function I9(t){const[e,r]=b.useState(),n=b.useRef({}),a=b.useRef(t),i=b.useRef("none"),o=t?"mounted":"unmounted",[l,c]=F9(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const d=_g(n.current);i.current=l==="mounted"?d:"none"},[l]),$n(()=>{const d=n.current,A=a.current;if(A!==t){const h=i.current,m=_g(d);t?c("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(A&&h!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=t}},[t,c]),$n(()=>{if(e){let d;const A=e.ownerDocument.defaultView??window,u=m=>{const p=_g(n.current).includes(m.animationName);if(m.target===e&&p&&(c("ANIMATION_END"),!a.current)){const w=e.style.animationFillMode;e.style.animationFillMode="forwards",d=A.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=w)})}},h=m=>{m.target===e&&(i.current=_g(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{A.clearTimeout(d),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function _g(t){return(t==null?void 0:t.animationName)||"none"}function P9(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Yl({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,a]=T9({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,l=Ys(r),c=b.useCallback(d=>{if(i){const u=typeof d=="function"?d(t):d;u!==t&&l(u)}else a(d)},[i,t,a,l]);return[o,c]}function T9({defaultProp:t,onChange:e}){const r=b.useState(t),[n]=r,a=b.useRef(n),i=Ys(e);return b.useEffect(()=>{a.current!==n&&(i(n),a.current=n)},[n,a,i]),r}var L9="VisuallyHidden",dp=b.forwardRef((t,e)=>s.jsx(Et.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));dp.displayName=L9;var U9=dp,u4="ToastProvider",[h4,_9,M9]=aI("Toast"),[dI,jfe]=Id("Toast",[M9]),[Q9,Gy]=dI(u4),AI=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=t,[l,c]=b.useState(null),[d,A]=b.useState(0),u=b.useRef(!1),h=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${u4}\`. Expected non-empty \`string\`.`),s.jsx(h4.Provider,{scope:e,children:s.jsx(Q9,{scope:e,label:r,duration:n,swipeDirection:a,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:b.useCallback(()=>A(m=>m+1),[]),onToastRemove:b.useCallback(()=>A(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:h,children:o})})};AI.displayName=u4;var uI="ToastViewport",D9=["F8"],F2="toast.viewportPause",I2="toast.viewportResume",hI=b.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=D9,label:a="Notifications ({hotkey})",...i}=t,o=Gy(uI,r),l=_9(r),c=b.useRef(null),d=b.useRef(null),A=b.useRef(null),u=b.useRef(null),h=er(e,u,o.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;b.useEffect(()=>{const w=y=>{var j;n.length!==0&&n.every(S=>y[S]||y.code===S)&&((j=u.current)==null||j.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),b.useEffect(()=>{const w=c.current,y=u.current;if(g&&w&&y){const v=()=>{if(!o.isClosePausedRef.current){const U=new CustomEvent(F2);y.dispatchEvent(U),o.isClosePausedRef.current=!0}},j=()=>{if(o.isClosePausedRef.current){const U=new CustomEvent(I2);y.dispatchEvent(U),o.isClosePausedRef.current=!1}},S=U=>{!w.contains(U.relatedTarget)&&j()},F=()=>{w.contains(document.activeElement)||j()};return w.addEventListener("focusin",v),w.addEventListener("focusout",S),w.addEventListener("pointermove",v),w.addEventListener("pointerleave",F),window.addEventListener("blur",v),window.addEventListener("focus",j),()=>{w.removeEventListener("focusin",v),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",v),w.removeEventListener("pointerleave",F),window.removeEventListener("blur",v),window.removeEventListener("focus",j)}}},[g,o.isClosePausedRef]);const p=b.useCallback(({tabbingDirection:w})=>{const v=l().map(j=>{const S=j.ref.current,F=[S,...X9(S)];return w==="forwards"?F:F.reverse()});return(w==="forwards"?v.reverse():v).flat()},[l]);return b.useEffect(()=>{const w=u.current;if(w){const y=v=>{var F,U,M;const j=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!j){const P=document.activeElement,W=v.shiftKey;if(v.target===w&&W){(F=d.current)==null||F.focus();return}const k=p({tabbingDirection:W?"backwards":"forwards"}),_=k.findIndex(T=>T===P);mw(k.slice(_+1))?v.preventDefault():W?(U=d.current)==null||U.focus():(M=A.current)==null||M.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[l,p]),s.jsxs(k9,{ref:c,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&s.jsx(P2,{ref:d,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});mw(w)}}),s.jsx(h4.Slot,{scope:r,children:s.jsx(Et.ol,{tabIndex:-1,...i,ref:h})}),g&&s.jsx(P2,{ref:A,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});mw(w)}})]})});hI.displayName=uI;var mI="ToastFocusProxy",P2=b.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=t,i=Gy(mI,r);return s.jsx(dp,{"aria-hidden":!0,tabIndex:0,...a,ref:e,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&n()}})});P2.displayName=mI;var qy="Toast",R9="toast.swipeStart",O9="toast.swipeMove",H9="toast.swipeCancel",K9="toast.swipeEnd",fI=b.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:i,...o}=t,[l=!0,c]=Yl({prop:n,defaultProp:a,onChange:i});return s.jsx(Ac,{present:r||l,children:s.jsx(W9,{open:l,...o,ref:e,onClose:()=>c(!1),onPause:Ys(t.onPause),onResume:Ys(t.onResume),onSwipeStart:st(t.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:st(t.onSwipeMove,d=>{const{x:A,y:u}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${A}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${u}px`)}),onSwipeCancel:st(t.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:st(t.onSwipeEnd,d=>{const{x:A,y:u}=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",`${A}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${u}px`),c(!1)})})})});fI.displayName=qy;var[V9,z9]=dI(qy,{onClose(){}}),W9=b.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:A,onSwipeMove:u,onSwipeCancel:h,onSwipeEnd:m,...g}=t,p=Gy(qy,r),[w,y]=b.useState(null),v=er(e,T=>y(T)),j=b.useRef(null),S=b.useRef(null),F=a||p.duration,U=b.useRef(0),M=b.useRef(F),P=b.useRef(0),{onToastAdd:W,onToastRemove:$}=p,B=Ys(()=>{var oe;(w==null?void 0:w.contains(document.activeElement))&&((oe=p.viewport)==null||oe.focus()),o()}),k=b.useCallback(T=>{!T||T===1/0||(window.clearTimeout(P.current),U.current=new Date().getTime(),P.current=window.setTimeout(B,T))},[B]);b.useEffect(()=>{const T=p.viewport;if(T){const oe=()=>{k(M.current),d==null||d()},V=()=>{const J=new Date().getTime()-U.current;M.current=M.current-J,window.clearTimeout(P.current),c==null||c()};return T.addEventListener(F2,V),T.addEventListener(I2,oe),()=>{T.removeEventListener(F2,V),T.removeEventListener(I2,oe)}}},[p.viewport,F,c,d,k]),b.useEffect(()=>{i&&!p.isClosePausedRef.current&&k(F)},[i,F,p.isClosePausedRef,k]),b.useEffect(()=>(W(),()=>$()),[W,$]);const _=b.useMemo(()=>w?wI(w):null,[w]);return p.viewport?s.jsxs(s.Fragment,{children:[_&&s.jsx($9,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:_}),s.jsx(V9,{scope:r,onClose:B,children:Fd.createPortal(s.jsx(h4.ItemSlot,{scope:r,children:s.jsx(S9,{asChild:!0,onEscapeKeyDown:st(l,()=>{p.isFocusedToastEscapeKeyDownRef.current||B(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Et.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...g,ref:v,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:st(t.onKeyDown,T=>{T.key==="Escape"&&(l==null||l(T.nativeEvent),T.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:st(t.onPointerDown,T=>{T.button===0&&(j.current={x:T.clientX,y:T.clientY})}),onPointerMove:st(t.onPointerMove,T=>{if(!j.current)return;const oe=T.clientX-j.current.x,V=T.clientY-j.current.y,J=!!S.current,Q=["left","right"].includes(p.swipeDirection),q=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,ie=Q?q(0,oe):0,te=Q?0:q(0,V),I=T.pointerType==="touch"?10:2,L={x:ie,y:te},K={originalEvent:T,delta:L};J?(S.current=L,Mg(O9,u,K,{discrete:!1})):s3(L,p.swipeDirection,I)?(S.current=L,Mg(R9,A,K,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(oe)>I||Math.abs(V)>I)&&(j.current=null)}),onPointerUp:st(t.onPointerUp,T=>{const oe=S.current,V=T.target;if(V.hasPointerCapture(T.pointerId)&&V.releasePointerCapture(T.pointerId),S.current=null,j.current=null,oe){const J=T.currentTarget,Q={originalEvent:T,delta:oe};s3(oe,p.swipeDirection,p.swipeThreshold)?Mg(K9,m,Q,{discrete:!0}):Mg(H9,h,Q,{discrete:!0}),J.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),$9=t=>{const{__scopeToast:e,children:r,...n}=t,a=Gy(qy,e),[i,o]=b.useState(!1),[l,c]=b.useState(!1);return Y9(()=>o(!0)),b.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:s.jsx($y,{asChild:!0,children:s.jsx(dp,{...n,children:i&&s.jsxs(s.Fragment,{children:[a.label," ",r]})})})},G9="ToastTitle",pI=b.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return s.jsx(Et.div,{...n,ref:e})});pI.displayName=G9;var q9="ToastDescription",gI=b.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return s.jsx(Et.div,{...n,ref:e})});gI.displayName=q9;var xI="ToastAction",yI=b.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?s.jsx(bI,{altText:r,asChild:!0,children:s.jsx(m4,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${xI}\`. Expected non-empty \`string\`.`),null)});yI.displayName=xI;var vI="ToastClose",m4=b.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,a=z9(vI,r);return s.jsx(bI,{asChild:!0,children:s.jsx(Et.button,{type:"button",...n,ref:e,onClick:st(t.onClick,a.onClose)})})});m4.displayName=vI;var bI=b.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...a}=t;return s.jsx(Et.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:e})});function wI(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),J9(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...wI(n))}}),e}function Mg(t,e,r,{discrete:n}){const a=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&a.addEventListener(t,e,{once:!0}),n?iI(a,i):a.dispatchEvent(i)}var s3=(t,e,r=0)=>{const n=Math.abs(t.x),a=Math.abs(t.y),i=n>a;return e==="left"||e==="right"?i&&n>r:!i&&a>r};function Y9(t=()=>{}){const e=Ys(t);$n(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function J9(t){return t.nodeType===t.ELEMENT_NODE}function X9(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function mw(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var Z9=AI,jI=hI,NI=fI,CI=pI,BI=gI,SI=yI,kI=m4;function EI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;etypeof t=="boolean"?`${t}`:t===0?"0":t,i3=FI,Yy=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return i3(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=e,o=Object.keys(a).map(d=>{const A=r==null?void 0:r[d],u=i==null?void 0:i[d];if(A===null)return null;const h=a3(A)||a3(u);return a[d][h]}),l=r&&Object.entries(r).reduce((d,A)=>{let[u,h]=A;return h===void 0||(d[u]=h),d},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((d,A)=>{let{class:u,className:h,...m}=A;return Object.entries(m).every(g=>{let[p,w]=g;return Array.isArray(w)?w.includes({...i,...l}[p]):{...i,...l}[p]===w})?[...d,u,h]:d},[]);return i3(t,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eH=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),II=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var tH={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"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rH=b.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...l},c)=>b.createElement("svg",{ref:c,...tH,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:II("lucide",a),...l},[...o.map(([d,A])=>b.createElement(d,A)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Le=(t,e)=>{const r=b.forwardRef(({className:n,...a},i)=>b.createElement(rH,{ref:i,iconNode:e,className:II(`lucide-${eH(t)}`,n),...a}));return r.displayName=`${t}`,r};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PI=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nH=Le("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pd=Le("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lr=Le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sH=Le("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jf=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o3=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TI=Le("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iH=Le("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l3=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LI=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f4=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jy=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jr=Le("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ji=Le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lH=Le("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cH=Le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dH=Le("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zn=Le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T2=Le("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AH=Le("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p4=Le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UI=Le("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g4=Le("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uH=Le("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hH=Le("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _I=Le("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xy=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mH=Le("Currency",[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["line",{x1:"3",x2:"6",y1:"3",y2:"6",key:"1jkytn"}],["line",{x1:"21",x2:"18",y1:"3",y2:"6",key:"14zfjt"}],["line",{x1:"3",x2:"6",y1:"21",y2:"18",key:"iusuec"}],["line",{x1:"21",x2:"18",y1:"21",y2:"18",key:"yj2dd7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xo=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MI=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nf=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QI=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fH=Le("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gH=Le("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=Le("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xH=Le("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yH=Le("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gd=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vH=Le("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DI=Le("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wH=Le("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qg=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jH=Le("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x4=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ws=Le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xd=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RI=Le("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fw=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OI=Le("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const HI=Le("MonitorSmartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const KI=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CH=Le("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c3=Le("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SH=Le("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d3=Le("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ll=Le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kH=Le("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pd=Le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EH=Le("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FH=Le("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y4=Le("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dg=Le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zx=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IH=Le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zy=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TH=Le("Skull",[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LH=Le("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v4=Le("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UH=Le("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const No=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ev=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _H=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jl=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MH=Le("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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L2=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hn=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const QH=Le("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"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DH=Le("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Na=Le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RH=Le("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tv=Le("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"}]]),b4="-",OH=t=>{const e=KH(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const l=o.split(b4);return l[0]===""&&l.length!==1&&l.shift(),VI(l,e)||HH(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},VI=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),a=n?VI(t.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;const i=t.join(b4);return(o=e.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},A3=/^\[(.+)\]$/,HH=t=>{if(A3.test(t)){const e=A3.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},KH=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return zH(Object.entries(t.classGroups),r).forEach(([i,o])=>{U2(o,n,i,e)}),n},U2=(t,e,r,n)=>{t.forEach(a=>{if(typeof a=="string"){const i=a===""?e:u3(e,a);i.classGroupId=r;return}if(typeof a=="function"){if(VH(a)){U2(a(n),e,r,n);return}e.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{U2(o,u3(e,i),r,n)})})},u3=(t,e)=>{let r=t;return e.split(b4).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},VH=t=>t.isThemeGetter,zH=(t,e)=>e?t.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[e+o,l])):i);return[r,a]}):t,WH=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},zI="!",$H=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,a=e[0],i=e.length,o=l=>{const c=[];let d=0,A=0,u;for(let w=0;wA?u-A:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:p}};return r?l=>r({className:l,parseClassName:o}):o},GH=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},qH=t=>({cache:WH(t.cacheSize),parseClassName:$H(t),...OH(t)}),YH=/\s+/,JH=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=e,i=[],o=t.trim().split(YH);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:A,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:m}=r(d);let g=!!m,p=n(g?h.substring(0,m):h);if(!p){if(!g){l=d+(l.length>0?" "+l:l);continue}if(p=n(h),!p){l=d+(l.length>0?" "+l:l);continue}g=!1}const w=GH(A).join(":"),y=u?w+zI:w,v=y+p;if(i.includes(v))continue;i.push(v);const j=a(p,g);for(let S=0;S0?" "+l:l)}return l};function XH(){let t=0,e,r,n="";for(;t{if(typeof t=="string")return t;let e,r="";for(let n=0;nu(A),t());return r=qH(d),n=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){const d=n(c);if(d)return d;const A=JH(c,r);return a(c,A),A}return function(){return i(XH.apply(null,arguments))}}const Ar=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},$I=/^\[(?:([a-z-]+):)?(.+)\]$/i,eK=/^\d+\/\d+$/,tK=new Set(["px","full","screen"]),rK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nK=/\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$/,sK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ji=t=>hu(t)||tK.has(t)||eK.test(t),Yo=t=>lh(t,"length",mK),hu=t=>!!t&&!Number.isNaN(Number(t)),pw=t=>lh(t,"number",hu),am=t=>!!t&&Number.isInteger(Number(t)),oK=t=>t.endsWith("%")&&hu(t.slice(0,-1)),Ct=t=>$I.test(t),Jo=t=>rK.test(t),lK=new Set(["length","size","percentage"]),cK=t=>lh(t,lK,GI),dK=t=>lh(t,"position",GI),AK=new Set(["image","url"]),uK=t=>lh(t,AK,pK),hK=t=>lh(t,"",fK),im=()=>!0,lh=(t,e,r)=>{const n=$I.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mK=t=>nK.test(t)&&!sK.test(t),GI=()=>!1,fK=t=>aK.test(t),pK=t=>iK.test(t),gK=()=>{const t=Ar("colors"),e=Ar("spacing"),r=Ar("blur"),n=Ar("brightness"),a=Ar("borderColor"),i=Ar("borderRadius"),o=Ar("borderSpacing"),l=Ar("borderWidth"),c=Ar("contrast"),d=Ar("grayscale"),A=Ar("hueRotate"),u=Ar("invert"),h=Ar("gap"),m=Ar("gradientColorStops"),g=Ar("gradientColorStopPositions"),p=Ar("inset"),w=Ar("margin"),y=Ar("opacity"),v=Ar("padding"),j=Ar("saturate"),S=Ar("scale"),F=Ar("sepia"),U=Ar("skew"),M=Ar("space"),P=Ar("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Ct,e],k=()=>[Ct,e],_=()=>["",Ji,Yo],T=()=>["auto",hu,Ct],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Ct],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[hu,Ct];return{cacheSize:500,separator:":",theme:{colors:[im],spacing:[Ji,Yo],blur:["none","",Jo,Ct],brightness:te(),borderColor:[t],borderRadius:["none","","full",Jo,Ct],borderSpacing:k(),borderWidth:_(),contrast:te(),grayscale:q(),hueRotate:te(),invert:q(),gap:k(),gradientColorStops:[t],gradientColorStopPositions:[oK,Yo],inset:B(),margin:B(),opacity:te(),padding:k(),saturate:te(),scale:te(),sepia:q(),skew:te(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",Ct]}],container:["container"],columns:[{columns:[Jo]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"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:[...oe(),Ct]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",am,Ct]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ct]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",am,Ct]}],"grid-cols":[{"grid-cols":[im]}],"col-start-end":[{col:["auto",{span:["full",am,Ct]},Ct]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[im]}],"row-start-end":[{row:["auto",{span:[am,Ct]},Ct]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ct]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ct]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ct,e]}],"min-w":[{"min-w":[Ct,e,"min","max","fit"]}],"max-w":[{"max-w":[Ct,e,"none","full","min","max","fit","prose",{screen:[Jo]},Jo]}],h:[{h:[Ct,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ct,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ct,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ct,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Jo,Yo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pw]}],"font-family":[{font:[im]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ct]}],"line-clamp":[{"line-clamp":["none",hu,pw]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ji,Ct]}],"list-image":[{"list-image":["none",Ct]}],"list-style-type":[{list:["none","disc","decimal",Ct]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ji,Yo]}],"underline-offset":[{"underline-offset":["auto",Ji,Ct]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ct]}],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",Ct]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),dK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uK]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:V()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Ji,Ct]}],"outline-w":[{outline:[Ji,Yo]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ji,Yo]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Jo,hK]}],"shadow-color":[{shadow:[im]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Jo,Ct]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[A]}],invert:[{invert:[u]}],saturate:[{saturate:[j]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"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",Ct]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Ct]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ct]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[am,Ct]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ct]}],accent:[{accent:["auto",t]}],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",Ct]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ct]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ji,Yo,pw]}],stroke:[{stroke:[t,"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"]}}},xK=ZH(gK);function At(...t){return xK(FI(t))}const yK=Z9,qI=b.forwardRef(({className:t,...e},r)=>s.jsx(jI,{ref:r,className:At("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]",t),...e}));qI.displayName=jI.displayName;const vK=Yy("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"}}),YI=b.forwardRef(({className:t,variant:e,...r},n)=>s.jsx(NI,{ref:n,className:At(vK({variant:e}),t),...r}));YI.displayName=NI.displayName;const bK=b.forwardRef(({className:t,...e},r)=>s.jsx(SI,{ref:r,className:At("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",t),...e}));bK.displayName=SI.displayName;const JI=b.forwardRef(({className:t,...e},r)=>s.jsx(kI,{ref:r,className:At("absolute right-2 top-2 rounded-md p-1 text-foreground/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",t),"toast-close":"",...e,children:s.jsx(Na,{className:"h-4 w-4"})}));JI.displayName=kI.displayName;const XI=b.forwardRef(({className:t,...e},r)=>s.jsx(CI,{ref:r,className:At("text-sm font-semibold",t),...e}));XI.displayName=CI.displayName;const ZI=b.forwardRef(({className:t,...e},r)=>s.jsx(BI,{ref:r,className:At("text-sm opacity-90",t),...e}));ZI.displayName=BI.displayName;function wK(){const{toasts:t}=ih();return s.jsxs(yK,{children:[t.map(function({id:e,title:r,description:n,action:a,...i}){return s.jsxs(YI,{...i,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(XI,{children:r}),n&&s.jsx(ZI,{children:n})]}),a,s.jsx(JI,{})]},e)}),s.jsx(qI,{})]})}var h3=["light","dark"],jK="(prefers-color-scheme: dark)",NK=b.createContext(void 0),CK={setTheme:t=>{},themes:[]},BK=()=>{var t;return(t=b.useContext(NK))!=null?t:CK};b.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let d=i==="system",A=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,u=a?h3.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,p=!1,w=!0)=>{let y=o?o[g]:g,v=p?g+"|| ''":`'${y}'`,j="";return a&&w&&!p&&h3.includes(g)&&(j+=`d.style.colorScheme = '${g}';`),r==="class"?p||y?j+=`c.add(${v})`:j+="null":y&&(j+=`d[s](n,${v})`),j},m=t?`!function(){${A}${h(t)}}()`:n?`!function(){try{${A}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${d})){var t='${jK}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${d?"":"else{"+h(i,!1,!1)+"}"}${u}}catch(e){}}()`:`!function(){try{${A}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${u}}catch(t){}}();`;return b.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var SK=t=>{switch(t){case"success":return FK;case"info":return PK;case"warning":return IK;case"error":return TK;default:return null}},kK=Array(12).fill(0),EK=({visible:t})=>Ue.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},Ue.createElement("div",{className:"sonner-spinner"},kK.map((e,r)=>Ue.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),FK=Ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ue.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),IK=Ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Ue.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),PK=Ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ue.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),TK=Ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ue.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),LK=()=>{let[t,e]=Ue.useState(document.hidden);return Ue.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},_2=1,UK=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let r=this.subscribers.indexOf(e);this.subscribers.splice(r,1)}),this.publish=e=>{this.subscribers.forEach(r=>r(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var r;let{message:n,...a}=e,i=typeof(e==null?void 0:e.id)=="number"||((r=e.id)==null?void 0:r.length)>0?e.id:_2++,o=this.toasts.find(c=>c.id===i),l=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...e,id:i,title:n}),{...c,...e,id:i,dismissible:l,title:n}):c):this.addToast({title:n,...a,dismissible:l,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:e,dismiss:!0})),e),this.message=(e,r)=>this.create({...r,message:e}),this.error=(e,r)=>this.create({...r,message:e,type:"error"}),this.success=(e,r)=>this.create({...r,type:"success",message:e}),this.info=(e,r)=>this.create({...r,type:"info",message:e}),this.warning=(e,r)=>this.create({...r,type:"warning",message:e}),this.loading=(e,r)=>this.create({...r,type:"loading",message:e}),this.promise=(e,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let a=e instanceof Promise?e:e(),i=n!==void 0;return a.then(async o=>{if(MK(o)&&!o.ok){i=!1;let l=typeof r.error=="function"?await r.error(`HTTP error! status: ${o.status}`):r.error,c=typeof r.description=="function"?await r.description(`HTTP error! status: ${o.status}`):r.description;this.create({id:n,type:"error",message:l,description:c})}else if(r.success!==void 0){i=!1;let l=typeof r.success=="function"?await r.success(o):r.success,c=typeof r.description=="function"?await r.description(o):r.description;this.create({id:n,type:"success",message:l,description:c})}}).catch(async o=>{if(r.error!==void 0){i=!1;let l=typeof r.error=="function"?await r.error(o):r.error,c=typeof r.description=="function"?await r.description(o):r.description;this.create({id:n,type:"error",message:l,description:c})}}).finally(()=>{var o;i&&(this.dismiss(n),n=void 0),(o=r.finally)==null||o.call(r)}),n},this.custom=(e,r)=>{let n=(r==null?void 0:r.id)||_2++;return this.create({jsx:e(n),id:n,...r}),n},this.subscribers=[],this.toasts=[]}},Ms=new UK,_K=(t,e)=>{let r=(e==null?void 0:e.id)||_2++;return Ms.addToast({title:t,...e,id:r}),r},MK=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",QK=_K,DK=()=>Ms.toasts;Object.assign(QK,{success:Ms.success,info:Ms.info,warning:Ms.warning,error:Ms.error,custom:Ms.custom,message:Ms.message,promise:Ms.promise,dismiss:Ms.dismiss,loading:Ms.loading},{getHistory:DK});function RK(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}RK(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Rg(t){return t.label!==void 0}var OK=3,HK="32px",KK=4e3,VK=356,zK=14,WK=20,$K=200;function GK(...t){return t.filter(Boolean).join(" ")}var qK=t=>{var e,r,n,a,i,o,l,c,d,A;let{invert:u,toast:h,unstyled:m,interacting:g,setHeights:p,visibleToasts:w,heights:y,index:v,toasts:j,expanded:S,removeToast:F,defaultRichColors:U,closeButton:M,style:P,cancelButtonStyle:W,actionButtonStyle:$,className:B="",descriptionClassName:k="",duration:_,position:T,gap:oe,loadingIcon:V,expandByDefault:J,classNames:Q,icons:q,closeButtonAriaLabel:ie="Close toast",pauseWhenPageIsHidden:te,cn:I}=t,[L,K]=Ue.useState(!1),[Z,ne]=Ue.useState(!1),[Y,se]=Ue.useState(!1),[ce,ve]=Ue.useState(!1),[be,Se]=Ue.useState(0),[Pe,we]=Ue.useState(0),he=Ue.useRef(null),re=Ue.useRef(null),Ve=v===0,Ge=v+1<=w,Ce=h.type,Ie=h.dismissible!==!1,Oe=h.className||"",Re=h.descriptionClassName||"",tt=Ue.useMemo(()=>y.findIndex(We=>We.toastId===h.id)||0,[y,h.id]),ht=Ue.useMemo(()=>{var We;return(We=h.closeButton)!=null?We:M},[h.closeButton,M]),pt=Ue.useMemo(()=>h.duration||_||KK,[h.duration,_]),wt=Ue.useRef(0),Bt=Ue.useRef(0),Ht=Ue.useRef(0),nt=Ue.useRef(null),[St,ze]=T.split("-"),tn=Ue.useMemo(()=>y.reduce((We,Dt,lt)=>lt>=tt?We:We+Dt.height,0),[y,tt]),_t=LK(),Es=h.invert||u,Kt=Ce==="loading";Bt.current=Ue.useMemo(()=>tt*oe+tn,[tt,tn]),Ue.useEffect(()=>{K(!0)},[]),Ue.useLayoutEffect(()=>{if(!L)return;let We=re.current,Dt=We.style.height;We.style.height="auto";let lt=We.getBoundingClientRect().height;We.style.height=Dt,we(lt),p(Br=>Br.find(Wr=>Wr.toastId===h.id)?Br.map(Wr=>Wr.toastId===h.id?{...Wr,height:lt}:Wr):[{toastId:h.id,height:lt,position:h.position},...Br])},[L,h.title,h.description,p,h.id]);let Qt=Ue.useCallback(()=>{ne(!0),Se(Bt.current),p(We=>We.filter(Dt=>Dt.toastId!==h.id)),setTimeout(()=>{F(h)},$K)},[h,F,p,Bt]);Ue.useEffect(()=>{if(h.promise&&Ce==="loading"||h.duration===1/0||h.type==="loading")return;let We,Dt=pt;return S||g||te&&_t?(()=>{if(Ht.current{var lt;(lt=h.onAutoClose)==null||lt.call(h,h),Qt()},Dt)),()=>clearTimeout(We)},[S,g,J,h,pt,Qt,h.promise,Ce,te,_t]),Ue.useEffect(()=>{let We=re.current;if(We){let Dt=We.getBoundingClientRect().height;return we(Dt),p(lt=>[{toastId:h.id,height:Dt,position:h.position},...lt]),()=>p(lt=>lt.filter(Br=>Br.toastId!==h.id))}},[p,h.id]),Ue.useEffect(()=>{h.delete&&Qt()},[Qt,h.delete]);function ea(){return q!=null&&q.loading?Ue.createElement("div",{className:"sonner-loader","data-visible":Ce==="loading"},q.loading):V?Ue.createElement("div",{className:"sonner-loader","data-visible":Ce==="loading"},V):Ue.createElement(EK,{visible:Ce==="loading"})}return Ue.createElement("li",{"aria-live":h.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:re,className:I(B,Oe,Q==null?void 0:Q.toast,(e=h==null?void 0:h.classNames)==null?void 0:e.toast,Q==null?void 0:Q.default,Q==null?void 0:Q[Ce],(r=h==null?void 0:h.classNames)==null?void 0:r[Ce]),"data-sonner-toast":"","data-rich-colors":(n=h.richColors)!=null?n:U,"data-styled":!(h.jsx||h.unstyled||m),"data-mounted":L,"data-promise":!!h.promise,"data-removed":Z,"data-visible":Ge,"data-y-position":St,"data-x-position":ze,"data-index":v,"data-front":Ve,"data-swiping":Y,"data-dismissible":Ie,"data-type":Ce,"data-invert":Es,"data-swipe-out":ce,"data-expanded":!!(S||J&&L),style:{"--index":v,"--toasts-before":v,"--z-index":j.length-v,"--offset":`${Z?be:Bt.current}px`,"--initial-height":J?"auto":`${Pe}px`,...P,...h.style},onPointerDown:We=>{Kt||!Ie||(he.current=new Date,Se(Bt.current),We.target.setPointerCapture(We.pointerId),We.target.tagName!=="BUTTON"&&(se(!0),nt.current={x:We.clientX,y:We.clientY}))},onPointerUp:()=>{var We,Dt,lt,Br;if(ce||!Ie)return;nt.current=null;let Wr=Number(((We=re.current)==null?void 0:We.style.getPropertyValue("--swipe-amount").replace("px",""))||0),tr=new Date().getTime()-((Dt=he.current)==null?void 0:Dt.getTime()),mt=Math.abs(Wr)/tr;if(Math.abs(Wr)>=WK||mt>.11){Se(Bt.current),(lt=h.onDismiss)==null||lt.call(h,h),Qt(),ve(!0);return}(Br=re.current)==null||Br.style.setProperty("--swipe-amount","0px"),se(!1)},onPointerMove:We=>{var Dt;if(!nt.current||!Ie)return;let lt=We.clientY-nt.current.y,Br=We.clientX-nt.current.x,Wr=(St==="top"?Math.min:Math.max)(0,lt),tr=We.pointerType==="touch"?10:2;Math.abs(Wr)>tr?(Dt=re.current)==null||Dt.style.setProperty("--swipe-amount",`${lt}px`):Math.abs(Br)>tr&&(nt.current=null)}},ht&&!h.jsx?Ue.createElement("button",{"aria-label":ie,"data-disabled":Kt,"data-close-button":!0,onClick:Kt||!Ie?()=>{}:()=>{var We;Qt(),(We=h.onDismiss)==null||We.call(h,h)},className:I(Q==null?void 0:Q.closeButton,(a=h==null?void 0:h.classNames)==null?void 0:a.closeButton)},Ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Ue.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ue.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,h.jsx||Ue.isValidElement(h.title)?h.jsx||h.title:Ue.createElement(Ue.Fragment,null,Ce||h.icon||h.promise?Ue.createElement("div",{"data-icon":"",className:I(Q==null?void 0:Q.icon,(i=h==null?void 0:h.classNames)==null?void 0:i.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||ea():null,h.type!=="loading"?h.icon||(q==null?void 0:q[Ce])||SK(Ce):null):null,Ue.createElement("div",{"data-content":"",className:I(Q==null?void 0:Q.content,(o=h==null?void 0:h.classNames)==null?void 0:o.content)},Ue.createElement("div",{"data-title":"",className:I(Q==null?void 0:Q.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},h.title),h.description?Ue.createElement("div",{"data-description":"",className:I(k,Re,Q==null?void 0:Q.description,(c=h==null?void 0:h.classNames)==null?void 0:c.description)},h.description):null),Ue.isValidElement(h.cancel)?h.cancel:h.cancel&&Rg(h.cancel)?Ue.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||W,onClick:We=>{var Dt,lt;Rg(h.cancel)&&Ie&&((lt=(Dt=h.cancel).onClick)==null||lt.call(Dt,We),Qt())},className:I(Q==null?void 0:Q.cancelButton,(d=h==null?void 0:h.classNames)==null?void 0:d.cancelButton)},h.cancel.label):null,Ue.isValidElement(h.action)?h.action:h.action&&Rg(h.action)?Ue.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||$,onClick:We=>{var Dt,lt;Rg(h.action)&&(We.defaultPrevented||((lt=(Dt=h.action).onClick)==null||lt.call(Dt,We),Qt()))},className:I(Q==null?void 0:Q.actionButton,(A=h==null?void 0:h.classNames)==null?void 0:A.actionButton)},h.action.label):null))};function m3(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}var YK=t=>{let{invert:e,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:a,closeButton:i,className:o,offset:l,theme:c="light",richColors:d,duration:A,style:u,visibleToasts:h=OK,toastOptions:m,dir:g=m3(),gap:p=zK,loadingIcon:w,icons:y,containerAriaLabel:v="Notifications",pauseWhenPageIsHidden:j,cn:S=GK}=t,[F,U]=Ue.useState([]),M=Ue.useMemo(()=>Array.from(new Set([r].concat(F.filter(te=>te.position).map(te=>te.position)))),[F,r]),[P,W]=Ue.useState([]),[$,B]=Ue.useState(!1),[k,_]=Ue.useState(!1),[T,oe]=Ue.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=Ue.useRef(null),J=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=Ue.useRef(null),q=Ue.useRef(!1),ie=Ue.useCallback(te=>{var I;(I=F.find(L=>L.id===te.id))!=null&&I.delete||Ms.dismiss(te.id),U(L=>L.filter(({id:K})=>K!==te.id))},[F]);return Ue.useEffect(()=>Ms.subscribe(te=>{if(te.dismiss){U(I=>I.map(L=>L.id===te.id?{...L,delete:!0}:L));return}setTimeout(()=>{tI.flushSync(()=>{U(I=>{let L=I.findIndex(K=>K.id===te.id);return L!==-1?[...I.slice(0,L),{...I[L],...te},...I.slice(L+1)]:[te,...I]})})})}),[]),Ue.useEffect(()=>{if(c!=="system"){oe(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?oe("dark"):oe("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:te})=>{oe(te?"dark":"light")})},[c]),Ue.useEffect(()=>{F.length<=1&&B(!1)},[F]),Ue.useEffect(()=>{let te=I=>{var L,K;n.every(Z=>I[Z]||I.code===Z)&&(B(!0),(L=V.current)==null||L.focus()),I.code==="Escape"&&(document.activeElement===V.current||(K=V.current)!=null&&K.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[n]),Ue.useEffect(()=>{if(V.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,q.current=!1)}},[V.current]),F.length?Ue.createElement("section",{"aria-label":`${v} ${J}`,tabIndex:-1},M.map((te,I)=>{var L;let[K,Z]=te.split("-");return Ue.createElement("ol",{key:te,dir:g==="auto"?m3():g,tabIndex:-1,ref:V,className:o,"data-sonner-toaster":!0,"data-theme":T,"data-y-position":K,"data-x-position":Z,style:{"--front-toast-height":`${((L=P[0])==null?void 0:L.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||HK,"--width":`${VK}px`,"--gap":`${p}px`,...u},onBlur:ne=>{q.current&&!ne.currentTarget.contains(ne.relatedTarget)&&(q.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||q.current||(q.current=!0,Q.current=ne.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{k||B(!1)},onPointerDown:ne=>{ne.target instanceof HTMLElement&&ne.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},F.filter(ne=>!ne.position&&I===0||ne.position===te).map((ne,Y)=>{var se,ce;return Ue.createElement(qK,{key:ne.id,icons:y,index:Y,toast:ne,defaultRichColors:d,duration:(se=m==null?void 0:m.duration)!=null?se:A,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:e,visibleToasts:h,closeButton:(ce=m==null?void 0:m.closeButton)!=null?ce:i,interacting:k,position:te,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ie,toasts:F.filter(ve=>ve.position==ne.position),heights:P.filter(ve=>ve.position==ne.position),setHeights:W,expandByDefault:a,gap:p,loadingIcon:w,expanded:$,pauseWhenPageIsHidden:j,cn:S})}))})):null};const JK=({...t})=>{const{theme:e="system"}=BK();return s.jsx(YK,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var XK=XE.useId||(()=>{}),ZK=0;function rd(t){const[e,r]=b.useState(XK());return $n(()=>{r(n=>n??String(ZK++))},[t]),e?`radix-${e}`:""}const eV=["top","right","bottom","left"],Xl=Math.min,Rs=Math.max,R0=Math.round,Og=Math.floor,Zl=t=>({x:t,y:t}),tV={left:"right",right:"left",bottom:"top",top:"bottom"},rV={start:"end",end:"start"};function M2(t,e,r){return Rs(t,Xl(e,r))}function Co(t,e){return typeof t=="function"?t(e):t}function Bo(t){return t.split("-")[0]}function ch(t){return t.split("-")[1]}function w4(t){return t==="x"?"y":"x"}function j4(t){return t==="y"?"height":"width"}function ec(t){return["top","bottom"].includes(Bo(t))?"y":"x"}function N4(t){return w4(ec(t))}function nV(t,e,r){r===void 0&&(r=!1);const n=ch(t),a=N4(t),i=j4(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=O0(o)),[o,O0(o)]}function sV(t){const e=O0(t);return[Q2(t),e,Q2(e)]}function Q2(t){return t.replace(/start|end/g,e=>rV[e])}function aV(t,e,r){const n=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?a:n:e?n:a;case"left":case"right":return e?i:o;default:return[]}}function iV(t,e,r,n){const a=ch(t);let i=aV(Bo(t),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),e&&(i=i.concat(i.map(Q2)))),i}function O0(t){return t.replace(/left|right|bottom|top/g,e=>tV[e])}function oV(t){return{top:0,right:0,bottom:0,left:0,...t}}function eP(t){return typeof t!="number"?oV(t):{top:t,right:t,bottom:t,left:t}}function H0(t){const{x:e,y:r,width:n,height:a}=t;return{width:n,height:a,top:r,left:e,right:e+n,bottom:r+a,x:e,y:r}}function f3(t,e,r){let{reference:n,floating:a}=t;const i=ec(e),o=N4(e),l=j4(o),c=Bo(e),d=i==="y",A=n.x+n.width/2-a.width/2,u=n.y+n.height/2-a.height/2,h=n[l]/2-a[l]/2;let m;switch(c){case"top":m={x:A,y:n.y-a.height};break;case"bottom":m={x:A,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-a.width,y:u};break;default:m={x:n.x,y:n.y}}switch(ch(e)){case"start":m[o]-=h*(r&&d?-1:1);break;case"end":m[o]+=h*(r&&d?-1:1);break}return m}const lV=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:A,y:u}=f3(d,n,c),h=n,m={},g=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=e,{element:d,padding:A=0}=Co(t,e)||{};if(d==null)return{};const u=eP(A),h={x:r,y:n},m=N4(a),g=j4(m),p=await o.getDimensions(d),w=m==="y",y=w?"top":"left",v=w?"bottom":"right",j=w?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[m]-h[m]-i.floating[g],F=h[m]-i.reference[m],U=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let M=U?U[j]:0;(!M||!await(o.isElement==null?void 0:o.isElement(U)))&&(M=l.floating[j]||i.floating[g]);const P=S/2-F/2,W=M/2-p[g]/2-1,$=Xl(u[y],W),B=Xl(u[v],W),k=$,_=M-p[g]-B,T=M/2-p[g]/2+P,oe=M2(k,T,_),V=!c.arrow&&ch(a)!=null&&T!==oe&&i.reference[g]/2-(TT<=0)){var B,k;const T=(((B=i.flip)==null?void 0:B.index)||0)+1,oe=M[T];if(oe)return{data:{index:T,overflows:$},reset:{placement:oe}};let V=(k=$.filter(J=>J.overflows[0]<=0).sort((J,Q)=>J.overflows[1]-Q.overflows[1])[0])==null?void 0:k.placement;if(!V)switch(m){case"bestFit":{var _;const J=(_=$.filter(Q=>{if(U){const q=ec(Q.placement);return q===v||q==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(q=>q>0).reduce((q,ie)=>q+ie,0)]).sort((Q,q)=>Q[1]-q[1])[0])==null?void 0:_[0];J&&(V=J);break}case"initialPlacement":V=l;break}if(a!==V)return{reset:{placement:V}}}return{}}}};function p3(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function g3(t){return eV.some(e=>t[e]>=0)}const AV=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...a}=Co(t,e);switch(n){case"referenceHidden":{const i=await Cf(e,{...a,elementContext:"reference"}),o=p3(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:g3(o)}}}case"escaped":{const i=await Cf(e,{...a,altBoundary:!0}),o=p3(i,r.floating);return{data:{escapedOffsets:o,escaped:g3(o)}}}default:return{}}}}};async function uV(t,e){const{placement:r,platform:n,elements:a}=t,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=Bo(r),l=ch(r),c=ec(r)==="y",d=["left","top"].includes(o)?-1:1,A=i&&c?-1:1,u=Co(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),c?{x:m*A,y:h*d}:{x:h*d,y:m*A}}const hV=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:a,y:i,placement:o,middlewareData:l}=e,c=await uV(e,t);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},mV=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...c}=Co(t,e),d={x:r,y:n},A=await Cf(e,c),u=ec(Bo(a)),h=w4(u);let m=d[h],g=d[u];if(i){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=m+A[w],j=m-A[y];m=M2(v,m,j)}if(o){const w=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=g+A[w],j=g-A[y];g=M2(v,g,j)}const p=l.fn({...e,[h]:m,[u]:g});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:i,[u]:o}}}}}},fV=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Co(t,e),A={x:r,y:n},u=ec(a),h=w4(u);let m=A[h],g=A[u];const p=Co(l,e),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const j=h==="y"?"height":"width",S=i.reference[h]-i.floating[j]+w.mainAxis,F=i.reference[h]+i.reference[j]-w.mainAxis;mF&&(m=F)}if(d){var y,v;const j=h==="y"?"width":"height",S=["top","left"].includes(Bo(a)),F=i.reference[u]-i.floating[j]+(S&&((y=o.offset)==null?void 0:y[u])||0)+(S?0:w.crossAxis),U=i.reference[u]+i.reference[j]+(S?0:((v=o.offset)==null?void 0:v[u])||0)-(S?w.crossAxis:0);gU&&(g=U)}return{[h]:m,[u]:g}}}},pV=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:a,rects:i,platform:o,elements:l}=e,{apply:c=()=>{},...d}=Co(t,e),A=await Cf(e,d),u=Bo(a),h=ch(a),m=ec(a)==="y",{width:g,height:p}=i.floating;let w,y;u==="top"||u==="bottom"?(w=u,y=h===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=u,w=h==="end"?"top":"bottom");const v=p-A.top-A.bottom,j=g-A.left-A.right,S=Xl(p-A[w],v),F=Xl(g-A[y],j),U=!e.middlewareData.shift;let M=S,P=F;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(P=j),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(M=v),U&&!h){const $=Rs(A.left,0),B=Rs(A.right,0),k=Rs(A.top,0),_=Rs(A.bottom,0);m?P=g-2*($!==0||B!==0?$+B:Rs(A.left,A.right)):M=p-2*(k!==0||_!==0?k+_:Rs(A.top,A.bottom))}await c({...e,availableWidth:P,availableHeight:M});const W=await o.getDimensions(l.floating);return g!==W.width||p!==W.height?{reset:{rects:!0}}:{}}}};function rv(){return typeof window<"u"}function dh(t){return tP(t)?(t.nodeName||"").toLowerCase():"#document"}function $s(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ui(t){var e;return(e=(tP(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tP(t){return rv()?t instanceof Node||t instanceof $s(t).Node:!1}function Za(t){return rv()?t instanceof Element||t instanceof $s(t).Element:!1}function Pi(t){return rv()?t instanceof HTMLElement||t instanceof $s(t).HTMLElement:!1}function x3(t){return!rv()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $s(t).ShadowRoot}function Ap(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=ei(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(a)}function gV(t){return["table","td","th"].includes(dh(t))}function nv(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function C4(t){const e=B4(),r=Za(t)?ei(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function xV(t){let e=tc(t);for(;Pi(e)&&!Vu(e);){if(C4(e))return e;if(nv(e))return null;e=tc(e)}return null}function B4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vu(t){return["html","body","#document"].includes(dh(t))}function ei(t){return $s(t).getComputedStyle(t)}function sv(t){return Za(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tc(t){if(dh(t)==="html")return t;const e=t.assignedSlot||t.parentNode||x3(t)&&t.host||Ui(t);return x3(e)?e.host:e}function rP(t){const e=tc(t);return Vu(e)?t.ownerDocument?t.ownerDocument.body:t.body:Pi(e)&&Ap(e)?e:rP(e)}function Bf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const a=rP(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),o=$s(a);if(i){const l=D2(o);return e.concat(o,o.visualViewport||[],Ap(a)?a:[],l&&r?Bf(l):[])}return e.concat(a,Bf(a,[],r))}function D2(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nP(t){const e=ei(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=Pi(t),i=a?t.offsetWidth:r,o=a?t.offsetHeight:n,l=R0(r)!==i||R0(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function S4(t){return Za(t)?t:t.contextElement}function mu(t){const e=S4(t);if(!Pi(e))return Zl(1);const r=e.getBoundingClientRect(),{width:n,height:a,$:i}=nP(e);let o=(i?R0(r.width):r.width)/n,l=(i?R0(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const yV=Zl(0);function sP(t){const e=$s(t);return!B4()||!e.visualViewport?yV:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function vV(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==$s(t)?!1:e}function yd(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),i=S4(t);let o=Zl(1);e&&(n?Za(n)&&(o=mu(n)):o=mu(t));const l=vV(i,r,n)?sP(i):Zl(0);let c=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,A=a.width/o.x,u=a.height/o.y;if(i){const h=$s(i),m=n&&Za(n)?$s(n):n;let g=h,p=D2(g);for(;p&&n&&m!==g;){const w=mu(p),y=p.getBoundingClientRect(),v=ei(p),j=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*w.x,S=y.top+(p.clientTop+parseFloat(v.paddingTop))*w.y;c*=w.x,d*=w.y,A*=w.x,u*=w.y,c+=j,d+=S,g=$s(p),p=D2(g)}}return H0({width:A,height:u,x:c,y:d})}function bV(t){let{elements:e,rect:r,offsetParent:n,strategy:a}=t;const i=a==="fixed",o=Ui(n),l=e?nv(e.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},d=Zl(1);const A=Zl(0),u=Pi(n);if((u||!u&&!i)&&((dh(n)!=="body"||Ap(o))&&(c=sv(n)),Pi(n))){const h=yd(n);d=mu(n),A.x=h.x+n.clientLeft,A.y=h.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+A.x,y:r.y*d.y-c.scrollTop*d.y+A.y}}function wV(t){return Array.from(t.getClientRects())}function R2(t,e){const r=sv(t).scrollLeft;return e?e.left+r:yd(Ui(t)).left+r}function jV(t){const e=Ui(t),r=sv(t),n=t.ownerDocument.body,a=Rs(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Rs(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+R2(t);const l=-r.scrollTop;return ei(n).direction==="rtl"&&(o+=Rs(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}function NV(t,e){const r=$s(t),n=Ui(t),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const d=B4();(!d||d&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}function CV(t,e){const r=yd(t,!0,e==="fixed"),n=r.top+t.clientTop,a=r.left+t.clientLeft,i=Pi(t)?mu(t):Zl(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,c=a*i.x,d=n*i.y;return{width:o,height:l,x:c,y:d}}function y3(t,e,r){let n;if(e==="viewport")n=NV(t,r);else if(e==="document")n=jV(Ui(t));else if(Za(e))n=CV(e,r);else{const a=sP(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return H0(n)}function aP(t,e){const r=tc(t);return r===e||!Za(r)||Vu(r)?!1:ei(r).position==="fixed"||aP(r,e)}function BV(t,e){const r=e.get(t);if(r)return r;let n=Bf(t,[],!1).filter(l=>Za(l)&&dh(l)!=="body"),a=null;const i=ei(t).position==="fixed";let o=i?tc(t):t;for(;Za(o)&&!Vu(o);){const l=ei(o),c=C4(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ap(o)&&!c&&aP(t,o))?n=n.filter(A=>A!==o):a=l,o=tc(o)}return e.set(t,n),n}function SV(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const o=[...r==="clippingAncestors"?nv(e)?[]:BV(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,A)=>{const u=y3(e,A,a);return d.top=Rs(u.top,d.top),d.right=Xl(u.right,d.right),d.bottom=Xl(u.bottom,d.bottom),d.left=Rs(u.left,d.left),d},y3(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kV(t){const{width:e,height:r}=nP(t);return{width:e,height:r}}function EV(t,e,r){const n=Pi(e),a=Ui(e),i=r==="fixed",o=yd(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=Zl(0);if(n||!n&&!i)if((dh(e)!=="body"||Ap(a))&&(l=sv(e)),n){const m=yd(e,!0,i,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=R2(a));let d=0,A=0;if(a&&!n&&!i){const m=a.getBoundingClientRect();A=m.top+l.scrollTop,d=m.left+l.scrollLeft-R2(a,m)}const u=o.left+l.scrollLeft-c.x-d,h=o.top+l.scrollTop-c.y-A;return{x:u,y:h,width:o.width,height:o.height}}function gw(t){return ei(t).position==="static"}function v3(t,e){if(!Pi(t)||ei(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ui(t)===r&&(r=r.ownerDocument.body),r}function iP(t,e){const r=$s(t);if(nv(t))return r;if(!Pi(t)){let a=tc(t);for(;a&&!Vu(a);){if(Za(a)&&!gw(a))return a;a=tc(a)}return r}let n=v3(t,e);for(;n&&gV(n)&&gw(n);)n=v3(n,e);return n&&Vu(n)&&gw(n)&&!C4(n)?r:n||xV(t)||r}const FV=async function(t){const e=this.getOffsetParent||iP,r=this.getDimensions,n=await r(t.floating);return{reference:EV(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function IV(t){return ei(t).direction==="rtl"}const PV={convertOffsetParentRelativeRectToViewportRelativeRect:bV,getDocumentElement:Ui,getClippingRect:SV,getOffsetParent:iP,getElementRects:FV,getClientRects:wV,getDimensions:kV,getScale:mu,isElement:Za,isRTL:IV};function TV(t,e){let r=null,n;const a=Ui(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:A,width:u,height:h}=t.getBoundingClientRect();if(l||e(),!u||!h)return;const m=Og(A),g=Og(a.clientWidth-(d+u)),p=Og(a.clientHeight-(A+h)),w=Og(d),v={rootMargin:-m+"px "+-g+"px "+-p+"px "+-w+"px",threshold:Rs(0,Xl(1,c))||1};let j=!0;function S(F){const U=F[0].intersectionRatio;if(U!==c){if(!j)return o();U?o(!1,U):n=setTimeout(()=>{o(!1,1e-7)},1e3)}j=!1}try{r=new IntersectionObserver(S,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(S,v)}r.observe(t)}return o(!0),i}function LV(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=S4(t),A=a||i?[...d?Bf(d):[],...Bf(e)]:[];A.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const u=d&&l?TV(d,r):null;let h=-1,m=null;o&&(m=new ResizeObserver(y=>{let[v]=y;v&&v.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var j;(j=m)==null||j.observe(e)})),r()}),d&&!c&&m.observe(d),m.observe(e));let g,p=c?yd(t):null;c&&w();function w(){const y=yd(t);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&r(),p=y,g=requestAnimationFrame(w)}return r(),()=>{var y;A.forEach(v=>{a&&v.removeEventListener("scroll",r),i&&v.removeEventListener("resize",r)}),u==null||u(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const UV=hV,_V=mV,MV=dV,QV=pV,DV=AV,b3=cV,RV=fV,OV=(t,e,r)=>{const n=new Map,a={platform:PV,...r},i={...a.platform,_c:n};return lV(t,e,{...a,platform:i})};var Wx=typeof document<"u"?b.useLayoutEffect:b.useEffect;function K0(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,a;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!K0(t[n],e[n]))return!1;return!0}if(a=Object.keys(t),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&t.$$typeof)&&!K0(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function oP(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function w3(t,e){const r=oP(t);return Math.round(e*r)/r}function xw(t){const e=b.useRef(t);return Wx(()=>{e.current=t}),e}function HV(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[A,u]=b.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=b.useState(n);K0(h,n)||m(n);const[g,p]=b.useState(null),[w,y]=b.useState(null),v=b.useCallback(Q=>{Q!==U.current&&(U.current=Q,p(Q))},[]),j=b.useCallback(Q=>{Q!==M.current&&(M.current=Q,y(Q))},[]),S=i||g,F=o||w,U=b.useRef(null),M=b.useRef(null),P=b.useRef(A),W=c!=null,$=xw(c),B=xw(a),k=xw(d),_=b.useCallback(()=>{if(!U.current||!M.current)return;const Q={placement:e,strategy:r,middleware:h};B.current&&(Q.platform=B.current),OV(U.current,M.current,Q).then(q=>{const ie={...q,isPositioned:k.current!==!1};T.current&&!K0(P.current,ie)&&(P.current=ie,Fd.flushSync(()=>{u(ie)}))})},[h,e,r,B,k]);Wx(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,u(Q=>({...Q,isPositioned:!1})))},[d]);const T=b.useRef(!1);Wx(()=>(T.current=!0,()=>{T.current=!1}),[]),Wx(()=>{if(S&&(U.current=S),F&&(M.current=F),S&&F){if($.current)return $.current(S,F,_);_()}},[S,F,_,$,W]);const oe=b.useMemo(()=>({reference:U,floating:M,setReference:v,setFloating:j}),[v,j]),V=b.useMemo(()=>({reference:S,floating:F}),[S,F]),J=b.useMemo(()=>{const Q={position:r,left:0,top:0};if(!V.floating)return Q;const q=w3(V.floating,A.x),ie=w3(V.floating,A.y);return l?{...Q,transform:"translate("+q+"px, "+ie+"px)",...oP(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:ie}},[r,l,V.floating,A.x,A.y]);return b.useMemo(()=>({...A,update:_,refs:oe,elements:V,floatingStyles:J}),[A,_,oe,V,J])}const KV=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:a}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?b3({element:n.current,padding:a}).fn(r):{}:n?b3({element:n,padding:a}).fn(r):{}}}},VV=(t,e)=>({...UV(t),options:[t,e]}),zV=(t,e)=>({..._V(t),options:[t,e]}),WV=(t,e)=>({...RV(t),options:[t,e]}),$V=(t,e)=>({...MV(t),options:[t,e]}),GV=(t,e)=>({...QV(t),options:[t,e]}),qV=(t,e)=>({...DV(t),options:[t,e]}),YV=(t,e)=>({...KV(t),options:[t,e]});var JV="Arrow",lP=b.forwardRef((t,e)=>{const{children:r,width:n=10,height:a=5,...i}=t;return s.jsx(Et.svg,{...i,ref:e,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});lP.displayName=JV;var XV=lP;function ZV(t,e=[]){let r=[];function n(i,o){const l=b.createContext(o),c=r.length;r=[...r,o];function d(u){const{scope:h,children:m,...g}=u,p=(h==null?void 0:h[t][c])||l,w=b.useMemo(()=>g,Object.values(g));return s.jsx(p.Provider,{value:w,children:m})}function A(u,h){const m=(h==null?void 0:h[t][c])||l,g=b.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,A]}const a=()=>{const i=r.map(o=>b.createContext(o));return function(l){const c=(l==null?void 0:l[t])||i;return b.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return a.scopeName=t,[n,ez(a,...e)]}function ez(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const u=c(i)[`__scope${d}`];return{...l,...u}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function k4(t){const[e,r]=b.useState(void 0);return $n(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=t.offsetWidth,l=t.offsetHeight;r({width:o,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var E4="Popper",[cP,Ah]=ZV(E4),[tz,dP]=cP(E4),AP=t=>{const{__scopePopper:e,children:r}=t,[n,a]=b.useState(null);return s.jsx(tz,{scope:e,anchor:n,onAnchorChange:a,children:r})};AP.displayName=E4;var uP="PopperAnchor",hP=b.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...a}=t,i=dP(uP,r),o=b.useRef(null),l=er(e,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:s.jsx(Et.div,{...a,ref:l})});hP.displayName=uP;var F4="PopperContent",[rz,nz]=cP(F4),mP=b.forwardRef((t,e)=>{var Y,se,ce,ve,be,Se;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:A=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=t,w=dP(F4,r),[y,v]=b.useState(null),j=er(e,Pe=>v(Pe)),[S,F]=b.useState(null),U=k4(S),M=(U==null?void 0:U.width)??0,P=(U==null?void 0:U.height)??0,W=n+(i!=="center"?"-"+i:""),$=typeof A=="number"?A:{top:0,right:0,bottom:0,left:0,...A},B=Array.isArray(d)?d:[d],k=B.length>0,_={padding:$,boundary:B.filter(az),altBoundary:k},{refs:T,floatingStyles:oe,placement:V,isPositioned:J,middlewareData:Q}=HV({strategy:"fixed",placement:W,whileElementsMounted:(...Pe)=>LV(...Pe,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[VV({mainAxis:a+P,alignmentAxis:o}),c&&zV({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?WV():void 0,..._}),c&&$V({..._}),GV({..._,apply:({elements:Pe,rects:we,availableWidth:he,availableHeight:re})=>{const{width:Ve,height:Ge}=we.reference,Ce=Pe.floating.style;Ce.setProperty("--radix-popper-available-width",`${he}px`),Ce.setProperty("--radix-popper-available-height",`${re}px`),Ce.setProperty("--radix-popper-anchor-width",`${Ve}px`),Ce.setProperty("--radix-popper-anchor-height",`${Ge}px`)}}),S&&YV({element:S,padding:l}),iz({arrowWidth:M,arrowHeight:P}),h&&qV({strategy:"referenceHidden",..._})]}),[q,ie]=gP(V),te=Ys(g);$n(()=>{J&&(te==null||te())},[J,te]);const I=(Y=Q.arrow)==null?void 0:Y.x,L=(se=Q.arrow)==null?void 0:se.y,K=((ce=Q.arrow)==null?void 0:ce.centerOffset)!==0,[Z,ne]=b.useState();return $n(()=>{y&&ne(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:J?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(ve=Q.transformOrigin)==null?void 0:ve.x,(be=Q.transformOrigin)==null?void 0:be.y].join(" "),...((Se=Q.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s.jsx(rz,{scope:r,placedSide:q,onArrowChange:F,arrowX:I,arrowY:L,shouldHideArrow:K,children:s.jsx(Et.div,{"data-side":q,"data-align":ie,...p,ref:j,style:{...p.style,animation:J?void 0:"none"}})})})});mP.displayName=F4;var fP="PopperArrow",sz={top:"bottom",right:"left",bottom:"top",left:"right"},pP=b.forwardRef(function(e,r){const{__scopePopper:n,...a}=e,i=nz(fP,n),o=sz[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(XV,{...a,ref:r,style:{...a.style,display:"block"}})})});pP.displayName=fP;function az(t){return t!==null}var iz=t=>({name:"transformOrigin",options:t,fn(e){var w,y,v;const{placement:r,rects:n,middlewareData:a}=e,o=((w=a.arrow)==null?void 0:w.centerOffset)!==0,l=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[d,A]=gP(r),u={start:"0%",center:"50%",end:"100%"}[A],h=(((y=a.arrow)==null?void 0:y.x)??0)+l/2,m=(((v=a.arrow)==null?void 0:v.y)??0)+c/2;let g="",p="";return d==="bottom"?(g=o?u:`${h}px`,p=`${-c}px`):d==="top"?(g=o?u:`${h}px`,p=`${n.floating.height+c}px`):d==="right"?(g=`${-c}px`,p=o?u:`${m}px`):d==="left"&&(g=`${n.floating.width+c}px`,p=o?u:`${m}px`),{data:{x:g,y:p}}}});function gP(t){const[e,r="center"]=t.split("-");return[e,r]}var I4=AP,P4=hP,T4=mP,L4=pP,[av,Cfe]=Id("Tooltip",[Ah]),iv=Ah(),xP="TooltipProvider",oz=700,O2="tooltip.open",[lz,U4]=av(xP),yP=t=>{const{__scopeTooltip:e,delayDuration:r=oz,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=t,[o,l]=b.useState(!0),c=b.useRef(!1),d=b.useRef(0);return b.useEffect(()=>{const A=d.current;return()=>window.clearTimeout(A)},[]),s.jsx(lz,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:b.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:b.useCallback(A=>{c.current=A},[]),disableHoverableContent:a,children:i})};yP.displayName=xP;var ov="Tooltip",[cz,lv]=av(ov),vP=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=t,c=U4(ov,t.__scopeTooltip),d=iv(e),[A,u]=b.useState(null),h=rd(),m=b.useRef(0),g=o??c.disableHoverableContent,p=l??c.delayDuration,w=b.useRef(!1),[y=!1,v]=Yl({prop:n,defaultProp:a,onChange:M=>{M?(c.onOpen(),document.dispatchEvent(new CustomEvent(O2))):c.onClose(),i==null||i(M)}}),j=b.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),S=b.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,v(!0)},[v]),F=b.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v(!1)},[v]),U=b.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,v(!0),m.current=0},p)},[p,v]);return b.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(I4,{...d,children:s.jsx(cz,{scope:e,contentId:h,open:y,stateAttribute:j,trigger:A,onTriggerChange:u,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayed?U():S()},[c.isOpenDelayed,U,S]),onTriggerLeave:b.useCallback(()=>{g?F():(window.clearTimeout(m.current),m.current=0)},[F,g]),onOpen:S,onClose:F,disableHoverableContent:g,children:r})})};vP.displayName=ov;var H2="TooltipTrigger",bP=b.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=lv(H2,r),i=U4(H2,r),o=iv(r),l=b.useRef(null),c=er(e,l,a.onTriggerChange),d=b.useRef(!1),A=b.useRef(!1),u=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),s.jsx(P4,{asChild:!0,...o,children:s.jsx(Et.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:st(t.onPointerMove,h=>{h.pointerType!=="touch"&&!A.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),A.current=!0)}),onPointerLeave:st(t.onPointerLeave,()=>{a.onTriggerLeave(),A.current=!1}),onPointerDown:st(t.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:st(t.onFocus,()=>{d.current||a.onOpen()}),onBlur:st(t.onBlur,a.onClose),onClick:st(t.onClick,a.onClose)})})});bP.displayName=H2;var dz="TooltipPortal",[Bfe,Az]=av(dz,{forceMount:void 0}),zu="TooltipContent",wP=b.forwardRef((t,e)=>{const r=Az(zu,t.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=t,o=lv(zu,t.__scopeTooltip);return s.jsx(Ac,{present:n||o.open,children:o.disableHoverableContent?s.jsx(jP,{side:a,...i,ref:e}):s.jsx(uz,{side:a,...i,ref:e})})}),uz=b.forwardRef((t,e)=>{const r=lv(zu,t.__scopeTooltip),n=U4(zu,t.__scopeTooltip),a=b.useRef(null),i=er(e,a),[o,l]=b.useState(null),{trigger:c,onClose:d}=r,A=a.current,{onPointerInTransitChange:u}=n,h=b.useCallback(()=>{l(null),u(!1)},[u]),m=b.useCallback((g,p)=>{const w=g.currentTarget,y={x:g.clientX,y:g.clientY},v=pz(y,w.getBoundingClientRect()),j=gz(y,v),S=xz(p.getBoundingClientRect()),F=vz([...j,...S]);l(F),u(!0)},[u]);return b.useEffect(()=>()=>h(),[h]),b.useEffect(()=>{if(c&&A){const g=w=>m(w,A),p=w=>m(w,c);return c.addEventListener("pointerleave",g),A.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",g),A.removeEventListener("pointerleave",p)}}},[c,A,m,h]),b.useEffect(()=>{if(o){const g=p=>{const w=p.target,y={x:p.clientX,y:p.clientY},v=(c==null?void 0:c.contains(w))||(A==null?void 0:A.contains(w)),j=!yz(y,o);v?h():j&&(h(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,A,o,d,h]),s.jsx(jP,{...t,ref:i})}),[hz,mz]=av(ov,{isInside:!1}),jP=b.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=t,c=lv(zu,r),d=iv(r),{onClose:A}=c;return b.useEffect(()=>(document.addEventListener(O2,A),()=>document.removeEventListener(O2,A)),[A]),b.useEffect(()=>{if(c.trigger){const u=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&A()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[c.trigger,A]),s.jsx(oh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:u=>u.preventDefault(),onDismiss:A,children:s.jsxs(T4,{"data-state":c.stateAttribute,...d,...l,ref:e,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(sI,{children:n}),s.jsx(hz,{scope:r,isInside:!0,children:s.jsx(U9,{id:c.contentId,role:"tooltip",children:a||n})})]})})});wP.displayName=zu;var NP="TooltipArrow",fz=b.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=iv(r);return mz(NP,r).isInside?null:s.jsx(L4,{...a,...n,ref:e})});fz.displayName=NP;function pz(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),a=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function gz(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function xz(t){const{top:e,right:r,bottom:n,left:a}=t;return[{x:a,y:e},{x:r,y:e},{x:r,y:n},{x:a,y:n}]}function yz(t,e){const{x:r,y:n}=t;let a=!1;for(let i=0,o=e.length-1;in!=A>n&&r<(d-l)*(n-c)/(A-c)+l&&(a=!a)}return a}function vz(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),bz(e)}function bz(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))e.pop();else break}e.push(a)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var wz=yP,jz=vP,Nz=bP,CP=wP;const vd=wz,Wu=jz,$u=Nz,bd=b.forwardRef(({className:t,sideOffset:e=4,...r},n)=>s.jsx(CP,{ref:n,sideOffset:e,className:At("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",t),...r}));bd.displayName=CP.displayName;var cv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dv=typeof window>"u"||"Deno"in globalThis;function Ka(){}function Cz(t,e){return typeof t=="function"?t(e):t}function Bz(t){return typeof t=="number"&&t>=0&&t!==1/0}function Sz(t,e){return Math.max(t+(e||0)-Date.now(),0)}function j3(t,e){return typeof t=="function"?t(e):t}function kz(t,e){return typeof t=="function"?t(e):t}function N3(t,e){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:l}=t;if(o){if(n){if(e.queryHash!==_4(o,e.options))return!1}else if(!kf(e.queryKey,o))return!1}if(r!=="all"){const c=e.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||a&&a!==e.state.fetchStatus||i&&!i(e))}function C3(t,e){const{exact:r,status:n,predicate:a,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(Sf(e.options.mutationKey)!==Sf(i))return!1}else if(!kf(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||a&&!a(e))}function _4(t,e){return((e==null?void 0:e.queryKeyHashFn)||Sf)(t)}function Sf(t){return JSON.stringify(t,(e,r)=>K2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function kf(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(r=>!kf(t[r],e[r])):!1}function BP(t,e){if(t===e)return t;const r=B3(t)&&B3(e);if(r||K2(t)&&K2(e)){const n=r?t:Object.keys(t),a=n.length,i=r?e:Object.keys(e),o=i.length,l=r?[]:{};let c=0;for(let d=0;d{setTimeout(e,t)})}function Fz(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?BP(t,e):e}function Iz(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function Pz(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var M4=Symbol();function SP(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===M4?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Wc,ml,Cu,TE,Tz=(TE=class extends cv{constructor(){super();Je(this,Wc);Je(this,ml);Je(this,Cu);De(this,Cu,e=>{if(!dv&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){X(this,ml)||this.setEventListener(X(this,Cu))}onUnsubscribe(){var e;this.hasListeners()||((e=X(this,ml))==null||e.call(this),De(this,ml,void 0))}setEventListener(e){var r;De(this,Cu,e),(r=X(this,ml))==null||r.call(this),De(this,ml,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){X(this,Wc)!==e&&(De(this,Wc,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof X(this,Wc)=="boolean"?X(this,Wc):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Wc=new WeakMap,ml=new WeakMap,Cu=new WeakMap,TE),kP=new Tz,Bu,fl,Su,LE,Lz=(LE=class extends cv{constructor(){super();Je(this,Bu,!0);Je(this,fl);Je(this,Su);De(this,Su,e=>{if(!dv&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){X(this,fl)||this.setEventListener(X(this,Su))}onUnsubscribe(){var e;this.hasListeners()||((e=X(this,fl))==null||e.call(this),De(this,fl,void 0))}setEventListener(e){var r;De(this,Su,e),(r=X(this,fl))==null||r.call(this),De(this,fl,e(this.setOnline.bind(this)))}setOnline(e){X(this,Bu)!==e&&(De(this,Bu,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return X(this,Bu)}},Bu=new WeakMap,fl=new WeakMap,Su=new WeakMap,LE),V0=new Lz;function Uz(){let t,e;const r=new Promise((a,i)=>{t=a,e=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),t(a)},r.reject=a=>{n({status:"rejected",reason:a}),e(a)},r}function _z(t){return Math.min(1e3*2**t,3e4)}function EP(t){return(t??"online")==="online"?V0.isOnline():!0}var FP=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function yw(t){return t instanceof FP}function IP(t){let e=!1,r=0,n=!1,a;const i=Uz(),o=p=>{var w;n||(h(new FP(p)),(w=t.abort)==null||w.call(t))},l=()=>{e=!0},c=()=>{e=!1},d=()=>kP.isFocused()&&(t.networkMode==="always"||V0.isOnline())&&t.canRun(),A=()=>EP(t.networkMode)&&t.canRun(),u=p=>{var w;n||(n=!0,(w=t.onSuccess)==null||w.call(t,p),a==null||a(),i.resolve(p))},h=p=>{var w;n||(n=!0,(w=t.onError)==null||w.call(t,p),a==null||a(),i.reject(p))},m=()=>new Promise(p=>{var w;a=y=>{(n||d())&&p(y)},(w=t.onPause)==null||w.call(t)}).then(()=>{var p;a=void 0,n||(p=t.onContinue)==null||p.call(t)}),g=()=>{if(n)return;let p;const w=r===0?t.initialPromise:void 0;try{p=w??t.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(u).catch(y=>{var U;if(n)return;const v=t.retry??(dv?0:3),j=t.retryDelay??_z,S=typeof j=="function"?j(r,y):j,F=v===!0||typeof v=="number"&&rd()?void 0:m()).then(()=>{e?h(y):g()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:A,start:()=>(A()?g():m().then(g),i)}}function Mz(){let t=[],e=0,r=l=>{l()},n=l=>{l()},a=l=>setTimeout(l,0);const i=l=>{e?t.push(l):a(()=>{r(l)})},o=()=>{const l=t;t=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var ns=Mz(),$c,UE,PP=(UE=class{constructor(){Je(this,$c)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bz(this.gcTime)&&De(this,$c,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(dv?1/0:5*60*1e3))}clearGcTimeout(){X(this,$c)&&(clearTimeout(X(this,$c)),De(this,$c,void 0))}},$c=new WeakMap,UE),ku,Eu,ua,Mn,Vf,Gc,za,ro,_E,Qz=(_E=class extends PP{constructor(e){super();Je(this,za);Je(this,ku);Je(this,Eu);Je(this,ua);Je(this,Mn);Je(this,Vf);Je(this,Gc);De(this,Gc,!1),De(this,Vf,e.defaultOptions),this.setOptions(e.options),this.observers=[],De(this,ua,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,De(this,ku,Rz(this.options)),this.state=e.state??X(this,ku),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=X(this,Mn))==null?void 0:e.promise}setOptions(e){this.options={...X(this,Vf),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&X(this,ua).remove(this)}setData(e,r){const n=Fz(this.state.data,e,this.options);return Fn(this,za,ro).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){Fn(this,za,ro).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,a;const r=(n=X(this,Mn))==null?void 0:n.promise;return(a=X(this,Mn))==null||a.cancel(e),r?r.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(X(this,ku))}isActive(){return this.observers.some(e=>kz(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===M4||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!Sz(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=X(this,Mn))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=X(this,Mn))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),X(this,ua).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(X(this,Mn)&&(X(this,Gc)?X(this,Mn).cancel({revert:!0}):X(this,Mn).cancelRetry()),this.scheduleGc()),X(this,ua).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fn(this,za,ro).call(this,{type:"invalidate"})}fetch(e,r){var c,d,A;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(X(this,Mn))return X(this,Mn).continueRetry(),X(this,Mn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(h=>h.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,a=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(De(this,Gc,!0),n.signal)})},i=()=>{const u=SP(this.options,r),h={queryKey:this.queryKey,meta:this.meta};return a(h),De(this,Gc,!1),this.options.persister?this.options.persister(u,h,this):u(h)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};a(o),(c=this.options.behavior)==null||c.onFetch(o,this),De(this,Eu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&Fn(this,za,ro).call(this,{type:"fetch",meta:(A=o.fetchOptions)==null?void 0:A.meta});const l=u=>{var h,m,g,p;yw(u)&&u.silent||Fn(this,za,ro).call(this,{type:"error",error:u}),yw(u)||((m=(h=X(this,ua).config).onError)==null||m.call(h,u,this),(p=(g=X(this,ua).config).onSettled)==null||p.call(g,this.state.data,u,this)),this.scheduleGc()};return De(this,Mn,IP({initialPromise:r==null?void 0:r.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{var h,m,g,p;if(u===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(w){l(w);return}(m=(h=X(this,ua).config).onSuccess)==null||m.call(h,u,this),(p=(g=X(this,ua).config).onSettled)==null||p.call(g,u,this.state.error,this),this.scheduleGc()},onError:l,onFail:(u,h)=>{Fn(this,za,ro).call(this,{type:"failed",failureCount:u,error:h})},onPause:()=>{Fn(this,za,ro).call(this,{type:"pause"})},onContinue:()=>{Fn(this,za,ro).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),X(this,Mn).start()}},ku=new WeakMap,Eu=new WeakMap,ua=new WeakMap,Mn=new WeakMap,Vf=new WeakMap,Gc=new WeakMap,za=new WeakSet,ro=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Dz(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return yw(a)&&a.revert&&X(this,Eu)?{...X(this,Eu),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),ns.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),X(this,ua).notify({query:this,type:"updated",action:e})})},_E);function Dz(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:EP(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Rz(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 xi,ME,Oz=(ME=class extends cv{constructor(e={}){super();Je(this,xi);this.config=e,De(this,xi,new Map)}build(e,r,n){const a=r.queryKey,i=r.queryHash??_4(a,r);let o=this.get(i);return o||(o=new Qz({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){X(this,xi).has(e.queryHash)||(X(this,xi).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=X(this,xi).get(e.queryHash);r&&(e.destroy(),r===e&&X(this,xi).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ns.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return X(this,xi).get(e)}getAll(){return[...X(this,xi).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>N3(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>N3(e,n)):r}notify(e){ns.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ns.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ns.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xi=new WeakMap,ME),yi,es,qc,vi,el,QE,Hz=(QE=class extends PP{constructor(e){super();Je(this,vi);Je(this,yi);Je(this,es);Je(this,qc);this.mutationId=e.mutationId,De(this,es,e.mutationCache),De(this,yi,[]),this.state=e.state||Kz(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){X(this,yi).includes(e)||(X(this,yi).push(e),this.clearGcTimeout(),X(this,es).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){De(this,yi,X(this,yi).filter(r=>r!==e)),this.scheduleGc(),X(this,es).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){X(this,yi).length||(this.state.status==="pending"?this.scheduleGc():X(this,es).remove(this))}continue(){var e;return((e=X(this,qc))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,i,o,l,c,d,A,u,h,m,g,p,w,y,v,j,S,F,U,M;De(this,qc,IP({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(P,W)=>{Fn(this,vi,el).call(this,{type:"failed",failureCount:P,error:W})},onPause:()=>{Fn(this,vi,el).call(this,{type:"pause"})},onContinue:()=>{Fn(this,vi,el).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>X(this,es).canRun(this)}));const r=this.state.status==="pending",n=!X(this,qc).canStart();try{if(!r){Fn(this,vi,el).call(this,{type:"pending",variables:e,isPaused:n}),await((i=(a=X(this,es).config).onMutate)==null?void 0:i.call(a,e,this));const W=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,e));W!==this.state.context&&Fn(this,vi,el).call(this,{type:"pending",context:W,variables:e,isPaused:n})}const P=await X(this,qc).start();return await((d=(c=X(this,es).config).onSuccess)==null?void 0:d.call(c,P,e,this.state.context,this)),await((u=(A=this.options).onSuccess)==null?void 0:u.call(A,P,e,this.state.context)),await((m=(h=X(this,es).config).onSettled)==null?void 0:m.call(h,P,null,this.state.variables,this.state.context,this)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,P,null,e,this.state.context)),Fn(this,vi,el).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(w=X(this,es).config).onError)==null?void 0:y.call(w,P,e,this.state.context,this)),await((j=(v=this.options).onError)==null?void 0:j.call(v,P,e,this.state.context)),await((F=(S=X(this,es).config).onSettled)==null?void 0:F.call(S,void 0,P,this.state.variables,this.state.context,this)),await((M=(U=this.options).onSettled)==null?void 0:M.call(U,void 0,P,e,this.state.context)),P}finally{Fn(this,vi,el).call(this,{type:"error",error:P})}}finally{X(this,es).runNext(this)}}},yi=new WeakMap,es=new WeakMap,qc=new WeakMap,vi=new WeakSet,el=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ns.batch(()=>{X(this,yi).forEach(n=>{n.onMutationUpdate(e)}),X(this,es).notify({mutation:this,type:"updated",action:e})})},QE);function Kz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,zf,DE,Vz=(DE=class extends cv{constructor(e={}){super();Je(this,_s);Je(this,zf);this.config=e,De(this,_s,new Map),De(this,zf,Date.now())}build(e,r,n){const a=new Hz({mutationCache:this,mutationId:++xg(this,zf)._,options:e.defaultMutationOptions(r),state:n});return this.add(a),a}add(e){const r=Hg(e),n=X(this,_s).get(r)??[];n.push(e),X(this,_s).set(r,n),this.notify({type:"added",mutation:e})}remove(e){var n;const r=Hg(e);if(X(this,_s).has(r)){const a=(n=X(this,_s).get(r))==null?void 0:n.filter(i=>i!==e);a&&(a.length===0?X(this,_s).delete(r):X(this,_s).set(r,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const r=(n=X(this,_s).get(Hg(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===e}runNext(e){var n;const r=(n=X(this,_s).get(Hg(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){ns.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...X(this,_s).values()].flat()}find(e){const r={exact:!0,...e};return this.getAll().find(n=>C3(r,n))}findAll(e={}){return this.getAll().filter(r=>C3(e,r))}notify(e){ns.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return ns.batch(()=>Promise.all(e.map(r=>r.continue().catch(Ka))))}},_s=new WeakMap,zf=new WeakMap,DE);function Hg(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function k3(t){return{onFetch:(e,r)=>{var A,u,h,m,g;const n=e.options,a=(h=(u=(A=e.fetchOptions)==null?void 0:A.meta)==null?void 0:u.fetchMore)==null?void 0:h.direction,i=((m=e.state.data)==null?void 0:m.pages)||[],o=((g=e.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let p=!1;const w=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},y=SP(e.options,e.fetchOptions),v=async(j,S,F)=>{if(p)return Promise.reject();if(S==null&&j.pages.length)return Promise.resolve(j);const U={queryKey:e.queryKey,pageParam:S,direction:F?"backward":"forward",meta:e.options.meta};w(U);const M=await y(U),{maxPages:P}=e.options,W=F?Pz:Iz;return{pages:W(j.pages,M,P),pageParams:W(j.pageParams,S,P)}};if(a&&i.length){const j=a==="backward",S=j?zz:E3,F={pages:i,pageParams:o},U=S(n,F);l=await v(F,U,j)}else{const j=t??i.length;do{const S=c===0?o[0]??n.initialPageParam:E3(n,l);if(c>0&&S==null)break;l=await v(l,S),c++}while(c{var p,w;return(w=(p=e.options).persister)==null?void 0:w.call(p,d,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=d}}}function E3(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function zz(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var Er,pl,gl,Fu,Iu,xl,Pu,Tu,RE,Wz=(RE=class{constructor(t={}){Je(this,Er);Je(this,pl);Je(this,gl);Je(this,Fu);Je(this,Iu);Je(this,xl);Je(this,Pu);Je(this,Tu);De(this,Er,t.queryCache||new Oz),De(this,pl,t.mutationCache||new Vz),De(this,gl,t.defaultOptions||{}),De(this,Fu,new Map),De(this,Iu,new Map),De(this,xl,0)}mount(){xg(this,xl)._++,X(this,xl)===1&&(De(this,Pu,kP.subscribe(async t=>{t&&(await this.resumePausedMutations(),X(this,Er).onFocus())})),De(this,Tu,V0.subscribe(async t=>{t&&(await this.resumePausedMutations(),X(this,Er).onOnline())})))}unmount(){var t,e;xg(this,xl)._--,X(this,xl)===0&&((t=X(this,Pu))==null||t.call(this),De(this,Pu,void 0),(e=X(this,Tu))==null||e.call(this),De(this,Tu,void 0))}isFetching(t){return X(this,Er).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return X(this,pl).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=X(this,Er).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const r=this.defaultQueryOptions(t),n=X(this,Er).build(this,r);return t.revalidateIfStale&&n.isStaleByTime(j3(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(e)}}getQueriesData(t){return X(this,Er).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),a=X(this,Er).get(n.queryHash),i=a==null?void 0:a.state.data,o=Cz(e,i);if(o!==void 0)return X(this,Er).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return ns.batch(()=>X(this,Er).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=X(this,Er).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=X(this,Er);ns.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=X(this,Er),n={type:"active",...t};return ns.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const r={revert:!0,...e},n=ns.batch(()=>X(this,Er).findAll(t).map(a=>a.cancel(r)));return Promise.all(n).then(Ka).catch(Ka)}invalidateQueries(t={},e={}){return ns.batch(()=>{if(X(this,Er).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,e)})}refetchQueries(t={},e){const r={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=ns.batch(()=>X(this,Er).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch(Ka)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Ka)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=X(this,Er).build(this,e);return r.isStaleByTime(j3(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ka).catch(Ka)}fetchInfiniteQuery(t){return t.behavior=k3(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ka).catch(Ka)}ensureInfiniteQueryData(t){return t.behavior=k3(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return V0.isOnline()?X(this,pl).resumePausedMutations():Promise.resolve()}getQueryCache(){return X(this,Er)}getMutationCache(){return X(this,pl)}getDefaultOptions(){return X(this,gl)}setDefaultOptions(t){De(this,gl,t)}setQueryDefaults(t,e){X(this,Fu).set(Sf(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...X(this,Fu).values()];let r={};return e.forEach(n=>{kf(t,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(t,e){X(this,Iu).set(Sf(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...X(this,Iu).values()];let r={};return e.forEach(n=>{kf(t,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...X(this,gl).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=_4(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===M4&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...X(this,gl).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){X(this,Er).clear(),X(this,pl).clear()}},Er=new WeakMap,pl=new WeakMap,gl=new WeakMap,Fu=new WeakMap,Iu=new WeakMap,xl=new WeakMap,Pu=new WeakMap,Tu=new WeakMap,RE),$z=b.createContext(void 0),Gz=({client:t,children:e})=>(b.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),s.jsx($z.Provider,{value:t,children:e}));/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ef(){return Ef=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function TP(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Yz(){return Math.random().toString(36).substr(2,8)}function I3(t,e){return{usr:t.state,key:t.key,idx:e}}function V2(t,e,r,n){return r===void 0&&(r=null),Ef({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?uh(e):e,{state:r,key:e&&e.key||n||Yz()})}function z0(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function uh(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function Jz(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,l=kl.Pop,c=null,d=A();d==null&&(d=0,o.replaceState(Ef({},o.state,{idx:d}),""));function A(){return(o.state||{idx:null}).idx}function u(){l=kl.Pop;let w=A(),y=w==null?null:w-d;d=w,c&&c({action:l,location:p.location,delta:y})}function h(w,y){l=kl.Push;let v=V2(p.location,w,y);d=A()+1;let j=I3(v,d),S=p.createHref(v);try{o.pushState(j,"",S)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;a.location.assign(S)}i&&c&&c({action:l,location:p.location,delta:1})}function m(w,y){l=kl.Replace;let v=V2(p.location,w,y);d=A();let j=I3(v,d),S=p.createHref(v);o.replaceState(j,"",S),i&&c&&c({action:l,location:p.location,delta:0})}function g(w){let y=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof w=="string"?w:z0(w);return v=v.replace(/ $/,"%20"),en(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let p={get action(){return l},get location(){return t(a,o)},listen(w){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(F3,u),c=w,()=>{a.removeEventListener(F3,u),c=null}},createHref(w){return e(a,w)},createURL:g,encodeLocation(w){let y=g(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(w){return o.go(w)}};return p}var P3;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(P3||(P3={}));function Xz(t,e,r){return r===void 0&&(r="/"),Zz(t,e,r,!1)}function Zz(t,e,r,n){let a=typeof e=="string"?uh(e):e,i=Q4(a.pathname||"/",r);if(i==null)return null;let o=LP(t);eW(o);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(en(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let d=Hl([n,c.relativePath]),A=r.concat(c);i.children&&i.children.length>0&&(en(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),LP(i.children,e,A,d)),!(i.path==null&&!i.index)&&e.push({path:d,score:oW(d,i.index),routesMeta:A})};return t.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let c of UP(i.path))a(i,o,c)}),e}function UP(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=UP(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function eW(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:lW(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const tW=/^:[\w-]+$/,rW=3,nW=2,sW=1,aW=10,iW=-2,T3=t=>t==="*";function oW(t,e){let r=t.split("/"),n=r.length;return r.some(T3)&&(n+=iW),e&&(n+=nW),r.filter(a=>!T3(a)).reduce((a,i)=>a+(tW.test(i)?rW:i===""?sW:aW),n)}function lW(t,e){return t.length===e.length&&t.slice(0,-1).every((n,a)=>n===e[a])?t[t.length-1]-e[e.length-1]:0}function cW(t,e,r){let{routesMeta:n}=t,a={},i="/",o=[];for(let l=0;l{let{paramName:h,isOptional:m}=A;if(h==="*"){let p=l[u]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const g=l[u];return m&&!g?d[h]=void 0:d[h]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:t}}function dW(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),TP(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function AW(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return TP(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Q4(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function uW(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?uh(t):t;return{pathname:r?r.startsWith("/")?r:hW(r,e):e,search:pW(n),hash:gW(a)}}function hW(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function vw(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mW(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function _P(t,e){let r=mW(t);return e?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function MP(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=uh(t):(a=Ef({},t),en(!a.pathname||!a.pathname.includes("?"),vw("?","pathname","search",a)),en(!a.pathname||!a.pathname.includes("#"),vw("#","pathname","hash",a)),en(!a.search||!a.search.includes("#"),vw("#","search","hash",a)));let i=t===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=r;else{let u=e.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),u-=1;a.pathname=h.join("/")}l=u>=0?e[u]:"/"}let c=uW(a,l),d=o&&o!=="/"&&o.endsWith("/"),A=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||A)&&(c.pathname+="/"),c}const Hl=t=>t.join("/").replace(/\/\/+/g,"/"),fW=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),pW=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,gW=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function xW(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const QP=["post","put","patch","delete"];new Set(QP);const yW=["get",...QP];new Set(yW);/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ff(){return Ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),b.useCallback(function(d,A){if(A===void 0&&(A={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let u=MP(d,JSON.parse(o),i,A.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Hl([e,u.pathname])),(A.replace?n.replace:n.push)(u,A.state,A)},[e,n,o,i,t])}function To(){let{matches:t}=b.useContext(uc),e=t[t.length-1];return e?e.params:{}}function OP(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=b.useContext(Td),{matches:a}=b.useContext(uc),{pathname:i}=Ld(),o=JSON.stringify(_P(a,n.v7_relativeSplatPath));return b.useMemo(()=>MP(t,JSON.parse(o),i,r==="path"),[t,o,i,r])}function jW(t,e){return NW(t,e)}function NW(t,e,r,n){up()||en(!1);let{navigator:a}=b.useContext(Td),{matches:i}=b.useContext(uc),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=Ld(),A;if(e){var u;let w=typeof e=="string"?uh(e):e;c==="/"||(u=w.pathname)!=null&&u.startsWith(c)||en(!1),A=w}else A=d;let h=A.pathname||"/",m=h;if(c!=="/"){let w=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=Xz(t,{pathname:m}),p=EW(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Hl([c,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Hl([c,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,r,n);return e&&p?b.createElement(Av.Provider,{value:{location:Ff({pathname:"/",search:"",hash:"",state:null,key:"default"},A),navigationType:kl.Pop}},p):p}function CW(){let t=TW(),e=xW(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),r?b.createElement("pre",{style:a},r):null,null)}const BW=b.createElement(CW,null);class SW extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?b.createElement(uc.Provider,{value:this.props.routeContext},b.createElement(DP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kW(t){let{routeContext:e,match:r,children:n}=t,a=b.useContext(D4);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(uc.Provider,{value:e},n)}function EW(t,e,r,n){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if(!r)return null;if(r.errors)t=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,l=(a=r)==null?void 0:a.errors;if(l!=null){let A=o.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id])!==void 0);A>=0||en(!1),o=o.slice(0,Math.min(o.length,A+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let A=0;A=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((A,u,h)=>{let m,g=!1,p=null,w=null;r&&(m=l&&u.route.id?l[u.route.id]:void 0,p=u.route.errorElement||BW,c&&(d<0&&h===0?(g=!0,w=null):d===h&&(g=!0,w=u.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,h+1)),v=()=>{let j;return m?j=p:g?j=w:u.route.Component?j=b.createElement(u.route.Component,null):u.route.element?j=u.route.element:j=A,b.createElement(kW,{match:u,routeContext:{outlet:A,matches:y,isDataRoute:r!=null},children:j})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?b.createElement(SW,{location:r.location,revalidation:r.revalidation,component:p,error:m,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var HP=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(HP||{}),W0=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(W0||{});function FW(t){let e=b.useContext(D4);return e||en(!1),e}function IW(t){let e=b.useContext(vW);return e||en(!1),e}function PW(t){let e=b.useContext(uc);return e||en(!1),e}function KP(t){let e=PW(),r=e.matches[e.matches.length-1];return r.route.id||en(!1),r.route.id}function TW(){var t;let e=b.useContext(DP),r=IW(W0.UseRouteError),n=KP(W0.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function LW(){let{router:t}=FW(HP.UseNavigateStable),e=KP(W0.UseNavigateStable),r=b.useRef(!1);return RP(()=>{r.current=!0}),b.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,Ff({fromRouteId:e},i)))},[t,e])}function _e(t){en(!1)}function UW(t){let{basename:e="/",children:r=null,location:n,navigationType:a=kl.Pop,navigator:i,static:o=!1,future:l}=t;up()&&en(!1);let c=e.replace(/^\/*/,"/"),d=b.useMemo(()=>({basename:c,navigator:i,static:o,future:Ff({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof n=="string"&&(n=uh(n));let{pathname:A="/",search:u="",hash:h="",state:m=null,key:g="default"}=n,p=b.useMemo(()=>{let w=Q4(A,c);return w==null?null:{location:{pathname:w,search:u,hash:h,state:m,key:g},navigationType:a}},[c,A,u,h,m,g,a]);return p==null?null:b.createElement(Td.Provider,{value:d},b.createElement(Av.Provider,{children:r,value:p}))}function _W(t){let{children:e,location:r}=t;return jW(z2(e),r)}new Promise(()=>{});function z2(t,e){e===void 0&&(e=[]);let r=[];return b.Children.forEach(t,(n,a)=>{if(!b.isValidElement(n))return;let i=[...e,a];if(n.type===b.Fragment){r.push.apply(r,z2(n.props.children,i));return}n.type!==_e&&en(!1),!n.props.index||!n.props.children||en(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=z2(n.props.children,i)),r.push(o)}),r}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function W2(){return W2=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[a]=t[a]);return r}function QW(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function DW(t,e){return t.button===0&&(!e||e==="_self")&&!QW(t)}function $2(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function RW(t,e){let r=$2(t);return e&&e.forEach((n,a)=>{r.has(a)||e.getAll(a).forEach(i=>{r.append(a,i)})}),r}const OW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],HW="6";try{window.__reactRouterVersion=HW}catch{}const KW="startTransition",U3=XE[KW];function VW(t){let{basename:e,children:r,future:n,window:a}=t,i=b.useRef();i.current==null&&(i.current=qz({window:a,v5Compat:!0}));let o=i.current,[l,c]=b.useState({action:o.action,location:o.location}),{v7_startTransition:d}=n||{},A=b.useCallback(u=>{d&&U3?U3(()=>c(u)):c(u)},[c,d]);return b.useLayoutEffect(()=>o.listen(A),[o,A]),b.createElement(UW,{basename:e,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const zW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=b.forwardRef(function(e,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:l,target:c,to:d,preventScrollReset:A,viewTransition:u}=e,h=MW(e,OW),{basename:m}=b.useContext(Td),g,p=!1;if(typeof d=="string"&&WW.test(d)&&(g=d,zW))try{let j=new URL(window.location.href),S=d.startsWith("//")?new URL(j.protocol+d):new URL(d),F=Q4(S.pathname,m);S.origin===j.origin&&F!=null?d=F+S.search+S.hash:p=!0}catch{}let w=bW(d,{relative:a}),y=$W(d,{replace:o,state:l,target:c,preventScrollReset:A,relative:a,viewTransition:u});function v(j){n&&n(j),j.defaultPrevented||y(j)}return b.createElement("a",W2({},h,{href:g||w,onClick:p||i?n:v,ref:r,target:c}))});var _3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(_3||(_3={}));var M3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(M3||(M3={}));function $W(t,e){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o,viewTransition:l}=e===void 0?{}:e,c=Ft(),d=Ld(),A=OP(t,{relative:o});return b.useCallback(u=>{if(DW(u,r)){u.preventDefault();let h=n!==void 0?n:z0(d)===z0(A);c(t,{replace:h,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,A,n,a,r,t,i,o,l])}function VP(t){let e=b.useRef($2(t)),r=b.useRef(!1),n=Ld(),a=b.useMemo(()=>RW(n.search,r.current?null:e.current),[n.search]),i=Ft(),o=b.useCallback((l,c)=>{const d=$2(typeof l=="function"?l(a):l);r.current=!0,i("?"+d,c)},[i,a]);return[a,o]}const GW=()=>{const{pathname:t}=Ld();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),null},uv=({label:t,children:e,className:r=""})=>{const[n,a]=b.useState(!1),i=b.useRef(null),o=()=>{i.current&&clearTimeout(i.current),a(!0)},l=()=>{i.current=setTimeout(()=>{a(!1)},150)};return s.jsxs("div",{className:"relative group",children:[s.jsxs("button",{className:`flex items-center py-2 px-3 font-medium text-[#1B2C4F] hover:bg-black/5 transition-all duration-200 rounded-lg border border-transparent hover:border-black/20 ${r}`,style:{fontSize:"14px",fontFamily:"Inter, sans-serif"},onMouseEnter:o,onMouseLeave:l,children:[t," ",s.jsx(ji,{className:"ml-1 h-4 w-4 transition-transform group-hover:rotate-180 duration-200"})]}),n&&s.jsx("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 w-80 z-50 mt-3",style:{background:"rgba(255, 255, 255, 0.90)",backgroundImage:"linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.90) 100%)",backdropFilter:"blur(20px) brightness(0.9)",border:"1px solid rgba(0, 97, 224, 0.06)",borderRadius:"24px",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.08)",padding:"24px 32px"},onMouseEnter:o,onMouseLeave:l,children:e})]})},Hs=({to:t,href:e,children:r,icon:n,iconAlt:a,title:i,description:o})=>{const l=s.jsxs("div",{className:"flex items-center gap-4 cursor-pointer transition-all duration-150 ease-out rounded-lg",style:{height:"56px",transition:"background .15s ease, color .15s ease"},onMouseEnter:c=>{c.currentTarget.style.background="rgba(0, 97, 224, 0.08)";const d=c.currentTarget.querySelector(".dropdown-icon"),A=c.currentTarget.querySelector(".dropdown-title");d&&(d.style.color="#0061E0"),A&&(A.style.color="#0061E0")},onMouseLeave:c=>{c.currentTarget.style.background="transparent";const d=c.currentTarget.querySelector(".dropdown-icon"),A=c.currentTarget.querySelector(".dropdown-title");d&&(d.style.color="#1B2C4F"),A&&(A.style.color="#1B2C4F")},children:[n&&s.jsx("div",{className:"dropdown-icon text-[#1B2C4F] transition-colors duration-150 flex-shrink-0",children:typeof n=="string"?s.jsx("img",{src:n,alt:a,className:"w-7 h-7 object-contain"}):n}),s.jsxs("div",{children:[s.jsx("h3",{className:"dropdown-title font-semibold text-[#1B2C4F] text-sm mb-0.5 transition-colors duration-150",style:{fontFamily:"Inter, sans-serif",fontWeight:"600"},children:i}),o&&s.jsx("p",{className:"text-[#33435C] leading-relaxed",style:{fontFamily:"Inter, sans-serif",fontSize:"14px",lineHeight:"1.4"},children:o})]})]});return e?s.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"block",children:l}):t?s.jsx(kt,{to:t,className:"block",children:l}):l},qW=()=>s.jsx(uv,{label:"Product",children:s.jsxs("div",{className:"space-y-0",children:[s.jsx(Hs,{to:"/signals",icon:s.jsx(PI,{size:28,strokeWidth:1.6,"aria-hidden":"true"}),title:"Signals",description:"Capture any signal from anywhere"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/intelligence",icon:s.jsx(_I,{size:28,strokeWidth:1.6,"aria-hidden":"true"}),title:"Intelligence",description:"Turn signals into actionable sales insights."}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/playbooks",icon:s.jsx(ll,{size:28,strokeWidth:1.6,"aria-hidden":"true"}),title:"Automation (plays)",description:"Let AI find prospects for you based on sales plays"})]})}),YW=()=>s.jsx(uv,{label:"Solutions",children:s.jsxs("div",{className:"space-y-0",children:[s.jsx(Hs,{to:"/mcp",icon:s.jsx(jf,{className:"w-7 h-7"}),title:"MadKudu for AI Agents"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/solutions/madkudu-for-gong",icon:"/lovable-uploads/f47b766b-5a15-4c5f-b19c-034abc0b632c.png",iconAlt:"Gong",title:"MadKudu for Gong"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/solutions/madkudu-for-outreach",icon:"/lovable-uploads/f51d91fb-619c-462c-8cc9-12f1ed1d94f2.png",iconAlt:"Outreach",title:"MadKudu for Outreach"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/solutions/madkudu-for-salesforce",icon:"/lovable-uploads/a56bf81b-3b5f-49ea-8679-6a84c74f1d21.png",iconAlt:"Salesforce",title:"MadKudu for Salesforce"})]})}),JW=()=>s.jsx(uv,{label:"Customers",children:s.jsxs("div",{className:"space-y-0",children:[s.jsx(Hs,{to:"/wall-of-love",icon:s.jsx(DI,{size:28,strokeWidth:1.6}),title:"Wall of Love",description:"See what our customers love about MadKudu"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/customers",icon:s.jsx(Hn,{size:28,strokeWidth:1.6}),title:"Customer Stories",description:"See how companies like yours succeed with MadKudu"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/roi-calculator",icon:s.jsx(LI,{size:28,strokeWidth:1.6}),title:"ROI Calculator",description:"Calculate your potential return on investment"})]})}),XW=()=>s.jsx(uv,{label:"Resources",children:s.jsxs("div",{className:"space-y-0",children:[s.jsx(Hs,{to:"/confessions",icon:s.jsx(OI,{size:28,strokeWidth:1.6}),title:"Confessions Podcast",description:"Real stories from revenue leaders"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/sales-101",icon:s.jsx(HI,{size:28,strokeWidth:1.6}),title:"Sales 101 Enablement Sessions",description:"Training sessions for sales teams"}),s.jsx("div",{style:{height:"1px",background:"rgba(27, 44, 79, 0.06)",margin:"12px 0"}}),s.jsx(Hs,{to:"/blog",icon:s.jsx(gd,{size:28,strokeWidth:1.6}),title:"Blog",description:"Insights and best practices"})]})}),ZW=({isMenuOpen:t,onDemoClick:e})=>{const[r,n]=b.useState(null);if(!t)return null;const a=i=>{n(r===i?null:i)};return s.jsx("div",{className:"md:hidden py-4 border-t border-black/20 mt-3",children:s.jsxs("div",{className:"flex flex-col space-y-2",children:[s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>a("product"),className:"flex items-center justify-between w-full text-[#1B2C4F] hover:text-[#1B2C4F]/80 transition-colors font-medium py-2 px-2 rounded-xl hover:bg-black/5",children:["Product",s.jsx(ji,{className:`h-4 w-4 transition-transform ${r==="product"?"rotate-180":""}`})]}),r==="product"&&s.jsxs("div",{className:"mt-2 ml-4 space-y-2",children:[s.jsxs("a",{href:"/signals",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(PI,{size:20,strokeWidth:1.6}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Signals"}),s.jsx("div",{className:"text-xs text-[#33435C]",children:"Capture any signal from anywhere"})]})]}),s.jsxs("a",{href:"/intelligence",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(_I,{size:20,strokeWidth:1.6}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Intelligence"}),s.jsx("div",{className:"text-xs text-[#33435C]",children:"Turn signals into actionable sales insights"})]})]}),s.jsxs("a",{href:"/playbooks",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(ll,{size:20,strokeWidth:1.6}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Automation (plays)"}),s.jsx("div",{className:"text-xs text-[#33435C]",children:"Let AI find prospects for you based on sales plays"})]})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>a("solutions"),className:"flex items-center justify-between w-full text-[#1B2C4F] hover:text-[#1B2C4F]/80 transition-colors font-medium py-2 px-2 rounded-xl hover:bg-black/5",children:["Solutions",s.jsx(ji,{className:`h-4 w-4 transition-transform ${r==="solutions"?"rotate-180":""}`})]}),r==="solutions"&&s.jsxs("div",{className:"mt-2 ml-4 space-y-2",children:[s.jsxs("a",{href:"/solutions/madkudu-for-gong",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx("img",{src:"/lovable-uploads/f47b766b-5a15-4c5f-b19c-034abc0b632c.png",alt:"Gong",className:"w-5 h-5 object-contain"}),s.jsx("div",{className:"font-medium",children:"MadKudu for Gong"})]}),s.jsxs("a",{href:"/solutions/madkudu-for-outreach",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx("img",{src:"/lovable-uploads/f51d91fb-619c-462c-8cc9-12f1ed1d94f2.png",alt:"Outreach",className:"w-5 h-5 object-contain"}),s.jsx("div",{className:"font-medium",children:"MadKudu for Outreach"})]}),s.jsxs("a",{href:"/solutions/madkudu-for-salesforce",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx("img",{src:"/lovable-uploads/a56bf81b-3b5f-49ea-8679-6a84c74f1d21.png",alt:"Salesforce",className:"w-5 h-5 object-contain"}),s.jsx("div",{className:"font-medium",children:"MadKudu for Salesforce"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>a("customers"),className:"flex items-center justify-between w-full text-[#1B2C4F] hover:text-[#1B2C4F]/80 transition-colors font-medium py-2 px-2 rounded-xl hover:bg-black/5",children:["Customers",s.jsx(ji,{className:`h-4 w-4 transition-transform ${r==="customers"?"rotate-180":""}`})]}),r==="customers"&&s.jsxs("div",{className:"mt-2 ml-4 space-y-2",children:[s.jsxs("a",{href:"/customers",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(Hn,{size:20,strokeWidth:1.6}),s.jsx("div",{className:"font-medium",children:"Customer Stories"})]}),s.jsxs("a",{href:"/roi-calculator",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(LI,{size:20,strokeWidth:1.6}),s.jsx("div",{className:"font-medium",children:"ROI Calculator"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsxs("button",{onClick:()=>a("resources"),className:"flex items-center justify-between w-full text-[#1B2C4F] hover:text-[#1B2C4F]/80 transition-colors font-medium py-2 px-2 rounded-xl hover:bg-black/5",children:["Resources",s.jsx(ji,{className:`h-4 w-4 transition-transform ${r==="resources"?"rotate-180":""}`})]}),r==="resources"&&s.jsxs("div",{className:"mt-2 ml-4 space-y-2",children:[s.jsxs("a",{href:"/confessions",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(OI,{size:20,strokeWidth:1.6}),s.jsx("div",{className:"font-medium",children:"Confessions Podcast"})]}),s.jsxs("a",{href:"/sales-101",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(HI,{size:20,strokeWidth:1.6}),s.jsx("div",{className:"font-medium",children:"Sales 101 Enablement Sessions"})]}),s.jsxs("a",{href:"/blog",className:"flex items-center gap-3 py-2 px-3 text-sm text-[#1B2C4F] hover:bg-black/5 rounded-lg transition-colors",children:[s.jsx(gd,{size:20,strokeWidth:1.6}),s.jsx("div",{className:"font-medium",children:"Blog"})]})]})]}),s.jsx("a",{href:"#",className:"text-[#1B2C4F] hover:text-[#1B2C4F]/80 transition-colors font-medium py-2 px-2 rounded-xl hover:bg-black/5",children:"Login"}),s.jsx("div",{className:"pt-4",children:s.jsx("button",{className:"bg-black text-white w-full font-medium rounded-xl transition-all duration-200 shadow-sm hover:shadow-md border border-black/10 px-5 py-2.5",onClick:e,children:"Book a demo"})})]})})},Me=()=>{const t=Ft(),[e,r]=b.useState(!1),[n,a]=b.useState(!1);b.useEffect(()=>{const l=()=>{const c=window.scrollY;a(c>80)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),b.useEffect(()=>{["/lovable-uploads/f47b766b-5a15-4c5f-b19c-034abc0b632c.png","/lovable-uploads/f51d91fb-619c-462c-8cc9-12f1ed1d94f2.png","/lovable-uploads/a56bf81b-3b5f-49ea-8679-6a84c74f1d21.png"].forEach(c=>{const d=new Image;d.src=c})},[]);const i=()=>{t("/demo")},o=()=>{t("/login")};return s.jsx("header",{className:`fixed z-50 transition-all duration-300 ease-in-out ${n?"left-2 right-2":"left-4 right-4"}`,style:{top:`calc(var(--banner-offset, 0px) + ${n?"0.5rem":"1rem"})`},children:s.jsxs("div",{className:`max-w-6xl mx-auto bg-white/70 backdrop-blur-xl border border-black/20 rounded-2xl shadow-lg transition-all duration-300 ease-in-out ${n?"px-4 py-1":"px-6 md:px-8 py-2"}`,children:[s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("div",{className:"flex items-center",children:s.jsx(kt,{to:"/",className:"flex items-center hover:opacity-80 transition-opacity",children:s.jsx("img",{src:"/lovable-uploads/logo-madkudu-hg.svg",alt:"MadKudu Logo",className:`w-auto transition-all duration-300 ease-in-out ${n?"h-10 md:h-12":"h-12 md:h-14"}`})})}),s.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[s.jsx(qW,{}),s.jsx(YW,{}),s.jsx(JW,{}),s.jsx(XW,{})]}),s.jsxs("div",{className:"hidden md:flex items-center space-x-6",children:[s.jsx("button",{onClick:o,className:"py-2 px-3 font-medium text-[#1B2C4F] hover:bg-black/5 transition-all duration-200 rounded-lg border border-transparent hover:border-black/20",style:{fontSize:"14px",fontFamily:"Inter, sans-serif"},children:"Login"}),s.jsx("button",{onClick:i,className:"demo-cta-button text-white font-semibold rounded-2xl transition-all duration-200 hover:scale-105 active:scale-96 focus:outline-none focus:ring-4 focus:ring-purple-300/35",style:{fontSize:"16px",fontWeight:"600",padding:"12px 28px",background:"linear-gradient(to right, #a855f7, #ec4899)",minHeight:"44px"},children:"Book a Demo"})]}),s.jsx("button",{className:"md:hidden p-2 rounded-xl hover:bg-black/5 transition-colors",onClick:()=>r(!e),children:e?s.jsx(Na,{className:"h-5 w-5 text-[#1B2C4F]"}):s.jsx(NH,{className:"h-5 w-5 text-[#1B2C4F]"})})]}),s.jsx(ZW,{isMenuOpen:e,onDemoClick:i})]})})},R4=b.createContext({});function O4(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const H4=typeof window<"u",zP=H4?b.useLayoutEffect:b.useEffect,hv=b.createContext(null),K4=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function WP(t){return typeof t=="object"&&t!==null}function V4(t){return WP(t)&&"offsetHeight"in t}class e$ extends b.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=r.offsetParent,a=V4(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function t$({children:t,isPresent:e,anchorX:r}){const n=b.useId(),a=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=b.useContext(K4);return b.useInsertionEffect(()=>{const{width:l,height:c,top:d,left:A,right:u}=i.current;if(e||!a.current||!l||!c)return;const h=r==="left"?`left: ${A}`:`right: ${u}`;a.current.dataset.motionPopId=n;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${l}px !important; height: ${c}px !important; ${h}px !important; top: ${d}px !important; } `),()=>{document.head.contains(m)&&document.head.removeChild(m)}},[e]),s.jsx(e$,{isPresent:e,childRef:a,sizeRef:i,children:b.cloneElement(t,{ref:a})})}const r$=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l})=>{const c=O4(n$),d=b.useId();let A=!0,u=b.useMemo(()=>(A=!1,{id:d,initial:e,isPresent:r,custom:a,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;n&&n()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[r,c,n]);return i&&A&&(u={...u}),b.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[r]),b.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),o==="popLayout"&&(t=s.jsx(t$,{isPresent:r,anchorX:l,children:t})),s.jsx(hv.Provider,{value:u,children:t})};function n$(){return new Map}function $P(t=!0){const e=b.useContext(hv);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:a}=e,i=b.useId();b.useEffect(()=>{if(t)return a(i)},[t]);const o=b.useCallback(()=>t&&n&&n(i),[i,n,t]);return!r&&n?[!1,o]:[!0]}const Kg=t=>t.key||"";function Q3(t){const e=[];return b.Children.forEach(t,r=>{b.isValidElement(r)&&e.push(r)}),e}const s$=({children:t,custom:e,initial:r=!0,onExitComplete:n,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left"})=>{const[c,d]=$P(o),A=b.useMemo(()=>Q3(t),[t]),u=o&&!c?[]:A.map(Kg),h=b.useRef(!0),m=b.useRef(A),g=O4(()=>new Map),[p,w]=b.useState(A),[y,v]=b.useState(A);zP(()=>{h.current=!1,m.current=A;for(let F=0;F{const U=Kg(F),M=o&&!c?!1:A===y||u.includes(U),P=()=>{if(g.has(U))g.set(U,!0);else return;let W=!0;g.forEach($=>{$||(W=!1)}),W&&(S==null||S(),v(m.current),o&&(d==null||d()),n&&n())};return s.jsx(r$,{isPresent:M,initial:!h.current||r?void 0:!1,custom:e,presenceAffectsLayout:a,mode:i,onExitComplete:M?void 0:P,anchorX:l,children:F},U)})})},Vg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],D3={value:null,addProjectionMetrics:null};function a$(t,e){let r=new Set,n=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(u){o.has(u)&&(A.schedule(u),t()),c++,u(l)}const A={schedule:(u,h=!1,m=!1)=>{const p=m&&a?r:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(l=u,a){i=!0;return}a=!0,[r,n]=[n,r],r.forEach(d),e&&D3.value&&D3.value.frameloop[e].push(c),c=0,r.clear(),a=!1,i&&(i=!1,A.process(u))}};return A}const So={},i$=40;function GP(t,e){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,o=Vg.reduce((j,S)=>(j[S]=a$(i,e?S:void 0),j),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:A,update:u,preRender:h,render:m,postRender:g}=o,p=()=>{const j=So.useManualTiming?a.timestamp:performance.now();r=!1,So.useManualTiming||(a.delta=n?1e3/60:Math.max(Math.min(j-a.timestamp,i$),1)),a.timestamp=j,a.isProcessing=!0,l.process(a),c.process(a),d.process(a),A.process(a),u.process(a),h.process(a),m.process(a),g.process(a),a.isProcessing=!1,r&&e&&(n=!1,t(p))},w=()=>{r=!0,n=!0,a.isProcessing||t(p)};return{schedule:Vg.reduce((j,S)=>{const F=o[S];return j[S]=(U,M=!1,P=!1)=>(r||w(),F.schedule(U,M,P)),j},{}),cancel:j=>{for(let S=0;St,{schedule:Nr,cancel:rc,state:jn,steps:bw}=GP(typeof requestAnimationFrame<"u"?requestAnimationFrame:ba,!0),qP=b.createContext({strict:!1}),R3={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"]},Gu={};for(const t in R3)Gu[t]={isEnabled:e=>R3[t].some(r=>!!e[r])};function o$(t){for(const e in t)Gu[e]={...Gu[e],...t[e]}}const l$=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 $0(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||l$.has(t)}let YP=t=>!$0(t);function c$(t){t&&(YP=e=>e.startsWith("on")?!$0(e):t(e))}try{c$(require("@emotion/is-prop-valid").default)}catch{}function d$(t,e,r){const n={};for(const a in t)a==="values"&&typeof t.values=="object"||(YP(a)||r===!0&&$0(a)||!e&&!$0(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}function A$(t){if(typeof Proxy>"u")return t;const e=new Map,r=(...n)=>t(...n);return new Proxy(r,{get:(n,a)=>a==="create"?t:(e.has(a)||e.set(a,t(a)),e.get(a))})}const mv=b.createContext({});function fv(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function If(t){return typeof t=="string"||Array.isArray(t)}const z4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],W4=["initial",...z4];function pv(t){return fv(t.animate)||W4.some(e=>If(t[e]))}function JP(t){return!!(pv(t)||t.variants)}function u$(t,e){if(pv(t)){const{initial:r,animate:n}=t;return{initial:r===!1||If(r)?r:void 0,animate:If(n)?n:void 0}}return t.inherit!==!1?e:{}}function h$(t){const{initial:e,animate:r}=u$(t,b.useContext(mv));return b.useMemo(()=>({initial:e,animate:r}),[O3(e),O3(r)])}function O3(t){return Array.isArray(t)?t.join(" "):t}const m$=Symbol.for("motionComponentSymbol");function ZA(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function f$(t,e,r){return b.useCallback(n=>{n&&t.onMount&&t.onMount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):ZA(r)&&(r.current=n))},[e])}const $4=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),p$="framerAppearId",XP="data-"+$4(p$),ZP=b.createContext({}),{schedule:G4,cancel:Sfe}=GP(queueMicrotask,!1);function g$(t,e,r,n,a){var p,w;const{visualElement:i}=b.useContext(mv),o=b.useContext(qP),l=b.useContext(hv),c=b.useContext(K4).reducedMotion,d=b.useRef(null);n=n||o.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:i,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const A=d.current,u=b.useContext(ZP);A&&!A.projection&&a&&(A.type==="html"||A.type==="svg")&&x$(d.current,r,a,u);const h=b.useRef(!1);b.useInsertionEffect(()=>{A&&h.current&&A.update(r,l)});const m=r[XP],g=b.useRef(!!m&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,m))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,m)));return zP(()=>{A&&(h.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),G4.render(A.render),g.current&&A.animationState&&A.animationState.animateChanges())}),b.useEffect(()=>{A&&(!g.current&&A.animationState&&A.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,m)}),g.current=!1))}),A}function x$(t,e,r,n){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:A}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:eT(t.parent)),t.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&ZA(l),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:A,layoutScroll:c,layoutRoot:d})}function eT(t){if(t)return t.options.allowProjection!==!1?t.projection:eT(t.parent)}let G0=()=>{};function y$({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:a}){t&&o$(t);function i(l,c){let d;const A={...b.useContext(K4),...l,layoutId:v$(l)},{isStatic:u}=A,h=h$(l),m=n(l,u);if(!u&&H4){b$();const g=w$(A);d=g.MeasureLayout,h.visualElement=g$(a,m,A,e,g.ProjectionNode)}return s.jsxs(mv.Provider,{value:h,children:[d&&h.visualElement?s.jsx(d,{visualElement:h.visualElement,...A}):null,r(a,l,f$(m,h.visualElement,c),m,u,h.visualElement)]})}i.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const o=b.forwardRef(i);return o[m$]=a,o}function v$({layoutId:t}){const e=b.useContext(R4).id;return e&&t!==void 0?e+"-"+t:t}function b$(t,e){b.useContext(qP).strict}function w$(t){const{drag:e,layout:r}=Gu;if(!e&&!r)return{};const n={...e,...r};return{MeasureLayout:e!=null&&e.isEnabled(t)||r!=null&&r.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const tT=t=>e=>typeof e=="string"&&e.startsWith(t),q4=tT("--"),j$=tT("var(--"),Y4=t=>j$(t)?N$.test(t.split("/*")[0].trim()):!1,N$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pf={};function C$(t){for(const e in t)Pf[e]=t[e],q4(e)&&(Pf[e].isCSSVariable=!0)}const hh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mh=new Set(hh);function rT(t,{layout:e,layoutId:r}){return mh.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Pf[t]||t==="opacity")}const nT=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ko=(t,e,r)=>r>e?e:rtypeof t=="number",parse:parseFloat,transform:t=>t},Tf={...fh,transform:t=>ko(0,1,t)},zg={...fh,default:1},H3={...fh,transform:Math.round},hp=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),tl=hp("deg"),ki=hp("%"),ut=hp("px"),B$=hp("vh"),S$=hp("vw"),K3={...ki,parse:t=>ki.parse(t)/100,transform:t=>ki.transform(t*100)},k$={rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:zg,scaleX:zg,scaleY:zg,scaleZ:zg,skew:tl,skewX:tl,skewY:tl,distance:ut,translateX:ut,translateY:ut,translateZ:ut,x:ut,y:ut,z:ut,perspective:ut,transformPerspective:ut,opacity:Tf,originX:K3,originY:K3,originZ:ut},J4={borderWidth:ut,borderTopWidth:ut,borderRightWidth:ut,borderBottomWidth:ut,borderLeftWidth:ut,borderRadius:ut,radius:ut,borderTopLeftRadius:ut,borderTopRightRadius:ut,borderBottomRightRadius:ut,borderBottomLeftRadius:ut,width:ut,maxWidth:ut,height:ut,maxHeight:ut,top:ut,right:ut,bottom:ut,left:ut,padding:ut,paddingTop:ut,paddingRight:ut,paddingBottom:ut,paddingLeft:ut,margin:ut,marginTop:ut,marginRight:ut,marginBottom:ut,marginLeft:ut,backgroundPositionX:ut,backgroundPositionY:ut,...k$,zIndex:H3,fillOpacity:Tf,strokeOpacity:Tf,numOctaves:H3},E$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F$=hh.length;function I$(t,e,r){let n="",a=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Vn=t=>!!(t&&t.getVelocity);function sT(t,e,r){for(const n in e)!Vn(e[n])&&!rT(n,r)&&(t[n]=e[n])}function P$({transformTemplate:t},e){return b.useMemo(()=>{const r=Z4();return X4(r,e,t),Object.assign({},r.vars,r.style)},[e])}function T$(t,e){const r=t.style||{},n={};return sT(n,r,t),Object.assign(n,P$(t,e)),n}function L$(t,e){const r={},n=T$(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const U$={offset:"stroke-dashoffset",array:"stroke-dasharray"},_$={offset:"strokeDashoffset",array:"strokeDasharray"};function M$(t,e,r=1,n=0,a=!0){t.pathLength=1;const i=a?U$:_$;t[i.offset]=ut.transform(-n);const o=ut.transform(e),l=ut.transform(r);t[i.array]=`${o} ${l}`}function aT(t,{attrX:e,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},c,d,A){if(X4(t,l,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:u,style:h}=t;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=(A==null?void 0:A.transformBox)??"fill-box",delete u.transformBox),e!==void 0&&(u.x=e),r!==void 0&&(u.y=r),n!==void 0&&(u.scale=n),a!==void 0&&M$(u,a,i,o,!1)}const iT=()=>({...Z4(),attrs:{}}),oT=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Q$(t,e,r,n){const a=b.useMemo(()=>{const i=iT();return aT(i,e,oT(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};sT(i,t.style,t),a.style={...i,...a.style}}return a}const D$=["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 eN(t){return typeof t!="string"||t.includes("-")?!1:!!(D$.indexOf(t)>-1||/[A-Z]/u.test(t))}function R$(t=!1){return(r,n,a,{latestValues:i},o)=>{const c=(eN(r)?Q$:L$)(n,i,o,r),d=d$(n,typeof r=="string",t),A=r!==b.Fragment?{...d,...c,ref:a}:{},{children:u}=n,h=b.useMemo(()=>Vn(u)?u.get():u,[u]);return b.createElement(r,{...A,children:h})}}function V3(t){const e=[{},{}];return t==null||t.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function tN(t,e,r,n){if(typeof e=="function"){const[a,i]=V3(n);e=e(r!==void 0?r:t.custom,a,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,i]=V3(n);e=e(r!==void 0?r:t.custom,a,i)}return e}function $x(t){return Vn(t)?t.get():t}function O$({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,a){return{latestValues:H$(r,n,a,t),renderState:e()}}const lT=t=>(e,r)=>{const n=b.useContext(mv),a=b.useContext(hv),i=()=>O$(t,e,n,a);return r?i():O4(i)};function H$(t,e,r,n){const a={},i=n(t,{});for(const h in i)a[h]=$x(i[h]);let{initial:o,animate:l}=t;const c=pv(t),d=JP(t);e&&d&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),l===void 0&&(l=e.animate));let A=r?r.initial===!1:!1;A=A||o===!1;const u=A?l:o;if(u&&typeof u!="boolean"&&!fv(u)){const h=Array.isArray(u)?u:[u];for(let m=0;mArray.isArray(t);let Gx;function W$(){Gx=void 0}const Ns={now:()=>(Gx===void 0&&Ns.set(jn.isProcessing||So.useManualTiming?jn.timestamp:performance.now()),Gx),set:t=>{Gx=t,queueMicrotask(W$)}};function nN(t,e){t.indexOf(e)===-1&&t.push(e)}function sN(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class aN{constructor(){this.subscriptions=[]}add(e){return nN(this.subscriptions,e),()=>sN(this.subscriptions,e)}notify(e,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class G${constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,a=!0)=>{var o,l;const i=Ns.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();a&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=Ns.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$$(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new aN);const n=this.events[e].add(r);return e==="change"?()=>{n(),Nr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ns.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>z3)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,z3);return dT(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,r;(e=this.dependents)==null||e.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qu(t,e){return new G$(t,e)}function q$(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,qu(r))}function Y$(t){return G2(t)?t[t.length-1]||0:t}function J$(t,e){const r=Lf(t,e);let{transitionEnd:n={},transition:a={},...i}=r||{};i={...i,...n};for(const o in i){const l=Y$(i[o]);q$(t,o,l)}}function X$(t){return!!(Vn(t)&&t.add)}function q2(t,e){const r=t.getValue("willChange");if(X$(r))return r.add(e);if(!r&&So.WillChange){const n=new So.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function AT(t){return t.props[XP]}const Z$=t=>t!==null;function eG(t,{repeat:e,repeatType:r="loop"},n){const a=t.filter(Z$),i=e&&r!=="loop"&&e%2===1?0:a.length-1;return!i||n===void 0?a[i]:n}const tG={type:"spring",stiffness:500,damping:25,restSpeed:10},rG=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nG={type:"keyframes",duration:.8},sG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aG=(t,{keyframes:e})=>e.length>2?nG:mh.has(t)?t.startsWith("scale")?rG(e[1]):tG:sG;function iG({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:d,...A}){return!!Object.keys(A).length}function iN(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const Ei=t=>t*1e3,Fi=t=>t/1e3,Hm=t=>Math.round(t*1e5)/1e5,oN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oG(t){return t==null}const lG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lN=(t,e)=>r=>!!(typeof r=="string"&&lG.test(r)&&r.startsWith(t)||e&&!oG(r)&&Object.prototype.hasOwnProperty.call(r,e)),uT=(t,e,r)=>n=>{if(typeof n!="string")return n;const[a,i,o,l]=n.match(oN);return{[t]:parseFloat(a),[e]:parseFloat(i),[r]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},cG=t=>ko(0,255,t),ww={...fh,transform:t=>Math.round(cG(t))},Kc={test:lN("rgb","red"),parse:uT("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+ww.transform(t)+", "+ww.transform(e)+", "+ww.transform(r)+", "+Hm(Tf.transform(n))+")"};function dG(t){let e="",r="",n="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,n+=n,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const Y2={test:lN("#"),parse:dG,transform:Kc.transform},eu={test:lN("hsl","hue"),parse:uT("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ki.transform(Hm(e))+", "+ki.transform(Hm(r))+", "+Hm(Tf.transform(n))+")"},Dn={test:t=>Kc.test(t)||Y2.test(t)||eu.test(t),parse:t=>Kc.test(t)?Kc.parse(t):eu.test(t)?eu.parse(t):Y2.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Kc.transform(t):eu.transform(t)},AG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uG(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(oN))==null?void 0:e.length)||0)+(((r=t.match(AG))==null?void 0:r.length)||0)>0}const hT="number",mT="color",hG="var",mG="var(",W3="${}",fG=/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 Uf(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},a=[];let i=0;const l=e.replace(fG,c=>(Dn.test(c)?(n.color.push(i),a.push(mT),r.push(Dn.parse(c))):c.startsWith(mG)?(n.var.push(i),a.push(hG),r.push(c)):(n.number.push(i),a.push(hT),r.push(parseFloat(c))),++i,W3)).split(W3);return{values:r,split:l,indexes:n,types:a}}function fT(t){return Uf(t).values}function pT(t){const{split:e,types:r}=Uf(t),n=e.length;return a=>{let i="";for(let o=0;otypeof t=="number"?0:t;function gG(t){const e=fT(t);return pT(t)(e.map(pG))}const nc={test:uG,parse:fT,createTransformer:pT,getAnimatableNone:gG};function jw(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function xG({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let a=0,i=0,o=0;if(!e)a=i=o=r;else{const l=r<.5?r*(1+e):r+e-r*e,c=2*r-l;a=jw(c,l,t+1/3),i=jw(c,l,t),o=jw(c,l,t-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function q0(t,e){return r=>r>0?e:t}const wr=(t,e,r)=>t+(e-t)*r,Nw=(t,e,r)=>{const n=t*t,a=r*(e*e-n)+n;return a<0?0:Math.sqrt(a)},yG=[Y2,Kc,eu],vG=t=>yG.find(e=>e.test(t));function $3(t){const e=vG(t);if(!e)return!1;let r=e.parse(t);return e===eu&&(r=xG(r)),r}const G3=(t,e)=>{const r=$3(t),n=$3(e);if(!r||!n)return q0(t,e);const a={...r};return i=>(a.red=Nw(r.red,n.red,i),a.green=Nw(r.green,n.green,i),a.blue=Nw(r.blue,n.blue,i),a.alpha=wr(r.alpha,n.alpha,i),Kc.transform(a))},J2=new Set(["none","hidden"]);function bG(t,e){return J2.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}const wG=(t,e)=>r=>e(t(r)),mp=(...t)=>t.reduce(wG);function jG(t,e){return r=>wr(t,e,r)}function cN(t){return typeof t=="number"?jG:typeof t=="string"?Y4(t)?q0:Dn.test(t)?G3:BG:Array.isArray(t)?gT:typeof t=="object"?Dn.test(t)?G3:NG:q0}function gT(t,e){const r=[...t],n=r.length,a=t.map((i,o)=>cN(i)(i,e[o]));return i=>{for(let o=0;o{for(const i in n)r[i]=n[i](a);return r}}function CG(t,e){const r=[],n={color:0,var:0,number:0};for(let a=0;a{const r=nc.createTransformer(e),n=Uf(t),a=Uf(e);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?J2.has(t)&&!a.values.length||J2.has(e)&&!n.values.length?bG(t,e):mp(gT(CG(n,a),a.values),r):q0(t,e)};function xT(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?wr(t,e,r):cN(t)(t,e)}const SG=t=>{const e=({timestamp:r})=>t(r);return{start:(r=!0)=>Nr.update(e,r),stop:()=>rc(e),now:()=>jn.isProcessing?jn.timestamp:Ns.now()}},yT=(t,e,r=10)=>{let n="";const a=Math.max(Math.round(e/r),2);for(let i=0;i=Y0?1/0:e}function kG(t,e=100,r){const n=r({...t,keyframes:[0,e]}),a=Math.min(dN(n),Y0);return{type:"keyframes",ease:i=>n.next(a*i).value/e,duration:Fi(a)}}const EG=5;function vT(t,e,r){const n=Math.max(e-EG,0);return dT(r-t(n),e-n)}const Ir={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},Cw=.001;function FG({duration:t=Ir.duration,bounce:e=Ir.bounce,velocity:r=Ir.velocity,mass:n=Ir.mass}){let a,i,o=1-e;o=ko(Ir.minDamping,Ir.maxDamping,o),t=ko(Ir.minDuration,Ir.maxDuration,Fi(t)),o<1?(a=d=>{const A=d*o,u=A*t,h=A-r,m=X2(d,o),g=Math.exp(-u);return Cw-h/m*g},i=d=>{const u=d*o*t,h=u*r+r,m=Math.pow(o,2)*Math.pow(d,2)*t,g=Math.exp(-u),p=X2(Math.pow(d,2),o);return(-a(d)+Cw>0?-1:1)*((h-m)*g)/p}):(a=d=>{const A=Math.exp(-d*t),u=(d-r)*t+1;return-Cw+A*u},i=d=>{const A=Math.exp(-d*t),u=(r-d)*(t*t);return A*u});const l=5/t,c=PG(a,i,l);if(t=Ei(t),isNaN(c))return{stiffness:Ir.stiffness,damping:Ir.damping,duration:t};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:t}}}const IG=12;function PG(t,e,r){let n=r;for(let a=1;at[r]!==void 0)}function UG(t){let e={velocity:Ir.velocity,stiffness:Ir.stiffness,damping:Ir.damping,mass:Ir.mass,isResolvedFromDuration:!1,...t};if(!q3(t,LG)&&q3(t,TG))if(t.visualDuration){const r=t.visualDuration,n=2*Math.PI/(r*1.2),a=n*n,i=2*ko(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:Ir.mass,stiffness:a,damping:i}}else{const r=FG(t);e={...e,...r,mass:Ir.mass},e.isResolvedFromDuration=!0}return e}function J0(t=Ir.visualDuration,e=Ir.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:a}=r;const i=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:A,duration:u,velocity:h,isResolvedFromDuration:m}=UG({...r,velocity:-Fi(r.velocity||0)}),g=h||0,p=d/(2*Math.sqrt(c*A)),w=o-i,y=Fi(Math.sqrt(c/A)),v=Math.abs(w)<5;n||(n=v?Ir.restSpeed.granular:Ir.restSpeed.default),a||(a=v?Ir.restDelta.granular:Ir.restDelta.default);let j;if(p<1){const F=X2(y,p);j=U=>{const M=Math.exp(-p*y*U);return o-M*((g+p*y*w)/F*Math.sin(F*U)+w*Math.cos(F*U))}}else if(p===1)j=F=>o-Math.exp(-y*F)*(w+(g+y*w)*F);else{const F=y*Math.sqrt(p*p-1);j=U=>{const M=Math.exp(-p*y*U),P=Math.min(F*U,300);return o-M*((g+p*y*w)*Math.sinh(P)+F*w*Math.cosh(P))/F}}const S={calculatedDuration:m&&u||null,next:F=>{const U=j(F);if(m)l.done=F>=u;else{let M=F===0?g:0;p<1&&(M=F===0?Ei(g):vT(j,F,U));const P=Math.abs(M)<=n,W=Math.abs(o-U)<=a;l.done=P&&W}return l.value=l.done?o:U,l},toString:()=>{const F=Math.min(dN(S),Y0),U=yT(M=>S.next(F*M).value,F,30);return F+"ms "+U},toTransition:()=>{}};return S}J0.applyToOptions=t=>{const e=kG(t,100,J0);return t.ease=e.ease,t.duration=Ei(e.duration),t.type="keyframes",t};function Z2({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:A}){const u=t[0],h={done:!1,value:u},m=P=>l!==void 0&&Pc,g=P=>l===void 0?c:c===void 0||Math.abs(l-P)-p*Math.exp(-P/n),j=P=>y+v(P),S=P=>{const W=v(P),$=j(P);h.done=Math.abs(W)<=d,h.value=h.done?y:$};let F,U;const M=P=>{m(h.value)&&(F=P,U=J0({keyframes:[h.value,g(h.value)],velocity:vT(j,P,h.value),damping:a,stiffness:i,restDelta:d,restSpeed:A}))};return M(0),{calculatedDuration:null,next:P=>{let W=!1;return!U&&F===void 0&&(W=!0,S(P),M(P)),F!==void 0&&P>=F?U.next(P-F):(!W&&S(P),h)}}}const _f=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n};function _G(t,e,r){const n=[],a=r||So.mix||xT,i=t.length-1;for(let o=0;oe[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=_G(e,n,a),c=l.length,d=A=>{if(o&&A1)for(;ud(ko(t[0],t[i-1],A)):d}function QG(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const a=_f(0,e,n);t.push(wr(r,1,a))}}function DG(t){const e=[0];return QG(e,t.length-1),e}function RG(t,e){return t.map(r=>r*e)}const bT=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,OG=1e-7,HG=12;function KG(t,e,r,n,a){let i,o,l=0;do o=e+(r-e)/2,i=bT(o,n,a)-t,i>0?r=o:e=o;while(Math.abs(i)>OG&&++lKG(i,0,1,t,r);return i=>i===0||i===1?i:bT(a(i),e,n)}const VG=fp(.42,0,1,1),zG=fp(0,0,.58,1),wT=fp(.42,0,.58,1),WG=t=>Array.isArray(t)&&typeof t[0]!="number",jT=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,NT=t=>e=>1-t(1-e),CT=fp(.33,1.53,.69,.99),AN=NT(CT),BT=jT(AN),ST=t=>(t*=2)<1?.5*AN(t):.5*(2-Math.pow(2,-10*(t-1))),uN=t=>1-Math.sin(Math.acos(t)),kT=NT(uN),ET=jT(uN),FT=t=>Array.isArray(t)&&typeof t[0]=="number",Y3={linear:ba,easeIn:VG,easeInOut:wT,easeOut:zG,circIn:uN,circInOut:ET,circOut:kT,backIn:AN,backInOut:BT,backOut:CT,anticipate:ST},$G=t=>typeof t=="string",J3=t=>{if(FT(t)){G0(t.length===4);const[e,r,n,a]=t;return fp(e,r,n,a)}else if($G(t))return G0(Y3[t]!==void 0),Y3[t];return t};function GG(t,e){return t.map(()=>e||wT).splice(0,t.length-1)}function Km({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const a=WG(n)?n.map(J3):J3(n),i={done:!1,value:e[0]},o=RG(r&&r.length===e.length?r:DG(e),t),l=MG(o,e,{ease:Array.isArray(a)?a:GG(e,a)});return{calculatedDuration:t,next:c=>(i.value=l(c),i.done=c>=t,i)}}const qG=t=>t!==null;function hN(t,{repeat:e,repeatType:r="loop"},n,a=1){const i=t.filter(qG),l=a<0||e&&r!=="loop"&&e%2===1?0:i.length-1;return!l||n===void 0?i[l]:n}const YG={decay:Z2,inertia:Z2,tween:Km,keyframes:Km,spring:J0};function IT(t){typeof t.type=="string"&&(t.type=YG[t.type])}class mN{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}}const JG=t=>t/100;class fN extends mN{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,a;const{motionValue:r}=this.options;r&&r.updatedAt!==Ns.now()&&this.tick(Ns.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(n=this.options).onStop)==null||a.call(n))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;IT(e);const{type:r=Km,repeat:n=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=e;let{keyframes:l}=e;const c=r||Km;c!==Km&&typeof l[0]!="number"&&(this.mixKeyframes=mp(JG,xT(l[0],l[1])),l=[0,100]);const d=c({...e,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=dN(d));const{calculatedDuration:A}=d;this.calculatedDuration=A,this.resolvedDuration=A+a,this.totalDuration=this.resolvedDuration*(n+1)-a,this.generator=d}updateTime(e){const r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){const{generator:n,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:A,repeat:u,repeatType:h,repeatDelay:m,type:g,onUpdate:p,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);const y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>a;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let j=this.currentTime,S=n;if(u){const P=Math.min(this.currentTime,a)/l;let W=Math.floor(P),$=P%1;!$&&P>=1&&($=1),$===1&&W--,W=Math.min(W,u+1),!!(W%2)&&(h==="reverse"?($=1-$,m&&($-=m/l)):h==="mirror"&&(S=o)),j=ko(0,1,$)*l}const F=v?{done:!1,value:A[0]}:S.next(j);i&&(F.value=i(F.value));let{done:U}=F;!v&&c!==null&&(U=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return M&&g!==Z2&&(F.value=hN(A,this.options,w,this.speed)),p&&p(F.value),M&&this.finish(),F}then(e,r){return this.finished.then(e,r)}get duration(){return Fi(this.calculatedDuration)}get time(){return Fi(this.currentTime)}set time(e){var r;e=Ei(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ns.now());const r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=Fi(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:e=SG,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ns.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(e=this.options).onComplete)==null||r.call(e)}cancel(){var e,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(e=this.options).onCancel)==null||r.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),e.observe(this)}}function XG(t){for(let e=1;et*180/Math.PI,ej=t=>{const e=Vc(Math.atan2(t[1],t[0]));return tj(e)},ZG={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ej,rotateZ:ej,skewX:t=>Vc(Math.atan(t[1])),skewY:t=>Vc(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tj=t=>(t=t%360,t<0&&(t+=360),t),X3=ej,Z3=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),eS=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Z3,scaleY:eS,scale:t=>(Z3(t)+eS(t))/2,rotateX:t=>tj(Vc(Math.atan2(t[6],t[5]))),rotateY:t=>tj(Vc(Math.atan2(-t[2],t[0]))),rotateZ:X3,rotate:X3,skewX:t=>Vc(Math.atan(t[4])),skewY:t=>Vc(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function rj(t){return t.includes("scale")?1:0}function nj(t,e){if(!t||t==="none")return rj(e);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,a;if(r)n=eq,a=r;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ZG,a=l}if(!a)return rj(e);const i=n[e],o=a[1].split(",").map(rq);return typeof i=="function"?i(o):o[i]}const tq=(t,e)=>{const{transform:r="none"}=getComputedStyle(t);return nj(r,e)};function rq(t){return parseFloat(t.trim())}const tS=t=>t===fh||t===ut,nq=new Set(["x","y","z"]),sq=hh.filter(t=>!nq.has(t));function aq(t){const e=[];return sq.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const nd={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>nj(e,"x"),y:(t,{transform:e})=>nj(e,"y")};nd.translateX=nd.x;nd.translateY=nd.y;const sd=new Set;let sj=!1,aj=!1,ij=!1;function PT(){if(aj){const t=Array.from(sd).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const a=aq(n);a.length&&(r.set(n,a),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const a=r.get(n);a&&a.forEach(([i,o])=>{var l;(l=n.getValue(i))==null||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}aj=!1,sj=!1,sd.forEach(t=>t.complete(ij)),sd.clear()}function TT(){sd.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(aj=!0)})}function iq(){ij=!0,TT(),PT(),ij=!1}class pN{constructor(e,r,n,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(sd.add(this),sj||(sj=!0,Nr.read(TT),Nr.resolveKeyframes(PT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:a}=this;if(e[0]===null){const i=a==null?void 0:a.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&r){const l=n.readValue(r,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),a&&i===void 0&&a.set(e[0])}XG(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),sd.delete(this)}cancel(){this.state==="scheduled"&&(sd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oq=t=>t.startsWith("--");function lq(t,e,r){oq(e)?t.style.setProperty(e,r):t.style[e]=r}function gN(t){let e;return()=>(e===void 0&&(e=t()),e)}const cq=gN(()=>window.ScrollTimeline!==void 0),dq={};function Aq(t,e){const r=gN(t);return()=>dq[e]??r()}const LT=Aq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bm=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,rS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bm([0,.65,.55,1]),circOut:bm([.55,0,1,.45]),backIn:bm([.31,.01,.66,-.59]),backOut:bm([.33,1.53,.69,.99])};function UT(t,e){if(t)return typeof t=="function"?LT()?yT(t,e):"ease-out":FT(t)?bm(t):Array.isArray(t)?t.map(r=>UT(r,e)||rS.easeOut):rS[t]}function uq(t,e,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:c}={},d=void 0){const A={[e]:r};c&&(A.offset=c);const u=UT(l,a);Array.isArray(u)&&(A.easing=u);const h={delay:n,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),t.animate(A,h)}function _T(t){return typeof t=="function"&&"applyToOptions"in t}function hq({type:t,...e}){return _T(t)&<()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class mq extends mN{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:r,name:n,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,G0(typeof e.type!="string");const d=hq(e);this.animation=uq(r,n,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const A=hN(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(A):lq(r,n,A),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,r;(r=(e=this.animation).finish)==null||r.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,r;this.isPseudoElement||(r=(e=this.animation).commitStyles)==null||r.call(e)}get duration(){var r,n;const e=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return Fi(Number(e))}get time(){return Fi(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Ei(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:r}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&cq()?(this.animation.timeline=e,ba):r(this)}}const MT={anticipate:ST,backInOut:BT,circInOut:ET};function fq(t){return t in MT}function pq(t){typeof t.ease=="string"&&fq(t.ease)&&(t.ease=MT[t.ease])}const nS=10;class gq extends mq{constructor(e){pq(e),IT(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:r,onUpdate:n,onComplete:a,element:i,...o}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}const l=new fN({...o,autoplay:!1}),c=Ei(this.finishedTime??this.time);r.setWithVelocity(l.sample(c-nS).value,l.sample(c).value,nS),l.stop()}}const sS=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(nc.test(t)||t==="0")&&!t.startsWith("url("));function xq(t){const e=t[0];if(t.length===1)return!0;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function wq(t){var d;const{motionValue:e,name:r,repeatDelay:n,repeatType:a,damping:i,type:o}=t;if(!V4((d=e==null?void 0:e.owner)==null?void 0:d.current))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return bq()&&r&&vq.has(r)&&(r!=="transform"||!c)&&!l&&!n&&a!=="mirror"&&i!==0&&o!=="inertia"}const jq=40;class Nq extends mN{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:c,motionValue:d,element:A,...u}){var g;super(),this.stop=()=>{var p,w;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Ns.now();const h={autoplay:e,delay:r,type:n,repeat:a,repeatDelay:i,repeatType:o,name:c,motionValue:d,element:A,...u},m=(A==null?void 0:A.KeyframeResolver)||pN;this.keyframeResolver=new m(l,(p,w,y)=>this.onKeyframesResolved(p,w,h,!y),c,d,A),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(e,r,n,a){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:c,isHandoff:d,onUpdate:A}=n;this.resolvedAt=Ns.now(),yq(e,i,o,l)||((So.instantAnimations||!c)&&(A==null||A(hN(e,n,r))),e[0]=e[e.length-1],n.duration=0,n.repeat=0);const h={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>jq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},m=!d&&wq(h)?new gq({...h,element:h.motionValue.owner.current}):new fN(h);m.finished.then(()=>this.notifyFinished()).catch(ba),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),iq()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const xN=(t,e,r,n={},a,i)=>o=>{const l=iN(n,t)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-Ei(c);const A={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:h=>{e.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:i?void 0:a};iG(l)||Object.assign(A,aG(t,A)),A.duration&&(A.duration=Ei(A.duration)),A.repeatDelay&&(A.repeatDelay=Ei(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let u=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(A.duration=0,A.delay===0&&(u=!0)),(So.instantAnimations||So.skipAnimations)&&(u=!0,A.duration=0,A.delay=0),A.allowFlatten=!l.type&&!l.ease,u&&!i&&e.get()!==void 0){const h=eG(A.keyframes,l);if(h!==void 0){Nr.update(()=>{A.onUpdate(h),A.onComplete()});return}}return l.isSync?new fN(A):new Nq(A)},QT=new Set(["width","height","top","left","right","bottom",...hh]);function Cq({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function DT(t,e,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...l}=e;n&&(i=n);const c=[],d=a&&t.animationState&&t.animationState.getState()[a];for(const A in l){const u=t.getValue(A,t.latestValues[A]??null),h=l[A];if(h===void 0||d&&Cq(d,A))continue;const m={delay:r,...iN(i||{},A)},g=u.get();if(g!==void 0&&!u.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const y=AT(t);if(y){const v=window.MotionHandoffAnimation(y,A,Nr);v!==null&&(m.startTime=v,p=!0)}}q2(t,A),u.start(xN(A,u,h,t.shouldReduceMotion&&QT.has(A)?{type:!1}:m,t,p));const w=u.animation;w&&c.push(w)}return o&&Promise.all(c).then(()=>{Nr.update(()=>{o&&J$(t,o)})}),c}function oj(t,e,r={}){var c;const n=Lf(t,e,r.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const i=n?()=>Promise.all(DT(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:A=0,staggerChildren:u,staggerDirection:h}=a;return Bq(t,e,A+d,u,h,r)}:()=>Promise.resolve(),{when:l}=a;if(l){const[d,A]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>A())}else return Promise.all([i(),o(r.delay)])}function Bq(t,e,r=0,n=0,a=1,i){const o=[],l=(t.variantChildren.size-1)*n,c=a===1?(d=0)=>d*n:(d=0)=>l-d*n;return Array.from(t.variantChildren).sort(Sq).forEach((d,A)=>{d.notify("AnimationStart",e),o.push(oj(d,e,{...i,delay:r+c(A)}).then(()=>d.notify("AnimationComplete",e)))}),Promise.all(o)}function Sq(t,e){return t.sortNodePosition(e)}function kq(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const a=e.map(i=>oj(t,i,r));n=Promise.all(a)}else if(typeof e=="string")n=oj(t,e,r);else{const a=typeof e=="function"?Lf(t,e,r.custom):e;n=Promise.all(DT(t,a,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}function RT(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:r,options:n})=>kq(t,r,n)))}function Tq(t){let e=Pq(t),r=aS(),n=!0;const a=c=>(d,A)=>{var h;const u=Lf(t,A,c==="exit"?(h=t.presenceContext)==null?void 0:h.custom:void 0);if(u){const{transition:m,transitionEnd:g,...p}=u;d={...d,...p,...g}}return d};function i(c){e=c(t)}function o(c){const{props:d}=t,A=OT(t.parent)||{},u=[],h=new Set;let m={},g=1/0;for(let w=0;wg&&S,W=!1;const $=Array.isArray(j)?j:[j];let B=$.reduce(a(y),{});F===!1&&(B={});const{prevResolvedValues:k={}}=v,_={...k,...B},T=J=>{P=!0,h.has(J)&&(W=!0,h.delete(J)),v.needsAnimating[J]=!0;const Q=t.getValue(J);Q&&(Q.liveStyle=!1)};for(const J in _){const Q=B[J],q=k[J];if(m.hasOwnProperty(J))continue;let ie=!1;G2(Q)&&G2(q)?ie=!RT(Q,q):ie=Q!==q,ie?Q!=null?T(J):h.add(J):Q!==void 0&&h.has(J)?T(J):v.protectedKeys[J]=!0}v.prevProp=j,v.prevResolvedValues=B,v.isActive&&(m={...m,...B}),n&&t.blockInitialAnimation&&(P=!1),P&&(!(U&&M)||W)&&u.push(...$.map(J=>({animation:J,options:{type:y}})))}if(h.size){const w={};if(typeof d.initial!="boolean"){const y=Lf(t,Array.isArray(d.initial)?d.initial[0]:d.initial);y&&y.transition&&(w.transition=y.transition)}h.forEach(y=>{const v=t.getBaseTarget(y),j=t.getValue(y);j&&(j.liveStyle=!0),w[y]=v??null}),u.push({animation:w})}let p=!!u.length;return n&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(u):Promise.resolve()}function l(c,d){var u;if(r[c].isActive===d)return Promise.resolve();(u=t.variantChildren)==null||u.forEach(h=>{var m;return(m=h.animationState)==null?void 0:m.setActive(c,d)}),r[c].isActive=d;const A=o(c);for(const h in r)r[h].protectedKeys={};return A}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=aS(),n=!0}}}function Lq(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!RT(e,t):!1}function Ec(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aS(){return{animate:Ec(!0),whileInView:Ec(),whileHover:Ec(),whileTap:Ec(),whileDrag:Ec(),whileFocus:Ec(),exit:Ec()}}class hc{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Uq extends hc{constructor(e){super(e),e.animationState||(e.animationState=Tq(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();fv(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let _q=0;class Mq extends hc{constructor(){super(...arguments),this.id=_q++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const a=this.node.animationState.setActive("exit",!e);r&&!e&&a.then(()=>{r(this.id)})}mount(){const{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Qq={animation:{Feature:Uq},exit:{Feature:Mq}};function Mf(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const yN=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function pp(t){return{point:{x:t.pageX,y:t.pageY}}}const Dq=t=>e=>yN(e)&&t(e,pp(e));function Vm(t,e,r,n){return Mf(t,e,Dq(r),n)}function HT({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function Rq({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Oq(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}const KT=1e-4,Hq=1-KT,Kq=1+KT,VT=.01,Vq=0-VT,zq=0+VT;function ss(t){return t.max-t.min}function Wq(t,e,r){return Math.abs(t-e)<=r}function iS(t,e,r,n=.5){t.origin=n,t.originPoint=wr(e.min,e.max,t.origin),t.scale=ss(r)/ss(e),t.translate=wr(r.min,r.max,t.origin)-t.originPoint,(t.scale>=Hq&&t.scale<=Kq||isNaN(t.scale))&&(t.scale=1),(t.translate>=Vq&&t.translate<=zq||isNaN(t.translate))&&(t.translate=0)}function zm(t,e,r,n){iS(t.x,e.x,r.x,n?n.originX:void 0),iS(t.y,e.y,r.y,n?n.originY:void 0)}function oS(t,e,r){t.min=r.min+e.min,t.max=t.min+ss(e)}function $q(t,e,r){oS(t.x,e.x,r.x),oS(t.y,e.y,r.y)}function lS(t,e,r){t.min=e.min-r.min,t.max=t.min+ss(e)}function Wm(t,e,r){lS(t.x,e.x,r.x),lS(t.y,e.y,r.y)}const cS=()=>({translate:0,scale:1,origin:0,originPoint:0}),tu=()=>({x:cS(),y:cS()}),dS=()=>({min:0,max:0}),Rr=()=>({x:dS(),y:dS()});function da(t){return[t("x"),t("y")]}function Bw(t){return t===void 0||t===1}function lj({scale:t,scaleX:e,scaleY:r}){return!Bw(t)||!Bw(e)||!Bw(r)}function Lc(t){return lj(t)||zT(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function zT(t){return AS(t.x)||AS(t.y)}function AS(t){return t&&t!=="0%"}function X0(t,e,r){const n=t-r,a=e*n;return r+a}function uS(t,e,r,n,a){return a!==void 0&&(t=X0(t,a,n)),X0(t,r,n)+e}function cj(t,e=0,r=1,n,a){t.min=uS(t.min,e,r,n,a),t.max=uS(t.max,e,r,n,a)}function WT(t,{x:e,y:r}){cj(t.x,e.translate,e.scale,e.originPoint),cj(t.y,r.translate,r.scale,r.originPoint)}const hS=.999999999999,mS=1.0000000000001;function Gq(t,e,r,n=!1){const a=r.length;if(!a)return;e.x=e.y=1;let i,o;for(let l=0;lhS&&(e.x=1),e.yhS&&(e.y=1)}function ru(t,e){t.min=t.min+e,t.max=t.max+e}function fS(t,e,r,n,a=.5){const i=wr(t.min,t.max,a);cj(t,e,r,i,n)}function nu(t,e){fS(t.x,e.x,e.scaleX,e.scale,e.originX),fS(t.y,e.y,e.scaleY,e.scale,e.originY)}function $T(t,e){return HT(Oq(t.getBoundingClientRect(),e))}function qq(t,e,r){const n=$T(t,r),{scroll:a}=e;return a&&(ru(n.x,a.offset.x),ru(n.y,a.offset.y)),n}const GT=({current:t})=>t?t.ownerDocument.defaultView:null,pS=(t,e)=>Math.abs(t-e);function Yq(t,e){const r=pS(t.x,e.x),n=pS(t.y,e.y);return Math.sqrt(r**2+n**2)}class qT{constructor(e,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:i=!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 u=kw(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Yq(u.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:g}=u,{timestamp:p}=jn;this.history.push({...g,timestamp:p});const{onStart:w,onMove:y}=this.handlers;h||(w&&w(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Sw(h,this.transformPagePoint),Nr.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=kw(u.type==="pointercancel"?this.lastMoveEventInfo:Sw(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,w),g&&g(u,w)},!yN(e))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const o=pp(e),l=Sw(o,this.transformPagePoint),{point:c}=l,{timestamp:d}=jn;this.history=[{...c,timestamp:d}];const{onSessionStart:A}=r;A&&A(e,kw(l,this.history)),this.removeListeners=mp(Vm(this.contextWindow,"pointermove",this.handlePointerMove),Vm(this.contextWindow,"pointerup",this.handlePointerUp),Vm(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),rc(this.updatePoint)}}function Sw(t,e){return e?{point:e(t.point)}:t}function gS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function kw({point:t},e){return{point:t,delta:gS(t,YT(e)),offset:gS(t,Jq(e)),velocity:Xq(e,.1)}}function Jq(t){return t[0]}function YT(t){return t[t.length-1]}function Xq(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const a=YT(t);for(;r>=0&&(n=t[r],!(a.timestamp-n.timestamp>Ei(e)));)r--;if(!n)return{x:0,y:0};const i=Fi(a.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zq(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?wr(r,t,n.max):Math.min(t,r)),t}function xS(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function eY(t,{top:e,left:r,bottom:n,right:a}){return{x:xS(t.x,r,a),y:xS(t.y,e,n)}}function yS(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=_f(e.min,e.max-n,t.min):n>a&&(r=_f(t.min,t.max-a,e.min)),ko(0,1,r)}function nY(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const dj=.35;function sY(t=dj){return t===!1?t=0:t===!0&&(t=dj),{x:vS(t,"left","right"),y:vS(t,"top","bottom")}}function vS(t,e,r){return{min:bS(t,e),max:bS(t,r)}}function bS(t,e){return typeof t=="number"?t:t[e]||0}const Ra={x:!1,y:!1};function JT(){return Ra.x||Ra.y}function aY(t){return t==="x"||t==="y"?Ra[t]?null:(Ra[t]=!0,()=>{Ra[t]=!1}):Ra.x||Ra.y?null:(Ra.x=Ra.y=!0,()=>{Ra.x=Ra.y=!1})}const iY=new WeakMap;class oY{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rr(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=A=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(pp(A).point)},i=(A,u)=>{const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aY(h),!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),da(w=>{let y=this.getAxisMotionValue(w).get()||0;if(ki.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const j=v.layout.layoutBox[w];j&&(y=ss(j)*(parseFloat(y)/100))}}this.originPoint[w]=y}),g&&Nr.postRender(()=>g(A,u)),q2(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(A,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:p}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:w}=u;if(m&&this.currentDirection===null){this.currentDirection=lY(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),p&&p(A,u)},l=(A,u)=>this.stop(A,u),c=()=>da(A=>{var u;return this.getAnimationState(A)==="paused"&&((u=this.getAxisMotionValue(A).animation)==null?void 0:u.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new qT(e,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:GT(this.visualElement)})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Nr.postRender(()=>i(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.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(e,r,n){const{drag:a}=this.getProps();if(!n||!Wg(e,a,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=Zq(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;e&&ZA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=eY(n.layoutBox,e):this.constraints=!1,this.elastic=sY(r),a!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&da(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=nY(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!ZA(e))return!1;const n=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=qq(n,a.root,this.visualElement.getTransformPagePoint());let o=tY(a.layout.layoutBox,i);if(r){const l=r(Rq(o));this.hasMutatedConstraints=!!l,l&&(o=HT(l))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=da(A=>{if(!Wg(A,r,this.currentDirection))return;let u=c&&c[A]||{};o&&(u={min:0,max:0});const h=a?200:1e6,m=a?40:1e7,g={type:"inertia",velocity:n?e[A]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(A,g)});return Promise.all(d).then(l)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return q2(this.visualElement,e),n.start(xN(e,n,0,r,this.visualElement,!1))}stopAnimation(){da(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){da(e=>{var r;return(r=this.getAxisMotionValue(e).animation)==null?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)==null?void 0:r.state}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){da(r=>{const{drag:n}=this.getProps();if(!Wg(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(r);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[r];i.set(e[r]-wr(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ZA(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};da(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();a[o]=rY({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),da(o=>{if(!Wg(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(wr(c,d,a[o]))})}addListeners(){if(!this.visualElement.current)return;iY.set(this.visualElement,this);const e=this.visualElement.current,r=Vm(e,"pointerdown",c=>{const{drag:d,dragListener:A=!0}=this.getProps();d&&A&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();ZA(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Nr.read(n);const o=Mf(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(da(A=>{const u=this.getAxisMotionValue(A);u&&(this.originPoint[A]+=c[A].translate,u.set(u.get()+c[A].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=dj,dragMomentum:l=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Wg(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function lY(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class cY extends hc{constructor(e){super(e),this.removeGroupControls=ba,this.removeListeners=ba,this.controls=new oY(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ba}unmount(){this.removeGroupControls(),this.removeListeners()}}const wS=t=>(e,r)=>{t&&Nr.postRender(()=>t(e,r))};class dY extends hc{constructor(){super(...arguments),this.removePointerDownListener=ba}onPointerDown(e){this.session=new qT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:GT(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:wS(e),onStart:wS(r),onMove:n,onEnd:(i,o)=>{delete this.session,a&&Nr.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=Vm(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function jS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const om={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(ut.test(t))t=parseFloat(t);else return t;const r=jS(t,e.target.x),n=jS(t,e.target.y);return`${r}% ${n}%`}},AY={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,a=nc.parse(t);if(a.length>5)return n;const i=nc.createTransformer(t),o=typeof a[0]!="number"?1:0,l=r.x.scale*e.x,c=r.y.scale*e.y;a[0+o]/=l,a[1+o]/=c;const d=wr(l,c,.5);return typeof a[2+o]=="number"&&(a[2+o]/=d),typeof a[3+o]=="number"&&(a[3+o]/=d),i(a)}};class uY extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:i}=e;C$(hY),i&&(r.group&&r.group.add(i),n&&n.register&&a&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),qx.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:a,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,a||e.layoutDependency!==r||r===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Nr.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),G4.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function XT(t){const[e,r]=$P(),n=b.useContext(R4);return s.jsx(uY,{...t,layoutGroup:n,switchLayoutGroup:b.useContext(ZP),isPresent:e,safeToRemove:r})}const hY={borderRadius:{...om,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:om,borderTopRightRadius:om,borderBottomLeftRadius:om,borderBottomRightRadius:om,boxShadow:AY};function mY(t,e,r){const n=Vn(t)?t:qu(t);return n.start(xN("",n,e,r)),n.animation}const fY=(t,e)=>t.depth-e.depth;class pY{constructor(){this.children=[],this.isDirty=!1}add(e){nN(this.children,e),this.isDirty=!0}remove(e){sN(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fY),this.isDirty=!1,this.children.forEach(e)}}function gY(t,e){const r=Ns.now(),n=({timestamp:a})=>{const i=a-r;i>=e&&(rc(n),t(i-e))};return Nr.setup(n,!0),()=>rc(n)}const ZT=["TopLeft","TopRight","BottomLeft","BottomRight"],xY=ZT.length,NS=t=>typeof t=="string"?parseFloat(t):t,CS=t=>typeof t=="number"||ut.test(t);function yY(t,e,r,n,a,i){a?(t.opacity=wr(0,r.opacity??1,vY(n)),t.opacityExit=wr(e.opacity??1,0,bY(n))):i&&(t.opacity=wr(e.opacity??1,r.opacity??1,n));for(let o=0;one?1:r(_f(t,e,n))}function SS(t,e){t.min=e.min,t.max=e.max}function ca(t,e){SS(t.x,e.x),SS(t.y,e.y)}function kS(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ES(t,e,r,n,a){return t-=e,t=X0(t,1/r,n),a!==void 0&&(t=X0(t,1/a,n)),t}function wY(t,e=0,r=1,n=.5,a,i=t,o=t){if(ki.test(e)&&(e=parseFloat(e),e=wr(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=wr(i.min,i.max,n);t===i&&(l-=e),t.min=ES(t.min,e,r,l,a),t.max=ES(t.max,e,r,l,a)}function FS(t,e,[r,n,a],i,o){wY(t,e[r],e[n],e[a],e.scale,i,o)}const jY=["x","scaleX","originX"],NY=["y","scaleY","originY"];function IS(t,e,r,n){FS(t.x,e,jY,r?r.x:void 0,n?n.x:void 0),FS(t.y,e,NY,r?r.y:void 0,n?n.y:void 0)}function PS(t){return t.translate===0&&t.scale===1}function tL(t){return PS(t.x)&&PS(t.y)}function TS(t,e){return t.min===e.min&&t.max===e.max}function CY(t,e){return TS(t.x,e.x)&&TS(t.y,e.y)}function LS(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rL(t,e){return LS(t.x,e.x)&&LS(t.y,e.y)}function US(t){return ss(t.x)/ss(t.y)}function _S(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class BY{constructor(){this.members=[]}add(e){nN(this.members,e),e.scheduleRender()}remove(e){if(sN(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function SY(t,e,r){let n="";const a=t.x.translate/e.x,i=t.y.translate/e.y,o=(r==null?void 0:r.z)||0;if((a||i||o)&&(n=`translate3d(${a}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:d,rotate:A,rotateX:u,rotateY:h,skewX:m,skewY:g}=r;d&&(n=`perspective(${d}px) ${n}`),A&&(n+=`rotate(${A}deg) `),u&&(n+=`rotateX(${u}deg) `),h&&(n+=`rotateY(${h}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}function nL(t){return WP(t)&&"ownerSVGElement"in t}function kY(t){return nL(t)&&t.tagName==="svg"}const Ew=["","X","Y","Z"],EY={visibility:"hidden"},FY=1e3;let IY=0;function Fw(t,e,r,n){const{latestValues:a}=e;a[t]&&(r[t]=a[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sL(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=AT(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",Nr,!(a||i))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&sL(n)}function aL({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(o={},l=e==null?void 0:e()){this.id=IY++,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,this.nodes.forEach(LY),this.nodes.forEach(DY),this.nodes.forEach(RY),this.nodes.forEach(UY)},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 c=0;cthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,A&&A(),A=gY(u,250),qx.hasAnimatedSinceResize&&(qx.hasAnimatedSinceResize=!1,this.nodes.forEach(QS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:A,hasLayoutChanged:u,hasRelativeLayoutChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||zY,{onLayoutAnimationStart:p,onLayoutAnimationComplete:w}=d.getProps(),y=!this.targetLayout||!rL(this.targetLayout,m),v=!u&&h;if(this.options.layoutRoot||this.resumeFrom||v||u&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const j={...iN(g,"layout"),onPlay:p,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j),this.setAnimationOrigin(A,v)}else u||QS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rc(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(OY),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&&sL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ss(this.snapshot.measuredBox.x)&&!ss(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const F=S/1e3;DS(u.x,o.x,F),DS(u.y,o.y,F),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wm(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KY(this.relativeTarget,this.relativeTargetOrigin,h,F),j&&CY(this.relativeTarget,j)&&(this.isProjectionDirty=!1),j||(j=Rr()),ca(j,this.relativeTarget)),p&&(this.animationValues=A,yY(A,d,this.latestValues,F,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(rc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Nr.update(()=>{qx.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qu(0)),this.currentAnimation=mY(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:A=>{this.mixTargetDelta(A),o.onUpdate&&o.onUpdate(A)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(FY),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:A}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&iL(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Rr();const u=ss(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+u;const h=ss(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}ca(l,c),nu(l,A),zm(this.projectionDeltaWithTransform,this.layoutCorrected,l,A)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new BY),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 l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),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:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Fw("z",o,d,this.animationValues);for(let A=0;A{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(MS),this.root.sharedNodes.clear()}}}function PY(t){t.updateLayout()}function TY(t){var r;const e=((r=t.resumeFrom)==null?void 0:r.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?da(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],m=ss(h);h.min=n[u].min,h.max=h.min+m}):iL(i,e.layoutBox,n)&&da(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],m=ss(n[u]);h.max=h.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+m)});const l=tu();zm(l,n,e.layoutBox);const c=tu();o?zm(c,t.applyTransform(a,!0),e.measuredBox):zm(c,n,e.layoutBox);const d=!tL(l);let A=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:m}=u;if(h&&m){const g=Rr();Wm(g,e.layoutBox,h.layoutBox);const p=Rr();Wm(p,n,m.layoutBox),rL(g,p)||(A=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=g,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:A})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function LY(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function UY(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _Y(t){t.clearSnapshot()}function MS(t){t.clearMeasurements()}function MY(t){t.isLayoutDirty=!1}function QY(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function QS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function DY(t){t.resolveTargetDelta()}function RY(t){t.calcProjection()}function OY(t){t.resetSkewAndRotation()}function HY(t){t.removeLeadSnapshot()}function DS(t,e,r){t.translate=wr(e.translate,0,r),t.scale=wr(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function RS(t,e,r,n){t.min=wr(e.min,r.min,n),t.max=wr(e.max,r.max,n)}function KY(t,e,r,n){RS(t.x,e.x,r.x,n),RS(t.y,e.y,r.y,n)}function VY(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zY={duration:.45,ease:[.4,0,.1,1]},OS=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),HS=OS("applewebkit/")&&!OS("chrome/")?Math.round:ba;function KS(t){t.min=HS(t.min),t.max=HS(t.max)}function WY(t){KS(t.x),KS(t.y)}function iL(t,e,r){return t==="position"||t==="preserve-aspect"&&!Wq(US(e),US(r),.2)}function $Y(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const GY=aL({attachResizeListener:(t,e)=>Mf(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Iw={current:void 0},oL=aL({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Iw.current){const t=new GY({});t.mount(window),t.setOptions({layoutScroll:!0}),Iw.current=t}return Iw.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),qY={pan:{Feature:dY},drag:{Feature:cY,ProjectionNode:oL,MeasureLayout:XT}};function YY(t,e,r){if(t instanceof EventTarget)return[t];if(typeof t=="string"){const a=document.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function lL(t,e){const r=YY(t),n=new AbortController,a={passive:!0,...e,signal:n.signal};return[r,a,()=>n.abort()]}function VS(t){return!(t.pointerType==="touch"||JT())}function JY(t,e,r={}){const[n,a,i]=lL(t,r),o=l=>{if(!VS(l))return;const{target:c}=l,d=e(c,l);if(typeof d!="function"||!c)return;const A=u=>{VS(u)&&(d(u),c.removeEventListener("pointerleave",A))};c.addEventListener("pointerleave",A,a)};return n.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}function zS(t,e,r){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,i=n[a];i&&Nr.postRender(()=>i(e,pp(e)))}class XY extends hc{mount(){const{current:e}=this.node;e&&(this.unmount=JY(e,(r,n)=>(zS(this.node,n,"Start"),a=>zS(this.node,a,"End"))))}unmount(){}}class ZY extends hc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=mp(Mf(this.node.current,"focus",()=>this.onFocus()),Mf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cL=(t,e)=>e?t===e?!0:cL(t,e.parentElement):!1,eJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tJ(t){return eJ.has(t.tagName)||t.tabIndex!==-1}const Yx=new WeakSet;function WS(t){return e=>{e.key==="Enter"&&t(e)}}function Pw(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const rJ=(t,e)=>{const r=t.currentTarget;if(!r)return;const n=WS(()=>{if(Yx.has(r))return;Pw(r,"down");const a=WS(()=>{Pw(r,"up")}),i=()=>Pw(r,"cancel");r.addEventListener("keyup",a,e),r.addEventListener("blur",i,e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function $S(t){return yN(t)&&!JT()}function nJ(t,e,r={}){const[n,a,i]=lL(t,r),o=l=>{const c=l.currentTarget;if(!$S(l))return;Yx.add(c);const d=e(c,l),A=(m,g)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",h),Yx.has(c)&&Yx.delete(c),$S(m)&&typeof d=="function"&&d(m,{success:g})},u=m=>{A(m,c===window||c===document||r.useGlobalTarget||cL(c,m.target))},h=m=>{A(m,!1)};window.addEventListener("pointerup",u,a),window.addEventListener("pointercancel",h,a)};return n.forEach(l=>{(r.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),V4(l)&&(l.addEventListener("focus",d=>rJ(d,a)),!tJ(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function GS(t,e,r){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),i=n[a];i&&Nr.postRender(()=>i(e,pp(e)))}class sJ extends hc{mount(){const{current:e}=this.node;e&&(this.unmount=nJ(e,(r,n)=>(GS(this.node,n,"Start"),(a,{success:i})=>GS(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Aj=new WeakMap,Tw=new WeakMap,aJ=t=>{const e=Aj.get(t.target);e&&e(t)},iJ=t=>{t.forEach(aJ)};function oJ({root:t,...e}){const r=t||document;Tw.has(r)||Tw.set(r,{});const n=Tw.get(r),a=JSON.stringify(e);return n[a]||(n[a]=new IntersectionObserver(iJ,{root:t,...e})),n[a]}function lJ(t,e,r){const n=oJ(e);return Aj.set(t,r),n.observe(t),()=>{Aj.delete(t),n.unobserve(t)}}const cJ={some:0,all:1};class dJ extends hc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:i}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:cJ[a]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:A,onViewportLeave:u}=this.node.getProps(),h=d?A:u;h&&h(c)};return lJ(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(AJ(e,r))&&this.startObserver()}unmount(){}}function AJ({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const uJ={inView:{Feature:dJ},tap:{Feature:sJ},focus:{Feature:ZY},hover:{Feature:XY}},hJ={layout:{ProjectionNode:oL,MeasureLayout:XT}},uj={current:null},dL={current:!1};function mJ(){if(dL.current=!0,!!H4)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>uj.current=t.matches;t.addListener(e),e()}else uj.current=!1}const fJ=new WeakMap;function pJ(t,e,r){for(const n in e){const a=e[n],i=r[n];if(Vn(a))t.addValue(n,a);else if(Vn(i))t.addValue(n,qu(a,{owner:t}));else if(i!==a)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=t.getStaticValue(n);t.addValue(n,qu(o!==void 0?o:a,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const AL=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),uL=t=>/^0[^.\s]+$/u.test(t),gJ={test:t=>t==="auto",parse:t=>t},hL=t=>e=>e.test(t),mL=[fh,ut,ki,tl,S$,B$,gJ],qS=t=>mL.find(hL(t)),xJ=[...mL,Dn,nc],yJ=t=>xJ.find(hL(t)),vJ=new Set(["brightness","contrast","saturate","opacity"]);function bJ(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(oN)||[];if(!n)return t;const a=r.replace(n,"");let i=vJ.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+a+")"}const wJ=/\b([a-z-]*)\(.*?\)/gu,hj={...nc,getAnimatableNone:t=>{const e=t.match(wJ);return e?e.map(bJ).join(" "):t}},jJ={...J4,color:Dn,backgroundColor:Dn,outlineColor:Dn,fill:Dn,stroke:Dn,borderColor:Dn,borderTopColor:Dn,borderRightColor:Dn,borderBottomColor:Dn,borderLeftColor:Dn,filter:hj,WebkitFilter:hj},fL=t=>jJ[t];function pL(t,e){let r=fL(t);return r!==hj&&(r=nc),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const YS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NJ{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:i,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=pN,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 h=Ns.now();this.renderScheduledAtthis.bindToMotionValue(n,r)),dL.current||mJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uj.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),rc(this.notifyUpdate),rc(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=mh.has(e);n&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&Nr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{a(),i(),o&&o(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Gu){const r=Gu[e];if(!r)continue;const{isEnabled:n,Feature:a}=r;if(!this.features[e]&&a&&n(this.props)&&(this.features[e]=new a(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=qu(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(AL(n)||uL(n))?n=parseFloat(n):!yJ(n)&&nc.test(r)&&(n=pL(e,r)),this.setBaseTarget(e,Vn(n)?n.get():n)),Vn(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var i;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=tN(this.props,r,(i=this.presenceContext)==null?void 0:i.custom);o&&(n=o[e])}if(r&&n!==void 0)return n;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!Vn(a)?a:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new aN),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}const CJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BJ(t){const e=CJ.exec(t);if(!e)return[,];const[,r,n,a]=e;return[`--${r??n}`,a]}function gL(t,e,r=1){const[n,a]=BJ(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);if(i){const o=i.trim();return AL(o)?parseFloat(o):o}return Y4(a)?gL(a,e,r+1):a}function SJ(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||uL(t):!0}const kJ=new Set(["auto","none","0"]);function EJ(t,e,r){let n=0,a;for(;n{e.getValue(c).set(d)}),this.resolveNoneKeyframes()}}class xL extends NJ{constructor(){super(...arguments),this.KeyframeResolver=FJ}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Vn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function yL(t,{style:e,vars:r},n,a){Object.assign(t.style,e,a&&a.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}function IJ(t){return window.getComputedStyle(t)}class PJ extends xL{constructor(){super(...arguments),this.type="html",this.renderInstance=yL}readValueFromInstance(e,r){var n;if(mh.has(r))return(n=this.projection)!=null&&n.isProjecting?rj(r):tq(e,r);{const a=IJ(e),i=(q4(r)?a.getPropertyValue(r):a[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return $T(e,r)}build(e,r,n){X4(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return rN(e,r,n)}}const vL=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 TJ(t,e,r,n){yL(t,e,void 0,n);for(const a in e.attrs)t.setAttribute(vL.has(a)?a:$4(a),e.attrs[a])}class LJ extends xL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Rr}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(mh.has(r)){const n=fL(r);return n&&n.default||0}return r=vL.has(r)?r:$4(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return cT(e,r,n)}build(e,r,n){aT(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,a){TJ(e,r,n,a)}mount(e){this.isSVGTag=oT(e.tagName),super.mount(e)}}const UJ=(t,e)=>eN(t)?new LJ(e):new PJ(e,{allowProjection:t!==b.Fragment}),_J=z$({...Qq,...uJ,...qY,...hJ},UJ),un=A$(_J),gv=b.forwardRef(({texts:t,transition:e={type:"spring",damping:25,stiffness:300},initial:r={y:"100%",opacity:0},animate:n={y:0,opacity:1},exit:a={y:"-120%",opacity:0},animatePresenceMode:i="wait",animatePresenceInitial:o=!1,rotationInterval:l=2e3,staggerDuration:c=0,staggerFrom:d="first",loop:A=!0,auto:u=!0,splitBy:h="characters",onNext:m,mainClassName:g,splitLevelClassName:p,elementLevelClassName:w,...y},v)=>{const[j,S]=b.useState(0),F=_=>{if(typeof Intl<"u"&&"Segmenter"in Intl&&Intl.Segmenter){const T=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(T.segment(_),({segment:oe})=>oe)}return Array.from(_)},U=b.useMemo(()=>{const _=t[j];if(h==="characters"){const T=_.split(" ");return T.map((oe,V)=>({characters:F(oe),needsSpace:V!==T.length-1}))}return h==="words"?_.split(" "):h==="lines"?_.split(` `):_.split(h)},[t,j,h]),M=b.useCallback((_,T)=>{const oe=T;if(d==="first")return _*c;if(d==="last")return(oe-1-_)*c;if(d==="center"){const V=Math.floor(oe/2);return Math.abs(V-_)*c}if(d==="random"){const V=Math.floor(Math.random()*oe);return Math.abs(V-_)*c}return Math.abs(d-_)*c},[d,c]),P=b.useCallback(_=>{S(_),m==null||m(_)},[m]),W=b.useCallback(()=>{const _=j===t.length-1?A?0:j:j+1;_!==j&&P(_)},[j,t.length,A,P]),$=b.useCallback(()=>{const _=j===0?A?t.length-1:j:j-1;_!==j&&P(_)},[j,t.length,A,P]),B=b.useCallback(_=>{const T=Math.max(0,Math.min(_,t.length-1));T!==j&&P(T)},[t.length,j,P]),k=b.useCallback(()=>{j!==0&&P(0)},[j,P]);return b.useImperativeHandle(v,()=>({next:W,previous:$,jumpTo:B,reset:k}),[W,$,B,k]),b.useEffect(()=>{if(!u)return;const _=setInterval(W,l);return()=>clearInterval(_)},[W,l,u]),s.jsxs(un.span,{className:At("flex flex-wrap whitespace-pre-wrap",g),...y,layout:!0,transition:e,children:[s.jsx("span",{className:"sr-only",children:t[j]}),s.jsx(s$,{mode:i,initial:o,children:s.jsx(un.div,{className:At("flex flex-wrap",h==="lines"&&"flex-col w-full"),layout:!0,"aria-hidden":"true",children:(h==="characters"?U:U.map((_,T)=>({characters:[_],needsSpace:T!==U.length-1}))).map((_,T,oe)=>{const V=oe.slice(0,T).reduce((J,Q)=>J+Q.characters.length,0);return s.jsxs("span",{className:At("inline-flex",p),children:[_.characters.map((J,Q)=>s.jsx(un.span,{initial:r,animate:n,exit:a,transition:{...e,delay:M(V+Q,oe.reduce((q,ie)=>q+ie.characters.length,0))},className:At("inline-block",w),children:J},Q)),_.needsSpace&&s.jsx("span",{className:"whitespace-pre",children:" "})]},T)})},j)})]})});gv.displayName="TextRotate";const MJ=()=>{const t=Ft(),e=()=>{t("/demo"),window.scrollTo(0,0)};return s.jsxs("section",{className:"pt-24 pb-12 relative overflow-hidden",style:{background:"linear-gradient(135deg, #1E7DEB 0%, #51EBC7 100%)"},children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-radial from-white/10 via-transparent to-transparent"}),s.jsx("div",{className:"absolute top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[1200px] h-[600px] bg-gradient-radial from-white/5 via-transparent to-transparent rounded-full blur-2xl"}),s.jsx("div",{className:"absolute top-1/3 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[300px] bg-gradient-radial from-white/8 via-transparent to-transparent rounded-full blur-xl"}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 py-[20px]",children:s.jsxs("div",{className:"text-center space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("h1",{className:"text-4xl lg:text-5xl font-normal text-white relative",style:{lineHeight:"1.3"},children:s.jsxs("span",{className:"relative z-10 drop-shadow-2xl",children:["Make prospecting",s.jsx("br",{}),"easy in ",s.jsx(gv,{texts:["Gong","Outreach","SalesForce","Claude","ChatGPT","Your favorite AI agent"],mainClassName:"text-white inline-block",rotationInterval:3e3,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-120%",opacity:0},staggerDuration:.05,splitBy:"characters"})]})}),s.jsx("p",{className:"text-lg text-white/90 leading-relaxed max-w-lg mx-auto relative z-10",children:"Capture and aggregate all the signals your sellers need, and make it easy to use in the tools they already live in."})]}),s.jsx("div",{className:"flex justify-center relative z-10",children:s.jsx("button",{onClick:e,className:"px-6 py-2.5 bg-white text-black text-sm font-medium rounded-lg hover:bg-gray-100 transition-all duration-200 hover:shadow-lg border border-black/10",children:"Get a Demo"})}),s.jsx("div",{className:"max-w-4xl mx-auto mt-10 relative z-10",children:s.jsx("div",{className:"bg-white rounded-lg shadow-2xl p-4",children:s.jsx("img",{src:"/lovable-uploads/928214bf-0102-4611-842a-6cad975a575e.png",alt:"MadKudu AI Prospecting Assistant Dashboard",className:"w-full h-auto rounded"})})})]})})]})},bL=()=>s.jsx(s.Fragment,{children:s.jsxs("section",{className:"py-16 md:py-25 bg-gradient-to-br from-madkudu-blue-50 via-white to-madkudu-blue-100 relative overflow-hidden",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-radial from-madkudu-blue-200/30 via-transparent to-madkudu-blue-300/20"}),s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 py-12 md:py-[80px]",children:[s.jsx("div",{className:"text-center mb-12 md:mb-16",children:s.jsxs("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-poppins font-semibold mb-4",style:{color:"#182B52"},children:["See how MadKudu simplifies your",s.jsx("br",{}),"sellers' workflows"]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 md:gap-8",children:[s.jsxs("div",{className:"group bg-white/70 backdrop-blur-sm border border-madkudu-neutral-300 rounded-xl p-6 md:p-8 shadow-sm hover:shadow-lg hover:border-madkudu-blue-400 transition-all duration-300 hover:-translate-y-1 flex flex-col h-full",children:[s.jsx("div",{className:"flex items-center justify-center w-16 h-16 bg-purple-100 rounded-xl mb-6 group-hover:bg-purple-200 transition-colors duration-300",children:s.jsx("img",{src:"/lovable-uploads/7d2a1964-63f7-42c6-ad86-01c1aaffee60.png",alt:"Gong",className:"h-8 w-auto"})}),s.jsx("h3",{className:"text-xl font-poppins font-semibold mb-4",style:{color:"#182B52"},children:"Turbocharge your Gong"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6 leading-relaxed flex-grow",children:"Beyond calls and emails, get critical insights on your prospects engagement and pain points."}),s.jsxs(kt,{to:"/solutions/madkudu-for-gong",className:"text-madkudu-blue-600 font-medium hover:text-madkudu-blue-700 transition-colors duration-200 inline-flex items-center group mt-auto",children:["See it in action",s.jsx("svg",{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),s.jsxs("div",{className:"group bg-white/70 backdrop-blur-sm border border-madkudu-neutral-300 rounded-xl p-6 md:p-8 shadow-sm hover:shadow-lg hover:border-madkudu-blue-400 transition-all duration-300 hover:-translate-y-1 flex flex-col h-full",children:[s.jsx("div",{className:"flex items-center justify-center w-16 h-16 bg-blue-100 rounded-xl mb-6 group-hover:bg-blue-200 transition-colors duration-300",children:s.jsx("img",{src:"/lovable-uploads/89a877ea-2716-4abe-8a93-45216a7eb44f.png",alt:"Salesforce",className:"h-8 w-auto"})}),s.jsx("h3",{className:"text-xl font-poppins font-semibold mb-4",style:{color:"#182B52"},children:"Turbocharge your Salesforce"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6 leading-relaxed flex-grow",children:"Help your sellers focus when prospecting in Salesforce with all signals in one place."}),s.jsxs(kt,{to:"/solutions/madkudu-for-salesforce",className:"text-madkudu-blue-600 font-medium hover:text-madkudu-blue-700 transition-colors duration-200 inline-flex items-center group mt-auto",children:["See it in action",s.jsx("svg",{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),s.jsxs("div",{className:"group bg-white/70 backdrop-blur-sm border border-madkudu-neutral-300 rounded-xl p-6 md:p-8 shadow-sm hover:shadow-lg hover:border-madkudu-blue-400 transition-all duration-300 hover:-translate-y-1 flex flex-col h-full",children:[s.jsx("div",{className:"flex items-center justify-center w-16 h-16 bg-indigo-100 rounded-xl mb-6 group-hover:bg-indigo-200 transition-colors duration-300",children:s.jsx("img",{src:"/lovable-uploads/6f203759-1de5-4651-bc59-9d0af64bce9d.png",alt:"Outreach",className:"h-8 w-auto"})}),s.jsx("h3",{className:"text-xl font-poppins font-semibold mb-4",style:{color:"#182B52"},children:"Turbocharge your Outreach"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6 leading-relaxed flex-grow",children:"Turn cold prospecting into targeted warm outreach with prospects ready to engage in Outreach."}),s.jsxs(kt,{to:"/solutions/madkudu-for-outreach",className:"text-madkudu-blue-600 font-medium hover:text-madkudu-blue-700 transition-colors duration-200 inline-flex items-center group mt-auto",children:["See it in action",s.jsx("svg",{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),s.jsxs("div",{className:"group bg-white/70 backdrop-blur-sm border border-madkudu-neutral-300 rounded-xl p-6 md:p-8 shadow-sm hover:shadow-lg hover:border-madkudu-blue-400 transition-all duration-300 hover:-translate-y-1 flex flex-col h-full",children:[s.jsx("div",{className:"flex items-center justify-center w-16 h-16 bg-green-100 rounded-xl mb-6 group-hover:bg-green-200 transition-colors duration-300",children:s.jsx(jf,{className:"h-8 w-8 text-green-600"})}),s.jsx("h3",{className:"text-xl font-poppins font-semibold mb-4",style:{color:"#182B52"},children:"Turbocharge your AI Agent"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6 leading-relaxed flex-grow",children:"Give your GPTs and Copilots instant access to account briefs, contact insights, scores, and intent signals with MadKudu MCP"}),s.jsxs(kt,{to:"/mcp",className:"text-madkudu-blue-600 font-medium hover:text-madkudu-blue-700 transition-colors duration-200 inline-flex items-center group mt-auto",children:["See it in action",s.jsx("svg",{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]})]})]})}),Lw=768;function wL(){const[t,e]=b.useState(void 0);return b.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Lw-1}px)`),n=()=>{e(window.innerWidthr.removeEventListener("change",n)},[]),!!t}const QJ=Yy("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"}}),Ee=b.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...a},i)=>{const o=n?ql:"button";return s.jsx(o,{className:At(QJ({variant:e,size:r,className:t})),ref:i,...a})});Ee.displayName="Button";const gA={lucid:{company:"Lucidchart",logo:"/lovable-uploads/f3e4da6e-b28c-407c-9a1d-1404d4608cf4.png",quote:"Since implementing MadKudu, we have seen a 60% increase in pipeline from PQLs and a 20% increase in ARR from our ABM motion. We are continuing to expand our use of MadKudu to all our go-to-market motions.",name:"TJ Nokleby",title:"Director of Demand Generation",profilePhoto:"/lovable-uploads/6a3fc40c-5f6a-4c2c-8b4d-f3882530e0d1.png"},snyk:{company:"Snyk",logo:"/lovable-uploads/330bb8ab-a0b5-403b-80e7-8c1f86cd167f.png",quote:s.jsxs(s.Fragment,{children:['"I went from spending an hour researching each account across 8-10 different sources to getting comprehensive intelligence in just 2-5 minutes. ',s.jsx("span",{style:{backgroundColor:"#FCEADA",fontWeight:"bold",padding:"2px 4px",borderRadius:"4px"},children:"That's how I hit 100% of quota in my first quarter."}),'"']}),name:"Takuya Okubo",title:"Strategic Sales Development Representative",profilePhoto:"/lovable-uploads/14934fc9-869b-46fa-bde4-972f544cd17b.png"},"cockroach-labs":{company:"Cockroach Labs",logo:"/lovable-uploads/b1b99895-7067-4b0c-a4d7-b471e3252021.png",quote:"Being able to pipe in all these different data sources into a centralized platform and have that show up in Salesforce in a way that the reps can leverage. That's a secret sauce with MadKudu.",name:"Ryan Kelly",title:"VP of Marketing",profilePhoto:"/lovable-uploads/735a6828-eddf-4358-8cd9-58350ddf709d.png"}},jL=()=>{const t=wL(),e=[{name:"Snyk",logo:"/lovable-uploads/logo_snyk.svg",hasCase:!0,slug:"snyk"},{name:"Unity",logo:"/lovable-uploads/logo_unity.svg",hasCase:!1,slug:""},{name:"Lucidchart",logo:"/lovable-uploads/Lucidchart_logo.svg",hasCase:!0,slug:"lucid"},{name:"MongoDB",logo:"/lovable-uploads/logo_mongodb.svg",hasCase:!1,slug:""},{name:"Autodesk",logo:"/lovable-uploads/Autodesk.svg",hasCase:!1,slug:""}],r=[{name:"Figma",logo:"/lovable-uploads/figma_logo.svg",hasCase:!1,slug:""},{name:"Cockroach Labs",logo:"/lovable-uploads/Cockroach_Logo.svg",hasCase:!0,slug:"cockroach-labs"},{name:"Gong",logo:"/lovable-uploads/gong.svg",hasCase:!1,slug:""},{name:"Reddit",logo:"/lovable-uploads/Reddit-Logo.svg",hasCase:!1,slug:""},{name:"Avalara",logo:"/lovable-uploads/Avalara_logo.svg",hasCase:!1,slug:""}],n=[{name:"Niantic",logo:"/lovable-uploads/Niantic_Logo.svg",hasCase:!1,slug:""},{name:"Udemy",logo:"/lovable-uploads/Udemy_logo.svg",hasCase:!1,slug:""},{name:"Plaid",logo:"/lovable-uploads/Plaid_logo.svg",hasCase:!1,slug:""},{name:"Dropbox",logo:"/lovable-uploads/Dropbox_logo.svg",hasCase:!1,slug:""},{name:"Bloomreach",logo:"/lovable-uploads/bloomreach.svg",hasCase:!1,slug:""}],a=[{name:"Snyk",logo:"/lovable-uploads/logo_snyk.svg",hasCase:!0,slug:"snyk"},{name:"Unity",logo:"/lovable-uploads/logo_unity.svg",hasCase:!1,slug:""},{name:"Lucidchart",logo:"/lovable-uploads/Lucidchart_logo.svg",hasCase:!0,slug:"lucid"},{name:"MongoDB",logo:"/lovable-uploads/logo_mongodb.svg",hasCase:!1,slug:""},{name:"Figma",logo:"/lovable-uploads/figma_logo.svg",hasCase:!1,slug:""},{name:"Cockroach Labs",logo:"/lovable-uploads/Cockroach_Logo.svg",hasCase:!0,slug:"cockroach-labs"},{name:"Gong",logo:"/lovable-uploads/gong.svg",hasCase:!1,slug:""},{name:"Plaid",logo:"/lovable-uploads/Plaid_logo.svg",hasCase:!1,slug:""}],i=b.memo(({company:o})=>s.jsxs("div",{className:"flex flex-col justify-between h-24 space-y-3 p-2",children:[s.jsx("div",{className:"flex items-center justify-center min-w-[120px] max-w-[160px] h-12 mx-auto",children:s.jsx("img",{src:o.logo,alt:`${o.name} logo`,className:`h-12 w-auto object-contain company-logo ${o.name==="Unity"?"object-center":""}`})}),s.jsx("div",{className:"flex justify-center h-6",children:o.hasCase&&s.jsxs("div",{className:"company-item-container relative",children:[s.jsx(kt,{to:`/customers/${o.slug}`,className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium case-study-link","data-company":o.slug,children:"Case study →"}),!t&&gA[o.slug]&&s.jsx("div",{className:"testimonial-modal absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 opacity-0 pointer-events-none transition-opacity duration-200 z-50",children:s.jsxs("div",{className:"bg-white rounded-lg shadow-2xl border border-gray-200 p-6 w-80 relative",children:[s.jsx("div",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2",children:s.jsx("div",{className:"w-4 h-4 bg-white border-b border-r border-gray-200 transform rotate-45"})}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-gray-800 text-sm leading-relaxed text-left",children:gA[o.slug].quote}),s.jsxs("div",{className:"flex items-center space-x-3 pt-2 pb-3",children:[s.jsx("img",{src:gA[o.slug].profilePhoto,alt:gA[o.slug].name,className:"w-10 h-10 rounded-full object-cover"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium text-sm text-gray-900",children:gA[o.slug].name}),s.jsx("div",{className:"text-xs text-gray-600",children:gA[o.slug].title})]})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx(Ee,{variant:"outline",size:"sm",className:"text-xs px-4 py-2 border-gray-300 hover:border-gray-400 transition-colors pointer-events-auto",asChild:!0,children:s.jsx(kt,{to:`/customers/${o.slug}`,children:"Read case study →"})})})]})]})})]})})]}));return t?s.jsx("section",{className:"py-12 bg-gradient-to-b from-teal-50/30 to-white",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[s.jsx("div",{className:"text-center mb-8",children:s.jsx("h2",{className:"font-poppins font-normal text-[#182B52] mb-5",style:{fontSize:"28px",lineHeight:"1.2"},children:"The world's leading revenue teams power their sellers with MadKudu"})}),s.jsx("div",{className:"grid grid-cols-2 gap-8 items-center justify-items-center",children:a.map((o,l)=>s.jsx(i,{company:o},`mobile-${o.name}-${l}`))})]})}):s.jsx("section",{className:"py-16 bg-gradient-to-b from-teal-50/30 to-white",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-[60px]",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsxs("h2",{className:"font-poppins font-normal text-[#182B52] mb-5",style:{fontSize:"33px",lineHeight:"1.2"},children:["The world's leading revenue teams power",s.jsx("br",{}),"their sellers with MadKudu"]})}),s.jsxs("div",{className:"space-y-8",children:[s.jsx("div",{className:"grid grid-cols-5 gap-x-12 gap-y-8 items-center justify-items-center",children:e.map((o,l)=>s.jsx(i,{company:o},`row1-${o.name}-${l}`))}),s.jsx("div",{className:"grid grid-cols-5 gap-x-12 gap-y-8 items-center justify-items-center",children:r.map((o,l)=>s.jsx(i,{company:o},`row2-${o.name}-${l}`))}),s.jsx("div",{className:"grid grid-cols-5 gap-x-12 gap-y-8 items-center justify-items-center",children:n.map((o,l)=>s.jsx(i,{company:o},`row3-${o.name}-${l}`))})]})]})})},gp=()=>{const t=Ft(),e=()=>{t("/demo"),window.scrollTo(0,0)};return s.jsx("section",{className:"py-20 mx-4 sm:mx-6 lg:px-8 mb-8",children:s.jsx("div",{className:"max-w-6xl mx-auto bg-[#1B2C4E] rounded-2xl px-8 sm:px-12 lg:px-16 py-20",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[s.jsx("div",{className:"flex-1",children:s.jsx("h2",{className:"font-poppins font-normal text-white",style:{fontSize:"33px",lineHeight:"46px"},children:"Your sellers deserve superpowers"})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx("button",{className:"bg-white text-black font-medium rounded-xl transition-all duration-300 border border-gray-200 px-8 py-3 hover:bg-gray-50 hover:shadow-lg hover:scale-105 hover:border-gray-300 transform",onClick:e,children:"Book a demo to see it in action"})})]})})})};var Uw="focusScope.autoFocusOnMount",_w="focusScope.autoFocusOnUnmount",JS={bubbles:!1,cancelable:!0},DJ="FocusScope",vN=b.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=t,[l,c]=b.useState(null),d=Ys(a),A=Ys(i),u=b.useRef(null),h=er(e,p=>c(p)),m=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(n){let p=function(j){if(m.paused||!l)return;const S=j.target;l.contains(S)?u.current=S:rl(u.current,{select:!0})},w=function(j){if(m.paused||!l)return;const S=j.relatedTarget;S!==null&&(l.contains(S)||rl(u.current,{select:!0}))},y=function(j){if(document.activeElement===document.body)for(const F of j)F.removedNodes.length>0&&rl(l)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const v=new MutationObserver(y);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),v.disconnect()}}},[n,l,m.paused]),b.useEffect(()=>{if(l){ZS.add(m);const p=document.activeElement;if(!l.contains(p)){const y=new CustomEvent(Uw,JS);l.addEventListener(Uw,d),l.dispatchEvent(y),y.defaultPrevented||(RJ(zJ(NL(l)),{select:!0}),document.activeElement===p&&rl(l))}return()=>{l.removeEventListener(Uw,d),setTimeout(()=>{const y=new CustomEvent(_w,JS);l.addEventListener(_w,A),l.dispatchEvent(y),y.defaultPrevented||rl(p??document.body,{select:!0}),l.removeEventListener(_w,A),ZS.remove(m)},0)}}},[l,d,A,m]);const g=b.useCallback(p=>{if(!r&&!n||m.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(w&&y){const v=p.currentTarget,[j,S]=OJ(v);j&&S?!p.shiftKey&&y===S?(p.preventDefault(),r&&rl(j,{select:!0})):p.shiftKey&&y===j&&(p.preventDefault(),r&&rl(S,{select:!0})):y===v&&p.preventDefault()}},[r,n,m.paused]);return s.jsx(Et.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});vN.displayName=DJ;function RJ(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(rl(n,{select:e}),document.activeElement!==r)return}function OJ(t){const e=NL(t),r=XS(e,t),n=XS(e.reverse(),t);return[r,n]}function NL(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function XS(t,e){for(const r of t)if(!HJ(r,{upTo:e}))return r}function HJ(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function KJ(t){return t instanceof HTMLInputElement&&"select"in t}function rl(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&KJ(t)&&e&&t.select()}}var ZS=VJ();function VJ(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=e6(t,e),t.unshift(e)},remove(e){var r;t=e6(t,e),(r=t[0])==null||r.resume()}}}function e6(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function zJ(t){return t.filter(e=>e.tagName!=="A")}var Mw=0;function CL(){b.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??t6()),document.body.insertAdjacentElement("beforeend",t[1]??t6()),Mw++,()=>{Mw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Mw--}},[])}function t6(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var mj=function(t,e){return mj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},mj(t,e)};function Lo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");mj(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var wi=function(){return wi=Object.assign||function(e){for(var r,n=1,a=arguments.length;n0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Eo(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Ti(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n1||c(m,p)})},g&&(a[m]=g(a[m])))}function c(m,g){try{d(n[m](g))}catch(p){h(i[0][3],p)}}function d(m){m.value instanceof fu?Promise.resolve(m.value.v).then(A,u):h(i[0][2],m)}function A(m){c("next",m)}function u(m){c("throw",m)}function h(m,g){m(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function GJ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Yu=="function"?Yu(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(l,c){o=t[i](o),a(l,c,o.done,o.value)})}}function a(i,o,l,c){Promise.resolve(c).then(function(d){i({value:d,done:l})},o)}}var Jx="right-scroll-bar-position",Xx="width-before-scroll-bar",qJ="with-scroll-bars-hidden",YJ="--removed-body-scroll-bar-size";function Qw(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function JJ(t,e){var r=b.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=e,r.facade}var XJ=typeof window<"u"?b.useLayoutEffect:b.useEffect,r6=new WeakMap;function ZJ(t,e){var r=JJ(null,function(n){return t.forEach(function(a){return Qw(a,n)})});return XJ(function(){var n=r6.get(r);if(n){var a=new Set(n),i=new Set(t),o=r.current;a.forEach(function(l){i.has(l)||Qw(l,null)}),i.forEach(function(l){a.has(l)||Qw(l,o)})}r6.set(r,t)},[t]),r}function eX(t){return t}function tX(t,e){e===void 0&&(e=eX);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var o=e(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var A=o;o=[],A.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(A){o.push(A),d()},filter:function(A){return o=o.filter(A),r}}}};return a}function rX(t){t===void 0&&(t={});var e=tX(null);return e.options=wi({async:!0,ssr:!1},t),e}var kL=function(t){var e=t.sideCar,r=BL(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return b.createElement(n,wi({},r))};kL.isSideCarExport=!0;function nX(t,e){return t.useMedium(e),kL}var EL=rX(),Dw=function(){},xv=b.forwardRef(function(t,e){var r=b.useRef(null),n=b.useState({onScrollCapture:Dw,onWheelCapture:Dw,onTouchMoveCapture:Dw}),a=n[0],i=n[1],o=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,A=t.enabled,u=t.shards,h=t.sideCar,m=t.noIsolation,g=t.inert,p=t.allowPinchZoom,w=t.as,y=w===void 0?"div":w,v=t.gapMode,j=BL(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,F=ZJ([r,e]),U=wi(wi({},j),a);return b.createElement(b.Fragment,null,A&&b.createElement(S,{sideCar:EL,removeScrollBar:d,shards:u,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!p,lockRef:r,gapMode:v}),o?b.cloneElement(b.Children.only(l),wi(wi({},U),{ref:F})):b.createElement(y,wi({},U,{className:c,ref:F}),l))});xv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xv.classNames={fullWidth:Xx,zeroRight:Jx};var sX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aX(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=sX();return e&&t.setAttribute("nonce",e),t}function iX(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function oX(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var lX=function(){var t=0,e=null;return{add:function(r){t==0&&(e=aX())&&(iX(e,r),oX(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},cX=function(){var t=lX();return function(e,r){b.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},FL=function(){var t=cX(),e=function(r){var n=r.styles,a=r.dynamic;return t(n,a),null};return e},dX={left:0,top:0,right:0,gap:0},Rw=function(t){return parseInt(t||"",10)||0},AX=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],a=e[t==="padding"?"paddingRight":"marginRight"];return[Rw(r),Rw(n),Rw(a)]},uX=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return dX;var e=AX(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},hX=FL(),pu="data-scroll-locked",mX=function(t,e,r,n){var a=t.left,i=t.top,o=t.right,l=t.gap;return r===void 0&&(r="margin"),` .`.concat(qJ,` { overflow: hidden `).concat(n,`; padding-right: `).concat(l,"px ").concat(n,`; } body[`).concat(pu,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(a,`px; padding-top: `).concat(i,`px; padding-right: `).concat(o,`px; margin-left:0; margin-top:0; margin-right: `).concat(l,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(Jx,` { right: `).concat(l,"px ").concat(n,`; } .`).concat(Xx,` { margin-right: `).concat(l,"px ").concat(n,`; } .`).concat(Jx," .").concat(Jx,` { right: 0 `).concat(n,`; } .`).concat(Xx," .").concat(Xx,` { margin-right: 0 `).concat(n,`; } body[`).concat(pu,`] { `).concat(YJ,": ").concat(l,`px; } `)},n6=function(){var t=parseInt(document.body.getAttribute(pu)||"0",10);return isFinite(t)?t:0},fX=function(){b.useEffect(function(){return document.body.setAttribute(pu,(n6()+1).toString()),function(){var t=n6()-1;t<=0?document.body.removeAttribute(pu):document.body.setAttribute(pu,t.toString())}},[])},pX=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,a=n===void 0?"margin":n;fX();var i=b.useMemo(function(){return uX(a)},[a]);return b.createElement(hX,{styles:mX(i,!e,a,r?"":"!important")})},fj=!1;if(typeof window<"u")try{var $g=Object.defineProperty({},"passive",{get:function(){return fj=!0,!0}});window.addEventListener("test",$g,$g),window.removeEventListener("test",$g,$g)}catch{fj=!1}var xA=fj?{passive:!1}:!1,gX=function(t){return t.tagName==="TEXTAREA"},IL=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!gX(t)&&r[e]==="visible")},xX=function(t){return IL(t,"overflowY")},yX=function(t){return IL(t,"overflowX")},s6=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=PL(t,n);if(a){var i=TL(t,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},vX=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},bX=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},PL=function(t,e){return t==="v"?xX(e):yX(e)},TL=function(t,e){return t==="v"?vX(e):bX(e)},wX=function(t,e){return t==="h"&&e==="rtl"?-1:1},jX=function(t,e,r,n,a){var i=wX(t,window.getComputedStyle(e).direction),o=i*n,l=r.target,c=e.contains(l),d=!1,A=o>0,u=0,h=0;do{var m=TL(t,l),g=m[0],p=m[1],w=m[2],y=p-w-i*g;(g||y)&&PL(t,l)&&(u+=y,h+=g),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(A&&(Math.abs(u)<1||!a)||!A&&(Math.abs(h)<1||!a))&&(d=!0),d},Gg=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},a6=function(t){return[t.deltaX,t.deltaY]},i6=function(t){return t&&"current"in t?t.current:t},NX=function(t,e){return t[0]===e[0]&&t[1]===e[1]},CX=function(t){return` .block-interactivity-`.concat(t,` {pointer-events: none;} .allow-interactivity-`).concat(t,` {pointer-events: all;} `)},BX=0,yA=[];function SX(t){var e=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),a=b.useState(BX++)[0],i=b.useState(FL)[0],o=b.useRef(t);b.useEffect(function(){o.current=t},[t]),b.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var p=Ti([t.lockRef.current],(t.shards||[]).map(i6),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=b.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=Gg(p),v=r.current,j="deltaX"in p?p.deltaX:v[0]-y[0],S="deltaY"in p?p.deltaY:v[1]-y[1],F,U=p.target,M=Math.abs(j)>Math.abs(S)?"h":"v";if("touches"in p&&M==="h"&&U.type==="range")return!1;var P=s6(M,U);if(!P)return!0;if(P?F=M:(F=M==="v"?"h":"v",P=s6(M,U)),!P)return!1;if(!n.current&&"changedTouches"in p&&(j||S)&&(n.current=F),!F)return!0;var W=n.current||F;return jX(W,w,p,W==="h"?j:S,!0)},[]),c=b.useCallback(function(p){var w=p;if(!(!yA.length||yA[yA.length-1]!==i)){var y="deltaY"in w?a6(w):Gg(w),v=e.current.filter(function(F){return F.name===w.type&&(F.target===w.target||w.target===F.shadowParent)&&NX(F.delta,y)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var j=(o.current.shards||[]).map(i6).filter(Boolean).filter(function(F){return F.contains(w.target)}),S=j.length>0?l(w,j[0]):!o.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),d=b.useCallback(function(p,w,y,v){var j={name:p,delta:w,target:y,should:v,shadowParent:kX(y)};e.current.push(j),setTimeout(function(){e.current=e.current.filter(function(S){return S!==j})},1)},[]),A=b.useCallback(function(p){r.current=Gg(p),n.current=void 0},[]),u=b.useCallback(function(p){d(p.type,a6(p),p.target,l(p,t.lockRef.current))},[]),h=b.useCallback(function(p){d(p.type,Gg(p),p.target,l(p,t.lockRef.current))},[]);b.useEffect(function(){return yA.push(i),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",c,xA),document.addEventListener("touchmove",c,xA),document.addEventListener("touchstart",A,xA),function(){yA=yA.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,xA),document.removeEventListener("touchmove",c,xA),document.removeEventListener("touchstart",A,xA)}},[]);var m=t.removeScrollBar,g=t.inert;return b.createElement(b.Fragment,null,g?b.createElement(i,{styles:CX(a)}):null,m?b.createElement(pX,{gapMode:t.gapMode}):null)}function kX(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const EX=nX(EL,SX);var bN=b.forwardRef(function(t,e){return b.createElement(xv,wi({},t,{ref:e,sideCar:EX}))});bN.classNames=xv.classNames;var FX=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},vA=new WeakMap,qg=new WeakMap,Yg={},Ow=0,LL=function(t){return t&&(t.host||LL(t.parentNode))},IX=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=LL(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},PX=function(t,e,r,n){var a=IX(e,Array.isArray(t)?t:[t]);Yg[r]||(Yg[r]=new WeakMap);var i=Yg[r],o=[],l=new Set,c=new Set(a),d=function(u){!u||l.has(u)||(l.add(u),d(u.parentNode))};a.forEach(d);var A=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(h){if(l.has(h))A(h);else try{var m=h.getAttribute(n),g=m!==null&&m!=="false",p=(vA.get(h)||0)+1,w=(i.get(h)||0)+1;vA.set(h,p),i.set(h,w),o.push(h),p===1&&g&&qg.set(h,!0),w===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return A(e),l.clear(),Ow++,function(){o.forEach(function(u){var h=vA.get(u)-1,m=i.get(u)-1;vA.set(u,h),i.set(u,m),h||(qg.has(u)||u.removeAttribute(n),qg.delete(u)),m||u.removeAttribute(r)}),Ow--,Ow||(vA=new WeakMap,vA=new WeakMap,qg=new WeakMap,Yg={})}},UL=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),a=FX(t);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),PX(n,a,r,"aria-hidden")):function(){return null}},wN="Dialog",[_L,Efe]=Id(wN),[TX,ti]=_L(wN),ML=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=t,l=b.useRef(null),c=b.useRef(null),[d=!1,A]=Yl({prop:n,defaultProp:a,onChange:i});return s.jsx(TX,{scope:e,triggerRef:l,contentRef:c,contentId:rd(),titleId:rd(),descriptionId:rd(),open:d,onOpenChange:A,onOpenToggle:b.useCallback(()=>A(u=>!u),[A]),modal:o,children:r})};ML.displayName=wN;var QL="DialogTrigger",DL=b.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ti(QL,r),i=er(e,a.triggerRef);return s.jsx(Et.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":CN(a.open),...n,ref:i,onClick:st(t.onClick,a.onOpenToggle)})});DL.displayName=QL;var jN="DialogPortal",[LX,RL]=_L(jN,{forceMount:void 0}),OL=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:a}=t,i=ti(jN,e);return s.jsx(LX,{scope:e,forceMount:r,children:b.Children.map(n,o=>s.jsx(Ac,{present:r||i.open,children:s.jsx($y,{asChild:!0,container:a,children:o})}))})};OL.displayName=jN;var Z0="DialogOverlay",HL=b.forwardRef((t,e)=>{const r=RL(Z0,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=ti(Z0,t.__scopeDialog);return i.modal?s.jsx(Ac,{present:n||i.open,children:s.jsx(UX,{...a,ref:e})}):null});HL.displayName=Z0;var UX=b.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ti(Z0,r);return s.jsx(bN,{as:ql,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(Et.div,{"data-state":CN(a.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),wd="DialogContent",KL=b.forwardRef((t,e)=>{const r=RL(wd,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=ti(wd,t.__scopeDialog);return s.jsx(Ac,{present:n||i.open,children:i.modal?s.jsx(_X,{...a,ref:e}):s.jsx(MX,{...a,ref:e})})});KL.displayName=wd;var _X=b.forwardRef((t,e)=>{const r=ti(wd,t.__scopeDialog),n=b.useRef(null),a=er(e,r.contentRef,n);return b.useEffect(()=>{const i=n.current;if(i)return UL(i)},[]),s.jsx(VL,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:st(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:st(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:st(t.onFocusOutside,i=>i.preventDefault())})}),MX=b.forwardRef((t,e)=>{const r=ti(wd,t.__scopeDialog),n=b.useRef(!1),a=b.useRef(!1);return s.jsx(VL,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,d;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),VL=b.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=t,l=ti(wd,r),c=b.useRef(null),d=er(e,c);return CL(),s.jsxs(s.Fragment,{children:[s.jsx(vN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(oh,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":CN(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(QX,{titleId:l.titleId}),s.jsx(RX,{contentRef:c,descriptionId:l.descriptionId})]})]})}),NN="DialogTitle",zL=b.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ti(NN,r);return s.jsx(Et.h2,{id:a.titleId,...n,ref:e})});zL.displayName=NN;var WL="DialogDescription",$L=b.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ti(WL,r);return s.jsx(Et.p,{id:a.descriptionId,...n,ref:e})});$L.displayName=WL;var GL="DialogClose",qL=b.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=ti(GL,r);return s.jsx(Et.button,{type:"button",...n,ref:e,onClick:st(t.onClick,()=>a.onOpenChange(!1))})});qL.displayName=GL;function CN(t){return t?"open":"closed"}var YL="DialogTitleWarning",[Ffe,JL]=g9(YL,{contentName:wd,titleName:NN,docsSlug:"dialog"}),QX=({titleId:t})=>{const e=JL(YL),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return b.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},DX="DialogDescriptionWarning",RX=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JL(DX).contentName}}.`;return b.useEffect(()=>{var i;const a=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&a&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},OX=ML,HX=DL,KX=OL,XL=HL,ZL=KL,eU=zL,tU=$L,VX=qL;const Ju=OX,ey=HX,zX=KX,rU=b.forwardRef(({className:t,...e},r)=>s.jsx(XL,{ref:r,className:At("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",t),...e}));rU.displayName=XL.displayName;const jd=b.forwardRef(({className:t,children:e,...r},n)=>s.jsxs(zX,{children:[s.jsx(rU,{}),s.jsxs(ZL,{ref:n,className:At("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",t),...r,children:[e,s.jsxs(VX,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(Na,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jd.displayName=ZL.displayName;const Nd=({className:t,...e})=>s.jsx("div",{className:At("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Nd.displayName="DialogHeader";const Cd=b.forwardRef(({className:t,...e},r)=>s.jsx(eU,{ref:r,className:At("text-lg font-semibold leading-none tracking-tight",t),...e}));Cd.displayName=eU.displayName;const nU=b.forwardRef(({className:t,...e},r)=>s.jsx(tU,{ref:r,className:At("text-sm text-muted-foreground",t),...e}));nU.displayName=tU.displayName;function BN(t){const e=b.useRef({value:t,previous:t});return b.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var SN="Switch",[WX,Ife]=Id(SN),[$X,GX]=WX(SN),sU=b.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:d,form:A,...u}=t,[h,m]=b.useState(null),g=er(e,j=>m(j)),p=b.useRef(!1),w=h?A||!!h.closest("form"):!0,[y=!1,v]=Yl({prop:a,defaultProp:i,onChange:d});return s.jsxs($X,{scope:r,checked:y,disabled:l,children:[s.jsx(Et.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":oU(y),"data-disabled":l?"":void 0,disabled:l,value:c,...u,ref:g,onClick:st(t.onClick,j=>{v(S=>!S),w&&(p.current=j.isPropagationStopped(),p.current||j.stopPropagation())})}),w&&s.jsx(qX,{control:h,bubbles:!p.current,name:n,value:c,checked:y,required:o,disabled:l,form:A,style:{transform:"translateX(-100%)"}})]})});sU.displayName=SN;var aU="SwitchThumb",iU=b.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,a=GX(aU,r);return s.jsx(Et.span,{"data-state":oU(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:e})});iU.displayName=aU;var qX=t=>{const{control:e,checked:r,bubbles:n=!0,...a}=t,i=b.useRef(null),o=BN(r),l=k4(e);return b.useEffect(()=>{const c=i.current,d=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(d,"checked").set;if(o!==r&&u){const h=new Event("click",{bubbles:n});u.call(c,r),c.dispatchEvent(h)}},[o,r,n]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:i,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function oU(t){return t?"checked":"unchecked"}var lU=sU,YX=iU;const su=b.forwardRef(({className:t,...e},r)=>s.jsx(lU,{className:At("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:r,children:s.jsx(YX,{className:At("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));su.displayName=lU.displayName;const JX=({children:t})=>{const[e,r]=b.useState(!1),[n,a]=b.useState({necessary:!0,analytics:!1,marketing:!1,functional:!1}),i=()=>{console.log("Cookie preferences saved:",n),r(!1)},o=()=>{a({necessary:!0,analytics:!0,marketing:!0,functional:!0}),console.log("All cookies accepted"),r(!1)},l=()=>{a({necessary:!0,analytics:!1,marketing:!1,functional:!1}),console.log("Non-essential cookies rejected"),r(!1)};return s.jsxs(Ju,{open:e,onOpenChange:r,children:[s.jsx(ey,{asChild:!0,children:t}),s.jsxs(jd,{className:"sm:max-w-[500px]",children:[s.jsxs(Nd,{children:[s.jsx(Cd,{children:"Cookie Settings"}),s.jsx(nU,{children:"Manage your cookie preferences. You can enable or disable different types of cookies below."})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium",children:"Necessary Cookies"}),s.jsx("p",{className:"text-sm text-gray-600",children:"These cookies are essential for the website to function properly."})]}),s.jsx(su,{checked:n.necessary,disabled:!0})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium",children:"Analytics Cookies"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Help us understand how visitors interact with our website."})]}),s.jsx(su,{checked:n.analytics,onCheckedChange:c=>a(d=>({...d,analytics:c}))})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium",children:"Marketing Cookies"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Used to track visitors across websites for marketing purposes."})]}),s.jsx(su,{checked:n.marketing,onCheckedChange:c=>a(d=>({...d,marketing:c}))})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h4",{className:"text-sm font-medium",children:"Functional Cookies"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Enable enhanced functionality and personalization."})]}),s.jsx(su,{checked:n.functional,onCheckedChange:c=>a(d=>({...d,functional:c}))})]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 sm:justify-end",children:[s.jsx(Ee,{variant:"outline",onClick:l,children:"Reject All"}),s.jsx(Ee,{variant:"outline",onClick:o,children:"Accept All"}),s.jsx(Ee,{onClick:i,children:"Save Preferences"})]})]})]})},Qe=()=>{const t=[{title:"Product",links:[{text:"Signals",url:"/signals",internal:!0},{text:"Intelligence",url:"/intelligence",internal:!0},{text:"Automation Plays",url:"/playbooks",internal:!0}]},{title:"Solutions",links:[{text:"MadKudu for Gong",url:"/solutions/madkudu-for-gong",internal:!0},{text:"MadKudu for Outreach",url:"/solutions/madkudu-for-outreach",internal:!0},{text:"MadKudu for Salesforce",url:"/solutions/madkudu-for-salesforce",internal:!0}]},{title:"Resources",links:[{text:"ROI Calculator",url:"/roi-calculator",internal:!0},{text:"Sales Confessions Podcast",url:"#",internal:!1},{text:"Customer Stories",url:"/customers",internal:!0},{text:"Blog",url:"https://www.madkudu.com/blog",internal:!1},{text:"Sales 101 Enablement sessions",url:"/sales-101",internal:!0}]},{title:"Support",links:[{text:"Help Docs",url:"https://help.madkudu.com/docs",internal:!1},{text:"API Docs",url:"https://developers.madkudu.com/",internal:!1},{text:"System Status",url:"https://status.madkudu.com",internal:!1}]},{title:"Company",links:[{text:"The Team",url:"/team",internal:!0},{text:"Careers",url:"/careers",internal:!0}]}];return s.jsx("footer",{className:"bg-white border-t border-gray-200",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 lg:py-12",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-6 gap-8",children:[s.jsxs("div",{className:"col-span-1 lg:col-span-1",children:[s.jsx("div",{className:"flex items-center space-x-2 mb-8",children:s.jsx("img",{src:"/lovable-uploads/logo-madkudu-hg.svg",alt:"MadKudu Logo",className:"h-14 w-auto"})}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("img",{src:"/lovable-uploads/3f8a89f4-6653-4832-869f-e7e32299f77f.png",alt:"VeraSafe EU Data Protection Representative",className:"w-20 h-auto"}),s.jsx("img",{src:"/lovable-uploads/76b36d63-dab9-4176-9ec1-5d4c4415ac06.png",alt:"VeraSafe UK Data Protection Representative",className:"w-20 h-auto"})]})]}),t.map((e,r)=>s.jsxs("div",{className:"col-span-1",children:[s.jsx("h3",{className:"font-medium text-gray-500 mb-4 text-sm",children:e.title}),s.jsx("ul",{className:"space-y-3",children:e.links.map((n,a)=>s.jsx("li",{children:n.internal?s.jsx(kt,{to:n.url,className:"text-gray-700 hover:text-[#3B82F6] transition-colors text-sm",children:n.text}):s.jsx("a",{href:n.url,className:"text-gray-700 hover:text-[#3B82F6] transition-colors text-sm",target:n.url.startsWith("http")?"_blank":"_self",rel:n.url.startsWith("http")?"noopener noreferrer":void 0,children:n.text})},a))})]},r))]}),s.jsxs("div",{className:"border-t border-gray-200 mt-16 pt-8 flex flex-col lg:flex-row justify-between items-start lg:items-center space-y-4 lg:space-y-0",children:[s.jsx("div",{className:"text-gray-500 text-sm",children:"© Copyright All Rights Reserved. MadKudu Inc."}),s.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center space-y-4 sm:space-y-0 sm:space-x-6",children:[s.jsx(JX,{children:s.jsx("button",{className:"bg-[#3B82F6] text-white px-4 py-2 rounded text-sm font-medium hover:bg-blue-600 transition-colors",children:"Cookie Settings"})}),s.jsxs("div",{className:"flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-4 text-sm",children:[s.jsx(kt,{to:"/legal-center",className:"text-gray-500 hover:text-[#3B82F6] transition-colors",children:"Legal Center"}),s.jsx("a",{href:"https://app.madkudu.com/data-privacy-management",target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-[#3B82F6] transition-colors",children:"Do Not Sell My Information"})]}),s.jsxs("div",{className:"flex space-x-4",children:[s.jsx("a",{href:"https://www.linkedin.com/company/madkudu/",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full border border-gray-300 flex items-center justify-center text-gray-400 hover:text-[#3B82F6] hover:border-[#3B82F6] transition-colors",children:s.jsx(x4,{className:"h-4 w-4"})}),s.jsx("a",{href:"https://www.youtube.com/@madkudu8922",target:"_blank",rel:"noopener noreferrer",className:"w-8 h-8 rounded-full border border-gray-300 flex items-center justify-center text-gray-400 hover:text-[#3B82F6] hover:border-[#3B82F6] transition-colors",children:s.jsx(RH,{className:"h-4 w-4"})})]})]})]})]})})},XX=()=>{const[t,e]=b.useState(!0),r=b.useRef(null);return b.useEffect(()=>{const n=()=>{const a=t&&r.current?r.current.offsetHeight:0;document.documentElement.style.setProperty("--banner-offset",`${a}px`)};return n(),window.addEventListener("resize",n),()=>{document.documentElement.style.setProperty("--banner-offset","0px"),window.removeEventListener("resize",n)}},[t]),t?s.jsxs("div",{ref:r,className:"sticky top-0 z-[100] bg-gradient-to-r from-primary to-primary-glow text-primary-foreground py-3 px-4 relative shadow-md",children:[s.jsx("div",{className:"container mx-auto text-center",children:s.jsxs("p",{className:"text-sm font-medium",children:["🎉 ",s.jsx("strong",{children:"Big News!"})," MadKudu has been acquired by HG Insights."," ",s.jsx("a",{href:"https://preview--madkudu-website.lovable.app/blog/hg-insights-acquires-madkudu",className:"underline hover:no-underline font-semibold",target:"_blank",rel:"noopener noreferrer",children:"Read more about the exciting journey ahead →"})]})}),s.jsx("button",{onClick:()=>e(!1),className:"absolute right-4 top-1/2 transform -translate-y-1/2 hover:opacity-70 transition-opacity","aria-label":"Close banner",children:s.jsx(Na,{size:16})})]}):null},ZX=()=>(b.useEffect(()=>{document.title="MadKudu | AI that Supercharges Your Sellers"},[]),s.jsxs("div",{className:"min-h-screen",children:[s.jsx(XX,{}),s.jsx(Me,{}),s.jsx(MJ,{}),s.jsx(jL,{}),s.jsx(bL,{}),s.jsx(gp,{}),s.jsx(Qe,{})]})),eZ=()=>{const t=Ft(),e=()=>{t("/demo"),window.scrollTo(0,0)};return s.jsxs("section",{className:"pt-24 pb-12 relative overflow-hidden",style:{background:"linear-gradient(135deg, #1E7DEB 0%, #51EBC7 100%)"},children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-radial from-white/10 via-transparent to-transparent"}),s.jsx("div",{className:"absolute top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[1200px] h-[600px] bg-gradient-radial from-white/5 via-transparent to-transparent rounded-full blur-2xl"}),s.jsx("div",{className:"absolute top-1/3 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[600px] h-[300px] bg-gradient-radial from-white/8 via-transparent to-transparent rounded-full blur-xl"}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-2 relative z-10 py-[20px]",children:s.jsxs("div",{className:"text-center space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("h1",{className:"text-4xl lg:text-5xl font-normal text-white relative",style:{lineHeight:"1.3"},children:s.jsxs("span",{className:"relative z-10 drop-shadow-2xl",children:["Make prospecting",s.jsx("br",{}),"easy in ",s.jsx(gv,{texts:["Gong","Outreach","SalesForce","Claude","ChatGPT","Your favorite AI agent"],mainClassName:"text-white inline-block",rotationInterval:3e3,initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-120%",opacity:0},staggerDuration:.05,splitBy:"characters"})]})}),s.jsx("p",{className:"text-lg text-white/90 leading-relaxed max-w-lg mx-auto relative z-10",children:"Capture and aggregate all the signals your sellers need, and make it easy to use in the tools they already live in."})]}),s.jsx("div",{className:"flex justify-center relative z-10",children:s.jsx("button",{onClick:e,className:"px-6 py-2.5 bg-white text-black text-sm font-medium rounded-lg hover:bg-gray-100 transition-all duration-200 hover:shadow-lg border border-black/10",children:"Get a Demo"})}),s.jsx("div",{className:"max-w-6xl mx-auto mt-10 relative z-10",children:s.jsx("img",{src:"/lovable-uploads/2c52d506-6484-4bf2-a054-76444f389f09.png",alt:"MadKudu AI Prospecting Assistant Dashboard",className:"w-full h-auto shadow-2xl rounded-lg"})})]})})]})},tZ=()=>s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx(eZ,{}),s.jsx(jL,{}),s.jsx(bL,{}),s.jsx(gp,{}),s.jsx(Qe,{})]}),yt=b.forwardRef(({className:t,...e},r)=>s.jsx("div",{ref:r,className:At("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));yt.displayName="Card";const pn=b.forwardRef(({className:t,...e},r)=>s.jsx("div",{ref:r,className:At("flex flex-col space-y-1.5 p-6",t),...e}));pn.displayName="CardHeader";const gn=b.forwardRef(({className:t,...e},r)=>s.jsx("h3",{ref:r,className:At("text-2xl font-semibold leading-none tracking-tight",t),...e}));gn.displayName="CardTitle";const $m=b.forwardRef(({className:t,...e},r)=>s.jsx("p",{ref:r,className:At("text-sm text-muted-foreground",t),...e}));$m.displayName="CardDescription";const zt=b.forwardRef(({className:t,...e},r)=>s.jsx("div",{ref:r,className:At("p-6 pt-0",t),...e}));zt.displayName="CardContent";const rZ=b.forwardRef(({className:t,...e},r)=>s.jsx("div",{ref:r,className:At("flex items-center p-6 pt-0",t),...e}));rZ.displayName="CardFooter";const nZ=()=>{const[t,e]=b.useState(0),r=Ft();b.useEffect(()=>{document.title="Book a Demo | MadKudu"},[]);const n=[{company:"Outreach",logo:"/lovable-uploads/a51f93a1-753f-4a94-80ed-2c5553552fe2.png",quote:"At Outreach, we believe in the power of human connection in sales. There's a lot of AI noise in the market, but when used correctly it can unlock seller productivity. Our partnership with MadKudu represents how modern selling should be done, where AI isn't replacing sellers but empowering them to be more effective. With MadKudu's AI integrated into our platform, sellers can now access critical workflows, resulting in more meaningful interactions and ultimately driving revenue growth.",author:"Manny Medina",title:"CEO",image:"/lovable-uploads/e6f3650f-18aa-43bc-8e32-92b70595e5ec.png"},{company:"Lucid",logo:"/lovable-uploads/9609a9f7-9aa7-44e4-bee4-85db777dce24.png",quote:"Since implementing MadKudu we have seen a 60% increase in pipeline from PQLs and a 20% increase in ARR from our ABM motion. We are continuing to expand our use of MadKudu to all our go-to-market motions.",author:"TJ Nokelby",title:"Director of Demand Generation",image:"/lovable-uploads/324c7b97-4781-4faf-84e8-79250bbb7d50.png"},{company:"OutSystems",logo:"/lovable-uploads/a3415060-6ba8-40ad-858b-2b87409b2b5e.png",quote:"Within one month of onboarding MadKudu, we saw our best month ever in terms of meetings booked and quality of opportunities. I couldn't be happier with MadKudu.",author:"Brett Rizzo",title:"Director of Sales Development",image:"/lovable-uploads/2bb195b6-e737-4e30-a658-34ba4f32bb49.png"}];b.useEffect(()=>{const o=document.createElement("script");o.src="//js.hsforms.net/forms/embed/v2.js",o.charset="utf-8",o.type="text/javascript",o.async=!0,o.onload=()=>{if(window.hbspt){const c={portalId:"2272772",formId:"f9c375e9-a5da-4a53-b8a8-17ac001f81f9",region:"na1",target:"#hubspot-demo-form",onFormSubmitted:()=>{r("/schedule-a-demo")}};window.hbspt.forms.create(c)}},document.body.appendChild(o);const l=document.createElement("style");return l.textContent=` #hubspot-demo-form .hs-form { font-family: 'Inter', sans-serif !important; } #hubspot-demo-form .hs-form-field { margin-bottom: 1rem !important; } #hubspot-demo-form .hs-form-field > label { font-weight: 500 !important; color: #1B1B1B !important; font-size: 14px !important; margin-bottom: 6px !important; display: block !important; } #hubspot-demo-form .hs-input, #hubspot-demo-form .hs-input[type="text"], #hubspot-demo-form .hs-input[type="email"], #hubspot-demo-form select { width: 100% !important; padding: 12px 16px !important; border: 1px solid #e2e8f0 !important; border-radius: 8px !important; font-size: 14px !important; font-family: 'Inter', sans-serif !important; background-color: #ffffff !important; transition: all 0.2s ease !important; box-shadow: none !important; } #hubspot-demo-form .hs-input:focus, #hubspot-demo-form select:focus { outline: none !important; border-color: #3B82F6 !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important; } #hubspot-demo-form .hs-button { background-color: #3B82F6 !important; color: white !important; border: none !important; padding: 12px 24px !important; border-radius: 8px !important; font-size: 16px !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.2s ease !important; width: 100% !important; font-family: 'Inter', sans-serif !important; } #hubspot-demo-form .hs-button:hover { background-color: #2563eb !important; transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important; } #hubspot-demo-form .hs-error-msg { color: #ef4444 !important; font-size: 12px !important; margin-top: 4px !important; } #hubspot-demo-form .hs-richtext { font-size: 14px !important; color: #6b7280 !important; line-height: 1.5 !important; } #hubspot-demo-form fieldset { border: none !important; padding: 0 !important; margin: 0 !important; } #hubspot-demo-form legend { display: none !important; } #hubspot-demo-form .hs-form-field .hs-field-desc { font-size: 12px !important; color: #6b7280 !important; margin-top: 4px !important; } #hubspot-demo-form .hs-dependent-field { margin-top: 0 !important; } `,document.head.appendChild(l),()=>{document.body.contains(o)&&document.body.removeChild(o),document.head.contains(l)&&document.head.removeChild(l)}},[r]);const a=()=>{e(o=>(o+1)%n.length)},i=()=>{e(o=>(o-1+n.length)%n.length)};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-32 pb-16",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-start",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-4xl font-normal text-madkudu-neutral-900 mb-8 leading-tight",children:["Make prospecting easy where",s.jsx("br",{}),"your sellers work"]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-8 h-8 bg-madkudu-blue-500 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:s.jsx("span",{className:"text-white text-sm",children:"⚡"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-madkudu-neutral-900 mb-2",children:"Instant insights:"}),s.jsx("p",{className:"text-madkudu-neutral-700",children:"Quickly find the most engaging contacts, with or without CRM data."})]})]}),s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-8 h-8 bg-madkudu-blue-500 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:s.jsx("span",{className:"text-white text-sm",children:"⚡"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-madkudu-neutral-900 mb-2",children:"Tailored Messaging:"}),s.jsx("p",{className:"text-madkudu-neutral-700",children:"Receive data-driven message recommendations based on key account signals."})]})]}),s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"w-8 h-8 bg-madkudu-blue-500 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:s.jsx("span",{className:"text-white text-sm",children:"⚡"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-madkudu-neutral-900 mb-2",children:"Prioritize Most Engaged Accounts:"}),s.jsx("p",{className:"text-madkudu-neutral-700",children:"Empower your sellers to focus on the accounts that are most likely to convert."})]})]})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-madkudu-neutral-600 mb-4",children:"Join businesses like:"}),s.jsxs("div",{className:"grid grid-cols-4 gap-6 items-center opacity-60",children:[s.jsx("img",{src:"/lovable-uploads/42ee9863-61b9-4fb3-b405-c74b60e32136.png",alt:"Reddit",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/7214de77-66f7-49f4-8ad3-a4264e136cf9.png",alt:"Niantic",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/0809375a-8f8a-48d7-b22f-56ba67145a11.png",alt:"Autodesk",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/68e97d20-5cf2-4884-8722-8d7d433fd8c7.png",alt:"Snyk",className:"h-8 w-auto object-contain"})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-6 items-center opacity-60 mt-4",children:[s.jsx("img",{src:"/lovable-uploads/6d0258a8-cc2f-4466-8904-22e21995570f.png",alt:"Unity",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/65c046fb-abba-4cc7-845b-36017796823d.png",alt:"Dropbox",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/39be6071-9d4e-4e10-a62a-d308ce0d749a.png",alt:"Gong",className:"h-8 w-auto object-contain"}),s.jsx("img",{src:"/lovable-uploads/d35e62fa-9802-491b-937e-e6a5696fcb88.png",alt:"Cockroach Labs",className:"h-8 w-auto object-contain"})]})]})]}),s.jsx("div",{className:"lg:pl-8",children:s.jsx(yt,{className:"bg-gradient-to-br from-gray-50 to-blue-50 border-0 shadow-xl",children:s.jsxs(zt,{className:"p-8",children:[s.jsx("div",{className:"text-center mb-8",children:s.jsxs("h2",{className:"text-2xl font-semibold text-madkudu-neutral-900 mb-2",children:["x3 your sellers' output",s.jsx("br",{}),"by automating their",s.jsx("br",{}),"manual research"]})}),s.jsx("div",{id:"hubspot-demo-form",className:"hubspot-form-container"})]})})})]})})}),s.jsx("section",{className:"py-16 bg-gray-50",children:s.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsx("h2",{className:"text-3xl font-normal text-madkudu-neutral-900 mb-12 text-center",children:"Hear What Our Customers Have To Say...."}),s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:"flex items-center justify-center space-x-8",children:[s.jsx("button",{onClick:i,className:"p-3 rounded-full bg-white shadow-lg hover:shadow-xl transition-shadow",children:s.jsx(lH,{className:"w-6 h-6 text-madkudu-neutral-600"})}),s.jsx(yt,{className:"max-w-4xl bg-white shadow-lg",children:s.jsx(zt,{className:"p-12",children:s.jsxs("div",{className:"flex items-start space-x-8",children:[s.jsx("div",{className:"w-32 h-32 rounded-xl overflow-hidden bg-gray-100 flex-shrink-0",children:s.jsx("img",{src:n[t].image,alt:n[t].author,className:"w-full h-full object-cover"})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"flex items-center mb-6",children:s.jsx("img",{src:n[t].logo,alt:n[t].company,className:"h-8 w-auto object-contain"})}),s.jsxs("p",{className:"text-madkudu-neutral-700 leading-relaxed mb-6 text-lg",children:['"',n[t].quote,'"']}),s.jsxs("div",{children:[s.jsxs("p",{className:"font-semibold text-madkudu-neutral-900 text-base",children:["– ",n[t].author]}),s.jsx("p",{className:"text-madkudu-neutral-600 text-sm",children:n[t].title})]}),s.jsx("div",{className:"mt-6",children:s.jsx(Ee,{variant:"outline",className:"border-madkudu-blue-500 text-madkudu-blue-500 hover:bg-madkudu-blue-50",children:"Read our story"})})]})]})})}),s.jsx("button",{onClick:a,className:"p-3 rounded-full bg-white shadow-lg hover:shadow-xl transition-shadow",children:s.jsx(cH,{className:"w-6 h-6 text-madkudu-neutral-600"})})]}),s.jsx("div",{className:"flex justify-center mt-8 space-x-3",children:n.map((o,l)=>s.jsx("button",{onClick:()=>e(l),className:`w-3 h-3 rounded-full transition-colors ${l===t?"bg-madkudu-blue-500":"bg-gray-300"}`},l))})]})]})}),s.jsx(Qe,{})]})},pj=({children:t,onClick:e,href:r,className:n=""})=>{const a=Ft(),i=()=>{e?e():r?(a(r),window.scrollTo(0,0)):(a("/demo"),window.scrollTo(0,0))};return s.jsx("button",{onClick:i,className:`px-6 py-2.5 bg-[#6A5BFF] text-white text-sm font-medium rounded-full hover:bg-[#5A4BEF] transition-all duration-200 hover:shadow-lg ${n}`,children:t})},UA=({targetId:t,className:e=""})=>{const r=()=>{if(t){const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth",block:"start"})}};return s.jsx("button",{onClick:r,className:`p-2 rounded-full bg-white shadow-md hover:shadow-lg transition-all duration-300 hover:bg-gray-50 motion-safe:animate-bounce cursor-pointer ${e}`,style:{color:"rgba(27, 44, 79, 0.4)"},"aria-label":"Scroll to next section",children:s.jsx(nH,{className:"h-5 w-5"})})},sZ=()=>{b.useEffect(()=>{document.title="Signals & Integrations | MadKudu"},[]);const t=[{title:"Business",integrations:[{name:"Salesforce",description:"Connect Salesforce to use all signals from your CRM: who your prospects are and campaigns they respond to.",logo:"/lovable-uploads/1ee8cadc-94af-4a36-8439-19b555a42351.png"},{name:"HubSpot",description:"Connect HubSpot to use web & marketing signals: web visits, form submitted, emails opened, clicked…",logo:"/lovable-uploads/20b60601-fd76-4805-8753-4e41dd452379.png"},{name:"Marketo",description:"Connect Marketo to use web & marketing signals: web visits, form submitted, emails opened, clicked…",logo:"/lovable-uploads/60939f8f-cc63-4102-9a0c-d968383804c3.png"},{name:"Eloqua",description:"Connect Eloqua to use web & marketing signals: web visits, form submitted, emails opened, clicked…",logo:"/lovable-uploads/4a9022d6-d796-4255-bf30-96847ad2bd09.png"},{name:"Gong",description:"Streamline your sales workflow with MadKudu Copilot directly in Gong Engage",logo:"/lovable-uploads/271afa7c-c619-4ae8-b715-92d3eee1967d.png"},{name:"Outreach",description:"Streamline your sales workflow with MadKudu Copilot directly in Outreach",logo:"/lovable-uploads/845104b7-6b73-4003-8ca5-086ff3c81702.png"},{name:"Salesloft",description:"Add hot qualified prospects to Salesloft cadence in a click, close more deals faster",logo:"/lovable-uploads/f7585712-d27f-48e7-932b-fb3ffebafcf4.png"},{name:"Intercom",description:"Prioritize leads and visitors based on MadKudu scores in Intercom",logo:"/lovable-uploads/3c631929-5b27-4bf6-a7d6-f9038ab2c048.png"},{name:"6sense",description:"Translate 6sense dark funnel intent signals into actions with MadKudu",logo:"/lovable-uploads/0cca91c1-741c-4965-9cfa-d08c691dcbbf.png"},{name:"DemandBase",description:"Translate DemandBase dark funnel intent signals into actions with MadKudu",logo:"/lovable-uploads/d4caaf3c-8eb9-4f4e-bcf3-2e0b9bad67e7.png"},{name:"G2",description:"Connect G2 Buyer Intent signals to see who visits your page, compares your product, search for your category",logo:"/lovable-uploads/fe6ada84-0ba5-4849-b91b-937aa6e0ad8f.png"},{name:"Chili Piper",description:"Fastlane your qualified prospects to your Sales team with MadKudu x Chili Piper",logo:"/lovable-uploads/303e0ff3-451d-4b98-aae6-80cdfbdc2d96.png"},{name:"Google Ads",description:"Optimize your campaigns to advertise only to qualified prospects",logo:"/lovable-uploads/4cd1412a-dd5d-4f99-9861-d3cf6977e3c8.png"},{name:"Facebook Ads",description:"Optimize your campaigns to advertise only to qualified prospects",logo:"/lovable-uploads/8707c4e9-20bc-4bb7-abb3-5f17361dcbea.png"},{name:"Navattic",description:"Translate engagement signals from your Navattic demos into actions with MadKudu",logo:"/lovable-uploads/172635e7-bf5e-41b6-9a91-838f24519a72.png"},{name:"RB2B",description:"Identify the person-level identity of your anonymous website visitors and surface them to your sellers via MadKudu",logo:"/lovable-uploads/3e6290d5-f9a3-4d5a-a723-155b58148e32.png"}]},{title:"Product",integrations:[{name:"Bigquery",description:"Sync product data from your data warehouse",logo:"/lovable-uploads/dd44c50e-1ee0-4ab2-bac8-72a78f836792.png"},{name:"Snowflake",description:"Sync product and enrichment data from your data warehouse",logo:"/lovable-uploads/4ee493b8-35f7-40bf-8745-6c9ef1f04a94.png"},{name:"Amazon S3",description:"Sync any data to MadKudu",logo:"/lovable-uploads/6b30dae5-dc6f-4e74-a207-beb1fd7f83d6.png"},{name:"Mixpanel",description:"Connect Mixpanel to use product signals: users logging in, inviting others, taking key actions in your product",logo:"/lovable-uploads/42e0d3f0-974b-4e1d-a01e-91567352bc65.png"},{name:"Segment",description:"Connect Segment to use web & product signals: web visits, users logging in, inviting others, taking key actions in your product",logo:"/lovable-uploads/f9a7ffe2-c0bd-4b09-bdf0-eed712559c3c.png"},{name:"Amplitude",description:"Connect Amplitude to use product signals: users logging in, inviting others, taking key actions in your product",logo:"/lovable-uploads/bef5eea0-7eff-4677-9621-074dec4f4c60.png"}]},{title:"Enrichment",integrations:[{name:"Clay",description:"Score lists of leads and accounts directly in Clay",logo:"/lovable-uploads/70d99690-6e87-4fcb-983f-5f1e117d26f7.png"},{name:"ZoomInfo",description:"Source from ZoomInfo missing buyers in your account in one click",logo:"/lovable-uploads/ca42bd33-f9e4-4eb4-befd-d1bab31e608d.png"},{name:"Clearbit",description:"Get a complete view of your prospects and customers.",logo:"/lovable-uploads/9f0e25c3-f299-4739-8055-861141c95d63.png"},{name:"Apollo",description:"Source from Apollo missing buyers in your account in one click",logo:"/lovable-uploads/dfc454d2-43d6-491c-bc6c-9541ea5ebf42.png"},{name:"Cognism",description:"Source from Cognism missing buyers in your account in one click",logo:"/lovable-uploads/07b2021a-52f9-4bc9-a1fc-61d8d1b84800.png"},{name:"HG Insights",description:"MadKudu partners with HG Insights to provide tech installation signals. Identify companies using your competitors",logo:"/lovable-uploads/0270c1d4-be83-4db0-82d2-a217a251babb.png"},{name:"PredictLeads",description:"MadKudu partners with PredictLeads to provide job hiring signals. Identify companies hiring for roles key to your business",logo:"/lovable-uploads/8aa9b934-14b2-471d-946c-c36fa3317737.png"}]},{title:"Social & Community",integrations:[{name:"Slack",description:"Connect Slack to use community signals: people joining, sending message, reacting…",logo:"/lovable-uploads/da22456b-29d4-4d0f-93ad-e2418f0981c6.png"},{name:"GitHub",description:"Connect GitHub to use open source project engagement signals: users contributing to your projects, commenting, raising issues...",logo:"/lovable-uploads/cf6ae9de-8712-462f-bf80-7502ec8fe325.png"},{name:"LinkedIn",description:"Connect LinkedIn to use social signals: prospects following your page, reacting to your posts and posting on topics relevant to your business",logo:"/lovable-uploads/63137c70-677c-4d57-9e90-93ea49a6d8f5.png"}]},{title:"Custom",integrations:[{name:"MadKudu Chrome Extension",description:"Leverage MadKudu actionable intelligence where you work",logo:"/lovable-uploads/f53f46c4-ff77-419e-9b26-ba9dbcc6c5da.png"},{name:"Zapier",description:"Automate workflows with Zapier + MadKudu",logo:"/lovable-uploads/25d494db-7898-4687-bbb8-e5b21c726f64.png"},{name:"Webhook",description:"Send notifications from MadKudu Copilot to your communication channels",logo:"/lovable-uploads/6fb16de1-956d-4f39-9e93-f6f1819670cd.png"},{name:"Google Sheets",description:"Score lists of leads and accounts directly in Google Sheets",logo:"/lovable-uploads/5c128fa0-47dc-4874-9555-9cbc285d3e32.png"},{name:"API",description:"Use MadKudu API to score attendee lists, enrich leads, personalize forms...",logo:"/lovable-uploads/6f09ed86-bce6-4204-9b41-de3d8e7c9786.png"}]}];return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-madkudu-blue-50/30 to-white",children:[s.jsx(Me,{}),s.jsxs("section",{className:"pt-32 pb-10 bg-white relative overflow-hidden",children:[s.jsx("div",{className:"absolute bottom-0 left-1/2 transform -translate-x-1/2 w-full h-2/3",style:{background:"radial-gradient(ellipse 70% 50% at 50% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 70%)"}}),s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("p",{className:"text-[#1B2C4F] text-sm font-medium uppercase tracking-wider",children:"Integrations"}),s.jsx("h1",{className:"text-4xl font-normal relative",style:{lineHeight:"1.6",color:"#1B2C4F"},children:s.jsxs("span",{className:"relative z-10",children:["Bring ",s.jsx("span",{className:"text-[#1B2C4F] font-semibold",children:"All Your Data Into One Place"}),s.jsx("br",{}),"And Turn On Signal-Based Selling",s.jsx("br",{}),"For Your Reps"]})}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed relative z-10",children:"Plug in CRM, MAP, warehouse and intent feeds—no code, no duplicates."})]}),s.jsx("div",{className:"relative z-10",children:s.jsx(pj,{children:"See connectors"})})]}),s.jsx("div",{className:"relative z-10",children:s.jsx("div",{className:"bg-white rounded-lg shadow-2xl p-8",children:s.jsx("img",{src:"/lovable-uploads/ad436d5f-ae6c-4606-9d0c-c0d815f86ab3.png",alt:"Various data sources and integrations",className:"w-full h-auto rounded-lg"})})})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2 z-20",children:s.jsx(UA,{targetId:"integrations-section"})})]}),s.jsx("section",{id:"integrations-section",className:"py-16 bg-gray-50/50",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsxs("div",{className:"flex items-center justify-center mb-6",children:[s.jsx("div",{className:"w-1.5 h-12 bg-[#1B2C4F] mr-4"}),s.jsx("h2",{className:"font-poppins font-normal text-[#1B2C4F] text-3xl",children:"Turn on signal-based selling"})]})}),s.jsx("div",{className:"space-y-12",children:t.map((e,r)=>s.jsxs("div",{children:[s.jsxs("h3",{className:"text-2xl font-semibold text-[#1B2C4F] mb-6 text-center flex items-center justify-center",children:[s.jsx("span",{className:"w-2 h-2 bg-[#1B2C4F] rounded-full mr-3"}),e.title]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.integrations.map((n,a)=>s.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg hover:shadow-xl transition-shadow duration-300 flex flex-col h-full border border-gray-100 hover:border-[#1B2C4F]/20",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-white rounded-lg flex items-center justify-center mr-4 shadow-sm",children:n.logo.startsWith("/")?s.jsx("img",{src:n.logo,alt:n.name,className:"w-8 h-8 object-contain"}):s.jsx("span",{className:"text-2xl",children:n.logo})}),s.jsx("h4",{className:"text-xl font-semibold text-[#1B2C4F] font-poppins",children:n.name})]}),s.jsx("p",{className:"text-gray-600 text-base leading-relaxed flex-grow",children:n.description})]},a))})]},r))})]})}),s.jsx(Qe,{})]})},aZ=()=>(b.useState(!1),b.useEffect(()=>{document.title="Intelligence | MadKudu"},[]),s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsxs("section",{className:"h-screen relative overflow-hidden flex items-center justify-center",style:{backgroundColor:"#1B2C4F"},children:[s.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 80% 60% at 50% 50%, rgba(106, 91, 255, 0.12) 0%, transparent 70%)"}}),s.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("h1",{className:"text-6xl lg:text-7xl font-bold leading-tight text-white",children:["Automate",s.jsx("br",{}),"Account Research"]}),s.jsx("p",{className:"text-2xl text-white/90 leading-relaxed max-w-2xl mx-auto",children:"Instant research, zero tab-hopping."})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx(pj,{children:"Explore a brief"})})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:s.jsx(UA,{targetId:"how-it-works-section"})})]}),s.jsxs("section",{id:"how-it-works-section",className:"min-h-screen flex items-center relative",style:{backgroundColor:"rgba(255, 182, 193, 0.15)"},children:[s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"font-poppins font-bold text-[#182B52] mb-6",style:{fontSize:"36px",lineHeight:"1.2"},children:"Help Sellers Build A POV"}),s.jsxs("p",{className:"text-gray-700 text-xl leading-relaxed",children:["Automate the research of your accounts using internal and external data so sellers can focus on ",s.jsx("strong",{children:"the why, why now, why you"})," of the product you sell."]})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{alt:"Account research interface showing detailed prospect information for Snyk",className:"w-full max-w-md h-auto",src:"/lovable-uploads/c3941dae-46a4-4341-8b40-6d8eb71c825c.png"})})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:s.jsx(UA,{targetId:"prioritize-section"})})]}),s.jsxs("section",{id:"prioritize-section",className:"min-h-screen flex items-center relative",style:{backgroundColor:"rgba(255, 154, 82, 0.15)"},children:[s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"order-2 lg:order-1 flex justify-center",children:s.jsx("img",{alt:"Account prioritization interface showing engaged accounts",className:"w-full max-w-md h-auto",src:"/lovable-uploads/36ca0acd-1786-42f3-a8da-0cd9c267bc17.png"})}),s.jsxs("div",{className:"order-1 lg:order-2",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#182B52] mb-6",style:{fontSize:"36px",lineHeight:"1.2"},children:"Prioritize Your Most Engaged Accounts"}),s.jsx("p",{className:"text-gray-700 text-xl leading-relaxed",children:"What's the signal received in engaging an account? Based on every signal."})]})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:s.jsx(UA,{targetId:"reach-person-section"})})]}),s.jsxs("section",{id:"reach-person-section",className:"min-h-screen flex items-center relative",style:{backgroundColor:"rgba(78, 205, 196, 0.15)"},children:[s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"font-poppins font-bold text-[#182B52] mb-6",style:{fontSize:"36px",lineHeight:"1.2"},children:"Reach The Right Person Faster"}),s.jsx("p",{className:"text-gray-700 text-xl leading-relaxed",children:"Find the people most likely to respond in an account based on their persona and their activities, even if they are not in your CRM."})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{alt:"Contact identification interface showing potential contacts at target accounts",className:"w-full max-w-md h-auto",src:"/lovable-uploads/a96654a0-636c-4f8e-a7b3-aab735860459.png"})})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:s.jsx(UA,{targetId:"craft-messages-section"})})]}),s.jsxs("section",{id:"craft-messages-section",className:"min-h-screen flex items-center relative",style:{backgroundColor:"rgba(59, 130, 246, 0.15)"},children:[s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"order-2 lg:order-1 flex justify-center",children:s.jsx("img",{alt:"Message crafting interface showing personalized outreach",className:"w-full max-w-md h-auto",src:"/lovable-uploads/045b39e1-d842-4898-b1e7-0bbc0a5b8d36.png"})}),s.jsxs("div",{className:"order-1 lg:order-2",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#182B52] mb-6",style:{fontSize:"36px",lineHeight:"1.2"},children:"Craft Messages That Get Responses"}),s.jsx("p",{className:"text-gray-700 text-xl leading-relaxed",children:"Equip your sellers armed up - the reched signals in smart messaging that show you know your prospects and why they should invest."})]})]})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",children:s.jsx(UA,{targetId:"top-seller-section"})})]}),s.jsx("section",{id:"top-seller-section",className:"py-20 bg-gray-50",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsx("div",{className:"text-center mb-16",children:s.jsxs("h2",{className:"font-poppins font-bold text-[#182B52] mb-5",style:{fontSize:"33px",lineHeight:"1.2"},children:["Turn Every Rep",s.jsx("br",{}),"Into A Top Seller"]})}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"bg-gradient-to-br from-blue-500 to-blue-600 rounded-lg p-8 text-white transition-transform duration-300 hover:scale-105 hover:shadow-xl",children:[s.jsx("div",{className:"mb-6",children:s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/709aeceb-dbeb-42dd-9764-b9bc956ce0e8.png",alt:"Lucidchart",className:"h-8 w-auto"})})}),s.jsx("blockquote",{className:"text-sm leading-relaxed mb-6",children:'"Seeing the power users and activity levels has been a game changer. MadKudu identifies power users that would have flown under the radar"'}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:s.jsx("img",{src:"/lovable-uploads/6841eb0f-52d3-48cf-9d9a-4e835e027c03.png",alt:"Sheri P.",className:"w-full h-full object-cover"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Flor M."}),s.jsx("div",{className:"text-sm text-blue-100",children:"Business Development Representative"})]})]})]}),s.jsxs("div",{className:"bg-gradient-to-br from-slate-800 to-slate-900 rounded-lg p-8 text-white transition-transform duration-300 hover:scale-105 hover:shadow-xl",children:[s.jsx("div",{className:"mb-6",children:s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/ed6b4a34-489c-4576-b3af-835bc0c425cf.png",alt:"OutSystems",className:"h-8 w-auto"})})}),s.jsx("blockquote",{className:"text-sm leading-relaxed mb-6",children:`"With MadKudu I get a daily email summarizing where there's buyers intent. That is so helpful for me because I'm like, wow, I didn't even think to go after this account, but now I know where to spend my time"`}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:s.jsx("img",{src:"/lovable-uploads/2b7cee9e-3428-4db5-bec2-9ef742ec8d0b.png",alt:"Melissa A.",className:"w-full h-full object-cover"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Melissa A."}),s.jsx("div",{className:"text-sm text-slate-300",children:"SDR Manager"})]})]})]}),s.jsxs("div",{className:"bg-gradient-to-br from-slate-300 to-slate-400 rounded-lg p-8 text-slate-800 transition-transform duration-300 hover:scale-105 hover:shadow-xl",children:[s.jsx("div",{className:"mb-6",children:s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/709aeceb-dbeb-42dd-9764-b9bc956ce0e8.png",alt:"Lucidchart",className:"h-8 w-auto"})})}),s.jsx("blockquote",{className:"text-sm leading-relaxed mb-6",children:'"I am more prepared for calls and as a result end up getting better results. I tripled my quota thanks to MadKudu insights!"'}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:s.jsx("img",{src:"/lovable-uploads/9253591b-b97f-4356-a0c2-6a4d2931c75c.png",alt:"Flor M.",className:"w-full h-full object-cover"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"Sherry P."}),s.jsx("div",{className:"text-sm text-slate-600",children:"Business Development Representative"})]})]})]})]})]})}),s.jsx("section",{className:"py-20 bg-[#1B2C4F] rounded-2xl mx-4 sm:mx-6 lg:mx-8 mb-8",children:s.jsx("div",{className:"max-w-6xl mx-auto px-8 sm:px-12 lg:px-16",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[s.jsx("div",{className:"flex-1",children:s.jsx("h2",{className:"font-poppins font-normal text-white text-3xl lg:text-4xl",children:"Your sellers deserve superpowers"})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(pj,{children:"Book a demo to see it in action"})})]})})}),s.jsx(Qe,{})]})),iZ=()=>{b.useEffect(()=>{document.title="Marketing Insights & Analytics | Turn Data Into Revenue | MadKudu";const r=document.querySelector('meta[name="description"]');if(r)r.setAttribute("content","Transform your marketing data into actionable insights with MadKudu. Get real-time analytics, budget allocation insights, and performance measurement tools to drive revenue growth.");else{const o=document.createElement("meta");o.name="description",o.content="Transform your marketing data into actionable insights with MadKudu. Get real-time analytics, budget allocation insights, and performance measurement tools to drive revenue growth.",document.head.appendChild(o)}const n=document.querySelector('meta[name="keywords"]');if(n)n.setAttribute("content","marketing insights, data analytics, revenue optimization, marketing performance, budget allocation, sales alignment, marketing ROI");else{const o=document.createElement("meta");o.name="keywords",o.content="marketing insights, data analytics, revenue optimization, marketing performance, budget allocation, sales alignment, marketing ROI",document.head.appendChild(o)}const a=document.querySelector('meta[property="og:title"]');if(a)a.setAttribute("content","Marketing Insights & Analytics | Turn Data Into Revenue");else{const o=document.createElement("meta");o.setAttribute("property","og:title"),o.content="Marketing Insights & Analytics | Turn Data Into Revenue",document.head.appendChild(o)}const i=document.querySelector('meta[property="og:description"]');if(i)i.setAttribute("content","Transform your marketing data into actionable insights with MadKudu real-time analytics and performance measurement tools.");else{const o=document.createElement("meta");o.setAttribute("property","og:description"),o.content="Transform your marketing data into actionable insights with MadKudu real-time analytics and performance measurement tools.",document.head.appendChild(o)}},[]);const t=[{icon:s.jsx(mH,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Budget Allocation",description:"Decide what you should spend money and time wisely when you truly 3D visualize your marketing funds from one program to another"},{icon:s.jsx(oH,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Marketing Performance Measurement",description:"Measure what matters without the hassle of hundreds of spreadsheets or disparate tools and improve the efficiency and performance of your efforts"},{icon:s.jsx(bH,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Sales And Marketing Alignment",description:"Unite on a common definition of success and find two-way accountability with your friends over in Sales so you can finally work better together"}],e=[{question:"Am I Going To Hit My Quarterly Revenue Target?",image:"/lovable-uploads/4798fefc-74d7-4ed5-b5a2-f9853eb526f7.png"},{question:"Is That New Channel Going To Be Successful?",image:"/lovable-uploads/436a539c-c33f-4cd0-b26e-fba01be656e7.png"},{question:"What Is My REAL ICP?",image:"/lovable-uploads/c9ae1b15-20c3-4ffc-a0eb-0fb4f852fe8a.png"},{question:"When Have I Saturated A Particular Marketing Channel?",image:"/lovable-uploads/1ddcb593-af9b-44fb-b157-4691fdb2651d.png"}];return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Me,{}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebPage",name:"Marketing Insights & Analytics",description:"Transform your marketing data into actionable insights with real-time analytics and performance measurement tools",url:"https://madkudu.com/insights",publisher:{"@type":"Organization",name:"MadKudu",url:"https://madkudu.com"},mainEntity:{"@type":"Service",name:"Marketing Insights Platform",description:"Data-driven marketing insights and analytics platform"}})}),s.jsxs("main",{className:"flex-1",children:[s.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"text-center lg:text-left",children:[s.jsx("h1",{className:"font-poppins font-bold text-[#1B2C4F] text-4xl md:text-6xl mb-6 tracking-tight",children:"Turn Data Into Revenue"}),s.jsx("p",{className:"text-xl text-gray-600 mb-8 max-w-lg mx-auto lg:mx-0",children:"Use MadKudu's intelligent insights and reporting to make decisions based on real-time data, anticipate necessary changes to your marketing strategy, and ensure no revenue is left on the table."}),s.jsx(kt,{to:"/demo",className:"bg-[#1B2C4F] text-white px-8 py-3 rounded-xl font-medium hover:bg-[#2A3B5F] transition-colors inline-block",children:"Get Started"})]}),s.jsx("div",{className:"relative",children:s.jsx("div",{className:"w-full max-w-2xl mx-auto lg:mx-0",children:s.jsx("img",{alt:"Data analytics dashboard",className:"w-full h-auto object-contain rounded-xl shadow-lg",src:"/lovable-uploads/9068f40f-5448-4bfd-a48b-0f65ccb8fe96.png"})})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#1B2C4F] text-3xl md:text-4xl mb-4",children:"Make Data Your Secret Weapon"}),s.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"Empower your team to make critical decisions and assess the impact of marketing on your business."})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((r,n)=>s.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg hover:shadow-xl transition-shadow duration-300 text-center",children:[s.jsx("div",{className:"flex justify-center mb-6",children:r.icon}),s.jsx("h3",{className:"font-poppins font-bold text-xl text-[#1B2C4F] mb-4",children:r.title}),s.jsx("p",{className:"text-gray-600 leading-relaxed",children:r.description})]},n))})]})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#1B2C4F] text-3xl md:text-4xl mb-6",children:"Answers To Marketing's Burning Questions"}),s.jsx("p",{className:"text-lg text-gray-600 max-w-4xl mx-auto leading-relaxed",children:"Marketing teams have grown in sophistication and are hungry for insights to help their decision-making process. But, knowing how to extract the relevant information to answer the burning questions at every level of the marketing organization can be a costly and time-consuming endeavor without the right tools and expertise. MadKudu makes it easy and straightforward and provides the answers to the most frequently asked questions."})]}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map((r,n)=>s.jsx("div",{className:"bg-white rounded-xl p-8 shadow-lg hover:shadow-xl transition-shadow duration-300",children:s.jsxs("div",{className:"space-y-6",children:[s.jsx("h3",{className:"font-poppins font-bold text-xl text-[#1B2C4F] text-center",children:r.question}),s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:r.image,alt:`Visualization for ${r.question}`,className:"max-w-full h-auto object-contain rounded-lg shadow-sm max-h-64"})})]})},n))})]})}),s.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-[#1B2C4F]",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsx("h2",{className:"font-poppins font-bold text-white text-3xl mb-6",children:"Ready to Turn Your Data Into Revenue?"}),s.jsx("p",{className:"text-xl text-blue-100 mb-8",children:"Start making data-driven decisions that drive real business results."}),s.jsx(kt,{to:"/demo",className:"bg-white text-[#1B2C4F] px-8 py-3 rounded-xl font-medium hover:bg-gray-100 transition-colors inline-block",children:"Get Started Today"})]})})]}),s.jsx(Qe,{})]})},oZ=()=>{b.useEffect(()=>{document.title="Value-Based Automation | Customize Every Interaction Based On Lead Value | MadKudu";const e=document.querySelector('meta[name="description"]');if(e)e.setAttribute("content","Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey, optimize for your best fit leads, and drive revenue with less effort.");else{const i=document.createElement("meta");i.name="description",i.content="Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey, optimize for your best fit leads, and drive revenue with less effort.",document.head.appendChild(i)}const r=document.querySelector('meta[name="keywords"]');if(r)r.setAttribute("content","value-based automation, lead scoring, predictive scoring, sales automation, marketing automation, lead qualification, buyer journey optimization");else{const i=document.createElement("meta");i.name="keywords",i.content="value-based automation, lead scoring, predictive scoring, sales automation, marketing automation, lead qualification, buyer journey optimization",document.head.appendChild(i)}const n=document.querySelector('meta[property="og:title"]');if(n)n.setAttribute("content","Value-Based Automation | Customize Every Interaction Based On Lead Value");else{const i=document.createElement("meta");i.setAttribute("property","og:title"),i.content="Value-Based Automation | Customize Every Interaction Based On Lead Value",document.head.appendChild(i)}const a=document.querySelector('meta[property="og:description"]');if(a)a.setAttribute("content","Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey and drive revenue with less effort.");else{const i=document.createElement("meta");i.setAttribute("property","og:description"),i.content="Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey and drive revenue with less effort.",document.head.appendChild(i)}},[]);const t=[{icon:s.jsx(tv,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Personalize The Entire Funnel",description:"MadKudu data values can be leveraged in any element of marketing—making it easy to customize the buyer journey across the entire funnel."},{icon:s.jsx(_H,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Drive Down CAC",description:"When you know the expected revenue contribution of every lead, you can ground your investments on which customers to drive conversion and acquire new customers."},{icon:s.jsx(p4,{size:48,strokeWidth:1.5,className:"text-[#1B2C4F]"}),title:"Real-Time Updates",description:"With real-time intent data constantly changing, MadKudu's models continuously optimize, predict and update ensuring you can rest assured that the data you're leveraging is accurate."}];return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Me,{}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebPage",name:"Value-Based Automation",description:"Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey, optimize for your best fit leads, and drive revenue with less effort",url:"https://madkudu.com/value-based-automation",publisher:{"@type":"Organization",name:"MadKudu",url:"https://madkudu.com"},mainEntity:{"@type":"Service",name:"Value-Based Automation Platform",description:"Predictive lead scoring and revenue optimization platform"}})}),s.jsxs("main",{className:"flex-1",children:[s.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"text-center lg:text-left",children:[s.jsx("div",{className:"text-sm font-medium text-blue-600 bg-blue-50 px-3 py-1 rounded-full inline-block mb-4",children:"Value Based Optimization"}),s.jsx("h1",{className:"font-poppins font-bold text-[#1B2C4F] text-4xl md:text-6xl mb-6 tracking-tight",children:"Customize Every Interaction Based On Lead Value"}),s.jsx("p",{className:"text-xl text-gray-600 mb-8 max-w-lg mx-auto lg:mx-0",children:"Use MadKudu's predictive lead score and expected revenue value to customize the buyer journey, optimize for your best fit leads, and drive revenue with less effort."}),s.jsx(kt,{to:"/demo",className:"bg-[#1B2C4F] text-white px-8 py-3 rounded-xl font-medium hover:bg-[#2A3B5F] transition-colors inline-block",children:"Get Started"})]}),s.jsx("div",{className:"relative",children:s.jsx("div",{className:"w-full max-w-2xl mx-auto lg:mx-0",children:s.jsx("img",{alt:"Lead scoring and value optimization visualization",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/6cd587f2-361b-455e-9cbe-2aec9d398ac1.png"})})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#1B2C4F] text-3xl md:text-4xl mb-6",children:"Optimize Every Marketing Channel With Ease"}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"Put your predictive model to work by setting up workflows to customize and automate the entire funnel for maximum engagement. MadKudu makes your data values accessible in any platform, meaning you're able to incorporate it into your workflows however you'd like. The possibilities are endless!"})]})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-blue-600 bg-blue-50 px-3 py-1 rounded-full inline-block mb-4",children:"Lead scoring / sales"}),s.jsx("h3",{className:"font-poppins font-bold text-[#1B2C4F] text-2xl md:text-3xl mb-4",children:"Automate the sales channel and prioritization."}),s.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"Streamline your sales process by automatically routing high-value leads to your best sales reps and prioritizing outreach based on predictive scoring."})]}),s.jsx("div",{className:"relative",children:s.jsx("img",{alt:"Sales lead prioritization with expected revenue values",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/7fd5ff8c-6575-459b-b142-e07851468d69.png"})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"relative order-2 lg:order-1",children:s.jsx("div",{className:"w-full max-w-2xl mx-auto lg:mx-0",children:s.jsx("img",{alt:"Fastlane popup for qualified website visitors",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/6a678665-9a73-4b13-bf90-1de7d3bc353b.png"})})}),s.jsxs("div",{className:"order-1 lg:order-2",children:[s.jsx("h3",{className:"font-poppins font-bold text-[#1B2C4F] text-2xl md:text-3xl mb-4",children:"Fastlane Qualified Website Visitors"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Qualify visitors in real-time and let those that meet your criteria book a meeting directly with your sales team."})]})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-blue-600 bg-blue-50 px-3 py-1 rounded-full inline-block mb-4",children:"CTAs"}),s.jsx("h3",{className:"font-poppins font-bold text-[#1B2C4F] text-2xl md:text-3xl mb-4",children:"Personalize The Website Experience"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Give every website visitor a personalized journey that improves the buyer experience - for your target accounts and qualified traffic."})]}),s.jsx("div",{className:"relative",children:s.jsx("img",{src:"/lovable-uploads/084a7272-56ad-4f9c-ac86-87dc69fd2829.png",alt:"Website personalization with MadKudu integration",className:"w-full h-auto rounded-xl"})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"relative order-2 lg:order-1",children:s.jsx("img",{src:"/lovable-uploads/3d1a948c-355b-4dab-9a20-c9d5eeadd102.png",alt:"Ad spend optimization showing lead value filtering",className:"w-full h-auto rounded-xl"})}),s.jsxs("div",{className:"order-1 lg:order-2",children:[s.jsx("div",{className:"text-sm font-medium text-blue-600 bg-blue-50 px-3 py-1 rounded-full inline-block mb-4",children:"Madspend"}),s.jsx("h3",{className:"font-poppins font-bold text-[#1B2C4F] text-2xl md:text-3xl mb-4",children:"Optimize The Spend On Digital Ads"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Reduce the cost of conversions by only spending ad dollars on leads who are most likely to buy instead of low value clicks."})]})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-poppins font-bold text-[#1B2C4F] text-2xl md:text-3xl mb-4",children:"Segment And Retarget Only Qualified Traffic"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Increase retargeting click-through rate by building highly-qualified retargeting lists and didn't convert the first time."})]}),s.jsx("div",{className:"relative",children:s.jsx("img",{alt:"Fastlane retargeting popup for qualified visitors",className:"h-auto rounded-xl",src:"/lovable-uploads/71c84a3a-0184-4e18-bbb3-204f433522a7.png"})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"font-poppins font-bold text-[#1B2C4F] text-3xl md:text-4xl mb-4",children:"MadKudu's Value-Based Automation Capabilities"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Developed To Accelerate Growth"})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((e,r)=>s.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-lg hover:shadow-xl transition-shadow duration-300 text-center",children:[s.jsx("div",{className:"flex justify-center mb-6",children:e.icon}),s.jsx("h3",{className:"font-poppins font-bold text-xl text-[#1B2C4F] mb-4",children:e.title}),s.jsx("p",{className:"text-gray-600 leading-relaxed",children:e.description})]},r))})]})}),s.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 bg-[#1B2C4F]",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsx("h2",{className:"font-poppins font-bold text-white text-3xl mb-6",children:"Ready to Optimize Your Marketing Automation?"}),s.jsx("p",{className:"text-xl text-blue-100 mb-8",children:"Start customizing every interaction based on lead value and drive more revenue."}),s.jsx(kt,{to:"/demo",className:"bg-white text-[#1B2C4F] px-8 py-3 rounded-xl font-medium hover:bg-gray-100 transition-colors inline-block",children:"Get Started Today"})]})})]}),s.jsx(Qe,{})]})},lZ=()=>{const t=Ft();b.useEffect(()=>{document.title="Sales Playbooks | MadKudu"},[]);const[e,r]=b.useState([]),[n,a]=b.useState(!1);b.useEffect(()=>{const m=localStorage.getItem("madkudu_selectedGTMMotions"),g=localStorage.getItem("madkudu_showPlaybooks");if(m)try{const p=JSON.parse(m);r(p)}catch(p){console.error("Error parsing saved filters:",p)}g==="true"&&a(!0)},[]);const i=[{category:"PLG",title:"Intent on LinkedIn",icon:s.jsx(x4,{className:"w-8 h-8 text-blue-600"}),description:"Engage with Contacts creating or engaging on relevant LinkedIn posts",tags:["PLG","Inbound"],link:null},{category:"ABM",title:"Cross-sell",icon:"🛍️",description:"Identify highly engaged customers that could benefit from other product lines and have shown interest towards those",tags:["PLG"],link:null},{category:"Inbound",title:"Ask for a G2 review",icon:"🏆",description:"Ask your most engaged customers for a review",tags:["PLG"],link:null},{category:"Clear",title:"Feature connected to enterprise plan",icon:"💼",description:"Reach out when a user is using a feature that's a leading indicator of an Enterprise use case",tags:["PLG"],link:null},{category:"Clear",title:"Spike in user engagement",icon:"📈",description:"Engage on accounts when there are 5+ user sign-ups in less than a week",tags:["PLG"],link:null},{category:"Clear",title:"Product sign-ups multi-threading",icon:"👥",description:"Find and engage the buyer when a user signs up",tags:["PLG"],link:null},{category:"Clear",title:"Approaching limit of plan",icon:"⚠️",description:"Reach out to users when 80% of seats or credits are used to discuss the benefits of a bigger plan",tags:["PLG"],link:null},{category:"Clear",title:"Hit a plan limit",icon:"💳",description:"Follow up immediately with users who have hit a paywall",tags:["PLG"],link:null},{category:"Clear",title:"Tier 1 product sign-ups",icon:"💎",description:"Send a personalized note for new signups from your top accounts",tags:["PLG"],link:null},{category:"Clear",title:"3rd-party topic intent",icon:"🎯",description:"Add and contact relevant personas from Accounts with 3rd party intent",tags:["PLG"],link:null},{category:"ABM",title:"LinkedIn competitor engagement",icon:"🔗",description:"Engage with Contacts commenting your Competitors LinkedIn posts",tags:["ABM"],link:null},{category:"ABM",title:"10k filings",icon:"📊",description:"Personalize your outreach by mentioning the strategic priorities mentioned in 10k filings",tags:["ABM"],link:null},{category:"Inbound",title:"Big news",icon:"📰",description:"Reach out to companies when they announced a big round or a new product launch",tags:["ABM"],link:null},{category:"ABM",title:"Anonymous website visits",icon:"🕵️",description:"Add and contact relevant personas from Accounts visiting your site anonymously",tags:["ABM","Inbound"],link:null},{category:"ABM",title:"Hiring relevant roles",icon:"👔",description:"Go after accounts looking for roles that indicates a need for your solution",tags:["ABM"],link:"/playbooks/hire-a-relevant-role"},{category:"Inbound",title:"Job change monitoring",icon:"👋",description:"Engage with former employees/customers who have moved to a different company",tags:["ABM"],link:null},{category:"ABM",title:"Multi-thread with engaged accounts",icon:"🔄",description:"Personalized outreach to relevant personas at Accounts that engage with Content or Website",tags:["Inbound","PLG"],link:null},{category:"ABM",title:"Enterprise Consolidation",icon:"📋",description:"Find and engage the buyer on an account to offer an upsell the workloads serviced by multiple users",tags:["PLG"],link:null},{category:"ABM",title:"Rip & Replace",icon:"🔄",description:"Identify prospects currently using your competitors and reach out to explain why it makes sense to switch to your solution",tags:["ABM"],link:"/playbooks/rip-and-replace"},{category:"ABM",title:"Use a Complementary Product",icon:"🔗",description:"Explain how your prospect can get more value from their existing stack with your solution",tags:["ABM"],link:"/playbooks/use-complementary-product"}],o=m=>{switch(m){case"PLG":return"bg-blue-100 text-blue-800";case"ABM":return"bg-green-100 text-green-800";case"Inbound":return"bg-purple-100 text-purple-800";case"Clear":return"bg-orange-100 text-orange-800";default:return"bg-gray-100 text-gray-800"}},l=()=>e.length===0?i:i.filter(m=>m.tags.some(g=>e.includes(g))),c=m=>i.filter(g=>g.tags.includes(m)).length,d=m=>{if(m==="Clear"){const p=[];r(p),a(!1),localStorage.setItem("madkudu_selectedGTMMotions",JSON.stringify(p)),localStorage.setItem("madkudu_showPlaybooks","false");return}const g=e.includes(m)?e.filter(p=>p!==m):[...e,m];r(g),localStorage.setItem("madkudu_selectedGTMMotions",JSON.stringify(g))},A=m=>e.includes(m),u=m=>{m.link&&t(m.link)},h=()=>{a(!0),localStorage.setItem("madkudu_showPlaybooks","true"),setTimeout(()=>{const m=document.getElementById("recommended-playbooks-section");m&&m.scrollIntoView({behavior:"smooth"})},100)};return s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-32 pb-12 bg-gradient-to-br from-madkudu-blue-50 to-madkudu-blue-100 relative overflow-hidden",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"mb-4",children:s.jsx("span",{className:"text-sm font-medium text-[#FF7A45] uppercase tracking-wide",children:"Playbooks"})}),s.jsxs("h1",{className:"text-4xl lg:text-5xl font-normal leading-tight mb-6",style:{color:"#1B2C4F"},children:["Power Your Sellers",s.jsx("br",{}),"With Signal-Based",s.jsx("br",{}),"Playbooks"]}),s.jsx("p",{className:"text-lg text-gray-600 leading-relaxed mb-8",children:"Make it easy for every seller to execute the sales plays everyone should be doing, because they work."})]}),s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"absolute inset-0 rounded-lg bg-gradient-to-br from-blue-50 to-indigo-100 shadow-lg"}),s.jsx("img",{src:"/lovable-uploads/bb3045fa-603a-4533-8992-ac6e3834db68.png",alt:"Cockroach Labs testimonial about MadKudu Playbooks",className:"w-full h-auto rounded-lg relative z-10"})]})]})})}),s.jsx("section",{id:"filters-section",className:"py-16 bg-gradient-to-br from-madkudu-blue-50 to-madkudu-blue-100",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-3xl font-bold text-[#1B2C4F] mb-4",children:"What's Your Sales Motion?"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Tell us how you sell, and we'll show you the playbooks that work best"})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-8",children:[s.jsxs("div",{className:`rounded-xl p-6 border-2 transition-all duration-200 ${A("PLG")?"border-[#FF7A45] bg-[#FF7A45]/5 shadow-md":"border-gray-200 bg-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-2xl",children:"🚀"})}),s.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${A("PLG")?"bg-[#FF7A45] text-white":"bg-gray-100 text-gray-600"}`,children:[c("PLG")," playbooks"]})]}),s.jsx("h3",{className:"text-xl font-semibold text-[#1B2C4F] mb-2",children:"Product-Led Growth"}),s.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:"Leverage product usage signals to identify expansion opportunities and engage power users at the right moment."}),s.jsx("button",{onClick:()=>d("PLG"),className:`w-full py-2 px-4 rounded-lg font-medium transition-colors ${A("PLG")?"bg-[#FF7A45] text-white hover:bg-[#E6693D]":"bg-blue-500 text-white hover:bg-blue-600"}`,children:A("PLG")?"Selected":"Select"})]}),s.jsxs("div",{className:`rounded-xl p-6 border-2 transition-all duration-200 ${A("ABM")?"border-[#FF7A45] bg-[#FF7A45]/5 shadow-md":"border-gray-200 bg-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-2xl",children:"🎯"})}),s.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${A("ABM")?"bg-[#FF7A45] text-white":"bg-gray-100 text-gray-600"}`,children:[c("ABM")," playbooks"]})]}),s.jsx("h3",{className:"text-xl font-semibold text-[#1B2C4F] mb-2",children:"Account-Based Marketing"}),s.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:"Target high-value accounts with personalized outreach based on firmographic data and strategic signals."}),s.jsx("button",{onClick:()=>d("ABM"),className:`w-full py-2 px-4 rounded-lg font-medium transition-colors ${A("ABM")?"bg-[#FF7A45] text-white hover:bg-[#E6693D]":"bg-green-500 text-white hover:bg-green-600"}`,children:A("ABM")?"Selected":"Select"})]}),s.jsxs("div",{className:`rounded-xl p-6 border-2 transition-all duration-200 ${A("Inbound")?"border-[#FF7A45] bg-[#FF7A45]/5 shadow-md":"border-gray-200 bg-white"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-2xl",children:"📈"})}),s.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${A("Inbound")?"bg-[#FF7A45] text-white":"bg-gray-100 text-gray-600"}`,children:[c("Inbound")," playbooks"]})]}),s.jsx("h3",{className:"text-xl font-semibold text-[#1B2C4F] mb-2",children:"Inbound Marketing"}),s.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:"Convert website visitors and content engagement into qualified leads through strategic follow-up sequences."}),s.jsx("button",{onClick:()=>d("Inbound"),className:`w-full py-2 px-4 rounded-lg font-medium transition-colors ${A("Inbound")?"bg-[#FF7A45] text-white hover:bg-[#E6693D]":"bg-purple-500 text-white hover:bg-purple-600"}`,children:A("Inbound")?"Selected":"Select"})]})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("button",{onClick:h,className:`px-8 py-3 rounded-lg font-medium transition-colors shadow-sm ${e.length>0?"bg-[#FF7A45] text-white hover:bg-[#E6693D]":"bg-gray-100 text-gray-400 cursor-not-allowed"}`,disabled:e.length===0,children:"Show me Recommended Prospecting Playbooks"})})]})}),n&&s.jsxs(s.Fragment,{children:[s.jsx("section",{id:"recommended-playbooks-section",className:"py-8 bg-gradient-to-r from-gray-50 to-white border-b border-gray-100",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"text-center",children:s.jsxs("h2",{className:"text-3xl font-bold text-[#1B2C4F] mb-4",children:["Review the recommended playbooks",s.jsx("br",{}),"for your motions"]})})})}),s.jsx("section",{className:"py-16 bg-gray-50",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:l().map((m,g)=>s.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow border border-gray-100 hover:border-[#FF7A45]/20 flex flex-col",children:[s.jsxs("div",{className:"flex items-start space-x-4 mb-4 flex-1",children:[s.jsx("div",{className:"w-12 h-12 flex items-center justify-center flex-shrink-0",children:typeof m.icon=="string"?s.jsx("span",{className:"text-2xl",children:m.icon}):m.icon}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h3",{className:"font-semibold text-[#1B2C4F] mb-2",children:m.title}),s.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-4",children:m.description}),s.jsx("div",{className:"flex flex-wrap gap-2",children:m.tags.map((p,w)=>s.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-medium ${o(p)}`,children:p},w))})]})]}),m.link&&s.jsx("div",{className:"pt-4 border-t border-gray-100",children:s.jsxs("button",{onClick:()=>u(m),className:"w-full bg-gradient-to-r from-purple-500 to-blue-500 text-white py-2.5 px-4 rounded-lg font-medium hover:from-purple-600 hover:to-blue-600 transition-all duration-200 text-sm flex items-center justify-center space-x-2",children:[s.jsx("span",{children:"✨"}),s.jsx("span",{children:"Generate personalized template"})]})})]},g))})})})]}),s.jsx("section",{className:"py-16 bg-white",children:s.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"flex items-center justify-center mb-8",children:[s.jsx("div",{className:"w-1.5 h-12 bg-[#FF7A45] mr-4"}),s.jsx("h2",{className:"text-3xl font-bold text-[#1B2C4F]",children:"Calculate Your ROI"})]}),s.jsx("div",{className:"bg-gradient-to-br from-gray-50 to-white rounded-xl p-12 shadow-lg border border-gray-100",children:s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsx("h3",{className:"text-2xl font-semibold text-[#1B2C4F] mb-4",children:"See how much time and revenue you can gain with MadKudu"}),s.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:"Discover the potential impact on your sales team's productivity and pipeline generation with our comprehensive ROI calculator."}),s.jsxs("button",{onClick:()=>t("/roi-calculator"),className:"inline-flex items-center px-8 py-4 bg-[#FF7A45] text-white font-semibold rounded-lg hover:bg-[#E6693D] transition-colors shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 transition-all duration-200",children:[s.jsx("span",{className:"mr-2",children:"📊"}),"Calculate Your ROI",s.jsx("span",{className:"ml-2",children:"→"})]})]})})]})})}),s.jsx(Qe,{})]})},cZ=()=>{const t=Ft();b.useEffect(()=>{document.title="Product Overview | MadKudu"},[]);const e=()=>{t("/demo"),window.scrollTo(0,0)};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-32 pb-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("h1",{className:"font-poppins font-semibold text-[#1B2C4F] mb-6",style:{fontSize:"48px",lineHeight:"56px"},children:"Predictive Intelligence For B2B Revenue Marketers"}),s.jsx("h2",{className:"font-inter text-[#33435C] mb-8 text-lg leading-relaxed",children:"Be a step ahead of the competition by leveraging MadKudu to predict which leads will convert and the value they will bring to your business. All the answers are in your data. MadKudu knows how to uncover them."}),s.jsx("button",{onClick:e,className:"bg-[#3B82F6] hover:bg-[#2563EB] text-white font-semibold px-8 py-4 rounded-xl transition-all duration-200 hover:shadow-lg text-lg",children:"Get a Demo"})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-full max-w-md",children:s.jsx("img",{alt:"MadKudu data integration and buyer journey visualization",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/4ab29146-52eb-4ab0-a29e-09d5a3abfb1f.png"})})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsxs("div",{className:"max-w-7xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("div",{className:"font-inter text-[#3B82F6] text-sm font-semibold uppercase tracking-wider mb-4",children:"What's MadKudu?"}),s.jsx("h1",{className:"font-poppins font-semibold text-[#1B2C4F] text-4xl lg:text-5xl leading-tight max-w-4xl mx-auto",children:"A Complete Solution To Predict, Automate, And Measure Your Marketing"})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-full max-w-2xl",children:s.jsx("img",{src:"/lovable-uploads/3a76bcfd-1126-4cdd-9993-f99e31a6c650.png",alt:"The MadKudu Platform with Predictive Engine, Insights, and Value Based Customization",className:"w-full h-auto rounded-xl shadow-sm"})})})]})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"max-w-2xl",children:[s.jsx("div",{className:"font-inter text-[#3B82F6] text-sm font-semibold uppercase tracking-wider mb-4",children:"MadKudu's Cue Engine"}),s.jsx("h1",{className:"font-poppins font-semibold text-[#1B2C4F] text-4xl lg:text-5xl leading-tight mb-6",children:"Predictive Marketing Technology That Works For You"}),s.jsx("p",{className:"font-inter text-[#33435C] mb-6 text-lg leading-relaxed",children:"Connect all of your data to understand the optimal buyer journey — the key conversion points and trigger events that define marketing leads, and product activities that deliver the perfect guiding customer for each of your buying segments."}),s.jsx("p",{className:"font-inter text-[#33435C] mb-8 text-lg leading-relaxed",children:"Slice and dice cohorts to identify success criteria, or custom build scoring and predictive revenue model for your business."}),s.jsx("button",{onClick:e,className:"bg-[#3B82F6] hover:bg-[#2563EB] text-white font-semibold px-8 py-3 rounded-xl transition-all duration-200 hover:shadow-lg",children:"Learn More"})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-full max-w-md",children:s.jsx("img",{alt:"MadKudu revenue optimization showing channel performance and expected revenue",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/b8006007-ccc3-4e58-8b71-8c6353b0b93a.png"})})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-gray-50",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"flex justify-center lg:order-1",children:s.jsx("div",{className:"w-full max-w-md",children:s.jsx("img",{alt:"MadKudu segmentation and integration with CRM platforms",className:"w-full h-auto rounded-xl shadow-sm",src:"/lovable-uploads/83cbaadd-4f71-450b-b0da-58f348ccb9f9.png"})})}),s.jsxs("div",{className:"max-w-2xl lg:order-2",children:[s.jsx("div",{className:"font-inter text-[#3B82F6] text-sm font-semibold uppercase tracking-wider mb-4",children:"Your Brand Awaits"}),s.jsx("h1",{className:"font-poppins font-semibold text-[#1B2C4F] text-4xl lg:text-5xl leading-tight mb-6",children:"A Truly Customized Buyer Journey... At Scale"}),s.jsx("p",{className:"font-inter text-[#33435C] mb-6 text-lg leading-relaxed",children:"Leverage your predicted lead score and value to deliver on customized and personalized buying experience that is optimized for your best fit deals, while driving down resources on perceived bad fit leads to low prioritized messaging."}),s.jsx("p",{className:"font-inter text-[#33435C] mb-8 text-lg leading-relaxed",children:"— from website personalization to sales prioritization to website chatbots."}),s.jsx("button",{onClick:e,className:"bg-[#3B82F6] hover:bg-[#2563EB] text-white font-semibold px-8 py-3 rounded-xl transition-all duration-200 hover:shadow-lg",children:"Learn More"})]})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-7xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{className:"max-w-2xl",children:[s.jsxs("h1",{className:"font-poppins font-semibold text-[#1B2C4F] text-4xl lg:text-5xl leading-tight mb-6",children:["Turn Data Into ",s.jsx("span",{className:"text-[#FFA652]",children:"Insights"}),"; Insights Into Revenue"]}),s.jsx("p",{className:"font-inter text-[#33435C] mb-8 text-lg leading-relaxed",children:"Measuring and assessing your marketing performance has never been more important. MadKudu makes it easy with native benchmarking analysis for both it and your industry benchmarks. Know exactly which channels are driving your highest value deals, which are underperforming, and where new potential conversion channels remain — leaving it all data not."}),s.jsx("button",{onClick:e,className:"bg-[#3B82F6] hover:bg-[#2563EB] text-white font-semibold px-8 py-3 rounded-xl transition-all duration-200 hover:shadow-lg",children:"Learn More"})]}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"w-full max-w-md",children:s.jsx("img",{alt:"MadKudu dashboard showing actionable insights and campaign performance",className:"w-full h-auto rounded-xl",src:"/lovable-uploads/d3b91c7f-b29a-4a7f-af1f-9b0e947ae1ef.png"})})})]})})}),s.jsx("section",{className:"py-20 px-4 sm:px-6 lg:px-8 bg-[#1B2C4F]",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("div",{className:"font-inter text-[#3B82F6] text-sm font-semibold uppercase tracking-wider mb-4",children:"Get Started"}),s.jsx("h1",{className:"font-poppins font-semibold text-white text-4xl lg:text-5xl leading-tight mb-8",children:"Get Started With MadKudu Today!"}),s.jsx("button",{onClick:e,className:"bg-white text-[#1B2C4F] font-semibold px-8 py-4 rounded-xl transition-all duration-200 hover:shadow-lg text-lg hover:bg-gray-50",children:"Get a Demo"})]})}),s.jsx(Qe,{})]})},dZ=()=>{b.useEffect(()=>{document.title="Login | MadKudu"},[]);const t=()=>{window.location.href="https://msi.madkudu.com/"},e=()=>{window.location.href="https://app.madkudu.com/"};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-32 pb-16",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h1",{className:"text-4xl font-normal text-madkudu-neutral-900 mb-4 leading-tight",children:"Welcome back"}),s.jsx("p",{className:"text-lg text-madkudu-neutral-700",children:"Please select your user type to continue to the appropriate platform"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-3xl mx-auto",children:[s.jsx(yt,{className:"bg-gradient-to-br from-blue-50 to-blue-100 border-0 shadow-xl hover:shadow-2xl transition-all duration-300 cursor-pointer group",onClick:t,children:s.jsxs(zt,{className:"p-8 text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-madkudu-blue-500 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:scale-110 transition-transform duration-300",children:s.jsx("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),s.jsx("h3",{className:"text-xl font-semibold text-madkudu-neutral-900 mb-3",children:"Sales User"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6",children:"Access sales tools, lead scoring, and prospect insights"}),s.jsx("button",{className:"px-6 py-2.5 bg-madkudu-blue-500 text-white text-sm font-medium rounded-lg hover:bg-madkudu-blue-600 transition-all duration-200 hover:shadow-lg border border-madkudu-blue-500/10 w-full",children:"Continue as Sales User"})]})}),s.jsx(yt,{className:"bg-gradient-to-br from-gray-50 to-gray-100 border-0 shadow-xl hover:shadow-2xl transition-all duration-300 cursor-pointer group",onClick:e,children:s.jsxs(zt,{className:"p-8 text-center",children:[s.jsx("div",{className:"w-16 h-16 bg-madkudu-neutral-700 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:scale-110 transition-transform duration-300",children:s.jsxs("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),s.jsx("h3",{className:"text-xl font-semibold text-madkudu-neutral-900 mb-3",children:"Admin User"}),s.jsx("p",{className:"text-madkudu-neutral-700 mb-6",children:"Manage settings, configurations, and administrative tasks"}),s.jsx("button",{className:"px-6 py-2.5 bg-madkudu-neutral-700 text-white text-sm font-medium rounded-lg hover:bg-madkudu-neutral-800 transition-all duration-200 hover:shadow-lg border border-madkudu-neutral-700/10 w-full",children:"Continue as Admin User"})]})})]})]})}),s.jsx(Qe,{})]})},AZ=()=>{const t=Ft();b.useEffect(()=>{document.title="Team | MadKudu"},[]);const e=()=>{t("/careers")},r=[{name:"Sam Levan",role:"CEO",image:"/lovable-uploads/8ce71af5-ed26-476d-8ca9-1ef1196ee864.png"},{name:"Francis Brero",role:"CPO",image:"/lovable-uploads/4c335ab9-6032-48e2-890b-d15773903bb6.png"},{name:"Margo Rey",role:"Senior Product Manager",image:"/lovable-uploads/ddb6b65d-4ce9-4cf7-b529-1c99a91f05cc.png"},{name:"Maxime Gaudin",role:"CTO",image:"/lovable-uploads/5cf88950-453e-42b7-9e18-3aae8b208b70.png"},{name:"Chloe Portier",role:"Product Manager",image:"/lovable-uploads/d16eff18-5e78-48bc-8ae9-0f1e7cec49d2.png"},{name:"Hayden Anderson",role:"Account Executive",image:"/lovable-uploads/1ab84101-407c-4cbb-be6c-7a593d2f3a71.png"},{name:"Max Paulus",role:"Head of Solution Architecture",image:"/lovable-uploads/267de61a-9a06-4138-9cdc-817424488330.png"},{name:"Charles Hawkins",role:"Director, Customer Success Management",image:"/lovable-uploads/b35ddeba-0190-49bc-be29-c95508e704fe.png"},{name:"Claire Renaud",role:"Technical Implementation",image:"/lovable-uploads/c78adcf5-2bfd-40c1-95ae-b9d33afca0d1.png"},{name:"Guillaume Lacoste",role:"Full-Stack Engineer",image:"/lovable-uploads/758b305b-8b40-4437-9191-1db990b38443.png"},{name:"Yannick Eyl",role:"Frontend Engineer",image:"/lovable-uploads/5ece2d93-e89d-45cc-972b-a9d406ad5764.png"},{name:"Matthieu Courtin",role:"Product Operations",image:"/lovable-uploads/bf9e4749-6edb-4cc4-94e9-c966b1bdb9e5.png"},{name:"Duc Cao",role:"Sr. Machine Learning Engineer",image:"/lovable-uploads/78fd1069-88d7-4637-8fd9-9b6e93974492.png"},{name:"Benjamin Gelis",role:"Senior Software Engineer",image:"/lovable-uploads/7b8f23c8-febf-4474-88fc-21b532b26e33.png"},{name:"Elia Kemp",role:"Product Manager",image:"/lovable-uploads/93013d39-1f4d-4598-bb72-0a09dc018efa.png"},{name:"Richard Merrick",role:"Senior Data Engineer",image:"/lovable-uploads/bbff5326-6c51-4eb9-9f7d-e84d1f1d6e7e.png"},{name:"Léo Le Henaff",role:"Junior Data Engineer",image:"/lovable-uploads/7d70f8c0-7f31-4019-b5e5-78a3ecbebb10.png"},{name:"Sasha Solodilov",role:"Product Manager Intern",image:"/lovable-uploads/8b16ea70-c46b-4726-adb6-67deac426142.png"},{name:"Maor Paor",role:"Senior Product Operations",image:"/lovable-uploads/3ac6d8eb-0c0c-4738-bbdf-a532e7726d5a.png"},{name:"Edison Tang",role:"Junior Product Operations",image:"/lovable-uploads/2959bf7d-b707-4c40-ba7c-a1327594854e.png"},{name:"Paul Otte",role:"Customer Success Manager",image:"/lovable-uploads/d921856c-9478-4201-8072-3755931a090e.png"},{name:"Hammad Khan",role:"Staff Data Engineer",image:"/lovable-uploads/c08cbd20-6669-4dc1-ad4b-d3880f86549f.png"},{name:"Yoan Pontier",role:"Machine Learning Intern",image:"/lovable-uploads/5d5c5e71-9ae3-4793-adf9-e3333c9fe19b.png"}];return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-48 pb-16 bg-gradient-to-b from-blue-50 to-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[s.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-8",style:{color:"#182B52"},children:"Team Is All You Need"}),s.jsx(Ee,{className:"bg-white text-gray-900 border border-gray-300 hover:bg-gray-50 px-6 py-2 mb-12",onClick:e,children:"Open Positions"}),s.jsx("div",{className:"max-w-2xl mx-auto",children:s.jsx("img",{src:"/lovable-uploads/c5433364-c507-44bf-91d6-9be43ff3ae99.png",alt:"MadKudu Team",className:"w-full h-64 rounded-lg object-cover"})})]})}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:r.map((n,a)=>s.jsx("div",{className:"relative group",children:s.jsxs("div",{className:"aspect-square overflow-hidden rounded-lg border-3 hover:shadow-lg transition-shadow duration-300",style:{borderColor:"#182b52"},children:[s.jsx("img",{src:n.image,alt:n.name,className:"w-full h-full object-cover"}),s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4",children:[s.jsx("h3",{className:"text-white font-semibold text-lg",children:n.name}),s.jsx("p",{className:"text-white/90 text-sm",children:n.role})]})]})},a))})})}),s.jsx(Qe,{})]})},uZ=({onScrollToPositions:t})=>s.jsx("section",{className:"pt-48 pb-16 bg-gradient-to-b from-blue-50 to-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[s.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Become A Kudu Today"}),s.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-8",style:{color:"#182B52"},children:"Join Us On This Journey"}),s.jsx(Ee,{className:"bg-white text-gray-900 border border-gray-300 hover:bg-gray-50 px-6 py-2",onClick:t,children:"See Open Positions"})]})}),hZ=()=>s.jsx("div",{className:"mt-16 max-w-2xl mx-auto",children:s.jsx(yt,{className:"bg-white shadow-lg",children:s.jsxs(zt,{className:"p-8",children:[s.jsx("p",{className:"text-gray-700 italic mb-6 leading-relaxed",children:'"MadKudu is a rare combination of a world-class team pursuing a big market opportunity. But what makes the company truly special is just how likable they are. From the moment I met these guys I just wanted them to succeed. Their customers obviously feel the same way."'}),s.jsxs("div",{className:"flex items-center justify-center space-x-3",children:[s.jsx("img",{src:"/lovable-uploads/8b2d322e-0d8f-4ee1-8435-f08615625596.png",alt:"Kevin Dewalt",className:"w-12 h-12 rounded-full object-cover"}),s.jsxs("div",{className:"text-left",children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Kevin Dewalt"}),s.jsx("p",{className:"text-sm text-gray-600",children:"MadKudu Investor"})]})]})]})})}),mZ=()=>{const t=[{value:"+8",label:"Nationalities",bgColor:"bg-blue-400"},{value:"+40",label:"Employees",bgColor:"bg-blue-500"},{value:"100%",label:"Diversity & Inclusion",bgColor:"bg-teal-400"}];return s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((e,r)=>s.jsx(yt,{className:"bg-white shadow-lg relative overflow-hidden",children:s.jsxs(zt,{className:"p-8 text-center",children:[s.jsx("div",{className:"text-4xl font-bold text-gray-900 mb-2",children:e.value}),s.jsx("div",{className:"text-gray-600",children:e.label}),s.jsx("div",{className:`absolute bottom-0 right-0 w-20 h-20 ${e.bgColor} rounded-full -mr-10 -mb-10 opacity-80`})]})},r))})})})},Hw=({title:t,content:e,imageSrc:r,imageAlt:n,reverse:a=!1,bgColor:i="bg-white"})=>s.jsx("section",{className:`py-16 ${i}`,children:s.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:`grid lg:grid-cols-2 gap-12 items-center ${a?"lg:grid-flow-col-dense":""}`,children:[s.jsxs("div",{className:a?"lg:col-start-2":"",children:[s.jsx("h2",{className:"text-3xl font-bold mb-6",style:{color:"#182B52"},children:t}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:e})]}),s.jsxs("div",{className:`relative ${a?"lg:col-start-1":""}`,children:[s.jsx("img",{src:r,alt:n,className:"w-full h-64 object-cover rounded-lg"}),s.jsx("div",{className:"absolute bottom-4 right-4 w-20 h-20 bg-blue-400 rounded-full opacity-80"})]})]})})}),fZ=()=>{const t=[{emoji:"🍯",title:"Be Madly Resilient",description:"Try hard things even if we're afraid to fail. Being afraid is fine and great. But it does not prevent us from putting a step forward."},{emoji:"📚",title:"Be A Life Learner",description:"Being a life learner means that you're always hungry for knowledge, curious about what's behind the hill, always looking for improving yourself and helping other people do so."},{emoji:"🤝",title:"Be Authentic To Yourself And Others",description:"Being authentic means that we're true to who we are. We don't have to wear an armor at work and we don't expect others to wear one so they can fit in."},{emoji:"📈",title:"Obsess With Customer-Value",description:"We evaluate the quality of our work in terms of customer impact. It is not about how many hours we've put in. It is not about how advanced our solution is. The quality of our work is measured by the value our work creates for our customers."}];return s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsx("h2",{className:"text-3xl font-bold text-center mb-12",style:{color:"#182B52"},children:"Our Values"}),s.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:t.map((e,r)=>s.jsx(yt,{className:"border-2 border-gray-300 transition-all duration-300 hover:shadow-lg hover:border-blue-400 hover:-translate-y-1",children:s.jsxs(zt,{className:"p-8",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("span",{className:"text-2xl mr-3",children:e.emoji}),s.jsx("h3",{className:"text-xl font-bold",style:{color:"#182B52"},children:e.title})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:e.description})]})},r))})]})})},pZ=()=>{const t=[{title:"Open Applications",location:"USA",url:"https://madkudu.breezy.hr/p/f2727d7de370-open-application-unsollicited-application?state=published"}];return s.jsx("section",{id:"open-positions",className:"py-16 bg-gray-50",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsx("h2",{className:"text-3xl font-bold mb-12",style:{color:"#182B52"},children:"Open Positions"}),s.jsx("div",{className:"space-y-6",children:t.map((e,r)=>s.jsx("div",{className:"border-b border-gray-200 pb-4",children:s.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block hover:bg-gray-50 p-2 rounded transition-colors",children:[s.jsx("h3",{className:"font-semibold text-gray-900 mb-1 hover:text-blue-600",children:e.title}),s.jsx("p",{className:"text-gray-600",children:e.location})]})},r))})]})})},gZ=()=>{b.useEffect(()=>{document.title="Careers | MadKudu"},[]);const t=()=>{const e=document.getElementById("open-positions");e&&e.scrollIntoView({behavior:"smooth"})};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx(uZ,{onScrollToPositions:t}),s.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx(hZ,{})}),s.jsx(mZ,{}),s.jsx(Hw,{title:"Who We Are",content:"MadKudu isn't a team of 'lone wolves' - and that includes personal growth. We help each other define our goals and achieve them through mutual accountability. Have a personal goal? Exercise more? Meditate? Learn how to finally pronounce 'th' correctly? Learn Python? We work together to help each other become better.",imageSrc:"/lovable-uploads/91ea37e3-ef81-49f6-9da1-7aa5ecac6046.png",imageAlt:"Team group photo on beach",bgColor:"bg-gray-50"}),s.jsx(Hw,{title:"What We Do",content:"At MadKudu we make business decisions based on what the data says - not what 'the boss' says. We strive to let the best arguments based on the best data win. What is the best market? What feature should we build next? We start by looking at the data.",imageSrc:"/lovable-uploads/01246de2-a4f6-4a27-b57e-1dd748538d90.png",imageAlt:"Team collaboration workspace"}),s.jsx(Hw,{title:"Why We Do It",content:"We evaluate the quality of our work in terms of customer impact. It is not about how many hours we've put in. It is not about how advanced our solution is. It is not about how happy our customers are. The quality of our work is measured by the value our work creates for our customers.",imageSrc:"/lovable-uploads/11baa8b0-5a86-4969-a40b-b7a3596771d8.png",imageAlt:"Team meeting discussion",reverse:!1,bgColor:"bg-gray-50"}),s.jsx(fZ,{}),s.jsx(pZ,{}),s.jsx(Qe,{})]})},cU=({portalId:t,formId:e,region:r,sfdcCampaignId:n,containerId:a,onFormReady:i,onFormSubmitted:o,showFallback:l=!0})=>{const[c,d]=b.useState(!1),[A,u]=b.useState(!1),[h,m]=b.useState(!1),g=b.useRef(),p=b.useRef();b.useEffect(()=>{const y=()=>{const j=document.getElementById(a);if(j&&(j.innerHTML=""),g.current=setTimeout(()=>{h||(console.log("HubSpot form timed out"),u(!0))},8e3),window.hbspt){v();return}const S=document.createElement("script");S.src="//js.hsforms.net/forms/embed/v2.js",S.charset="utf-8",S.type="text/javascript",S.async=!0,S.onload=()=>{d(!0),v()},S.onerror=()=>{console.error("Failed to load HubSpot script"),u(!0)},document.head.appendChild(S),p.current=S},v=()=>{if(!window.hbspt||!window.hbspt.forms){console.error("HubSpot object not available"),u(!0);return}try{const j={portalId:t,formId:e,region:r,target:`#${a}`,onFormReady:()=>{console.log("HubSpot form ready"),g.current&&clearTimeout(g.current),m(!0),i==null||i()},onFormSubmitted:()=>{console.log("HubSpot form submitted"),o==null||o()},onFormDefinitionFetchError:S=>{console.error("HubSpot form definition fetch error:",S),u(!0)}};n&&(j.sfdcCampaignId=n),window.hbspt.forms.create(j)}catch(j){console.error("Error creating HubSpot form:",j),u(!0)}};return y(),()=>{g.current&&clearTimeout(g.current)}},[t,e,r,n,a,i,o,h]);const w=y=>{y.preventDefault();const j=new FormData(y.currentTarget).get("email");j&&(console.log("Fallback form submitted with email:",j),alert("Thank you! We'll be in touch soon."))};return A&&l?s.jsx("div",{className:"fallback-form",children:s.jsxs("form",{onSubmit:w,children:[s.jsx("input",{type:"email",name:"email",placeholder:"Email Address*",required:!0,className:"w-full"}),s.jsx("button",{type:"submit",children:"Subscribe"})]})}):s.jsxs("div",{children:[s.jsx("div",{id:a,className:h?"block":"hidden"}),!h&&!A&&s.jsxs("div",{className:"fallback-form",children:[s.jsx("input",{type:"email",placeholder:"Email Address*",disabled:!0,className:"w-full opacity-50"}),s.jsx("button",{type:"button",disabled:!0,className:"opacity-50",children:"Loading..."})]})]})},xZ="modulepreload",yZ=function(t){return"/"+t},o6={},Li=function(e,r,n){let a=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(r.map(c=>{if(c=yZ(c),c in o6)return;o6[c]=!0;const d=c.endsWith(".css"),A=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${A}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":xZ,d||(u.as="script"),u.crossOrigin="",u.href=c,l&&u.setAttribute("nonce",l),document.head.appendChild(u),d)return new Promise((h,m)=>{u.addEventListener("load",h),u.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})},dU=!(typeof navigator>"u")&&navigator.product==="ReactNative",AU={timeout:dU?6e4:12e4},vZ=function(t){const e={...AU,...typeof t=="string"?{url:t}:t};if(e.timeout=uU(e.timeout),e.query){const{url:r,searchParams:n}=function(a){const i=a.indexOf("?");if(i===-1)return{url:a,searchParams:new URLSearchParams};const o=a.slice(0,i),l=a.slice(i+1);if(!dU)return{url:o,searchParams:new URLSearchParams(l)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const c=new URLSearchParams;for(const d of l.split("&")){const[A,u]=d.split("=");A&&c.append(l6(A),l6(u||""))}return{url:o,searchParams:c}}(e.url);for(const[a,i]of Object.entries(e.query)){if(i!==void 0)if(Array.isArray(i))for(const l of i)n.append(a,l);else n.append(a,i);const o=n.toString();o&&(e.url=`${r}?${o}`)}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function l6(t){return decodeURIComponent(t.replace(/\+/g," "))}function uU(t){if(t===!1||t===0)return!1;if(t.connect||t.socket)return t;const e=Number(t);return isNaN(e)?uU(AU.timeout):{connect:e,socket:e}}const bZ=/^https?:\/\//i,wZ=function(t){if(!bZ.test(t.url))throw new Error(`"${t.url}" is not a valid URL`)};function hU(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const jZ=["request","response","progress","error","abort"],c6=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];function mU(t,e){const r=[],n=c6.reduce((i,o)=>(i[o]=i[o]||[],i),{processOptions:[vZ],validateOptions:[wZ]});function a(i){const o=jZ.reduce((m,g)=>(m[g]=function(){const p=Object.create(null);let w=0;return{publish:function(y){for(const v in p)p[v](y)},subscribe:function(y){const v=w++;return p[v]=y,function(){delete p[v]}}}}(),m),{}),l=(m=>function(g,p,...w){const y=g==="onError";let v=p;for(let j=0;j{A=e(m,(g,p)=>((w,y,v)=>{let j=w,S=y;if(!j)try{S=l("onResponse",y,v)}catch(F){S=null,j=F}j=j&&l("onError",j,v),j?o.error.publish(j):S&&o.response.publish(S)})(g,p,m))});o.abort.subscribe(()=>{u(),A&&A.abort()});const h=l("onReturn",o,d);return h===o&&o.request.publish(d),h}return a.use=function(i){if(!i)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof i=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(i.onReturn&&n.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c6.forEach(o=>{i[o]&&n[o].push(i[o])}),r.push(i),a},a.clone=()=>mU(r,e),t.forEach(a.use),a}var d6,A6,NZ=hU(function(){if(A6)return d6;A6=1;var t=function(e){return e.replace(/^\s+|\s+$/g,"")};return d6=function(e){if(!e)return{};for(var r={},n=t(e).split(` `),a=0;a"u"?r[l]=c:(d=r[l],Object.prototype.toString.call(d)==="[object Array]"?r[l].push(c):r[l]=[r[l],c])}var d;return r}}()),Wf,$f,Lu,Gf,lo,qf,Yf,OE;let gj=(OE=class{constructor(){it(this,"onabort");it(this,"onerror");it(this,"onreadystatechange");it(this,"ontimeout");it(this,"readyState",0);it(this,"response");it(this,"responseText","");it(this,"responseType","");it(this,"status");it(this,"statusText");it(this,"withCredentials");Je(this,Wf);Je(this,$f);Je(this,Lu);Je(this,Gf,{});Je(this,lo);Je(this,qf,{});Je(this,Yf)}open(e,r,n){var a;De(this,Wf,e),De(this,$f,r),De(this,Lu,""),this.readyState=1,(a=this.onreadystatechange)==null||a.call(this),De(this,lo,void 0)}abort(){X(this,lo)&&X(this,lo).abort()}getAllResponseHeaders(){return X(this,Lu)}setRequestHeader(e,r){X(this,Gf)[e]=r}setInit(e,r=!0){De(this,qf,e),De(this,Yf,r)}send(e){const r=this.responseType!=="arraybuffer",n={...X(this,qf),method:X(this,Wf),headers:X(this,Gf),body:e};typeof AbortController=="function"&&X(this,Yf)&&(De(this,lo,new AbortController),typeof EventTarget<"u"&&X(this,lo).signal instanceof EventTarget&&(n.signal=X(this,lo).signal)),typeof document<"u"&&(n.credentials=this.withCredentials?"include":"omit"),fetch(X(this,$f),n).then(a=>{var i;return a.headers.forEach((o,l)=>{De(this,Lu,X(this,Lu)+`${l}: ${o}\r `)}),this.status=a.status,this.statusText=a.statusText,this.readyState=3,(i=this.onreadystatechange)==null||i.call(this),r?a.text():a.arrayBuffer()}).then(a=>{var i;typeof a=="string"?this.responseText=a:this.response=a,this.readyState=4,(i=this.onreadystatechange)==null||i.call(this)}).catch(a=>{var i,o;a.name!=="AbortError"?(i=this.onerror)==null||i.call(this,a):(o=this.onabort)==null||o.call(this)})}},Wf=new WeakMap,$f=new WeakMap,Lu=new WeakMap,Gf=new WeakMap,lo=new WeakMap,qf=new WeakMap,Yf=new WeakMap,OE);const xj=typeof XMLHttpRequest=="function"?"xhr":"fetch",CZ=xj==="xhr"?XMLHttpRequest:gj,BZ=(t,e)=>{const r=t.options,n=t.applyMiddleware("finalizeOptions",r),a={},i=t.applyMiddleware("interceptRequest",void 0,{adapter:xj,context:t});if(i){const p=setTimeout(e,0,null,i);return{abort:()=>clearTimeout(p)}}let o=new CZ;o instanceof gj&&typeof n.fetch=="object"&&o.setInit(n.fetch,n.useAbortSignal??!0);const l=n.headers,c=n.timeout;let d=!1,A=!1,u=!1;if(o.onerror=p=>{g(o instanceof gj?p instanceof Error?p:new Error(`Request error while attempting to reach is ${n.url}`,{cause:p}):new Error(`Request error while attempting to reach is ${n.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.ontimeout=p=>{g(new Error(`Request timeout while attempting to reach ${n.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.onabort=()=>{m(!0),d=!0},o.onreadystatechange=function(){c&&(m(),a.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),c.socket)),!d&&o&&o.readyState===4&&o.status!==0&&function(){if(!(d||A||u)){if(o.status===0)return void g(new Error("Unknown XHR error"));m(),A=!0,e(null,{body:o.response||(o.responseType===""||o.responseType==="text"?o.responseText:""),url:n.url,method:n.method,headers:NZ(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,l&&o.setRequestHeader)for(const p in l)l.hasOwnProperty(p)&&o.setRequestHeader(p,l[p]);return n.rawBody&&(o.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:n,adapter:xj,request:o,context:t}),o.send(n.body||null),c&&(a.connect=setTimeout(()=>h("ETIMEDOUT"),c.connect)),{abort:function(){d=!0,o&&o.abort()}};function h(p){u=!0,o.abort();const w=new Error(p==="ESOCKETTIMEDOUT"?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);w.code=p,t.channels.error.publish(w)}function m(p){(p||d||o&&o.readyState>=2&&a.connect)&&clearTimeout(a.connect),a.socket&&clearTimeout(a.socket)}function g(p){if(A)return;m(!0),A=!0,o=null;const w=p||new Error(`Network error while attempting to reach ${n.url}`);w.isNetworkError=!0,w.request=n,e(w)}},SZ=(t=[],e=BZ)=>mU(t,e);var kZ={},u6,h6,m6,f6,p6,Kw={exports:{}};p6||(p6=1,function(t,e){e.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;n.splice(1,0,a,"color: inherit");let i=0,o=0;n[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(i++,l==="%c"&&(o=i))}),n.splice(o,0,a)},e.save=function(n){try{n?e.storage.setItem("debug",n):e.storage.removeItem("debug")}catch{}},e.load=function(){let n;try{n=e.storage.getItem("debug")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=kZ.DEBUG),n},e.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=(f6?m6:(f6=1,m6=function(n){function a(l){let c,d,A,u=null;function h(...m){if(!h.enabled)return;const g=h,p=Number(new Date),w=p-(c||p);g.diff=w,g.prev=c,g.curr=p,c=p,m[0]=a.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let y=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(v,j)=>{if(v==="%%")return"%";y++;const S=a.formatters[j];if(typeof S=="function"){const F=m[y];v=S.call(g,F),m.splice(y,1),y--}return v}),a.formatArgs.call(g,m),(g.log||a.log).apply(g,m)}return h.namespace=l,h.useColors=a.useColors(),h.color=a.selectColor(l),h.extend=i,h.destroy=a.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==a.namespaces&&(d=a.namespaces,A=a.enabled(l)),A),set:m=>{u=m}}),typeof a.init=="function"&&a.init(h),h}function i(l,c){const d=a(this.namespace+(typeof c>"u"?":":c)+l);return d.log=this.log,d}function o(l,c){let d=0,A=0,u=-1,h=0;for(;d"-"+c)].join(",");return a.enable(""),l},a.enable=function(l){a.save(l),a.namespaces=l,a.names=[],a.skips=[];const c=(typeof l=="string"?l:"").trim().replace(" ",",").split(",").filter(Boolean);for(const d of c)d[0]==="-"?a.skips.push(d.slice(1)):a.names.push(d)},a.enabled=function(l){for(const c of a.skips)if(o(l,c))return!1;for(const c of a.names)if(o(l,c))return!0;return!1},a.humanize=function(){if(h6)return u6;h6=1;var l=1e3,c=60*l,d=60*c,A=24*d,u=7*A;function h(m,g,p,w){var y=g>=1.5*p;return Math.round(m/p)+" "+w+(y?"s":"")}return u6=function(m,g){g=g||{};var p,w,y=typeof m;if(y==="string"&&m.length>0)return function(v){if(!((v=String(v)).length>100)){var j=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(v);if(j){var S=parseFloat(j[1]);switch((j[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*S;case"weeks":case"week":case"w":return S*u;case"days":case"day":case"d":return S*A;case"hours":case"hour":case"hrs":case"hr":case"h":return S*d;case"minutes":case"minute":case"mins":case"min":case"m":return S*c;case"seconds":case"second":case"secs":case"sec":case"s":return S*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return S;default:return}}}}(m);if(y==="number"&&isFinite(m))return g.long?(p=m,(w=Math.abs(p))>=A?h(p,w,A,"day"):w>=d?h(p,w,d,"hour"):w>=c?h(p,w,c,"minute"):w>=l?h(p,w,l,"second"):p+" ms"):function(v){var j=Math.abs(v);return j>=A?Math.round(v/A)+"d":j>=d?Math.round(v/d)+"h":j>=c?Math.round(v/c)+"m":j>=l?Math.round(v/l)+"s":v+"ms"}(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))}}(),a.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(n).forEach(l=>{a[l]=n[l]}),a.names=[],a.skips=[],a.formatters={},a.selectColor=function(l){let c=0;for(let d=0;d"u"?()=>!1:t=>Buffer.isBuffer(t);function g6(t){return Object.prototype.toString.call(t)==="[object Object]"}function FZ(t){if(g6(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(g6(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}const IZ=["boolean","string","number"];function PZ(){return{processOptions:t=>{const e=t.body;return!e||typeof e.pipe=="function"||EZ(e)||IZ.indexOf(typeof e)===-1&&!Array.isArray(e)&&!FZ(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}}}function TZ(t){return{onResponse:r=>{const n=r.headers["content-type"]||"",a=n.indexOf("application/json")!==-1;return r.body&&n&&a?Object.assign({},r,{body:e(r.body)}):r},processOptions:r=>Object.assign({},r,{headers:Object.assign({Accept:"application/json"},r.headers)})};function e(r){try{return JSON.parse(r)}catch(n){throw n.message=`Failed to parsed response body as JSON: ${n.message}`,n}}}let wm={};typeof globalThis<"u"?wm=globalThis:typeof window<"u"?wm=window:typeof global<"u"?wm=global:typeof self<"u"&&(wm=self);var LZ=wm;function UZ(t={}){const e=t.implementation||LZ.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new e(a=>(r.error.subscribe(i=>a.error(i)),r.progress.subscribe(i=>a.next(Object.assign({type:"progress"},i))),r.response.subscribe(i=>{a.next(Object.assign({type:"response"},i)),a.complete()}),r.request.publish(n),()=>r.abort.publish()))}}function _Z(){return{onRequest:t=>{if(t.adapter!=="xhr")return;const e=t.request,r=t.context;function n(a){return i=>{const o=i.lengthComputable?i.loaded/i.total*100:-1;r.channels.progress.publish({stage:a,percent:o,total:i.total,loaded:i.loaded,lengthComputable:i.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}}}var fU=(t,e,r)=>(r.method==="GET"||r.method==="HEAD")&&(t.isNetworkError||!1);function MZ(t){return 100*Math.pow(2,t)+100*Math.random()}const kN=(t={})=>(e=>{const r=e.maxRetries||5,n=e.retryDelay||MZ,a=e.shouldRetry;return{onError:(i,o)=>{const l=o.options,c=l.maxRetries||r,d=l.retryDelay||n,A=l.shouldRetry||a,u=l.attemptNumber||0;if((h=l.body)!==null&&typeof h=="object"&&typeof h.pipe=="function"||!A(i,u,l)||u>=c)return i;var h;const m=Object.assign({},o,{options:Object.assign({},l,{attemptNumber:u+1})});return setTimeout(()=>o.channels.request.publish(m),d(u)),null}}})({shouldRetry:fU,...t});kN.shouldRetry=fU;function yr(t){return typeof t=="function"}function EN(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Vw=EN(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(n,a){return a+1+") "+n.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=r}});function ty(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var xp=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=Yu(o),c=l.next();!c.done;c=l.next()){var d=c.value;d.remove(this)}}catch(p){e={error:p}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}else o.remove(this);var A=this.initialTeardown;if(yr(A))try{A()}catch(p){i=p instanceof Vw?p.errors:[p]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var h=Yu(u),m=h.next();!m.done;m=h.next()){var g=m.value;try{x6(g)}catch(p){i=i??[],p instanceof Vw?i=Ti(Ti([],Eo(i)),Eo(p.errors)):i.push(p)}}}catch(p){n={error:p}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}}if(i)throw new Vw(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)x6(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&ty(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&ty(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),pU=xp.EMPTY;function gU(t){return t instanceof xp||t&&"closed"in t&&yr(t.remove)&&yr(t.add)&&yr(t.unsubscribe)}function x6(t){yr(t)?t():t.unsubscribe()}var xU={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},yU={setTimeout:function(t,e){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,a=this,i=a.hasError,o=a.isStopped,l=a.observers;return i||o?pU:(this.currentObservers=null,l.push(r),new xp(function(){n.currentObservers=null,ty(l,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,a=n.hasError,i=n.thrownError,o=n.isStopped;a?r.error(i):o&&r.complete()},e.prototype.asObservable=function(){var r=new Ur;return r.source=this,r},e.create=function(r,n){return new b6(r,n)},e}(Ur),b6=function(t){Lo(e,t);function e(r,n){var a=t.call(this)||this;return a.destination=r,a.source=n,a}return e.prototype.next=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.next)===null||a===void 0||a.call(n,r)},e.prototype.error=function(r){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.error)===null||a===void 0||a.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,a;return(a=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&a!==void 0?a:pU},e}(PN),TN={now:function(){return(TN.delegate||Date).now()},delegate:void 0},GZ=function(t){Lo(e,t);function e(r,n,a){r===void 0&&(r=1/0),n===void 0&&(n=1/0),a===void 0&&(a=TN);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,a=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,l=n._timestampProvider,c=n._windowTime;a||(i.push(r),!o&&i.push(l.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),a=this,i=a._infiniteTimeWindow,o=a._buffer,l=o.slice(),c=0;c0&&(A=new Xu({next:function(U){return F.next(U)},error:function(U){p=!0,w(),u=Ww(y,a,U),F.error(U)},complete:function(){g=!0,w(),u=Ww(y,o),F.complete()}}),Mi(j).subscribe(A))})(d)}}function Ww(t,e){for(var r=[],n=2;n{let n=r.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${r} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(a=>String.fromCodePoint(MN[a])).join("")}).join("")}`}function Tee(t){return!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t)?!1:!!Date.parse(t)}function Lee(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function Tfe(t,e,r="auto"){return r===!0||r==="auto"&&(Tee(t)||Lee(t))?t:`${t}${Pee(e)}`}Object.fromEntries(Object.entries(MN).map(t=>t.reverse()));Object.fromEntries(Object.entries(zU).map(t=>t.reverse()));var Uee=`${Object.values(zU).map(t=>`\\u{${t.toString(16)}}`).join("")}`,B6=new RegExp(`[${Uee}]{4,}`,"gu");function _ee(t){var e;return{cleaned:t.replace(B6,""),encoded:((e=t.match(B6))==null?void 0:e[0])||""}}function Mee(t){return t&&JSON.parse(_ee(JSON.stringify(t)).cleaned)}function Qee(t){return Mee(t)}const Dee="drafts",Ree="versions",Zu=".",ry=`${Dee}${Zu}`,WU=`${Ree}${Zu}`;function bv(t){return t.startsWith(ry)}function wv(t){return t.startsWith(WU)}function Oee(t){if(wv(t)){const e=Nv(t);return ry+e}return bv(t)?t:ry+t}function jv(t,e){if(e==="drafts"||e==="published")throw new Error('Version can not be "published" or "drafts"');return`${WU}${e}${Zu}${Nv(t)}`}function $U(t){if(!wv(t))return;const[e,r,...n]=t.split(Zu);return r}function Nv(t){return wv(t)?t.split(Zu).slice(2).join(Zu):bv(t)?t.slice(ry.length):t}let Hee=t=>crypto.getRandomValues(new Uint8Array(t)),Kee=(t,e,r)=>{let n=(2<{let o="";for(;;){let l=r(a),c=a|0;for(;c--;)if(o+=t[l[c]&n]||"",o.length===i)return o}}},Vee=(t,e=21)=>Kee(t,e,Hee);const S6=/\r\n|[\n\r\u2028\u2029]/;function zee(t,e,r){const n=t.split(S6),a={start:k6(e.start,n),end:e.end?k6(e.end,n):void 0},{start:i,end:o,markerLines:l}=Wee(a,n),c=`${o}`.length;return t.split(S6,o).slice(i,o).map((d,A)=>{const u=i+1+A,h=` ${` ${u}`.slice(-c)} |`,m=l[u],g=!l[u+1];if(!m)return` ${h}${d.length>0?` ${d}`:""}`;let p="";if(Array.isArray(m)){const w=d.slice(0,Math.max(m[0]-1,0)).replace(/[^\t]/g," "),y=m[1]||1;p=[` `,h.replace(/\d/g," ")," ",w,"^".repeat(y)].join(""),g&&r&&(p+=" "+r)}return[">",h,d.length>0?` ${d}`:"",p].join("")}).join(` `)}function Wee(t,e){const r={...t.start},n={...r,...t.end},a=2,i=3,o=r.line??-1,l=r.column??0,c=n.line,d=n.column;let A=Math.max(o-(a+1),0),u=Math.min(e.length,c+i);o===-1&&(A=0),c===-1&&(u=e.length);const h=c-o,m={};if(h)for(let g=0;g<=h;g++){const p=g+o;if(!l)m[p]=!0;else if(g===0){const w=e[p-1].length;m[p]=[l,w-l+1]}else if(g===h)m[p]=[0,d];else{const w=e[p-g].length;m[p]=[0,w]}}else l===d?l?m[o]=[l,0]:m[o]=!0:m[o]=[l,d-l];return{start:A,end:u,markerLines:m}}function k6(t,e){var n;let r=0;for(let a=0;at)return{line:a+1,column:t-r};r+=i}return{line:e.length,column:((n=e[e.length-1])==null?void 0:n.length)??0}}const $w=5;class $ee extends Error{constructor(r,n){const a=GU(r,n);super(a.message);it(this,"response");it(this,"statusCode",400);it(this,"responseBody");it(this,"details");Object.assign(this,a)}}class Gee extends Error{constructor(r){const n=GU(r);super(n.message);it(this,"response");it(this,"statusCode",500);it(this,"responseBody");it(this,"details");Object.assign(this,n)}}function GU(t,e){var i,o;const r=t.body,n={response:t,statusCode:t.statusCode,responseBody:Jee(r,t),message:"",details:void 0};if(!VU(r))return n.message=Gw(t,r),n;const a=r.error;if(typeof a=="string"&&typeof r.message=="string")return n.message=`${a} - ${r.message}`,n;if(typeof a!="object"||a===null)return typeof a=="string"?n.message=a:typeof r.message=="string"?n.message=r.message:n.message=Gw(t,r),n;if(qee(a)||Yee(a)){const l=a.items||[],c=l.slice(0,$w).map(A=>{var u;return(u=A.error)==null?void 0:u.description}).filter(Boolean);let d=c.length?`: - ${c.join(` - `)}`:"";return l.length>$w&&(d+=` ...and ${l.length-$w} more`),n.message=`${a.description}${d}`,n.details=r.error,n}if(qU(a)){const l=(o=(i=e==null?void 0:e.options)==null?void 0:i.query)==null?void 0:o.tag;return n.message=YU(a,l),n.details=r.error,n}return"description"in a&&typeof a.description=="string"?(n.message=a.description,n.details=a,n):(n.message=Gw(t,r),n)}function qee(t){return"type"in t&&t.type==="mutationError"&&"description"in t&&typeof t.description=="string"}function Yee(t){return"type"in t&&t.type==="actionError"&&"description"in t&&typeof t.description=="string"}function qU(t){return VU(t)&&t.type==="queryParseError"&&typeof t.query=="string"&&typeof t.start=="number"&&typeof t.end=="number"}function YU(t,e){const{query:r,start:n,end:a,description:i}=t;if(!r||typeof n>"u")return`GROQ query parse error: ${i}`;const o=e?` Tag: ${e}`:"";return`GROQ query parse error: ${zee(r,{start:n,end:a},i)}${o}`}function Gw(t,e){const r=typeof e=="string"?` (${Xee(e,100)})`:"",n=t.statusMessage?` ${t.statusMessage}`:"";return`${t.method}-request to ${t.url} resulted in HTTP ${t.statusCode}${n}${r}`}function Jee(t,e){return(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(t,null,2):t}function Xee(t,e){return t.length>e?`${t.slice(0,e)}…`:t}class Zee extends Error{constructor({projectId:r}){super("CorsOriginError");it(this,"projectId");it(this,"addOriginUrl");this.name="CorsOriginError",this.projectId=r;const n=new URL(`https://sanity.io/manage/project/${r}/api`);if(typeof location<"u"){const{origin:a}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",a),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${n}`}}const ete={onResponse:(t,e)=>{if(t.statusCode>=500)throw new Gee(t);if(t.statusCode>=400)throw new $ee(t,e);return t}};function tte(){const t={};return{onResponse:e=>{const r=e.headers["x-sanity-warning"],n=Array.isArray(r)?r:[r];for(const a of n)!a||t[a]||(t[a]=!0,console.warn(a));return e}}}function E6(t){return SZ([kN({shouldRetry:rte}),...t,tte(),PZ(),TZ(),_Z(),ete,UZ({implementation:Ur})])}function rte(t,e,r){if(r.maxRetries===0)return!1;const n=r.method==="GET"||r.method==="HEAD",a=(r.uri||r.url).startsWith("/data/query"),i=t.response&&(t.response.statusCode===429||t.response.statusCode===502||t.response.statusCode===503);return(n||a)&&i?!0:kN.shouldRetry(t,e,r)}const nte="https://www.sanity.io/help/";function QN(t){return nte+t}const F6=["image","file"],I6=["before","after","replace"],JU=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ste=t=>{if(!/^[-a-z0-9]+$/i.test(t))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},ate=t=>{if(F6.indexOf(t)===-1)throw new Error(`Invalid asset type: ${t}. Must be one of ${F6.join(", ")}`)},Gm=(t,e)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new Error(`${t}() takes an object of properties`)},XU=(t,e)=>{if(typeof e!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw new Error(`${t}(): "${e}" is not a valid document ID`)},eh=(t,e)=>{if(!e._id)throw new Error(`${t}() requires that the document contains an ID ("_id" property)`);XU(t,e._id)},ite=(t,e)=>{if(typeof e!="string")throw new Error(`\`${t}()\`: \`${e}\` is not a valid document type`)},ZU=(t,e)=>{if(!e._type)throw new Error(`\`${t}()\` requires that the document contains a type (\`_type\` property)`);ite(t,e._type)},ote=(t,e)=>{if(e._id&&e._id!==t)throw new Error(`The provided document ID (\`${e._id}\`) does not match the generated version ID (\`${t}\`)`)},lte=(t,e,r)=>{const n="insert(at, selector, items)";if(I6.indexOf(t)===-1){const a=I6.map(i=>`"${i}"`).join(", ");throw new Error(`${n} takes an "at"-argument which is one of: ${a}`)}if(typeof e!="string")throw new Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw new Error(`${n} takes an "items"-argument which must be an array`)},Ud=t=>{if(!t.dataset)throw new Error("`dataset` must be provided to perform queries");return t.dataset||""},e_=t=>{if(typeof t!="string"||!/^[a-z0-9._-]{1,75}$/i.test(t))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},t_=t=>{if(!t["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{if(r.split(".").length!==2)throw new Error('Dataset resource ID must be in the format "project.dataset"');return}case"dashboard":case"media-library":case"canvas":return;default:throw new Error(`Unsupported resource type: ${e.toString()}`)}},Ni=(t,e)=>{if(e["~experimental_resource"])throw new Error(`\`${t}\` does not support resource-based operations`)};function cte(t){let e=!1,r;return(...n)=>(e||(r=t(...n),e=!0),r)}const _d=t=>cte((...e)=>console.warn(t.join(" "),...e)),dte=_d(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),Ate=_d(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),ute=_d(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),hte=_d(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),mte=_d(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${QN("js-client-browser-token")} for more information and how to hide this warning.`]),fte=_d(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),pte=_d(["Using the Sanity client without specifying an API version is deprecated.",`See ${QN("js-client-api-version")}`]),gte="apicdn.sanity.io",qm={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},xte=["localhost","127.0.0.1","0.0.0.0"],yte=t=>xte.indexOf(t)!==-1;function vte(t){if(t==="1"||t==="X")return;const e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function r_(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw new TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}const n_=(t,e)=>{const r={...e,...t,stega:{...typeof e.stega=="boolean"?{enabled:e.stega}:e.stega||qm.stega,...typeof t.stega=="boolean"?{enabled:t.stega}:t.stega||{}}};r.apiVersion||pte();const n={...qm,...r},a=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){const h=QN("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${h}`)}if(a&&!n.projectId)throw new Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&t_(n),typeof n.perspective<"u"&&r_(n.perspective),"encodeSourceMap"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if(typeof n.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&n.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&typeof n.stega.studioUrl!="string"&&typeof n.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);const i=typeof window<"u"&&window.location&&window.location.hostname,o=i&&yte(window.location.hostname),l=!!n.token;n.withCredentials&&l&&(fte(),n.withCredentials=!1),i&&o&&l&&n.ignoreBrowserTokenWarning!==!0?mte():typeof n.useCdn>"u"&&Ate(),a&&ste(n.projectId),n.dataset&&JU(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?e_(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===qm.apiHost,n.useCdn===!0&&n.withCredentials&&dte(),n.useCdn=n.useCdn!==!1&&!n.withCredentials,vte(n.apiVersion);const c=n.apiHost.split("://",2),d=c[0],A=c[1],u=n.isDefaultApi?gte:A;return a?(n.url=`${d}://${n.projectId}.${A}/v${n.apiVersion}`,n.cdnUrl=`${d}://${n.projectId}.${u}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class s_ extends Error{constructor(){super(...arguments);it(this,"name","ConnectionFailedError")}}class bte extends Error{constructor(r,n,a={}){super(r,a);it(this,"name","DisconnectError");it(this,"reason");this.reason=n}}class wte extends Error{constructor(r,n){super(r);it(this,"name","ChannelError");it(this,"data");this.data=n}}class jte extends Error{constructor(r,n,a={}){super(r,a);it(this,"name","MessageError");it(this,"data");this.data=n}}class P6 extends Error{constructor(){super(...arguments);it(this,"name","MessageParseError")}}const Nte=["channelError","disconnect"];function a_(t,e){return RU(()=>{const r=t();return pee(r)?r:vv(r)}).pipe(vp(r=>Cte(r,e)))}function Cte(t,e){return new Ur(r=>{const n=e.includes("open"),a=e.includes("reconnect");function i(d){if("data"in d){const[A,u]=T6(d);r.error(A?new P6("Unable to parse EventSource error message",{cause:u}):new jte((u==null?void 0:u.data).message,u));return}t.readyState===t.CLOSED?r.error(new s_("EventSource connection failed")):a&&r.next({type:"reconnect"})}function o(){r.next({type:"open"})}function l(d){var h;const[A,u]=T6(d);if(A){r.error(new P6("Unable to parse EventSource message",{cause:A}));return}if(d.type==="channelError"){const m=new URL(t.url).searchParams.get("tag");r.error(new wte(Bte(u==null?void 0:u.data,m),u.data));return}if(d.type==="disconnect"){r.error(new bte(`Server disconnected client: ${((h=u.data)==null?void 0:h.reason)||"unknown error"}`));return}r.next({type:d.type,id:d.lastEventId,...u.data?{data:u.data}:{}})}t.addEventListener("error",i),n&&t.addEventListener("open",o);const c=[...new Set([...Nte,...e])].filter(d=>d!=="error"&&d!=="open"&&d!=="reconnect");return c.forEach(d=>t.addEventListener(d,l)),()=>{t.removeEventListener("error",i),n&&t.removeEventListener("open",o),c.forEach(d=>t.removeEventListener(d,l)),t.close()}})}function T6(t){try{const e=typeof t.data=="string"&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...Ste(e)?{}:{data:e}}]}catch(e){return[e,null]}}function Bte(t,e){const r=t.error;return r?qU(r)?YU(r,e):r.description?r.description:typeof r=="string"?r:JSON.stringify(r,null,2):t.message||"Unknown listener error"}function Ste(t){for(const e in t)return!1;return!0}function i_(t){if(typeof t=="string")return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if(typeof t=="object"&&t!==null&&"query"in t&&typeof t.query=="string")return"params"in t&&typeof t.params=="object"&&t.params!==null?{query:t.query,params:t.params}:{query:t.query};const e=["* Document ID ()","* Array of document IDs","* Object containing `query`"].join(` `);throw new Error(`Unknown selection - must be one of: ${e}`)}class o_{constructor(e,r={}){it(this,"selection");it(this,"operations");this.selection=e,this.operations=r}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return Gm("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,r,n){return lte(e,r,n),this._assign("insert",{[e]:r,items:n})}append(e,r){return this.insert("after",`${e}[-1]`,r)}prepend(e,r){return this.insert("before",`${e}[0]`,r)}splice(e,r,n,a){const i=typeof n>"u"||n===-1,o=r<0?r-1:r,l=i?-1:Math.max(0,r+n),c=o<0&&l>=0?"":l,d=`${e}[${o}:${c}]`;return this.insert("replace",d,a||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...i_(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,r,n=!0){return Gm(e,r),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},r)}),this}_set(e,r){return this._assign(e,r,!1)}}var Yc;const hC=class hC extends o_{constructor(r,n,a){super(r,n);Je(this,Yc);De(this,Yc,a)}clone(){return new hC(this.selection,{...this.operations},X(this,Yc))}commit(r){if(!X(this,Yc))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return X(this,Yc).mutate({patch:this.serialize()},a)}};Yc=new WeakMap;let id=hC;var Jc;const mC=class mC extends o_{constructor(r,n,a){super(r,n);Je(this,Jc);De(this,Jc,a)}clone(){return new mC(this.selection,{...this.operations},X(this,Jc))}commit(r){if(!X(this,Jc))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",a=Object.assign({returnFirst:n,returnDocuments:!0},r);return X(this,Jc).mutate({patch:this.serialize()},a)}};Jc=new WeakMap;let El=mC;const l_={returnDocuments:!1};class c_{constructor(e=[],r){it(this,"operations");it(this,"trxId");this.operations=e,this.trxId=r}create(e){return Gm("create",e),this._add({create:e})}createIfNotExists(e){const r="createIfNotExists";return Gm(r,e),eh(r,e),this._add({[r]:e})}createOrReplace(e){const r="createOrReplace";return Gm(r,e),eh(r,e),this._add({[r]:e})}delete(e){return XU("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}var co;const fC=class fC extends c_{constructor(r,n,a){super(r,a);Je(this,co);De(this,co,n)}clone(){return new fC([...this.operations],X(this,co),this.trxId)}commit(r){if(!X(this,co))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return X(this,co).mutate(this.serialize(),Object.assign({transactionId:this.trxId},l_,r||{}))}patch(r,n){const a=typeof n=="function",i=typeof r!="string"&&r instanceof El,o=typeof r=="object"&&("query"in r||"id"in r);if(i)return this._add({patch:r.serialize()});if(a){const l=n(new El(r,{},X(this,co)));if(!(l instanceof El))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:l.serialize()})}if(o){const l=new El(r,n||{},X(this,co));return this._add({patch:l.serialize()})}return this._add({patch:{id:r,...n}})}};co=new WeakMap;let ny=fC;var yl;const pC=class pC extends c_{constructor(r,n,a){super(r,a);Je(this,yl);De(this,yl,n)}clone(){return new pC([...this.operations],X(this,yl),this.trxId)}commit(r){if(!X(this,yl))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return X(this,yl).mutate(this.serialize(),Object.assign({transactionId:this.trxId},l_,r||{}))}patch(r,n){const a=typeof n=="function";if(typeof r!="string"&&r instanceof id)return this._add({patch:r.serialize()});if(a){const i=n(new id(r,{},X(this,yl)));if(!(i instanceof id))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:i.serialize()})}return this._add({patch:{id:r,...n}})}};yl=new WeakMap;let sy=pC;const kte="X-Sanity-Project-ID";function Ete(t,e={}){const r={};t.headers&&Object.assign(r,t.headers);const n=e.token||t.token;n&&(r.Authorization=`Bearer ${n}`),!e.useGlobalApi&&!t.useProjectHostname&&t.projectId&&(r[kte]=t.projectId);const a=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),i=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof i>"u"?5*60*1e3:i,proxy:e.proxy||t.proxy,json:!0,withCredentials:a,fetch:typeof e.fetch=="object"&&typeof t.fetch=="object"?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}const d_=({query:t,params:e={},options:r={}})=>{const n=new URLSearchParams,{tag:a,includeMutations:i,returnQuery:o,...l}=r;a&&n.append("tag",a),n.append("query",t);for(const[c,d]of Object.entries(e))d!==void 0&&n.append(`$${c}`,JSON.stringify(d));for(const[c,d]of Object.entries(l))d&&n.append(c,`${d}`);return o===!1&&n.append("returnQuery","false"),i===!1&&n.append("includeMutations","false"),`?${n}`},Fte=(t,e)=>t===!1?void 0:typeof t>"u"?e:t,Ite=(t={})=>({dryRun:t.dryRun,returnIds:!0,returnDocuments:Fte(t.returnDocuments,!0),visibility:t.visibility||"sync",autoGenerateArrayKeys:t.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:t.skipCrossDatasetReferenceValidation}),DN=t=>t.type==="response",Pte=t=>t.body,Tte=(t,e)=>t.reduce((r,n)=>(r[e(n)]=n,r),Object.create(null)),Lte=11264;function A_(t,e,r,n,a={},i={}){const o="stega"in i?{...r||{},...typeof i.stega=="boolean"?{enabled:i.stega}:i.stega||{}}:r,l=o.enabled?Qee(a):a,c=i.filterResponse===!1?g=>g:g=>g.result,{cache:d,next:A,...u}={useAbortSignal:typeof i.signal<"u",resultSourceMap:o.enabled?"withKeyArraySelector":i.resultSourceMap,...i,returnQuery:i.filterResponse===!1&&i.returnQuery!==!1},h=typeof d<"u"||typeof A<"u"?{...u,fetch:{cache:d,next:A}}:u,m=Md(t,e,"query",{query:n,params:l},h);return o.enabled?m.pipe(kee(yp(Li(()=>import("./stegaEncodeSourceMap-C9DuGIpn.js"),[]).then(function(g){return g.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:g})=>g))),Gn(([g,p])=>{const w=p(g.result,g.resultSourceMap,o);return c({...g,result:w})})):m.pipe(Gn(c))}function Cv(t,e,r,n={}){const a=(()=>{if(!n.releaseId)return r;const o=$U(r);if(!o){if(bv(r))throw new Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return jv(r,n.releaseId)}if(o!==n.releaseId)throw new Error(`The document ID (\`${r}\`) is already a version of \`${o}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})(),i={uri:Ca(t,"doc",a),json:!0,tag:n.tag,signal:n.signal};return wp(t,e,i).pipe(ph(DN),Gn(o=>o.body.documents&&o.body.documents[0]))}function u_(t,e,r,n={}){const a={uri:Ca(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return wp(t,e,a).pipe(ph(DN),Gn(i=>{const o=Tte(i.body.documents||[],l=>l._id);return r.map(l=>o[l]||null)}))}function h_(t,e,r,n={}){return Md(t,e,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function m_(t,e,r,n){return eh("createIfNotExists",r),Bv(t,e,r,"createIfNotExists",n)}function f_(t,e,r,n){return eh("createOrReplace",r),Bv(t,e,r,"createOrReplace",n)}function p_(t,e,r,n,a){return eh("createVersion",r),ZU("createVersion",r),Tr(t,e,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},a)}function g_(t,e,r,n){return Md(t,e,"mutate",{mutations:[{delete:i_(r)}]},n)}function x_(t,e,r,n=!1,a){return Tr(t,e,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},a)}function y_(t,e,r,n){return eh("replaceVersion",r),ZU("replaceVersion",r),Tr(t,e,{actionType:"sanity.action.document.version.replace",document:r},n)}function v_(t,e,r,n,a){return Tr(t,e,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},a)}function b_(t,e,r,n){let a;r instanceof El||r instanceof id?a={patch:r.serialize()}:r instanceof ny||r instanceof sy?a=r.serialize():a=r;const i=Array.isArray(a)?a:[a],o=n&&n.transactionId||void 0;return Md(t,e,"mutate",{mutations:i,transactionId:o},n)}function Tr(t,e,r,n){const a=Array.isArray(r)?r:[r],i=n&&n.transactionId||void 0,o=n&&n.skipCrossDatasetReferenceValidation||void 0,l=n&&n.dryRun||void 0;return Md(t,e,"actions",{actions:a,transactionId:i,skipCrossDatasetReferenceValidation:o,dryRun:l},n)}function Md(t,e,r,n,a={}){const i=r==="mutate",o=r==="actions",l=r==="query",c=i||o?"":d_(n),d=!i&&!o&&c.length{if(!i)return F;const U=F.results||[];if(a.returnDocuments)return u?U[0]&&U[0].document:U.map(W=>W.document);const M=u?"documentId":"documentIds",P=u?U[0]&&U[0].id:U.map(W=>W.id);return{transactionId:F.transactionId,results:U,[M]:P}}))}function Bv(t,e,r,n,a={}){const i={[n]:r},o=Object.assign({returnFirst:!0,returnDocuments:!0},a);return Md(t,e,"mutate",{mutations:[i]},o)}const bp=t=>t.config().dataset!==void 0&&t.config().projectId!==void 0||t.config()["~experimental_resource"]!==void 0,w_=(t,e)=>bp(t)&&e.startsWith(Ca(t,"query")),Ute=(t,e)=>bp(t)&&e.startsWith(Ca(t,"mutate")),_te=(t,e)=>bp(t)&&e.startsWith(Ca(t,"doc","")),Mte=(t,e)=>bp(t)&&e.startsWith(Ca(t,"listen")),Qte=(t,e)=>bp(t)&&e.startsWith(Ca(t,"history","")),Dte=(t,e)=>e.startsWith("/data/")||w_(t,e)||Ute(t,e)||_te(t,e)||Mte(t,e)||Qte(t,e);function wp(t,e,r){const n=r.url||r.uri,a=t.config(),i=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&Dte(t,n):r.canUseCdn;let o=(r.useCdn??a.useCdn)&&i;const l=r.tag&&a.requestTagPrefix?[a.requestTagPrefix,r.tag].join("."):r.tag||a.requestTagPrefix;if(l&&r.tag!==null&&(r.query={tag:e_(l),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&w_(t,n)){const A=r.resultSourceMap??a.resultSourceMap;A!==void 0&&A!==!1&&(r.query={resultSourceMap:A,...r.query});const u=r.perspective||a.perspective;typeof u<"u"&&(u==="previewDrafts"&&hte(),r_(u),r.query={perspective:Array.isArray(u)?u.join(","):u,...r.query},(Array.isArray(u)&&u.length>0||u==="previewDrafts"||u==="drafts")&&o&&(o=!1,ute())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),r.returnQuery===!1&&(r.query={returnQuery:"false",...r.query}),o&&r.cacheMode=="noStale"&&(r.query={cacheMode:"noStale",...r.query})}const c=Ete(a,Object.assign({},r,{url:RN(t,n,o)})),d=new Ur(A=>e(c,a.requester).subscribe(A));return r.signal?d.pipe(Rte(r.signal)):d}function qn(t,e,r){return wp(t,e,r).pipe(ph(n=>n.type==="response"),Gn(n=>n.body))}function Ca(t,e,r){const n=t.config();if(n["~experimental_resource"]){t_(n);const o=Kte(n),l=r!==void 0?`${e}/${r}`:e;return`${o}/${l}`.replace(/\/($|\?)/,"$1")}const a=Ud(n),i=`/${e}/${a}`;return`/data${r!==void 0?`${i}/${r}`:i}`.replace(/\/($|\?)/,"$1")}function RN(t,e,r=!1){const{url:n,cdnUrl:a}=t.config();return`${r?a:n}/${e.replace(/^\//,"")}`}function Rte(t){return e=>new Ur(r=>{const n=()=>r.error(Hte(t));if(t&&t.aborted){n();return}const a=e.subscribe(r);return t.addEventListener("abort",n),()=>{t.removeEventListener("abort",n),a.unsubscribe()}})}const Ote=!!globalThis.DOMException;function Hte(t){if(Ote)return new DOMException((t==null?void 0:t.reason)??"The operation was aborted.","AbortError");const e=new Error((t==null?void 0:t.reason)??"The operation was aborted.");return e.name="AbortError",e}const Kte=t=>{if(!t["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{const n=r.split(".");if(n.length!==2)throw new Error('Dataset ID must be in the format "project.dataset"');return`/projects/${n[0]}/datasets/${n[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw new Error(`Unsupported resource type: ${e.toString()}`)}};function j_(t,e,r){const n=Ud(t.config());return qn(t,e,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function Vte(t,e,r){const n=Ud(t.config());return qn(t,e,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}function zte(t,e,r){const n=Ud(t.config());return qn(t,e,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}function N_(t,e,r){const n=Ud(t.config());return qn(t,e,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function C_(t,e,r){const n=Ud(t.config());return qn(t,e,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}var Xc,Zc;class Wte{constructor(e,r){Je(this,Xc);Je(this,Zc);De(this,Xc,e),De(this,Zc,r)}generate(e){return j_(X(this,Xc),X(this,Zc),e)}transform(e){return N_(X(this,Xc),X(this,Zc),e)}translate(e){return C_(X(this,Xc),X(this,Zc),e)}}Xc=new WeakMap,Zc=new WeakMap;var Ao,uo;class $te{constructor(e,r){Je(this,Ao);Je(this,uo);De(this,Ao,e),De(this,uo,r)}generate(e){return Ut(j_(X(this,Ao),X(this,uo),e))}transform(e){return Ut(N_(X(this,Ao),X(this,uo),e))}translate(e){return Ut(C_(X(this,Ao),X(this,uo),e))}prompt(e){return Ut(zte(X(this,Ao),X(this,uo),e))}patch(e){return Ut(Vte(X(this,Ao),X(this,uo),e))}}Ao=new WeakMap,uo=new WeakMap;var Jf,Xf;class Gte{constructor(e,r){Je(this,Jf);Je(this,Xf);De(this,Jf,e),De(this,Xf,r)}upload(e,r,n){return B_(X(this,Jf),X(this,Xf),e,r,n)}}Jf=new WeakMap,Xf=new WeakMap;var Zf,ep;class qte{constructor(e,r){Je(this,Zf);Je(this,ep);De(this,Zf,e),De(this,ep,r)}upload(e,r,n){const a=B_(X(this,Zf),X(this,ep),e,r,n);return Ut(a.pipe(ph(i=>i.type==="response"),Gn(i=>i.body.document)))}}Zf=new WeakMap,ep=new WeakMap;function B_(t,e,r,n,a={}){ate(r);let i=a.extract||void 0;i&&!i.length&&(i=["none"]);const o=t.config(),l=Jte(a,n),{tag:c,label:d,title:A,description:u,creditLine:h,filename:m,source:g}=l,p={label:d,title:A,description:u,filename:m,meta:i,creditLine:h};return g&&(p.sourceId=g.id,p.sourceName=g.name,p.sourceUrl=g.url),wp(t,e,{tag:c,method:"POST",timeout:l.timeout||0,uri:Yte(o,r),headers:l.contentType?{"Content-Type":l.contentType}:{},query:p,body:n})}function Yte(t,e){const r=e==="image"?"images":"files";if(t["~experimental_resource"]){const{type:a,id:i}=t["~experimental_resource"];switch(a){case"dataset":throw new Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: , dataset: }` instead.");case"canvas":return`/canvases/${i}/assets/${r}`;case"media-library":return`/media-libraries/${i}/upload`;case"dashboard":return`/dashboards/${i}/assets/${r}`;default:throw new Error(`Unsupported resource type: ${a.toString()}`)}}const n=Ud(t);return`assets/${r}/${n}`}function Jte(t,e){return typeof File>"u"||!(e instanceof File)?t:Object.assign({filename:t.preserveFilename===!1?void 0:e.name,contentType:e.type},t)}var Xte=(t,e)=>Object.keys(e).concat(Object.keys(t)).reduce((r,n)=>(r[n]=typeof t[n]>"u"?e[n]:t[n],r),{});const Zte=(t,e)=>e.reduce((r,n)=>(typeof t[n]>"u"||(r[n]=t[n]),r),{}),S_=RU(()=>Li(()=>import("./browser-CUTq27Mw.js").then(t=>t.b),[])).pipe(Gn(({default:t})=>t),Eee(1));function k_(){return function(t){return t.pipe(_N((e,r)=>e instanceof s_?DU(vv({type:"reconnect"}),Nee(1e3).pipe(vp(()=>r))):_U(()=>e)))}}const ere=14800,tre=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],rre={includeResult:!0};function E_(t,e,r={}){const{url:n,token:a,withCredentials:i,requestTagPrefix:o,headers:l}=this.config(),c=r.tag&&o?[o,r.tag].join("."):r.tag,d={...Xte(r,rre),tag:c},A=Zte(d,tre),u=d_({query:t,params:e,options:{tag:c,...A}}),h=`${n}${Ca(this,"listen",u)}`;if(h.length>ere)return _U(()=>new Error("Query too large for listener"));const m=d.events?d.events:["mutation"],g={};return i&&(g.withCredentials=!0),(a||l)&&(g.headers={},a&&(g.headers.Authorization=`Bearer ${a}`),l&&Object.assign(g.headers,l)),a_(()=>(typeof EventSource>"u"||g.headers?S_:vv(EventSource)).pipe(Gn(p=>new p(h,g))),m).pipe(k_(),ph(p=>m.includes(p.type)),Gn(p=>({type:p.type,..."data"in p?p.data:{}})))}function nre(t,e){return sre(typeof t=="function"?{predicate:t,...e}:t)}function sre(t){return e=>{let r,n=!1;const{predicate:a,...i}=t,o=e.pipe(Fee(c=>{t.predicate(c)&&(n=!0,r=c)}),HU(()=>{n=!1,r=void 0}),KU(i)),l=new Ur(c=>{n&&c.next(r),c.complete()});return Cee(o,l)}}const L6="2021-03-25";var vl;class F_{constructor(e){Je(this,vl);De(this,vl,e)}events({includeDrafts:e=!1,tag:r}={}){Ni("live",X(this,vl).config());const{projectId:n,apiVersion:a,token:i,withCredentials:o,requestTagPrefix:l,headers:c}=X(this,vl).config(),d=a.replace(/^v/,"");if(d!=="X"&&d(typeof EventSource>"u"||m.headers?S_:vv(EventSource)).pipe(Gn(j=>new j(u.href,m))),["message","restart","welcome","reconnect","goaway"]).pipe(k_(),Gn(j=>{if(j.type==="message"){const{data:S,...F}=j;return{...F,tags:S.tags}}return j})),y=are(u,{method:"OPTIONS",mode:"cors",credentials:m.withCredentials?"include":"omit",headers:m.headers}).pipe(vp(()=>wU),_N(()=>{throw new Zee({projectId:n})})),v=DU(y,w).pipe(HU(()=>qw.delete(g)),nre({predicate:j=>j.type==="welcome"}));return qw.set(g,v),v}}vl=new WeakMap;function are(t,e){return new Ur(r=>{const n=new AbortController,a=n.signal;return fetch(t,{...e,signal:n.signal}).then(i=>{r.next(i),r.complete()},i=>{a.aborted||r.error(i)}),()=>n.abort()})}const qw=new Map;var bl,wl;class ire{constructor(e,r){Je(this,bl);Je(this,wl);De(this,bl,e),De(this,wl,r)}create(e,r){return gu(X(this,bl),X(this,wl),"PUT",e,r)}edit(e,r){return gu(X(this,bl),X(this,wl),"PATCH",e,r)}delete(e){return gu(X(this,bl),X(this,wl),"DELETE",e)}list(){return qn(X(this,bl),X(this,wl),{uri:"/datasets",tag:null})}}bl=new WeakMap,wl=new WeakMap;var ha,jl;class ore{constructor(e,r){Je(this,ha);Je(this,jl);De(this,ha,e),De(this,jl,r)}create(e,r){return Ni("dataset",X(this,ha).config()),Ut(gu(X(this,ha),X(this,jl),"PUT",e,r))}edit(e,r){return Ni("dataset",X(this,ha).config()),Ut(gu(X(this,ha),X(this,jl),"PATCH",e,r))}delete(e){return Ni("dataset",X(this,ha).config()),Ut(gu(X(this,ha),X(this,jl),"DELETE",e))}list(){return Ni("dataset",X(this,ha).config()),Ut(qn(X(this,ha),X(this,jl),{uri:"/datasets",tag:null}))}}ha=new WeakMap,jl=new WeakMap;function gu(t,e,r,n,a){return Ni("dataset",t.config()),JU(n),qn(t,e,{method:r,uri:`/datasets/${n}`,body:a,tag:null})}var Nl,Uu;class lre{constructor(e,r){Je(this,Nl);Je(this,Uu);De(this,Nl,e),De(this,Uu,r)}list(e){Ni("projects",X(this,Nl).config());const r=(e==null?void 0:e.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return qn(X(this,Nl),X(this,Uu),{uri:r})}getById(e){return Ni("projects",X(this,Nl).config()),qn(X(this,Nl),X(this,Uu),{uri:`/projects/${e}`})}}Nl=new WeakMap,Uu=new WeakMap;var Cl,_u;class cre{constructor(e,r){Je(this,Cl);Je(this,_u);De(this,Cl,e),De(this,_u,r)}list(e){Ni("projects",X(this,Cl).config());const r=(e==null?void 0:e.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return Ut(qn(X(this,Cl),X(this,_u),{uri:r}))}getById(e){return Ni("projects",X(this,Cl).config()),Ut(qn(X(this,Cl),X(this,_u),{uri:`/projects/${e}`}))}}Cl=new WeakMap,_u=new WeakMap;const U6=Vee("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),ay=(t,e)=>e?jv(t,e):Oee(t);function iy(t,{releaseId:e,publishedId:r,document:n}){if(r&&n._id){const a=ay(r,e);return ote(a,n),a}if(n._id){const a=bv(n._id),i=wv(n._id);if(!a&&!i)throw new Error(`\`${t}()\` requires a document with an \`_id\` that is a version or draft ID`);if(e){if(a)throw new Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${e}\`) was also provided.`);const o=$U(n._id);if(o!==e)throw new Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${e}\`) does not match the document's version ID (\`${o}\`).`)}return n._id}if(r)return ay(r,e);throw new Error(`\`${t}()\` requires either a publishedId or a document with an \`_id\``)}const dre=(t,e)=>{if(typeof t=="object"&&t!==null&&("releaseId"in t||"metadata"in t)){const{releaseId:r=U6(),metadata:n={}}=t;return[r,n,e]}return[U6(),{},t]},I_=(t,e)=>{const[r,n,a]=dre(t,e),i={...n,releaseType:n.releaseType||"undecided"};return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:i},options:a}};var ps,gs;class Are{constructor(e,r){Je(this,ps);Je(this,gs);De(this,ps,e),De(this,gs,r)}get({releaseId:e},r){return Cv(X(this,ps),X(this,gs),`_.releases.${e}`,r)}create(e,r){const{action:n,options:a}=I_(e,r),{releaseId:i,metadata:o}=n;return Tr(X(this,ps),X(this,gs),n,a).pipe(Gn(l=>({...l,releaseId:i,metadata:o})))}edit({releaseId:e,patch:r},n){const a={actionType:"sanity.action.release.edit",releaseId:e,patch:r};return Tr(X(this,ps),X(this,gs),a,n)}publish({releaseId:e},r){const n={actionType:"sanity.action.release.publish",releaseId:e};return Tr(X(this,ps),X(this,gs),n,r)}archive({releaseId:e},r){const n={actionType:"sanity.action.release.archive",releaseId:e};return Tr(X(this,ps),X(this,gs),n,r)}unarchive({releaseId:e},r){const n={actionType:"sanity.action.release.unarchive",releaseId:e};return Tr(X(this,ps),X(this,gs),n,r)}schedule({releaseId:e,publishAt:r},n){const a={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:r};return Tr(X(this,ps),X(this,gs),a,n)}unschedule({releaseId:e},r){const n={actionType:"sanity.action.release.unschedule",releaseId:e};return Tr(X(this,ps),X(this,gs),n,r)}delete({releaseId:e},r){const n={actionType:"sanity.action.release.delete",releaseId:e};return Tr(X(this,ps),X(this,gs),n,r)}fetchDocuments({releaseId:e},r){return h_(X(this,ps),X(this,gs),e,r)}}ps=new WeakMap,gs=new WeakMap;var xs,ys;class ure{constructor(e,r){Je(this,xs);Je(this,ys);De(this,xs,e),De(this,ys,r)}get({releaseId:e},r){return Ut(Cv(X(this,xs),X(this,ys),`_.releases.${e}`,r))}async create(e,r){const{action:n,options:a}=I_(e,r),{releaseId:i,metadata:o}=n;return{...await Ut(Tr(X(this,xs),X(this,ys),n,a)),releaseId:i,metadata:o}}edit({releaseId:e,patch:r},n){const a={actionType:"sanity.action.release.edit",releaseId:e,patch:r};return Ut(Tr(X(this,xs),X(this,ys),a,n))}publish({releaseId:e},r){const n={actionType:"sanity.action.release.publish",releaseId:e};return Ut(Tr(X(this,xs),X(this,ys),n,r))}archive({releaseId:e},r){const n={actionType:"sanity.action.release.archive",releaseId:e};return Ut(Tr(X(this,xs),X(this,ys),n,r))}unarchive({releaseId:e},r){const n={actionType:"sanity.action.release.unarchive",releaseId:e};return Ut(Tr(X(this,xs),X(this,ys),n,r))}schedule({releaseId:e,publishAt:r},n){const a={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:r};return Ut(Tr(X(this,xs),X(this,ys),a,n))}unschedule({releaseId:e},r){const n={actionType:"sanity.action.release.unschedule",releaseId:e};return Ut(Tr(X(this,xs),X(this,ys),n,r))}delete({releaseId:e},r){const n={actionType:"sanity.action.release.delete",releaseId:e};return Ut(Tr(X(this,xs),X(this,ys),n,r))}fetchDocuments({releaseId:e},r){return Ut(h_(X(this,xs),X(this,ys),e,r))}}xs=new WeakMap,ys=new WeakMap;var tp,rp;class hre{constructor(e,r){Je(this,tp);Je(this,rp);De(this,tp,e),De(this,rp,r)}getById(e){return qn(X(this,tp),X(this,rp),{uri:`/users/${e}`})}}tp=new WeakMap,rp=new WeakMap;var np,sp;class mre{constructor(e,r){Je(this,np);Je(this,sp);De(this,np,e),De(this,sp,r)}getById(e){return Ut(qn(X(this,np),X(this,sp),{uri:`/users/${e}`}))}}np=new WeakMap,sp=new WeakMap;var ho,lr;const Ey=class Ey{constructor(e,r=qm){it(this,"assets");it(this,"datasets");it(this,"live");it(this,"projects");it(this,"users");it(this,"agent");it(this,"releases");Je(this,ho);Je(this,lr);it(this,"listen",E_);this.config(r),De(this,lr,e),this.assets=new Gte(this,X(this,lr)),this.datasets=new ire(this,X(this,lr)),this.live=new F_(this),this.projects=new lre(this,X(this,lr)),this.users=new hre(this,X(this,lr)),this.agent={action:new Wte(this,X(this,lr))},this.releases=new Are(this,X(this,lr))}clone(){return new Ey(X(this,lr),this.config())}config(e){if(e===void 0)return{...X(this,ho)};if(X(this,ho)&&X(this,ho).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return De(this,ho,n_(e,X(this,ho)||{})),this}withConfig(e){const r=this.config();return new Ey(X(this,lr),{...r,...e,stega:{...r.stega||{},...typeof(e==null?void 0:e.stega)=="boolean"?{enabled:e.stega}:(e==null?void 0:e.stega)||{}}})}fetch(e,r,n){return A_(this,X(this,lr),X(this,ho).stega,e,r,n)}getDocument(e,r){return Cv(this,X(this,lr),e,r)}getDocuments(e,r){return u_(this,X(this,lr),e,r)}create(e,r){return Bv(this,X(this,lr),e,"create",r)}createIfNotExists(e,r){return m_(this,X(this,lr),e,r)}createOrReplace(e,r){return f_(this,X(this,lr),e,r)}createVersion({document:e,publishedId:r,releaseId:n},a){const i=iy("createVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:i},l=r||Nv(e._id);return p_(this,X(this,lr),o,l,a)}delete(e,r){return g_(this,X(this,lr),e,r)}discardVersion({releaseId:e,publishedId:r},n,a){const i=ay(r,e);return x_(this,X(this,lr),i,n,a)}replaceVersion({document:e,publishedId:r,releaseId:n},a){const i=iy("replaceVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:i};return y_(this,X(this,lr),o,a)}unpublishVersion({releaseId:e,publishedId:r},n){const a=jv(r,e);return v_(this,X(this,lr),a,r,n)}mutate(e,r){return b_(this,X(this,lr),e,r)}patch(e,r){return new id(e,r,this)}transaction(e){return new sy(e,this)}action(e,r){return Tr(this,X(this,lr),e,r)}request(e){return qn(this,X(this,lr),e)}getUrl(e,r){return RN(this,e,r)}getDataUrl(e,r){return Ca(this,e,r)}};ho=new WeakMap,lr=new WeakMap;let yj=Ey;var mo,nr;const Fy=class Fy{constructor(e,r=qm){it(this,"assets");it(this,"datasets");it(this,"live");it(this,"projects");it(this,"users");it(this,"agent");it(this,"releases");it(this,"observable");Je(this,mo);Je(this,nr);it(this,"listen",E_);this.config(r),De(this,nr,e),this.assets=new qte(this,X(this,nr)),this.datasets=new ore(this,X(this,nr)),this.live=new F_(this),this.projects=new cre(this,X(this,nr)),this.users=new mre(this,X(this,nr)),this.agent={action:new $te(this,X(this,nr))},this.releases=new ure(this,X(this,nr)),this.observable=new yj(e,r)}clone(){return new Fy(X(this,nr),this.config())}config(e){if(e===void 0)return{...X(this,mo)};if(X(this,mo)&&X(this,mo).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),De(this,mo,n_(e,X(this,mo)||{})),this}withConfig(e){const r=this.config();return new Fy(X(this,nr),{...r,...e,stega:{...r.stega||{},...typeof(e==null?void 0:e.stega)=="boolean"?{enabled:e.stega}:(e==null?void 0:e.stega)||{}}})}fetch(e,r,n){return Ut(A_(this,X(this,nr),X(this,mo).stega,e,r,n))}getDocument(e,r){return Ut(Cv(this,X(this,nr),e,r))}getDocuments(e,r){return Ut(u_(this,X(this,nr),e,r))}create(e,r){return Ut(Bv(this,X(this,nr),e,"create",r))}createIfNotExists(e,r){return Ut(m_(this,X(this,nr),e,r))}createOrReplace(e,r){return Ut(f_(this,X(this,nr),e,r))}createVersion({document:e,publishedId:r,releaseId:n},a){const i=iy("createVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:i},l=r||Nv(e._id);return N6(p_(this,X(this,nr),o,l,a))}delete(e,r){return Ut(g_(this,X(this,nr),e,r))}discardVersion({releaseId:e,publishedId:r},n,a){const i=ay(r,e);return Ut(x_(this,X(this,nr),i,n,a))}replaceVersion({document:e,publishedId:r,releaseId:n},a){const i=iy("replaceVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:i};return N6(y_(this,X(this,nr),o,a))}unpublishVersion({releaseId:e,publishedId:r},n){const a=jv(r,e);return Ut(v_(this,X(this,nr),a,r,n))}mutate(e,r){return Ut(b_(this,X(this,nr),e,r))}patch(e,r){return new El(e,r,this)}transaction(e){return new ny(e,this)}action(e,r){return Ut(Tr(this,X(this,nr),e,r))}request(e){return Ut(qn(this,X(this,nr),e))}dataRequest(e,r,n){return Ut(Md(this,X(this,nr),e,r,n))}getUrl(e,r){return RN(this,e,r)}getDataUrl(e,r){return Ca(this,e,r)}};mo=new WeakMap,nr=new WeakMap;let vj=Fy;function fre(t,e){return{requester:E6(t),createClient:r=>{const n=E6(t);return new e((a,i)=>(i||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,...a}),r)}}}var pre=[];const gre=fre(pre,vj),xre=gre.createClient;var P_={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Gs,function(){function r(){return r=Object.assign||function(B){for(var k=1;kB.length)&&(k=B.length);for(var _=0,T=new Array(k);_=B.length?{done:!0}:{done:!1,value:B[T++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function l(B){var k=B.split("-"),_=k[1],T=k[2],oe=k[3];if(!_||!T||!oe)throw new Error("Malformed asset _ref '"+B+`'. Expected an id like "`+o+'".');var V=T.split("x"),J=V[0],Q=V[1],q=+J,ie=+Q,te=isFinite(q)&&isFinite(ie);if(!te)throw new Error("Malformed asset _ref '"+B+`'. Expected an id like "`+o+'".');return{id:_,width:q,height:ie,format:oe}}var c=function(k){var _=k;return _?typeof _._ref=="string":!1},d=function(k){var _=k;return _?typeof _._id=="string":!1},A=function(k){var _=k;return _&&_.asset?typeof _.asset.url=="string":!1};function u(B){if(!B)return null;var k;if(typeof B=="string"&&h(B))k={asset:{_ref:m(B)}};else if(typeof B=="string")k={asset:{_ref:B}};else if(c(B))k={asset:B};else if(d(B))k={asset:{_ref:B._id||""}};else if(A(B))k={asset:{_ref:m(B.asset.url)}};else if(typeof B.asset=="object")k=r({},B);else return null;var _=B;return _.crop&&(k.crop=_.crop),_.hotspot&&(k.hotspot=_.hotspot),g(k)}function h(B){return/^https?:\/\//.test(""+B)}function m(B){var k=B.split("/").slice(-1);return("image-"+k[0]).replace(/\.([a-z]+)$/,"-$1")}function g(B){if(B.crop&&B.hotspot)return B;var k=r({},B);return k.crop||(k.crop={left:0,top:0,bottom:0,right:0}),k.hotspot||(k.hotspot={x:.5,y:.5,height:1,width:1}),k}var p=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function w(B){var k=r({},B||{}),_=k.source;delete k.source;var T=u(_);if(!T)throw new Error("Unable to resolve image URL from source ("+JSON.stringify(_)+")");var oe=T.asset._ref||T.asset._id||"",V=l(oe),J=Math.round(T.crop.left*V.width),Q=Math.round(T.crop.top*V.height),q={left:J,top:Q,width:Math.round(V.width-T.crop.right*V.width-J),height:Math.round(V.height-T.crop.bottom*V.height-Q)},ie=T.hotspot.height*V.height/2,te=T.hotspot.width*V.width/2,I=T.hotspot.x*V.width,L=T.hotspot.y*V.height,K={left:I-te,top:L-ie,right:I+te,bottom:L+ie};return k.rect||k.focalPoint||k.ignoreImageParams||k.crop||(k=r({},k,v({crop:q,hotspot:K},k))),y(r({},k,{asset:V}))}function y(B){var k=(B.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),_=B.vanityName?"/"+B.vanityName:"",T=B.asset.id+"-"+B.asset.width+"x"+B.asset.height+"."+B.asset.format+_,oe=k+"/images/"+B.projectId+"/"+B.dataset+"/"+T,V=[];if(B.rect){var J=B.rect,Q=J.left,q=J.top,ie=J.width,te=J.height,I=Q!==0||q!==0||te!==B.asset.height||ie!==B.asset.width;I&&V.push("rect="+Q+","+q+","+ie+","+te)}B.bg&&V.push("bg="+B.bg),B.focalPoint&&(V.push("fp-x="+B.focalPoint.x),V.push("fp-y="+B.focalPoint.y));var L=[B.flipHorizontal&&"h",B.flipVertical&&"v"].filter(Boolean).join("");return L&&V.push("flip="+L),p.forEach(function(K){var Z=K[0],ne=K[1];typeof B[Z]<"u"?V.push(ne+"="+encodeURIComponent(B[Z])):typeof B[ne]<"u"&&V.push(ne+"="+encodeURIComponent(B[ne]))}),V.length===0?oe:oe+"?"+V.join("&")}function v(B,k){var _,T=k.width,oe=k.height;if(!(T&&oe))return{width:T,height:oe,rect:B.crop};var V=B.crop,J=B.hotspot,Q=T/oe,q=V.width/V.height;if(q>Q){var ie=Math.round(V.height),te=Math.round(ie*Q),I=Math.max(0,Math.round(V.top)),L=Math.round((J.right-J.left)/2+J.left),K=Math.max(0,Math.round(L-te/2));KV.left+V.width&&(K=V.left+V.width-te),_={left:K,top:I,width:te,height:ie}}else{var Z=V.width,ne=Math.round(Z/Q),Y=Math.max(0,Math.round(V.left)),se=Math.round((J.bottom-J.top)/2+J.top),ce=Math.max(0,Math.round(se-ne/2));ceV.top+V.height&&(ce=V.top+V.height-ne),_={left:Y,top:ce,width:Z,height:ne}}return{width:T,height:oe,rect:_}}var j=["clip","crop","fill","fillmax","max","scale","min"],S=["top","bottom","left","right","center","focalpoint","entropy"],F=["format"];function U(B){return B&&"config"in B?typeof B.config=="function":!1}function M(B){return B&&"clientConfig"in B?typeof B.clientConfig=="object":!1}function P(B){for(var k=p,_=i(k),T;!(T=_()).done;){var oe=T.value,V=oe[0],J=oe[1];if(B===V||B===J)return V}return B}function W(B){if(U(B)){var k=B.config(),_=k.apiHost,T=k.projectId,oe=k.dataset,V=_||"https://api.sanity.io";return new $(null,{baseUrl:V.replace(/^https:\/\/api\./,"https://cdn."),projectId:T,dataset:oe})}if(M(B)){var J=B.clientConfig,Q=J.apiHost,q=J.projectId,ie=J.dataset,te=Q||"https://api.sanity.io";return new $(null,{baseUrl:te.replace(/^https:\/\/api\./,"https://cdn."),projectId:q,dataset:ie})}return new $(null,B||{})}var $=function(){function B(_,T){this.options=void 0,this.options=_?r({},_.options||{},T||{}):r({},T||{})}var k=B.prototype;return k.withOptions=function(T){var oe=T.baseUrl||this.options.baseUrl,V={baseUrl:oe};for(var J in T)if(T.hasOwnProperty(J)){var Q=P(J);V[Q]=T[J]}return new B(this,r({baseUrl:oe},V))},k.image=function(T){return this.withOptions({source:T})},k.dataset=function(T){return this.withOptions({dataset:T})},k.projectId=function(T){return this.withOptions({projectId:T})},k.bg=function(T){return this.withOptions({bg:T})},k.dpr=function(T){return this.withOptions(T&&T!==1?{dpr:T}:{})},k.width=function(T){return this.withOptions({width:T})},k.height=function(T){return this.withOptions({height:T})},k.focalPoint=function(T,oe){return this.withOptions({focalPoint:{x:T,y:oe}})},k.maxWidth=function(T){return this.withOptions({maxWidth:T})},k.minWidth=function(T){return this.withOptions({minWidth:T})},k.maxHeight=function(T){return this.withOptions({maxHeight:T})},k.minHeight=function(T){return this.withOptions({minHeight:T})},k.size=function(T,oe){return this.withOptions({width:T,height:oe})},k.blur=function(T){return this.withOptions({blur:T})},k.sharpen=function(T){return this.withOptions({sharpen:T})},k.rect=function(T,oe,V,J){return this.withOptions({rect:{left:T,top:oe,width:V,height:J}})},k.format=function(T){return this.withOptions({format:T})},k.invert=function(T){return this.withOptions({invert:T})},k.orientation=function(T){return this.withOptions({orientation:T})},k.quality=function(T){return this.withOptions({quality:T})},k.forceDownload=function(T){return this.withOptions({download:T})},k.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},k.flipVertical=function(){return this.withOptions({flipVertical:!0})},k.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},k.fit=function(T){if(j.indexOf(T)===-1)throw new Error('Invalid fit mode "'+T+'"');return this.withOptions({fit:T})},k.crop=function(T){if(S.indexOf(T)===-1)throw new Error('Invalid crop mode "'+T+'"');return this.withOptions({crop:T})},k.saturation=function(T){return this.withOptions({saturation:T})},k.auto=function(T){if(F.indexOf(T)===-1)throw new Error('Invalid auto mode "'+T+'"');return this.withOptions({auto:T})},k.pad=function(T){return this.withOptions({pad:T})},k.vanityName=function(T){return this.withOptions({vanityName:T})},k.frame=function(T){if(T!==1)throw new Error('Invalid frame value "'+T+'"');return this.withOptions({frame:T})},k.url=function(){return w(this.options)},k.toString=function(){return this.url()},B}();return W})})(P_);var yre=P_.exports;const vre=Sd(yre),Zs=xre({projectId:"xlca64jt",dataset:"production",useCdn:!1,apiVersion:"2024-01-01"});vre(Zs);async function bre(){return Zs.fetch(` *[_type == "post"] | order(publishedAt desc) { _id, title, slug, summary, publishedAt, author, category, categoryV2, readingTime, cardImage, featured, seoTitle, metaDescription } `)}async function wre(t){return Zs.fetch(` *[_type == "post" && slug.current == $slug][0] { _id, title, slug, summary, body, publishedAt, author, category, categoryV2, readingTime, cardImage, featuredCardImage, featured, seoTitle, metaDescription, openGraphTitle } `,{slug:t})}async function jre(){return Zs.fetch(` *[_type == "salesConfession" && draft != true] | order(publishedAt desc) { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, companyLogo, backgroundColor, videoLink, spotifyLink, googlePodcastLink, applePodcastLink } `)}async function Nre(t){return Zs.fetch(` *[_type == "salesConfession" && slug.current == $slug && draft != true][0] { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, companyLogo, summary, videoLink, wistiaLink, spotifyLink, googlePodcastLink, applePodcastLink, backgroundColor, titleTag, metaDescription, ogImage } `,{slug:t})}async function Cre(){return Zs.fetch(` *[_type == "mopsConfession" && draft != true && _id != "A9JNkQb7hfi1DDE5VVN4Sb"] | order(publishedAt desc) { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, companyLogo, backgroundColor, videoLink, spotifyLink, googlePodcastLink, applePodcastLink, ogImage } `)}async function Bre(t){return Zs.fetch(` *[_type == "mopsConfession" && slug.current == $slug && draft != true && _id != "A9JNkQb7hfi1DDE5VVN4Sb"][0] { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, companyLogo, summary, videoLink, wistiaLink, spotifyLink, googlePodcastLink, applePodcastLink, backgroundColor, titleTag, metaDescription, ogImage } `,{slug:t})}async function Sre(){return Zs.fetch(` *[_type == "plgConfession" && draft != true && !(_id match "plg-confession-*")] | order(publishedAt desc) { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, powerDuoHeadshot, powerDuoAlt, powerDuo, companyLogo, backgroundColor, videoLink, spotifyLink, googlePodcastLink, applePodcastLink } `)}async function kre(t){return Zs.fetch(` *[_type == "plgConfession" && slug.current == $slug && draft != true && !(_id match "plg-confession-*")][0] { _id, name, slug, publishedAt, interviewTitle, subhead, jobTitle, headshot, headshotAlt, headshotShape, powerDuoHeadshot, powerDuoAlt, powerDuo, companyLogo, summary, videoLink, wistiaLink, podcastCode, spotifyLink, googlePodcastLink, applePodcastLink, backgroundColor, titleTag, metaDescription, ogImage } `,{slug:t})}async function Ere(){return Zs.fetch(` *[_type == "universityArticle" && draft != true && archived != true] | order(publishedAt desc) { _id, name, slug, publishedAt, summary, mainImage, icon, video, topic, categories, featured, color, seoTitle, metaDescription } `)}async function Fre(t){return Zs.fetch(` *[_type == "universityArticle" && slug.current == $slug && draft != true && archived != true][0] { _id, name, slug, publishedAt, summary, content, mainImage, icon, video, topic, categories, featured, color, seoTitle, metaDescription, webflowId, createdOn, updatedOn } `,{slug:t})}async function Ire(){return Zs.fetch(` *[_type == "customer" && draft != true && archived != true] | order(sortNumber asc, publishedOn desc) { _id, name, slug, client, headline, companyIndustry, companySize, mainImage, logo, statsHeadline, solutionOffered, sortNumber } `)}async function Pre(t){return Zs.fetch(` *[_type == "customer" && slug.current == $slug && draft != true][0] { _id, name, slug, client, headline, companyIndustry, companyLocation, companySize, mainImage, logo, clientImage, projectIntro, projectDetails, statsHeadline, customerQuote, position, box1Headline, box1Stats1, box1Stats2, box2Headline, box2Stats, box3Headline, box3Stats1, box3Stats2, box4Headline, box4Stats, seoTitle, seoDescription, solutionOffered, solutions, sizeRange, publishedOn } `,{slug:t})}const Tre=()=>{const[t,e]=b.useState([]),[r,n]=b.useState(!0);b.useEffect(()=>{document.title="Blog | MadKudu",(async()=>{try{console.log("Fetching posts from Sanity...");const c=await bre();console.log("Posts received:",(c==null?void 0:c.length)||0,c),e(c||[])}catch(c){console.error("Error fetching posts:",c)}finally{n(!1)}})()},[]);const a=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),i=l=>l?l.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "):"",o=l=>l?l.split("-").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "):"";return r?s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("div",{className:"pt-32 pb-16 px-4",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsxs("div",{className:"animate-pulse",children:[s.jsx("div",{className:"h-12 bg-gray-200 rounded mb-4"}),s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-8 w-1/2"}),s.jsx("div",{className:"space-y-6",children:[...Array(6)].map((l,c)=>s.jsx("div",{className:"h-32 bg-gray-200 rounded"},c))})]})})}),s.jsx(Qe,{})]}):s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-32 pb-16 px-4",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-[#1B2C4F] mb-6",children:"MadKudu Blog"}),s.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Insights, strategies, and best practices for revenue marketing, sales operations, and customer success."})]})}),s.jsx("section",{className:"pb-16 px-4",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:t.length===0?s.jsx("div",{className:"text-center text-gray-600",children:s.jsx("p",{children:"No blog posts found."})}):s.jsx("div",{className:"space-y-8",children:t.map(l=>s.jsx(kt,{to:`/blog/${l.slug.current}`,className:"block",children:s.jsx("article",{className:"bg-white border border-gray-200 rounded-xl p-6 hover:shadow-lg transition-all duration-200 hover:border-gray-300 cursor-pointer",children:s.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[l.cardImage&&s.jsx("div",{className:"md:w-1/3",children:s.jsx("img",{src:l.cardImage,alt:l.title,className:"w-full h-32 md:h-24 object-cover rounded-lg"})}),s.jsxs("div",{className:l.cardImage?"md:w-2/3":"w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-500 mb-3",children:[s.jsx("span",{children:a(l.publishedAt)}),l.readingTime&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"•"}),s.jsxs("span",{children:[l.readingTime," min read"]})]}),l.author&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"•"}),s.jsxs("span",{children:["By ",i(l.author)]})]})]}),s.jsx("h2",{className:"text-xl font-bold text-[#1B2C4F] mb-3 group-hover:text-blue-600 transition-colors",children:l.title}),l.summary&&s.jsx("p",{className:"text-gray-600 mb-4 line-clamp-3",children:l.summary}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("span",{className:"text-blue-600 font-medium inline-flex items-center gap-1",children:["Read more",s.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]}),(l.category||l.categoryV2)&&s.jsx("span",{className:"text-xs bg-gray-100 text-gray-600 px-3 py-1 rounded-full",children:o(l.categoryV2||l.category)})]})]})]})})},l._id))})})}),s.jsx("section",{className:"py-20 mx-4 sm:mx-6 lg:px-8 mb-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto bg-[#1B2C4E] rounded-2xl px-8 sm:px-12 lg:px-16 py-20",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"font-poppins font-normal text-white mb-4",style:{fontSize:"33px",lineHeight:"46px"},children:"Stay updated with our latest insights"}),s.jsx("p",{className:"text-gray-300 text-lg max-w-2xl mx-auto",children:"Get the latest blog posts, case studies, and industry insights delivered straight to your inbox."})]}),s.jsx("div",{className:"max-w-md mx-auto",children:s.jsx(cU,{portalId:"2272772",formId:"ebb6e057-29cd-4be4-896a-bde9fa263671",region:"na1",sfdcCampaignId:"701Qp00000ftqCrIAI",containerId:"hubspot-form-container-blog",onFormReady:()=>console.log("Blog newsletter form is ready"),onFormSubmitted:()=>console.log("Blog newsletter form submitted successfully"),showFallback:!0})})]})}),s.jsx(Qe,{})]})},Lre=({src:t,alt:e,isOpen:r,onClose:n})=>(b.useEffect(()=>{const a=i=>{i.key==="Escape"&&n()};return r&&(document.addEventListener("keydown",a),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",a),document.body.style.overflow="unset"}},[r,n]),r?s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center z-50 p-4",onClick:n,children:s.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[s.jsx("button",{onClick:n,className:"absolute top-4 right-4 text-white hover:text-gray-300 bg-black bg-opacity-50 rounded-full p-2 z-10",children:s.jsx(Na,{size:24})}),s.jsx("img",{src:t,alt:e,className:"max-w-full max-h-full object-contain",style:{maxWidth:"100vw",maxHeight:"100vh"},onClick:a=>a.stopPropagation()})]})}):null),Ure=()=>{const{slug:t}=To(),[e,r]=b.useState(null),[n,a]=b.useState(!0),[i,o]=b.useState(!1),[l,c]=b.useState(null),d=b.useRef(null);b.useEffect(()=>{(async()=>{if(!t){o(!0),a(!1);return}try{console.log("Fetching post with slug:",t);const g=await wre(t);console.log("Post data:",g),g?(r(g),document.title=`${g.title} | MadKudu`):(o(!0),document.title="Blog Post Not Found | MadKudu")}catch(g){console.error("Error fetching post:",g),o(!0)}finally{a(!1)}})()},[t]),b.useEffect(()=>{if(e&&d.current){const m=d.current.querySelectorAll("img");return m.forEach(g=>{g.style.cursor="pointer",g.addEventListener("click",()=>{c({src:g.src,alt:g.alt||"Blog image"})})}),()=>{m.forEach(g=>{g.removeEventListener("click",()=>{})})}}},[e]);const A=m=>new Date(m).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),u=m=>m?m.split("-").map(g=>g.charAt(0).toUpperCase()+g.slice(1)).join(" "):"",h=m=>m?m.split("-").map(g=>g.charAt(0).toUpperCase()+g.slice(1)).join(" "):"";return n?s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("div",{className:"pt-32 pb-16 px-4",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsxs("div",{className:"animate-pulse",children:[s.jsx("div",{className:"h-8 bg-gray-200 rounded mb-4 w-3/4"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-8 w-1/2"}),s.jsx("div",{className:"h-64 bg-gray-200 rounded mb-8"}),s.jsx("div",{className:"space-y-4",children:[...Array(8)].map((m,g)=>s.jsx("div",{className:"h-4 bg-gray-200 rounded"},g))})]})})}),s.jsx(Qe,{})]}):i||!e?s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("div",{className:"pt-32 pb-16 px-4",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h1",{className:"text-3xl font-bold text-[#1B2C4F] mb-4",children:"Blog Post Not Found"}),s.jsx("p",{className:"text-gray-600 mb-8",children:"The blog post you're looking for doesn't exist."}),s.jsx(kt,{to:"/blog",className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-800 font-medium",children:"← Back to Blog"})]})}),s.jsx(Qe,{})]}):s.jsxs("div",{className:"min-h-screen",children:[s.jsx(Me,{}),s.jsx("div",{className:"pt-32 pb-8 px-4",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsx(kt,{to:"/blog",className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-800 font-medium mb-8",children:"← Back to Blog"})})}),s.jsx("article",{className:"pb-16 px-4",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[(e.featuredCardImage||e.cardImage)&&s.jsx("div",{className:"mb-8",children:s.jsx("img",{src:e.featuredCardImage||e.cardImage,alt:e.title,className:"w-full h-48 md:h-64 object-cover rounded-xl"})}),s.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-[#1B2C4F] mt-16 mb-6",style:{lineHeight:"1.3"},children:e.title}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-gray-600 mb-8 pb-8 border-b border-gray-200",children:[s.jsx("span",{children:A(e.publishedAt)}),e.readingTime&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"•"}),s.jsxs("span",{children:[e.readingTime," min read"]})]}),e.author&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"•"}),s.jsxs("span",{children:["By ",u(e.author)]})]}),(e.category||e.categoryV2)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"•"}),s.jsx("span",{className:"bg-gray-100 text-gray-700 px-2 py-1 rounded-full text-xs",children:h(e.categoryV2||e.category)})]})]}),e.summary&&s.jsx("div",{className:"text-xl text-gray-700 mb-8 font-medium leading-relaxed",children:e.summary}),s.jsx("div",{className:"max-w-none",children:e.body?s.jsx("div",{ref:d,dangerouslySetInnerHTML:{__html:e.body},className:"blog-content"}):s.jsx("p",{className:"text-gray-600 italic",children:"No content available."})})]})}),s.jsx(Qe,{}),l&&s.jsx(Lre,{src:l.src,alt:l.alt,isOpen:!!l,onClose:()=>c(null)})]})},_re=Yy("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 oy({className:t,variant:e,...r}){return s.jsx("div",{className:At(_re({variant:e}),t),...r})}const T_=({customer:t})=>{const e=n=>{const a=["bg-gray-100 text-gray-600","bg-gray-100 text-gray-600","bg-gray-100 text-gray-600","bg-gray-100 text-gray-600","bg-gray-100 text-gray-600"];return a[n%a.length]},r=n=>{const a=[];return n.companySize&&(n.companySize.includes("5000")||parseInt(n.companySize)>1e3?a.push("Enterprise"):parseInt(n.companySize)>100?a.push("Mid-Market"):a.push("SMB")),n.companyIndustry&&a.push(n.companyIndustry),a.slice(0,2)};return s.jsx(yt,{className:"bg-white border border-gray-200 shadow-sm hover:shadow-md transition-shadow",children:s.jsxs(zt,{className:"p-0",children:[s.jsx(kt,{to:`/customers/${t.slug.current}`,children:s.jsx("div",{className:"aspect-[2/1] overflow-hidden rounded-t-lg bg-gray-100 cursor-pointer hover:opacity-90 transition-opacity",children:t.mainImage?s.jsx("img",{src:t.mainImage,alt:t.name,className:"w-full h-full object-cover"}):s.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.logo?s.jsx("img",{src:t.logo,alt:t.name,className:"max-h-20 max-w-[80%] object-contain"}):s.jsx("span",{className:"text-gray-400 text-lg",children:t.name})})})}),s.jsxs("div",{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3 leading-tight",children:t.headline||`${t.name} Success Story`}),t.statsHeadline&&s.jsx("div",{className:"mb-3",children:s.jsx(oy,{variant:"secondary",className:"bg-[#4ECDC4] text-white hover:bg-[#4ECDC4]/80",children:t.statsHeadline})}),s.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:r(t).map((n,a)=>s.jsx(oy,{variant:"outline",className:`text-xs ${e(a)}`,children:n},a))}),s.jsx("div",{className:"text-left",children:s.jsx(kt,{to:`/customers/${t.slug.current}`,className:"text-gray-700 hover:text-[#1F77CC] transition-colors duration-200 text-sm font-medium",children:"Read case study →"})})]})]})})},Mre=()=>s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((t,e)=>s.jsx(yt,{className:"bg-white border border-gray-200 shadow-sm",children:s.jsxs(zt,{className:"p-0",children:[s.jsx("div",{className:"aspect-[2/1] bg-gray-200 animate-pulse rounded-t-lg"}),s.jsxs("div",{className:"p-6",children:[s.jsx("div",{className:"h-6 bg-gray-200 rounded animate-pulse mb-3"}),s.jsx("div",{className:"h-6 bg-gray-200 rounded animate-pulse mb-3 w-3/4"}),s.jsx("div",{className:"h-8 bg-gray-200 rounded animate-pulse mb-3 w-1/2"}),s.jsxs("div",{className:"flex gap-2 mb-4",children:[s.jsx("div",{className:"h-6 bg-gray-200 rounded animate-pulse w-20"}),s.jsx("div",{className:"h-6 bg-gray-200 rounded animate-pulse w-24"})]}),s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse w-32"})]})]})},e))}),Qre=({customers:t,loading:e})=>{if(e)return s.jsx(Mre,{});const r=t.filter(n=>{var a,i;return((a=n.slug)==null?void 0:a.current)!=="lucid"&&((i=n.name)==null?void 0:i.toLowerCase())!=="lucid"});return r.length===0?s.jsx("div",{className:"text-center py-12",children:s.jsx("p",{className:"text-gray-500 text-lg",children:"No customer stories available at the moment."})}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map(n=>s.jsx(T_,{customer:n},n._id))})},Dre=()=>{const t=Ft(),e=()=>{t("/demo"),window.scrollTo(0,0)};return s.jsx("section",{className:"py-20 mx-4 sm:mx-6 lg:px-8 mb-8",children:s.jsx("div",{className:"max-w-6xl mx-auto bg-[#1B2C4E] rounded-2xl px-8 sm:px-12 lg:px-16 py-20",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[s.jsxs("div",{className:"flex-1 text-center md:text-left",children:[s.jsx("h2",{className:"font-poppins font-normal text-white mb-4",style:{fontSize:"33px",lineHeight:"46px"},children:"Stay ahead with customer insights"}),s.jsx("p",{className:"text-gray-300 text-lg",children:"Get the latest case studies and best practices delivered to your inbox"})]}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx("button",{className:"bg-white text-black font-medium rounded-xl transition-all duration-300 border border-gray-200 px-8 py-3 hover:bg-gray-50 hover:shadow-lg hover:scale-105 hover:border-gray-300 transform",onClick:e,children:"Book a Demo"})})]})})})},Rre=()=>{const[t,e]=b.useState([]),[r,n]=b.useState(!0),[a,i]=b.useState(null);return b.useEffect(()=>{(async()=>{try{n(!0),i(null);const l=await Ire();e(l||[])}catch(l){console.error("Error fetching customers:",l),i("Failed to load customer stories")}finally{n(!1)}})()},[]),{customers:t,loading:r,error:a}},Ore=()=>{const{customers:t,loading:e,error:r}=Rre();b.useEffect(()=>{document.title="Customer Success Stories | MadKudu"},[]);const a=t.find(i=>{var o,l;return((o=i.slug)==null?void 0:o.current)==="lucid"||((l=i.name)==null?void 0:l.toLowerCase())==="lucid"})||{_id:"lucid-featured",name:"Lucid",headline:"How Lucid Increased Pipeline +60% by Optimizing Multiple Funnels",statsHeadline:"MadKudu helped Lucid optimize 4 GTM motions",companySize:"500-1000",companyIndustry:"Collaboration Software",slug:{current:"lucid"},logo:"/lovable-uploads/05a2d4f8-75e3-418c-b065-f6c108533eee.png",mainImage:null};return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-40 pb-8 bg-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[s.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-8",children:["Smart Teams Use"," ",s.jsx("span",{className:"bg-orange-200 px-2 py-1 rounded",children:"MadKudu"})]}),s.jsxs("div",{className:"mt-12",children:[s.jsx("h2",{className:"text-lg font-medium text-gray-600 mb-6",children:"⭐ Featured Customer Success"}),s.jsx("div",{className:"max-w-sm mx-auto",children:s.jsx(T_,{customer:a})})]})]})}),s.jsx("section",{className:"py-16 bg-white",children:s.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:r?s.jsx("div",{className:"text-center py-12",children:s.jsx("p",{className:"text-red-500 text-lg",children:r})}):s.jsx(Qre,{customers:t,loading:e})})}),s.jsx(Dre,{}),s.jsx(Qe,{})]})};function bA({className:t,...e}){return s.jsx("div",{className:At("animate-pulse rounded-md bg-muted",t),...e})}var Hre="AspectRatio",L_=b.forwardRef((t,e)=>{const{ratio:r=1/1,style:n,...a}=t;return s.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:s.jsx(Et.div,{...a,ref:e,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});L_.displayName=Hre;var Kre=L_;const Vre=Kre,U_=b.forwardRef(({...t},e)=>s.jsx("nav",{ref:e,"aria-label":"breadcrumb",...t}));U_.displayName="Breadcrumb";const __=b.forwardRef(({className:t,...e},r)=>s.jsx("ol",{ref:r,className:At("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...e}));__.displayName="BreadcrumbList";const M_=b.forwardRef(({className:t,...e},r)=>s.jsx("li",{ref:r,className:At("inline-flex items-center gap-1.5",t),...e}));M_.displayName="BreadcrumbItem";const Q_=b.forwardRef(({asChild:t,className:e,...r},n)=>{const a=t?ql:"a";return s.jsx(a,{ref:n,className:At("transition-colors hover:text-foreground",e),...r})});Q_.displayName="BreadcrumbLink";const zre=b.forwardRef(({className:t,...e},r)=>s.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:At("font-normal text-foreground",t),...e}));zre.displayName="BreadcrumbPage";const Wre=()=>{const{slug:t}=To(),[e,r]=b.useState(null),[n,a]=b.useState(!0);b.useEffect(()=>{(async()=>{if(t)try{const c=await Pre(t);if(r(c),c){document.title=c.seoTitle||`${c.name} Success Story | MadKudu`;const d=document.querySelector('meta[name="description"]');d&&c.seoDescription&&d.setAttribute("content",c.seoDescription)}}catch(c){console.error("Error fetching customer:",c)}finally{a(!1)}})()},[t]);const i=()=>{if(!e)return[];const l=[];return e.box1Headline&&l.push({headline:e.box1Headline,stats1:e.box1Stats1,stats2:e.box1Stats2}),e.box2Headline&&l.push({headline:e.box2Headline,stats:e.box2Stats}),e.box3Headline&&l.push({headline:e.box3Headline,stats1:e.box3Stats1,stats2:e.box3Stats2}),e.box4Headline&&l.push({headline:e.box4Headline,stats:e.box4Stats}),l},o=()=>{const l=i(),c=e==null?void 0:e.customerQuote;if(l.length===0&&!c)return null;const d=c,A=l.length+(d?1:0);return s.jsx("section",{style:{backgroundColor:"#C6DCF4"},className:"py-16 w-screen relative left-1/2 right-1/2 -ml-[50vw] -mr-[50vw]",children:s.jsxs("div",{className:`max-w-7xl mx-auto px-4 grid ${A===4?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4":A===3?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2"} gap-8 lg:gap-0`,children:[l.map((u,h)=>s.jsx("div",{className:`text-center px-4 lg:px-8 ${h=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},jne=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},bj=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Nne=function(e){var r=xu(e,bt.TITLE),n=xu(e,Qf.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var a=xu(e,Qf.DEFAULT_TITLE);return r||a||void 0},Cne=function(e){return xu(e,Qf.ON_CHANGE_CLIENT_STATE)||function(){}},Yw=function(e,r){return r.filter(function(n){return typeof n[e]<"u"}).map(function(n){return n[e]}).reduce(function(n,a){return fs({},n,a)},{})},Bne=function(e,r){return r.filter(function(n){return typeof n[bt.BASE]<"u"}).map(function(n){return n[bt.BASE]}).reverse().reduce(function(n,a){if(!n.length)for(var i=Object.keys(a),o=0;o=0;n--){var a=e[n];if(a.hasOwnProperty(r))return a[r]}return null},Sne=function(e){return{baseTag:Bne([gr.HREF,gr.TARGET],e),bodyAttributes:Yw(od.BODY,e),defer:xu(e,Qf.DEFER),encode:xu(e,Qf.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Yw(od.HTML,e),linkTags:lm(bt.LINK,[gr.REL,gr.HREF],e),metaTags:lm(bt.META,[gr.NAME,gr.CHARSET,gr.HTTPEQUIV,gr.PROPERTY,gr.ITEM_PROP],e),noscriptTags:lm(bt.NOSCRIPT,[gr.INNER_HTML],e),onChangeClientState:Cne(e),scriptTags:lm(bt.SCRIPT,[gr.SRC,gr.INNER_HTML],e),styleTags:lm(bt.STYLE,[gr.CSS_TEXT],e),title:Nne(e),titleAttributes:Yw(od.TITLE,e)}},wj=function(){var t=Date.now();return function(e){var r=Date.now();r-t>16?(t=r,e(r)):setTimeout(function(){wj(e)},0)}}(),D6=function(e){return clearTimeout(e)},kne=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||wj:global.requestAnimationFrame||wj,Ene=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||D6:global.cancelAnimationFrame||D6,Fne=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},cm=null,Ine=function(e){cm&&Ene(cm),e.defer?cm=kne(function(){R6(e,function(){cm=null})}):(R6(e),cm=null)},R6=function(e,r){var n=e.baseTag,a=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,l=e.metaTags,c=e.noscriptTags,d=e.onChangeClientState,A=e.scriptTags,u=e.styleTags,h=e.title,m=e.titleAttributes;jj(bt.BODY,a),jj(bt.HTML,i),Pne(h,m);var g={baseTag:wA(bt.BASE,n),linkTags:wA(bt.LINK,o),metaTags:wA(bt.META,l),noscriptTags:wA(bt.NOSCRIPT,c),scriptTags:wA(bt.SCRIPT,A),styleTags:wA(bt.STYLE,u)},p={},w={};Object.keys(g).forEach(function(y){var v=g[y],j=v.newTags,S=v.oldTags;j.length&&(p[y]=j),S.length&&(w[y]=g[y].oldTags)}),r&&r(),d(e,p,w)},K_=function(e){return Array.isArray(e)?e.join(""):e},Pne=function(e,r){typeof e<"u"&&document.title!==e&&(document.title=K_(e)),jj(bt.TITLE,r)},jj=function(e,r){var n=document.getElementsByTagName(e)[0];if(n){for(var a=n.getAttribute(qa),i=a?a.split(","):[],o=[].concat(i),l=Object.keys(r),c=0;c=0;h--)n.removeAttribute(o[h]);i.length===o.length?n.removeAttribute(qa):n.getAttribute(qa)!==l.join(",")&&n.setAttribute(qa,l.join(","))}},wA=function(e,r){var n=document.head||document.querySelector(bt.HEAD),a=n.querySelectorAll(e+"["+qa+"]"),i=Array.prototype.slice.call(a),o=[],l=void 0;return r&&r.length&&r.forEach(function(c){var d=document.createElement(e);for(var A in c)if(c.hasOwnProperty(A))if(A===gr.INNER_HTML)d.innerHTML=c.innerHTML;else if(A===gr.CSS_TEXT)d.styleSheet?d.styleSheet.cssText=c.cssText:d.appendChild(document.createTextNode(c.cssText));else{var u=typeof c[A]>"u"?"":c[A];d.setAttribute(A,u)}d.setAttribute(qa,"true"),i.some(function(h,m){return l=m,d.isEqualNode(h)})?i.splice(l,1):o.push(d)}),i.forEach(function(c){return c.parentNode.removeChild(c)}),o.forEach(function(c){return n.appendChild(c)}),{oldTags:i,newTags:o}},V_=function(e){return Object.keys(e).reduce(function(r,n){var a=typeof e[n]<"u"?n+'="'+e[n]+'"':""+n;return r?r+" "+a:a},"")},Tne=function(e,r,n,a){var i=V_(n),o=K_(r);return i?"<"+e+" "+qa+'="true" '+i+">"+bj(o,a)+"":"<"+e+" "+qa+'="true">'+bj(o,a)+""},Lne=function(e,r,n){return r.reduce(function(a,i){var o=Object.keys(i).filter(function(d){return!(d===gr.INNER_HTML||d===gr.CSS_TEXT)}).reduce(function(d,A){var u=typeof i[A]>"u"?A:A+'="'+bj(i[A],n)+'"';return d?d+" "+u:u},""),l=i.innerHTML||i.cssText||"",c=xne.indexOf(e)===-1;return a+"<"+e+" "+qa+'="true" '+o+(c?"/>":">"+l+"")},"")},z_=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,a){return n[ly[a]||a]=e[a],n},r)},Une=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(n,a){return n[gne[a]||a]=e[a],n},r)},_ne=function(e,r,n){var a,i=(a={key:r},a[qa]=!0,a),o=z_(n,i);return[Ue.createElement(bt.TITLE,o,r)]},Mne=function(e,r){return r.map(function(n,a){var i,o=(i={key:a},i[qa]=!0,i);return Object.keys(n).forEach(function(l){var c=ly[l]||l;if(c===gr.INNER_HTML||c===gr.CSS_TEXT){var d=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:d}}else o[c]=n[l]}),Ue.createElement(e,o)})},Xi=function(e,r,n){switch(e){case bt.TITLE:return{toComponent:function(){return _ne(e,r.title,r.titleAttributes)},toString:function(){return Tne(e,r.title,r.titleAttributes,n)}};case od.BODY:case od.HTML:return{toComponent:function(){return z_(r)},toString:function(){return V_(r)}};default:return{toComponent:function(){return Mne(e,r)},toString:function(){return Lne(e,r,n)}}}},W_=function(e){var r=e.baseTag,n=e.bodyAttributes,a=e.encode,i=e.htmlAttributes,o=e.linkTags,l=e.metaTags,c=e.noscriptTags,d=e.scriptTags,A=e.styleTags,u=e.title,h=u===void 0?"":u,m=e.titleAttributes;return{base:Xi(bt.BASE,r,a),bodyAttributes:Xi(od.BODY,n,a),htmlAttributes:Xi(od.HTML,i,a),link:Xi(bt.LINK,o,a),meta:Xi(bt.META,l,a),noscript:Xi(bt.NOSCRIPT,c,a),script:Xi(bt.SCRIPT,d,a),style:Xi(bt.STYLE,A,a),title:Xi(bt.TITLE,{title:h,titleAttributes:m},a)}},Qne=function(e){var r,n;return n=r=function(a){wne(i,a);function i(){return vne(this,i),jne(this,a.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(l){return!dne(this.props,l)},i.prototype.mapNestedChildrenToProps=function(l,c){if(!c)return null;switch(l.type){case bt.SCRIPT:case bt.NOSCRIPT:return{innerHTML:c};case bt.STYLE:return{cssText:c}}throw new Error("<"+l.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(l){var c,d=l.child,A=l.arrayTypeChildren,u=l.newChildProps,h=l.nestedChildren;return fs({},A,(c={},c[d.type]=[].concat(A[d.type]||[],[fs({},u,this.mapNestedChildrenToProps(d,h))]),c))},i.prototype.mapObjectTypeChildren=function(l){var c,d,A=l.child,u=l.newProps,h=l.newChildProps,m=l.nestedChildren;switch(A.type){case bt.TITLE:return fs({},u,(c={},c[A.type]=m,c.titleAttributes=fs({},h),c));case bt.BODY:return fs({},u,{bodyAttributes:fs({},h)});case bt.HTML:return fs({},u,{htmlAttributes:fs({},h)})}return fs({},u,(d={},d[A.type]=fs({},h),d))},i.prototype.mapArrayTypeChildrenToProps=function(l,c){var d=fs({},c);return Object.keys(l).forEach(function(A){var u;d=fs({},d,(u={},u[A]=l[A],u))}),d},i.prototype.warnOnInvalidChildren=function(l,c){return!0},i.prototype.mapChildrenToProps=function(l,c){var d=this,A={};return Ue.Children.forEach(l,function(u){if(!(!u||!u.props)){var h=u.props,m=h.children,g=Q6(h,["children"]),p=Une(g);switch(d.warnOnInvalidChildren(u,m),u.type){case bt.LINK:case bt.META:case bt.NOSCRIPT:case bt.SCRIPT:case bt.STYLE:A=d.flattenArrayTypeChildren({child:u,arrayTypeChildren:A,newChildProps:p,nestedChildren:m});break;default:c=d.mapObjectTypeChildren({child:u,newProps:c,newChildProps:p,nestedChildren:m});break}}}),c=this.mapArrayTypeChildrenToProps(A,c),c},i.prototype.render=function(){var l=this.props,c=l.children,d=Q6(l,["children"]),A=fs({},d);return c&&(A=this.mapChildrenToProps(c,A)),Ue.createElement(e,A)},bne(i,null,[{key:"canUseDOM",set:function(l){e.canUseDOM=l}}]),i}(Ue.Component),r.propTypes={base:fr.object,bodyAttributes:fr.object,children:fr.oneOfType([fr.arrayOf(fr.node),fr.node]),defaultTitle:fr.string,defer:fr.bool,encodeSpecialCharacters:fr.bool,htmlAttributes:fr.object,link:fr.arrayOf(fr.object),meta:fr.arrayOf(fr.object),noscript:fr.arrayOf(fr.object),onChangeClientState:fr.func,script:fr.arrayOf(fr.object),style:fr.arrayOf(fr.object),title:fr.string,titleAttributes:fr.object,titleTemplate:fr.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=e.peek,r.rewind=function(){var a=e.rewind();return a||(a=W_({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),a},n},Dne=function(){return null},Rne=sne(Sne,Ine,W_)(Dne),cy=Qne(Rne);cy.renderStatic=cy.rewind;const One=()=>s.jsx("section",{className:"py-12 lg:py-16 bg-background",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"grid lg:grid-cols-12 gap-8 lg:gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-4 space-y-6",children:[s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden",children:[s.jsx("header",{style:{backgroundColor:"#4A90E2"},className:"text-white p-4",children:s.jsx("h2",{className:"text-lg font-semibold",children:"Your Data"})}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"space-y-3 mb-6",children:[s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(gd,{className:"w-4 h-4"}),"Website visits"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(QH,{className:"w-4 h-4"}),"Webinar/Events"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(xd,{className:"w-4 h-4"}),"Email"]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(g4,{className:"w-4 h-4"}),"Past opportunities"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(pH,{className:"w-4 h-4"}),"Content Engagement"]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(Pd,{className:"w-4 h-4"}),"Any data you track or buy"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(y4,{className:"w-4 h-4"}),"App Usage"]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(T2,{className:"w-4 h-4"}),"Support Tickets"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(RI,{className:"w-4 h-4"}),"Community"]})]})]}),s.jsx("div",{className:"grid grid-cols-3 gap-3",children:["Salesforce","HubSpot","Snowflake","Marketo","Segment","Amplitude","Zendesk","Slack","Intercom"].map((t,e)=>s.jsx("div",{className:"bg-gray-50 rounded p-3 text-center text-xs font-medium text-gray-600 border hover:bg-gray-100 transition-colors",children:t},e))})]})]}),s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden",children:[s.jsx("header",{style:{backgroundColor:"#2C5282"},className:"text-white p-4",children:s.jsx("h2",{className:"text-lg font-semibold",children:"External Signals"})}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"space-y-3 mb-6",children:[s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(L2,{className:"w-4 h-4"}),"Contact"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(x4,{className:"w-4 h-4"}),"LinkedIn"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(KI,{className:"w-4 h-4"}),"News"]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(yH,{className:"w-4 h-4"}),"Communities"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(DH,{className:"w-4 h-4"}),"Techs"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(TI,{className:"w-4 h-4"}),"Job openings"]})]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:s.jsx("span",{className:"px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:"Anything from the web (10k, forums, reviews)"})}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(l3,{className:"w-4 h-4"}),"Company"]}),s.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-gray-100 rounded-full text-sm font-medium",children:[s.jsx(L2,{className:"w-4 h-4"}),"Job change"]})]})]}),s.jsx("div",{className:"px-4 py-2",children:s.jsx("div",{className:"flex justify-center",children:s.jsxs("div",{className:"flex flex-wrap gap-4 justify-center max-w-full",children:[s.jsx("img",{src:"/lovable-uploads/9acfdaf4-8fd8-40d3-93ca-f6d582fd1db7.png",alt:"LinkedIn",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/9b42734e-cec2-404f-8618-538b6b7e9bc2.png",alt:"GitHub",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/1dcab084-b42d-43c9-b2e7-2ff5619ba63b.png",alt:"Reddit",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/40727116-f74e-441b-a951-12a894939f20.png",alt:"Web Crawlers",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/f012d958-b1a1-48be-ba0f-ef90fda15765.png",alt:"News APIs",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/55c4a0d0-1b72-435f-a501-d43998fc203b.png",alt:"Social Media",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"}),s.jsx("img",{src:"/lovable-uploads/4a67bad0-7430-481a-b589-9d4c7c81a9d3.png",alt:"Data Sources",className:"h-8 w-8 object-contain hover:scale-110 transition-transform"})]})})})]})]})]}),s.jsxs("div",{className:"lg:col-span-2 flex flex-col items-center justify-center space-y-4",children:[s.jsxs("div",{className:"flex lg:flex-col items-center text-muted-foreground",children:[s.jsx(Lr,{className:"w-8 h-8 lg:w-12 lg:h-12 lg:hidden"}),s.jsx("div",{className:"hidden lg:block",children:s.jsx(Lr,{className:"w-12 h-12 transform rotate-90"})})]}),s.jsxs("div",{className:"text-center bg-white rounded-xl p-8 shadow-lg border border-gray-200 hover:shadow-xl transition-shadow",children:[s.jsx("div",{className:"text-5xl font-bold mb-4 text-gray-800 font-mono"}),s.jsx("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:"MadKudu"}),s.jsx("p",{className:"text-lg text-gray-600",children:"AI Prospecting Assistant"})]}),s.jsxs("div",{className:"flex lg:flex-col items-center text-muted-foreground",children:[s.jsx(Lr,{className:"w-8 h-8 lg:w-12 lg:h-12 lg:hidden"}),s.jsx("div",{className:"hidden lg:block",children:s.jsx(Lr,{className:"w-12 h-12 transform rotate-90"})})]})]}),s.jsxs("div",{className:"lg:col-span-6 grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden md:col-span-2","aria-labelledby":"prioritized-prospects-heading",children:[s.jsx("header",{style:{backgroundColor:"#E91E63"},className:"text-white p-4",children:s.jsx("h3",{id:"prioritized-prospects-heading",className:"text-lg font-semibold",children:"Prioritized Prospects"})}),s.jsx("div",{className:"p-0",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full",children:[s.jsx("caption",{className:"sr-only",children:"Prioritized prospects with account, scoring, and signals"}),s.jsxs("colgroup",{children:[s.jsx("col",{style:{width:"20%"}}),s.jsx("col",{style:{width:"15%"}}),s.jsx("col",{style:{width:"65%"}})]}),s.jsx("thead",{style:{backgroundColor:"#E8EFF7"},className:"text-left text-sm font-medium text-foreground",children:s.jsxs("tr",{children:[s.jsx("th",{scope:"col",className:"px-4 py-3",children:"Account"}),s.jsx("th",{scope:"col",className:"px-4 py-3",children:"Scoring"}),s.jsx("th",{scope:"col",className:"px-4 py-3",children:"Signal"})]})}),s.jsxs("tbody",{className:"text-sm md:text-base",children:[s.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/40 transition-colors",children:[s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:"/lovable-uploads/592a0b82-cb37-4b69-a055-74a3195e6e58.png",alt:"Peloton logo placeholder",className:"h-6 md:h-8 w-auto object-contain"}),s.jsx("span",{className:"font-semibold text-foreground",children:"Peloton"})]})}),s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsx("span",{role:"img","aria-label":"Three flames",children:"🔥🔥🔥"})}),s.jsxs("td",{className:"px-4 py-4 text-muted-foreground align-middle",children:[s.jsx("span",{role:"img","aria-label":"Briefcase",className:"mr-2",children:"💼"}),"Mark Simon, ",s.jsx("strong",{children:"former customer at ACME, joined Peloton,"})," as Engineering Director"]})]}),s.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/40 transition-colors",children:[s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:"/lovable-uploads/430de588-1c7d-41cc-a74d-8d2a07ff7625.png",alt:"WealthFront logo placeholder",className:"h-6 md:h-8 w-auto object-contain"}),s.jsx("span",{className:"font-semibold text-foreground",children:"WealthFront"})]})}),s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsx("span",{role:"img","aria-label":"Two flames",children:"🔥🔥"})}),s.jsxs("td",{className:"px-4 py-4 text-muted-foreground align-middle",children:[s.jsx("span",{role:"img","aria-label":"Comment",className:"mr-2",children:"💬"}),"Ele Brooks ",s.jsx("strong",{children:"commented"})," on your LinkedIn post"]})]}),s.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/40 transition-colors",children:[s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:"/lovable-uploads/626531f4-424c-40f3-823d-2aa96346559f.png",alt:"Taylormade logo placeholder",className:"h-6 md:h-8 w-auto object-contain"}),s.jsx("span",{className:"font-semibold text-foreground",children:"Taylormade"})]})}),s.jsx("td",{className:"px-4 py-4 align-middle",children:s.jsx("span",{role:"img","aria-label":"Two flames",children:"🔥🔥"})}),s.jsxs("td",{className:"px-4 py-4 text-muted-foreground align-middle",children:[s.jsx("span",{role:"img","aria-label":"Document",className:"mr-2",children:"📄"}),"Rachel Morgan, Procurement Manager, ",s.jsx("strong",{children:"visited the pricing page 3 times yesterday"})]})]})]})]})})})]}),s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden",children:[s.jsx("header",{style:{backgroundColor:"#D4A574"},className:"text-white p-4",children:s.jsx("h3",{className:"text-lg font-semibold",children:"AI Account Brief"})}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(l3,{className:"w-5 h-5 text-gray-600"}),s.jsx("h4",{className:"text-lg font-medium",children:"Snyk"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium mb-2 text-gray-800",children:"Introduction"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Snyk is a high-growth developer security platform focused at $748M valuation with active sales teams engaging heavily in manual prospect research. Recent acquisition focus signals expansion."})]}),s.jsxs("div",{children:[s.jsx("h5",{className:"font-medium mb-2 text-gray-800",children:"Why now?"}),s.jsxs("div",{className:"bg-blue-50 p-3 rounded border-l-4 border-blue-200",children:[s.jsx("span",{className:"inline-block bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded mb-2 font-medium",children:"Insight"}),s.jsx("p",{className:"text-sm text-gray-700",children:"Snyk's recent acquisitions create urgency for operational efficiency."})]})]})]})]})]}),s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden",children:[s.jsx("header",{style:{backgroundColor:"#4DB6AC"},className:"text-white p-4",children:s.jsx("h3",{className:"text-lg font-semibold",children:"Recommended Contacts"})}),s.jsx("div",{className:"p-6",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"border rounded-lg p-4 hover:bg-gray-50 transition-colors",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-10 h-10 bg-orange-200 rounded-full flex items-center justify-center flex-shrink-0",children:s.jsx("span",{className:"text-sm font-bold text-orange-700",children:"ST"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-blue-600 font-medium hover:underline cursor-pointer",children:"Sarah Thompson"}),s.jsx(Nf,{className:"w-3 h-3 text-gray-400"})]}),s.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"Commented on your LinkedIn post."}),s.jsx("div",{className:"text-xs text-gray-500",children:"Source: LinkedIn"}),s.jsx("button",{className:"inline-flex items-center gap-1 px-3 py-1 mt-2 bg-blue-600 text-white rounded text-sm hover:bg-blue-700 transition-colors",children:s.jsx("span",{children:"Add to flow"})})]})]})}),s.jsx("div",{className:"border rounded-lg p-4 hover:bg-gray-50 transition-colors",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-10 h-10 bg-blue-200 rounded-full flex items-center justify-center flex-shrink-0",children:s.jsx("span",{className:"text-sm font-bold text-blue-700",children:"RM"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-blue-600 font-medium hover:underline cursor-pointer",children:"Rachel Morgan"}),s.jsx(Nf,{className:"w-3 h-3 text-gray-400"})]}),s.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"Visited the pricing page 3 times."}),s.jsx("div",{className:"text-xs text-gray-500",children:"Source: Website"}),s.jsxs("button",{className:"inline-flex items-center gap-1 px-3 py-1 mt-2 bg-blue-600 text-white rounded text-sm hover:bg-blue-700 transition-colors",children:[s.jsx(zx,{className:"w-3 h-3"}),s.jsx("span",{children:"Send message"})]})]})]})})]})})]}),s.jsxs("article",{className:"bg-white rounded-lg shadow-lg border border-gray-200 overflow-hidden md:col-span-2",children:[s.jsxs("header",{style:{backgroundColor:"#5C9BD5"},className:"text-white p-4 flex justify-between items-center",children:[s.jsx("h3",{className:"text-lg font-semibold",children:"Suggested Messages"}),s.jsx("button",{className:"text-xs bg-white/20 px-3 py-1 rounded hover:bg-white/30 transition-colors font-medium",children:"✨ Write with AI"})]}),s.jsxs("div",{className:"p-6",children:[s.jsx("div",{className:"bg-gray-50 p-4 rounded border mb-4",children:s.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:`"Hi Marjorie, congrats on joining Mistral AI as Global Head of Revenue & US GM! As a frontend engineer at MadKudu, I've been working on solutions that enhance user engagement and retention. If you're exploring ways to streamline user experiences, I'd love to chat and share insights. Let's chat!"`})}),s.jsxs("div",{className:"flex gap-3 justify-end",children:[s.jsx("button",{className:"px-4 py-2 text-gray-600 border border-gray-300 rounded hover:bg-gray-50 transition-colors font-medium",children:"Cancel"}),s.jsx("button",{className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors font-medium",children:"Send"})]})]})]})]})]})})}),Hne=()=>s.jsxs(s.Fragment,{children:[s.jsxs(cy,{children:[s.jsx("title",{children:"MadKudu AI Prospecting Process - Interactive Demo | MadKudu"}),s.jsx("meta",{name:"description",content:"Experience MadKudu's AI-powered prospecting workflow. See how data flows from multiple sources through our AI system to generate prioritized prospects and actionable insights."}),s.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),s.jsx("link",{rel:"canonical",href:"/sandbox-hero-component"}),s.jsx("meta",{property:"og:title",content:"MadKudu AI Prospecting Process - Interactive Demo"}),s.jsx("meta",{property:"og:description",content:"Experience MadKudu's AI-powered prospecting workflow with real-time data visualization."}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:url",content:"/sandbox-hero-component"}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:"MadKudu AI Prospecting Process"}),s.jsx("meta",{name:"twitter:description",content:"Interactive demo of AI-powered prospecting workflow"})]}),s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(Me,{}),s.jsx("main",{children:s.jsx("section",{className:"py-16",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-foreground mb-6",children:"MadKudu AI Prospecting Process"}),s.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Discover how our AI-powered system transforms data from multiple sources into prioritized prospects and actionable insights."})]}),s.jsx(One,{})]})})}),s.jsx(Qe,{})]})]}),Kne=()=>{const t=[{title:"Terms of Service",url:"/legal-center/terms-of-service",description:"Our general terms and conditions for using MadKudu services",internal:!0},{title:"Product-specific Terms",url:"/legal-center/product-specific-terms",description:"Additional terms specific to individual MadKudu products",internal:!0},{title:"Data Processing Addendum (DPA)",url:"/legal-center/data-processing-addendum",description:"Our data processing agreement for enterprise customers",internal:!0},{title:"Security Practices",url:"/legal-center/security",description:"Information about our security measures and practices",internal:!0},{title:"Status Page",url:"https://status.madkudu.com/",description:"Real-time status of our services and any ongoing incidents",internal:!1}],e=[{title:"Privacy Notice (Processor)",url:"/legal-center/privacy",description:"How we handle data when acting as a data processor",internal:!0},{title:"Privacy Notice (Controller)",url:"/legal-center/privacy-notice-controller",description:"How we handle data when acting as a data controller",internal:!0},{title:"Privacy Rights Request Form",url:"https://app.madkudu.com/data-privacy-management",description:"Submit requests regarding your personal data",internal:!1},{title:"Cookie Notice",url:"/legal-center/cookie-notice",description:"Information about our use of cookies and tracking technologies",internal:!0}];return s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-b from-blue-50 to-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-6",children:"Legal Center"}),s.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Access important legal documents, privacy policies, and compliance information."})]})}),s.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:s.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"For Customers"}),s.jsx("div",{className:"space-y-6",children:t.map((r,n)=>r.internal?s.jsxs(kt,{to:r.url,className:"block p-6 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors group",children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-[#3B82F6] mb-2",children:r.title}),s.jsx("p",{className:"text-gray-600 text-sm",children:r.description})]},n):s.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block p-6 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors group",children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-[#3B82F6] mb-2",children:r.title}),s.jsx("p",{className:"text-gray-600 text-sm",children:r.description})]},n))})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"For Everyone"}),s.jsx("div",{className:"space-y-6",children:e.map((r,n)=>r.internal?s.jsxs(kt,{to:r.url,className:"block p-6 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors group",children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-[#3B82F6] mb-2",children:r.title}),s.jsx("p",{className:"text-gray-600 text-sm",children:r.description})]},n):s.jsxs("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"block p-6 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors group",children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 group-hover:text-[#3B82F6] mb-2",children:r.title}),s.jsx("p",{className:"text-gray-600 text-sm",children:r.description})]},n))})]})]})}),s.jsx(Qe,{})]})},Qd=({title:t,children:e})=>s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-24 pb-16 bg-gradient-to-b from-blue-50 to-white",children:s.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-gray-900 mb-6",children:t})})}),s.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:s.jsx("div",{className:"prose prose-lg max-w-none",children:e})}),s.jsx(Qe,{})]}),Vne=()=>s.jsx(Qd,{title:"Terms of Service",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("section",{children:[s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:`Welcome to MadKudu's Terms of Service ("Agreement") which govern your access to and use of the MadKudu services, website, and related products and offerings (collectively, the "Services"). This Agreement is entered into between MadKudu Inc., a Delaware corporation ("MadKudu" or "We"), and you, the individual or entity accessing or using the MadKudu Services identified in the Order Form ("Customer" or "You"). This Agreement shall apply to all of the Services provided by MadKudu to the Customer unless governed by a separate agreement between MadKudu and Customer.`}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"By accessing or using the MadKudu Services, you acknowledge that you have read, understood, and agree to be bound by the terms of this Agreement. If you do not agree with any part of this Agreement, you must not use the MadKudu Services."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"MadKudu may update or modify this Agreement from time to time. We will post any updates on our website and/or notify you. Your continued use of the MadKudu Services after any such changes constitutes your acceptance of the new terms."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"If you have any questions about this Agreement or the MadKudu Services, please contact us at legal@madkudu.com."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6 font-semibold",children:"Last Update: September 12, 2024."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"1. Services and Support"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Subject to the terms of this Agreement, MadKudu will provide Customer with the Services described in the Order Form or other ordering instrument available to Customer that describes the provision of the Services. As part of the registration process, Customer will identify an administrative user name and password for Customer's MadKudu account."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu grants Customer a limited, non-exclusive, revocable, non-sublicensable, non-transferable license to use and access the Services, for the applicable term described in your Order Form or other ordering instrument available to Customer, subject to the terms of the Agreement. Customer's use of the Subscription Services includes the right to access all functionalities available in the purchased services."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Subject to the terms hereof, MadKudu will provide Customer with reasonable technical support services."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.4 Trial Services"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'If you register for a trial of the Services, MadKudu will make the Service available on a trial basis until the earlier of (i) the end of the trial period or the full utilization of the Services, whichever comes first (ii) the start date of the Services purchased by you. During the trial period, the Services are provided "as is" without warranty, and MadKudu may suspend, limit, or terminate the trial at any time without notice or liability.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.5 Beta Services"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"From time to time, MadKudu may invite you to try Beta Services, which are for evaluation purposes and may be time, feature, or functionality-limited. If MadKudu provides a Beta Service, you must comply with any guidelines and not publicize or share the Beta Service. Use of Beta Services is at your sole risk, and MadKudu may discontinue them at any time without notice, with no warranties or liability."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.6"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'MadKudu reserves the right to modify, enhance, or update the Services from time to time in its sole discretion ("Changes") without degrading its functionalities or security features. Changes may include, but are not limited to, modifications to functionality, features, user interface, security measures, underlying technology, or performance of the Services.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"1.7"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu shall provide Customer with reasonable advance notice in case of any material Changes (including suspension or discontinuation of any portion of the Services) but any material Changes shall only take effect from the start of Customer's next renewal term."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"2. Term and Termination"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`This Agreement shall be effective on the earliest of (a) the date Customer clicks a button indicating its agreement with the terms of this Agreement, (b) the date Customer enters into an Order Form or other ordering document incorporating this Agreement, or (c) Customer's use of the Services (the "Effective Date").`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"This Agreement commences on the Effective Date and will remain in effect until all subscriptions to the Services granted in accordance with this Agreement have expired or been terminated, or this Agreement is otherwise terminated in accordance with its terms."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"In addition to any other remedies it may have, either party may also terminate this Agreement, any Order Form or any ordering instrument available to Customer if the other party materially breaches any of the terms or conditions of this Agreement and the breaching Party does not cure the default thirty (30) days' notice. Customer will pay in full for the Services up to and including the last day on which the Services are provided. If an Order Form is terminated by Customer in accordance with this section, MadKudu will refund Customer any prepaid fees covering the remainder of the Term of all Order Forms after the effective date of termination."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.4 Treatment of Customer Data Following Expiration or Termination"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer agrees that following expiration or termination of this Agreement, MadKudu may immediately deactivate Customer's account(s) associated with the Agreement. MadKudu will make Customer Data available to Customer for export in accordance with the Documentation as long as MadKudu receives written notice within thirty (30) days after the effective date of expiration or termination from Customer regarding its intent to import such Customer Data. After such thirty (30) day period, MadKudu will have no obligation to retain Customer Data and will thereafter, unless legally prohibited, be entitled to delete all Customer Data in its systems or otherwise in its possession or under its control."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.5"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"All sections of this Agreement which by their nature should survive termination will survive termination, including, without limitation, accrued rights to payment, indemnification obligations, confidentiality obligations, warranty disclaimers, and limitations of liability."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"3. Payment of Fees"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`Customer will pay MadKudu the then applicable fees described in the Order Form for the Services in accordance with the terms therein (the "Fees"). If Customer's use of the Services exceeds the allocation set forth on the Order Form or otherwise requires the payment of additional fees (as set forth in the Order Form), upon advance notice to Customer, Customer shall be billed for such usage and such invoice shall be paid within 30 days from the invoice date.`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"All fees paid by the Customer under this Agreement are non-refundable, including but not limited to any prepaid amounts, regardless of whether the services are fully utilized by the Customer. The Customer acknowledges and agrees that any such unused services or entitlements will expire at the end of the then-current term and will not be credited towards future services or renewal terms."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu reserves the right to change the Fees after or applicable charges and to institute new charges and Fees at the end of the subscription period, upon thirty (30) days prior notice to Customer (which may be sent by email)."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.4"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If Customer believes that MadKudu has billed Customer incorrectly, Customer must contact MadKudu no later than 60 days after the closing date on the first billing statement in which the error or problem appeared, in order to receive an adjustment or credit."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.5"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If MadKudu chooses to bill through an invoice, then payment terms for the applicable fees shall be as defined on the Order Form. Unpaid amounts are subject to a finance charge of 1.5% per month on any outstanding balance, or the maximum permitted by law, whichever is lower, plus all expenses of collection and may result in immediate termination of the Services. Customer is responsible for any applicable taxes, including, without limitation, any sales, use, levies, duties, or any value added or similar taxes payable with respect to the purchase of the Services and assessable by any local, state, provincial, federal, or foreign jurisdiction."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.6"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer agrees that any purchase orders are for administrative purposes only and that any non-administrative terms (including, but not limited to legal, security, privacy, or finance terms) contained in a purchase order(s) do not apply to its purchase or use of the Services."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"4. Restrictions and Responsibilities"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'Customer shall use the Services in a responsible and professional manner consistent with the intended and permissible uses herein and consistent with standard industry practice. Customer will not, directly or indirectly: reverse engineer, decompile, disassemble or otherwise attempt to discover the source code, object code or underlying structure, ideas, know-how or algorithms relevant to the Services or any software, documentation or data related to the Services ("Software"); modify, translate, or create derivative works based on the Services or any Software (except to the extent expressly permitted by MadKudu or authorized within the Services); use the Services or any Software for timesharing or service bureau purposes or otherwise for the benefit of a third; or remove any proprietary notices or labels.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'Further, Customer may not remove or export from the United States or allow the export or re-export of the Services, Software or anything related thereto, or any direct product thereof in violation of any restrictions, laws or regulations of the United States Department of Commerce, the United States Department of Treasury Office of Foreign Assets Control, or any other United States or foreign agency or authority. As defined in FAR section 2.101, the software and documentation are "commercial items" and according to DFAR section 252.2277014(a)(1) and (5) are deemed to be "commercial computer software" and "commercial computer software documentation." Consistent with DFAR section 227.7202 and FAR section 12.212, any use modification, reproduction, release, performance, display, or disclosure of such commercial software or commercial software documentation by the U.S. Government will be governed solely by the terms of this Agreement and will be prohibited except to the extent expressly permitted by the terms of this Agreement.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer represents, covenants, and warrants that Customer will use the Services only in compliance with this Agreement and all applicable laws and regulations."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.4"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu will provide the Services in compliance with all applicable laws, and consistent with the Services' then-current documentation."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.5"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu uses commercially reasonable efforts to maintain the highest service availability. However, MadKudu cannot guarantee that the Services will operate in an uninterrupted or error-free manner. MadKudu performs service maintenance and uses commercially reasonable efforts to schedule system downtime during off-peak hours and to avoid service interruptions and delays. MadKudu will use commercially reasonable efforts to notify Customer in advance of any scheduled downtime."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.6 Integrations"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu allows you to easily integrate any third-party tool to the Services, which allows to use these Third-Party integrations in connection with the Service, nonetheless, MadKudu does not warrant or support Third-Party Products and disclaims all responsibility and liability for these items, their use or their access to the Service, including the modification, deletion, disclosure, or collection of your Data. MadKudu might add, suspend or disincorporate the use of these third-party integrations at any given moment for any given reason."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"5. Security and Personal Data Protection"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"5.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`Customer shall be responsible for obtaining and maintaining any equipment and ancillary services needed to connect to, access or otherwise use the Services, including, without limitation, modems, hardware, servers, software, operating systems, networking, web servers and the like (collectively, "Equipment"). Customer shall also be responsible for using commercially reasonable efforts to maintain the security of the Equipment, Customer account, passwords (including but not limited to administrative and user passwords) and files, and for all uses of Customer account or the Equipment with Customer's knowledge or consent.`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"5.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu shall maintain and implement robust technical and organizational measures designed to ensure the security and integrity of any Customer Data processed in relation to this Agreement, and protect such data against unauthorized access, loss, destruction, alteration, or disclosure. Such measures shall be appropriate to the harm that might result from any unauthorized or unlawful processing, accidental loss, destruction, alteration, or disclosure of the Customer Data, and having regard to the nature of the data to be protected."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"5.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer acknowledges and agrees that, in the course of its engagement with MadKudu, MadKudu may provide, receive, or otherwise have access to Customer Data that amounts to personal data or personal information as defined under applicable data protection and privacy laws. For purposes of compliance with applicable data protection and privacy laws, the Parties agree to the terms of MadKudu's standard Data Processing Addendum, available here."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"6. Confidentiality; Proprietary Rights; Privacy"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"6.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`Each party (the "Receiving Party") understands that the other party (the "Disclosing Party") has disclosed or may disclose business, technical or financial information relating to the Disclosing Party's business (hereinafter referred to as "Proprietary Information" of the Disclosing Party). Proprietary Information of MadKudu includes non-public information regarding features, functionality and performance of the Services. Proprietary Information of Customer includes non-public data provided by Customer to MadKudu to enable the provision of the Services or data generated by Customer through the use of the Services ("Customer Data"). The Receiving Party agrees: (i) to take reasonable precautions to protect such Proprietary Information, no less protective than it takes to protect its own information of a similar type, and (ii) not to use (except in performance of the Services or as otherwise permitted herein) or divulge to any third person any such Proprietary Information. The Disclosing Party agrees that the foregoing shall not apply with respect to any information that the Receiving Party can document (a) is or becomes generally available to the public, or (b) was in its possession or known by it prior to receipt from the Disclosing Party, or (c) was rightfully disclosed to it without restriction by a third party, or (d) was independently developed without use of any Proprietary Information of the Disclosing Party or (e) is required to be disclosed by law.`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"6.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer shall own all right, title and interest in and to the Customer Data, as well as any data that is based on or derived from the Customer Data and provided to Customer as part of the Services. MadKudu shall own and retain all right, title and interest in and to (a) the Services and Software, all improvements, enhancements or modifications thereto, (b) any software, applications, inventions or other technology developed by or on behalf of MadKudu in connection with the Services, and (c) all intellectual property rights related to any of the foregoing."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"6.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Notwithstanding anything to the contrary, in the performance of the Services, MadKudu may collect and analyze data related to Customer's use of the platform, including but not limited to product analytics, user interactions, and performance metrics. This may include analyzing the types of queries submitted to Company's platform and Company's response effectiveness. Company uses this information solely to improve Service quality and user experience, provided that any data collected or reported is aggregated and anonymized such that no information identifying Customer, its users, leads or customers is collected or revealed. No rights or licenses are granted except as expressly set forth herein."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"6.4"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu will promptly notify Customer in writing upon becoming aware of any actual or suspected breach or misuse of Customer Confidential Information. MadKudu will return or delete all Customer Confidential Information to Customer, and remove such information from its systems, promptly upon termination of this Agreement or written request of Customer."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"7. Warranty and Disclaimer"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`MadKudu warrants that the Services will substantially perform in accordance with the documentation available on the support portal and MadKudu shall use its best reasonable efforts consistent with prevailing industry standards to maintain the Services in a manner which minimizes errors and interruptions in the Services and shall perform the Services in a professional and workmanlike manner. Services may be temporarily unavailable for scheduled maintenance or for unscheduled emergency maintenance, either by MadKudu or by third-party providers, or because of other causes beyond MadKudu's reasonable control, but MadKudu shall use reasonable efforts to provide advance notice in writing, by email, or via an in-app notification of any scheduled service disruption. However, MadKudu does not warrant that the services will be uninterrupted or error free; nor does it make any warranty as to the results that may be obtained from use of the Services. Except as expressly set forth in this Agreement, the Services are provided "as is" and MadKudu disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose and non-infringement.`})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"8. Indemnification"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"8.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu hereby agrees to indemnify and hold harmless Customer against any third-party damages, losses, liabilities, settlements and expenses (as well as Customer's reasonable costs of defense and attorneys' fees) in connection with any claim or action brought by a third party that arises (a) from an alleged violation by MadKudu of applicable laws or regulations in connection with the performance of its obligations under this Agreement or (b) from a claim that MadKudu's provision of the Services violates any third-party intellectual property, contractual, or other third party right."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"8.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Customer hereby agrees to indemnify and hold harmless MadKudu against any third-party damages, losses, liabilities, fines, settlements and expenses (as well as MadKudu's reasonable costs of defense and attorneys' fees) in connection with any claim or action that arises from: (a) Customer's violation of any provision of this Agreement (b) Customer's sending of any information, messages, or materials to any lead processed by MadKudu in violation of any law or the rights of any third party (c) Customer's failure to comply with any applicable laws, regulations, or governmental orders in connection with the performance of its obligations under this Agreement."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"8.3"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Each party's indemnification obligations hereunder are conditioned on the party seeking indemnification: (a) notifying the indemnifying party promptly in writing of such action, (b) giving the indemnifying party sole control of the defense thereof and any related settlement negotiations, and (c) cooperating and, at the indemnifying party's request and expense, assisting in such defense or settlement."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"9. Limitation of Liability"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"9.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Notwithstanding anything to the contrary in this Agreement, neither party nor its suppliers (including, but not limited to, equipment and technology suppliers), officers, affiliates, representatives, contractors, or employees shall be liable for any of the following under any theory of contract, negligence, strict liability, or otherwise:"}),s.jsxs("div",{className:"ml-4 space-y-2",children:[s.jsxs("div",{children:[s.jsx("span",{className:"font-semibold",children:"9.1.1"}),s.jsx("span",{className:"ml-2",children:"Any errors or interruptions in the use of the services, loss, inaccuracy, or corruption of data, costs related to the procurement of substitute goods, services, or technology, or any loss of business;"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"font-semibold",children:"9.1.2"}),s.jsx("span",{className:"ml-2",children:"Any indirect, exemplary, incidental, special, or consequential damages;"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"font-semibold",children:"9.1.3"}),s.jsx("span",{className:"ml-2",children:"Any matter beyond such party's reasonable control;"})]})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"9.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"The liability of each Party for damages or alleged damages hereunder, whether in contract, tort, or any other legal theory, is limited to, and will not exceed an amount equal to the total fees paid by the Customer to MadKudu for Services under this Agreement during the 12 months preceding the event giving rise to the liability, this applies whether or not a party has been advised of the possibility of such damages. However, the foregoing limitations shall not apply to claims or losses arising from (a) a Party's indemnification obligations under this Agreement; or (b) Gross negligence or willful misconduct by either party."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"10. Miscellaneous"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.1"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If any provision of this Agreement is found to be unenforceable or invalid, that provision will be limited or eliminated to the minimum extent necessary so that this Agreement will otherwise remain in full force and effect and enforceable."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.2"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Neither party may assign any of its rights or obligations hereunder, whether by operation of law or otherwise, without the other party's prior written consent (not to be unreasonably withheld); provided, however, either party may assign this Agreement in its, without the other party's consent (but upon providing notice) in connection with a merger, acquisition, corporate reorganization, or sale of all or substantially all of its assets. This Agreement is the complete and exclusive statement of the mutual understanding of the parties and supersedes and cancels all previous written and oral agreements, communications and other understandings relating to the subject matter of this Agreement, and that all waivers and modifications must be in a writing signed by both parties, except as otherwise provided herein. No agency, partnership, joint venture, or employment is created as a result of this Agreement and Customer does not have any authority of any kind to bind MadKudu in any respect whatsoever."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.3 Force Majeure"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Neither party shall be liable to the other for any delay or failure to perform any obligation under this Agreement (except for a failure to pay fees) if the delay or failure is due to unforeseen events which occur after the signing of this Agreement and which are beyond the reasonable control of such party, such as a strike, blockade, war, act of terrorism, riot, natural disaster, failure or diminishment of power or telecommunications or data networks or services."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.4"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"In any action or proceeding to enforce rights under this Agreement, the prevailing party will be entitled to recover costs and attorneys' fees."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.5"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"All notices under this Agreement will be in writing and will be deemed to have been duly given when received, if personally delivered; when receipt is electronically confirmed, if transmitted by facsimile or e-mail; the day after it is sent, if sent for next day delivery by recognized overnight delivery service; and upon receipt, if sent by certified or registered mail, return receipt requested."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.6"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"In the event of any conflict or inconsistency between this Agreement and the terms of an Order Form or other written agreement executed between Customer and MadKudu, the terms of the order form or written agreement shall take precedence and govern."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.7"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"This Agreement shall be governed by the laws of the State of California without regard to its conflict of laws provisions and any disputes arising out of or in connection with this Agreement shall be subject to the exclusive jurisdiction of the courts located in Santa Clara County in the state of California."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"10.8"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu may identify Customer as a Customer of MadKudu (using its name and logo) and generally describe the products or services it provides to Customer in its website, promotional materials, presentations, media, press releases and proposals to other current and prospective customers. Customer will be entitled to revoke this permission from MadKudu at any given moment during the Term."})]})]})]})]})}),zne=()=>s.jsx(Qd,{title:"Privacy Notice (Controller)",children:s.jsxs("div",{className:"space-y-8",children:[s.jsx("section",{children:s.jsx("p",{className:"text-sm text-gray-600 mb-6",children:"Effective on: 2023-10-04"})}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1. Introduction and Scope"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.1. Introduction"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'MadKudu Inc. and its affiliate entities listed below under "Entities Covered by This Privacy Notice" (referred to collectively as "MadKudu", "we," "us," "our") take the protection of personal data ("Personal Data") very seriously. Please read this privacy notice (the "Notice") to learn what we are doing with your Personal Data, how we protect it, and what privacy rights you may have under applicable data protection and privacy laws, such as the European Union General Data Protection Regulation ("GDPR").'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.2. What Is Covered by this Privacy Notice?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"This Notice addresses data subjects (which includes both individuals and households) whose Personal Data we:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsx("li",{children:'receive from our customers ("Customers") who share data with us through our web-based software application, the MadKudu Platform, (the "Services"), when the Customers are subject to the MadKudu Data Processing Addendum Controller Terms;'}),s.jsx("li",{children:"collect from Customers' use of the Services, when the Customers are subject to the MadKudu Data Processing Addendum Controller Terms;"}),s.jsx("li",{children:"collect from our Customers' websites through the MadKudu cookie, when the Customers are subject to the MadKudu Data Processing Addendum Controller Terms;"}),s.jsx("li",{children:"receive from the data subjects when we provide customer support services;"}),s.jsx("li",{children:"receive directly through our website (for example, via webform submissions);"}),s.jsx("li",{children:"obtain through trackers on our website;"}),s.jsx("li",{children:"receive from our business partners; or"}),s.jsx("li",{children:"process to promote our Services."})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.3. What Is not Covered by this Privacy Notice?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"This Notice does not apply to"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"The Use of Personal Data by MadKudu's Customers:"})," processing of Personal Data by MadKudu's Customers using the Services. Please read the privacy notices of our Customers."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Information Which Does Not Constitute Personal Data:"})," If we do not maintain information in a manner that identifies, relates to, describes, is reasonably capable of being associated with, or could be reasonably linked, directly or indirectly, with a particular individual or household, such information is not considered Personal Data and this Notice does not apply to our processing of that information."]})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.4. What Can You Find in this Notice?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"This Notice tells you, among other things:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsx("li",{children:"What Personal Data we collect about you and how we obtain it"}),s.jsx("li",{children:"The legal bases for processing your Personal Data"}),s.jsx("li",{children:"For what purposes we use that Personal Data"}),s.jsx("li",{children:"How long we keep your Personal Data"}),s.jsx("li",{children:"With whom we share your Personal Data"}),s.jsx("li",{children:"Your rights about the Personal Data we collect about you and how you can exercise those rights"}),s.jsx("li",{children:"How we protect your Personal Data"}),s.jsx("li",{children:"How to contact us"})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.4. Our Role With Respect to Your Personal Data"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'Within the scope of this Notice, MadKudu acts as a data controller or "business" for the Personal Data we process. This means that we decide whether, what, whose, how and why Personal Data is collected and further processed. If you want to learn about how MadKudu processes Personal Data on behalf of its Customers, read the MadKudu (Processor) Privacy Notice.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.5. Entities Covered by this Privacy Notice"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'This Notice covers MadKudu and the following affiliate entities (the "Affiliates"):'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"1.6 Lawful Bases for Processing"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:'We must have a valid reason to use your Personal Data. This is called the "lawful basis for processing". We may process your Personal Data based on:'}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Contract:"})," We may rely on the necessity of processing your Personal Data to fulfill the obligations outlined in your employment/service agreement. This includes processing data related to payroll, benefits, job responsibilities, and performance management."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Your consent:"})," We may rely on your consent when you visit our website and agree to the use of cookies and other trackers. By accepting cookies and other trackers, you allow MadKudu and other third parties to track your browsing behavior and collect data for various purposes such as analytics, personalization, and targeted advertising."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Our legitimate interests or those of a third party:"})," MadKudu may rely on its legitimate interests or those of a third party if these legitimate interests are not overridden by the data subject's rights and interests. Read more about legitimate interests below."]})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-4 mb-4",children:"We may process your Personal Data based on the following legitimate interests:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Legitimate interests of MadKudu Customers:"})," Our Customers have a genuine interest in gaining business intelligence through our Services. These Services enable them to obtain valuable insights into their prospects and customers to optimize their sales and marketing strategies by leveraging data-driven insights and predictive analytics. This ultimately leads to a better experience for their prospects and customers"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Legitimate interests of MadKudu:"})," (a) enhancing our Services and deliver comprehensive and up-to-date information to benefit our Customers' business intelligence needs (b) sending marketing communications to promote our Services to existing Customers and business contacts, and to some business representatives, where the applicable laws do not require the recipient's consent. (c) contacting our business contacts associated with our Customers, prospects, or business partners."]})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-4",children:"When we rely on legitimate interests as a lawful basis of processing, you have the right to ask us more about how we decided to choose this legal basis. To do so, please use the contact details provided here."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.7 What Personal Data do we process and how we obtain it?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Depending on your relationship with MadKudu, we may collect Personal Data from you in different ways. MadKudu may collect Personal Data:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4 mb-6",children:[s.jsx("li",{children:"Provided by you directly: when you interact with us, our contact forms, product sign up, customer support, sales team or other of our services. The Personal Data would the specific identifiers you provide directly to us"}),s.jsx("li",{children:"Collected from your device when you interact with us, including engaging with our sales team for potential employment opportunities, submit information through our contact forms for job inquiries, apply for a job, complete onboarding forms, submit time sheets, request leave, participate in performance reviews, enroll in benefits, update your personal information, or otherwise engage with our HR services."}),s.jsx("li",{children:"Provided by MadKudu Customers when using our services"}),s.jsx("li",{children:"Provided by third-party providers, who gather data from a variety of sources including data co-ops or publicly-available sources that we use to enrich profiles with."})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"The table below describes the categories of Personal Data we have collected about you in the last twelve months."}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full border border-gray-300",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"Category of Personal Data and specific data collected"}),s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"How we obtain it"})]})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Identifiers"}),s.jsx("br",{}),"name, email address, work address, work phone number, IP address"]}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Provided by you directly",s.jsx("br",{}),"Provided by third-party providers",s.jsx("br",{}),"Provided by MadKudu Customers",s.jsx("br",{}),"Collected through MadKudu cookie or other trackers"]})]}),s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Commercial Information"}),s.jsx("br",{}),"interactions with sales and marketing, and past purchases"]}),s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:"Provided by you directly"})]}),s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Internet or similar network activity"}),s.jsx("br",{}),"IP address, Web application usage data, pages viewed, device, browser, behavior (for example, visits) on the customer's website), behavior on MadKudu's website, interactions with MadKudu's ads"]}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Collected through MadKudu cookie or other trackers",s.jsx("br",{}),"Provided by our advertising and analytics partners"]})]}),s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Geolocation data"}),s.jsx("br",{}),"location (city, state, country)"]}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Provided by you directly",s.jsx("br",{}),"Provided by third-party providers",s.jsx("br",{}),"Collected through MadKudu cookie or other trackers",s.jsx("br",{}),"Provided by our advertising and analytics partners"]})]}),s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Inferences drawn from other Personal Data"}),s.jsx("br",{}),"Lead score generated by MadKudu"]}),s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:"Generated by MadKudu based on other information"})]}),s.jsxs("tr",{children:[s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:[s.jsx("strong",{children:"Additional categories of Personal Data"}),s.jsx("br",{}),"Job title, company"]}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Provided by you directly",s.jsx("br",{}),"Provided by third-party providers"]})]})]})]})}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-4",children:"We will not collect additional categories of Personal Data without informing you."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.8 Cookies and other trackers"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:'A "cookie" is a small file stored on your device that contains information about your device. We may use cookies to provide basic relevant ads, website functionality, authentication (session management), usage analytics (web analytics), to remember your settings, and to improve our website and Services. We use session and persistent cookies. Session cookies are deleted when you close your browser. Persistent cookies may remain even after you close your browser, but always have an expiration date. Most of the cookies placed on your device through our Services are first-party cookies which are placed directly by us. Other parties, such as Google or LinkedIn, also set their own (third-party) cookies on our websites. Please refer to the policies of these third parties to learn more about the way in which they collect and process information about you:'}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4 mb-4",children:[s.jsx("li",{children:"Google's Privacy Policy"}),s.jsx("li",{children:"Segment"}),s.jsx("li",{children:"HubSpot"})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'If you would prefer not to accept cookies, you can change the setup of your browser to reject all or some cookies. Note, if you reject certain cookies, you may not be able to use all features of our Services. For more information, please visit aboutcookies.org. You may also use a browser that sends Global Privacy Control (GPC) signals. For more information, please visit allaboutdnt.com and globalprivacycontrol.org. Some browsers have incorporated "Do Not Track" (DNT) features. MadKudu does not respond to DNT signals. For more information about our use of cookies, please see our cookie notice.'})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.9. For What Purposes Do We Use Your Personal Data?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We may process your Personal Data for the following purposes:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-3 ml-4",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"For providing and improving our services:"})," Our Customers have a genuine interest in gaining business intelligence through our Services. These Services enable them to obtain valuable insights into their prospects and customers to optimize their sales and marketing strategies by leveraging data-driven insights and predictive analytics. This ultimately leads to a better experience for their prospects and customers"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Providing customer support:"})," Processing Personal Data (such as your name, your job title, the company you work for and your email address) is necessary to address you and resolve your user inquiries or issues effectively. It allows us to fulfill our contractual obligations with our Customers to ensure that their users receive proper assistance from MadKudu when using the Services."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"HR purposes:"})," We use HR personal data provided directly by you—during job applications, onboarding, time-sheet submissions, benefit enrollments, and other HR interactions—to manage your employment, fulfill legal obligations, and provide necessary HR services."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Improve our business:"})," Processing Personal Data (such as your name, your job title, the company you work for and your email address) is necessary to address you and resolve your user inquiries or issues effectively. It allows us to fulfill our contractual obligations with our Customers to ensure that their users receive proper assistance from MadKudu when using the Services."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Sending marketing communications:"})," We use Personal Data (such as your name, email address, job title and company) to send promotional communications about our Services to existing Customers and business contacts, where permitted by applicable laws."]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Complying with laws:"})," We may process Personal Data to comply with laws applicable to MadKudu outside the European Union or the United Kingdom."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.10. How Long do We Keep Your Personal Data"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We will retain and use your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Generally, we retain usage data for a shorter period, except when this data is used to strengthen the security or to improve the functionality of our services, or we are legally obligated to retain this data for longer time periods. We will retain Personal Data:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4 mb-4",children:[s.jsx("li",{children:"We retain your HR personal data only for as long as necessary to manage your employment, fulfill legal obligations, and provide related HR services, or as required by applicable employment laws and regulations."}),s.jsx("li",{children:"Processed in our Services' databases until we receive a valid request to delete personal data from the individual (unless the MadKudu Data Processing Addendum Processor Terms apply)"}),s.jsx("li",{children:"Obtained by MadKudu through cookies for the duration of each tracker"}),s.jsx("li",{children:"Personal Data processed for customer support purposes is stored for a period required or permitted by applicable laws"}),s.jsx("li",{children:"Reporting data from Google Analytics is stored for 14 months"}),s.jsx("li",{children:"Reporting data from Google Ads is stored for 14 months"})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"If your Personal Data is used for more than one purpose, we will retain it until the purpose with the longest retention period expires; but we will stop using it for the purpose with a shorter retention period once that period expires. Our retention periods are also based on our business needs and good practice."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Your Personal Data may need to be retained in our backup systems and will only be deleted or overwritten later, normally one month after the data is deleted from the production environment. This may be the case even when you or a Supervisory Authority has validly asked us to delete your Personal Data or when we do not no longer have a legal basis for processing such Personal Data."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.11. Sharing Personal Data with Third Parties"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"The following table describes, in the last twelve months, the categories of information we have disclosed to third parties for business purposes, and the categories of those third parties."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"These are the specific service providers we are referring to:"}),s.jsxs("div",{className:"space-y-4 mb-6",children:[s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Infrastructure services providers:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:[s.jsx("li",{children:"AWS (Amazon Web Services, Inc.) (USA)"}),s.jsx("li",{children:"MongoDB, Inc. (USA)"}),s.jsx("li",{children:"Datadog, Inc. (USA)"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Customer relationship management software providers:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:[s.jsx("li",{children:"Zendesk, Inc. (USA)"}),s.jsx("li",{children:"HubSpot, Inc. (USA)"}),s.jsx("li",{children:"Salesforce.com, Inc. (USA)"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Incident management and response platform providers:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"PagerDuty, Inc. (USA)"})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Payment software or processing providers:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:[s.jsx("li",{children:"Bill.com, Inc. (USA)"}),s.jsx("li",{children:"Stripe, Inc. (USA)"}),s.jsx("li",{children:"Mercury, Inc (USA)"}),s.jsx("li",{children:"Breezy HR, Inc (USA)"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"B2B marketing data engines:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"APIHub, Inc. doing business as Clearbit (USA)"})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Web analytics providers:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"Google LLC (USA)"})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Collaboration tool providers:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:[s.jsx("li",{children:"Slack Technologies, Inc. (USA)"}),s.jsx("li",{children:"Google LLC (USA)"}),s.jsx("li",{children:"Osano, Inc. (USA)"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Analytics providers:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"Segment.io, Inc. (USA)"})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Scheduling assistance software providers:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"Calendly, Inc. (USA)"})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-gray-900",children:"Intrusion detection and prevention providers:"}),s.jsx("ul",{className:"list-disc list-inside text-gray-700 ml-4",children:s.jsx("li",{children:"Sqreen SAS (France)"})})]})]}),s.jsxs("div",{className:"overflow-x-auto mb-6",children:[s.jsx("p",{className:"text-gray-700 font-semibold mb-3",children:"Categories of Service Providers MadKudu Shares Personal Data with for Business Purposes"}),s.jsxs("table",{className:"min-w-full border border-gray-300",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"Category of Personal Data"}),s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"Service Provider Categories"})]})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Identifiers"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Collaboration tool providers",s.jsx("br",{}),"Scheduling assistance software providers",s.jsx("br",{}),"Customer relationship management software providers",s.jsx("br",{}),"Infrastructure service providers",s.jsx("br",{}),"Analytics service providers",s.jsx("br",{}),"Payment software or processing providers",s.jsx("br",{}),"B2B marketing data engines"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Commercial Information"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Scheduling assistance software providers",s.jsx("br",{}),"Web Analytics providers",s.jsx("br",{}),"Infrastructure service providers",s.jsx("br",{}),"Analytics service providers",s.jsx("br",{}),"B2B marketing data engines"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Internet or similar network activity"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Web Analytics providers",s.jsx("br",{}),"Infrastructure service providers",s.jsx("br",{}),"Analytics service providers",s.jsx("br",{}),"Incident management and response platform providers",s.jsx("br",{}),"Intrusion detection and prevention providers",s.jsx("br",{}),"B2B marketing data engines"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Geolocation data"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Web Analytics providers",s.jsx("br",{}),"Infrastructure service providers",s.jsx("br",{}),"Analytics service providers"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Inferences drawn from other Personal Data"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["Web Analytics providers",s.jsx("br",{}),"Infrastructure service providers",s.jsx("br",{}),"B2B marketing data engines"]})]})]})]})]}),s.jsxs("div",{className:"overflow-x-auto",children:[s.jsx("p",{className:"text-gray-700 font-semibold mb-3",children:"Categories of Third Parties MadKudu Shares Personal Data with"}),s.jsxs("table",{className:"min-w-full border border-gray-300",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-gray-50",children:[s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"Category of Personal Data"}),s.jsx("th",{className:"border border-gray-300 px-4 py-3 text-left font-semibold text-gray-900",children:"Third Party Categories"})]})}),s.jsxs("tbody",{children:[s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Identifiers"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["MadKudu Customers",s.jsx("br",{}),"Advertising platforms"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Commercial Information"})}),s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:"None"})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Internet or similar network activity"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["MadKudu Customers",s.jsx("br",{}),"Advertising platforms"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Geolocation data"})}),s.jsxs("td",{className:"border border-gray-300 px-4 py-3",children:["MadKudu Customers",s.jsx("br",{}),"Advertising platforms"]})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:s.jsx("strong",{children:"Inferences drawn from other Personal Data"})}),s.jsx("td",{className:"border border-gray-300 px-4 py-3",children:"MadKudu Customers"})]})]})]})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-6",children:'When the Personal Data is protected by the GDPR, before transferring your Personal Data to these third parties, we will either ask for your explicit consent or require the third party to maintain at least the same level of privacy and security for your Personal Data that we do. Also, in some cases, the European Commission may have determined that in some countries, their data protection laws provide a level of protection equivalent to European Union law. You can see here the list of countries that the European Commission has recognized as providing an adequate level of protection to Personal Data. We remain liable for the protection of your Personal Data that we transfer or have transferred to third parties through our designated data transfer mechanism, such as Standard Contractual Clauses ("SCCs") as approved by the European Commission under Article 46.2 of the GDPR, except to the extent that we are not responsible for the event that leads to any unauthorized or improper processing.'})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"1.12. Other Disclosure of Personal Data"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We may disclose Personal Data:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4 mb-4",children:[s.jsx("li",{children:"To the extent required by law or if we have a good-faith belief that such disclosure is necessary in order to comply with official investigations or legal proceedings initiated by governmental and/or law enforcement officials, or private parties) If we must disclose your Personal Data to governmental/law enforcement officials, we may not be able to ensure that those officials will maintain the privacy and security of your Personal Data."}),s.jsx("li",{children:"if we sell or transfer all or some of our company's business interests, assets, or both, or in connection with a corporate merger, consolidation, restructuring, or other company change; or"}),s.jsx("li",{children:"to our subsidiaries or affiliates only if necessary for business and operational purposes as described in the section above."})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"We reserve the right to use, transfer, sell, and share aggregated, anonymous data, which does not include any Personal Data for any legal business purpose, such as analyzing usage trends and seeking compatible advertisers, sponsors, clients, and Customers."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"2. What Privacy Rights do you have?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"Certain privacy laws give you specific rights regarding your Personal Data that we collect and process. Please note that you can only exercise these rights with respect to Personal Data that we process about you when we act as a data controller. To exercise your rights with respect to information processed by us on behalf of one of our Customers, please read the privacy notice of that Customer and contact the Customer."}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.1 Right to be informed"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"If this right applies to you under applicable laws, this means that you have the right to obtain from us all information regarding our data processing activities that concern you such as how we collect and use your Personal Data, how long we will keep it, and who it will be shared with, among other things."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We are informing you of how we process your Personal Data with this Notice."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"We will always try to inform you about how we process your Personal Data. However, if we do not collect the Personal Data directly from you, note that the GDPR exempts us from the obligation to inform you (i) when providing the information is either impossible or unreasonably expensive; (ii) the gathering and/or transmission is required by law, or if (iii) the Personal Data must remain confidential due to professional secrecy or other statutory secrecy obligations."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.2 Right of Access"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"This right allows you to ask for full details of the Personal Data we hold about you."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"If this right applies to you under applicable laws, you have the right to obtain from us, including confirmation of whether or not we process Personal Data concerning you and, where that is the case, a copy or access to the Personal Data and certain related information."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Once we receive and confirm that the request came from you or your authorized agent, we will disclose to you:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4 mb-4",children:[s.jsx("li",{children:"The categories of your Personal Data that we process;"}),s.jsx("li",{children:"The categories of sources for your Personal Data;"}),s.jsx("li",{children:"Our purposes for processing your Personal Data;"}),s.jsx("li",{children:"Where possible, the retention period for your Personal Data, or, if not possible, the criteria used to determine the retention period;"}),s.jsx("li",{children:"The categories of third parties with whom we share your Personal Data;"}),s.jsx("li",{children:"If we carry out automated decision-making, including profiling, meaningful information about the logic involved, as well as the significance and the envisaged consequences of such processing for you;"}),s.jsx("li",{children:"The specific pieces of Personal Data we process about you in an easily-sharable format;"}),s.jsx("li",{children:"If we sold, shared, or disclosed your Personal Data for a business purpose, the categories of Personal Data and categories of recipients of that Personal Data for both sales, sharing, and disclosures for business purposes;"}),s.jsx("li",{children:"If we rely on legitimate interests as a lawful basis to process your Personal Data, the specific legitimate interests; and"}),s.jsx("li",{children:"The appropriate safeguards used to transfer Personal Data from the EEA or the UK to a third country, if applicable."})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"Under some circumstances, we may deny your access request. In that event, we will respond to you with the reason for the denial."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"The CCPA does not allow us to disclose Social Security numbers, driver's license numbers or other government-issued identification numbers, financial account numbers, any health insurance or medical identification numbers, account passwords, or security questions and answers. We can inform you that we have this information generally, but we may not provide the specific numbers, passwords etc. to you for security and legal reasons."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.3 Right to rectification"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"If this right applies to you under applicable laws, it gives you the right to ask us to correct without undue delay anything that you think is wrong with the Personal Data we have on file about you, and to complete any incomplete Personal Data."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If your account settings do not allow you change the information yourself, please contact us and we will do our best to change the Personal Data for you."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.4 Right to deletion"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"This is also called the right to erasure, or the right to be forgotten. If this right applies to you under applicable laws, this right means you can ask for your Personal Data to be deleted."}),s.jsxs("p",{className:"text-gray-700 leading-relaxed mb-4",children:["To delete your account with MadKudu, please submit a request at"," ",s.jsx("a",{href:"mailto:support@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"support@madkudu.com"}),"."]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Sometimes we can delete your information, but other times it is not possible for either technical or legal reasons. If that is the case, we will consider if we can limit how we use it. We will also inform you of our reason for denying your deletion request."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.5 Right to restrict processing"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If this right applies to you under applicable laws, it is the right to ask us to only use or store your Personal Data for certain purposes. You have this right in certain instances, such as where you believe the data is inaccurate or the processing activity is unlawful."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:"2.6 Right to object"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"If this right applies to you under applicable laws, this is your right to tell us to stop using your Personal Data. You have this right where we rely on a legitimate interest of ours (or of a third party). You may also object at any time to the processing of your Personal Data for direct marketing purposes."}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We will stop processing the relevant Personal Data unless: (i) we have compelling legitimate grounds for the processing that override your interests, rights, or freedoms; or (ii) we need to continue processing your Personal Data to establish, exercise, or defend a legal claim."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If we have received your Personal Data in reliance on the Data Privacy Frameworks, you may also have the right to opt out of having your Personal Data shared with third parties and to revoke your consent to our sharing your Personal Data with third parties. You may also have the right to opt out if your Personal Data is used for any purpose that is materially different from the purpose(s) for which it was originally collected or which you originally authorized."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Contact Us"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed mb-4",children:["If you have any questions about this Notice or our processing of Personal Data, or want to submit a verifiable consumer request, please contact us by email at"," ",s.jsx("a",{href:"mailto:privacy@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"privacy@madkudu.com"}),", by phone or by postal mail at:"]}),s.jsx("div",{className:"bg-gray-50 p-4 rounded-lg",children:s.jsxs("p",{className:"text-gray-700",children:["MadKudu Inc.",s.jsx("br",{}),"3141 Stevens Creek Blvd #41804, San Jose, CA 95117"]})}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-4",children:"Please allow up to four weeks for us to reply."})]})]})}),Wne=()=>s.jsx(Qd,{title:"Privacy Notice (Processor)",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"When We Act as a Processor"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"When MadKudu processes personal data on behalf of our customers (acting as data controllers), we serve as a data processor. This notice explains how we handle data in this capacity."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Data We Process"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"As a processor, we may handle various types of personal data on behalf of our customers:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2",children:[s.jsx("li",{children:"Contact information (names, email addresses, phone numbers)"}),s.jsx("li",{children:"Company and job-related information"}),s.jsx("li",{children:"Behavioral and engagement data"}),s.jsx("li",{children:"Lead scoring and qualification data"})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Processing Activities"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We process personal data solely for the purpose of providing our services:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2",children:[s.jsx("li",{children:"Lead scoring and qualification"}),s.jsx("li",{children:"Signal generation and analysis"}),s.jsx("li",{children:"Data enrichment and cleansing"}),s.jsx("li",{children:"Integration with customer systems"})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Your Rights"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If your personal data is being processed by MadKudu on behalf of one of our customers, you should direct any privacy requests to that customer. We will assist our customers in responding to such requests as required by law."})]})]})}),$ne=()=>s.jsx(Qd,{title:"Data Processing Addendum (Customer)",children:s.jsxs("div",{className:"space-y-8",children:[s.jsx("div",{className:"bg-gray-50 p-4 rounded-lg",children:s.jsxs("p",{className:"text-sm text-gray-600",children:[s.jsx("strong",{children:"Effective on:"})," 2023-07-20"]})}),s.jsxs("section",{className:"prose prose-lg max-w-none",children:[s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'This Data Processing Addendum, including its schedules ("DPA") is incorporated by reference into and made part of the Master Service Agreement (the "Agreement") entered into between MadKudu, Inc. ("MadKudu") acting on its own behalf and as agent for each MadKudu Affiliate and the customer identified in the Agreement ("Customer") (each a "Party" and together, the "Parties") acting on its own behalf and as agent for each Customer Affiliate. This DPA sets forth certain duties and obligations of the Parties with respect to the protection, security, processing, and privacy of Personal Data collected, provided or made available to MadKudu by Customer as part of the services provided by MadKudu for Customer under the Agreement ("Services"). This DPA shall supplement (and not supersede) the Agreement, and shall take precedence solely to the extent of any conflict between this DPA and the Agreement. All capitalized terms used and not expressly defined in this DPA shall have the meanings given to them in the Agreement. This DPA will apply on the effective date of the Agreement (the "Effective Date").'}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"In the course of providing the Services, MadKudu may Process certain Personal Data provided or made available to MadKudu by Customer on behalf of Customer and the Parties agree to comply with the following provisions with respect to any such Personal Data, each acting reasonably and in good faith."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"This DPA has two sets of terms, the Processor Terms and the Controller Terms to govern the different transfers of Personal Data."}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsx("li",{children:"The Processor Terms apply to any Personal Data that MadKudu and MadKudu Affiliates processes as Customer Data, acting as a Processor on behalf of Customer, as more particularly described in Schedule A of the Processor Terms of this DPA."}),s.jsx("li",{children:'The Controller Terms apply to any Personal Data (referred as "Controller Data" and "Enriched Data") that MadKudu collects, processes, provides or makes available to Customer as an independent Controller for the purpose of the MadKudu ABM features ("MadKudu ABM"), as more particularly described in Schedule A of the Controller Terms of this DPA.'})]}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"When Customer shares Personal Data for the purpose of MadKudu ABM or other features clearly labeled by MadKudu as subject to the Controller Terms, the copy(ies)/version(s) of the Personal Data ingested by MadKudu for MadKudu ABM will solely be governed by the Controller Terms as MadKudu assumes the role of a Controller. The Processor Terms continue to apply to the source copy(ies)/version(s), and the Controller Terms apply and take precedence over the Processor Terms with respect to the copy(ies)/version(s) ingested by MadKudu for MadKudu ABM."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"If a section in the Controller Terms includes a reference to a section of the DPA, the reference is to the relevant section in the Controller Terms. If a section in the Processor Terms includes a reference to a section of the DPA, the reference is to the relevant section in the Processor Terms."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Definitions"}),s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"1. DEFINITIONS"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.1"}),' "EU 2021 Standard Contractual Clauses" means the standard contractual clauses adopted by the Commission Implementing Decision (EU) 2021/679 of 4 June 2021 "on standard contractual clauses for the transfer of personal data to third countries pursuant to Regulation (EU) 2016/679 of the European Parliament and of the Council," which are incorporated into this DPA by reference.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.2"}),' "Affiliate" means an entity that owns or controls, is owned or controlled by or is or under common control or ownership with either MadKudu or Customer respectively, where control is defined as the possession, directly or indirectly, of the power to direct or cause the direction of the management and policies of an entity, whether through ownership of voting securities, by contract or otherwise.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.3"}),' "Controller" means the natural or legal person who alone or jointly with others, determines the purposes and means of the Processing of Personal Data.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.4"}),' "Customer Data" is defined in the Agreement as "[Customer Data]".']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.5"}),' "Controller Data" means Personal Data that MadKudu collects from Customer in connection with the Service, as more particularly described in Schedule A to the Controller Terms. Personal Data that is shared by a Customer with MadKudu through the Services for the purpose of MadKudu ABM becomes Controller Data once it is ingested by MadKudu for that purpose.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.6"}),' "Data Protection Laws and Regulations" means all relevant data protection and data privacy laws, rules and regulations, as may be amended from time to time, which are or will come into force during the term of the Agreement to which the Personal Data are subject. Data Protection Laws and Regulations shall include, but not be limited to (i) the California Consumer Privacy Act of 2018, as amended by the California Privacy Rights Act of 2020, and its implementing regulations (collectively, the "CCPA"); (ii) the Virginia Consumer Data Protection Act ("VCPDA"); (iii) the Colorado Privacy Act and its implementing regulations ("CPA"); (iv) the Utah Consumer Privacy Act ("UCPA"); (v) Connecticut SB6, An Act Concerning Personal Data Privacy and Online Monitoring ("CTDPA"); (vi) the General Data Protection Regulation (EU 2016/679) (the "GDPR"); (vii) the GDPR as it forms part of the law of England and Wales, Scotland and Northern Ireland by virtue of section 3 of the European Union (Withdrawal) Act 2018 and the United Kingdom Data Protection Act of 2018 or any successor law (the "UK GDPR"); and (viii) the Swiss Federal Act on Data Protection ("Swiss FADP").']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.7"}),' "Data Subject" means the identified or identifiable person to whom Personal Data relates.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.8"}),' "Enriched Data" means Personal Data that MadKudu provides or make available to Customer in connection with the Services under the Agreement, as more particularly described in Schedule A of this DPA Controller Terms. Enriched Data may include Personal Data from MadKudu customers that became Controller Data for the purpose of the MadKudu ABM (see "Controller Data").']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.9"}),' "Personal Data" means personal data (as defined under Data Protection Laws and Regulations) that is uploaded or submitted to the Services by Customer.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.10"}),' "Process," "Processes", "Processing", "Processed" means any operation or set of operations which is performed on data or sets of data, whether or not by automated means, such as collection, recording, organization, structuring, storage, adaptation or alteration, retrieval, consultation, use, disclosure by transmission, dissemination, or otherwise making available, alignment or combination, restriction, erasure, or destruction.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.11"}),` "Processor" means any entity that Processes Personal Data under the Controller's instructions.`]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.12"}),` "Security Documentation" means MadKudu's security documentation applicable to the Services, as made available by MadKudu.`]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.13"}),' "Sell," "Sale," "Share," or "Sharing" means selling, sharing, renting, releasing, disclosing, disseminating, making available, transferring, or otherwise communicating orally, in writing, or by electronic or other means, Personal Data or Enriched Data to a third party (for cross-context behavioral advertising in the event of "sharing"), whether or not for monetary or other valuable consideration, including (in the event of "sharing") transactions between a business and a third party for cross-context behavioral advertising for the benefit of a business in which no money is exchanged.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.14"}),' "Sub-processor" means any Processor (including any third party and any Affiliate) engaged by a Processor to Process Personal Data on behalf of a Controller.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.15"}),' "Supervisory Authority" means an independent competent public authority which is established or recognized under Data Protection Laws and Regulations.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.16"}),' "UK Transfer Addendum" means the International Data Transfer Addendum to the EU Commission Standard Contractual Clauses issued pursuant to Section 119A(1) of the Data Protection Act 2018 and approved by the UK Parliament.']})})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Processor Terms"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"1. PROCESSING OF PERSONAL DATA"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.1 Roles."})," Customer is the Controller and MadKudu is the Processor with regard to the Processing of Personal Data under the Agreement. While providing the Services to Customer and Customer Affiliates pursuant to the Agreement, MadKudu and MadKudu Affiliates may Process Personal Data on behalf of Customer or any Customer Affiliate as per the terms of this DPA. MadKudu agrees to comply with the following provisions with respect to any Personal Data submitted by or for Customer or any Customer Affiliate to the Services or otherwise Processed for Customer or any Customer Affiliate by MadKudu or any MadKudu Affiliate."]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.2 Customer's Processing of Personal Data."})," Customer shall (a) collect and Process Personal Data, (b) use the Services, and (c) give MadKudu instructions regarding the Processing of Personal Data for Customer, in all cases, in accordance with the Data Protection Laws and Regulations, rules, and regulations, including the Data Protection Laws and Regulations. Customer is solely liable and responsible for the accuracy, quality, and legality of Personal Data and its Processing of Personal data. Customer is responsible for configuring the Service to meet its security and backup needs and requirements. Customer discloses Personal Data to MadKudu solely for: (i) valid Business Purposes (as defined under Data Protection Laws and Regulations); and (ii) to enable MadKudu to perform the Services."]})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:s.jsx("strong",{children:"1.3 MadKudu's Processing of Personal Data."})}),s.jsxs("div",{className:"ml-8 space-y-3",children:[s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(a)"})," MadKudu shall Process Personal Data in accordance with the requirements directly applicable to MadKudu's provision of its Services under the Data Protection Laws and Regulations. Personal Data shall be considered Customer's Confidential Information under the Agreement."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(b)"})," MadKudu shall only Process Personal Data on behalf of and in accordance with Customer's instructions set forth in this DPA and the Agreement for the specified purposes described in Schedule A to Processor Terms or as required by Data Protection Laws and Regulations."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(c)"})," MadKudu shall immediately inform Customer if, in MadKudu's opinion, a Processing instruction given by Customer may infringe Data Protection Laws and Regulations."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(d)"})," The subject-matter and purpose of Processing of Personal Data by MadKudu is solely so MadKudu can provide the Services to Customer pursuant to the Agreement."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(e)"})," The duration of the Processing shall be for the duration of the Agreement. Schedule A to the Processor Terms describes the nature of the Processing, the types of Personal Data Processed, and categories of Data Subjects for which Personal Data is Processed under this DPA."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(f)"})," Service shall not: (i) Sell or Share Personal Data; (ii) retain, use or disclose Personal Data for a Commercial Purpose (as defined under Data Protection Laws and Regulations) other than providing the Services specified in the Agreement or as otherwise permitted by Data Protection Laws and Regulations; (iii) retain, use, or disclose Personal Data except where permitted under the Agreement between Customer and MadKudu; nor (iv) combine Personal Data with other information that MadKudu Processes on behalf of other persons or that MadKudu collects directly from the Data Subject, with the exception of Processing for Business Purposes. MadKudu certifies that it understands these prohibitions and agrees to comply with them for the duration of the term of the Processor Terms."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(g)"})," MadKudu shall inform Customer, if MadKudu makes the determination that it can no longer comply with this DPA or Data Protection Laws and Regulations."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"(h)"})," Customer has the right, upon notice, to take reasonable and appropriate steps to stop and remediate MadKudu's unauthorized use of Personal Data, such as requiring MadKudu to provide documentation that verifies that MadKudu no longer retains or Processes Personal Data of Data Subjects that have made a valid request to delete their Personal Data to Customer."]})]})]}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"1.4 Personnel."})," MadKudu shall ensure that its personnel engaged in the Processing of Personal Data are informed of the confidential nature of the Personal Data, have received appropriate training on their responsibilities and have executed written, industry standard confidentiality agreements. MadKudu shall ensure that MadKudu's access to Personal Data is limited to those personnel performing Services in accordance with the Agreement."]})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"2. RIGHTS OF DATA SUBJECTS"}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"2.1"}),` MadKudu shall, to the extent legally permitted, promptly notify Customer if MadKudu receives a request from a Data Subject to exercise a Data Subject's right under the Data Protection Laws and Regulations ("Data Subject Request"). Taking into account the nature of the Processing, MadKudu shall assist Customer by appropriate technical and organizational measures, insofar as this is possible, for the fulfilment of Customer's obligation to respond to a Data Subject Request under Data Protection Laws and Regulations. In addition, to the extent Customer, in its use of the Services, does not have the ability to address a Data Subject Request, MadKudu shall upon Customer's request provide commercially reasonable efforts to assist Customer in responding to such Data Subject Request, to the extent MadKudu is legally permitted to do so and the response to such Data Subject Request is required under Data Protection Laws and Regulations. To the extent legally permitted, Customer shall be responsible for any costs arising from MadKudu's provision of such assistance.`]})})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"3. SUB-PROCESSORS"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"3.1 Appointment of Sub-processors."})," Customer acknowledges and agrees that MadKudu may engage third-party Sub-processors in connection with the provision of the Services. MadKudu has entered into a written agreement with each Sub-processor containing data protection obligations not less protective than those in this Agreement with respect to the protection of Personal Data to the extent applicable to the nature of the Services provided by such Sub-processor."]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"3.2 List of Current Sub-processors and Notification of New Sub-processors."}),' MadKudu maintains a current list of Sub-processors for the Services in Schedule B to Processor Terms ("Sub-processors List"). Such Sub-processors list shall include the identities of those Sub-processors and their country of location. MadKudu shall provide Customer notification of potential new Sub-processor(s) before authorizing any new Sub-processor(s) to Process Personal Data.']})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"3.3 Objection Right for New Sub-processors."})," Customer may object to MadKudu's use of a new Sub-processor by notifying MadKudu promptly in writing within ten (10) business days after receipt of MadKudu's notice. In the event Customer objects to a new Sub-processor, as permitted in the preceding sentence, MadKudu will use reasonable efforts to make available to Customer a change in the Services or recommend a commercially reasonable change to Customer's configuration or use of the Services to avoid Processing of Personal Data by the objected-to new Sub-processor without unreasonably burdening the Customer. If MadKudu is unable to make available such change within a reasonable period of time, which shall not exceed thirty (30) days, Customer may terminate the applicable Order Form(s) with respect only to those Services which cannot be provided by MadKudu without the use of the objected-to new Sub-processor by providing written notice to MadKudu. MadKudu will refund Customer any prepaid fees covering the remainder of the term of such Order Form(s) following the effective date of termination with respect to such terminated Services, without imposing a penalty for such termination on Customer."]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"3.4 Liability."})," MadKudu shall be liable for the acts and omissions of its Sub-processors to the same extent MadKudu would be liable if performing the services of each Sub-processor directly under the terms of this DPA, except as otherwise set forth in the Agreement."]})})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"4. SECURITY"}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"4.1 Controls for the Protection of Personal Data."})," MadKudu shall maintain appropriate technical and organizational measures to ensure a level of security appropriate to the risk posed by the Processing. MadKudu's measures will include those set forth in the Security Documentation. MadKudu regularly monitors compliance with these measures. MadKudu will not materially decrease the overall security of the Services during a subscription term."]})})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"5. CUSTOMER DATA INCIDENT MANAGEMENT AND NOTIFICATION"}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"5.1"}),` MadKudu maintains security incident management policies and procedures specified in the Security Documentation and shall, notify Customer without undue delay, and in any event, within 48 hours, after becoming aware of the accidental or unlawful destruction, loss, alteration, unauthorized disclosure of, or access to Customer Data, including Personal Data, transmitted, stored or otherwise Processed by MadKudu or its Sub-processors (a "Customer Data Incident"). Such notice shall summarize in reasonable detail the timing and nature of the Customer Data Incident, the impact on Customer, and/or the Data Subjects affected by such Customer Data Incident and the corrective action taken or proposed to be taken by MadKudu. MadKudu shall make reasonable efforts to identify the cause of such Customer Data Incident and take those steps as MadKudu deems necessary and reasonable to remediate the cause of such a Customer Data Incident to the extent the remediation is within MadKudu's reasonable control. The obligations herein shall not apply to incidents that are caused by Customer or Customer's Users. The notification of or response to a Customer Data Incident under this Section 5 will not be construed as an acknowledgement by MadKudu of any fault or liability with respect to the Customer Data Incident.`]})})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"6. RETURN AND DELETION OF CUSTOMER DATA"}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"6.1"})," MadKudu shall return Customer Data to Customer or, to the extent allowed by Data Protection Laws and Regulations, delete Customer Data in accordance with the procedures and timeframes specified in the Security Documentation, or as requested by Customer."]})})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"7. DATA PROTECTION IMPACT ASSESSMENTS AND AUDIT RIGHTS"}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"7.1 Assistance with Data Protection Impact Assessments and Prior Consultations."})," MadKudu shall provide Customer with relevant information and documentation, such as, if available, an audit report (upon a written request and subject to obligations of confidentiality), with regard to any data protection impact assessments, and prior consultations with supervisory authorities when the Customer reasonably considers that such data protection impact assessments or prior consultations are required pursuant to the Data Protection Laws and Regulations but in each such case solely with regard to Processing of Personal Data by, and taking into account the nature of the Processing and information available to MadKudu."]})}),s.jsx("div",{children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:[s.jsx("strong",{children:"7.2 Demonstrating Compliance with this DPA."})," Where Customer is entitled to and desires to review MadKudu's compliance with this DPA, Customer may request, and MadKudu will provide (subject to obligations of confidentiality) relevant documentation, or any relevant audit report MadKudu might have been issued. If Customer, after having reviewed such audit report(s), still reasonably deems that it requires additional information, MadKudu shall further reasonably assist and make available to Customer, upon a written request and subject to obligations of confidentiality, all other information (excluding legal advice) and/or documentation necessary to demonstrate its compliance with this DPA, and the obligations pursuant to Articles 32 to 36 of the GDPR and UK GDPR in particular, and shall allow for and contribute to audits, including remote inspections of the Services, by Customer or an auditor mandated by Customer with regard to the Processing of the Personal Data by MadKudu. MadKudu shall provide the assistance described in this sub-section 7.2 insofar as in MadKudu's reasonable opinion such audits, and the specific requests of Customer, do not interfere with MadKudu's business operations or cause MadKudu to breach any legal or contractual obligation to which it is subject."]})})]})]})]})]}),s.jsx("div",{className:"bg-gray-50 p-6 rounded-lg",children:s.jsx("p",{className:"text-sm text-gray-600 italic",children:"This document continues with additional sections covering transfers of personal data, controller terms, schedules, and detailed processing information. The complete DPA includes comprehensive provisions for international data transfers, standard contractual clauses, sub-processor lists, and technical and organizational measures."})}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Contact Information"}),s.jsxs("div",{className:"bg-blue-50 p-4 rounded-lg",children:[s.jsxs("p",{className:"text-gray-700",children:[s.jsx("strong",{children:"Data Protection Officer:"})," privacy@madkudu.com"]}),s.jsxs("p",{className:"text-gray-700 mt-2",children:[s.jsx("strong",{children:"MadKudu Inc."}),s.jsx("br",{}),"333 W Maude Ave, Sunnyvale, CA 94085, United States of America"]})]})]})]})}),Gne=()=>s.jsx(Qd,{title:"Security Practices",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("section",{children:[s.jsx("p",{className:"text-gray-700 leading-relaxed mb-6",children:"As a customer, you are entrusting us with your customer data. We take this responsibility very seriously. That's why security and privacy are key focus areas for our organization and product development."}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["To receive more details about our security practices, please email us at"," ",s.jsx("a",{href:"mailto:security@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"security@madkudu.com"}),"."]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Certifications"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"MadKudu's security and privacy program is based on and aligned with industry-standard frameworks. We maintain SOC 2 type II certification to demonstrate our commitment."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Vulnerability Disclosure"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["If you would like to report a vulnerability or have any security concerns with MadKudu, please contact"," ",s.jsx("a",{href:"mailto:security@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"security@madkudu.com"}),"."]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Security Whitepaper"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["We are committed to transparently sharing our security practices. We make available our security whitepaper, please email us at"," ",s.jsx("a",{href:"mailto:security@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"security@madkudu.com"})," ","to get a copy."]})]})]})}),qne=()=>s.jsx(Qd,{title:"Product-specific Terms",children:s.jsxs("div",{className:"space-y-8",children:[s.jsx("div",{className:"text-sm text-gray-600 mb-6",children:"February 21, 2025."}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-gray-700 leading-relaxed",children:`These Product-Specific Terms ("Terms") are additional product specific terms which apply to any Services provided by Madkudu Inc. ("Madkudu") to the party that executes an order form for such services ("Customer") through Madkudu's distribution partner ("Agreement"). MadKudu reserves the right to update these Terms from time to time. We will post any updates on this website and/or notify you. Your continued use of the Services after any such changes constitutes your acceptance of the new terms. These Terms form an agreement between Customer and Madkudu. Each is individually referred to as a Party and together the Parties.`}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"1. Definitions"}),s.jsxs("div",{className:"space-y-2 text-gray-700",children:[s.jsxs("p",{children:[s.jsx("strong",{children:'"Customer"'})," means the entity accessing or using the MadKudu Services identified in the distributor partner order form."]}),s.jsxs("p",{children:[s.jsx("strong",{children:'"Customer Data"'})," means non-public data provided by Customer to MadKudu to enable the provision of the Services or data generated by Customer through the use of the Services."]}),s.jsxs("p",{children:[s.jsx("strong",{children:'"Services"'})," means MadKudu services, website, and related products and offerings."]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"2. Restriction and Responsibilities"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.1"}),s.jsx("p",{className:"text-gray-700",children:`MadKudu will provide Customer with the Services described in the distribution partner's order form ("Order Form")`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.2"}),s.jsx("p",{className:"text-gray-700",children:"MadKudu grants Customer a limited, non-exclusive, revocable, non-sublicensable, non-transferable license to use and access the Services, for the applicable term described in the Order Form. Customer's use of the Services includes the right to access all functionalities available in the purchased services."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.3"}),s.jsx("p",{className:"text-gray-700",children:'MadKudu reserves the right to modify, enhance, or update the Services from time to time in its sole discretion ("Changes") without degrading its functionalities or security features. Changes may include, but are not limited to, modifications to functionality, features, user interface, security measures, underlying technology, or performance of the Services.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.4"}),s.jsx("p",{className:"text-gray-700",children:"MadKudu shall provide technical support and maintenance services for Services in accordance with its standard support policies."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"2.5"}),s.jsx("p",{className:"text-gray-700",children:"MadKudu allows Customer to easily integrate any third-party tool to the Services, which allows Customer to use these third-party integrations in connection with the Service, nonetheless, MadKudu does not warrant or support third-party products and disclaims all responsibility and liability for these items, their use or their access to the Service, including the modification, deletion, disclosure, or collection of your Customer Data. Third party services are provided pursuant to the terms of the applicable third-party license or separate agreement between the third-party service provider and Customer."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"3. Restriction and Responsibilities"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.1"}),s.jsx("p",{className:"text-gray-700",children:'Customer shall use the Services in a responsible and professional manner consistent with the intended and permissible uses herein and consistent with standard industry practice. Customer will not, directly or indirectly: reverse engineer, decompile, disassemble or otherwise attempt to discover the source code, object code or underlying structure, ideas, know-how or algorithms relevant to the Services or any software, documentation or data related to the Services ("Software"); modify, translate, or create derivative works based on the Services or any Software (except to the extent expressly permitted by MadKudu or authorized within the Services); use the Services or any Software for timesharing or service bureau purposes or otherwise for the benefit of a third party; or remove any proprietary notices or labels.'})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"3.2"}),s.jsx("p",{className:"text-gray-700",children:"Customer represents, covenants, and warrants that Customer will use the Services only in compliance with these Terms and all applicable laws and regulations."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"4. Warranties"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.1"}),s.jsx("p",{className:"text-gray-700",children:`MadKudu warrants that the Services will substantially perform in accordance with the documentation available on its support portal and MadKudu shall use its best reasonable efforts consistent with prevailing industry standards to maintain the Services in a manner which minimizes errors and interruptions in the Services and shall perform the Services in a professional and workmanlike manner. Services may be temporarily unavailable for scheduled maintenance or for unscheduled emergency maintenance, either by MadKudu or by third-party providers, or because of other causes beyond MadKudu's reasonable control, but MadKudu shall use reasonable efforts to provide advance notice in writing, by email, or via an in-app notification of any scheduled service disruption. However, MadKudu does not warrant that the services will be uninterrupted or error free; nor does it make any warranty as to the results that may be obtained from use of the Services. Except as expressly set forth in this Agreement, the Services are provided "as is" and MadKudu disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose and non-infringement.`})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"4.2"}),s.jsx("p",{className:"text-gray-700",children:"Customer acknowledges and agrees that, in the course of its engagement with MadKudu, MadKudu may provide, receive, or otherwise have access to Customer Data that is personal data or personal information as defined under applicable data protection and privacy laws. For purposes of compliance with applicable data protection and privacy laws, the Parties agree to the terms of MadKudu's standard Data Processing Addendum, which is incorporated by reference into these Terms."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"5. Indemnification"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"5.1"}),s.jsx("p",{className:"text-gray-700",children:"MadKudu hereby agrees to indemnify and hold harmless Customer against any third-party damages, losses, liabilities, settlements and expenses (as well as Customer's reasonable costs of defense and attorneys' fees) in connection with any claim or action brought by a third party that arises (a) from an alleged violation by MadKudu of applicable laws or regulations in connection with the performance of its obligations under these Terms or (b) from a claim that MadKudu's provision of the Services violates any third-party intellectual property, contractual, or other third party right."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"5.2"}),s.jsx("p",{className:"text-gray-700",children:"Customer hereby agrees to indemnify and hold harmless MadKudu against any third-party damages, losses, liabilities, fines, settlements and expenses (as well as MadKudu's reasonable costs of defense and attorneys' fees) in connection with any claim or action that arises from: (a) Customer's violation of any provision of these Terms, (b) Customer's sending of any information, messages, or materials to any lead processed by MadKudu in violation of any law or the rights of any third party, or (c) Customer's failure to comply with any applicable laws, regulations, or governmental orders in connection with the performance of its obligations under these Terms."})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"6. Limitation of Liability"}),s.jsx("div",{className:"space-y-4",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"6.1"}),s.jsx("p",{className:"text-gray-700 mb-3",children:"Notwithstanding anything to the contrary in these Terms, neither party nor its suppliers (including, but not limited to, equipment and technology suppliers), officers, affiliates, representatives, contractors, or employees shall be liable for any of the following under any theory of contract, negligence, strict liability, or otherwise:"}),s.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 ml-4",children:[s.jsxs("li",{children:[s.jsx("strong",{children:"6.1.1"})," Any errors or interruptions in the use of the Services, loss, inaccuracy, or corruption of data, costs related to the procurement of substitute goods, services, or technology, or any loss of business;"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"6.1.2"})," Any indirect, exemplary, incidental, special, or consequential damages;"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"6.1.3"})," Any matter beyond such party's reasonable control;"]})]})]})})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"7. Liability Limitations"}),s.jsx("p",{className:"text-gray-700",children:"The liability of each Party for damages or alleged damages hereunder, whether in contract, tort, or any other legal theory, is limited to, and will not exceed an amount equal to the total fees paid by the Customer for MadKudu Services during the 12 months preceding the event giving rise to the liability, this applies whether or not a party has been advised of the possibility of such damages. However, the foregoing limitations shall not apply to claims or losses arising from (a) a Party's indemnification obligations under these Terms; or (b) gross negligence or willful misconduct by either Party."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"8. Governing Law"}),s.jsx("p",{className:"text-gray-700",children:"These Terms shall be governed by the laws of the State of California without regard to its conflict of laws provisions and any disputes arising out of or in connection with these Terms shall be subject to the exclusive jurisdiction of the courts located in Santa Clara County in the state of California."})]})]})]})}),Yne=()=>s.jsx(Qd,{title:"Cookie Notice",children:s.jsxs("div",{className:"space-y-8",children:[s.jsx("div",{className:"bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500",children:s.jsxs("p",{className:"text-sm font-medium text-blue-900",children:[s.jsx("strong",{children:"Effective on:"})," 2023-07-28"]})}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"1. Introduction and Scope"}),s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:'This Cookie Notice (the "Notice") explains how and why MadKudu, Inc. ("MadKudu," "we," "us," or "our") uses cookies and other similar technologies ("Tracking Technologies") on our websites and apps and on any webpage linking to this Notice (collectively, the "Website") to collect and develop data. It explains what these technologies are and why we use them, as well as your rights to control our use of them.'}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"To the extent that any information collected by the Tracking Technologies, either on its own or in combination with other information, constitutes Personal Data as the term is defined in our Controller Privacy Notice, both our Controller Privacy Notice and this Notice shall apply to the processing and transferring of such Personal Data."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"2. What are Cookies and other Tracking Technologies?"}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Cookies"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"A cookie is a small text file stored on your device (computer, phone, tablet, etc.) that contains information about your browser and online activity. This information often consists of a string of numbers and letters that uniquely identifies your device."})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:"We may also use:"}),s.jsxs("div",{className:"space-y-4 pl-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:"Local Storage"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Local storage enables our Website to store information locally on your device. Local storage may be used to improve your experience with our Website, for example, by enabling features, remembering your preferences and speeding up our Website functionality."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:'GIFs (a.k.a. "web beacons")'}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Our Website may also employ a software technology called clear that helps us better manage content on our Website by providing insight into which content is most effective. Clear GIFs are tiny graphics with a unique identifier, similar in function to cookies, that are used to track the online movements of Website users."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:'Local shared objects (a.k.a. "flash cookies")'}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Flash cookies are pieces of data that websites which use Adobe Flash may store on your device."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:"Pixels"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"A tracking pixel is a 1x1 pixel graphic used for the purpose of tracking user behavior, web traffic, and site conversions. A tracking pixel allows us to collect data relating to the use of our Website. Tracking pixels, such as the Meta Pixel, are used to trigger advertisements on any participating websites based on the activity tracked from your browser or device and can also be used for third-party web analytics."})]}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold text-gray-900 mb-2",children:"Other similar tracking technologies"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"We may also use other tracking technologies, such as mobile advertising IDs and tags for similar purposes as described in this Notice."})]})]})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"3. Why do we use Tracking Technologies?"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"We use Tracking Technologies to allow the Website to operate, to increase its functionality and efficiency, to analyze how you use it so that we can improve it, to tailor the content and information that we display to you, to provide you with targeted advertisements, and fulfill other legitimate purposes as described below."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"4. What types of Cookies and Tracking Technologies do we use on our Website and how do we use them?"}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"We use session cookies and persistent cookies on our Website. The session cookies are deleted or removed when you close your browser. The persistent cookies may remain on your device after you close your browser, but they have an expiration date."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Some of the cookies placed on your device through our Website are first-party cookies, meaning they are placed directly by us. Others are third-party cookies, meaning they are placed on your device through our Website by third parties, such as Google. In other words, when you visit our Website, certain third parties may place cookies on your device to collect information about your online activities over time and across different Internet websites or online services."}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"In the cookie tables here, we provide you with links to the applicable privacy notices for the providers who place third-party cookies on your device through our Website, where possible. Please refer to the privacy notices of those third parties to learn more about the ways in which they collect and process personal data about you."}),s.jsxs("div",{className:"grid gap-6 mt-8",children:[s.jsxs("div",{className:"bg-red-50 p-6 rounded-lg border border-red-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-red-900 mb-3",children:"Strictly Necessary Tracking Technologies"}),s.jsx("p",{className:"text-red-800 leading-relaxed",children:"These are necessary for our Website to function, and we cannot turn them off in our systems. You may still be able to set your browser to block or alert you about some of these Tracking Technologies, but if you do block these Tracking Technologies, some parts of our Website will not work."})]}),s.jsxs("div",{className:"bg-orange-50 p-6 rounded-lg border border-orange-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-orange-900 mb-3",children:"Performance Tracking Technologies"}),s.jsx("p",{className:"text-orange-800 leading-relaxed",children:"These allow us, among other things, to count Website visits and traffic sources so that we can measure and improve the performance of our Website. They help us to know which pages are the most – and least – popular, and see how visitors move around the Website. If you do not allow these Tracking Technologies, we will not know when you have visited our Website, and we will not be able to monitor our Website's performance."})]}),s.jsxs("div",{className:"bg-yellow-50 p-6 rounded-lg border border-yellow-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-yellow-900 mb-3",children:"Functional Tracking Technologies"}),s.jsx("p",{className:"text-yellow-800 leading-relaxed",children:"These enable the Website to provide enhanced functionality and personalization. They may be used by us or by third-party providers whose services we have added to our pages. If you do not allow these Tracking Technologies, then some or all of these services may not function properly."})]}),s.jsxs("div",{className:"bg-green-50 p-6 rounded-lg border border-green-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-green-900 mb-3",children:"Targeting Tracking Technologies"}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-green-800 leading-relaxed",children:"These may be used on our Website by our advertising partners (or set directly by our advertising partners) to collect data about your online activity. They record your visits to our Website, the pages you have visited, and the links you have followed. They are used by our advertising partners to build a profile of your interests and show you relevant advertisements on our Website as well as other sites. For example, they're used to detect when you click on an ad and show you ads based on your social media interests and browsing history."}),s.jsx("p",{className:"text-green-800 leading-relaxed",children:"We and third parties use social media cookies to show you ads and content based on your social media profiles and activity on our Website. They're used to connect your activity on our Website to your social media profiles so the ads and content you see on our Website and on social media will better reflect your interests."}),s.jsx("p",{className:"text-green-800 leading-relaxed",children:"If you do not allow these Tracking Technologies, you will experience fewer targeted advertisements, and you will impair our ability to provide you with tailored services and offerings."})]})]}),s.jsxs("div",{className:"bg-gray-50 p-6 rounded-lg border border-gray-200",children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-3",children:"Uncategorized Tracking Technologies"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:"These may be used on our Website that do not fall into any of the above categories at this time. We have included as much information as possible about each of these cookies below."})]})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"5. How can I enable / disable cookies?"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"GPC"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["You can use a browser that sends Global Privacy Control (GPC) signals. For more information, please visit"," ",s.jsx("a",{href:"https://allaboutdnt.com",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"allaboutdnt"})," ","and"," ",s.jsx("a",{href:"https://globalprivacycontrol.org",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"Global privacy control"}),"."]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Opting Out"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed mb-4",children:["You can alter the configuration of your browser to reject certain types of Tracking Technologies, including cookies. Please note, however, that if you reject certain cookies, you may not be able to access and use all of the features on our Website. You may also set your browser to send a DNT signal. For more information about how to manage cookies, please visit"," ",s.jsx("a",{href:"https://aboutcookies.org",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"aboutcookies.org"}),"."]}),s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["You may also control your online behavioral advertising preferences and opt out from having your data processed by certain marketing companies by visiting"," ",s.jsx("a",{href:"https://youronlinechoices.com",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"youronlinechoices.com"})," ","and"," ",s.jsx("a",{href:"https://optout.aboutads.info",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"optout.aboutads.info"}),". Please note, however, that managing these preferences will not turn off internet advertisements in general. You will still receive the same number of advertisements, but those advertisements will be less reflective of your interests, as indicated by your web browsing habits. In addition, please note that the opt-out preferences that you set using these tools may be nullified if you delete your cookies after setting them."]})]})]})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"6. Changes to this Notice"}),s.jsx("p",{className:"text-gray-700 leading-relaxed",children:'If we make any material change to this Notice, we will post the revised Notice to our Website and update the "Effective Date" above to reflect the date on which the new Notice became effective.'})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"7. Contact Us"}),s.jsxs("p",{className:"text-gray-700 leading-relaxed mb-4",children:["If you have any questions about this Notice, please send us an email to"," ",s.jsx("a",{href:"mailto:privacy@madkudu.com",className:"text-blue-600 hover:text-blue-800 underline",children:"privacy@madkudu.com"}),", or contact us by postal mail at:"]}),s.jsx("div",{className:"bg-gray-50 p-4 rounded-lg border",children:s.jsxs("p",{className:"text-gray-700 leading-relaxed",children:["MadKudu Inc.",s.jsx("br",{}),"333 W Maude Ave., Suite 207",s.jsx("br",{}),"Sunnyvale, CA 94085 USA"]})}),s.jsx("p",{className:"text-gray-700 leading-relaxed mt-4",children:"Please allow up to four weeks (4) for us to reply."})]})]})}),Jne=()=>(b.useEffect(()=>{document.title="Thank You | MadKudu"},[]),s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(Me,{}),s.jsx("section",{className:"pt-24 pb-16 py-[149px]",children:s.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx(yt,{className:"mb-16 border-2 border-black",children:s.jsxs(zt,{className:"p-16 text-center",children:[s.jsxs("h1",{className:"text-4xl font-normal text-black mb-6 leading-tight",children:["Thank you for requesting a ",s.jsx("span",{className:"bg-yellow-300 px-2 py-1",children:"demo!"})]}),s.jsx("p",{className:"text-lg text-gray-700",children:"A member of our team will be in touch with you very soon."})]})})})}),s.jsx(Qe,{})]})),Xne=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>Li(async()=>{const{default:n}=await Promise.resolve().then(()=>gh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)};class ON extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class Zne extends ON{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class ese extends ON{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class tse extends ON{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Nj;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Nj||(Nj={}));var rse=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};class nse{constructor(e,{headers:r={},customFetch:n,region:a=Nj.Any}={}){this.url=e,this.headers=r,this.region=a,this.fetch=Xne(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,r={}){var n;return rse(this,void 0,void 0,function*(){try{const{headers:a,method:i,body:o}=r;let l={},{region:c}=r;c||(c=this.region),c&&c!=="any"&&(l["x-region"]=c);let d;o&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(l["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(l["Content-Type"]="application/json",d=JSON.stringify(o)));const A=yield this.fetch(`${this.url}/${e}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),a),body:d}).catch(g=>{throw new Zne(g)}),u=A.headers.get("x-relay-error");if(u&&u==="true")throw new ese(A);if(!A.ok)throw new tse(A);let h=((n=A.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),m;return h==="application/json"?m=yield A.json():h==="application/octet-stream"?m=yield A.blob():h==="text/event-stream"?m=A:h==="multipart/form-data"?m=yield A.formData():m=yield A.text(),{data:m,error:null}}catch(a){return{data:null,error:a}}})}}var ws={},HN={},Sv={},jp={},kv={},Ev={},sse=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},th=sse();const ase=th.fetch,$_=th.fetch.bind(th),G_=th.Headers,ise=th.Request,ose=th.Response,gh=Object.freeze(Object.defineProperty({__proto__:null,Headers:G_,Request:ise,Response:ose,default:$_,fetch:ase},Symbol.toStringTag,{value:"Module"})),lse=LD(gh);var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});let cse=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};Fv.default=cse;var q_=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ev,"__esModule",{value:!0});const dse=q_(lse),Ase=q_(Fv);let use=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=dse.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,r){return this.headers=Object.assign({},this.headers),this.headers[e]=r,this}then(e,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,l,c;let d=null,A=null,u=null,h=i.status,m=i.statusText;if(i.ok){if(this.method!=="HEAD"){const y=await i.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?A=y:A=JSON.parse(y))}const p=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),w=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");p&&w&&w.length>1&&(u=parseInt(w[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(A)&&(A.length>1?(d={code:"PGRST116",details:`Results contain ${A.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},A=null,u=null,h=406,m="Not Acceptable"):A.length===1?A=A[0]:A=null)}else{const p=await i.text();try{d=JSON.parse(p),Array.isArray(d)&&i.status===404&&(A=[],d=null,h=200,m="OK")}catch{i.status===404&&p===""?(h=204,m="No Content"):d={message:p}}if(d&&this.isMaybeSingle&&(!((c=d==null?void 0:d.details)===null||c===void 0)&&c.includes("0 rows"))&&(d=null,h=200,m="OK"),d&&this.shouldThrowOnError)throw new Ase.default(d)}return{error:d,data:A,count:u,status:h,statusText:m}});return this.shouldThrowOnError||(a=a.catch(i=>{var o,l,c;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(l=i==null?void 0:i.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(c=i==null?void 0:i.code)!==null&&c!==void 0?c:""}`},data:null,count:null,status:0,statusText:""}})),a.then(e,r)}returns(){return this}overrideTypes(){return this}};Ev.default=use;var hse=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kv,"__esModule",{value:!0});const mse=hse(Ev);let fse=class extends mse.default{select(e){let r=!1;const n=(e??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:r=!0,nullsFirst:n,foreignTable:a,referencedTable:i=a}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${e}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${e}`),this}range(e,r,{foreignTable:n,referencedTable:a=n}={}){const i=typeof a>"u"?"offset":`${a}.offset`,o=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${r-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:r=!1,settings:n=!1,buffers:a=!1,wal:i=!1,format:o="text"}={}){var l;const c=[e?"analyze":null,r?"verbose":null,n?"settings":null,a?"buffers":null,i?"wal":null].filter(Boolean).join("|"),d=(l=this.headers.Accept)!==null&&l!==void 0?l:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${d}"; options=${c};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};kv.default=fse;var pse=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jp,"__esModule",{value:!0});const gse=pse(kv);let xse=class extends gse.default{eq(e,r){return this.url.searchParams.append(e,`eq.${r}`),this}neq(e,r){return this.url.searchParams.append(e,`neq.${r}`),this}gt(e,r){return this.url.searchParams.append(e,`gt.${r}`),this}gte(e,r){return this.url.searchParams.append(e,`gte.${r}`),this}lt(e,r){return this.url.searchParams.append(e,`lt.${r}`),this}lte(e,r){return this.url.searchParams.append(e,`lte.${r}`),this}like(e,r){return this.url.searchParams.append(e,`like.${r}`),this}likeAllOf(e,r){return this.url.searchParams.append(e,`like(all).{${r.join(",")}}`),this}likeAnyOf(e,r){return this.url.searchParams.append(e,`like(any).{${r.join(",")}}`),this}ilike(e,r){return this.url.searchParams.append(e,`ilike.${r}`),this}ilikeAllOf(e,r){return this.url.searchParams.append(e,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(e,r){return this.url.searchParams.append(e,`ilike(any).{${r.join(",")}}`),this}is(e,r){return this.url.searchParams.append(e,`is.${r}`),this}in(e,r){const n=Array.from(new Set(r)).map(a=>typeof a=="string"&&new RegExp("[,()]").test(a)?`"${a}"`:`${a}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cs.{${r.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(r)}`),this}containedBy(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cd.{${r.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(r)}`),this}rangeGt(e,r){return this.url.searchParams.append(e,`sr.${r}`),this}rangeGte(e,r){return this.url.searchParams.append(e,`nxl.${r}`),this}rangeLt(e,r){return this.url.searchParams.append(e,`sl.${r}`),this}rangeLte(e,r){return this.url.searchParams.append(e,`nxr.${r}`),this}rangeAdjacent(e,r){return this.url.searchParams.append(e,`adj.${r}`),this}overlaps(e,r){return typeof r=="string"?this.url.searchParams.append(e,`ov.${r}`):this.url.searchParams.append(e,`ov.{${r.join(",")}}`),this}textSearch(e,r,{config:n,type:a}={}){let i="";a==="plain"?i="pl":a==="phrase"?i="ph":a==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${r}`),this}match(e){return Object.entries(e).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(e,r,n){return this.url.searchParams.append(e,`not.${r}.${n}`),this}or(e,{foreignTable:r,referencedTable:n=r}={}){const a=n?`${n}.or`:"or";return this.url.searchParams.append(a,`(${e})`),this}filter(e,r,n){return this.url.searchParams.append(e,`${r}.${n}`),this}};jp.default=xse;var yse=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sv,"__esModule",{value:!0});const dm=yse(jp);let vse=class{constructor(e,{headers:r={},schema:n,fetch:a}){this.url=e,this.headers=r,this.schema=n,this.fetch=a}select(e,{head:r=!1,count:n}={}){const a=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",o),n&&(this.headers.Prefer=`count=${n}`),new dm.default({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:r,defaultToNull:n=!0}={}){const a="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),r&&i.push(`count=${r}`),n||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(e)){const o=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(o.length>0){const l=[...new Set(o)].map(c=>`"${c}"`);this.url.searchParams.set("columns",l.join(","))}}return new dm.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:r,ignoreDuplicates:n=!1,count:a,defaultToNull:i=!0}={}){const o="POST",l=[`resolution=${n?"ignore":"merge"}-duplicates`];if(r!==void 0&&this.url.searchParams.set("on_conflict",r),this.headers.Prefer&&l.push(this.headers.Prefer),a&&l.push(`count=${a}`),i||l.push("missing=default"),this.headers.Prefer=l.join(","),Array.isArray(e)){const c=e.reduce((d,A)=>d.concat(Object.keys(A)),[]);if(c.length>0){const d=[...new Set(c)].map(A=>`"${A}"`);this.url.searchParams.set("columns",d.join(","))}}return new dm.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:r}={}){const n="PATCH",a=[];return this.headers.Prefer&&a.push(this.headers.Prefer),r&&a.push(`count=${r}`),this.headers.Prefer=a.join(","),new dm.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const r="DELETE",n=[];return e&&n.push(`count=${e}`),this.headers.Prefer&&n.unshift(this.headers.Prefer),this.headers.Prefer=n.join(","),new dm.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Sv.default=vse;var Iv={},Pv={};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.version=void 0;Pv.version="0.0.0-automated";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.DEFAULT_HEADERS=void 0;const bse=Pv;Iv.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${bse.version}`};var Y_=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(HN,"__esModule",{value:!0});const wse=Y_(Sv),jse=Y_(jp),Nse=Iv;let Cse=class J_{constructor(e,{headers:r={},schema:n,fetch:a}={}){this.url=e,this.headers=Object.assign(Object.assign({},Nse.DEFAULT_HEADERS),r),this.schemaName=n,this.fetch=a}from(e){const r=new URL(`${this.url}/${e}`);return new wse.default(r,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new J_(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,r={},{head:n=!1,get:a=!1,count:i}={}){let o;const l=new URL(`${this.url}/rpc/${e}`);let c;n||a?(o=n?"HEAD":"GET",Object.entries(r).filter(([A,u])=>u!==void 0).map(([A,u])=>[A,Array.isArray(u)?`{${u.join(",")}}`:`${u}`]).forEach(([A,u])=>{l.searchParams.append(A,u)})):(o="POST",c=r);const d=Object.assign({},this.headers);return i&&(d.Prefer=`count=${i}`),new jse.default({method:o,url:l,headers:d,schema:this.schemaName,body:c,fetch:this.fetch,allowEmpty:!1})}};HN.default=Cse;var xh=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ws,"__esModule",{value:!0});ws.PostgrestError=ws.PostgrestBuilder=ws.PostgrestTransformBuilder=ws.PostgrestFilterBuilder=ws.PostgrestQueryBuilder=ws.PostgrestClient=void 0;const X_=xh(HN);ws.PostgrestClient=X_.default;const Z_=xh(Sv);ws.PostgrestQueryBuilder=Z_.default;const eM=xh(jp);ws.PostgrestFilterBuilder=eM.default;const tM=xh(kv);ws.PostgrestTransformBuilder=tM.default;const rM=xh(Ev);ws.PostgrestBuilder=rM.default;const nM=xh(Fv);ws.PostgrestError=nM.default;var Bse=ws.default={PostgrestClient:X_.default,PostgrestQueryBuilder:Z_.default,PostgrestFilterBuilder:eM.default,PostgrestTransformBuilder:tM.default,PostgrestBuilder:rM.default,PostgrestError:nM.default};const{PostgrestClient:Sse,PostgrestQueryBuilder:Dfe,PostgrestFilterBuilder:Rfe,PostgrestTransformBuilder:Ofe,PostgrestBuilder:Hfe,PostgrestError:Kfe}=Bse;let Cj;typeof window>"u"?Cj=require("ws"):Cj=window.WebSocket;const kse=Cj,Ese="2.11.10",Fse={"X-Client-Info":`realtime-js/${Ese}`},Ise="1.0.0",sM=1e4,Pse=1e3;var yu;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(yu||(yu={}));var Zn;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Zn||(Zn={}));var $a;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})($a||($a={}));var Bj;(function(t){t.websocket="websocket"})(Bj||(Bj={}));var Mc;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Mc||(Mc={}));class Tse{constructor(){this.HEADER_LENGTH=1}decode(e,r){return e.constructor===ArrayBuffer?r(this._binaryDecode(e)):r(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const r=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,r,n)}_decodeBroadcast(e,r,n){const a=r.getUint8(1),i=r.getUint8(2);let o=this.HEADER_LENGTH+2;const l=n.decode(e.slice(o,o+a));o=o+a;const c=n.decode(e.slice(o,o+i));o=o+i;const d=JSON.parse(n.decode(e.slice(o,e.byteLength)));return{ref:null,topic:l,event:c,payload:d}}}class aM{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var or;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(or||(or={}));const O6=(t,e,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(e).reduce((i,o)=>(i[o]=Lse(o,t,e,a),i),{})},Lse=(t,e,r,n)=>{const a=e.find(l=>l.name===t),i=a==null?void 0:a.type,o=r[t];return i&&!n.includes(i)?iM(i,o):Sj(o)},iM=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return Qse(e,r)}switch(t){case or.bool:return Use(e);case or.float4:case or.float8:case or.int2:case or.int4:case or.int8:case or.numeric:case or.oid:return _se(e);case or.json:case or.jsonb:return Mse(e);case or.timestamp:return Dse(e);case or.abstime:case or.date:case or.daterange:case or.int4range:case or.int8range:case or.money:case or.reltime:case or.text:case or.time:case or.timestamptz:case or.timetz:case or.tsrange:case or.tstzrange:return Sj(e);default:return Sj(e)}},Sj=t=>t,Use=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},_se=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},Mse=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},Qse=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const o=t.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>iM(e,l))}return t},Dse=t=>typeof t=="string"?t.replace(" ","T"):t,oM=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")};class Jw{constructor(e,r,n={},a=sM){this.channel=e,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var H6;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(H6||(H6={}));class Ym{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ym.syncState(this.state,a,i,o),this.pendingDiffs.forEach(c=>{this.state=Ym.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=Ym.syncDiff(this.state,a,i,o),l())}),this.onJoin((a,i,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:o})}),this.onLeave((a,i,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,a){const i=this.cloneDeep(e),o=this.transformState(r),l={},c={};return this.map(i,(d,A)=>{o[d]||(c[d]=A)}),this.map(o,(d,A)=>{const u=i[d];if(u){const h=A.map(w=>w.presence_ref),m=u.map(w=>w.presence_ref),g=A.filter(w=>m.indexOf(w.presence_ref)<0),p=u.filter(w=>h.indexOf(w.presence_ref)<0);g.length>0&&(l[d]=g),p.length>0&&(c[d]=p)}else l[d]=A}),this.syncDiff(i,{joins:l,leaves:c},n,a)}static syncDiff(e,r,n,a){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(i,(l,c)=>{var d;const A=(d=e[l])!==null&&d!==void 0?d:[];if(e[l]=this.cloneDeep(c),A.length>0){const u=e[l].map(m=>m.presence_ref),h=A.filter(m=>u.indexOf(m.presence_ref)<0);e[l].unshift(...h)}n(l,A,c)}),this.map(o,(l,c)=>{let d=e[l];if(!d)return;const A=c.map(u=>u.presence_ref);d=d.filter(u=>A.indexOf(u.presence_ref)<0),e[l]=d,a(l,d,c),d.length===0&&delete e[l]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const a=e[n];return"metas"in a?r[n]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=a,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var K6;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(K6||(K6={}));var V6;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(V6||(V6={}));var io;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(io||(io={}));class KN{constructor(e,r={config:{}},n){this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=Zn.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Jw(this,$a.join,this.params,this.timeout),this.rejoinTimer=new aM(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Zn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(a=>a.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Zn.closed,this.socket._remove(this)}),this._onError(a=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,a),this.state=Zn.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Zn.errored,this.rejoinTimer.scheduleTimeout())}),this._on($a.reply,{},(a,i)=>{this._trigger(this._replyEventName(i),a)}),this.presence=new Ym(this),this.broadcastEndpointURL=oM(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(e,r=this.timeout){var n,a;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o,private:l}}=this.params;this._onError(A=>e==null?void 0:e(io.CHANNEL_ERROR,A)),this._onClose(()=>e==null?void 0:e(io.CLOSED));const c={},d={broadcast:i,presence:o,postgres_changes:(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(A=>A.filter))!==null&&a!==void 0?a:[],private:l};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:d},c)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:A})=>{var u;if(this.socket.setAuth(),A===void 0){e==null||e(io.SUBSCRIBED);return}else{const h=this.bindings.postgres_changes,m=(u=h==null?void 0:h.length)!==null&&u!==void 0?u:0,g=[];for(let p=0;p{this.state=Zn.errored,e==null||e(io.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(A).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(io.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this._on(e,r,n)}async send(e,r={}){var n,a;if(!this._canPush()&&e.type==="broadcast"){const{event:i,payload:o}=e,c={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=d.body)===null||a===void 0?void 0:a.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const d=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Zn.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger($a.close,"leave",this._joinRef())};return this.joinPush.destroy(),new Promise(n=>{const a=new Jw(this,$a.leave,{},e);a.receive("ok",()=>{r(),n("ok")}).receive("timeout",()=>{r(),n("timed out")}).receive("error",()=>{n("error")}),a.send(),this._canPush()||a.trigger("ok",{})})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(e,r,n){const a=new AbortController,i=setTimeout(()=>a.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new Jw(this,e,r,n);return this._canPush()?a.send():(a.startTimeout(),this.pushBuffer.push(a)),a}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var a,i;const o=e.toLocaleLowerCase(),{close:l,error:c,leave:d,join:A}=$a;if(n&&[l,c,d,A].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(m=>{var g,p,w;return((g=m.filter)===null||g===void 0?void 0:g.event)==="*"||((w=(p=m.filter)===null||p===void 0?void 0:p.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(m=>m.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var g,p,w,y,v,j;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const S=m.id,F=(g=m.filter)===null||g===void 0?void 0:g.event;return S&&((p=r.ids)===null||p===void 0?void 0:p.includes(S))&&(F==="*"||(F==null?void 0:F.toLocaleLowerCase())===((w=r.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const S=(v=(y=m==null?void 0:m.filter)===null||y===void 0?void 0:y.event)===null||v===void 0?void 0:v.toLocaleLowerCase();return S==="*"||S===((j=r==null?void 0:r.event)===null||j===void 0?void 0:j.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof h=="object"&&"ids"in h){const g=h.data,{schema:p,table:w,commit_timestamp:y,type:v,errors:j}=g;h=Object.assign(Object.assign({},{schema:p,table:w,commit_timestamp:y,eventType:v,new:{},old:{},errors:j}),this._getPayloadRecords(g))}m.callback(h,n)})}_isClosed(){return this.state===Zn.closed}_isJoined(){return this.state===Zn.joined}_isJoining(){return this.state===Zn.joining}_isLeaving(){return this.state===Zn.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const a=e.toLocaleLowerCase(),i={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&KN.isEqual(a.filter,r))}),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on($a.close,{},e)}_onError(e){this._on($a.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Zn.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=O6(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=O6(e.columns,e.old_record)),r}}const z6=()=>{},Rse=` addEventListener("message", (e) => { if (e.data.event === "start") { setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); } });`;class Ose{constructor(e,r){var n;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers=Fse,this.params={},this.timeout=sM,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=z6,this.ref=0,this.logger=z6,this.conn=null,this.sendBuffer=[],this.serializer=new Tse,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=i=>{let o;return i?o=i:typeof fetch>"u"?o=(...l)=>Li(async()=>{const{default:c}=await Promise.resolve().then(()=>gh);return{default:c}},void 0).then(({default:c})=>c(...l)):o=fetch,(...l)=>o(...l)},this.endPoint=`${e}/${Bj.websocket}`,this.httpEndpoint=oM(e),r!=null&&r.transport?this.transport=r.transport:this.transport=null,r!=null&&r.params&&(this.params=r.params),r!=null&&r.headers&&(this.headers=Object.assign(Object.assign({},this.headers),r.headers)),r!=null&&r.timeout&&(this.timeout=r.timeout),r!=null&&r.logger&&(this.logger=r.logger),(r!=null&&r.logLevel||r!=null&&r.log_level)&&(this.logLevel=r.logLevel||r.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),r!=null&&r.heartbeatIntervalMs&&(this.heartbeatIntervalMs=r.heartbeatIntervalMs);const a=(n=r==null?void 0:r.params)===null||n===void 0?void 0:n.apikey;if(a&&(this.accessTokenValue=a,this.apiKey=a),this.reconnectAfterMs=r!=null&&r.reconnectAfterMs?r.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=r!=null&&r.encode?r.encode:(i,o)=>o(JSON.stringify(i)),this.decode=r!=null&&r.decode?r.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new aM(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(r==null?void 0:r.fetch),r!=null&&r.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(r==null?void 0:r.worker)||!1,this.workerUrl=r==null?void 0:r.workerUrl}this.accessToken=(r==null?void 0:r.accessToken)||null}connect(){if(!this.conn){if(this.transport||(this.transport=kse),this.transport){typeof window<"u"&&this.transport===window.WebSocket?this.conn=new this.transport(this.endpointURL()):this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection();return}this.conn=new Hse(this.endpointURL(),void 0,{close:()=>{this.conn=null}})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Ise}))}disconnect(e,r){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,r??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(n=>n.teardown()))}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels=this.channels.filter(n=>n._joinRef!==e._joinRef),this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case yu.connecting:return Mc.Connecting;case yu.open:return Mc.Open;case yu.closing:return Mc.Closing;default:return Mc.Closed}}isConnected(){return this.connectionState()===Mc.Open}channel(e,r={config:{}}){const n=`realtime:${e}`,a=this.getChannels().find(i=>i.topic===n);if(a)return a;{const i=new KN(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:a,ref:i}=e,o=()=>{this.encode(e,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){let r=e||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{r&&n.updateJoinPayload({access_token:r,version:this.headers&&this.headers["X-Client-Info"]}),n.joinedOnce&&n._isJoined()&&n._push($a.access_token,{access_token:r})}))}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(e=this.conn)===null||e===void 0||e.close(Pse,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_onConnMessage(e){this.decode(e.data,r=>{let{topic:n,event:a,payload:i,ref:o}=r;n==="phoenix"&&a==="phx_reply"&&this.heartbeatCallback(r.payload.status=="ok"?"ok":"error"),o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${n} ${a} ${o&&"("+o+")"||""}`,i),Array.from(this.channels).filter(l=>l._isMember(n)).forEach(l=>l._trigger(a,i,o)),this.stateChangeCallbacks.message.forEach(l=>l(r))})}_onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(r=>r(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(r=>r(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger($a.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${e}${n}${a}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([Rse],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}}class Hse{constructor(e,r,n){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=yu.connecting,this.send=()=>{},this.url=null,this.url=e,this.close=n.close}}class VN extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function hn(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class Kse extends VN{constructor(e,r){super(e),this.name="StorageApiError",this.status=r}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class kj extends VN{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}var Vse=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};const lM=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>Li(async()=>{const{default:n}=await Promise.resolve().then(()=>gh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},zse=()=>Vse(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Li(()=>Promise.resolve().then(()=>gh),void 0)).Response:Response}),Ej=t=>{if(Array.isArray(t))return t.map(r=>Ej(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[a]=Ej(n)}),e};var Dd=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};const Xw=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),Wse=(t,e,r)=>Dd(void 0,void 0,void 0,function*(){const n=yield zse();t instanceof n&&!(r!=null&&r.noResolveJson)?t.json().then(a=>{e(new Kse(Xw(a),t.status||500))}).catch(a=>{e(new kj(Xw(a),a))}):e(new kj(Xw(t),t))}),$se=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n&&(a.body=JSON.stringify(n)),Object.assign(Object.assign({},a),r))};function Np(t,e,r,n,a,i){return Dd(this,void 0,void 0,function*(){return new Promise((o,l)=>{t(r,$se(e,n,a,i)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>Wse(c,l,n))})})}function dy(t,e,r,n){return Dd(this,void 0,void 0,function*(){return Np(t,"GET",e,r,n)})}function cl(t,e,r,n,a){return Dd(this,void 0,void 0,function*(){return Np(t,"POST",e,n,a,r)})}function Gse(t,e,r,n,a){return Dd(this,void 0,void 0,function*(){return Np(t,"PUT",e,n,a,r)})}function qse(t,e,r,n){return Dd(this,void 0,void 0,function*(){return Np(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function cM(t,e,r,n,a){return Dd(this,void 0,void 0,function*(){return Np(t,"DELETE",e,n,a,r)})}var ms=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};const Yse={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},W6={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Jse{constructor(e,r={},n,a){this.url=e,this.headers=r,this.bucketId=n,this.fetch=lM(a)}uploadOrUpdate(e,r,n,a){return ms(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},W6),a);let l=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",this.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(c)))),a!=null&&a.headers&&(l=Object.assign(Object.assign({},l),a.headers));const d=this._removeEmptyFolders(r),A=this._getFinalPath(d),u=yield this.fetch(`${this.url}/object/${A}`,Object.assign({method:e,body:i,headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{})),h=yield u.json();return u.ok?{data:{path:d,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(i){if(hn(i))return{data:null,error:i};throw i}})}upload(e,r,n){return ms(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,n)})}uploadToSignedUrl(e,r,n,a){return ms(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(e),o=this._getFinalPath(i),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",r);try{let c;const d=Object.assign({upsert:W6.upsert},a),A=Object.assign(Object.assign({},this.headers),{"x-upsert":String(d.upsert)});typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",d.cacheControl)):(c=n,A["cache-control"]=`max-age=${d.cacheControl}`,A["content-type"]=d.contentType);const u=yield this.fetch(l.toString(),{method:"PUT",body:c,headers:A}),h=yield u.json();return u.ok?{data:{path:i,fullPath:h.Key},error:null}:{data:null,error:h}}catch(c){if(hn(c))return{data:null,error:c};throw c}})}createSignedUploadUrl(e,r){return ms(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const a=Object.assign({},this.headers);r!=null&&r.upsert&&(a["x-upsert"]="true");const i=yield cl(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:a}),o=new URL(this.url+i.url),l=o.searchParams.get("token");if(!l)throw new VN("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:l},error:null}}catch(n){if(hn(n))return{data:null,error:n};throw n}})}update(e,r,n){return ms(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,n)})}move(e,r,n){return ms(this,void 0,void 0,function*(){try{return{data:yield cl(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(hn(a))return{data:null,error:a};throw a}})}copy(e,r,n){return ms(this,void 0,void 0,function*(){try{return{data:{path:(yield cl(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(hn(a))return{data:null,error:a};throw a}})}createSignedUrl(e,r,n){return ms(this,void 0,void 0,function*(){try{let a=this._getFinalPath(e),i=yield cl(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(a){if(hn(a))return{data:null,error:a};throw a}})}createSignedUrls(e,r,n){return ms(this,void 0,void 0,function*(){try{const a=yield cl(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:a.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(a){if(hn(a))return{data:null,error:a};throw a}})}download(e,r){return ms(this,void 0,void 0,function*(){const a=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"";try{const l=this._getFinalPath(e);return{data:yield(yield dy(this.fetch,`${this.url}/${a}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(hn(l))return{data:null,error:l};throw l}})}info(e){return ms(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const n=yield dy(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Ej(n),error:null}}catch(n){if(hn(n))return{data:null,error:n};throw n}})}exists(e){return ms(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield qse(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(hn(n)&&n instanceof kj){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,r){const n=this._getFinalPath(e),a=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&a.push(i);const l=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",c=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});c!==""&&a.push(c);let d=a.join("&");return d!==""&&(d=`?${d}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${n}${d}`)}}}remove(e){return ms(this,void 0,void 0,function*(){try{return{data:yield cM(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(hn(r))return{data:null,error:r};throw r}})}list(e,r,n){return ms(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},Yse),r),{prefix:e||""});return{data:yield cl(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},n),error:null}}catch(a){if(hn(a))return{data:null,error:a};throw a}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const Xse="2.7.1",Zse={"X-Client-Info":`storage-js/${Xse}`};var jA=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};class eae{constructor(e,r={},n){this.url=e,this.headers=Object.assign(Object.assign({},Zse),r),this.fetch=lM(n)}listBuckets(){return jA(this,void 0,void 0,function*(){try{return{data:yield dy(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(hn(e))return{data:null,error:e};throw e}})}getBucket(e){return jA(this,void 0,void 0,function*(){try{return{data:yield dy(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(hn(r))return{data:null,error:r};throw r}})}createBucket(e,r={public:!1}){return jA(this,void 0,void 0,function*(){try{return{data:yield cl(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(hn(n))return{data:null,error:n};throw n}})}updateBucket(e,r){return jA(this,void 0,void 0,function*(){try{return{data:yield Gse(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(hn(n))return{data:null,error:n};throw n}})}emptyBucket(e){return jA(this,void 0,void 0,function*(){try{return{data:yield cl(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(hn(r))return{data:null,error:r};throw r}})}deleteBucket(e){return jA(this,void 0,void 0,function*(){try{return{data:yield cM(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(hn(r))return{data:null,error:r};throw r}})}}class tae extends eae{constructor(e,r={},n){super(e,r,n)}from(e){return new Jse(this.url,this.headers,e,this.fetch)}}const rae="2.50.0";let jm="";typeof Deno<"u"?jm="deno":typeof document<"u"?jm="web":typeof navigator<"u"&&navigator.product==="ReactNative"?jm="react-native":jm="node";const nae={"X-Client-Info":`supabase-js-${jm}/${rae}`},sae={headers:nae},aae={schema:"public"},iae={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},oae={};var lae=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};const cae=t=>{let e;return t?e=t:typeof fetch>"u"?e=$_:e=fetch,(...r)=>e(...r)},dae=()=>typeof Headers>"u"?G_:Headers,Aae=(t,e,r)=>{const n=cae(r),a=dae();return(i,o)=>lae(void 0,void 0,void 0,function*(){var l;const c=(l=yield e())!==null&&l!==void 0?l:t;let d=new a(o==null?void 0:o.headers);return d.has("apikey")||d.set("apikey",t),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),n(i,Object.assign(Object.assign({},o),{headers:d}))})};var uae=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};function hae(t){return t.endsWith("/")?t:t+"/"}function mae(t,e){var r,n;const{db:a,auth:i,realtime:o,global:l}=t,{db:c,auth:d,realtime:A,global:u}=e,h={db:Object.assign(Object.assign({},c),a),auth:Object.assign(Object.assign({},d),i),realtime:Object.assign(Object.assign({},A),o),global:Object.assign(Object.assign(Object.assign({},u),l),{headers:Object.assign(Object.assign({},(r=u==null?void 0:u.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>uae(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}const dM="2.70.0",_A=30*1e3,Fj=3,Zw=Fj*_A,fae="http://localhost:9999",pae="supabase.auth.token",gae={"X-Client-Info":`gotrue-js/${dM}`},Ij="X-Supabase-Api-Version",AM={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},xae=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,yae=6e5;class zN extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function Nt(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class vae extends zN{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function bae(t){return Nt(t)&&t.name==="AuthApiError"}class uM extends zN{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class mc extends zN{constructor(e,r,n,a){super(e,n,a),this.name=r,this.status=n}}class nl extends mc{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function wae(t){return Nt(t)&&t.name==="AuthSessionMissingError"}class Xg extends mc{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Zg extends mc{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class ex extends mc{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function jae(t){return Nt(t)&&t.name==="AuthImplicitGrantRedirectError"}class $6 extends mc{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Pj extends mc{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function e1(t){return Nt(t)&&t.name==="AuthRetryableFetchError"}class G6 extends mc{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Jm extends mc{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),q6=` \r=`.split(""),Nae=(()=>{const t=new Array(128);for(let e=0;e=6;){const n=e.queue>>e.queuedBits-6&63;r(Ay[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(Ay[n]),e.queuedBits-=6}}function hM(t,e,r){const n=Nae[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function J6(t){const e=[],r=o=>{e.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},i=o=>{Sae(o,n,r)};for(let o=0;o>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function Bae(t,e){for(let r=0;r55295&&n<=56319){const a=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|a)+65536,r+=1}Cae(n,e)}}function Sae(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function kae(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};for(let a=0;ae.push(r)),new Uint8Array(e)}function Fae(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};return t.forEach(a=>Y6(a,r,n)),Y6(null,r,n),e.join("")}function Iae(t){return Math.round(Date.now()/1e3)+t}function Pae(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Qa=()=>typeof window<"u"&&typeof document<"u",Fc={tested:!1,writable:!1},Xm=()=>{if(!Qa())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Fc.tested)return Fc.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),Fc.tested=!0,Fc.writable=!0}catch{Fc.tested=!0,Fc.writable=!1}return Fc.writable};function Tae(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((a,i)=>{e[i]=a})}catch{}return r.searchParams.forEach((n,a)=>{e[a]=n}),e}const mM=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>Li(async()=>{const{default:n}=await Promise.resolve().then(()=>gh);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},Lae=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",fM=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},tx=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},rx=async(t,e)=>{await t.removeItem(e)};class Tv{constructor(){this.promise=new Tv.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}Tv.promiseConstructor=Promise;function t1(t){const e=t.split(".");if(e.length!==3)throw new Jm("Invalid JWT structure");for(let n=0;n{setTimeout(()=>e(null),t)})}function _ae(t,e){return new Promise((n,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){n(o);return}}catch(o){if(!e(i,o)){a(o);return}}})()})}function Mae(t){return("0"+t.toString(16)).substr(-2)}function Qae(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let i=0;i<56;i++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(e),Array.from(e,Mae).join("")}async function Dae(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}async function Rae(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const r=await Dae(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function NA(t,e,r=!1){const n=Qae();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await fM(t,`${e}-code-verifier`,a);const i=await Rae(n);return[i,n===i?"plain":"s256"]}const Oae=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Hae(t){const e=t.headers.get(Ij);if(!e||!e.match(Oae))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function Kae(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function Vae(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const zae=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function CA(t){if(!zae.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var Wae=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);at.msg||t.message||t.error_description||t.error||JSON.stringify(t),$ae=[502,503,504];async function X6(t){var e;if(!Lae(t))throw new Pj(Uc(t),0);if($ae.includes(t.status))throw new Pj(Uc(t),t.status);let r;try{r=await t.json()}catch(i){throw new uM(Uc(i),i)}let n;const a=Hae(t);if(a&&a.getTime()>=AM["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new G6(Uc(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new nl}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new G6(Uc(r),t.status,r.weak_password.reasons);throw new vae(Uc(r),t.status||500,n)}const Gae=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function It(t,e,r,n){var a;const i=Object.assign({},n==null?void 0:n.headers);i[Ij]||(i[Ij]=AM["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await qae(t,e,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function qae(t,e,r,n,a,i){const o=Gae(e,n,a,i);let l;try{l=await t(r,Object.assign({},o))}catch(c){throw console.error(c),new Pj(Uc(c),0)}if(l.ok||await X6(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await X6(c)}}function no(t){var e;let r=null;Zae(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=Iae(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function Z6(t){const e=no(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function hl(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function Yae(t){return{data:t,error:null}}function Jae(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i}=t,o=Wae(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function Xae(t){return t}function Zae(t){return t.access_token&&t.refresh_token&&t.expires_in}const r1=["global","local","others"];var eie=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a0&&(m.forEach(g=>{const p=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(g.split(";")[1].split("=")[1]);d[`${w}Page`]=p}),d.total=parseInt(h)),{data:Object.assign(Object.assign({},u),d),error:null}}catch(d){if(Nt(d))return{data:{users:[]},error:d};throw d}}async getUserById(e){CA(e);try{return await It(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:hl})}catch(r){if(Nt(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){CA(e);try{return await It(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:hl})}catch(n){if(Nt(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){CA(e);try{return await It(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:hl})}catch(n){if(Nt(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){CA(e.userId);try{const{data:r,error:n}=await It(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(Nt(r))return{data:null,error:r};throw r}}async _deleteFactor(e){CA(e.userId),CA(e.id);try{return{data:await It(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(Nt(r))return{data:null,error:r};throw r}}}const rie={getItem:t=>Xm()?globalThis.localStorage.getItem(t):null,setItem:(t,e)=>{Xm()&&globalThis.localStorage.setItem(t,e)},removeItem:t=>{Xm()&&globalThis.localStorage.removeItem(t)}};function ek(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}function nie(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const BA={debug:!!(globalThis&&Xm()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class pM extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class sie extends pM{}async function aie(t,e,r){BA.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),BA.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){BA.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,a.name);try{return await r()}finally{BA.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,a.name)}}else{if(e===0)throw BA.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new sie(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(BA.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}nie();const iie={url:fae,storageKey:pae,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:gae,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function tk(t,e,r){return await r()}class Df{constructor(e){var r,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Df.nextInstanceID,Df.nextInstanceID+=1,this.instanceID>0&&Qa()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},iie),e);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new tie({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=mM(a.fetch),this.lock=a.lock||tk,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:Qa()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=aie:this.lock=tk,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?a.storage?this.storage=a.storage:Xm()?this.storage=rie:(this.memoryStorage={},this.storage=ek(this.memoryStorage)):(this.memoryStorage={},this.storage=ek(this.memoryStorage)),Qa()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${dM}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const r=Tae(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),Qa()&&this.detectSessionInUrl&&n!=="none"){const{data:a,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),jae(i)){const c=(e=i.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return Nt(r)?{error:r}:{error:new uM("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,a;try{const i=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(a=e==null?void 0:e.options)===null||a===void 0?void 0:a.captchaToken}},xform:no}),{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(i){if(Nt(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(e){var r,n,a;try{let i;if("email"in e){const{email:A,password:u,options:h}=e;let m=null,g=null;this.flowType==="pkce"&&([m,g]=await NA(this.storage,this.storageKey)),i=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:A,password:u,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:m,code_challenge_method:g},xform:no})}else if("phone"in e){const{phone:A,password:u,options:h}=e;i=await It(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:A,password:u,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(a=h==null?void 0:h.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:no})}else throw new Zg("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(i){if(Nt(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:o,options:l}=e;r=await It(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Z6})}else if("phone"in e){const{phone:i,password:o,options:l}=e;r=await It(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Z6})}else throw new Zg("You must provide either an email or phone number and a password");const{data:n,error:a}=r;return a?{data:{user:null,session:null},error:a}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new Xg}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(Nt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(e){var r,n,a,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(a=e.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;if(r==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}async signInWithSolana(e){var r,n,a,i,o,l,c,d,A,u,h,m;let g,p;if("message"in e)g=e.message,p=e.signature;else{const{chain:w,wallet:y,statement:v,options:j}=e;let S;if(Qa())if(typeof y=="object")S=y;else{const U=window;if("solana"in U&&typeof U.solana=="object"&&("signIn"in U.solana&&typeof U.solana.signIn=="function"||"signMessage"in U.solana&&typeof U.solana.signMessage=="function"))S=U.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(j!=null&&j.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=y}const F=new URL((r=j==null?void 0:j.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in S&&S.signIn){const U=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},j==null?void 0:j.signInWithSolana),{version:"1",domain:F.host,uri:F.href}),v?{statement:v}:null));let M;if(Array.isArray(U)&&U[0]&&typeof U[0]=="object")M=U[0];else if(U&&typeof U=="object"&&"signedMessage"in U&&"signature"in U)M=U;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in M&&"signature"in M&&(typeof M.signedMessage=="string"||M.signedMessage instanceof Uint8Array)&&M.signature instanceof Uint8Array)g=typeof M.signedMessage=="string"?M.signedMessage:new TextDecoder().decode(M.signedMessage),p=M.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${F.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${F.href}`,`Issued At: ${(a=(n=j==null?void 0:j.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((i=j==null?void 0:j.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${j.signInWithSolana.notBefore}`]:[],...!((o=j==null?void 0:j.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${j.signInWithSolana.expirationTime}`]:[],...!((l=j==null?void 0:j.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${j.signInWithSolana.chainId}`]:[],...!((c=j==null?void 0:j.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${j.signInWithSolana.nonce}`]:[],...!((d=j==null?void 0:j.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${j.signInWithSolana.requestId}`]:[],...!((u=(A=j==null?void 0:j.signInWithSolana)===null||A===void 0?void 0:A.resources)===null||u===void 0)&&u.length?["Resources",...j.signInWithSolana.resources.map(M=>`- ${M}`)]:[]].join(` `);const U=await S.signMessage(new TextEncoder().encode(g),"utf8");if(!U||!(U instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=U}}try{const{data:w,error:y}=await It(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:Fae(p)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:no});if(y)throw y;return!w||!w.session||!w.user?{data:{user:null,session:null},error:new Xg}:(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),{data:Object.assign({},w),error:y})}catch(w){if(Nt(w))return{data:{user:null,session:null},error:w};throw w}}async _exchangeCodeForSession(e){const r=await tx(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{const{data:i,error:o}=await It(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:no});if(await rx(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Xg}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:o})}catch(i){if(Nt(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:a,access_token:i,nonce:o}=e,l=await It(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:no}),{data:c,error:d}=l;return d?{data:{user:null,session:null},error:d}:!c||!c.session||!c.user?{data:{user:null,session:null},error:new Xg}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:c,error:d})}catch(r){if(Nt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(e){var r,n,a,i,o;try{if("email"in e){const{email:l,options:c}=e;let d=null,A=null;this.flowType==="pkce"&&([d,A]=await NA(this.storage,this.storageKey));const{error:u}=await It(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:A},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:u}}if("phone"in e){const{phone:l,options:c}=e,{data:d,error:A}=await It(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:A}}throw new Zg("You must provide either an email or phone number.")}catch(l){if(Nt(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(e){var r,n;try{let a,i;"options"in e&&(a=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await It(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:no});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),{data:{user:d,session:c},error:null}}catch(a){if(Nt(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(e){var r,n,a;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await NA(this.storage,this.storageKey)),await It(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((a=e==null?void 0:e.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:Yae})}catch(i){if(Nt(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new nl;const{error:a}=await It(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:a}})}catch(e){if(Nt(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:a,options:i}=e,{error:o}=await It(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:n,type:a,options:i}=e,{data:o,error:l}=await It(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new Zg("You must provide either an email or phone number and a type")}catch(r){if(Nt(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await tx(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()(!o&&d==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(c,d,A))})}return{data:{session:e},error:null}}const{session:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{session:null},error:i}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await It(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:hl}):await this._useSession(async r=>{var n,a,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new nl}:await It(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:hl})})}catch(r){if(Nt(r))return wae(r)&&(await this._removeSession(),await rx(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:a,error:i}=n;if(i)throw i;if(!a.session)throw new nl;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await NA(this.storage,this.storageKey));const{data:d,error:A}=await It(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:hl});if(A)throw A;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(Nt(n))return{data:{user:null},error:n};throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new nl;const r=Date.now()/1e3;let n=r,a=!0,i=null;const{payload:o}=t1(e.access_token);if(o.exp&&(n=o.exp,a=n<=r),a){const{session:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return{data:{user:null,session:null},error:c};if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)throw c;i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(Nt(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:l}=r;if(l)throw l;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new nl;const{session:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(Nt(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(e,r){try{if(!Qa())throw new ex("No browser detected.");if(e.error||e.error_description||e.error_code)throw new ex(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new $6("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ex("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new $6("No code detected.");const{data:v,error:j}=await this._exchangeCodeForSession(e.code);if(j)throw j;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:a,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:d}=e;if(!i||!l||!o||!d)throw new ex("No session defined in URL");const A=Math.round(Date.now()/1e3),u=parseInt(l);let h=A+u;c&&(h=parseInt(c));const m=h-A;m*1e3<=_A&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${u}s`);const g=h-u;A-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,h,A):A-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,h,A);const{data:p,error:w}=await this._getUser(i);if(w)throw w;const y={provider_token:n,provider_refresh_token:a,access_token:i,expires_in:u,expires_at:h,refresh_token:o,token_type:d,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:e.type},error:null}}catch(n){if(Nt(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await tx(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{error:i};const o=(n=a.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,e);if(l&&!(bae(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return e!=="others"&&(await this._removeSession(),await rx(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const r=Pae(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,a;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await NA(this.storage,this.storageKey,!0));try{return await It(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(Nt(i))return{data:null,error:i};throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(r){if(Nt(r))return{data:null,error:r};throw r}}async linkIdentity(e){var r;try{const{data:n,error:a}=await this._useSession(async i=>{var o,l,c,d,A;const{data:u,error:h}=i;if(h)throw h;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await It(this.fetch,"GET",m,{headers:this.headers,jwt:(A=(d=u.session)===null||d===void 0?void 0:d.access_token)!==null&&A!==void 0?A:void 0})});if(a)throw a;return Qa()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:e.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(Nt(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)throw o;return await It(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(a=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(Nt(r))return{data:null,error:r};throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await _ae(async a=>(a>0&&await Uae(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await It(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:no})),(a,i)=>{const o=200*Math.pow(2,a);return i&&e1(i)&&Date.now()+o-n<_A})}catch(n){if(this._debug(r,"error",n),Nt(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),Qa()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const n=await tx(this.storage,this.storageKey);if(this._debug(r,"session from storage",n),!this._isValidSession(n)){this._debug(r,"session is not valid"),n!==null&&await this._removeSession();return}const a=((e=n.expires_at)!==null&&e!==void 0?e:1/0)*1e3-Date.now(){try{await l.callback(e,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;lthis._autoRefreshTokenTick(),_A);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((n.expires_at*1e3-e)/_A);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${_A}ms, refresh threshold is ${Fj} ticks`),a<=Fj&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof pM)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Qa()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await NA(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);a.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${a.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await It(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Nt(r))return{data:null,error:r};throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:c,error:d}=await It(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return d?{data:null,error:d}:(e.factorType==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),{data:c,error:null})})}catch(r){if(Nt(r))return{data:null,error:r};throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return{data:null,error:i};const{data:o,error:l}=await It(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(r){if(Nt(r))return{data:null,error:r};throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?{data:null,error:i}:await It(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Nt(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){const{data:{user:e},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(e==null?void 0:e.factors)||[],a=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:a,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var r,n;const{data:{session:a},error:i}=e;if(i)return{data:null,error:i};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=t1(a.access_token);let l=null;o.aal&&(l=o.aal);let c=l;((n=(r=a.user.factors)===null||r===void 0?void 0:r.filter(u=>u.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(c="aal2");const A=o.amr||[];return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:A},error:null}}))}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(o=>o.kid===e);if(n||(n=this.jwks.keys.find(o=>o.kid===e),n&&this.jwks_cached_at+yae>Date.now()))return n;const{data:a,error:i}=await It(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;if(!a.keys||a.keys.length===0)throw new Jm("JWKS is empty");if(this.jwks=a,this.jwks_cached_at=Date.now(),n=a.keys.find(o=>o.kid===e),!n)throw new Jm("No matching signing key found in JWKS");return n}async getClaims(e,r={keys:[]}){try{let n=e;if(!n){const{data:m,error:g}=await this.getSession();if(g||!m.session)return{data:null,error:g};n=m.session.access_token}const{header:a,payload:i,signature:o,raw:{header:l,payload:c}}=t1(n);if(Kae(i.exp),!a.kid||a.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:m}=await this.getUser(n);if(m)throw m;return{data:{claims:i,header:a,signature:o},error:null}}const d=Vae(a.alg),A=await this.fetchJwk(a.kid,r),u=await crypto.subtle.importKey("jwk",A,d,!0,["verify"]);if(!await crypto.subtle.verify(d,u,o,Eae(`${l}.${c}`)))throw new Jm("Invalid JWT signature");return{data:{claims:i,header:a,signature:o},error:null}}catch(n){if(Nt(n))return{data:null,error:n};throw n}}}Df.nextInstanceID=0;const oie=Df;class lie extends oie{constructor(e){super(e)}}var cie=function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(A){try{d(n.next(A))}catch(u){o(u)}}function c(A){try{d(n.throw(A))}catch(u){o(u)}}function d(A){A.done?i(A.value):a(A.value).then(l,c)}d((n=n.apply(t,e||[])).next())})};class die{constructor(e,r,n){var a,i,o;if(this.supabaseUrl=e,this.supabaseKey=r,!e)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const l=hae(e),c=new URL(l);this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const d=`sb-${c.hostname.split(".")[0]}-auth-token`,A={db:aae,realtime:oae,auth:Object.assign(Object.assign({},iae),{storageKey:d}),global:sae},u=mae(n??{},A);this.storageKey=(a=u.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(i=u.global.headers)!==null&&i!==void 0?i:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(h,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=Aae(r,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new Sse(new URL("rest/v1",c).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),u.accessToken||this._listenForAuthEvents()}get functions(){return new nse(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new tae(this.storageUrl.href,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},n={}){return this.rest.rpc(e,r,n)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,r;return cie(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:null})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:a,storageKey:i,flowType:o,lock:l,debug:c},d,A){const u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new lie({url:this.authUrl.href,headers:Object.assign(Object.assign({},u),d),storageKey:i,autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:a,flowType:o,lock:l,debug:c,fetch:A,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new Ose(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(e,r,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const Aie=(t,e,r)=>new die(t,e,r),uie="https://pvisnlddykhplcqhrvyt.supabase.co",hie="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InB2aXNubGRkeWtocGxjcWhydnl0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDk1MDIyODIsImV4cCI6MjA2NTA3ODI4Mn0.eDwmNFyhYg_nzhe_k9eJzTtjvx_HhsJG_ka94xmZlqI",Ds=Aie(uie,hie);class nx{static async createConfiguration(e){try{const r=e.company_name?`${e.company_name} ROI - ${new Date().toLocaleDateString()}`:`ROI Calculation - ${new Date().toLocaleString()}`,{data:n,error:a}=await Ds.from("roi_configurations").insert({name:r,config_data:e}).select("id").single();return a?(console.error("Error creating ROI configuration:",a),null):n.id}catch(r){return console.error("Error creating ROI configuration:",r),null}}static async loadConfiguration(e){try{await Ds.from("roi_configurations").update({last_accessed:new Date().toISOString()}).eq("id",e);const{data:r,error:n}=await Ds.from("roi_configurations").select("*").eq("id",e).single();return n?(console.error("Error loading ROI configuration:",n),null):{...r,config_data:r.config_data}}catch(r){return console.error("Error loading ROI configuration:",r),null}}static async updateConfiguration(e,r){try{const n={...r,timestamp:new Date().toISOString()},a=r.company_name?`${r.company_name} ROI - ${new Date().toLocaleDateString()}`:`ROI Calculation - ${new Date().toLocaleString()}`,{error:i}=await Ds.from("roi_configurations").update({name:a,config_data:n,last_accessed:new Date().toISOString()}).eq("id",e);return i?(console.error("Error updating ROI configuration:",i),!1):!0}catch(n){return console.error("Error updating ROI configuration:",n),!1}}static async deleteConfiguration(e){try{const{error:r}=await Ds.from("roi_configurations").delete().eq("id",e);return r?(console.error("Error deleting ROI configuration:",r),!1):!0}catch(r){return console.error("Error deleting ROI configuration:",r),!1}}static calculateROI(e){var F,U,M,P,W,$,B,k,_;const r=((F=e.businessMetrics["sellers-count"])==null?void 0:F.value)||0,n=((U=e.businessMetrics["opportunities-per-month"])==null?void 0:U.value)||0,a=((M=e.businessMetrics["opportunity-size"])==null?void 0:M.value)||0,i=(((P=e.businessMetrics["win-rate"])==null?void 0:P.value)||20)/100,o=r*n*12,l=o*a,c=l*i,d=(((W=e.valueDrivers["better-accounts"])==null?void 0:W.value)||0)/100,A=((($=e.valueDrivers["more-activities"])==null?void 0:$.value)||0)/100,u=(((B=e.valueDrivers["better-messaging"])==null?void 0:B.value)||0)/100,h=l*d,m=l*A,g=l*u,p=h+m+g,w=p*i,y=((k=e.valueDrivers["time-saved"])==null?void 0:k.value)||0,j=(((_=e.businessMetrics["seller-cost"])==null?void 0:_.value)||0)/2e3,S=y*50*j*r;return{opportunitiesGenerated:o,pipelineGenerated:l,increasedPipelinePrioritization:h,increasedPipelineActivities:m,increasedPipelineMessaging:g,totalIncreasedPipeline:p,salesGenerated:c,increasedSales:w,timeSavedCost:S,explanation:`Based on ${r} sellers generating ${n} opportunities per month`}}}const mie={"better-accounts":{id:"better-accounts",name:"Help sellers work better accounts (better fit and/or better timing)",value:15,unit:"percentage",description:"Increase in conversion rate",rationale:"By identifying accounts that are a better fit for your solution and timing outreach when buyers are actively researching, conversion rates typically improve by 10-20%."},"more-activities":{id:"more-activities",name:"Help sellers reach out to more accounts and leads",value:25,unit:"percentage",description:"Increase in prospecting activities",rationale:"With better targeting and prioritization, sales teams can focus their efforts on higher-value prospects, leading to 20-30% more meaningful prospecting activities."},"better-messaging":{id:"better-messaging",name:"Better message (because better research and POVs)",value:20,unit:"percentage",description:"Increase in conversion rate",rationale:"Access to rich prospect intelligence and relevant talking points enables more personalized, compelling outreach that typically improves response rates by 15-25%."},"time-saved":{id:"time-saved",name:"Save my reps time by automating tasks",value:5,unit:"hours",description:"hours saved per week",rationale:"Automated prospect research, list building, and data enrichment typically saves 3-8 hours per seller per week that can be redirected to actual selling activities."}},fie={"sellers-count":{id:"sellers-count",name:"How many sellers will use MadKudu?",value:10,unit:"sellers"},"research-time":{id:"research-time",name:"How much sellers spend time on researching accounts per week?",value:8,unit:"hours"},"seller-cost":{id:"seller-cost",name:"Average cost of your sellers per year",value:15e4,unit:"USD"},"opportunity-size":{id:"opportunity-size",name:"Average opportunity size",value:5e4,unit:"USD"},"opportunities-per-month":{id:"opportunities-per-month",name:"Number of qualified opportunity generated by seller per month",value:3,unit:"opportunities"},"win-rate":{id:"win-rate",name:"Win rate",value:20,unit:"percentage"}},n1={version:"1.0",timestamp:new Date().toISOString(),totalExpectedImpact:0,valueDrivers:mie,businessMetrics:fie},pie=()=>{const{configId:t}=To(),e=Ft(),[r,n]=b.useState(n1),[a,i]=b.useState(null),[o,l]=b.useState(!0),[c,d]=b.useState(!1),[A,u]=b.useState(null),[h,m]=b.useState(t||null),g=b.useRef(),p=b.useRef(!1);b.useEffect(()=>{(async()=>{if(t){l(!0);try{const B=await nx.loadConfiguration(t);if(B){const k=B.config_data,_={...n1.businessMetrics};Object.entries(k.businessMetrics||{}).forEach(([V,J])=>{_[V]?_[V]={..._[V],...J}:_[V]=J});const T={...n1.valueDrivers};Object.entries(k.valueDrivers||{}).forEach(([V,J])=>{T[V]?T[V]={...T[V],...J}:T[V]=J});const oe={...k,businessMetrics:_,valueDrivers:T};n(oe),m(t)}else console.warn("ROI Configuration not found, using default configuration")}catch(B){console.warn("Failed to load configuration, using default:",B)}}l(!1)})()},[t,e]),b.useEffect(()=>{try{const $=nx.calculateROI(r);i($);const B={...r,totalExpectedImpact:$.increasedSales,calculations:$};JSON.stringify(B)!==JSON.stringify(r)&&n(B)}catch($){console.error("Error calculating ROI:",$),i({opportunitiesGenerated:0,pipelineGenerated:0,increasedPipelinePrioritization:0,increasedPipelineActivities:0,increasedPipelineMessaging:0,totalIncreasedPipeline:0,salesGenerated:0,increasedSales:0,timeSavedCost:0,explanation:"Calculation error"})}},[r.valueDrivers,r.businessMetrics,r]);const w=b.useCallback(async($,B=!1)=>{if(!c){d(!0),u(null);try{if(!h||B){const k=await nx.createConfiguration($);k?(m(k),e(`/roi-calculator/${k}`,{replace:!0}),p.current=!1):(u("Unable to save configuration. You can still use the calculator, but changes won't be saved."),console.warn("Save failed: Unable to create new configuration"))}else await nx.updateConfiguration(h,$)?p.current=!1:(u("Unable to save changes. You can still use the calculator, but changes won't be saved."),console.warn("Save failed: Unable to update existing configuration"))}catch(k){console.error("Save error:",k),u("Unable to save configuration. You can still use the calculator, but changes won't be saved.")}d(!1)}},[h,c,e]),y=b.useCallback($=>{p.current=!0,g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{w($)},500)},[w]),v=b.useCallback(($,B)=>{const k={...r,valueDrivers:{...r.valueDrivers,[$]:{...r.valueDrivers[$],...B}}};n(k),y(k)},[r,y]),j=b.useCallback(($,B)=>{v($,{rationale:B})},[v]),S=b.useCallback(($,B)=>{const k={...r,businessMetrics:{...r.businessMetrics,[$]:{...r.businessMetrics[$],...B}}};n(k),y(k)},[r,y]),F=b.useCallback($=>{const B={...r,company_name:$};n(B),y(B)},[r,y]),U=b.useCallback($=>{const B={...r,totalExpectedImpact:$};n(B),y(B)},[r,y]),M=b.useCallback(()=>{p.current&&w(r)},[r,w]),P=b.useCallback($=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format($),[]),W=b.useCallback($=>new Intl.NumberFormat("en-US").format(Math.round($)),[]);return b.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]),{configuration:r,calculations:a,configurationId:h,isLoading:o,isSaving:c,saveError:A,hasUnsavedChanges:p.current,updateValueDriver:v,updateValueDriverRationale:j,updateBusinessMetric:S,updateCompanyName:F,updateTotalExpectedImpact:U,forceSave:M,formatCurrency:P,formatNumber:W}},Ks=b.forwardRef(({className:t,type:e,...r},n)=>s.jsx("input",{type:e,className:At("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",t),ref:n,...r}));Ks.displayName="Input";const gie=({configuration:t,onUpdateMetric:e})=>s.jsxs(yt,{children:[s.jsx(pn,{className:"py-4",children:s.jsx(gn,{className:"text-xl font-bold text-gray-900",children:t.company_name?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-indigo-700",children:[t.company_name,"'s"]})," business"]}):"Business metrics to size the ROI"})}),s.jsx(zt,{className:"space-y-3",children:Object.entries(t.businessMetrics).map(([r,n])=>s.jsxs("div",{className:"flex items-center gap-4 py-1",children:[s.jsx("label",{className:"font-medium text-gray-700 text-sm",children:n.name}),s.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[s.jsx(Ks,{type:"number",value:n.value,onChange:a=>e(r,{value:parseFloat(a.target.value)||0}),className:"w-32 h-10 text-right text-lg font-semibold",min:"0",max:r==="win-rate"?"100":void 0,step:n.unit==="USD"?"1000":(n.unit==="percentage","1")}),s.jsx("span",{className:"text-xs text-gray-600 min-w-0 w-16",children:n.unit==="USD"?"$":n.unit==="percentage"?"%":n.unit})]})]},r))})]}),xie=({companyName:t,onUpdate:e})=>{const[r,n]=b.useState(!1),[a,i]=b.useState(""),o=b.useCallback(()=>{i(t||""),n(!0)},[t]),l=b.useCallback(()=>{e(a.trim()),n(!1)},[a,e]),c=b.useCallback(()=>{i(""),n(!1)},[]);return b.useEffect(()=>{!t&&!r&&i("")},[t,r]),t&&!r?s.jsxs(s.Fragment,{children:[" ","for"," ",s.jsxs("span",{className:"text-indigo-600 relative inline-flex items-center gap-2",children:[t,s.jsx(Ee,{variant:"ghost",size:"sm",onClick:o,className:"h-6 w-6 p-0 hover:bg-indigo-100 rounded-full hide-in-pdf",children:s.jsx(BH,{className:"h-3 w-3 text-indigo-600"})})]})]}):s.jsxs("div",{className:"inline-flex items-center gap-2 mt-2 flex-wrap justify-center",children:[s.jsx("span",{className:"text-lg text-gray-600",children:"for"}),s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsx(Ks,{type:"text",placeholder:"your company",value:a,onChange:d=>i(d.target.value),onKeyDown:d=>{d.key==="Enter"?l():d.key==="Escape"&&c()},autoFocus:r,className:"inline-block w-auto min-w-[200px] text-lg font-bold text-indigo-600 border-0 border-b-2 border-gray-300 rounded-none bg-transparent px-2 py-1 focus:border-indigo-500 focus:ring-0 text-center placeholder:text-gray-400 placeholder:font-normal"}),s.jsx(Ee,{size:"sm",onClick:l,disabled:!a.trim(),className:"h-7 px-3 text-xs bg-indigo-600 hover:bg-indigo-700 text-white",children:"✓"}),r&&s.jsx(Ee,{variant:"ghost",size:"sm",onClick:c,className:"h-7 px-2 text-xs text-gray-500 hover:text-gray-700 hover:bg-gray-100",children:"✕"})]})]})},yie=({calculations:t,configuration:e,formatCurrency:r,formatNumber:n})=>{var a,i,o,l,c,d,A,u,h,m;return s.jsxs(yt,{children:[s.jsx(pn,{className:"py-4",children:s.jsx(gn,{className:"text-xl font-bold text-gray-900",children:"Expected value calculation"})}),s.jsx(zt,{children:s.jsx("div",{className:"space-y-4",children:t&&s.jsx(s.Fragment,{children:s.jsxs("div",{className:"space-y-2",children:[s.jsx("h4",{className:"font-semibold text-gray-800 text-sm mb-3 mt-2",children:"Revenue Growth from Sales Improvements"}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"Opportunities/year"}),s.jsx("span",{className:"font-medium",children:n(t.opportunitiesGenerated)})]}),s.jsxs("div",{className:"text-xs text-gray-500 pl-2",children:[(a=e.businessMetrics["sellers-count"])==null?void 0:a.value," sellers × ",(i=e.businessMetrics["opportunities-per-month"])==null?void 0:i.value,"/month × 12"]}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm border-t pt-2",children:[s.jsx("span",{className:"text-gray-700",children:"Base pipeline"}),s.jsx("span",{className:"font-medium",children:r(t.pipelineGenerated)})]}),s.jsxs("div",{className:"text-xs text-gray-500 pl-2",children:[n(t.opportunitiesGenerated)," × ",r(((o=e.businessMetrics["opportunity-size"])==null?void 0:o.value)||0)]}),s.jsxs("div",{className:"space-y-1 border-t pt-2",children:[s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"Better prioritization"}),s.jsxs("span",{className:"font-medium text-green-600",children:["+",r(t.increasedPipelinePrioritization)]})]}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"More activities"}),s.jsxs("span",{className:"font-medium text-green-600",children:["+",r(t.increasedPipelineActivities)]})]}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"Better messaging"}),s.jsxs("span",{className:"font-medium text-green-600",children:["+",r(t.increasedPipelineMessaging)]})]})]}),s.jsxs("div",{className:"flex justify-between items-center py-2 border-t-2 border-indigo-200 bg-indigo-50 px-3 rounded mt-3",children:[s.jsx("span",{className:"font-semibold text-indigo-900 text-sm",children:"Total Additional Pipeline"}),s.jsx("span",{className:"font-bold text-indigo-600",children:r(t.totalIncreasedPipeline)})]}),s.jsxs("div",{className:"flex justify-between items-center py-2 border-t-2 border-green-200 bg-green-50 px-3 rounded mt-2",children:[s.jsx("span",{className:"font-semibold text-green-900 text-sm",children:"Total Additional Sales"}),s.jsx("span",{className:"font-bold text-green-600 text-lg",children:r(t.increasedSales)})]}),s.jsxs("div",{className:"text-xs text-gray-500 pl-2",children:[r(t.totalIncreasedPipeline)," × ",((l=e.businessMetrics["win-rate"])==null?void 0:l.value)||20,"% win rate"]}),s.jsxs("div",{className:"mt-16 pt-12 border-t-2 border-gray-200",children:[s.jsx("h4",{className:"font-semibold text-gray-800 text-sm mb-3",children:"Cost Savings from Time Saved"}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"Time saved per seller"}),s.jsxs("span",{className:"font-medium",children:[((c=e.valueDrivers["time-saved"])==null?void 0:c.value)||0," hours/week"]})]}),s.jsxs("div",{className:"flex justify-between items-center py-1 text-sm",children:[s.jsx("span",{className:"text-gray-700",children:"Hourly cost per seller"}),s.jsx("span",{className:"font-medium",children:r((((d=e.businessMetrics["seller-cost"])==null?void 0:d.value)||0)/2e3)})]}),s.jsxs("div",{className:"text-xs text-gray-500 pl-2",children:[r(((A=e.businessMetrics["seller-cost"])==null?void 0:A.value)||0)," ÷ 2,000 hours/year"]}),s.jsxs("div",{className:"flex justify-between items-center py-2 border-t-2 border-green-200 bg-green-50 px-3 rounded mt-2",children:[s.jsx("span",{className:"font-semibold text-green-900 text-sm",children:"Total Cost Savings"}),s.jsx("span",{className:"font-bold text-green-600 text-lg",children:r(t.timeSavedCost)})]}),s.jsxs("div",{className:"text-xs text-gray-500 pl-2",children:[((u=e.valueDrivers["time-saved"])==null?void 0:u.value)||0," hours × 50 weeks × ",r((((h=e.businessMetrics["seller-cost"])==null?void 0:h.value)||0)/2e3),"/hour × ",((m=e.businessMetrics["sellers-count"])==null?void 0:m.value)||0," sellers"]})]})]})})})})]})};/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Tj=function(t,e){return Tj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Tj(t,e)};function ri(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tj(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Lj=function(){return Lj=Object.assign||function(e){for(var r,n=1,a=arguments.length;n0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=55296&&a<=56319&&r>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},rk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bie=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ax=0;ax"u"?[]:new Uint8Array(256);for(var ix=0;ix>4,A[a++]=(o&15)<<4|l>>2,A[a++]=(l&3)<<6|c&63;return d},jie=function(t){for(var e=t.length,r=[],n=0;n>ld,Bie=1<>ld,kie=gM+Sie,Eie=kie,Fie=32,Iie=Eie+Fie,Pie=65536>>WN,Tie=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>ld],r=(r<>ld)],r=(r<>WN),r=this.index[r],r+=e>>ld&Lie,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var ox=0;oxik?(a.push(!0),l-=ik):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(o),r.push(Mj);if(l===Oie||l===Uj){if(o===0)return n.push(o),r.push(Qc);var c=r[o-1];return qie.indexOf(c)===-1?(n.push(n[o-1]),r.push(c)):(n.push(o),r.push(Qc))}if(n.push(o),l===Wie)return r.push(e==="strict"?Qj:Rf);if(l===bM||l===zie)return r.push(Qc);if(l===$ie)return i>=131072&&i<=196605||i>=196608&&i<=262141?r.push(Rf):r.push(Qc);r.push(l)}),[n,r,a]},l1=function(t,e,r,n){var a=n[r];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var i=r;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==Fl)break}if(a===Fl)for(var i=r;i>0;){i--;var l=n[i];if(Array.isArray(t)?t.indexOf(l)!==-1:t===l)for(var c=r;c<=n.length;){c++;var o=n[c];if(o===e)return!0;if(o!==Fl)break}if(l!==Fl)break}return!1},hk=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===Fl)r--;else return n}return 0},Xie=function(t,e,r,n,a){if(r[n]===0)return Lt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Lt;var o=i-1,l=i+1,c=e[i],d=o>=0?e[o]:0,A=e[l];if(c===xM&&A===yM)return Lt;if(Vj.indexOf(c)!==-1)return wM;if(Vj.indexOf(A)!==-1||jM.indexOf(A)!==-1)return Lt;if(hk(i,e)===vM)return Ax;if(Kj.get(t[i])===Uj||(c===cx||c===dx)&&Kj.get(t[l])===Uj||c===ok||A===ok||c===lk||[Fl,_j,Cm].indexOf(c)===-1&&A===lk||[lx,Am,Vie,SA,kA].indexOf(A)!==-1||hk(i,e)===um||l1(i1,um,i,e)||l1([lx,Am],Qj,i,e)||l1(ck,ck,i,e))return Lt;if(c===Fl)return Ax;if(c===i1||A===i1)return Lt;if(A===Mj||c===Mj)return Ax;if([_j,Cm,Qj].indexOf(A)!==-1||c===Kie||d===Oj&&Yie.indexOf(c)!==-1||c===kA&&A===Oj||A===dk||Zi.indexOf(A)!==-1&&c===Us||Zi.indexOf(c)!==-1&&A===Us||c===Sm&&[Rf,cx,dx].indexOf(A)!==-1||[Rf,cx,dx].indexOf(c)!==-1&&A===Bm||Zi.indexOf(c)!==-1&&Ak.indexOf(A)!==-1||Ak.indexOf(c)!==-1&&Zi.indexOf(A)!==-1||[Sm,Bm].indexOf(c)!==-1&&(A===Us||[um,Cm].indexOf(A)!==-1&&e[l+1]===Us)||[um,Cm].indexOf(c)!==-1&&A===Us||c===Us&&[Us,kA,SA].indexOf(A)!==-1)return Lt;if([Us,kA,SA,lx,Am].indexOf(A)!==-1)for(var u=i;u>=0;){var h=e[u];if(h===Us)return Lt;if([kA,SA].indexOf(h)!==-1)u--;else break}if([Sm,Bm].indexOf(A)!==-1)for(var u=[lx,Am].indexOf(c)!==-1?o:i;u>=0;){var h=e[u];if(h===Us)return Lt;if([kA,SA].indexOf(h)!==-1)u--;else break}if(Hj===c&&[Hj,t0,Dj,Rj].indexOf(A)!==-1||[t0,Dj].indexOf(c)!==-1&&[t0,r0].indexOf(A)!==-1||[r0,Rj].indexOf(c)!==-1&&A===r0||uk.indexOf(c)!==-1&&[dk,Bm].indexOf(A)!==-1||uk.indexOf(A)!==-1&&c===Sm||Zi.indexOf(c)!==-1&&Zi.indexOf(A)!==-1||c===SA&&Zi.indexOf(A)!==-1||Zi.concat(Us).indexOf(c)!==-1&&A===um&&Gie.indexOf(t[l])===-1||Zi.concat(Us).indexOf(A)!==-1&&c===Am)return Lt;if(c===o1&&A===o1){for(var m=r[i],g=1;m>0&&(m--,e[m]===o1);)g++;if(g%2!==0)return Lt}return c===cx&&A===dx?Lt:Ax},Zie=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Jie(t,e.lineBreak),n=r[0],a=r[1],i=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(l){return[Us,Qc,bM].indexOf(l)!==-1?Rf:l}));var o=e.wordBreak==="keep-all"?i.map(function(l,c){return l&&t[c]>=19968&&t[c]<=40959}):void 0;return[n,a,o]},eoe=function(){function t(e,r,n,a){this.codePoints=e,this.required=r===wM,this.start=n,this.end=a}return t.prototype.slice=function(){return Or.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),toe=function(t,e){var r=Uv(t),n=Zie(r,e),a=n[0],i=n[1],o=n[2],l=r.length,c=0,d=0;return{next:function(){if(d>=l)return{done:!0,value:null};for(var A=Lt;d=NM&&t<=57},Uoe=function(t){return t>=55296&&t<=57343},EA=function(t){return Rn(t)||t>=SM&&t<=EM||t>=CM&&t<=Foe},_oe=function(t){return t>=CM&&t<=Poe},Moe=function(t){return t>=SM&&t<=Loe},Qoe=function(t){return _oe(t)||Moe(t)},Doe=function(t){return t>=voe},px=function(t){return t===uy||t===soe||t===aoe},hy=function(t){return Qoe(t)||Doe(t)||t===coe},xk=function(t){return hy(t)||Rn(t)||t===vs},Roe=function(t){return t>=Noe&&t<=Coe||t===Boe||t>=Soe&&t<=koe||t===Eoe},dl=function(t,e){return t!==Zm?!1:e!==uy},gx=function(t,e,r){return t===vs?hy(e)||dl(e,r):hy(t)?!0:!!(t===Zm&&dl(t,e))},d1=function(t,e,r){return t===zc||t===vs?Rn(e)?!0:e===Of&&Rn(r):Rn(t===Of?e:t)},Ooe=function(t){var e=0,r=1;(t[e]===zc||t[e]===vs)&&(t[e]===vs&&(r=-1),e++);for(var n=[];Rn(t[e]);)n.push(t[e++]);var a=n.length?parseInt(Or.apply(void 0,n),10):0;t[e]===Of&&e++;for(var i=[];Rn(t[e]);)i.push(t[e++]);var o=i.length,l=o?parseInt(Or.apply(void 0,i),10):0;(t[e]===kM||t[e]===BM)&&e++;var c=1;(t[e]===zc||t[e]===vs)&&(t[e]===vs&&(c=-1),e++);for(var d=[];Rn(t[e]);)d.push(t[e++]);var A=d.length?parseInt(Or.apply(void 0,d),10):0;return r*(a+l*Math.pow(10,-o))*Math.pow(10,c*A)},Hoe={type:2},Koe={type:3},Voe={type:4},zoe={type:13},Woe={type:8},$oe={type:21},Goe={type:9},qoe={type:10},Yoe={type:11},Joe={type:12},Xoe={type:14},xx={type:23},Zoe={type:1},ele={type:25},tle={type:24},rle={type:26},nle={type:27},sle={type:28},ale={type:29},ile={type:31},zj={type:32},FM=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(Uv(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==zj;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case ux:return this.consumeStringToken(ux);case ioe:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(xk(r)||dl(n,a)){var i=gx(r,n,a)?noe:roe,o=this.consumeName();return{type:5,value:o,flags:i}}break;case ooe:if(this.peekCodePoint(0)===hm)return this.consumeCodePoint(),zoe;break;case hx:return this.consumeStringToken(hx);case mx:return Hoe;case mm:return Koe;case c1:if(this.peekCodePoint(0)===hm)return this.consumeCodePoint(),Xoe;break;case zc:if(d1(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case boe:return Voe;case vs:var l=e,c=this.peekCodePoint(0),d=this.peekCodePoint(1);if(d1(l,c,d))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(gx(l,c,d))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===vs&&d===uoe)return this.consumeCodePoint(),this.consumeCodePoint(),tle;break;case Of:if(d1(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case fk:if(this.peekCodePoint(0)===c1)for(this.consumeCodePoint();;){var A=this.consumeCodePoint();if(A===c1&&(A=this.consumeCodePoint(),A===fk))return this.consumeToken();if(A===fi)return this.consumeToken()}break;case woe:return rle;case joe:return nle;case Aoe:if(this.peekCodePoint(0)===doe&&this.peekCodePoint(1)===vs&&this.peekCodePoint(2)===vs)return this.consumeCodePoint(),this.consumeCodePoint(),ele;break;case hoe:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),m=this.peekCodePoint(2);if(gx(u,h,m)){var o=this.consumeName();return{type:7,value:o}}break;case moe:return sle;case Zm:if(dl(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case foe:return ale;case poe:if(this.peekCodePoint(0)===hm)return this.consumeCodePoint(),Woe;break;case goe:return Yoe;case xoe:return Joe;case Ioe:case Toe:var g=this.peekCodePoint(0),p=this.peekCodePoint(1);return g===zc&&(EA(p)||p===fx)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case pk:if(this.peekCodePoint(0)===hm)return this.consumeCodePoint(),Goe;if(this.peekCodePoint(0)===pk)return this.consumeCodePoint(),$oe;break;case yoe:if(this.peekCodePoint(0)===hm)return this.consumeCodePoint(),qoe;break;case fi:return zj}return px(e)?(this.consumeWhiteSpace(),ile):Rn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):hy(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Or(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();EA(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===fx&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Or.apply(void 0,e.map(function(c){return c===fx?NM:c})),16),i=parseInt(Or.apply(void 0,e.map(function(c){return c===fx?EM:c})),16);return{type:30,start:a,end:i}}var o=parseInt(Or.apply(void 0,e),16);if(this.peekCodePoint(0)===vs&&EA(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var l=[];EA(r)&&l.length<6;)l.push(r),r=this.consumeCodePoint();var i=parseInt(Or.apply(void 0,l),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===mx?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===mx?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===hx||r===ux){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===mm)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),xx)}for(;;){var a=this.consumeCodePoint();if(a===fi||a===mm)return{type:22,value:Or.apply(void 0,e)};if(px(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===mm?(this.consumeCodePoint(),{type:22,value:Or.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xx);if(a===ux||a===hx||a===mx||Roe(a))return this.consumeBadUrlRemnants(),xx;if(a===Zm)if(dl(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),xx;else e.push(a)}},t.prototype.consumeWhiteSpace=function(){for(;px(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===mm||e===fi)return;dl(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var a=Math.min(r,e);n+=Or.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var a=this._value[n];if(a===fi||a===void 0||a===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(a===uy)return this._value.splice(0,n),Zoe;if(a===Zm){var i=this._value[n+1];i!==fi&&i!==void 0&&(i===uy?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):dl(a,i)&&(r+=this.consumeStringSlice(n),r+=Or(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=Cp,n=this.peekCodePoint(0);for((n===zc||n===vs)&&e.push(this.consumeCodePoint());Rn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Of&&Rn(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=mk;Rn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===kM||n===BM)&&((a===zc||a===vs)&&Rn(i)||Rn(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=mk;Rn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ooe(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(gx(a,i,o)){var l=this.consumeName();return{type:15,number:r,flags:n,unit:l}}return a===loe?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(EA(e)){for(var r=Or(e);EA(this.peekCodePoint(0))&&r.length<6;)r+=Or(this.consumeCodePoint());px(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||Uoe(n)||n>1114111?gk:n}return e===fi?gk:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(xk(r))e+=Or(r);else if(dl(r,this.peekCodePoint(0)))e+=Or(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t}(),IM=function(){function t(e){this._tokens=e}return t.create=function(e){var r=new FM;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||lle(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?zj:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),Bp=function(t){return t.type===15},yh=function(t){return t.type===17},Zt=function(t){return t.type===20},ole=function(t){return t.type===0},Wj=function(t,e){return Zt(t)&&t.value===e},PM=function(t){return t.type!==31},rh=function(t){return t.type!==31&&t.type!==4},Qi=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},lle=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},ac=function(t){return t.type===17||t.type===15},Xr=function(t){return t.type===16||ac(t)},TM=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Cn={type:17,number:0,flags:Cp},$N={type:16,number:50,flags:Cp},Il={type:16,number:100,flags:Cp},km=function(t,e,r){var n=t[0],a=t[1];return[cr(n,e),cr(typeof a<"u"?a:n,r)]},cr=function(t,e){if(t.type===16)return t.number/100*e;if(Bp(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},LM="deg",UM="grad",_M="rad",MM="turn",_v={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case LM:return Math.PI*e.number/180;case UM:return Math.PI/200*e.number;case _M:return e.number;case MM:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},QM=function(t){return t.type===15&&(t.unit===LM||t.unit===UM||t.unit===_M||t.unit===MM)},DM=function(t){var e=t.filter(Zt).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Cn,Cn];case"to top":case"bottom":return xa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Cn,Il];case"to right":case"left":return xa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Il,Il];case"to bottom":case"top":return xa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Il,Cn];case"to left":case"right":return xa(270)}return 0},xa=function(t){return Math.PI*t/180},Kl={name:"color",parse:function(t,e){if(e.type===18){var r=cle[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3);return Pl(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return Pl(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6);return Pl(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Pl(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var l=yo[e.value.toUpperCase()];if(typeof l<"u")return l}return yo.TRANSPARENT}},Vl=function(t){return(255&t)===0},An=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,a=255&t>>24;return e<255?"rgba("+a+","+n+","+r+","+e/255+")":"rgb("+a+","+n+","+r+")"},Pl=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},yk=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},vk=function(t,e){var r=e.filter(rh);if(r.length===3){var n=r.map(yk),a=n[0],i=n[1],o=n[2];return Pl(a,i,o,1)}if(r.length===4){var l=r.map(yk),a=l[0],i=l[1],o=l[2],c=l[3];return Pl(a,i,o,c)}return 0};function A1(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var bk=function(t,e){var r=e.filter(rh),n=r[0],a=r[1],i=r[2],o=r[3],l=(n.type===17?xa(n.number):_v.parse(t,n))/(Math.PI*2),c=Xr(a)?a.number/100:0,d=Xr(i)?i.number/100:0,A=typeof o<"u"&&Xr(o)?cr(o,1):1;if(c===0)return Pl(d*255,d*255,d*255,1);var u=d<=.5?d*(c+1):d+c-d*c,h=d*2-u,m=A1(h,u,l+1/3),g=A1(h,u,l),p=A1(h,u,l-1/3);return Pl(m*255,g*255,p*255,A)},cle={hsl:bk,hsla:bk,rgb:vk,rgba:vk},ef=function(t,e){return Kl.parse(t,IM.create(e).parseComponentValue())},yo={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dle={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(Zt(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ale={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Mv=function(t,e){var r=Kl.parse(t,e[0]),n=e[1];return n&&Xr(n)?{color:r,stop:n}:{color:r,stop:null}},wk=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=Cn),n.stop===null&&(n.stop=Il);for(var a=[],i=0,o=0;oi?a.push(c):a.push(i),i=c}else a.push(null)}for(var d=null,o=0;oo.optimumDistance)?{optimumCorner:l,optimumDistance:A}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},mle=function(t,e,r,n,a){var i=0,o=0;switch(t.size){case 0:t.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-a)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(r),Math.abs(r-a)));break;case 2:if(t.shape===0)i=o=Math.min(Da(e,r),Da(e,r-a),Da(e-n,r),Da(e-n,r-a));else if(t.shape===1){var l=Math.min(Math.abs(r),Math.abs(r-a))/Math.min(Math.abs(e),Math.abs(e-n)),c=jk(n,a,e,r,!0),d=c[0],A=c[1];i=Da(d-e,(A-r)/l),o=l*i}break;case 1:t.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-a)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(r),Math.abs(r-a)));break;case 3:if(t.shape===0)i=o=Math.max(Da(e,r),Da(e,r-a),Da(e-n,r),Da(e-n,r-a));else if(t.shape===1){var l=Math.max(Math.abs(r),Math.abs(r-a))/Math.max(Math.abs(e),Math.abs(e-n)),u=jk(n,a,e,r,!1),d=u[0],A=u[1];i=Da(d-e,(A-r)/l),o=l*i}break}return Array.isArray(t.size)&&(i=cr(t.size[0],n),o=t.size.length===2?cr(t.size[1],a):i),[i,o]},fle=function(t,e){var r=xa(180),n=[];return Qi(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&o.value==="to"){r=DM(a);return}else if(QM(o)){r=_v.parse(t,o);return}}var l=Mv(t,a);n.push(l)}),{angle:r,stops:n,type:1}},yx=function(t,e){var r=xa(180),n=[];return Qi(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){r=DM(a);return}else if(QM(o)){r=(_v.parse(t,o)+xa(270))%xa(360);return}}var l=Mv(t,a);n.push(l)}),{angle:r,stops:n,type:1}},ple=function(t,e){var r=xa(180),n=[],a=1,i=0,o=3,l=[];return Qi(e).forEach(function(c,d){var A=c[0];if(d===0){if(Zt(A)&&A.value==="linear"){a=1;return}else if(Zt(A)&&A.value==="radial"){a=2;return}}if(A.type===18){if(A.name==="from"){var u=Kl.parse(t,A.values[0]);n.push({stop:Cn,color:u})}else if(A.name==="to"){var u=Kl.parse(t,A.values[0]);n.push({stop:Il,color:u})}else if(A.name==="color-stop"){var h=A.values.filter(rh);if(h.length===2){var u=Kl.parse(t,h[1]),m=h[0];yh(m)&&n.push({stop:{type:16,number:m.number*100,flags:m.flags},color:u})}}}}),a===1?{angle:(r+xa(180))%xa(360),stops:n,type:a}:{size:o,shape:i,stops:n,position:l,type:a}},RM="closest-side",OM="farthest-side",HM="closest-corner",KM="farthest-corner",VM="circle",zM="ellipse",WM="cover",$M="contain",gle=function(t,e){var r=0,n=3,a=[],i=[];return Qi(e).forEach(function(o,l){var c=!0;if(l===0){var d=!1;c=o.reduce(function(u,h){if(d)if(Zt(h))switch(h.value){case"center":return i.push($N),u;case"top":case"left":return i.push(Cn),u;case"right":case"bottom":return i.push(Il),u}else(Xr(h)||ac(h))&&i.push(h);else if(Zt(h))switch(h.value){case VM:return r=0,!1;case zM:return r=1,!1;case"at":return d=!0,!1;case RM:return n=0,!1;case WM:case OM:return n=1,!1;case $M:case HM:return n=2,!1;case KM:return n=3,!1}else if(ac(h)||Xr(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},c)}if(c){var A=Mv(t,o);a.push(A)}}),{size:n,shape:r,stops:a,position:i,type:2}},vx=function(t,e){var r=0,n=3,a=[],i=[];return Qi(e).forEach(function(o,l){var c=!0;if(l===0?c=o.reduce(function(A,u){if(Zt(u))switch(u.value){case"center":return i.push($N),!1;case"top":case"left":return i.push(Cn),!1;case"right":case"bottom":return i.push(Il),!1}else if(Xr(u)||ac(u))return i.push(u),!1;return A},c):l===1&&(c=o.reduce(function(A,u){if(Zt(u))switch(u.value){case VM:return r=0,!1;case zM:return r=1,!1;case $M:case RM:return n=0,!1;case OM:return n=1,!1;case HM:return n=2,!1;case WM:case KM:return n=3,!1}else if(ac(u)||Xr(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return A},c)),c){var d=Mv(t,o);a.push(d)}}),{size:n,shape:r,stops:a,position:i,type:2}},xle=function(t){return t.type===1},yle=function(t){return t.type===2},GN={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=GM[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function vle(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!GM[t.name])}var GM={"linear-gradient":fle,"-moz-linear-gradient":yx,"-ms-linear-gradient":yx,"-o-linear-gradient":yx,"-webkit-linear-gradient":yx,"radial-gradient":gle,"-moz-radial-gradient":vx,"-ms-radial-gradient":vx,"-o-radial-gradient":vx,"-webkit-radial-gradient":vx,"-webkit-gradient":ple},ble={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return rh(n)&&vle(n)}).map(function(n){return GN.parse(t,n)})}},wle={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(Zt(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},jle={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Qi(e).map(function(r){return r.filter(Xr)}).map(TM)}},Nle={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Qi(e).map(function(r){return r.filter(Zt).map(function(n){return n.value}).join(" ")}).map(Cle)}},Cle=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},vu;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(vu||(vu={}));var Ble={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Qi(e).map(function(r){return r.filter(Sle)})}},Sle=function(t){return Zt(t)||Xr(t)},Qv=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},kle=Qv("top"),Ele=Qv("right"),Fle=Qv("bottom"),Ile=Qv("left"),Dv=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return TM(r.filter(Xr))}}},Ple=Dv("top-left"),Tle=Dv("top-right"),Lle=Dv("bottom-right"),Ule=Dv("bottom-left"),Rv=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},_le=Rv("top"),Mle=Rv("right"),Qle=Rv("bottom"),Dle=Rv("left"),Ov=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return Bp(r)?r.number:0}}},Rle=Ov("top"),Ole=Ov("right"),Hle=Ov("bottom"),Kle=Ov("left"),Vle={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zle={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Wle={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Zt).reduce(function(r,n){return r|$le(n.value)},0)}},$le=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Gle={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},qle={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},my;(function(t){t.NORMAL="normal",t.STRICT="strict"})(my||(my={}));var Yle={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return my.STRICT;case"normal":default:return my.NORMAL}}},Jle={name:"line-height",initialValue:"normal",prefix:!1,type:4},Nk=function(t,e){return Zt(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Xr(t)?cr(t,e):e},Xle={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:GN.parse(t,e)}},Zle={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},$j={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Hv=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},ece=Hv("top"),tce=Hv("right"),rce=Hv("bottom"),nce=Hv("left"),sce={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Zt).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ace={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Kv=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ice=Kv("top"),oce=Kv("right"),lce=Kv("bottom"),cce=Kv("left"),dce={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ace={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},uce={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Wj(e[0],"none")?[]:Qi(e).map(function(r){for(var n={color:yo.TRANSPARENT,offsetX:Cn,offsetY:Cn,blur:Cn},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},fce=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},pce=function(t){var e=t.filter(function(c){return c.type===17}).map(function(c){return c.number}),r=e[0],n=e[1];e[2],e[3];var a=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],l=e[13];return e[14],e[15],e.length===16?[r,n,a,i,o,l]:null},gce={matrix:fce,matrix3d:pce},Ck={type:16,number:50,flags:Cp},xce=[Ck,Ck],yce={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(Xr);return r.length!==2?xce:[r[0],r[1]]}},vce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},tf;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(tf||(tf={}));var bce={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return tf.BREAK_ALL;case"keep-all":return tf.KEEP_ALL;case"normal":default:return tf.NORMAL}}},wce={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(yh(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},qM={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},jce={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return yh(e)?e.number:1}},Nce={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cce={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Zt).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},Bce={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(a){switch(a.type){case 20:case 0:r.push(a.value);break;case 17:r.push(a.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},Sce={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},kce={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(yh(e))return e.number;if(Zt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ece={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Zt).map(function(r){return r.value})}},Fce={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},an=function(t,e){return(t&e)!==0},Ice={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},Pce={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],a=e.filter(PM),i=0;i1?1:0],this.overflowWrap=Xe(e,ace,r.overflowWrap),this.paddingTop=Xe(e,ice,r.paddingTop),this.paddingRight=Xe(e,oce,r.paddingRight),this.paddingBottom=Xe(e,lce,r.paddingBottom),this.paddingLeft=Xe(e,cce,r.paddingLeft),this.paintOrder=Xe(e,Mce,r.paintOrder),this.position=Xe(e,Ace,r.position),this.textAlign=Xe(e,dce,r.textAlign),this.textDecorationColor=Xe(e,Nce,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Xe(e,Cce,(a=r.textDecorationLine)!==null&&a!==void 0?a:r.textDecoration),this.textShadow=Xe(e,uce,r.textShadow),this.textTransform=Xe(e,hce,r.textTransform),this.transform=Xe(e,mce,r.transform),this.transformOrigin=Xe(e,yce,r.transformOrigin),this.visibility=Xe(e,vce,r.visibility),this.webkitTextStrokeColor=Xe(e,Qce,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Xe(e,Dce,r.webkitTextStrokeWidth),this.wordBreak=Xe(e,bce,r.wordBreak),this.zIndex=Xe(e,wce,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Vl(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return an(this.display,4)||an(this.display,33554432)||an(this.display,268435456)||an(this.display,536870912)||an(this.display,67108864)||an(this.display,134217728)},t}(),Oce=function(){function t(e,r){this.content=Xe(e,Ice,r.content),this.quotes=Xe(e,Uce,r.quotes)}return t}(),Sk=function(){function t(e,r){this.counterIncrement=Xe(e,Pce,r.counterIncrement),this.counterReset=Xe(e,Tce,r.counterReset)}return t}(),Xe=function(t,e,r){var n=new FM,a=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(a);var i=new IM(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,Zt(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return _v.parse(t,i.parseComponentValue());case"color":return Kl.parse(t,i.parseComponentValue());case"image":return GN.parse(t,i.parseComponentValue());case"length":var l=i.parseComponentValue();return ac(l)?l:Cn;case"length-percentage":var c=i.parseComponentValue();return Xr(c)?c:Cn;case"time":return qM.parse(t,i.parseComponentValue())}break}},Hce="data-html2canvas-debug",Kce=function(t){var e=t.getAttribute(Hce);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Gj=function(t,e){var r=Kce(t);return r===1||e===r},Di=function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Gj(r,3))debugger;this.styles=new Rce(e,window.getComputedStyle(r,null)),Jj(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Lv(this.context,r),Gj(r,4)&&(this.flags|=16)}return t}(),Vce="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",kk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Em=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var bx=0;bx>4,A[a++]=(o&15)<<4|l>>2,A[a++]=(l&3)<<6|c&63;return d},Wce=function(t){for(var e=t.length,r=[],n=0;n>cd,qce=1<>cd,Jce=YM+Yce,Xce=Jce,Zce=32,ede=Xce+Zce,tde=65536>>qN,rde=1<=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>cd],r=(r<>cd)],r=(r<>qN),r=this.index[r],r+=e>>cd&nde,r=this.index[r],r=(r<"u"?[]:new Uint8Array(256);for(var wx=0;wx=55296&&a<=56319&&r>10)+55296,o%1024+56320)),(a+1===r||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},ude=ade(Vce),Aa="×",y1="÷",hde=function(t){return ude.get(t)},mde=function(t,e,r){var n=r-2,a=e[n],i=e[r-1],o=e[r];if(i===m1&&o===f1)return Aa;if(i===m1||i===f1||i===Ik||o===m1||o===f1||o===Ik)return y1;if(i===Tk&&[Tk,p1,Lk,Uk].indexOf(o)!==-1||(i===Lk||i===p1)&&(o===p1||o===g1)||(i===Uk||i===g1)&&o===g1||o===_k||o===Pk||o===cde||i===lde)return Aa;if(i===_k&&o===Mk){for(;a===Pk;)a=e[--n];if(a===Mk)return Aa}if(i===x1&&o===x1){for(var l=0;a===x1;)l++,a=e[--n];if(l%2===0)return Aa}return y1},fde=function(t){var e=dde(t),r=e.length,n=0,a=0,i=e.map(hde);return{next:function(){if(n>=r)return{done:!0,value:null};for(var o=Aa;no.x||A.y>o.y;return o=A,d===0?!0:u});return t.body.removeChild(e),l},yde=function(){return typeof new Image().crossOrigin<"u"},vde=function(){return typeof new XMLHttpRequest().responseType=="string"},bde=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Qk=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},wde=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var a=new Image,i=e.toDataURL();a.src=i;var o=qj(r,r,0,0,a);return n.fillStyle="red",n.fillRect(0,0,r,r),Dk(o).then(function(l){n.drawImage(l,0,0);var c=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var d=t.createElement("div");return d.style.backgroundImage="url("+i+")",d.style.height=r+"px",Qk(c)?Dk(qj(r,r,0,0,d)):Promise.reject(!1)}).then(function(l){return n.drawImage(l,0,0),Qk(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},qj=function(t,e,r,n,a){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",r.toString()),l.setAttributeNS(null,"y",n.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(l),l.appendChild(a),o},Dk=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Nn={get SUPPORT_RANGE_BOUNDS(){var t=gde(document);return Object.defineProperty(Nn,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Nn.SUPPORT_RANGE_BOUNDS&&xde(document);return Object.defineProperty(Nn,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=bde(document);return Object.defineProperty(Nn,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?wde(document):Promise.resolve(!1);return Object.defineProperty(Nn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=yde();return Object.defineProperty(Nn,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=vde();return Object.defineProperty(Nn,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Nn,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Nn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},rf=function(){function t(e,r){this.text=e,this.bounds=r}return t}(),jde=function(t,e,r,n){var a=Bde(e,r),i=[],o=0;return a.forEach(function(l){if(r.textDecorationLine.length||l.trim().length>0)if(Nn.SUPPORT_RANGE_BOUNDS){var c=Rk(n,o,l.length).getClientRects();if(c.length>1){var d=YN(l),A=0;d.forEach(function(h){i.push(new rf(h,Fo.fromDOMRectList(t,Rk(n,A+o,h.length).getClientRects()))),A+=h.length})}else i.push(new rf(l,Fo.fromDOMRectList(t,c)))}else{var u=n.splitText(l.length);i.push(new rf(l,Nde(t,n))),n=u}else Nn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(l.length));o+=l.length}),i},Nde=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var i=Lv(t,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return Fo.EMPTY},Rk=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(t,e),a.setEnd(t,e+r),a},YN=function(t){if(Nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return pde(t)},Cde=function(t,e){if(Nn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return kde(t,e)},Bde=function(t,e){return e.letterSpacing!==0?YN(t):Cde(t,e)},Sde=[32,160,4961,65792,65793,4153,4241],kde=function(t,e){for(var r=toe(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,i=function(){if(a.value){var o=a.value.slice(),l=Uv(o),c="";l.forEach(function(d){Sde.indexOf(d)===-1?c+=Or(d):(c.length&&n.push(c),n.push(Or(d)),c="")}),c.length&&n.push(c)}};!(a=r.next()).done;)i();return n},Ede=function(){function t(e,r,n){this.text=Fde(r.data,n.textTransform),this.textBounds=jde(e,this.text,n,r)}return t}(),Fde=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Ide,Pde);case 2:return t.toUpperCase();default:return t}},Ide=/(^|\s|:|-|\(|\))([a-z])/g,Pde=function(t,e,r){return t.length>0?e+r.toUpperCase():t},JM=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(Di),XM=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(Di),ZM=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this,i=new XMLSerializer,o=Lv(r,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(Di),e7=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.value=n.value,a}return e}(Di),Yj=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(Di),Tde=[{type:15,flags:0,unit:"px",number:3}],Lde=[{type:16,flags:0,number:50}],Ude=function(t){return t.width>t.height?new Fo(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)r.textNodes.push(new Ede(t,a,r.styles));else if(au(a))if(d7(a)&&a.assignedNodes)a.assignedNodes().forEach(function(l){return n0(t,l,r,n)});else{var o=s7(t,a);o.styles.isVisible()&&(Dde(a,o,n)?o.flags|=4:Rde(o.styles)&&(o.flags|=2),Qde.indexOf(a.tagName)!==-1&&(o.flags|=8),r.elements.push(o),a.slot,a.shadowRoot?n0(t,a.shadowRoot,o,n):!gy(a)&&!o7(a)&&!xy(a)&&n0(t,a,o,n))}},s7=function(t,e){return Xj(e)?new JM(t,e):l7(e)?new XM(t,e):o7(e)?new ZM(t,e):Ode(e)?new e7(t,e):Hde(e)?new Yj(t,e):Kde(e)?new JN(t,e):xy(e)?new t7(t,e):gy(e)?new r7(t,e):c7(e)?new n7(t,e):new Di(t,e)},a7=function(t,e){var r=s7(t,e);return r.flags|=4,n0(t,e,r,r),r},Dde=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||XN(t)&&r.styles.isTransparent()},Rde=function(t){return t.isPositioned()||t.isFloating()},i7=function(t){return t.nodeType===Node.TEXT_NODE},au=function(t){return t.nodeType===Node.ELEMENT_NODE},Jj=function(t){return au(t)&&typeof t.style<"u"&&!s0(t)},s0=function(t){return typeof t.className=="object"},Ode=function(t){return t.tagName==="LI"},Hde=function(t){return t.tagName==="OL"},Kde=function(t){return t.tagName==="INPUT"},Vde=function(t){return t.tagName==="HTML"},o7=function(t){return t.tagName==="svg"},XN=function(t){return t.tagName==="BODY"},l7=function(t){return t.tagName==="CANVAS"},Hk=function(t){return t.tagName==="VIDEO"},Xj=function(t){return t.tagName==="IMG"},c7=function(t){return t.tagName==="IFRAME"},Kk=function(t){return t.tagName==="STYLE"},zde=function(t){return t.tagName==="SCRIPT"},gy=function(t){return t.tagName==="TEXTAREA"},xy=function(t){return t.tagName==="SELECT"},d7=function(t){return t.tagName==="SLOT"},Vk=function(t){return t.tagName.indexOf("-")>0},Wde=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,a=e.counterReset,i=!0;n!==null&&n.forEach(function(l){var c=r.counters[l.counter];c&&l.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=l.increment)});var o=[];return i&&a.forEach(function(l){var c=r.counters[l.counter];o.push(l.counter),c||(c=r.counters[l.counter]=[]),c.push(l.reset)}),o},t}(),zk={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Wk={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},$de={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Gde={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},FA=function(t,e,r,n,a,i){return tr?Hf(t,a,i.length>0):n.integers.reduce(function(o,l,c){for(;t>=l;)t-=l,o+=n.values[c];return o},"")+i},A7=function(t,e,r,n){var a="";do r||t--,a=n(t)+a,t/=e;while(t*e>=e);return a},Dr=function(t,e,r,n,a){var i=r-e+1;return(t<0?"-":"")+(A7(Math.abs(t),i,n,function(o){return Or(Math.floor(o%i)+e)})+a)},Ic=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return A7(Math.abs(t),n,!1,function(a){return e[Math.floor(a%n)]})+r},MA=1,sl=2,al=4,Fm=8,eo=function(t,e,r,n,a,i){if(t<-9999||t>9999)return Hf(t,4,a.length>0);var o=Math.abs(t),l=a;if(o===0)return e[0]+l;for(var c=0;o>0&&c<=4;c++){var d=o%10;d===0&&an(i,MA)&&l!==""?l=e[d]+l:d>1||d===1&&c===0||d===1&&c===1&&an(i,sl)||d===1&&c===1&&an(i,al)&&t>100||d===1&&c>1&&an(i,Fm)?l=e[d]+(c>0?r[c-1]:"")+l:d===1&&c>0&&(l=r[c-1]+l),o=Math.floor(o/10)}return(t<0?n:"")+l},$k="十百千萬",Gk="拾佰仟萬",qk="マイナス",v1="마이너스",Hf=function(t,e,r){var n=r?". ":"",a=r?"、":"",i=r?", ":"",o=r?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var l=Dr(t,48,57,!0,n);return l.length<4?"0"+l:l;case 4:return Ic(t,"〇一二三四五六七八九",a);case 6:return FA(t,1,3999,zk,3,n).toLowerCase();case 7:return FA(t,1,3999,zk,3,n);case 8:return Dr(t,945,969,!1,n);case 9:return Dr(t,97,122,!1,n);case 10:return Dr(t,65,90,!1,n);case 11:return Dr(t,1632,1641,!0,n);case 12:case 49:return FA(t,1,9999,Wk,3,n);case 35:return FA(t,1,9999,Wk,3,n).toLowerCase();case 13:return Dr(t,2534,2543,!0,n);case 14:case 30:return Dr(t,6112,6121,!0,n);case 15:return Ic(t,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return Ic(t,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return eo(t,"零一二三四五六七八九",$k,"負",a,sl|al|Fm);case 47:return eo(t,"零壹貳參肆伍陸柒捌玖",Gk,"負",a,MA|sl|al|Fm);case 42:return eo(t,"零一二三四五六七八九",$k,"负",a,sl|al|Fm);case 41:return eo(t,"零壹贰叁肆伍陆柒捌玖",Gk,"负",a,MA|sl|al|Fm);case 26:return eo(t,"〇一二三四五六七八九","十百千万",qk,a,0);case 25:return eo(t,"零壱弐参四伍六七八九","拾百千万",qk,a,MA|sl|al);case 31:return eo(t,"영일이삼사오육칠팔구","십백천만",v1,i,MA|sl|al);case 33:return eo(t,"零一二三四五六七八九","十百千萬",v1,i,0);case 32:return eo(t,"零壹貳參四五六七八九","拾百千",v1,i,MA|sl|al);case 18:return Dr(t,2406,2415,!0,n);case 20:return FA(t,1,19999,Gde,3,n);case 21:return Dr(t,2790,2799,!0,n);case 22:return Dr(t,2662,2671,!0,n);case 22:return FA(t,1,10999,$de,3,n);case 23:return Ic(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ic(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Dr(t,3302,3311,!0,n);case 28:return Ic(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return Ic(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return Dr(t,3792,3801,!0,n);case 37:return Dr(t,6160,6169,!0,n);case 38:return Dr(t,4160,4169,!0,n);case 39:return Dr(t,2918,2927,!0,n);case 40:return Dr(t,1776,1785,!0,n);case 43:return Dr(t,3046,3055,!0,n);case 44:return Dr(t,3174,3183,!0,n);case 45:return Dr(t,3664,3673,!0,n);case 46:return Dr(t,3872,3881,!0,n);case 3:default:return Dr(t,48,57,!0,n)}},u7="data-html2canvas-ignore",Yk=function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new Wde,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,a=qde(e,r);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,l=a.contentWindow,c=l.document,d=Xde(a).then(function(){return ts(n,void 0,void 0,function(){var A,u;return Qn(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(rAe),l&&(l.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==r.top||l.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-r.left,l.scrollY-r.top,0,0))),A=this.options.onclone,u=this.clonedReferenceElement,typeof u>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Jde(c)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof A=="function"?[2,Promise.resolve().then(function(){return A(c,u)}).then(function(){return a})]:[2,a]}})})});return c.open(),c.write(eAe(document.doctype)+""),tAe(this.referenceElement.ownerDocument,i,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),d},t.prototype.createElementClone=function(e){if(Gj(e,2))debugger;if(l7(e))return this.createCanvasClone(e);if(Hk(e))return this.createVideoClone(e);if(Kk(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Xj(r)&&(Xj(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Vk(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return b1(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var i=e.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var l=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(l){var c=l.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},t.prototype.appendChildNode=function(e,r,n){(!au(r)||!zde(r)&&!r.hasAttribute(u7)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!au(r)||!Kk(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var a=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(au(i)&&d7(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(l){return a.appendChildNode(r,l,n)})}else this.appendChildNode(r,i,n)},t.prototype.cloneNode=function(e,r){if(i7(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&au(e)&&(Jj(e)||s0(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),l=n.getComputedStyle(e,":after");this.referenceElement===e&&Jj(a)&&(this.clonedReferenceElement=a),XN(a)&&aAe(a);var c=this.counters.parse(new Sk(this.context,i)),d=this.resolvePseudoContent(e,a,o,nf.BEFORE);Vk(e)&&(r=!0),Hk(e)||this.cloneChildNodes(e,a,r),d&&a.insertBefore(d,a.firstChild);var A=this.resolvePseudoContent(e,a,l,nf.AFTER);return A&&a.appendChild(A),this.counters.pop(c),(i&&(this.options.copyStyles||s0(e))&&!c7(e)||r)&&b1(i,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(gy(e)||xy(e))&&(gy(a)||xy(a))&&(a.value=e.value),a}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,a){var i=this;if(n){var o=n.content,l=r.ownerDocument;if(!(!l||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Sk(this.context,n));var c=new Oce(this.context,n),d=l.createElement("html2canvaspseudoelement");b1(n,d),c.content.forEach(function(u){if(u.type===0)d.appendChild(l.createTextNode(u.value));else if(u.type===22){var h=l.createElement("img");h.src=u.value,h.style.opacity="1",d.appendChild(h)}else if(u.type===18){if(u.name==="attr"){var m=u.values.filter(Zt);m.length&&d.appendChild(l.createTextNode(e.getAttribute(m[0].value)||""))}else if(u.name==="counter"){var g=u.values.filter(rh),p=g[0],w=g[1];if(p&&Zt(p)){var y=i.counters.getCounterValue(p.value),v=w&&Zt(w)?$j.parse(i.context,w.value):3;d.appendChild(l.createTextNode(Hf(y,v,!1)))}}else if(u.name==="counters"){var j=u.values.filter(rh),p=j[0],S=j[1],w=j[2];if(p&&Zt(p)){var F=i.counters.getCounterValues(p.value),U=w&&Zt(w)?$j.parse(i.context,w.value):3,M=S&&S.type===0?S.value:"",P=F.map(function(B){return Hf(B,U,!1)}).join(M);d.appendChild(l.createTextNode(P))}}}else if(u.type===20)switch(u.value){case"open-quote":d.appendChild(l.createTextNode(Bk(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":d.appendChild(l.createTextNode(Bk(c.quotes,--i.quoteDepth,!1)));break;default:d.appendChild(l.createTextNode(u.value))}}),d.className=Zj+" "+e5;var A=a===nf.BEFORE?" "+Zj:" "+e5;return s0(r)?r.className.baseValue+=A:r.className+=A,d}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),nf;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(nf||(nf={}));var qde=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(u7,"true"),t.body.appendChild(r),r},Yde=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},Jde=function(t){return Promise.all([].slice.call(t.images,0).map(Yde))},Xde=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var a=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},Zde=["all","d","content"],b1=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);Zde.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},eAe=function(t){var e="";return t&&(e+=""),e},tAe=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},rAe=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},nAe=":before",sAe=":after",Zj="___html2canvas___pseudoelement_before",e5="___html2canvas___pseudoelement_after",Jk=`{ content: "" !important; display: none !important; }`,aAe=function(t){iAe(t,"."+Zj+nAe+Jk+` .`+e5+sAe+Jk)},iAe=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},h7=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),oAe=function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(j1(e)||AAe(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return ts(this,void 0,void 0,function(){var r,n,a,i,o=this;return Qn(this,function(l){switch(l.label){case 0:return r=h7.isSameOrigin(e),n=!w1(e)&&this._options.useCORS===!0&&Nn.SUPPORT_CORS_IMAGES&&!r,a=!w1(e)&&!r&&!j1(e)&&typeof this._options.proxy=="string"&&Nn.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!w1(e)&&!j1(e)&&!a&&!n?[2]:(i=e,a?[4,this.proxy(i)]:[3,2]);case 1:i=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,d){var A=new Image;A.onload=function(){return c(A)},A.onerror=d,(uAe(i)||n)&&(A.crossOrigin="anonymous"),A.src=i,A.complete===!0&&setTimeout(function(){return c(A)},500),o._options.imageTimeout>0&&setTimeout(function(){return d("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(i,o){var l=Nn.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(l==="text")i(c.response);else{var u=new FileReader;u.addEventListener("load",function(){return i(u.result)},!1),u.addEventListener("error",function(h){return o(h)},!1),u.readAsDataURL(c.response)}else o("Failed to proxy resource "+a+" with status code "+c.status)},c.onerror=o;var d=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+d+"url="+encodeURIComponent(e)+"&responseType="+l),l!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=l),r._options.imageTimeout){var A=r._options.imageTimeout;c.timeout=A,c.ontimeout=function(){return o("Timed out ("+A+"ms) proxying "+a)}}c.send()})},t}(),lAe=/^data:image\/svg\+xml/i,cAe=/^data:image\/.*;base64,/i,dAe=/^data:image\/.*/i,AAe=function(t){return Nn.SUPPORT_SVG_DRAWING||!hAe(t)},w1=function(t){return dAe.test(t)},uAe=function(t){return cAe.test(t)},j1=function(t){return t.substr(0,4)==="blob"},hAe=function(t){return t.substr(-3).toLowerCase()==="svg"||lAe.test(t)},$e=function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),IA=function(t,e,r){return new $e(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},jx=function(){function t(e,r,n,a){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=a}return t.prototype.subdivide=function(e,r){var n=IA(this.start,this.startControl,e),a=IA(this.startControl,this.endControl,e),i=IA(this.endControl,this.end,e),o=IA(n,a,e),l=IA(a,i,e),c=IA(o,l,e);return r?new t(this.start,n,o,c):new t(c,l,i,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),pa=function(t){return t.type===1},mAe=function(){function t(e){var r=e.styles,n=e.bounds,a=km(r.borderTopLeftRadius,n.width,n.height),i=a[0],o=a[1],l=km(r.borderTopRightRadius,n.width,n.height),c=l[0],d=l[1],A=km(r.borderBottomRightRadius,n.width,n.height),u=A[0],h=A[1],m=km(r.borderBottomLeftRadius,n.width,n.height),g=m[0],p=m[1],w=[];w.push((i+c)/n.width),w.push((g+u)/n.width),w.push((o+p)/n.height),w.push((d+h)/n.height);var y=Math.max.apply(Math,w);y>1&&(i/=y,o/=y,c/=y,d/=y,u/=y,h/=y,g/=y,p/=y);var v=n.width-c,j=n.height-h,S=n.width-u,F=n.height-p,U=r.borderTopWidth,M=r.borderRightWidth,P=r.borderBottomWidth,W=r.borderLeftWidth,$=cr(r.paddingTop,e.bounds.width),B=cr(r.paddingRight,e.bounds.width),k=cr(r.paddingBottom,e.bounds.width),_=cr(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?pr(n.left+W/3,n.top+U/3,i-W/3,o-U/3,$t.TOP_LEFT):new $e(n.left+W/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||o>0?pr(n.left+v,n.top+U/3,c-M/3,d-U/3,$t.TOP_RIGHT):new $e(n.left+n.width-M/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?pr(n.left+S,n.top+j,u-M/3,h-P/3,$t.BOTTOM_RIGHT):new $e(n.left+n.width-M/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=g>0||p>0?pr(n.left+W/3,n.top+F,g-W/3,p-P/3,$t.BOTTOM_LEFT):new $e(n.left+W/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?pr(n.left+W*2/3,n.top+U*2/3,i-W*2/3,o-U*2/3,$t.TOP_LEFT):new $e(n.left+W*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?pr(n.left+v,n.top+U*2/3,c-M*2/3,d-U*2/3,$t.TOP_RIGHT):new $e(n.left+n.width-M*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?pr(n.left+S,n.top+j,u-M*2/3,h-P*2/3,$t.BOTTOM_RIGHT):new $e(n.left+n.width-M*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||p>0?pr(n.left+W*2/3,n.top+F,g-W*2/3,p-P*2/3,$t.BOTTOM_LEFT):new $e(n.left+W*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||o>0?pr(n.left+W/2,n.top+U/2,i-W/2,o-U/2,$t.TOP_LEFT):new $e(n.left+W/2,n.top+U/2),this.topRightBorderStroke=i>0||o>0?pr(n.left+v,n.top+U/2,c-M/2,d-U/2,$t.TOP_RIGHT):new $e(n.left+n.width-M/2,n.top+U/2),this.bottomRightBorderStroke=u>0||h>0?pr(n.left+S,n.top+j,u-M/2,h-P/2,$t.BOTTOM_RIGHT):new $e(n.left+n.width-M/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=g>0||p>0?pr(n.left+W/2,n.top+F,g-W/2,p-P/2,$t.BOTTOM_LEFT):new $e(n.left+W/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||o>0?pr(n.left,n.top,i,o,$t.TOP_LEFT):new $e(n.left,n.top),this.topRightBorderBox=c>0||d>0?pr(n.left+v,n.top,c,d,$t.TOP_RIGHT):new $e(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?pr(n.left+S,n.top+j,u,h,$t.BOTTOM_RIGHT):new $e(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=g>0||p>0?pr(n.left,n.top+F,g,p,$t.BOTTOM_LEFT):new $e(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?pr(n.left+W,n.top+U,Math.max(0,i-W),Math.max(0,o-U),$t.TOP_LEFT):new $e(n.left+W,n.top+U),this.topRightPaddingBox=c>0||d>0?pr(n.left+Math.min(v,n.width-M),n.top+U,v>n.width+M?0:Math.max(0,c-M),Math.max(0,d-U),$t.TOP_RIGHT):new $e(n.left+n.width-M,n.top+U),this.bottomRightPaddingBox=u>0||h>0?pr(n.left+Math.min(S,n.width-W),n.top+Math.min(j,n.height-P),Math.max(0,u-M),Math.max(0,h-P),$t.BOTTOM_RIGHT):new $e(n.left+n.width-M,n.top+n.height-P),this.bottomLeftPaddingBox=g>0||p>0?pr(n.left+W,n.top+Math.min(F,n.height-P),Math.max(0,g-W),Math.max(0,p-P),$t.BOTTOM_LEFT):new $e(n.left+W,n.top+n.height-P),this.topLeftContentBox=i>0||o>0?pr(n.left+W+_,n.top+U+$,Math.max(0,i-(W+_)),Math.max(0,o-(U+$)),$t.TOP_LEFT):new $e(n.left+W+_,n.top+U+$),this.topRightContentBox=c>0||d>0?pr(n.left+Math.min(v,n.width+W+_),n.top+U+$,v>n.width+W+_?0:c-W+_,d-(U+$),$t.TOP_RIGHT):new $e(n.left+n.width-(M+B),n.top+U+$),this.bottomRightContentBox=u>0||h>0?pr(n.left+Math.min(S,n.width-(W+_)),n.top+Math.min(j,n.height+U+$),Math.max(0,u-(M+B)),h-(P+k),$t.BOTTOM_RIGHT):new $e(n.left+n.width-(M+B),n.top+n.height-(P+k)),this.bottomLeftContentBox=g>0||p>0?pr(n.left+W+_,n.top+F,Math.max(0,g-(W+_)),p-(P+k),$t.BOTTOM_LEFT):new $e(n.left+W+_,n.top+n.height-(P+k))}return t}(),$t;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})($t||($t={}));var pr=function(t,e,r,n,a){var i=4*((Math.sqrt(2)-1)/3),o=r*i,l=n*i,c=t+r,d=e+n;switch(a){case $t.TOP_LEFT:return new jx(new $e(t,d),new $e(t,d-l),new $e(c-o,e),new $e(c,e));case $t.TOP_RIGHT:return new jx(new $e(t,e),new $e(t+o,e),new $e(c,d-l),new $e(c,d));case $t.BOTTOM_RIGHT:return new jx(new $e(c,e),new $e(c,e+l),new $e(t+o,d),new $e(t,d));case $t.BOTTOM_LEFT:default:return new jx(new $e(c,d),new $e(c-o,d),new $e(t,e+l),new $e(t,e))}},yy=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},fAe=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},vy=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},pAe=function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t}(),Nx=function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t}(),gAe=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),xAe=function(t){return t.type===0},m7=function(t){return t.type===1},yAe=function(t){return t.type===2},Xk=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},vAe=function(t,e,r,n,a){return t.map(function(i,o){switch(o){case 0:return i.add(e,r);case 1:return i.add(e+n,r);case 2:return i.add(e+n,r+a);case 3:return i.add(e,r+a)}return i})},f7=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),p7=function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new mAe(this.container),this.container.styles.opacity<1&&this.effects.push(new gAe(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new pAe(n,a,i))}if(this.container.styles.overflowX!==0){var o=yy(this.curves),l=vy(this.curves);Xk(o,l)?this.effects.push(new Nx(o,6)):(this.effects.push(new Nx(o,2)),this.effects.push(new Nx(l,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!m7(c)});if(r||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=yy(n.curves),l=vy(n.curves);Xk(o,l)||a.unshift(new Nx(l,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(c){return an(c.target,e)})},t}(),t5=function(t,e,r,n){t.container.elements.forEach(function(a){var i=an(a.flags,4),o=an(a.flags,2),l=new p7(a,t);an(a.styles.display,2048)&&n.push(l);var c=an(a.flags,8)?[]:n;if(i||o){var d=i||a.styles.isPositioned()?r:e,A=new f7(l);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var u=a.styles.zIndex.order;if(u<0){var h=0;d.negativeZIndex.some(function(g,p){return u>g.element.container.styles.zIndex.order?(h=p,!1):h>0}),d.negativeZIndex.splice(h,0,A)}else if(u>0){var m=0;d.positiveZIndex.some(function(g,p){return u>=g.element.container.styles.zIndex.order?(m=p+1,!1):m>0}),d.positiveZIndex.splice(m,0,A)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else a.styles.isFloating()?d.nonPositionedFloats.push(A):d.nonPositionedInlineLevel.push(A);t5(l,A,i?A:r,c)}else a.styles.isInlineLevel()?e.inlineLevel.push(l):e.nonInlineLevel.push(l),t5(l,e,r,c);an(a.flags,8)&&g7(a,c)})},g7=function(t,e){for(var r=t instanceof Yj?t.start:1,n=t instanceof Yj?t.reversed:!1,a=0;a"u"?t[0]:r},kAe=function(t,e,r,n,a){var i=e[0],o=e[1],l=r[0],c=r[1];switch(t){case 2:return[new $e(Math.round(n.left),Math.round(n.top+o)),new $e(Math.round(n.left+n.width),Math.round(n.top+o)),new $e(Math.round(n.left+n.width),Math.round(c+n.top+o)),new $e(Math.round(n.left),Math.round(c+n.top+o))];case 3:return[new $e(Math.round(n.left+i),Math.round(n.top)),new $e(Math.round(n.left+i+l),Math.round(n.top)),new $e(Math.round(n.left+i+l),Math.round(n.height+n.top)),new $e(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new $e(Math.round(n.left+i),Math.round(n.top+o)),new $e(Math.round(n.left+i+l),Math.round(n.top+o)),new $e(Math.round(n.left+i+l),Math.round(n.top+o+c)),new $e(Math.round(n.left+i),Math.round(n.top+o+c))];default:return[new $e(Math.round(a.left),Math.round(a.top)),new $e(Math.round(a.left+a.width),Math.round(a.top)),new $e(Math.round(a.left+a.width),Math.round(a.height+a.top)),new $e(Math.round(a.left),Math.round(a.height+a.top))]}},EAe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eE="Hidden Text",FAe=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),a.src=EAe,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(eE)),n.appendChild(i),n.appendChild(a);var l=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(eE)),n.style.lineHeight="normal",a.style.verticalAlign="super";var c=a.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:l,middle:c}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t}(),y7=function(){function t(e,r){this.context=e,this.options=r}return t}(),IAe=1e4,PAe=function(t){ri(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new FAe(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(a){return n.applyEffect(a)})},e.prototype.applyEffect=function(r){this.ctx.save(),yAe(r)&&(this.ctx.globalAlpha=r.opacity),xAe(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),m7(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return ts(this,void 0,void 0,function(){var n;return Qn(this,function(a){switch(a.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return ts(this,void 0,void 0,function(){return Qn(this,function(n){switch(n.label){case 0:if(an(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,a){var i=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+a);else{var o=YN(r.text);o.reduce(function(l,c){return i.ctx.fillText(c,l,r.bounds.top+a),l+i.ctx.measureText(c).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=MAe(r.fontFamily).join(", "),i=Bp(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,i,a].join(" "),a,i]},e.prototype.renderTextNode=function(r,n){return ts(this,void 0,void 0,function(){var a,i,o,l,c,d,A,u,h=this;return Qn(this,function(m){return a=this.createFontStyle(n),i=a[0],o=a[1],l=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(o,l),d=c.baseline,A=c.middle,u=n.paintOrder,r.textBounds.forEach(function(g){u.forEach(function(p){switch(p){case 0:h.ctx.fillStyle=An(n.color),h.renderTextWithLetterSpacing(g,n.letterSpacing,d);var w=n.textShadow;w.length&&g.text.trim().length&&(w.slice(0).reverse().forEach(function(y){h.ctx.shadowColor=An(y.color),h.ctx.shadowOffsetX=y.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=y.offsetY.number*h.options.scale,h.ctx.shadowBlur=y.blur.number,h.renderTextWithLetterSpacing(g,n.letterSpacing,d)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=An(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(y){switch(y){case 1:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+d),g.bounds.width,1);break;case 2:h.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:h.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+A),g.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&g.text.trim().length&&(h.ctx.strokeStyle=An(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+d)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,a){if(a&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var i=by(r),o=vy(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,r.intrinsicWidth,r.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return ts(this,void 0,void 0,function(){var n,a,i,o,l,c,v,v,d,A,u,h,S,m,g,F,p,w,y,v,j,S,F;return Qn(this,function(U){switch(U.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,a=r.curves,i=n.styles,o=0,l=n.textNodes,U.label=1;case 1:return o0&&T>0&&(P=i.ctx.createPattern(F,"repeat"),i.renderRepeat($,P,V,J))):yle(A)&&(W=N1(r,n,[null,null,null]),$=W[0],B=W[1],k=W[2],_=W[3],T=W[4],oe=A.position.length===0?[$N]:A.position,V=cr(oe[0],_),J=cr(oe[oe.length-1],T),Q=mle(A,V,J,_,T),q=Q[0],ie=Q[1],q>0&&ie>0&&(te=i.ctx.createRadialGradient(B+V,k+J,0,B+V,k+J,q),wk(A.stops,q*2).forEach(function(Y){return te.addColorStop(Y.stop,An(Y.color))}),i.path($),i.ctx.fillStyle=te,q!==ie?(I=r.bounds.left+.5*r.bounds.width,L=r.bounds.top+.5*r.bounds.height,K=ie/q,Z=1/K,i.ctx.save(),i.ctx.translate(I,L),i.ctx.transform(1,0,0,K,0,0),i.ctx.translate(-I,-L),i.ctx.fillRect(B,Z*(k-L)+L,_,T*Z),i.ctx.restore()):i.ctx.fill())),ne.label=6;case 6:return n--,[2]}})},i=this,o=0,l=r.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return o0?A.style!==2?[3,5]:[4,this.renderDashedDottedBorder(A.color,A.width,l,r.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return A.style!==3?[3,7]:[4,this.renderDashedDottedBorder(A.color,A.width,l,r.curves,3)];case 6:return h.sent(),[3,11];case 7:return A.style!==4?[3,9]:[4,this.renderDoubleBorder(A.color,A.width,l,r.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(A.color,l,r.curves)];case 10:h.sent(),h.label=11;case 11:l++,h.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,a,i,o){return ts(this,void 0,void 0,function(){var l,c,d,A,u,h,m,g,p,w,y,v,j,S,F,U,F,U;return Qn(this,function(M){return this.ctx.save(),l=NAe(i,a),c=Zk(i,a),o===2&&(this.path(c),this.ctx.clip()),pa(c[0])?(d=c[0].start.x,A=c[0].start.y):(d=c[0].x,A=c[0].y),pa(c[1])?(u=c[1].end.x,h=c[1].end.y):(u=c[1].x,h=c[1].y),a===0||a===2?m=Math.abs(d-u):m=Math.abs(A-h),this.ctx.beginPath(),o===3?this.formatPath(l):this.formatPath(c.slice(0,2)),g=n<3?n*3:n*2,p=n<3?n*2:n,o===3&&(g=n,p=n),w=!0,m<=g*2?w=!1:m<=g*2+p?(y=m/(2*g+p),g*=y,p*=y):(v=Math.floor((m+p)/(g+p)),j=(m-v*g)/(v-1),S=(m-(v+1)*g)/v,p=S<=0||Math.abs(p-j)>1|(hr&21845)<<1;Xo=(Xo&52428)>>2|(Xo&13107)<<2,Xo=(Xo&61680)>>4|(Xo&3855)<<4,s5[hr]=((Xo&65280)>>8|(Xo&255)<<8)>>1}var Ii=function(t,e,r){for(var n=t.length,a=0,i=new Vs(e);a>c]=d}else for(l=new Vs(n),a=0;a>15-t[a]);return l},ic=new Kn(288);for(var hr=0;hr<144;++hr)ic[hr]=8;for(var hr=144;hr<256;++hr)ic[hr]=9;for(var hr=256;hr<280;++hr)ic[hr]=7;for(var hr=280;hr<288;++hr)ic[hr]=8;var Kf=new Kn(32);for(var hr=0;hr<32;++hr)Kf[hr]=5;var WAe=Ii(ic,9,0),$Ae=Ii(ic,9,1),GAe=Ii(Kf,5,0),qAe=Ii(Kf,5,1),C1=function(t){for(var e=t[0],r=1;re&&(e=t[r]);return e},_a=function(t,e,r){var n=e/8|0;return(t[n]|t[n+1]<<8)>>(e&7)&r},B1=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},eC=function(t){return(t+7)/8|0},C7=function(t,e,r){return(r==null||r>t.length)&&(r=t.length),new Kn(t.subarray(e,r))},YAe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Va=function(t,e,r){var n=new Error(e||YAe[t]);if(n.code=t,Error.captureStackTrace&&Error.captureStackTrace(n,Va),!r)throw n;return n},JAe=function(t,e,r,n){var a=t.length,i=0;if(!a||e.f&&!e.l)return r||new Kn(0);var o=!r,l=o||e.i!=2,c=e.i;o&&(r=new Kn(a*3));var d=function(be){var Se=r.length;if(be>Se){var Pe=new Kn(Math.max(Se*2,be));Pe.set(r),r=Pe}},A=e.f||0,u=e.p||0,h=e.b||0,m=e.l,g=e.d,p=e.m,w=e.n,y=a*8;do{if(!m){A=_a(t,u,1);var v=_a(t,u+1,3);if(u+=3,v)if(v==1)m=$Ae,g=qAe,p=9,w=5;else if(v==2){var U=_a(t,u,31)+257,M=_a(t,u+10,15)+4,P=U+_a(t,u+5,31)+1;u+=14;for(var W=new Kn(P),$=new Kn(19),B=0;B>4;if(j<16)W[B++]=j;else{var V=0,J=0;for(j==16?(J=3+_a(t,u,3),u+=2,V=W[B-1]):j==17?(J=3+_a(t,u,7),u+=3):j==18&&(J=11+_a(t,u,127),u+=7);J--;)W[B++]=V}}var Q=W.subarray(0,U),q=W.subarray(U);p=C1(Q),w=C1(q),m=Ii(Q,p,1),g=Ii(q,w,1)}else Va(1);else{var j=eC(u)+4,S=t[j-4]|t[j-3]<<8,F=j+S;if(F>a){c&&Va(0);break}l&&d(h+S),r.set(t.subarray(j,F),h),e.b=h+=S,e.p=u=F*8,e.f=A;continue}if(u>y){c&&Va(0);break}}l&&d(h+131072);for(var ie=(1<>4;if(u+=V&15,u>y){c&&Va(0);break}if(V||Va(2),L<256)r[h++]=L;else if(L==256){I=u,m=null;break}else{var K=L-254;if(L>264){var B=L-257,Z=Vv[B];K=_a(t,u,(1<>4;ne||Va(3),u+=ne&15;var q=zAe[Y];if(Y>3){var Z=zv[Y];q+=B1(t,u)&(1<y){c&&Va(0);break}l&&d(h+131072);var se=h+K;if(h>8},fm=function(t,e,r){r<<=e&7;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8,t[n+2]|=r>>16},S1=function(t,e){for(var r=[],n=0;nh&&(h=i[n].s);var m=new Vs(h+1),g=a5(r[A-1],m,0);if(g>e){var n=0,p=0,w=g-e,y=1<e)p+=y-(1<>=w;p>0;){var j=i[n].s;m[j]=0&&p;--n){var S=i[n].s;m[S]==e&&(--m[S],++p)}g=e}return{t:new Kn(m),l:g}},a5=function(t,e,r){return t.s==-1?Math.max(a5(t.l,e,r+1),a5(t.r,e,r+1)):e[t.s]=r},rE=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Vs(++e),n=0,a=t[0],i=1,o=function(c){r[n++]=c},l=1;l<=e;++l)if(t[l]==a&&l!=e)++i;else{if(!a&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(a),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(a);i=1,a=t[l]}return{c:r.subarray(0,n),n:e}},pm=function(t,e){for(var r=0,n=0;n>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var i=0;i4&&!$[r5[k-1]];--k);var _=d+5<<3,T=pm(a,ic)+pm(i,Kf)+o,oe=pm(a,h)+pm(i,p)+o+14+3*k+pm(M,$)+2*M[16]+3*M[17]+7*M[18];if(c>=0&&_<=T&&_<=oe)return B7(e,A,t.subarray(c,c+d));var V,J,Q,q;if(to(e,A,1+(oe15&&(to(e,A,L[P]>>5&127),A+=L[P]>>12)}}else V=WAe,J=ic,Q=GAe,q=Kf;for(var P=0;P255){var K=Z>>18&31;fm(e,A,V[K+257]),A+=J[K+257],K>7&&(to(e,A,Z>>23&31),A+=Vv[K]);var ne=Z&31;fm(e,A,Q[ne]),A+=q[ne],ne>3&&(fm(e,A,Z>>5&8191),A+=zv[ne])}else fm(e,A,V[Z]),A+=J[Z]}return fm(e,A,V[256]),A+J[256]},XAe=new ZN([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),S7=new Kn(0),ZAe=function(t,e,r,n,a,i){var o=i.z||t.length,l=new Kn(n+o+5*(1+Math.ceil(o/7e3))+a),c=l.subarray(n,l.length-a),d=i.l,A=(i.r||0)&7;if(e){A&&(c[0]=i.r>>3);for(var u=XAe[e-1],h=u>>13,m=u&8191,g=(1<7e3||$>24576)&&(V>423||!d)){A=nE(t,c,0,S,F,U,P,$,k,W-k,A),$=M=P=0,k=W;for(var J=0;J<286;++J)F[J]=0;for(var J=0;J<30;++J)U[J]=0}var Q=2,q=0,ie=m,te=T-oe&32767;if(V>2&&_==j(W-te))for(var I=Math.min(h,V)-1,L=Math.min(32767,W),K=Math.min(258,V);te<=L&&--ie&&T!=oe;){if(t[W+Q]==t[W+Q-te]){for(var Z=0;ZQ){if(Q=Z,q=te,Z>I)break;for(var ne=Math.min(te,Z-2),Y=0,J=0;JY&&(Y=ve,oe=se)}}}T=oe,oe=p[T],te+=T-oe&32767}if(q){S[$++]=268435456|n5[Q]<<18|tE[q];var be=n5[Q]&31,Se=tE[q]&31;P+=Vv[be]+zv[Se],++F[257+be],++U[Se],B=W+Q,++M}else S[$++]=t[W],++F[t[W]]}}for(W=Math.max(W,B);W=o&&(c[A/8|0]=d,Pe=o),A=B7(c,A+1,t.subarray(W,Pe))}i.i=o}return C7(l,0,n+eC(A)+a)},k7=function(){var t=1,e=0;return{p:function(r){for(var n=t,a=e,i=r.length|0,o=0;o!=i;){for(var l=Math.min(o+2655,i);o>16),a=(a&65535)+15*(a>>16)}t=n,e=a},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},eue=function(t,e,r,n,a){if(!a&&(a={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),o=new Kn(i.length+t.length);o.set(i),o.set(t,i.length),t=o,a.w=i.length}return ZAe(t,e.level==null?6:e.level,e.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,r,n,a)},E7=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},tue=function(t,e){var r=e.level,n=r==0?0:r<6?1:r==9?3:2;if(t[0]=120,t[1]=n<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var a=k7();a.p(e.dictionary),E7(t,2,a.d())}},rue=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Va(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Va(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function i5(t,e){e||(e={});var r=k7();r.p(t);var n=eue(t,e,e.dictionary?6:2,4);return tue(n,e),E7(n,n.length-4,r.d()),n}function nue(t,e){return JAe(t.subarray(rue(t,e),-4),{i:2},e,e)}var sue=typeof TextDecoder<"u"&&new TextDecoder,aue=0;try{sue.decode(S7,{stream:!0}),aue=1}catch{}var dt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function k1(){dt.console&&typeof dt.console.log=="function"&&dt.console.log.apply(dt.console,arguments)}var sr={log:k1,warn:function(t){dt.console&&(typeof dt.console.warn=="function"?dt.console.warn.apply(dt.console,arguments):k1.call(null,arguments))},error:function(t){dt.console&&(typeof dt.console.error=="function"?dt.console.error.apply(dt.console,arguments):k1(t))}};function E1(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){_c(n.response,e,r)},n.onerror=function(){sr.error("could not download file")},n.send()}function sE(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Sx(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var sf,o5,_c=dt.saveAs||((typeof window>"u"?"undefined":Yt(window))!=="object"||window!==dt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=dt.URL||dt.webkitURL,a=document.createElement("a");e=e||t.name||"download",a.download=e,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?sE(a.href)?E1(t,e,r):Sx(a,a.target="_blank"):Sx(a)):(a.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){Sx(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download",typeof t=="string")if(sE(t))E1(t,e,r);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){Sx(n)})}else navigator.msSaveOrOpenBlob(function(a,i){return i===void 0?i={autoBom:!1}:Yt(i)!=="object"&&(sr.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}(t,r),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return E1(t,e,r);var a=t.type==="application/octet-stream",i=/constructor/i.test(dt.HTMLElement)||dt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i)&&(typeof FileReader>"u"?"undefined":Yt(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var A=l.result;A=o?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=A:location=A,n=null},l.readAsDataURL(t)}else{var c=dt.URL||dt.webkitURL,d=c.createObjectURL(t);n?n.location=d:location.href=d,n=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function F7(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function F1(t,e){var r=t[0],n=t[1],a=t[2],i=t[3];r=Tn(r,n,a,i,e[0],7,-680876936),i=Tn(i,r,n,a,e[1],12,-389564586),a=Tn(a,i,r,n,e[2],17,606105819),n=Tn(n,a,i,r,e[3],22,-1044525330),r=Tn(r,n,a,i,e[4],7,-176418897),i=Tn(i,r,n,a,e[5],12,1200080426),a=Tn(a,i,r,n,e[6],17,-1473231341),n=Tn(n,a,i,r,e[7],22,-45705983),r=Tn(r,n,a,i,e[8],7,1770035416),i=Tn(i,r,n,a,e[9],12,-1958414417),a=Tn(a,i,r,n,e[10],17,-42063),n=Tn(n,a,i,r,e[11],22,-1990404162),r=Tn(r,n,a,i,e[12],7,1804603682),i=Tn(i,r,n,a,e[13],12,-40341101),a=Tn(a,i,r,n,e[14],17,-1502002290),r=Ln(r,n=Tn(n,a,i,r,e[15],22,1236535329),a,i,e[1],5,-165796510),i=Ln(i,r,n,a,e[6],9,-1069501632),a=Ln(a,i,r,n,e[11],14,643717713),n=Ln(n,a,i,r,e[0],20,-373897302),r=Ln(r,n,a,i,e[5],5,-701558691),i=Ln(i,r,n,a,e[10],9,38016083),a=Ln(a,i,r,n,e[15],14,-660478335),n=Ln(n,a,i,r,e[4],20,-405537848),r=Ln(r,n,a,i,e[9],5,568446438),i=Ln(i,r,n,a,e[14],9,-1019803690),a=Ln(a,i,r,n,e[3],14,-187363961),n=Ln(n,a,i,r,e[8],20,1163531501),r=Ln(r,n,a,i,e[13],5,-1444681467),i=Ln(i,r,n,a,e[2],9,-51403784),a=Ln(a,i,r,n,e[7],14,1735328473),r=Un(r,n=Ln(n,a,i,r,e[12],20,-1926607734),a,i,e[5],4,-378558),i=Un(i,r,n,a,e[8],11,-2022574463),a=Un(a,i,r,n,e[11],16,1839030562),n=Un(n,a,i,r,e[14],23,-35309556),r=Un(r,n,a,i,e[1],4,-1530992060),i=Un(i,r,n,a,e[4],11,1272893353),a=Un(a,i,r,n,e[7],16,-155497632),n=Un(n,a,i,r,e[10],23,-1094730640),r=Un(r,n,a,i,e[13],4,681279174),i=Un(i,r,n,a,e[0],11,-358537222),a=Un(a,i,r,n,e[3],16,-722521979),n=Un(n,a,i,r,e[6],23,76029189),r=Un(r,n,a,i,e[9],4,-640364487),i=Un(i,r,n,a,e[12],11,-421815835),a=Un(a,i,r,n,e[15],16,530742520),r=_n(r,n=Un(n,a,i,r,e[2],23,-995338651),a,i,e[0],6,-198630844),i=_n(i,r,n,a,e[7],10,1126891415),a=_n(a,i,r,n,e[14],15,-1416354905),n=_n(n,a,i,r,e[5],21,-57434055),r=_n(r,n,a,i,e[12],6,1700485571),i=_n(i,r,n,a,e[3],10,-1894986606),a=_n(a,i,r,n,e[10],15,-1051523),n=_n(n,a,i,r,e[1],21,-2054922799),r=_n(r,n,a,i,e[8],6,1873313359),i=_n(i,r,n,a,e[15],10,-30611744),a=_n(a,i,r,n,e[6],15,-1560198380),n=_n(n,a,i,r,e[13],21,1309151649),r=_n(r,n,a,i,e[4],6,-145523070),i=_n(i,r,n,a,e[11],10,-1120210379),a=_n(a,i,r,n,e[2],15,718787259),n=_n(n,a,i,r,e[9],21,-343485551),t[0]=Tl(r,t[0]),t[1]=Tl(n,t[1]),t[2]=Tl(a,t[2]),t[3]=Tl(i,t[3])}function Wv(t,e,r,n,a,i){return e=Tl(Tl(e,t),Tl(n,i)),Tl(e<>>32-a,r)}function Tn(t,e,r,n,a,i,o){return Wv(e&r|~e&n,t,e,a,i,o)}function Ln(t,e,r,n,a,i,o){return Wv(e&n|r&~n,t,e,a,i,o)}function Un(t,e,r,n,a,i,o){return Wv(e^r^n,t,e,a,i,o)}function _n(t,e,r,n,a,i,o){return Wv(r^(e|~n),t,e,a,i,o)}function I7(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)F1(n,iue(t.substring(e-64,e)));t=t.substring(e-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(a[e>>2]|=128<<(e%4<<3),e>55)for(F1(n,a),e=0;e<16;e++)a[e]=0;return a[14]=8*r,F1(n,a),n}function iue(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}sf=dt.atob.bind(dt),o5=dt.btoa.bind(dt);var aE="0123456789abcdef".split("");function oue(t){for(var e="",r=0;r<4;r++)e+=aE[t>>8*r+4&15]+aE[t>>8*r&15];return e}function lue(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function l5(t){return I7(t).map(lue).join("")}var cue=function(t){for(var e=0;e>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function c5(t,e){var r,n,a,i;if(t!==r){for(var o=(a=t,i=1+(256/t.length>>0),new Array(i+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var A=l[c];d=(d+A+o.charCodeAt(c))%256,l[c]=l[d],l[d]=A}r=t,n=l}else l=n;var u=e.length,h=0,m=0,g="";for(c=0;c€/\f©þdSiz";var i=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=l5(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=c5(this.encryptionKey,this.padding)}function RA(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n126?e+="#"+("0"+a.toString(16)).slice(-2):e+=t[n]}return e}function oE(t){if(Yt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,n,a){if(a=a||!1,typeof r!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var i=Math.random().toString(35);return e[r][i]=[n,!!a],i},this.unsubscribe=function(r){for(var n in e)if(e[n][r])return delete e[n][r],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in e[r]){var o=e[r][i];try{o[0].apply(t,n)}catch(l){dt.console&&sr.error("jsPDF PubSub Error",l.message,l)}o[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function wy(t){if(!(this instanceof wy))return new wy(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function P7(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Dc(t,e,r,n,a){if(!(this instanceof Dc))return new Dc(t,e,r,n,a);this.type=t==="axial"?2:3,this.coords=e,this.colors=r,P7.call(this,n,a)}function iu(t,e,r,n,a){if(!(this instanceof iu))return new iu(t,e,r,n,a);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,P7.call(this,n,a)}function ct(t){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],i=arguments[3],o=[],l=1,c=16,d="S",A=null;Yt(t=t||{})==="object"&&(r=t.orientation,n=t.unit||n,a=t.format||a,i=t.compress||t.compressPdf||i,(A=t.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),d=t.defaultPathOperation||"S"),o=t.filters||(i===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var u=t.putOnlyUsedFonts||!1,h={},m={internal:{},__private__:{}};m.__private__.PubSub=oE;var g="1.3",p=m.__private__.getPdfVersion=function(){return g};m.__private__.setPdfVersion=function(N){g=N};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};m.__private__.getPageFormats=function(){return w};var y=m.__private__.getPageFormat=function(N){return w[N]};a=a||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},j=v.COMPAT;function S(){this.saveGraphicsState(),re(new ot(ze,0,0,-ze,0,Mo()*ze).toString()+" cm"),this.setFontSize(this.getFontSize()/ze),d="n",j=v.ADVANCED}function F(){this.restoreGraphicsState(),d="S",j=v.COMPAT}var U=m.__private__.combineFontStyleAndFontWeight=function(N,R){if(N=="bold"&&R=="normal"||N=="bold"&&R==400||N=="normal"&&R=="italic"||N=="bold"&&R=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return R&&(N=R==400||R==="normal"?N==="italic"?"italic":"normal":R!=700&&R!=="bold"||N!=="normal"?(R==700?"bold":R)+""+N:"bold"),N};m.advancedAPI=function(N){var R=j===v.COMPAT;return R&&S.call(this),typeof N!="function"||(N(this),R&&F.call(this)),this},m.compatAPI=function(N){var R=j===v.ADVANCED;return R&&F.call(this),typeof N!="function"||(N(this),R&&S.call(this)),this},m.isAdvancedAPI=function(){return j===v.ADVANCED};var M,P=function(N){if(j!==v.ADVANCED)throw new Error(N+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},W=m.roundToPrecision=m.__private__.roundToPrecision=function(N,R){var ae=e||R;if(isNaN(N)||isNaN(ae))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return N.toFixed(ae).replace(/0+$/,"")};M=m.hpf=m.__private__.hpf=typeof c=="number"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,c)}:c==="smart"?function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,N>-1&&N<1?16:5)}:function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.hpf");return W(N,16)};var $=m.f2=m.__private__.f2=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f2");return W(N,2)},B=m.__private__.f3=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.f3");return W(N,3)},k=m.scale=m.__private__.scale=function(N){if(isNaN(N))throw new Error("Invalid argument passed to jsPDF.scale");return j===v.COMPAT?N*ze:j===v.ADVANCED?N:void 0},_=function(N){return j===v.COMPAT?Mo()-N:j===v.ADVANCED?N:void 0},T=function(N){return k(_(N))};m.__private__.setPrecision=m.setPrecision=function(N){typeof parseInt(N,10)=="number"&&(e=parseInt(N,10))};var oe,V="00000000000000000000000000000000",J=m.__private__.getFileId=function(){return V},Q=m.__private__.setFileId=function(N){return V=N!==void 0&&/^[a-fA-F0-9]{32}$/.test(N)?N.toUpperCase():V.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),A!==null&&(kn=new DA(A.userPermissions,A.userPassword,A.ownerPassword,V)),V};m.setFileId=function(N){return Q(N),this},m.getFileId=function(){return J()};var q=m.__private__.convertDateToPDFDate=function(N){var R=N.getTimezoneOffset(),ae=R<0?"+":"-",le=Math.floor(Math.abs(R/60)),fe=Math.abs(R%60),ye=[ae,K(le),"'",K(fe),"'"].join("");return["D:",N.getFullYear(),K(N.getMonth()+1),K(N.getDate()),K(N.getHours()),K(N.getMinutes()),K(N.getSeconds()),ye].join("")},ie=m.__private__.convertPDFDateToDate=function(N){var R=parseInt(N.substr(2,4),10),ae=parseInt(N.substr(6,2),10)-1,le=parseInt(N.substr(8,2),10),fe=parseInt(N.substr(10,2),10),ye=parseInt(N.substr(12,2),10),Fe=parseInt(N.substr(14,2),10);return new Date(R,ae,le,fe,ye,Fe,0)},te=m.__private__.setCreationDate=function(N){var R;if(N===void 0&&(N=new Date),N instanceof Date)R=q(N);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(N))throw new Error("Invalid argument passed to jsPDF.setCreationDate");R=N}return oe=R},I=m.__private__.getCreationDate=function(N){var R=oe;return N==="jsDate"&&(R=ie(oe)),R};m.setCreationDate=function(N){return te(N),this},m.getCreationDate=function(N){return I(N)};var L,K=m.__private__.padd2=function(N){return("0"+parseInt(N)).slice(-2)},Z=m.__private__.padd2Hex=function(N){return("00"+(N=N.toString())).substr(N.length)},ne=0,Y=[],se=[],ce=0,ve=[],be=[],Se=!1,Pe=se,we=function(){ne=0,ce=0,se=[],Y=[],ve=[],Oi=$r(),Sa=$r()};m.__private__.setCustomOutputDestination=function(N){Se=!0,Pe=N};var he=function(N){Se||(Pe=N)};m.__private__.resetCustomOutputDestination=function(){Se=!1,Pe=se};var re=m.__private__.out=function(N){return N=N.toString(),ce+=N.length+1,Pe.push(N),Pe},Ve=m.__private__.write=function(N){return re(arguments.length===1?N.toString():Array.prototype.join.call(arguments," "))},Ge=m.__private__.getArrayBuffer=function(N){for(var R=N.length,ae=new ArrayBuffer(R),le=new Uint8Array(ae);R--;)le[R]=N.charCodeAt(R);return ae},Ce=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];m.__private__.getStandardFonts=function(){return Ce};var Ie=t.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(N){return Ie=j===v.ADVANCED?N/ze:N,this};var Oe,Re=m.__private__.getFontSize=m.getFontSize=function(){return j===v.COMPAT?Ie:Ie*ze},tt=t.R2L||!1;m.__private__.setR2L=m.setR2L=function(N){return tt=N,this},m.__private__.getR2L=m.getR2L=function(){return tt};var ht,pt=m.__private__.setZoomMode=function(N){var R=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(N))Oe=N;else if(isNaN(N)){if(R.indexOf(N)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+N+'" is not recognized.');Oe=N}else Oe=parseInt(N,10)};m.__private__.getZoomMode=function(){return Oe};var wt,Bt=m.__private__.setPageMode=function(N){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(N)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+N+'" is not recognized.');ht=N};m.__private__.getPageMode=function(){return ht};var Ht=m.__private__.setLayoutMode=function(N){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(N)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+N+'" is not recognized.');wt=N};m.__private__.getLayoutMode=function(){return wt},m.__private__.setDisplayMode=m.setDisplayMode=function(N,R,ae){return pt(N),Ht(R),Bt(ae),this};var nt={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(N){if(Object.keys(nt).indexOf(N)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return nt[N]},m.__private__.getDocumentProperties=function(){return nt},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(N){for(var R in nt)nt.hasOwnProperty(R)&&N[R]&&(nt[R]=N[R]);return this},m.__private__.setDocumentProperty=function(N,R){if(Object.keys(nt).indexOf(N)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return nt[N]=R};var St,ze,tn,_t,Es,Kt={},Qt={},ea=[],We={},Dt={},lt={},Br={},Wr=null,tr=0,mt=[],Wt=new oE(m),gc=t.hotfixes||[],yn={},ai={},ii=[],ot=function N(R,ae,le,fe,ye,Fe){if(!(this instanceof N))return new N(R,ae,le,fe,ye,Fe);isNaN(R)&&(R=1),isNaN(ae)&&(ae=0),isNaN(le)&&(le=0),isNaN(fe)&&(fe=1),isNaN(ye)&&(ye=0),isNaN(Fe)&&(Fe=0),this._matrix=[R,ae,le,fe,ye,Fe]};Object.defineProperty(ot.prototype,"sx",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(ot.prototype,"shy",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(ot.prototype,"shx",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(ot.prototype,"sy",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(ot.prototype,"tx",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(ot.prototype,"ty",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(ot.prototype,"a",{get:function(){return this._matrix[0]},set:function(N){this._matrix[0]=N}}),Object.defineProperty(ot.prototype,"b",{get:function(){return this._matrix[1]},set:function(N){this._matrix[1]=N}}),Object.defineProperty(ot.prototype,"c",{get:function(){return this._matrix[2]},set:function(N){this._matrix[2]=N}}),Object.defineProperty(ot.prototype,"d",{get:function(){return this._matrix[3]},set:function(N){this._matrix[3]=N}}),Object.defineProperty(ot.prototype,"e",{get:function(){return this._matrix[4]},set:function(N){this._matrix[4]=N}}),Object.defineProperty(ot.prototype,"f",{get:function(){return this._matrix[5]},set:function(N){this._matrix[5]=N}}),Object.defineProperty(ot.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ot.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ot.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ot.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ot.prototype.join=function(N){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(M).join(N)},ot.prototype.multiply=function(N){var R=N.sx*this.sx+N.shy*this.shx,ae=N.sx*this.shy+N.shy*this.sy,le=N.shx*this.sx+N.sy*this.shx,fe=N.shx*this.shy+N.sy*this.sy,ye=N.tx*this.sx+N.ty*this.shx+this.tx,Fe=N.tx*this.shy+N.ty*this.sy+this.ty;return new ot(R,ae,le,fe,ye,Fe)},ot.prototype.decompose=function(){var N=this.sx,R=this.shy,ae=this.shx,le=this.sy,fe=this.tx,ye=this.ty,Fe=Math.sqrt(N*N+R*R),qe=(N/=Fe)*ae+(R/=Fe)*le;ae-=N*qe,le-=R*qe;var rt=Math.sqrt(ae*ae+le*le);return qe/=rt,N*(le/=rt)>16&255,le=rt>>8&255,fe=255&rt}if(le===void 0||ye===void 0&&ae===le&&le===fe)if(typeof ae=="string")R=ae+" "+Fe[0];else switch(N.precision){case 2:R=$(ae/255)+" "+Fe[0];break;case 3:default:R=B(ae/255)+" "+Fe[0]}else if(ye===void 0||Yt(ye)==="object"){if(ye&&!isNaN(ye.a)&&ye.a===0)return R=["1.","1.","1.",Fe[1]].join(" ");if(typeof ae=="string")R=[ae,le,fe,Fe[1]].join(" ");else switch(N.precision){case 2:R=[$(ae/255),$(le/255),$(fe/255),Fe[1]].join(" ");break;default:case 3:R=[B(ae/255),B(le/255),B(fe/255),Fe[1]].join(" ")}}else if(typeof ae=="string")R=[ae,le,fe,ye,Fe[2]].join(" ");else switch(N.precision){case 2:R=[$(ae),$(le),$(fe),$(ye),Fe[2]].join(" ");break;case 3:default:R=[B(ae),B(le),B(fe),B(ye),Fe[2]].join(" ")}return R},li=m.__private__.getFilters=function(){return o},ta=m.__private__.putStream=function(N){var R=(N=N||{}).data||"",ae=N.filters||li(),le=N.alreadyAppliedFilters||[],fe=N.addLength1||!1,ye=R.length,Fe=N.objectId,qe=function(En){return En};if(A!==null&&Fe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");A!==null&&(qe=kn.encryptor(Fe,0));var rt={};ae===!0&&(ae=["FlateEncode"]);var vt=N.additionalKeyValues||[],gt=(rt=ct.API.processDataByFilters!==void 0?ct.API.processDataByFilters(R,ae):{data:R,reverseChain:[]}).reverseChain+(Array.isArray(le)?le.join(" "):le.toString());if(rt.data.length!==0&&(vt.push({key:"Length",value:rt.data.length}),fe===!0&&vt.push({key:"Length1",value:ye})),gt.length!=0)if(gt.split("/").length-1==1)vt.push({key:"Filter",value:gt});else{vt.push({key:"Filter",value:"["+gt+"]"});for(var Mt=0;Mt>"),rt.data.length!==0&&(re("stream"),re(qe(rt.data)),re("endstream"))},ci=m.__private__.putPage=function(N){var R=N.number,ae=N.data,le=N.objId,fe=N.contentsObjId;Fs(le,!0),re("<>"),re("endobj");var ye=ae.join(` `);return j===v.ADVANCED&&(ye+=` Q`),Fs(fe,!0),ta({data:ye,filters:li(),objectId:fe}),re("endobj"),le},xc=m.__private__.putPages=function(){var N,R,ae=[];for(N=1;N<=tr;N++)mt[N].objId=$r(),mt[N].contentsObjId=$r();for(N=1;N<=tr;N++)ae.push(ci({number:N,data:be[N],objId:mt[N].objId,contentsObjId:mt[N].contentsObjId,mediaBox:mt[N].mediaBox,cropBox:mt[N].cropBox,bleedBox:mt[N].bleedBox,trimBox:mt[N].trimBox,artBox:mt[N].artBox,userUnit:mt[N].userUnit,rootDictionaryObjId:Oi,resourceDictionaryObjId:Sa}));Fs(Oi,!0),re("<>"),re("endobj"),Wt.publish("postPutPages")},Hd=function(N){Wt.publish("putFont",{font:N,out:re,newObject:rn,putStream:ta}),N.isAlreadyPutted!==!0&&(N.objectNumber=rn(),re("<<"),re("/Type /Font"),re("/BaseFont /"+RA(N.postScriptName)),re("/Subtype /Type1"),typeof N.encoding=="string"&&re("/Encoding /"+N.encoding),re("/FirstChar 32"),re("/LastChar 255"),re(">>"),re("endobj"))},Kd=function(){for(var N in Kt)Kt.hasOwnProperty(N)&&(u===!1||u===!0&&h.hasOwnProperty(N))&&Hd(Kt[N])},Vd=function(N){N.objectNumber=rn();var R=[];R.push({key:"Type",value:"/XObject"}),R.push({key:"Subtype",value:"/Form"}),R.push({key:"BBox",value:"["+[M(N.x),M(N.y),M(N.x+N.width),M(N.y+N.height)].join(" ")+"]"}),R.push({key:"Matrix",value:"["+N.matrix.toString()+"]"});var ae=N.pages[1].join(` `);ta({data:ae,additionalKeyValues:R,objectId:N.objectNumber}),re("endobj")},zd=function(){for(var N in yn)yn.hasOwnProperty(N)&&Vd(yn[N])},kp=function(N,R){var ae,le=[],fe=1/(R-1);for(ae=0;ae<1;ae+=fe)le.push(ae);if(le.push(1),N[0].offset!=0){var ye={offset:0,color:N[0].color};N.unshift(ye)}if(N[N.length-1].offset!=1){var Fe={offset:1,color:N[N.length-1].color};N.push(Fe)}for(var qe="",rt=0,vt=0;vtN[rt+1].offset;)rt++;var gt=N[rt].offset,Mt=(ae-gt)/(N[rt+1].offset-gt),vr=N[rt].color,Sr=N[rt+1].color;qe+=Z(Math.round((1-Mt)*vr[0]+Mt*Sr[0]).toString(16))+Z(Math.round((1-Mt)*vr[1]+Mt*Sr[1]).toString(16))+Z(Math.round((1-Mt)*vr[2]+Mt*Sr[2]).toString(16))}return qe.trim()},Jv=function(N,R){R||(R=21);var ae=rn(),le=kp(N.colors,R),fe=[];fe.push({key:"FunctionType",value:"0"}),fe.push({key:"Domain",value:"[0.0 1.0]"}),fe.push({key:"Size",value:"["+R+"]"}),fe.push({key:"BitsPerSample",value:"8"}),fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ta({data:le,additionalKeyValues:fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ae}),re("endobj"),N.objectNumber=rn(),re("<< /ShadingType "+N.type),re("/ColorSpace /DeviceRGB");var ye="/Coords ["+M(parseFloat(N.coords[0]))+" "+M(parseFloat(N.coords[1]))+" ";N.type===2?ye+=M(parseFloat(N.coords[2]))+" "+M(parseFloat(N.coords[3])):ye+=M(parseFloat(N.coords[2]))+" "+M(parseFloat(N.coords[3]))+" "+M(parseFloat(N.coords[4]))+" "+M(parseFloat(N.coords[5])),re(ye+="]"),N.matrix&&re("/Matrix ["+N.matrix.toString()+"]"),re("/Function "+ae+" 0 R"),re("/Extend [true true]"),re(">>"),re("endobj")},Xv=function(N,R){var ae=$r(),le=rn();R.push({resourcesOid:ae,objectOid:le}),N.objectNumber=le;var fe=[];fe.push({key:"Type",value:"/Pattern"}),fe.push({key:"PatternType",value:"1"}),fe.push({key:"PaintType",value:"1"}),fe.push({key:"TilingType",value:"1"}),fe.push({key:"BBox",value:"["+N.boundingBox.map(M).join(" ")+"]"}),fe.push({key:"XStep",value:M(N.xStep)}),fe.push({key:"YStep",value:M(N.yStep)}),fe.push({key:"Resources",value:ae+" 0 R"}),N.matrix&&fe.push({key:"Matrix",value:"["+N.matrix.toString()+"]"}),ta({data:N.stream,additionalKeyValues:fe,objectId:N.objectNumber}),re("endobj")},Wd=function(N){var R;for(R in We)We.hasOwnProperty(R)&&(We[R]instanceof Dc?Jv(We[R]):We[R]instanceof iu&&Xv(We[R],N))},Ep=function(N){for(var R in N.objectNumber=rn(),re("<<"),N)switch(R){case"opacity":re("/ca "+$(N[R]));break;case"stroke-opacity":re("/CA "+$(N[R]))}re(">>"),re("endobj")},Zv=function(){var N;for(N in lt)lt.hasOwnProperty(N)&&Ep(lt[N])},bh=function(){for(var N in re("/XObject <<"),yn)yn.hasOwnProperty(N)&&yn[N].objectNumber>=0&&re("/"+N+" "+yn[N].objectNumber+" 0 R");Wt.publish("putXobjectDict"),re(">>")},eb=function(){kn.oid=rn(),re("<<"),re("/Filter /Standard"),re("/V "+kn.v),re("/R "+kn.r),re("/U <"+kn.toHexString(kn.U)+">"),re("/O <"+kn.toHexString(kn.O)+">"),re("/P "+kn.P),re(">>"),re("endobj")},Fp=function(){for(var N in re("/Font <<"),Kt)Kt.hasOwnProperty(N)&&(u===!1||u===!0&&h.hasOwnProperty(N))&&re("/"+N+" "+Kt[N].objectNumber+" 0 R");re(">>")},tb=function(){if(Object.keys(We).length>0){for(var N in re("/Shading <<"),We)We.hasOwnProperty(N)&&We[N]instanceof Dc&&We[N].objectNumber>=0&&re("/"+N+" "+We[N].objectNumber+" 0 R");Wt.publish("putShadingPatternDict"),re(">>")}},$d=function(N){if(Object.keys(We).length>0){for(var R in re("/Pattern <<"),We)We.hasOwnProperty(R)&&We[R]instanceof m.TilingPattern&&We[R].objectNumber>=0&&We[R].objectNumber>")}},rb=function(){if(Object.keys(lt).length>0){var N;for(N in re("/ExtGState <<"),lt)lt.hasOwnProperty(N)&<[N].objectNumber>=0&&re("/"+N+" "+lt[N].objectNumber+" 0 R");Wt.publish("putGStateDict"),re(">>")}},_r=function(N){Fs(N.resourcesOid,!0),re("<<"),re("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Fp(),tb(),$d(N.objectOid),rb(),bh(),re(">>"),re("endobj")},Ip=function(){var N=[];Kd(),Zv(),zd(),Wd(N),Wt.publish("putResources"),N.forEach(_r),_r({resourcesOid:Sa,objectOid:Number.MAX_SAFE_INTEGER}),Wt.publish("postPutResources")},Pp=function(){Wt.publish("putAdditionalObjects");for(var N=0;N>8&&(rt=!0);N=qe.join("")}for(ae=N.length;rt===void 0&&ae!==0;)N.charCodeAt(ae-1)>>8&&(rt=!0),ae--;if(!rt)return N;for(qe=R.noBOM?[]:[254,255],ae=0,le=N.length;ae>8)>>8)throw new Error("Character at position "+ae+" of string '"+N+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");qe.push(gt),qe.push(vt-(gt<<8))}return String.fromCharCode.apply(void 0,qe)},cs=m.__private__.pdfEscape=m.pdfEscape=function(N,R){return Gd(N,R).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},jh=m.__private__.beginPage=function(N){be[++tr]=[],mt[tr]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(N[0]),topRightY:Number(N[1])}},Up(tr),he(be[L])},Lp=function(N,R){var ae,le,fe;switch(r=R||r,typeof N=="string"&&(ae=y(N.toLowerCase()),Array.isArray(ae)&&(le=ae[0],fe=ae[1])),Array.isArray(N)&&(le=N[0]*ze,fe=N[1]*ze),isNaN(le)&&(le=a[0],fe=a[1]),(le>14400||fe>14400)&&(sr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),le=Math.min(14400,le),fe=Math.min(14400,fe)),a=[le,fe],r.substr(0,1)){case"l":fe>le&&(a=[fe,le]);break;case"p":le>fe&&(a=[fe,le])}jh(a),Op(Sh),re(Ia),Eh!==0&&re(Eh+" J"),Fh!==0&&re(Fh+" j"),Wt.publish("addPage",{pageNumber:tr})},sb=function(N){N>0&&N<=tr&&(be.splice(N,1),mt.splice(N,1),tr--,L>tr&&(L=tr),this.setPage(L))},Up=function(N){N>0&&N<=tr&&(L=N)},ab=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return be.length-1},_p=function(N,R,ae){var le,fe=void 0;return ae=ae||{},N=N!==void 0?N:Kt[St].fontName,R=R!==void 0?R:Kt[St].fontStyle,le=N.toLowerCase(),Qt[le]!==void 0&&Qt[le][R]!==void 0?fe=Qt[le][R]:Qt[N]!==void 0&&Qt[N][R]!==void 0?fe=Qt[N][R]:ae.disableWarning===!1&&sr.warn("Unable to look up font label for font '"+N+"', '"+R+"'. Refer to getFontList() for available fonts."),fe||ae.noFallback||(fe=Qt.times[R])==null&&(fe=Qt.times.normal),fe},ib=m.__private__.putInfo=function(){var N=rn(),R=function(le){return le};for(var ae in A!==null&&(R=kn.encryptor(N,0)),re("<<"),re("/Producer ("+cs(R("jsPDF "+ct.version))+")"),nt)nt.hasOwnProperty(ae)&&nt[ae]&&re("/"+ae.substr(0,1).toUpperCase()+ae.substr(1)+" ("+cs(R(nt[ae]))+")");re("/CreationDate ("+cs(R(oe))+")"),re(">>"),re("endobj")},Nh=m.__private__.putCatalog=function(N){var R=(N=N||{}).rootDictionaryObjId||Oi;switch(rn(),re("<<"),re("/Type /Catalog"),re("/Pages "+R+" 0 R"),Oe||(Oe="fullwidth"),Oe){case"fullwidth":re("/OpenAction [3 0 R /FitH null]");break;case"fullheight":re("/OpenAction [3 0 R /FitV null]");break;case"fullpage":re("/OpenAction [3 0 R /Fit]");break;case"original":re("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ae=""+Oe;ae.substr(ae.length-1)==="%"&&(Oe=parseInt(Oe)/100),typeof Oe=="number"&&re("/OpenAction [3 0 R /XYZ null null "+$(Oe)+"]")}switch(wt||(wt="continuous"),wt){case"continuous":re("/PageLayout /OneColumn");break;case"single":re("/PageLayout /SinglePage");break;case"two":case"twoleft":re("/PageLayout /TwoColumnLeft");break;case"tworight":re("/PageLayout /TwoColumnRight")}ht&&re("/PageMode /"+ht),Wt.publish("putCatalog"),re(">>"),re("endobj")},ob=m.__private__.putTrailer=function(){re("trailer"),re("<<"),re("/Size "+(ne+1)),re("/Root "+ne+" 0 R"),re("/Info "+(ne-1)+" 0 R"),A!==null&&re("/Encrypt "+kn.oid+" 0 R"),re("/ID [ <"+V+"> <"+V+"> ]"),re(">>")},lb=m.__private__.putHeader=function(){re("%PDF-"+g),re("%ºß¬à")},cb=m.__private__.putXRef=function(){var N="0000000000";re("xref"),re("0 "+(ne+1)),re("0000000000 65535 f ");for(var R=1;R<=ne;R++)typeof Y[R]=="function"?re((N+Y[R]()).slice(-10)+" 00000 n "):Y[R]!==void 0?re((N+Y[R]).slice(-10)+" 00000 n "):re("0000000000 00000 n ")},Hi=m.__private__.buildDocument=function(){we(),he(se),Wt.publish("buildDocument"),lb(),xc(),Pp(),Ip(),A!==null&&eb(),ib(),Nh();var N=ce;return cb(),ob(),re("startxref"),re(""+N),re("%%EOF"),he(be[L]),se.join(` `)},qd=m.__private__.getBlob=function(N){return new Blob([Ge(N)],{type:"application/pdf"})},Yd=m.output=m.__private__.output=Fa(function(N,R){switch(typeof(R=R||{})=="string"?R={filename:R}:R.filename=R.filename||"generated.pdf",N){case void 0:return Hi();case"save":m.save(R.filename);break;case"arraybuffer":return Ge(Hi());case"blob":return qd(Hi());case"bloburi":case"bloburl":if(dt.URL!==void 0&&typeof dt.URL.createObjectURL=="function")return dt.URL&&dt.URL.createObjectURL(qd(Hi()))||void 0;sr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ae="",le=Hi();try{ae=o5(le)}catch{ae=o5(unescape(encodeURIComponent(le)))}return"data:application/pdf;filename="+R.filename+";base64,"+ae;case"pdfobjectnewwindow":if(Object.prototype.toString.call(dt)==="[object Window]"){var fe="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ye=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';R.pdfObjectUrl&&(fe=R.pdfObjectUrl,ye="");var Fe='