1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/helthcare-CTS7GivC.js","assets/dashboard-wCLiY-LC.js","assets/pdf-BqMMMl9t.js","assets/animations-W9Ybi04L.js","assets/Platform-BsySYxKb.js","assets/Ecommerce-BM62AZYA.js","assets/Ecommerce-C_RrejS4.css","assets/about-CcwCBSsP.js","assets/PartnersPage-3rM7WUW3.js","assets/CaseStudie-CCFWhAmR.js","assets/Lead Qualification _ Screening-DO5uCRn4.js","assets/EmiPaymentReminders-DUe3qTx-.js","assets/MarketingCampaignCalls-Dp9PsVk3.js","assets/Banking_Finance-DE5gwgVu.js","assets/Insurance-LZdtLneE.js","assets/CustomerFeedbackSurveys-CfCeYUmf.js","assets/Travelhospitality-Bln1GARA.js","assets/Telecom-DjxirOlT.js","assets/Logistics-Dl6Y2HP7.js","assets/CustomerSupport-DC7_M2oQ.js","assets/OrderConfirmations-Du1H6HV7.js","assets/TransactionConfirmation-D1JY-mv6.js","assets/Stocks_ForexMarket-D4ug1Q0E.js","assets/AiCustomerSupportCalls-DWoW4pow.js","assets/Appointmentbooking-D-tsUd-o.js","assets/Callrouting-C8YbbHE4.js","assets/Comparisons-Drkj5eNC.js","assets/ai-voice-agent-vs-ivr-CigyC4vU.js","assets/index-BUjIVrA0.js","assets/ai-voice-bots-vs-call-centers-BcTuWDbJ.js","assets/conversational-ai-vs-chatbots-ChhprNeq.js","assets/voice-ai-vs-chatbots-for-customer-support-Ds9PWCGN.js","assets/ai-voice-automation-vs-traditional-phone-systems-BL6deu63.js","assets/ai-voice-agents-vs-human-call-agents-d_gt2w9C.js","assets/ai-voice-automation-vs-contact-center-software-CBZZXubn.js","assets/ai-call-automation-vs-manual-call-handling-CA_2qUUI.js","assets/Aiguide-C8RqTPWo.js","assets/complete-guide-to-ai-voice-agents-DPl7tFqb.js","assets/ai-voice-automation-beginner-guide-D7_D3lNv.js","assets/voice-ai-technology-C0KMbC8P.js","assets/what-is-conversational-ai-CarNbgG4.js","assets/ai-call-automation-explained-for-businesses-C7kCbdCe.js","assets/how-ai-voice-assistants-work-DkDMxwD9.js","assets/how-ai-voice-agents-work-HQvGkMKb.js","assets/understanding-ai-phone-agents-YyyprLAu.js","assets/how-businesses-use-ai-voice-automation-for-customer-support-DFpnZHvb.js","assets/implementing-ai-voice-automation-in-your-business-BiRvXaFg.js","assets/voice-ai-agents-versus-ivr-menus-BPVYGrzd.js","assets/Blog-B7ucPG5v.js","assets/realestate-D7sjul8o.js","assets/what-is-an-ai-voice-agent-B08qobaE.js","assets/what-is-an-ai-call-assistant-BLiyk5S1.js","assets/ai-voice-automation-D_sBs6iQ.js","assets/ai-voice-automation-explained-in-simple-terms-BNI-76ed.js","assets/how-ai-voice-technology-works-in-business-calls-BvgIaNrq.js","assets/rise-of-ai-phone-agents-in-modern-businesses-Ui0vWcAZ.js","assets/conversational-ai-vs-voice-ai-C5DuuPrJ.js","assets/ai-voice-technology-benefits-and-challenges-CEjq9o_R.js","assets/why-ai-voice-assistants-are-the-future-of-customer-support-C-JLoK9v.js","assets/how-businesses-use-ai-to-answer-customer-calls-automatically-MpxQp4hN.js","assets/why-businesses-lose-leads-due-to-missed-calls-ROSTULgk.js","assets/how-to-reduce-missed-customer-calls-using-ai-s6M_XKxy.js","assets/how-to-automate-customer-calls-without-hiring-more-staff-CX0iTsr0.js","assets/the-hidden-cost-of-missed-calls-for-businesses-DfmrWDTl.js","assets/how-ai-voice-automation-improves-customer-response-time-CNHaruu0.js","assets/solving-customer-call-overload-with-ai-voice-technology-DO-wseF1.js","assets/page-1nY57Hik.js","assets/OnboardingPage-C2Mp6bUg.js","assets/OnboardingQuestions-DtFIlZU3.js","assets/Dashboard-BVxggEUE.js","assets/react-datepicker-CE21K4bl.css","assets/BulkCalls-Bbt_YzEH.js","assets/Calendar-BsG7KSpJ.js","assets/Calendar-BSwzzYnC.css","assets/CallHistory-nowqUm9n.js","assets/react-select.esm-S_ApyRmm.js","assets/Integrations-pj6nVuJz.js","assets/CallOutcome-DXl9KLoE.js","assets/AgentsPage-B32e5dVp.js","assets/ai_voice-B3fJJzYx.js","assets/CreateAgent-BlxKlzoq.js","assets/SettingsPage-DtcNtGYs.js","assets/ShopifyAnalytics-FNdJGafv.js","assets/CrmAnalytics-Bbr-px25.js"])))=>i.map(i=>d[i]); 2import{a as $3,b as eS,r as y,g as Pi,i as W2,R as de,j as e,c as tS,d as sS,o as K2,s as aS,e as nS,u as X2,f as Q2,h as lS,k as rS,l as Ll,L as Kg,C as Io,X as Vo,Y as Fo,T as Dl,m as Ho,n as Xg,B as jw,p as Jx,A as iS,q as oS,P as Qg,t as Zg,v as Jg}from"./dashboard-wCLiY-LC.js";import{f as fe}from"./pdf-BqMMMl9t.js";import{m as ve}from"./animations-W9Ybi04L.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();var Wp={exports:{}},od={}
vendor: 8,629 bytes, lines 2-4
2,Kp={exports:{}},Xp={};var Z2;function cS(){return Z2||(Z2=1,(function(a){function t(U,B){var X=U.length;U.push(B);e:for(;0<X;){var re=X-1>>>1,P=U[re];if(0<i(P,B))U[re]=B,U[X]=P,X=re;else break e}}function n(U){return U.length===0?null:U[0]}function l(U){if(U.length===0)return null;var B=U[0],X=U.pop();if(X!==B){U[0]=X;e:for(var re=0,P=U.length,Y=P>>>1;re<Y;){var oe=2*(re+1)-1,ue=U[oe],me=oe+1,ke=U[me];if(0>i(ue,X))me<P&&0>i(ke,ue)?(U[re]=ke,U[me]=X,re=me):(U[re]=ue,U[oe]=X,re=oe);else if(me<P&&0>i(ke,X))U[re]=ke,U[me]=X,re=me;else break e}}return B}function i(U,B){var X=U.sortIndex-B.sortIndex;return X!==0?X:U.id-B.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;a.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();a.unstable_now=function(){return u.now()-h}}var f=[],p=[],x=1,b=null,v=3,w=!1,j=!1,N=!1,A=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function L(U){for(var B=n(p);B!==null;){if(B.callback===null)l(p);else if(B.startTime<=U)l(p),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(p)}}function O(U){if(N=!1,L(U),!j)if(n(f)!==null)j=!0,R||(R=!0,V());else{var B=n(p);B!==null&&ee(O,B.startTime-U)}}var R=!1,k=-1,E=5,z=-1;function D(){return A?!0:!(a.unstable_now()-z<E)}function q(){if(A=!1,R){var U=a.unstable_now();z=U;var B=!0;try{e:{j=!1,N&&(N=!1,C(k),k=-1),w=!0;var X=v;try{t:{for(L(U),b=n(f);b!==null&&!(b.expirationTime>U&&D());){var re=b.callback;if(typeof re=="function"){b.callback=null,v=b.priorityLevel;var P=re(b.expirationTime<=U);if(U=a.unstable_now(),typeof P=="function"){b.callback=P,L(U),B=!0;break t}b===n(f)&&l(f),L(U)}else l(f);b=n(f)}if(b!==null)B=!0;else{var Y=n(p);Y!==null&&ee(O,Y.startTime-U),B=!1}}break e}finally{b=null,v=X,w=!1}B=void 0}}finally{B?V():R=!1}}}var V;if(typeof T=="function")V=function(){T(q)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,ae=Z.port2;Z.port1.onmessage=q,V=function(){ae.postMessage(null)}}else V=function(){S(q,0)};function ee(U,B){k=S(function(){U(a.unstable_now())},B)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return v},a.unstable_next=function(U){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var X=v;v=B;try{return U()}finally{v=X}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(U,B){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var X=v;v=U;try{return B()}finally{v=X}},a.unstable_scheduleCallback=function(U,B,X){var re=a.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?re+X:re):X=re,U){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=X+P,U={id:x++,callback:B,priorityLevel:U,startTime:X,expirationTime:P,sortIndex:-1},X>re?(U.sortIndex=X,t(p,U),n(f)===null&&U===n(p)&&(N?(C(k),k=-1):N=!0,ee(O,X-re))):(U.sortIndex=P,t(f,U),j||w||(j=!0,R||(R=!0,V()))),U},a.unstable_shouldYield=D,a.unstable_wrapCallback=function(U){var B=v;return function(){var X=v;v=B;try{return U.apply(this,arguments)}finally{v=X}}}})(Xp)),Xp}var J2;function dS(){return J2||(J2=1,Kp.exports=cS()),Kp.exports}var $2;function uS(){if($2)return od;$2=1;var a=dS(),t=$3(),n=eS();function l(s){var r="https://react.dev/errors/"+s;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+s+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function c(s){var r=s,o=s;if(s.alternate)for(;r.return;)r=r.return;else{s=r;do r=s,(r.flags&4098)!==0&&(o=r.return),s=r.return;while(s)}return r.tag===3?o:null}function u(s){if(s.tag===13){var r=s.memoizedState;if(r===null&&(s=s.alternate,s!==null&&(r=s.memoizedState)),r!==null)return r.dehydrated}return null}function h(s){if(s.tag===31){var r=s.memoizedState;if(r===null&&(s=s.alternate,s!==null&&(r=s.memoizedState)),r!==null)return r.dehydrated}return null}function f(s){if(c(s)!==s)throw Error(l(188))}function p(s){var r=s.alternate;if(!r){if(r=c(s),r===null)throw Error(l(188));return r!==s?null:s}for(var o=s,d=r;;){var m=o.return;if(m===null)break;var g=m.alternate;if(g===null){if(d=m.return,d!==null){o=d;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===o)return f(m),s;if(g===d)return f(m),r;g=g.sibling}throw Error(l(188))}if(o.return!==d.return)o=m,d=g;else{for(var _=!1,M=m.child;M;){if(M===o){_=!0,o=m,d=g;break}if(M===d){_=!0,d=m,o=g;break}M=M.sibling}if(!_){for(M=g.child;M;){if(M===o){_=!0,o=g,d=m;break}if(M===d){_=!0,d=g,o=m;break}M=M.sibling}if(!_)throw Error(l(189))}}if(o.alternate!==d)throw Error(l(190))}if(o.tag!==3)throw Error(l(188));return o.stateNode.current===o?s:r}function x(s){var r=s.tag;if(r===5||r===26||r===27||r===6)return s;for(s=s.child;s!==null;){if(r=x(s),r!==null)return r;s=s.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function V(s){return s===null||typeof s!="object"?null:(s=q&&s[q]||s["@@iterator"],typeof s=="function"?s:null)}var Z=Symbol.for("react.client.reference");function ae(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Z?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case N:return"Fragment";case S:return"Profiler";case A:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList";case z:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case j:return"Portal";case T:return s.displayName||"Context";case C:return(s._context.displayName||"Context")+".Consumer";case L:var r=s.render;return s=s.displayName,s||(s=r.displayName||r.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case k:return r=s.displayName||null,r!==null?r:ae(s.type)||"Memo";case E:r=s._payload,s=s._init;try{return ae(s(r))}catch{}}return null}var ee=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},re=[],P=-1;function Y(s){return{current:s}}function oe(s){0>P||(s.current=re[P],re[P]=null,P--)}function ue(s,r){P++,re[P]=s.current,s.current=r}var me=Y(null),ke=Y(null),Ve=Y(null),tt=Y(null);function je(s,r){switch(ue(Ve,r),ue(ke,s),ue(me,null),r.nodeType){case 9:case 11:s=(s=r.documentElement)&&(s=s.namespaceURI)?x2(s):0;break;default:if(s=r.tagName,r=r.namespaceURI)r=x2(r),s=g2(r,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}oe(me),ue(me,s)}function De(){oe(me),oe(ke),oe(Ve)}function Yt(s){s.memoizedState!==null&&ue(tt,s);var r=me.current,o=g2(r,s.type);r!==o&&(ue(ke,s),ue(me,o))}function Je(s){ke.current===s&&(oe(me),oe(ke)),tt.current===s&&(oe(tt),nd._currentValue=X)}var ft,Ce;function _e(s){if(ft===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);ft=r&&r[1]||"",Ce=-1<o.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+ft+s+Ce}var Oe=!1;function Zt(s,r){if(!s||Oe)return"";Oe=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(r){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch($){var Q=$}Reflect.construct(s,[],le)}else{try{le.call()}catch($){Q=$}s.call(le.prototype)}}else{try{throw Error()}catch($){Q=$}(le=s())&&typeof le.catch=="function"&&le.catch(function(){})}}
vendor: 1,939 bytes, lines 4-9
4catch($){if($&&Q&&typeof $.stack=="string")return[$.stack,Q.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=d.DetermineComponentFrameRoot(),_=g[0],M=g[1];if(_&&M){var I=_.split(` 5`),W=M.split(` 6`);for(m=d=0;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;for(;m<W.length&&!W[m].includes("DetermineComponentFrameRoot");)m++;if(d===I.length||m===W.length)for(d=I.length-1,m=W.length-1;1<=d&&0<=m&&I[d]!==W[m];)m--;for(;1<=d&&0<=m;d--,m--)if(I[d]!==W[m]){if(d!==1||m!==1)do if(d--,m--,0>m||I[d]!==W[m]){var se=` 7`+I[d].replace(" at new "," at ");return s.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",s.displayName)),se}while(1<=d&&0<=m);break}}}finally{Oe=!1,Error.prepareStackTrace=o}return(o=s?s.displayName||s.name:"")?_e(o):""}function te(s,r){switch(s.tag){case 26:case 27:case 5:return _e(s.type);case 16:return _e("Lazy");case 13:return s.child!==r&&r!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return Zt(s.type,!1);case 11:return Zt(s.type.render,!1);case 1:return Zt(s.type,!0);case 31:return _e("Activity");default:return""}}function zs(s){try{var r="",o=null;do r+=te(s,o),o=s,s=s.return;while(s);return r}catch(d){return` 8Error generating stack: `+d.message+` 9`+d.stack}}var Aa=Object.prototype.hasOwnProperty,Za=a.unstable_scheduleCallback,St=a.unstable_cancelCallback,Rn=a.unstable_shouldYield,Yn=a.unstable_requestPaint,Jt=a.unstable_now,rs=a.unstable_getCurrentPriorityLevel,On=a.unstable_ImmediatePriority,Rt=a.unstable_UserBlockingPriority,Ls=a.unstable_NormalPriority,na=a.unstable_LowPriority,Ja=a.unstable_IdlePriority,Gr=a.log,Gt=a.unstable_setDisableYieldValue,Gn=null,Pt=null;
vendor: 4,536 bytes, line 9
9function Ws(s){if(typeof Gr=="function"&&Gt(s),Pt&&typeof Pt.setStrictMode=="function")try{Pt.setStrictMode(Gn,s)}catch{}}var is=Math.clz32?Math.clz32:Fe,Wn=Math.log,hl=Math.LN2;function Fe(s){return s>>>=0,s===0?32:31-(Wn(s)/hl|0)|0}var $a=256,Ds=262144,Bs=4194304;function ps(s){var r=s&42;if(r!==0)return r;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function en(s,r,o){var d=s.pendingLanes;if(d===0)return 0;var m=0,g=s.suspendedLanes,_=s.pingedLanes;s=s.warmLanes;var M=d&134217727;return M!==0?(d=M&~g,d!==0?m=ps(d):(_&=M,_!==0?m=ps(_):o||(o=M&~s,o!==0&&(m=ps(o))))):(M=d&~g,M!==0?m=ps(M):_!==0?m=ps(_):o||(o=d&~s,o!==0&&(m=ps(o)))),m===0?0:r!==0&&r!==m&&(r&g)===0&&(g=m&-m,o=r&-r,g>=o||g===32&&(o&4194048)!==0)?r:m}function tn(s,r){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&r)===0}function Mn(s,r){switch(s){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xl(){var s=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),s}function Te(s){for(var r=[],o=0;31>o;o++)r.push(s);return r}function Ae(s,r){s.pendingLanes|=r,r!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function ot(s,r,o,d,m,g){var _=s.pendingLanes;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=o,s.entangledLanes&=o,s.errorRecoveryDisabledLanes&=o,s.shellSuspendCounter=0;var M=s.entanglements,I=s.expirationTimes,W=s.hiddenUpdates;for(o=_&~o;0<o;){var se=31-is(o),le=1<<se;M[se]=0,I[se]=-1;var Q=W[se];if(Q!==null)for(W[se]=null,se=0;se<Q.length;se++){var $=Q[se];$!==null&&($.lane&=-536870913)}o&=~le}d!==0&&he(s,d,0),g!==0&&m===0&&s.tag!==0&&(s.suspendedLanes|=g&~(_&~r))}function he(s,r,o){s.pendingLanes|=r,s.suspendedLanes&=~r;var d=31-is(r);s.entangledLanes|=r,s.entanglements[d]=s.entanglements[d]|1073741824|o&261930}function Re(s,r){var o=s.entangledLanes|=r;for(s=s.entanglements;o;){var d=31-is(o),m=1<<d;m&r|s[d]&r&&(s[d]|=r),o&=~m}}function we(s,r){var o=r&-r;return o=(o&42)!==0?1:Ee(o),(o&(s.suspendedLanes|r))!==0?0:o}function Ee(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Wt(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function We(){var s=B.p;return s!==0?s:(s=window.event,s===void 0?32:I2(s.type))}function Ot(s,r){var o=B.p;try{return B.p=s,r()}finally{B.p=o}}var kt=Math.random().toString(36).slice(2),Ue="__reactFiber$"+kt,He="__reactProps$"+kt,it="__reactContainer$"+kt,Ks="__reactEvents$"+kt,Ct="__reactListeners$"+kt,Xs="__reactHandles$"+kt,wa="__reactResources$"+kt,Ut="__reactMarker$"+kt;function $t(s){delete s[Ue],delete s[He],delete s[Ks],delete s[Ct],delete s[Xs]}function It(s){var r=s[Ue];if(r)return r;for(var o=s.parentNode;o;){if(r=o[it]||o[Ue]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(s=N2(s);s!==null;){if(o=s[Ue])return o;s=N2(s)}return r}s=o,o=s.parentNode}return null}function la(s){if(s=s[Ue]||s[it]){var r=s.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return s}return null}function Kn(s){var r=s.tag;if(r===5||r===26||r===27||r===6)return s.stateNode;throw Error(l(33))}function Vt(s){var r=s[wa];return r||(r=s[wa]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ke(s){s[Ut]=!0}var Na=new Set,Fi={};function Xn(s,r){sn(s,r),sn(s+"Capture",r)}function sn(s,r){for(Fi[s]=r,s=0;s<r.length;s++)Na.add(r[s])}var an=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 9
9037D\\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]*$"),Ql={},Wr={};function Qn(s){return Aa.call(Wr,s)?!0:Aa.call(Ql,s)?!1:an.test(s)?Wr[s]=!0:(Ql[s]=!0,!1)}function wu(s,r,o){if(Qn(r))if(o===null)s.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":s.removeAttribute(r);return;case"boolean":var d=r.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){s.removeAttribute(r);return}}s.setAttribute(r,""+o)}}function Nu(s,r,o){if(o===null)s.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(r);return}s.setAttribute(r,""+o)}}function fl(s,r,o,d){if(d===null)s.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttributeNS(r,o,""+d)}}function nn(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function o1(s){var r=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function G4(s,r,o){var d=Object.getOwnPropertyDescriptor(s.constructor.prototype,r);if(!s.hasOwnProperty(r)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var m=d.get,g=d.set;return Object.defineProperty(s,r,{configurable:!0,get:function(){return m.call(this)},set:function(_){o=""+_,g.call(this,_)}}),Object.defineProperty(s,r,{enumerable:d.enumerable}),{getValue:function(){return o},setValue:function(_){o=""+_},stopTracking:function(){s._valueTracker=null,delete s[r]}}}}function I0(s){if(!s._valueTracker){var r=o1(s)?"checked":"value";s._valueTracker=G4(s,r,""+s[r])}}function c1(s){if(!s)return!1;var r=s._valueTracker;if(!r)return!0;var o=r.getValue(),d="";return s&&(d=o1(s)?s.checked?"true":"false":s.value),s=d,s!==o?(r.setValue(s),!0):!1}function _u(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var W4=/[\n"\\]/g;function ln(s){return s.replace(W4,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function V0(s,r,o,d,m,g,_,M){s.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?s.type=_:s.removeAttribute("type"),r!=null?_==="number"?(r===0&&s.value===""||s.value!=r)&&(s.value=""+nn(r)):s.value!==""+nn(r)&&(s.value=""+nn(r)):_!=="submit"&&_!=="reset"||s.removeAttribute("value"),r!=null?F0(s,_,nn(r)):o!=null?F0(s,_,nn(o)):d!=null&&s.removeAttribute("value"),m==null&&g!=null&&(s.defaultChecked=!!g),m!=null&&(s.checked=m&&typeof m!="function"&&typeof m!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?s.name=""+nn(M):s.removeAttribute("name")}function d1(s,r,o,d,m,g,_,M){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(s.type=g),r!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){I0(s);return}o=o!=null?""+nn(o):"",r=r!=null?""+nn(r):o,M||r===s.value||(s.value=r),s.defaultValue=r}d=d??m,d=typeof d!="function"&&typeof d!="symbol"&&!!d,s.checked=M?s.checked:!!d,s.defaultChecked=!!d,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(s.name=_),I0(s)}function F0(s,r,o){r==="number"&&_u(s.ownerDocument)===s||s.defaultValue===""+o||(s.defaultValue=""+o)}function Hi(s,r,o,d){if(s=s.options,r){r={};for(var m=0;m<o.length;m++)r["$"+o[m]]=!0;for(o=0;o<s.length;o++)m=r.hasOwnProperty("$"+s[o].value),s[o].selected!==m&&(s[o].selected=m),m&&d&&(s[o].defaultSelected=!0)}else{for(o=""+nn(o),r=null,m=0;m<s.length;m++){if(s[m].value===o){s[m].selected=!0,d&&(s[m].defaultSelected=!0);return}r!==null||s[m].disabled||(r=s[m])}r!==null&&(r.selected=!0)}}function u1(s,r,o){if(r!=null&&(r=""+nn(r),r!==s.value&&(s.value=r),o==null)){s.defaultValue!==r&&(s.defaultValue=r);return}s.defaultValue=o!=null?""+nn(o):""}function h1(s,r,o,d){if(r==null){if(d!=null){if(o!=null)throw Error(l(92));if(ee(d)){if(1<d.length)throw Error(l(93));d=d[0]}o=d}o==null&&(o=""),r=o}o=nn(r),s.defaultValue=o,d=s.textContent,d===o&&d!==""&&d!==null&&(s.value=d),I0(s)}function qi(s,r){if(r){var o=s.firstChild;if(o&&o===s.lastChild&&o.nodeType===3){o.nodeValue=r;return}}s.textContent=r}var K4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function f1(s,r,o){var d=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?s.setProperty(r,""):r==="float"?s.cssFloat="":s[r]="":d?s.setProperty(r,o):typeof o!="number"||o===0||K4.has(r)?r==="float"?s.cssFloat=o:s[r]=(""+o).trim():s[r]=o+"px"}function m1(s,r,o){if(r!=null&&typeof r!="object")throw Error(l(62));if(s=s.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||r!=null&&r.hasOwnProperty(d)||(d.indexOf("--")===0?s.setProperty(d,""):d==="float"?s.cssFloat="":s[d]="");for(var m in r)d=r[m],r.hasOwnProperty(m)&&o[m]!==d&&f1(s,m,d)}else for(var g in r)r.hasOwnProperty(g)&&f1(s,g,r[g])}function H0(s){if(s.indexOf("-")===-1)return!1;switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var X4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Q4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Su(s){return Q4.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function ml(){}var q0=null;function Y0(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Yi=null,Gi=null;function p1(s){var r=la(s);if(r&&(s=r.stateNode)){var o=s[He]||null;e:switch(s=r.stateNode,r.type){case"input":if(V0(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=s;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+ln(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var d=o[r];if(d!==s&&d.form===s.form){var m=d[He]||null;if(!m)throw Error(l(90));V0(d,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(r=0;r<o.length;r++)d=o[r],d.form===s.form&&c1(d)}break e;case"textarea":u1(s,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&Hi(s,!!o.multiple,r,!1)}}}var G0=!1;function x1(s,r,o){if(G0)return s(r,o);G0=!0;try{var d=s(r);return d}finally{if(G0=!1,(Yi!==null||Gi!==null)&&(fh(),Yi&&(r=Yi,s=Gi,Gi=Yi=null,p1(r),s)))for(r=0;r<s.length;r++)p1(s[r])}}function jc(s,r){var o=s.stateNode;if(o===null)return null;var d=o[He]||null;if(d===null)return null;o=d[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(o&&typeof o!="function")throw Error(l(231,r,typeof o));return o}var pl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W0=!1;if(pl)try{var Ac={};Object.defineProperty(Ac,"passive",{get:function(){W0=!0}}),window.addEventListener("test",Ac,Ac),window.removeEventListener("test",Ac,Ac)}catch{W0=!1}var Zl=null,K0=null,ku=null;function g1(){if(ku)return ku;var s,r=K0,o=r.length,d,m="value"in Zl?Zl.value:Zl.textContent,g=m.length;for(s=0;s<o&&r[s]===m[s];s++);var _=o-s;for(d=1;d<=_&&r[o-d]===m[g-d];d++);return ku=m.slice(s,1<d?1-d:void 0)}function Cu(s){var r=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&r===13&&(s=13)):s=r,s===10&&(s=13),32<=s||s===13?s:0}function Eu(){return!0}function b1(){return!1}function ra(s){function r(o,d,m,g,_){this._reactName=o,this._targetInst=m,this.type=d,this.nativeEvent=g,this.target=_,this.currentTarget=null;for(var M in s)s.hasOwnProperty(M)&&(o=s[M],this[M]=o?o(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Eu:b1,this.isPropagationStopped=b1,this}return b(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),r}var Kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tu=ra(Kr),wc=b({},Kr,{view:0,detail:0}),Z4=ra(wc),X0,Q0,Nc,Ru=b({},wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J0,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Nc&&(Nc&&s.type==="mousemove"?(X0=s.screenX-Nc.screenX,Q0=s.screenY-Nc.screenY):Q0=X0=0,Nc=s),X0)},movementY:function(s){return"movementY"in s?s.movementY:Q0}}),y1=ra(Ru),J4=b({},Ru,{dataTransfer:0}),$4=ra(J4),e_=b({},wc,{relatedTarget:0}),Z0=ra(e_),t_=b({},Kr,{animationName:0,elapsedTime:0,pseudoElement:0}
vendor: 1,151 bytes, line 9
9),s_=ra(t_),a_=b({},Kr,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),n_=ra(a_),l_=b({},Kr,{data:0}),v1=ra(l_),r_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},o_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c_(s){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(s):(s=o_[s])?!!r[s]:!1}function J0(){return c_}var d_=b({},wc,{key:function(s){if(s.key){var r=r_[s.key]||s.key;if(r!=="Unidentified")return r}return s.type==="keypress"?(s=Cu(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
9keydown"||s.type==="keyup"?i_[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J0,charCode:function(s){return s.type==="keypress"?Cu(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Cu(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),u_=ra(d_),h_=b({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j1=ra(h_),f_=b({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J0}),m_=ra(f_),p_=b({},Kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),x_=ra(p_),g_=b({},Ru,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),b_=ra(g_),y_=b({},Kr,{newState:0,oldState:0}),v_=ra(y_),j_=[9,13,27,32],$0=pl&&"CompositionEvent"in window,_c=null;pl&&"documentMode"in document&&(_c=document.documentMode);var A_=pl&&"TextEvent"in window&&!_c,A1=pl&&(!$0||_c&&8<_c&&11>=_c),w1=" ",N1=!1;function _1(s,r){switch(s){case"keyup":return j_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Wi=!1;function w_(s,r){switch(s){case"compositionend":return S1(r);case"keypress":return r.which!==32?null:(N1=!0,w1);case"textInput":return s=r.data,s===w1&&N1?null:s;default:return null}}function N_(s,r){if(Wi)return s==="compositionend"||!$0&&_1(s,r)?(s=g1(),ku=K0=Zl=null,Wi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return A1&&r.locale!=="ko"?null:r.data;default:return null}}var __={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function k1(s){var r=s&&s.nodeName&&s.nodeName.toLowerCase();return r==="input"?!!__[s.type]:r==="textarea"}function C1(s,r,o,d){Yi?Gi?Gi.push(d):Gi=[d]:Yi=d,r=vh(r,"onChange"),0<r.length&&(o=new Tu("onChange","change",null,o,d),s.push({event:o,listeners:r}))}var Sc=null,kc=null;function S_(s){d2(s,0)}function Ou(s){var r=Kn(s);if(c1(r))return s}function E1(s,r){if(s==="change")return r}var T1=!1;if(pl){var em;if(pl){var tm="oninput"in document;if(!tm){var R1=document.createElement("div");R1.setAttribute("oninput","return;"),tm=typeof R1.oninput=="function"}em=tm}else em=!1;T1=em&&(!document.documentMode||9<document.documentMode)}function O1(){Sc&&(Sc.detachEvent("onpropertychange",M1),kc=Sc=null)}function M1(s){if(s.propertyName==="value"&&Ou(kc)){var r=[];C1(r,kc,s,Y0(s)),x1(S_,r)}}function k_(s,r,o){s==="focusin"?(O1(),Sc=r,kc=o,Sc.attachEvent("onpropertychange",M1)):s==="focusout"&&O1()}function C_(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Ou(kc)}function E_(s,r){if(s==="click")return Ou(r)}function T_(s,r){if(s==="input"||s==="change")return Ou(r)}function R_(s,r){return s===r&&(s!==0||1/s===1/r)||s!==s&&r!==r}var _a=typeof Object.is=="function"?Object.is:R_;function Cc(s,r){if(_a(s,r))return!0;if(typeof s!="object"||s===null||typeof r!="object"||r===null)return!1;var o=Object.keys(s),d=Object.keys(r);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var m=o[d];if(!Aa.call(r,m)||!_a(s[m],r[m]))return!1}return!0}function z1(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function L1(s,r){var o=z1(s);s=0;for(var d;o;){if(o.nodeType===3){if(d=s+o.textContent.length,s<=r&&d>=r)return{node:o,offset:r-s};s=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=z1(o)}}function D1(s,r){return s&&r?s===r?!0:s&&s.nodeType===3?!1:r&&r.nodeType===3?D1(s,r.parentNode):"contains"in s?s.contains(r):s.compareDocumentPosition?!!(s.compareDocumentPosition(r)&16):!1:!1}function B1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var r=_u(s.document);r instanceof s.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}
vendor: 16,639 bytes, line 9
9if(o)s=r.contentWindow;else break;r=_u(s.document)}return r}function sm(s){var r=s&&s.nodeName&&s.nodeName.toLowerCase();return r&&(r==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||r==="textarea"||s.contentEditable==="true")}var O_=pl&&"documentMode"in document&&11>=document.documentMode,Ki=null,am=null,Ec=null,nm=!1;function P1(s,r,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nm||Ki==null||Ki!==_u(d)||(d=Ki,"selectionStart"in d&&sm(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ec&&Cc(Ec,d)||(Ec=d,d=vh(am,"onSelect"),0<d.length&&(r=new Tu("onSelect","select",null,r,o),s.push({event:r,listeners:d}),r.target=Ki)))}function Xr(s,r){var o={};return o[s.toLowerCase()]=r.toLowerCase(),o["Webkit"+s]="webkit"+r,o["Moz"+s]="moz"+r,o}var Xi={animationend:Xr("Animation","AnimationEnd"),animationiteration:Xr("Animation","AnimationIteration"),animationstart:Xr("Animation","AnimationStart"),transitionrun:Xr("Transition","TransitionRun"),transitionstart:Xr("Transition","TransitionStart"),transitioncancel:Xr("Transition","TransitionCancel"),transitionend:Xr("Transition","TransitionEnd")},lm={},U1={};pl&&(U1=document.createElement("div").style,"AnimationEvent"in window||(delete Xi.animationend.animation,delete Xi.animationiteration.animation,delete Xi.animationstart.animation),"TransitionEvent"in window||delete Xi.transitionend.transition);function Qr(s){if(lm[s])return lm[s];if(!Xi[s])return s;var r=Xi[s],o;for(o in r)if(r.hasOwnProperty(o)&&o in U1)return lm[s]=r[o];return s}var I1=Qr("animationend"),V1=Qr("animationiteration"),F1=Qr("animationstart"),M_=Qr("transitionrun"),z_=Qr("transitionstart"),L_=Qr("transitioncancel"),H1=Qr("transitionend"),q1=new Map,rm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rm.push("scrollEnd");function zn(s,r){q1.set(s,r),Xn(r,[s])}var Mu=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},rn=[],Qi=0,im=0;function zu(){for(var s=Qi,r=im=Qi=0;r<s;){var o=rn[r];rn[r++]=null;var d=rn[r];rn[r++]=null;var m=rn[r];rn[r++]=null;var g=rn[r];if(rn[r++]=null,d!==null&&m!==null){var _=d.pending;_===null?m.next=m:(m.next=_.next,_.next=m),d.pending=m}g!==0&&Y1(o,m,g)}}function Lu(s,r,o,d){rn[Qi++]=s,rn[Qi++]=r,rn[Qi++]=o,rn[Qi++]=d,im|=d,s.lanes|=d,s=s.alternate,s!==null&&(s.lanes|=d)}function om(s,r,o,d){return Lu(s,r,o,d),Du(s)}function Zr(s,r){return Lu(s,null,null,r),Du(s)}function Y1(s,r,o){s.lanes|=o;var d=s.alternate;d!==null&&(d.lanes|=o);for(var m=!1,g=s.return;g!==null;)g.childLanes|=o,d=g.alternate,d!==null&&(d.childLanes|=o),g.tag===22&&(s=g.stateNode,s===null||s._visibility&1||(m=!0)),s=g,g=g.return;return s.tag===3?(g=s.stateNode,m&&r!==null&&(m=31-is(o),s=g.hiddenUpdates,d=s[m],d===null?s[m]=[r]:d.push(r),r.lane=o|536870912),g):null}function Du(s){if(50<Zc)throw Zc=0,gp=null,Error(l(185));for(var r=s.return;r!==null;)s=r,r=s.return;return s.tag===3?s.stateNode:null}var Zi={};function D_(s,r,o,d){this.tag=s,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sa(s,r,o,d){return new D_(s,r,o,d)}function cm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function xl(s,r){var o=s.alternate;return o===null?(o=Sa(s.tag,r,s.key,s.mode),o.elementType=s.elementType,o.type=s.type,o.stateNode=s.stateNode,o.alternate=s,s.alternate=o):(o.pendingProps=r,o.type=s.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=s.flags&65011712,o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,r=s.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=s.sibling,o.index=s.index,o.ref=s.ref,o.refCleanup=s.refCleanup,o}function G1(s,r){s.flags&=65011714;var o=s.alternate;return o===null?(s.childLanes=0,s.lanes=r,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,r=o.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),s}function Bu(s,r,o,d,m,g){var _=0;if(d=s,typeof s=="function")cm(s)&&(_=1);else if(typeof s=="string")_=V3(s,o,me.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case z:return s=Sa(31,o,r,m),s.elementType=z,s.lanes=g,s;case N:return Jr(o.children,m,g,r);case A:_=8,m|=24;break;case S:return s=Sa(12,o,r,m|2),s.elementType=S,s.lanes=g,s;case O:return s=Sa(13,o,r,m),s.elementType=O,s.lanes=g,s;case R:return s=Sa(19,o,r,m),s.elementType=R,s.lanes=g,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case T:_=10;break e;case C:_=9;break e;case L:_=11;break e;case k:_=14;break e;case E:_=16,d=null;break e}_=29,o=Error(l(130,s===null?"null":typeof s,"")),d=null}return r=Sa(_,o,r,m),r.elementType=s,r.type=d,r.lanes=g,r}function Jr(s,r,o,d){return s=Sa(7,s,d,r),s.lanes=o,s}function dm(s,r,o){return s=Sa(6,s,null,r),s.lanes=o,s}function W1(s){var r=Sa(18,null,null,0);return r.stateNode=s,r}function um(s,r,o){return r=Sa(4,s.children!==null?s.children:[],s.key,r),r.lanes=o,r.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},r}var K1=new WeakMap;function on(s,r){if(typeof s=="object"&&s!==null){var o=K1.get(s);return o!==void 0?o:(r={value:s,source:r,stack:zs(r)},K1.set(s,r),r)}return{value:s,source:r,stack:zs(r)}}var Ji=[],$i=0,Pu=null,Tc=0,cn=[],dn=0,Jl=null,Zn=1,Jn="";function gl(s,r){Ji[$i++]=Tc,Ji[$i++]=Pu,Pu=s,Tc=r}function X1(s,r,o){cn[dn++]=Zn,cn[dn++]=Jn,cn[dn++]=Jl,Jl=s;var d=Zn;s=Jn;var m=32-is(d)-1;d&=~(1<<m),o+=1;var g=32-is(r)+m;if(30<g){var _=m-m%5;g=(d&(1<<_)-1).toString(32),d>>=_,m-=_,Zn=1<<32-is(r)+m|o<<m|d,Jn=g+s}else Zn=1<<g|o<<m|d,Jn=s}function hm(s){s.return!==null&&(gl(s,1),X1(s,1,0))}function fm(s){for(;s===Pu;)Pu=Ji[--$i],Ji[$i]=null,Tc=Ji[--$i],Ji[$i]=null;for(;s===Jl;)Jl=cn[--dn],cn[dn]=null,Jn=cn[--dn],cn[dn]=null,Zn=cn[--dn],cn[dn]=null}function Q1(s,r){cn[dn++]=Zn,cn[dn++]=Jn,cn[dn++]=Jl,Zn=r.id,Jn=r.overflow,Jl=s}var _s=null,Et=null,lt=!1,$l=null,un=!1,mm=Error(l(519));function er(s){var r=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rc(on(r,s)),mm}function Z1(s){var r=s.stateNode,o=s.type,d=s.memoizedProps;switch(r[Ue]=s,r[He]=d,o){case"dialog":et("cancel",r),et("close",r);break;case"iframe":case"object":case"embed":et("load",r);break;case"video":case"audio":for(o=0;o<$c.length;o++)et($c[o],r);break;case"source":et("error",r);break;case"img":case"image":case"link":et("error",r),et("load",r);break;case"details":et("toggle",r);break;case"input":et("invalid",r),d1(r,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":et("invalid",r);break;case"textarea":et("invalid",r),h1(r,d.value,d.defaultValue,d.children)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||d.suppressHydrationWarning===!0||m2(r.textContent,o)?(d.popover!=null&&(et("beforetoggle",r),et("toggle",r)),d.onScroll!=null&&et("scroll",r),d.onScrollEnd!=null&&et("scrollend",r),d.onClick!=null&&(r.onclick=ml),r=!0):r=!1,r||er(s,!0)}function J1(s){for(_s=s.return;_s;)switch(_s.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:_s=_s.return}}function eo(s){if(s!==_s)return!1;if(!lt)return J1(s),lt=!0,!1;var r=s.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=s.type,o=!(o!=="form"&&o!=="button")||Op(s.type,s.memoizedProps)),o=!o),o&&Et&&er(s),J1(s),r===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(l(317));Et=w2(s)}else if(r===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(l(317));Et=w2(s)}else r===27?(r=Et,mr(s.type)?(s=Bp,Bp=null,Et=s):Et=r):Et=_s?fn(s.stateNode.nextSibling):null;return!0}function $r(){Et=_s=null,lt=!1}function pm(){var s=$l;return s!==null&&(da===null?da=s:da.push.apply(da,s),$l=null),s}function Rc(s){$l===null?$l=[s]:$l.push(s)}var xm=Y(null),ei=null,bl=null;function tr(s,r,o){ue(xm,r._currentValue),r._currentValue=o}function yl(s){s._currentValue=xm.current,oe(xm)}function gm(s,r,o){for(;s!==null;){var d=s.alternate;if((s.childLanes&r)!==r?(s.childLanes|=r,d!==null&&(d.childLanes|=r)):d!==null&&(d.childLanes&r)!==r&&(d.childLanes|=r),s===o)break;s=s.return}}function bm(s,r,o,d){var m=s.child;for(m!==null&&(m.return=s);m!==null;){var g=m.dependencies;if(g!==null){var _=m.child;g=g.firstContext;e:for(;g!==null;){var M=g;g=m;for(var I=0;I<r.length;I++)if(M.context===r[I]){g.lanes|=o,M=g.alternate,M!==null&&(M.lanes|=o),gm(g.return,o,s),d||(_=null);break e}g=M.next}}else if(m.tag===18){if(_=m.return,_===null)throw Error(l(341));_.lanes|=o,g=_.alternate,g!==null&&(g.lanes|=o),gm(_,o,s),_=null}else _=m.child;if(_!==null)_.return=m;else for(_=m;_!==null;){if(_===s){_=null;break}if(m=_.sibling,m!==null){m.return=_.return,_=m;break}_=_.return}m=_}}function to(s,r,o,d){s=null;for(var m=r,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var _=m.alternate;if(_===null)throw Error(l(387));if(_=_.memoizedProps,_!==null){var M=m.type;_a(m.pendingProps.value,_.value)||(s!==null?s.push(M):s=[M])}}else if(m===tt.current){if(_=m.alternate,_===null)throw Error(l(387));_.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(s!==null?s.push(nd):s=[nd])}m=m.return}s!==null&&bm(r,s,o,d),r.flags|=262144}function Uu(s){for(s=s.firstContext;s!==null;){if(!_a(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function ti(s){ei=s,bl=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Ss(s){return $1(ei,s)}function Iu(s,r){return ei===null&&ti(s),$1(s,r)}function $1(s,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},bl===null){if(s===null)throw Error(l(308));bl=r,s.dependencies={lanes:0,firstContext:r},s.flags|=524288}else bl=bl.next=r;return o}var B_=typeof AbortController<"u"?AbortController:function(){var s=[],r=this.signal={aborted:!1,addEventListener:function(o,d){s.push(d)}};this.abort=function(){r.aborted=!0,s.forEach(function(o){return o()})}},P_=a.unstable_scheduleCallback,U_=a.unstable_NormalPriority,os={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ym(){return{controller:new B_,data:new Map,refCount:0}}function Oc(s){s.refCount--,s.refCount===0&&P_(U_,function(){s.controller.abort()})}var Mc=null,vm=0,so=0,ao=null;function I_(s,r){if(Mc===null){var o=Mc=[];vm=0,so=wp(),ao={status:"pending",value:void 0,then:function(d){o.push(d)}}}return vm++,r.then(ey,ey),r}function ey(){if(--vm===0&&Mc!==null){ao!==null&&(ao.status="fulfilled");var s=Mc;Mc=null,so=0,ao=null;for(var r=0;r<s.length;r++)(0,s[r])()}}function V_(s,r){var o=[],d={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return s.then(function(){d.status="fulfilled",d.value=r;for(var m=0;m<o.length;m++)(0,o[m])(r)},function(m){for(d.status="rejected",d.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),d}var ty=U.S;U.S=function(s,r){Pv=Jt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&I_(s,r),ty!==null&&ty(s,r)};var si=Y(null);function jm(){var s=si.current;return s!==null?s:wt.pooledCache}function Vu(s,r){r===null?ue(si,si.current):ue(si,r.pool)}function sy(){var s=jm();return s===null?null:{parent:os._currentValue,pool:s}}var no=Error(l(460)),Am=Error(l(474)),Fu=Error(l(542)),Hu={then:function(){}};function ay(s){return s=s.status,s==="fulfilled"||s==="rejected"}function ny(s,r,o){switch(o=s[o],o===void 0?s.push(r):o!==r&&(r.then(ml,ml),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw s=r.reason,ry(s),s;default:if(typeof r.status=="string")r.then(ml,ml);else{if(s=wt,s!==null&&100<s.shellSuspendCounter)throw Error(l(482));s=r,s.status="pending",s.then(function(d){if(r.status==="pending"){var m=r;m.status="fulfilled",m.value=d}},function(d){if(r.status==="pending"){var m=r;m.status="rejected",m.reason=d}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw s=r.reason,ry(s),s}throw ni=r,no}}function ai(s){try{var r=s._init;return r(s._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ni=o,no):o}}var ni=null;function ly(){if(ni===null)throw Error(l(459));var s=ni;return ni=null,s}function ry(s){if(s===no||s===Fu)throw Error(l(483))}var lo=null,zc=0;function qu(s){var r=zc;return zc+=1,lo===null&&(lo=[]),ny(lo,s,r)}function Lc(s,r){r=r.props.ref,s.ref=r!==void 0?r:null}function Yu(s,r){throw r.$$typeof===v?Error(l(525)):(s=Object.prototype.toString.call(r),Error(l(31,s==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":s)))}function iy(s){function r(H,F){if(s){var G=H.deletions;G===null?(H.deletions=[F],H.flags|=16):G.push(F)}}function o(H,F){if(!s)return null;for(;F!==null;)r(H,F),F=F.sibling;return null}function d(H){for(var F=new Map;H!==null;)H.key!==null?F.set(H.key,H):F.set(H.index,H),H=H.sibling;return F}function m(H,F){return H=xl(H,F),H.index=0,H.sibling=null,H}function g(H,F,G){return H.index=G,s?(G=H.alternate,G!==null?(G=G.index,G<F?(H.flags|=67108866,F):G):(H.flags|=67108866,F)):(H.flags|=1048576,F)}function _(H){return s&&H.alternate===null&&(H.flags|=67108866),H}function M(H,F,G,ne){return F===null||F.tag!==6?(F=dm(G,H.mode,ne),F.return=H,F):(F=m(F,G),F.return=H,F)}function I(H,F,G,ne){var Ne=G.type;return Ne===N?se(H,F,G.props.children,ne,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===E&&ai(Ne)===F.type)?(F=m(F,G.props),Lc(F,G),F.return=H,F):(F=Bu(G.type,G.key,G.props,null,H.mode,ne),Lc(F,G),F.return=H,F)}function W(H,F,G,ne){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=um(G,H.mode,ne),F.return=H,F):(F=m(F,G.children||[]),F.return=H,F)}function se(H,F,G,ne,Ne){return F===null||F.tag!==7?(F=Jr(G,H.mode,ne,Ne),F.return=H,F):(F=m(F,G),F.return=H,F)}function le(H,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=dm(""+F,H.mode,G),F.return=H,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case w:return G=Bu(F.type,F.key,F.props,null,H.mode,G),Lc(G,F),G.return=H,G;case j:return F=um(F,H.mode,G),F.return=H,F;case E:return F=ai(F),le(H,F,G)}if(ee(F)||V(F))return F=Jr(F,H.mode,G,null),F.return=H,F;if(typeof F.then=="function")return le(H,qu(F),G);if(F.$$typeof===T)return le(H,Iu(H,F),G);Yu(H,F)}return null}function Q(H,F,G,ne){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:M(H,F,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===Ne?I(H,F,G,ne):null;case j:return G.key===Ne?W(H,F,G,ne):null;case E:return G=ai(G),Q(H,F,G,ne)}if(ee(G)||V(G))return Ne!==null?null:se(H,F,G,ne,null);if(typeof G.then=="function")return Q(H,F,qu(G),ne);if(G.$$typeof===T)return Q(H,F,Iu(H,G),ne);Yu(H,G)}return null}function $(H,F,G,ne,Ne){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return H=H.get(G)||null,M(F,H,""+ne,Ne);
vendor: 4,086 bytes, line 9
9if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case w:return H=H.get(ne.key===null?G:ne.key)||null,I(F,H,ne,Ne);case j:return H=H.get(ne.key===null?G:ne.key)||null,W(F,H,ne,Ne);case E:return ne=ai(ne),$(H,F,G,ne,Ne)}if(ee(ne)||V(ne))return H=H.get(G)||null,se(F,H,ne,Ne,null);if(typeof ne.then=="function")return $(H,F,G,qu(ne),Ne);if(ne.$$typeof===T)return $(H,F,G,Iu(F,ne),Ne);Yu(F,ne)}return null}function ge(H,F,G,ne){for(var Ne=null,ct=null,ye=F,Be=F=0,at=null;ye!==null&&Be<G.length;Be++){ye.index>Be?(at=ye,ye=null):at=ye.sibling;var dt=Q(H,ye,G[Be],ne);if(dt===null){ye===null&&(ye=at);break}s&&ye&&dt.alternate===null&&r(H,ye),F=g(dt,F,Be),ct===null?Ne=dt:ct.sibling=dt,ct=dt,ye=at}if(Be===G.length)return o(H,ye),lt&&gl(H,Be),Ne;if(ye===null){for(;Be<G.length;Be++)ye=le(H,G[Be],ne),ye!==null&&(F=g(ye,F,Be),ct===null?Ne=ye:ct.sibling=ye,ct=ye);return lt&&gl(H,Be),Ne}for(ye=d(ye);Be<G.length;Be++)at=$(ye,H,Be,G[Be],ne),at!==null&&(s&&at.alternate!==null&&ye.delete(at.key===null?Be:at.key),F=g(at,F,Be),ct===null?Ne=at:ct.sibling=at,ct=at);return s&&ye.forEach(function(yr){return r(H,yr)}),lt&&gl(H,Be),Ne}function Se(H,F,G,ne){if(G==null)throw Error(l(151));for(var Ne=null,ct=null,ye=F,Be=F=0,at=null,dt=G.next();ye!==null&&!dt.done;Be++,dt=G.next()){ye.index>Be?(at=ye,ye=null):at=ye.sibling;var yr=Q(H,ye,dt.value,ne);if(yr===null){ye===null&&(ye=at);break}s&&ye&&yr.alternate===null&&r(H,ye),F=g(yr,F,Be),ct===null?Ne=yr:ct.sibling=yr,ct=yr,ye=at}if(dt.done)return o(H,ye),lt&&gl(H,Be),Ne;if(ye===null){for(;!dt.done;Be++,dt=G.next())dt=le(H,dt.value,ne),dt!==null&&(F=g(dt,F,Be),ct===null?Ne=dt:ct.sibling=dt,ct=dt);return lt&&gl(H,Be),Ne}for(ye=d(ye);!dt.done;Be++,dt=G.next())dt=$(ye,H,Be,dt.value,ne),dt!==null&&(s&&dt.alternate!==null&&ye.delete(dt.key===null?Be:dt.key),F=g(dt,F,Be),ct===null?Ne=dt:ct.sibling=dt,ct=dt);return s&&ye.forEach(function(J3){return r(H,J3)}),lt&&gl(H,Be),Ne}function vt(H,F,G,ne){if(typeof G=="object"&&G!==null&&G.type===N&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===N){if(F.tag===7){o(H,F.sibling),ne=m(F,G.props.children),ne.return=H,H=ne;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===E&&ai(Ne)===F.type){o(H,F.sibling),ne=m(F,G.props),Lc(ne,G),ne.return=H,H=ne;break e}o(H,F);break}else r(H,F);F=F.sibling}G.type===N?(ne=Jr(G.props.children,H.mode,ne,G.key),ne.return=H,H=ne):(ne=Bu(G.type,G.key,G.props,null,H.mode,ne),Lc(ne,G),ne.return=H,H=ne)}return _(H);case j:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){o(H,F.sibling),ne=m(F,G.children||[]),ne.return=H,H=ne;break e}else{o(H,F);break}else r(H,F);F=F.sibling}ne=um(G,H.mode,ne),ne.return=H,H=ne}return _(H);case E:return G=ai(G),vt(H,F,G,ne)}if(ee(G))return ge(H,F,G,ne);if(V(G)){if(Ne=V(G),typeof Ne!="function")throw Error(l(150));return G=Ne.call(G),Se(H,F,G,ne)}if(typeof G.then=="function")return vt(H,F,qu(G),ne);if(G.$$typeof===T)return vt(H,F,Iu(H,G),ne);Yu(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(o(H,F.sibling),ne=m(F,G),ne.return=H,H=ne):(o(H,F),ne=dm(G,H.mode,ne),ne.return=H,H=ne),_(H)):o(H,F)}return function(H,F,G,ne){try{zc=0;var Ne=vt(H,F,G,ne);return lo=null,Ne}catch(ye){if(ye===no||ye===Fu)throw ye;var ct=Sa(29,ye,null,H.mode);return ct.lanes=ne,ct.return=H,ct}}}var li=iy(!0),oy=iy(!1),sr=!1;function wm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nm(s,r){s=s.updateQueue,r.updateQueue===s&&(r.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function ar(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function nr(s,r,o){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(ut&2)!==0){var m=d.pending;
vendor: 4,494 bytes, line 9
9return m===null?r.next=r:(r.next=m.next,m.next=r),d.pending=r,r=Du(s),Y1(s,null,o),r}return Lu(s,d,r,o),Du(s)}function Dc(s,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var d=r.lanes;d&=s.pendingLanes,o|=d,r.lanes=o,Re(s,o)}}function _m(s,r){var o=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var m=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var _={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?m=g=_:g=g.next=_,o=o.next}while(o!==null);g===null?m=g=r:g=g.next=r}else m=g=r;o={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:d.shared,callbacks:d.callbacks},s.updateQueue=o;return}s=o.lastBaseUpdate,s===null?o.firstBaseUpdate=r:s.next=r,o.lastBaseUpdate=r}var Sm=!1;function Bc(){if(Sm){var s=ao;if(s!==null)throw s}}function Pc(s,r,o,d){Sm=!1;var m=s.updateQueue;sr=!1;var g=m.firstBaseUpdate,_=m.lastBaseUpdate,M=m.shared.pending;if(M!==null){m.shared.pending=null;var I=M,W=I.next;I.next=null,_===null?g=W:_.next=W,_=I;var se=s.alternate;se!==null&&(se=se.updateQueue,M=se.lastBaseUpdate,M!==_&&(M===null?se.firstBaseUpdate=W:M.next=W,se.lastBaseUpdate=I))}if(g!==null){var le=m.baseState;_=0,se=W=I=null,M=g;do{var Q=M.lane&-536870913,$=Q!==M.lane;if($?(st&Q)===Q:(d&Q)===Q){Q!==0&&Q===so&&(Sm=!0),se!==null&&(se=se.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var ge=s,Se=M;Q=r;var vt=o;switch(Se.tag){case 1:if(ge=Se.payload,typeof ge=="function"){le=ge.call(vt,le,Q);break e}le=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Se.payload,Q=typeof ge=="function"?ge.call(vt,le,Q):ge,Q==null)break e;le=b({},le,Q);break e;case 2:sr=!0}}Q=M.callback,Q!==null&&(s.flags|=64,$&&(s.flags|=8192),$=m.callbacks,$===null?m.callbacks=[Q]:$.push(Q))}else $={lane:Q,tag:M.tag,payload:M.payload,callback:M.callback,next:null},se===null?(W=se=$,I=le):se=se.next=$,_|=Q;if(M=M.next,M===null){if(M=m.shared.pending,M===null)break;$=M,M=$.next,$.next=null,m.lastBaseUpdate=$,m.shared.pending=null}}while(!0);se===null&&(I=le),m.baseState=I,m.firstBaseUpdate=W,m.lastBaseUpdate=se,g===null&&(m.shared.lanes=0),cr|=_,s.lanes=_,s.memoizedState=le}}function cy(s,r){if(typeof s!="function")throw Error(l(191,s));s.call(r)}function dy(s,r){var o=s.callbacks;if(o!==null)for(s.callbacks=null,s=0;s<o.length;s++)cy(o[s],r)}var ro=Y(null),Gu=Y(0);function uy(s,r){s=Cl,ue(Gu,s),ue(ro,r),Cl=s|r.baseLanes}function km(){ue(Gu,Cl),ue(ro,ro.current)}function Cm(){Cl=Gu.current,oe(ro),oe(Gu)}var ka=Y(null),hn=null;function lr(s){var r=s.alternate;ue(es,es.current&1),ue(ka,s),hn===null&&(r===null||ro.current!==null||r.memoizedState!==null)&&(hn=s)}function Em(s){ue(es,es.current),ue(ka,s),hn===null&&(hn=s)}function hy(s){s.tag===22?(ue(es,es.current),ue(ka,s),hn===null&&(hn=s)):rr()}function rr(){ue(es,es.current),ue(ka,ka.current)}function Ca(s){oe(ka),hn===s&&(hn=null),oe(es)}var es=Y(0);function Wu(s){for(var r=s;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Lp(o)||Dp(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break;for(;r.sibling===null;){if(r.return===null||r.return===s)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var vl=0,ze=null,bt=null,cs=null,Ku=!1,io=!1,ri=!1,Xu=0,Uc=0,oo=null,F_=0;function Kt(){throw Error(l(321))}function Tm(s,r){if(r===null)return!1;for(var o=0;o<r.length&&o<s.length;o++)if(!_a(s[o],r[o]))return!1;return!0}function Rm(s,r,o,d,m,g){return vl=g,ze=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,U.H=s===null||s.memoizedState===null?Xy:Gm,ri=!1,g=o(d,m),ri=!1,io&&(g=my(r,o,d,m)),fy(s),g}function fy(s){U.H=Fc;var r=bt!==null&&bt.next!==null;if(vl=0,cs=bt=ze=null,Ku=!1,Uc=0,oo=null,r)throw Error(l(300));s===null||ds||(s=s.dependencies,s!==null&&Uu(s)&&(ds=!0))}function my(s,r,o,d){ze=s;var m=0;do{if(io&&(oo=null),Uc=0,io=!1,25<=m)throw Error(l(301));if(m+=1,cs=bt=null,s.updateQueue!=null){var g=s.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}U.H=Qy,g=r(o,d)}while(io);return g}function H_(){var s=U.H,r=s.useState()[0];return r=typeof r.then=="function"?Ic(r):r,s=s.useState()[0],(bt!==null?bt.memoizedState:null)!==s&&(ze.flags|=1024),r}
vendor: 9,920 bytes, line 9
9function Om(){var s=Xu!==0;return Xu=0,s}function Mm(s,r,o){r.updateQueue=s.updateQueue,r.flags&=-2053,s.lanes&=~o}function zm(s){if(Ku){for(s=s.memoizedState;s!==null;){var r=s.queue;r!==null&&(r.pending=null),s=s.next}Ku=!1}vl=0,cs=bt=ze=null,io=!1,Uc=Xu=0,oo=null}function Qs(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cs===null?ze.memoizedState=cs=s:cs=cs.next=s,cs}function ts(){if(bt===null){var s=ze.alternate;s=s!==null?s.memoizedState:null}else s=bt.next;var r=cs===null?ze.memoizedState:cs.next;if(r!==null)cs=r,bt=s;else{if(s===null)throw ze.alternate===null?Error(l(467)):Error(l(310));bt=s,s={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},cs===null?ze.memoizedState=cs=s:cs=cs.next=s}return cs}function Qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ic(s){var r=Uc;return Uc+=1,oo===null&&(oo=[]),s=ny(oo,s,r),r=ze,(cs===null?r.memoizedState:cs.next)===null&&(r=r.alternate,U.H=r===null||r.memoizedState===null?Xy:Gm),s}function Zu(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Ic(s);if(s.$$typeof===T)return Ss(s)}throw Error(l(438,String(s)))}function Lm(s){var r=null,o=ze.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var d=ze.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(r={data:d.data.map(function(m){return m.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Qu(),ze.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(s),d=0;d<s;d++)o[d]=D;return r.index++,o}function jl(s,r){return typeof r=="function"?r(s):r}function Ju(s){var r=ts();return Dm(r,bt,s)}function Dm(s,r,o){var d=s.queue;if(d===null)throw Error(l(311));d.lastRenderedReducer=o;var m=s.baseQueue,g=d.pending;if(g!==null){if(m!==null){var _=m.next;m.next=g.next,g.next=_}r.baseQueue=m=g,d.pending=null}if(g=s.baseState,m===null)s.memoizedState=g;else{r=m.next;var M=_=null,I=null,W=r,se=!1;do{var le=W.lane&-536870913;if(le!==W.lane?(st&le)===le:(vl&le)===le){var Q=W.revertLane;if(Q===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),le===so&&(se=!0);else if((vl&Q)===Q){W=W.next,Q===so&&(se=!0);continue}else le={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},I===null?(M=I=le,_=g):I=I.next=le,ze.lanes|=Q,cr|=Q;le=W.action,ri&&o(g,le),g=W.hasEagerState?W.eagerState:o(g,le)}else Q={lane:le,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},I===null?(M=I=Q,_=g):I=I.next=Q,ze.lanes|=le,cr|=le;W=W.next}while(W!==null&&W!==r);if(I===null?_=g:I.next=M,!_a(g,s.memoizedState)&&(ds=!0,se&&(o=ao,o!==null)))throw o;s.memoizedState=g,s.baseState=_,s.baseQueue=I,d.lastRenderedState=g}return m===null&&(d.lanes=0),[s.memoizedState,d.dispatch]}function Bm(s){var r=ts(),o=r.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=s;var d=o.dispatch,m=o.pending,g=r.memoizedState;if(m!==null){o.pending=null;var _=m=m.next;do g=s(g,_.action),_=_.next;while(_!==m);_a(g,r.memoizedState)||(ds=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),o.lastRenderedState=g}return[g,d]}function py(s,r,o){var d=ze,m=ts(),g=lt;if(g){if(o===void 0)throw Error(l(407));o=o()}else o=r();var _=!_a((bt||m).memoizedState,o);if(_&&(m.memoizedState=o,ds=!0),m=m.queue,Im(by.bind(null,d,m,s),[s]),m.getSnapshot!==r||_||cs!==null&&cs.memoizedState.tag&1){if(d.flags|=2048,co(9,{destroy:void 0},gy.bind(null,d,m,o,r),null),wt===null)throw Error(l(349));g||(vl&127)!==0||xy(d,r,o)}return o}function xy(s,r,o){s.flags|=16384,s={getSnapshot:r,value:o},r=ze.updateQueue,r===null?(r=Qu(),ze.updateQueue=r,r.stores=[s]):(o=r.stores,o===null?r.stores=[s]:o.push(s))}function gy(s,r,o,d){r.value=o,r.getSnapshot=d,yy(r)&&vy(s)}function by(s,r,o){return o(function(){yy(r)&&vy(s)})}function yy(s){var r=s.getSnapshot;s=s.value;try{var o=r();return!_a(s,o)}catch{return!0}}function vy(s){var r=Zr(s,2);r!==null&&ua(r,s,2)}function Pm(s){var r=Qs();if(typeof s=="function"){var o=s;if(s=o(),ri){Ws(!0);try{o()}finally{Ws(!1)}}}return r.memoizedState=r.baseState=s,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:s},r}function jy(s,r,o,d){return s.baseState=o,Dm(s,bt,typeof d=="function"?d:jl)}function q_(s,r,o,d,m){if(th(s))throw Error(l(485));if(s=r.action,s!==null){var g={payload:m,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){g.listeners.push(_)}};U.T!==null?o(!0):g.isTransition=!1,d(g),o=r.pending,o===null?(g.next=r.pending=g,Ay(r,g)):(g.next=o.next,r.pending=o.next=g)}}function Ay(s,r){var o=r.action,d=r.payload,m=s.state;if(r.isTransition){var g=U.T,_={};U.T=_;try{var M=o(m,d),I=U.S;I!==null&&I(_,M),wy(s,r,M)}catch(W){Um(s,r,W)}finally{g!==null&&_.types!==null&&(g.types=_.types),U.T=g}}else try{g=o(m,d),wy(s,r,g)}catch(W){Um(s,r,W)}}function wy(s,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){Ny(s,r,d)},function(d){return Um(s,r,d)}):Ny(s,r,o)}function Ny(s,r,o){r.status="fulfilled",r.value=o,_y(r),s.state=o,r=s.pending,r!==null&&(o=r.next,o===r?s.pending=null:(o=o.next,r.next=o,Ay(s,o)))}function Um(s,r,o){var d=s.pending;if(s.pending=null,d!==null){d=d.next;do r.status="rejected",r.reason=o,_y(r),r=r.next;while(r!==d)}s.action=null}function _y(s){s=s.listeners;for(var r=0;r<s.length;r++)(0,s[r])()}function Sy(s,r){return r}function ky(s,r){if(lt){var o=wt.formState;if(o!==null){e:{var d=ze;if(lt){if(Et){t:{for(var m=Et,g=un;m.nodeType!==8;){if(!g){m=null;break t}if(m=fn(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){Et=fn(m.nextSibling),d=m.data==="F!";break e}}er(d)}d=!1}d&&(r=o[0])}}return o=Qs(),o.memoizedState=o.baseState=r,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sy,lastRenderedState:r},o.queue=d,o=Gy.bind(null,ze,d),d.dispatch=o,d=Pm(!1),g=Ym.bind(null,ze,!1,d.queue),d=Qs(),m={state:r,dispatch:null,action:s,pending:null},d.queue=m,o=q_.bind(null,ze,m,g,o),m.dispatch=o,d.memoizedState=s,[r,o,!1]}function Cy(s){var r=ts();return Ey(r,bt,s)}function Ey(s,r,o){if(r=Dm(s,r,Sy)[0],s=Ju(jl)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var d=Ic(r)}catch(_){throw _===no?Fu:_}else d=r;r=ts();var m=r.queue,g=m.dispatch;return o!==r.memoizedState&&(ze.flags|=2048,co(9,{destroy:void 0},Y_.bind(null,m,o),null)),[d,g,s]}function Y_(s,r){s.action=r}function Ty(s){var r=ts(),o=bt;if(o!==null)return Ey(r,o,s);ts(),r=r.memoizedState,o=ts();var d=o.queue.dispatch;return o.memoizedState=s,[r,d,!1]}function co(s,r,o,d){return s={tag:s,create:o,deps:d,inst:r,next:null},r=ze.updateQueue,r===null&&(r=Qu(),ze.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=s.next=s:(d=o.next,o.next=s,s.next=d,r.lastEffect=s),s}function Ry(){return ts().memoizedState}function $u(s,r,o,d){var m=Qs();ze.flags|=s,m.memoizedState=co(1|r,{destroy:void 0},o,d===void 0?null:d)}function eh(s,r,o,d){var m=ts();d=d===void 0?null:d;var g=m.memoizedState.inst;bt!==null&&d!==null&&Tm(d,bt.memoizedState.deps)?m.memoizedState=co(r,g,o,d):(ze.flags|=s,m.memoizedState=co(1|r,g,o,d))}function Oy(s,r){$u(8390656,8,s,r)}function Im(s,r){eh(2048,8,s,r)}function G_(s){ze.flags|=4;var r=ze.updateQueue;if(r===null)r=Qu(),ze.updateQueue=r,r.events=[s];else{var o=r.events;o===null?r.events=[s]:o.push(s)}}function My(s){var r=ts().memoizedState;return G_({ref:r,nextImpl:s}),function(){if((ut&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}function zy(s,r){return eh(4,2,s,r)}function Ly(s,r){return eh(4,4,s,r)}function Dy(s,r){if(typeof r=="function"){s=s();var o=r(s);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return s=s(),r.current=s,function(){r.current=null}}function By(s,r,o){o=o!=null?o.concat([s]):null,eh(4,4,Dy.bind(null,r,s),o)}function Vm(){}function Py(s,r){var o=ts();r=r===void 0?null:r;var d=o.memoizedState;return r!==null&&Tm(r,d[1])?d[0]:(o.memoizedState=[s,r],s)}function Uy(s,r){var o=ts();r=r===void 0?null:r;var d=o.memoizedState;if(r!==null&&Tm(r,d[1]))return d[0];if(d=s(),ri){Ws(!0);try{s()}finally{Ws(!1)}}return o.memoizedState=[d,r],d}function Fm(s,r,o){return o===void 0||(vl&1073741824)!==0&&(st&261930)===0?s.memoizedState=r:(s.memoizedState=o,s=Iv(),ze.lanes|=s,cr|=s,o)}function Iy(s,r,o,d){return _a(o,r)?o:ro.current!==null?(s=Fm(s,o,d),_a(s,r)||(ds=!0),s):(vl&42)===0||(vl&1073741824)!==0&&(st&261930)===0?(ds=!0,s.memoizedState=o):(s=Iv(),ze.lanes|=s,cr|=s,r)}function Vy(s,r,o,d,m){var g=B.p;B.p=g!==0&&8>g?g:8;var _=U.T,M={};U.T=M,Ym(s,!1,r,o);try{var I=m(),W=U.S;if(W!==null&&W(M,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var se=V_(I,d);Vc(s,r,se,Ra(s))}else Vc(s,r,d,Ra(s))}catch(le){Vc(s,r,{then:function(){},status:"rejected",reason:le},Ra())}finally{B.p=g,_!==null&&M.types!==null&&(_.types=M.types),U.T=_}}function W_(){}function Hm(s,r,o,d){if(s.tag!==5)throw Error(l(476));var m=Fy(s).queue;Vy(s,m,r,X,o===null?W_:function(){return Hy(s),o(d)})}function Fy(s){var r=s.memoizedState;if(r!==null)return r;r={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:X},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:o},next:null},s.memoizedState=r,s=s.alternate,s!==null&&(s.memoizedState=r),r}function Hy(s){var r=Fy(s);r.next===null&&(r=s.alternate.memoizedState),Vc(s,r.next.queue,{},Ra())}function qm(){return Ss(nd)}function qy(){return ts().memoizedState}function Yy(){return ts().memoizedState}function K_(s){for(var r=s.return;r!==null;){switch(r.tag){case 24:case 3:var o=Ra();
vendor: 9,320 bytes, line 9
9s=ar(o);var d=nr(r,s,o);d!==null&&(ua(d,r,o),Dc(d,r,o)),r={cache:ym()},s.payload=r;return}r=r.return}}function X_(s,r,o){var d=Ra();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},th(s)?Wy(r,o):(o=om(s,r,o,d),o!==null&&(ua(o,s,d),Ky(o,r,d)))}function Gy(s,r,o){var d=Ra();Vc(s,r,o,d)}function Vc(s,r,o,d){var m={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(th(s))Wy(r,m);else{var g=s.alternate;if(s.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var _=r.lastRenderedState,M=g(_,o);if(m.hasEagerState=!0,m.eagerState=M,_a(M,_))return Lu(s,r,m,0),wt===null&&zu(),!1}catch{}if(o=om(s,r,m,d),o!==null)return ua(o,s,d),Ky(o,r,d),!0}return!1}function Ym(s,r,o,d){if(d={lane:2,revertLane:wp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},th(s)){if(r)throw Error(l(479))}else r=om(s,o,d,2),r!==null&&ua(r,s,2)}function th(s){var r=s.alternate;return s===ze||r!==null&&r===ze}function Wy(s,r){io=Ku=!0;var o=s.pending;o===null?r.next=r:(r.next=o.next,o.next=r),s.pending=r}function Ky(s,r,o){if((o&4194048)!==0){var d=r.lanes;d&=s.pendingLanes,o|=d,r.lanes=o,Re(s,o)}}var Fc={readContext:Ss,use:Zu,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};Fc.useEffectEvent=Kt;var Xy={readContext:Ss,use:Zu,useCallback:function(s,r){return Qs().memoizedState=[s,r===void 0?null:r],s},useContext:Ss,useEffect:Oy,useImperativeHandle:function(s,r,o){o=o!=null?o.concat([s]):null,$u(4194308,4,Dy.bind(null,r,s),o)},useLayoutEffect:function(s,r){return $u(4194308,4,s,r)},useInsertionEffect:function(s,r){$u(4,2,s,r)},useMemo:function(s,r){var o=Qs();r=r===void 0?null:r;var d=s();if(ri){Ws(!0);try{s()}finally{Ws(!1)}}return o.memoizedState=[d,r],d},useReducer:function(s,r,o){var d=Qs();if(o!==void 0){var m=o(r);if(ri){Ws(!0);try{o(r)}finally{Ws(!1)}}}else m=r;return d.memoizedState=d.baseState=m,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:m},d.queue=s,s=s.dispatch=X_.bind(null,ze,s),[d.memoizedState,s]},useRef:function(s){var r=Qs();return s={current:s},r.memoizedState=s},useState:function(s){s=Pm(s);var r=s.queue,o=Gy.bind(null,ze,r);return r.dispatch=o,[s.memoizedState,o]},useDebugValue:Vm,useDeferredValue:function(s,r){var o=Qs();return Fm(o,s,r)},useTransition:function(){var s=Pm(!1);return s=Vy.bind(null,ze,s.queue,!0,!1),Qs().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,r,o){var d=ze,m=Qs();if(lt){if(o===void 0)throw Error(l(407));o=o()}else{if(o=r(),wt===null)throw Error(l(349));(st&127)!==0||xy(d,r,o)}m.memoizedState=o;var g={value:o,getSnapshot:r};return m.queue=g,Oy(by.bind(null,d,g,s),[s]),d.flags|=2048,co(9,{destroy:void 0},gy.bind(null,d,g,o,r),null),o},useId:function(){var s=Qs(),r=wt.identifierPrefix;if(lt){var o=Jn,d=Zn;o=(d&~(1<<32-is(d)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Xu++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=F_++,r="_"+r+"r_"+o.toString(32)+"_";return s.memoizedState=r},useHostTransitionStatus:qm,useFormState:ky,useActionState:ky,useOptimistic:function(s){var r=Qs();r.memoizedState=r.baseState=s;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=Ym.bind(null,ze,!0,o),o.dispatch=r,[s,r]},useMemoCache:Lm,useCacheRefresh:function(){return Qs().memoizedState=K_.bind(null,ze)},useEffectEvent:function(s){var r=Qs(),o={impl:s};return r.memoizedState=o,function(){if((ut&2)!==0)throw Error(l(440));return o.impl.apply(void 0,arguments)}}},Gm={readContext:Ss,use:Zu,useCallback:Py,useContext:Ss,useEffect:Im,useImperativeHandle:By,useInsertionEffect:zy,useLayoutEffect:Ly,useMemo:Uy,useReducer:Ju,useRef:Ry,useState:function(){return Ju(jl)},useDebugValue:Vm,useDeferredValue:function(s,r){var o=ts();return Iy(o,bt.memoizedState,s,r)},useTransition:function(){var s=Ju(jl)[0],r=ts().memoizedState;return[typeof s=="boolean"?s:Ic(s),r]},useSyncExternalStore:py,useId:qy,useHostTransitionStatus:qm,useFormState:Cy,useActionState:Cy,useOptimistic:function(s,r){var o=ts();return jy(o,bt,s,r)},useMemoCache:Lm,useCacheRefresh:Yy};Gm.useEffectEvent=My;var Qy={readContext:Ss,use:Zu,useCallback:Py,useContext:Ss,useEffect:Im,useImperativeHandle:By,useInsertionEffect:zy,useLayoutEffect:Ly,useMemo:Uy,useReducer:Bm,useRef:Ry,useState:function(){return Bm(jl)},useDebugValue:Vm,useDeferredValue:function(s,r){var o=ts();return bt===null?Fm(o,s,r):Iy(o,bt.memoizedState,s,r)},useTransition:function(){var s=Bm(jl)[0],r=ts().memoizedState;return[typeof s=="boolean"?s:Ic(s),r]},useSyncExternalStore:py,useId:qy,useHostTransitionStatus:qm,useFormState:Ty,useActionState:Ty,useOptimistic:function(s,r){var o=ts();return bt!==null?jy(o,bt,s,r):(o.baseState=s,[s,o.queue.dispatch])},useMemoCache:Lm,useCacheRefresh:Yy};Qy.useEffectEvent=My;function Wm(s,r,o,d){r=s.memoizedState,o=o(d,r),o=o==null?r:b({},r,o),s.memoizedState=o,s.lanes===0&&(s.updateQueue.baseState=o)}var Km={enqueueSetState:function(s,r,o){s=s._reactInternals;var d=Ra(),m=ar(d);m.payload=r,o!=null&&(m.callback=o),r=nr(s,m,d),r!==null&&(ua(r,s,d),Dc(r,s,d))},enqueueReplaceState:function(s,r,o){s=s._reactInternals;var d=Ra(),m=ar(d);m.tag=1,m.payload=r,o!=null&&(m.callback=o),r=nr(s,m,d),r!==null&&(ua(r,s,d),Dc(r,s,d))},enqueueForceUpdate:function(s,r){s=s._reactInternals;var o=Ra(),d=ar(o);d.tag=2,r!=null&&(d.callback=r),r=nr(s,d,o),r!==null&&(ua(r,s,o),Dc(r,s,o))}};function Zy(s,r,o,d,m,g,_){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,g,_):r.prototype&&r.prototype.isPureReactComponent?!Cc(o,d)||!Cc(m,g):!0}function Jy(s,r,o,d){s=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,d),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,d),r.state!==s&&Km.enqueueReplaceState(r,r.state,null)}function ii(s,r){var o=r;if("ref"in r){o={};for(var d in r)d!=="ref"&&(o[d]=r[d])}if(s=s.defaultProps){o===r&&(o=b({},o));for(var m in s)o[m]===void 0&&(o[m]=s[m])}return o}function $y(s){Mu(s)}function ev(s){console.error(s)}function tv(s){Mu(s)}function sh(s,r){try{var o=s.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(d){setTimeout(function(){throw d})}}function sv(s,r,o){try{var d=s.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Xm(s,r,o){return o=ar(o),o.tag=3,o.payload={element:null},o.callback=function(){sh(s,r)},o}function av(s){return s=ar(s),s.tag=3,s}function nv(s,r,o,d){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var g=d.value;s.payload=function(){return m(g)},s.callback=function(){sv(r,o,d)}}var _=o.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(s.callback=function(){sv(r,o,d),typeof m!="function"&&(dr===null?dr=new Set([this]):dr.add(this));var M=d.stack;this.componentDidCatch(d.value,{componentStack:M!==null?M:""})})}function Q_(s,r,o,d,m){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(r=o.alternate,r!==null&&to(r,o,m,!0),o=ka.current,o!==null){switch(o.tag){case 31:case 13:return hn===null?mh():o.alternate===null&&Xt===0&&(Xt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,d===Hu?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([d]):r.add(d),vp(s,d,m)),!1;case 22:return o.flags|=65536,d===Hu?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([d]):o.add(d)),vp(s,d,m)),!1}throw Error(l(435,o.tag))}return vp(s,d,m),mh(),!1}if(lt)return r=ka.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=m,d!==mm&&(s=Error(l(422),{cause:d}),Rc(on(s,o)))):(d!==mm&&(r=Error(l(423),{cause:d}),Rc(on(r,o))),s=s.current.alternate,s.flags|=65536,m&=-m,s.lanes|=m,d=on(d,o),m=Xm(s.stateNode,d,m),_m(s,m),Xt!==4&&(Xt=2)),!1;var g=Error(l(520),{cause:d});if(g=on(g,o),Qc===null?Qc=[g]:Qc.push(g),Xt!==4&&(Xt=2),r===null)return!0;d=on(d,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,s=m&-m,o.lanes|=s,s=Xm(o.stateNode,d,s),_m(o,s),!1;case 1:if(r=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(dr===null||!dr.has(g))))return o.flags|=65536,m&=-m,o.lanes|=m,m=av(m),nv(m,s,o,d),_m(o,m),!1}o=o.return}while(o!==null);return!1}var Qm=Error(l(461)),ds=!1;function ks(s,r,o,d){r.child=s===null?oy(r,null,o,d):li(r,s.child,o,d)}function lv(s,r,o,d,m){o=o.render;var g=r.ref;if("ref"in d){var _={};for(var M in d)M!=="ref"&&(_[M]=d[M])}else _=d;return ti(r),d=Rm(s,r,o,_,g,m),M=Om(),s!==null&&!ds?(Mm(s,r,m),Al(s,r,m)):(lt&&M&&hm(r),r.flags|=1,ks(s,r,d,m),r.child)}function rv(s,r,o,d,m){if(s===null){var g=o.type;return typeof g=="function"&&!cm(g)&&g.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=g,iv(s,r,g,d,m)):(s=Bu(o.type,null,d,r,r.mode,m),s.ref=r.ref,s.return=r,r.child=s)}if(g=s.child,!np(s,m)){var _=g.memoizedProps;
vendor: 9,398 bytes, line 9
9if(o=o.compare,o=o!==null?o:Cc,o(_,d)&&s.ref===r.ref)return Al(s,r,m)}return r.flags|=1,s=xl(g,d),s.ref=r.ref,s.return=r,r.child=s}function iv(s,r,o,d,m){if(s!==null){var g=s.memoizedProps;if(Cc(g,d)&&s.ref===r.ref)if(ds=!1,r.pendingProps=d=g,np(s,m))(s.flags&131072)!==0&&(ds=!0);else return r.lanes=s.lanes,Al(s,r,m)}return Zm(s,r,o,d,m)}function ov(s,r,o,d){var m=d.children,g=s!==null?s.memoizedState:null;if(s===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((r.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,s!==null){for(d=r.child=s.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;d=m&~g}else d=0,r.child=null;return cv(s,r,g,o,d)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},s!==null&&Vu(r,g!==null?g.cachePool:null),g!==null?uy(r,g):km(),hy(r);else return d=r.lanes=536870912,cv(s,r,g!==null?g.baseLanes|o:o,o,d)}else g!==null?(Vu(r,g.cachePool),uy(r,g),rr(),r.memoizedState=null):(s!==null&&Vu(r,null),km(),rr());return ks(s,r,m,o),r.child}function Hc(s,r){return s!==null&&s.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function cv(s,r,o,d,m){var g=jm();return g=g===null?null:{parent:os._currentValue,pool:g},r.memoizedState={baseLanes:o,cachePool:g},s!==null&&Vu(r,null),km(),hy(r),s!==null&&to(s,r,d,!0),r.childLanes=m,null}function ah(s,r){return r=lh({mode:r.mode,children:r.children},s.mode),r.ref=s.ref,s.child=r,r.return=s,r}function dv(s,r,o){return li(r,s.child,null,o),s=ah(r,r.pendingProps),s.flags|=2,Ca(r),r.memoizedState=null,s}function Z_(s,r,o){var d=r.pendingProps,m=(r.flags&128)!==0;if(r.flags&=-129,s===null){if(lt){if(d.mode==="hidden")return s=ah(r,d),r.lanes=536870912,Hc(null,s);if(Em(r),(s=Et)?(s=A2(s,un),s=s!==null&&s.data==="&"?s:null,s!==null&&(r.memoizedState={dehydrated:s,treeContext:Jl!==null?{id:Zn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},o=W1(s),o.return=r,r.child=o,_s=r,Et=null)):s=null,s===null)throw er(r);return r.lanes=536870912,null}return ah(r,d)}var g=s.memoizedState;if(g!==null){var _=g.dehydrated;if(Em(r),m)if(r.flags&256)r.flags&=-257,r=dv(s,r,o);else if(r.memoizedState!==null)r.child=s.child,r.flags|=128,r=null;else throw Error(l(558));else if(ds||to(s,r,o,!1),m=(o&s.childLanes)!==0,ds||m){if(d=wt,d!==null&&(_=we(d,o),_!==0&&_!==g.retryLane))throw g.retryLane=_,Zr(s,_),ua(d,s,_),Qm;mh(),r=dv(s,r,o)}else s=g.treeContext,Et=fn(_.nextSibling),_s=r,lt=!0,$l=null,un=!1,s!==null&&Q1(r,s),r=ah(r,d),r.flags|=4096;return r}return s=xl(s.child,{mode:d.mode,children:d.children}),s.ref=r.ref,r.child=s,s.return=r,s}function nh(s,r){var o=r.ref;if(o===null)s!==null&&s.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(l(284));(s===null||s.ref!==o)&&(r.flags|=4194816)}}function Zm(s,r,o,d,m){return ti(r),o=Rm(s,r,o,d,void 0,m),d=Om(),s!==null&&!ds?(Mm(s,r,m),Al(s,r,m)):(lt&&d&&hm(r),r.flags|=1,ks(s,r,o,m),r.child)}function uv(s,r,o,d,m,g){return ti(r),r.updateQueue=null,o=my(r,d,o,m),fy(s),d=Om(),s!==null&&!ds?(Mm(s,r,g),Al(s,r,g)):(lt&&d&&hm(r),r.flags|=1,ks(s,r,o,g),r.child)}function hv(s,r,o,d,m){if(ti(r),r.stateNode===null){var g=Zi,_=o.contextType;typeof _=="object"&&_!==null&&(g=Ss(_)),g=new o(d,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Km,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=d,g.state=r.memoizedState,g.refs={},wm(r),_=o.contextType,g.context=typeof _=="object"&&_!==null?Ss(_):Zi,g.state=r.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Wm(r,o,_,d),g.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(_=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),_!==g.state&&Km.enqueueReplaceState(g,g.state,null),Pc(r,d,g,m),Bc(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),d=!0}else if(s===null){g=r.stateNode;var M=r.memoizedProps,I=ii(o,M);g.props=I;var W=g.context,se=o.contextType;_=Zi,typeof se=="object"&&se!==null&&(_=Ss(se));var le=o.getDerivedStateFromProps;se=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function",M=r.pendingProps!==M,se||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(M||W!==_)&&Jy(r,g,d,_),sr=!1;var Q=r.memoizedState;g.state=Q,Pc(r,d,g,m),Bc(),W=r.memoizedState,M||Q!==W||sr?(typeof le=="function"&&(Wm(r,o,le,d),W=r.memoizedState),(I=sr||Zy(r,o,I,d,Q,W,_))?(se||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=d,r.memoizedState=W),g.props=d,g.state=W,g.context=_,d=I):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),d=!1)}else{g=r.stateNode,Nm(s,r),_=r.memoizedProps,se=ii(o,_),g.props=se,le=r.pendingProps,Q=g.context,W=o.contextType,I=Zi,typeof W=="object"&&W!==null&&(I=Ss(W)),M=o.getDerivedStateFromProps,(W=typeof M=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_!==le||Q!==I)&&Jy(r,g,d,I),sr=!1,Q=r.memoizedState,g.state=Q,Pc(r,d,g,m),Bc();var $=r.memoizedState;_!==le||Q!==$||sr||s!==null&&s.dependencies!==null&&Uu(s.dependencies)?(typeof M=="function"&&(Wm(r,o,M,d),$=r.memoizedState),(se=sr||Zy(r,o,se,d,Q,$,I)||s!==null&&s.dependencies!==null&&Uu(s.dependencies))?(W||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(d,$,I),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(d,$,I)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||_===s.memoizedProps&&Q===s.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===s.memoizedProps&&Q===s.memoizedState||(r.flags|=1024),r.memoizedProps=d,r.memoizedState=$),g.props=d,g.state=$,g.context=I,d=se):(typeof g.componentDidUpdate!="function"||_===s.memoizedProps&&Q===s.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||_===s.memoizedProps&&Q===s.memoizedState||(r.flags|=1024),d=!1)}return g=d,nh(s,r),d=(r.flags&128)!==0,g||d?(g=r.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,s!==null&&d?(r.child=li(r,s.child,null,m),r.child=li(r,null,o,m)):ks(s,r,o,m),r.memoizedState=g.state,s=r.child):s=Al(s,r,m),s}function fv(s,r,o,d){return $r(),r.flags|=256,ks(s,r,o,d),r.child}var Jm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $m(s){return{baseLanes:s,cachePool:sy()}}function ep(s,r,o){return s=s!==null?s.childLanes&~o:0,r&&(s|=Ta),s}function mv(s,r,o){var d=r.pendingProps,m=!1,g=(r.flags&128)!==0,_;if((_=g)||(_=s!==null&&s.memoizedState===null?!1:(es.current&2)!==0),_&&(m=!0,r.flags&=-129),_=(r.flags&32)!==0,r.flags&=-33,s===null){if(lt){if(m?lr(r):rr(),(s=Et)?(s=A2(s,un),s=s!==null&&s.data!=="&"?s:null,s!==null&&(r.memoizedState={dehydrated:s,treeContext:Jl!==null?{id:Zn,overflow:Jn}:null,retryLane:536870912,hydrationErrors:null},o=W1(s),o.return=r,r.child=o,_s=r,Et=null)):s=null,s===null)throw er(r);return Dp(s)?r.lanes=32:r.lanes=536870912,null}var M=d.children;return d=d.fallback,m?(rr(),m=r.mode,M=lh({mode:"hidden",children:M},m),d=Jr(d,m,o,null),M.return=r,d.return=r,M.sibling=d,r.child=M,d=r.child,d.memoizedState=$m(o),d.childLanes=ep(s,_,o),r.memoizedState=Jm,Hc(null,d)):(lr(r),tp(r,M))}var I=s.memoizedState;if(I!==null&&(M=I.dehydrated,M!==null)){if(g)r.flags&256?(lr(r),r.flags&=-257,r=sp(s,r,o)):r.memoizedState!==null?(rr(),r.child=s.child,r.flags|=128,r=null):(rr(),M=d.fallback,m=r.mode,d=lh({mode:"visible",children:d.children},m),M=Jr(M,m,o,null),M.flags|=2,d.return=r,M.return=r,d.sibling=M,r.child=d,li(r,s.child,null,o),d=r.child,d.memoizedState=$m(o),d.childLanes=ep(s,_,o),r.memoizedState=Jm,r=Hc(null,d));else if(lr(r),Dp(M)){if(_=M.nextSibling&&M.nextSibling.dataset,_)var W=_.dgst;_=W,d=Error(l(419)),d.stack="",d.digest=_,Rc({value:d,source:null,stack:null}),r=sp(s,r,o)}else if(ds||to(s,r,o,!1),_=(o&s.childLanes)!==0,ds||_){if(_=wt,_!==null&&(d=we(_,o),d!==0&&d!==I.retryLane))throw I.retryLane=d,Zr(s,d),ua(_,s,d),Qm;Lp(M)||mh(),r=sp(s,r,o)}else Lp(M)?(r.flags|=192,r.child=s.child,r=null):(s=I.treeContext,Et=fn(M.nextSibling),_s=r,lt=!0,$l=null,un=!1,s!==null&&Q1(r,s),r=tp(r,d.children),r.flags|=4096);return r}return m?(rr(),M=d.fallback,m=r.mode,I=s.child,W=I.sibling,d=xl(I,{mode:"hidden",children:d.children}),d.subtreeFlags=I.subtreeFlags&65011712,W!==null?M=xl(W,M):(M=Jr(M,m,o,null),M.flags|=2),M.return=r,d.return=r,d.sibling=M,r.child=d,Hc(null,d),d=r.child,M=s.child.memoizedState,M===null?M=$m(o):(m=M.cachePool,m!==null?(I=os._currentValue,m=m.parent!==I?{parent:I,pool:I}
vendor: 4,817 bytes, line 9
9:m):m=sy(),M={baseLanes:M.baseLanes|o,cachePool:m}),d.memoizedState=M,d.childLanes=ep(s,_,o),r.memoizedState=Jm,Hc(s.child,d)):(lr(r),o=s.child,s=o.sibling,o=xl(o,{mode:"visible",children:d.children}),o.return=r,o.sibling=null,s!==null&&(_=r.deletions,_===null?(r.deletions=[s],r.flags|=16):_.push(s)),r.child=o,r.memoizedState=null,o)}function tp(s,r){return r=lh({mode:"visible",children:r},s.mode),r.return=s,s.child=r}function lh(s,r){return s=Sa(22,s,null,r),s.lanes=0,s}function sp(s,r,o){return li(r,s.child,null,o),s=tp(r,r.pendingProps.children),s.flags|=2,r.memoizedState=null,s}function pv(s,r,o){s.lanes|=r;var d=s.alternate;d!==null&&(d.lanes|=r),gm(s.return,r,o)}function ap(s,r,o,d,m,g){var _=s.memoizedState;_===null?s.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:m,treeForkCount:g}:(_.isBackwards=r,_.rendering=null,_.renderingStartTime=0,_.last=d,_.tail=o,_.tailMode=m,_.treeForkCount=g)}function xv(s,r,o){var d=r.pendingProps,m=d.revealOrder,g=d.tail;d=d.children;var _=es.current,M=(_&2)!==0;if(M?(_=_&1|2,r.flags|=128):_&=1,ue(es,_),ks(s,r,d,o),d=lt?Tc:0,!M&&s!==null&&(s.flags&128)!==0)e:for(s=r.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&pv(s,o,r);else if(s.tag===19)pv(s,o,r);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(m){case"forwards":for(o=r.child,m=null;o!==null;)s=o.alternate,s!==null&&Wu(s)===null&&(m=o),o=o.sibling;o=m,o===null?(m=r.child,r.child=null):(m=o.sibling,o.sibling=null),ap(r,!1,m,o,g,d);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=r.child,r.child=null;m!==null;){if(s=m.alternate,s!==null&&Wu(s)===null){r.child=m;break}s=m.sibling,m.sibling=o,o=m,m=s}ap(r,!0,o,null,g,d);break;case"together":ap(r,!1,null,null,void 0,d);break;default:r.memoizedState=null}return r.child}function Al(s,r,o){if(s!==null&&(r.dependencies=s.dependencies),cr|=r.lanes,(o&r.childLanes)===0)if(s!==null){if(to(s,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(s!==null&&r.child!==s.child)throw Error(l(153));if(r.child!==null){for(s=r.child,o=xl(s,s.pendingProps),r.child=o,o.return=r;s.sibling!==null;)s=s.sibling,o=o.sibling=xl(s,s.pendingProps),o.return=r;o.sibling=null}return r.child}function np(s,r){return(s.lanes&r)!==0?!0:(s=s.dependencies,!!(s!==null&&Uu(s)))}function J_(s,r,o){switch(r.tag){case 3:je(r,r.stateNode.containerInfo),tr(r,os,s.memoizedState.cache),$r();break;case 27:case 5:Yt(r);break;case 4:je(r,r.stateNode.containerInfo);break;case 10:tr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Em(r),null;break;case 13:var d=r.memoizedState;if(d!==null)return d.dehydrated!==null?(lr(r),r.flags|=128,null):(o&r.child.childLanes)!==0?mv(s,r,o):(lr(r),s=Al(s,r,o),s!==null?s.sibling:null);lr(r);break;case 19:var m=(s.flags&128)!==0;if(d=(o&r.childLanes)!==0,d||(to(s,r,o,!1),d=(o&r.childLanes)!==0),m){if(d)return xv(s,r,o);r.flags|=128}if(m=r.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ue(es,es.current),d)break;return null;case 22:return r.lanes=0,ov(s,r,o,r.pendingProps);case 24:tr(r,os,s.memoizedState.cache)}return Al(s,r,o)}function gv(s,r,o){if(s!==null)if(s.memoizedProps!==r.pendingProps)ds=!0;else{if(!np(s,o)&&(r.flags&128)===0)return ds=!1,J_(s,r,o);ds=(s.flags&131072)!==0}else ds=!1,lt&&(r.flags&1048576)!==0&&X1(r,Tc,r.index);switch(r.lanes=0,r.tag){case 16:e:{var d=r.pendingProps;if(s=ai(r.elementType),r.type=s,typeof s=="function")cm(s)?(d=ii(s,d),r.tag=1,r=hv(null,r,s,d,o)):(r.tag=0,r=Zm(null,r,s,d,o));else{if(s!=null){var m=s.$$typeof;if(m===L){r.tag=11,r=lv(null,r,s,d,o);break e}else if(m===k){r.tag=14,r=rv(null,r,s,d,o);break e}}throw r=ae(s)||s,Error(l(306,r,""))}}return r;case 0:return Zm(s,r,r.type,r.pendingProps,o);case 1:return d=r.type,m=ii(d,r.pendingProps),hv(s,r,d,m,o);case 3:e:{if(je(r,r.stateNode.containerInfo),s===null)throw Error(l(387));d=r.pendingProps;var g=r.memoizedState;m=g.element,Nm(s,r),Pc(r,d,null,o);var _=r.memoizedState;if(d=_.cache,tr(r,os,d),d!==g.cache&&bm(r,[os],o,!0),Bc(),d=_.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:_.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=fv(s,r,d,o);break e}else if(d!==m){m=on(Error(l(424)),r),Rc(m),r=fv(s,r,d,o);break e}else for(s=r.stateNode.containerInfo,s.nodeType===9?s=s.body:s=s.nodeName==="HTML"?s.ownerDocument.body:s,Et=fn(s.firstChild),_s=r,lt=!0,$l=null,un=!0,o=oy(r,null,d,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if($r(),d===m){r=Al(s,r,o);break e}ks(s,r,d,o)}r=r.child}return r;case 26:return nh(s,r),s===null?(o=C2(r.type,null,r.pendingProps,null))?r.memoizedState=o:lt||(o=r.type,s=r.pen
vendor: 4,957 bytes, line 9
9dingProps,d=jh(Ve.current).createElement(o),d[Ue]=r,d[He]=s,Cs(d,o,s),Ke(d),r.stateNode=d):r.memoizedState=C2(r.type,s.memoizedProps,r.pendingProps,s.memoizedState),null;case 27:return Yt(r),s===null&<&&(d=r.stateNode=_2(r.type,r.pendingProps,Ve.current),_s=r,un=!0,m=Et,mr(r.type)?(Bp=m,Et=fn(d.firstChild)):Et=m),ks(s,r,r.pendingProps.children,o),nh(s,r),s===null&&(r.flags|=4194304),r.child;case 5:return s===null&<&&((m=d=Et)&&(d=C3(d,r.type,r.pendingProps,un),d!==null?(r.stateNode=d,_s=r,Et=fn(d.firstChild),un=!1,m=!0):m=!1),m||er(r)),Yt(r),m=r.type,g=r.pendingProps,_=s!==null?s.memoizedProps:null,d=g.children,Op(m,g)?d=null:_!==null&&Op(m,_)&&(r.flags|=32),r.memoizedState!==null&&(m=Rm(s,r,H_,null,null,o),nd._currentValue=m),nh(s,r),ks(s,r,d,o),r.child;case 6:return s===null&<&&((s=o=Et)&&(o=E3(o,r.pendingProps,un),o!==null?(r.stateNode=o,_s=r,Et=null,s=!0):s=!1),s||er(r)),null;case 13:return mv(s,r,o);case 4:return je(r,r.stateNode.containerInfo),d=r.pendingProps,s===null?r.child=li(r,null,d,o):ks(s,r,d,o),r.child;case 11:return lv(s,r,r.type,r.pendingProps,o);case 7:return ks(s,r,r.pendingProps,o),r.child;case 8:return ks(s,r,r.pendingProps.children,o),r.child;case 12:return ks(s,r,r.pendingProps.children,o),r.child;case 10:return d=r.pendingProps,tr(r,r.type,d.value),ks(s,r,d.children,o),r.child;case 9:return m=r.type._context,d=r.pendingProps.children,ti(r),m=Ss(m),d=d(m),r.flags|=1,ks(s,r,d,o),r.child;case 14:return rv(s,r,r.type,r.pendingProps,o);case 15:return iv(s,r,r.type,r.pendingProps,o);case 19:return xv(s,r,o);case 31:return Z_(s,r,o);case 22:return ov(s,r,o,r.pendingProps);case 24:return ti(r),d=Ss(os),s===null?(m=jm(),m===null&&(m=wt,g=ym(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=o),m=g),r.memoizedState={parent:d,cache:m},wm(r),tr(r,os,m)):((s.lanes&o)!==0&&(Nm(s,r),Pc(r,null,null,o),Bc()),m=s.memoizedState,g=r.memoizedState,m.parent!==d?(m={parent:d,cache:d},r.memoizedState=m,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=m),tr(r,os,d)):(d=g.cache,tr(r,os,d),d!==m.cache&&bm(r,[os],o,!0))),ks(s,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function wl(s){s.flags|=4}function lp(s,r,o,d,m){if((r=(s.mode&32)!==0)&&(r=!1),r){if(s.flags|=16777216,(m&335544128)===m)if(s.stateNode.complete)s.flags|=8192;else if(qv())s.flags|=8192;else throw ni=Hu,Am}else s.flags&=-16777217}function bv(s,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!M2(r))if(qv())s.flags|=8192;else throw ni=Hu,Am}function rh(s,r){r!==null&&(s.flags|=4),s.flags&16384&&(r=s.tag!==22?Xl():536870912,s.lanes|=r,mo|=r)}function qc(s,r){if(!lt)switch(s.tailMode){case"hidden":r=s.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?s.tail=null:o.sibling=null;break;case"collapsed":o=s.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?r||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function Tt(s){var r=s.alternate!==null&&s.alternate.child===s.child,o=0,d=0;if(r)for(var m=s.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags&65011712,d|=m.flags&65011712,m.return=s,m=m.sibling;else for(m=s.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=s,m=m.sibling;return s.subtreeFlags|=d,s.childLanes=o,r}function $_(s,r,o){var d=r.pendingProps;switch(fm(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(r),null;case 1:return Tt(r),null;case 3:return o=r.stateNode,d=null,s!==null&&(d=s.memoizedState.cache),r.memoizedState.cache!==d&&(r.flags|=2048),yl(os),De(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(s===null||s.child===null)&&(eo(r)?wl(r):s===null||s.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,pm())),Tt(r),null;case 26:var m=r.type,g=r.memoizedState;return s===null?(wl(r),g!==null?(Tt(r),bv(r,g)):(Tt(r),lp(r,m,null,d,o))):g?g!==s.memoizedState?(wl(r),Tt(r),bv(r,g)):(Tt(r),r.flags&=-16777217):(s=s.memoizedProps,s!==d&&wl(r),Tt(r),lp(r,m,s,d,o)),null;case 27:if(Je(r),o=Ve.current,m=r.type,s!==null&&r.stateNode!=null)s.memoizedProps!==d&&wl(r);else{if(!d){if(r.stateNode===null)throw Error(l(166));return Tt(r),null}s=me.current,eo(r)?Z1(r):(s=_2(m,d,o),r.stateNode=s,wl(r))}return Tt(r),null;case 5:if(Je(r),m=r.type,s!==null&&r.stateNode!=null)s.memoizedProps!==d&&wl(r);else{if(!d){if(r.stateNode===null)throw Error(l(166));return Tt(r),null}if(g=me.current,eo(r))Z1(r);else{var _=jh(Ve.current);switch(g){case 1:g=_.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=_.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=_.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;
vendor: 25,232 bytes, line 9
9case"select":g=typeof d.is=="string"?_.createElement("select",{is:d.is}):_.createElement("select"),d.multiple?g.multiple=!0:d.size&&(g.size=d.size);break;default:g=typeof d.is=="string"?_.createElement(m,{is:d.is}):_.createElement(m)}}g[Ue]=r,g[He]=d;e:for(_=r.child;_!==null;){if(_.tag===5||_.tag===6)g.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===r)break e;for(;_.sibling===null;){if(_.return===null||_.return===r)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}r.stateNode=g;e:switch(Cs(g,m,d),m){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&wl(r)}}return Tt(r),lp(r,r.type,s===null?null:s.memoizedProps,r.pendingProps,o),null;case 6:if(s&&r.stateNode!=null)s.memoizedProps!==d&&wl(r);else{if(typeof d!="string"&&r.stateNode===null)throw Error(l(166));if(s=Ve.current,eo(r)){if(s=r.stateNode,o=r.memoizedProps,d=null,m=_s,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}s[Ue]=r,s=!!(s.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||m2(s.nodeValue,o)),s||er(r,!0)}else s=jh(s).createTextNode(d),s[Ue]=r,r.stateNode=s}return Tt(r),null;case 31:if(o=r.memoizedState,s===null||s.memoizedState!==null){if(d=eo(r),o!==null){if(s===null){if(!d)throw Error(l(318));if(s=r.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(l(557));s[Ue]=r}else $r(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Tt(r),s=!1}else o=pm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=o),s=!0;if(!s)return r.flags&256?(Ca(r),r):(Ca(r),null);if((r.flags&128)!==0)throw Error(l(558))}return Tt(r),null;case 13:if(d=r.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(m=eo(r),d!==null&&d.dehydrated!==null){if(s===null){if(!m)throw Error(l(318));if(m=r.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(l(317));m[Ue]=r}else $r(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Tt(r),m=!1}else m=pm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),m=!0;if(!m)return r.flags&256?(Ca(r),r):(Ca(r),null)}return Ca(r),(r.flags&128)!==0?(r.lanes=o,r):(o=d!==null,s=s!==null&&s.memoizedState!==null,o&&(d=r.child,m=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(m=d.alternate.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==m&&(d.flags|=2048)),o!==s&&o&&(r.child.flags|=8192),rh(r,r.updateQueue),Tt(r),null);case 4:return De(),s===null&&kp(r.stateNode.containerInfo),Tt(r),null;case 10:return yl(r.type),Tt(r),null;case 19:if(oe(es),d=r.memoizedState,d===null)return Tt(r),null;if(m=(r.flags&128)!==0,g=d.rendering,g===null)if(m)qc(d,!1);else{if(Xt!==0||s!==null&&(s.flags&128)!==0)for(s=r.child;s!==null;){if(g=Wu(s),g!==null){for(r.flags|=128,qc(d,!1),s=g.updateQueue,r.updateQueue=s,rh(r,s),r.subtreeFlags=0,s=o,o=r.child;o!==null;)G1(o,s),o=o.sibling;return ue(es,es.current&1|2),lt&&gl(r,d.treeForkCount),r.child}s=s.sibling}d.tail!==null&&Jt()>uh&&(r.flags|=128,m=!0,qc(d,!1),r.lanes=4194304)}else{if(!m)if(s=Wu(g),s!==null){if(r.flags|=128,m=!0,s=s.updateQueue,r.updateQueue=s,rh(r,s),qc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!lt)return Tt(r),null}else 2*Jt()-d.renderingStartTime>uh&&o!==536870912&&(r.flags|=128,m=!0,qc(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(s=d.last,s!==null?s.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(s=d.tail,d.rendering=s,d.tail=s.sibling,d.renderingStartTime=Jt(),s.sibling=null,o=es.current,ue(es,m?o&1|2:o&1),lt&&gl(r,d.treeForkCount),s):(Tt(r),null);case 22:case 23:return Ca(r),Cm(),d=r.memoizedState!==null,s!==null?s.memoizedState!==null!==d&&(r.flags|=8192):d&&(r.flags|=8192),d?(o&536870912)!==0&&(r.flags&128)===0&&(Tt(r),r.subtreeFlags&6&&(r.flags|=8192)):Tt(r),o=r.updateQueue,o!==null&&rh(r,o.retryQueue),o=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==o&&(r.flags|=2048),s!==null&&oe(si),null;case 24:return o=null,s!==null&&(o=s.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),yl(os),Tt(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function e3(s,r){switch(fm(r),r.tag){case 1:return s=r.flags,s&65536?(r.flags=s&-65537|128,r):null;case 3:return yl(os),De(),s=r.flags,(s&65536)!==0&&(s&128)===0?(r.flags=s&-65537|128,r):null;case 26:case 27:case 5:return Je(r),null;case 31:if(r.memoizedState!==null){if(Ca(r),r.alternate===null)throw Error(l(340));$r()}return s=r.flags,s&65536?(r.flags=s&-65537|128,r):null;case 13:if(Ca(r),s=r.memoizedState,s!==null&&s.dehydrated!==null){if(r.alternate===null)throw Error(l(340));$r()}return s=r.flags,s&65536?(r.flags=s&-65537|128,r):null;case 19:return oe(es),null;case 4:return De(),null;case 10:return yl(r.type),null;case 22:case 23:return Ca(r),Cm(),s!==null&&oe(si),s=r.flags,s&65536?(r.flags=s&-65537|128,r):null;case 24:return yl(os),null;case 25:return null;default:return null}}function yv(s,r){switch(fm(r),r.tag){case 3:yl(os),De();break;case 26:case 27:case 5:Je(r);break;case 4:De();break;case 31:r.memoizedState!==null&&Ca(r);break;case 13:Ca(r);break;case 19:oe(es);break;case 10:yl(r.type);break;case 22:case 23:Ca(r),Cm(),s!==null&&oe(si);break;case 24:yl(os)}}function Yc(s,r){try{var o=r.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&s)===s){d=void 0;var g=o.create,_=o.inst;d=g(),_.destroy=d}o=o.next}while(o!==m)}}catch(M){pt(r,r.return,M)}}function ir(s,r,o){try{var d=r.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var g=m.next;d=g;do{if((d.tag&s)===s){var _=d.inst,M=_.destroy;if(M!==void 0){_.destroy=void 0,m=r;var I=o,W=M;try{W()}catch(se){pt(m,I,se)}}}d=d.next}while(d!==g)}}catch(se){pt(r,r.return,se)}}function vv(s){var r=s.updateQueue;if(r!==null){var o=s.stateNode;try{dy(r,o)}catch(d){pt(s,s.return,d)}}}function jv(s,r,o){o.props=ii(s.type,s.memoizedProps),o.state=s.memoizedState;try{o.componentWillUnmount()}catch(d){pt(s,r,d)}}function Gc(s,r){try{var o=s.ref;if(o!==null){switch(s.tag){case 26:case 27:case 5:var d=s.stateNode;break;case 30:d=s.stateNode;break;default:d=s.stateNode}typeof o=="function"?s.refCleanup=o(d):o.current=d}}catch(m){pt(s,r,m)}}function $n(s,r){var o=s.ref,d=s.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(m){pt(s,r,m)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){pt(s,r,m)}else o.current=null}function Av(s){var r=s.type,o=s.memoizedProps,d=s.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(m){pt(s,s.return,m)}}function rp(s,r,o){try{var d=s.stateNode;A3(d,s.type,o,r),d[He]=r}catch(m){pt(s,s.return,m)}}function wv(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&mr(s.type)||s.tag===4}function ip(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||wv(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&mr(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function op(s,r,o){var d=s.tag;if(d===5||d===6)s=s.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(s,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(s),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=ml));else if(d!==4&&(d===27&&mr(s.type)&&(o=s.stateNode,r=null),s=s.child,s!==null))for(op(s,r,o),s=s.sibling;s!==null;)op(s,r,o),s=s.sibling}function ih(s,r,o){var d=s.tag;if(d===5||d===6)s=s.stateNode,r?o.insertBefore(s,r):o.appendChild(s);else if(d!==4&&(d===27&&mr(s.type)&&(o=s.stateNode),s=s.child,s!==null))for(ih(s,r,o),s=s.sibling;s!==null;)ih(s,r,o),s=s.sibling}function Nv(s){var r=s.stateNode,o=s.memoizedProps;try{for(var d=s.type,m=r.attributes;m.length;)r.removeAttributeNode(m[0]);Cs(r,d,o),r[Ue]=s,r[He]=o}catch(g){pt(s,s.return,g)}}var Nl=!1,us=!1,cp=!1,_v=typeof WeakSet=="function"?WeakSet:Set,ys=null;function t3(s,r){if(s=s.containerInfo,Tp=Ch,s=B1(s),sm(s)){if("selectionStart"in s)var o={start:s.selectionStart,end:s.selectionEnd};else e:{o=(o=s.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var m=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var _=0,M=-1,I=-1,W=0,se=0,le=s,Q=null;t:for(;;){for(var $;le!==o||m!==0&&le.nodeType!==3||(M=_+m),le!==g||d!==0&&le.nodeType!==3||(I=_+d),le.nodeType===3&&(_+=le.nodeValue.length),($=le.firstChild)!==null;)Q=le,le=$;for(;;){if(le===s)break t;if(Q===o&&++W===m&&(M=_),Q===g&&++se===d&&(I=_),($=le.nextSibling)!==null)break;le=Q,Q=le.parentNode}le=$}o=M===-1||I===-1?null:{start:M,end:I}}else o=null}o=o||{start:0,end:0}}else o=null;for(Rp={focusedElem:s,selectionRange:o},Ch=!1,ys=r;ys!==null;)if(r=ys,s=r.child,(r.subtreeFlags&1028)!==0&&s!==null)s.return=r,ys=s;else for(;ys!==null;){switch(r=ys,g=r.alternate,s=r.flags,r.tag){case 0:if((s&4)!==0&&(s=r.updateQueue,s=s!==null?s.events:null,s!==null))for(o=0;o<s.length;o++)m=s[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&g!==null){s=void 0,o=r,m=g.memoizedProps,g=g.memoizedState,d=o.stateNode;try{var ge=ii(o.type,m);s=d.getSnapshotBeforeUpdate(ge,g),d.__reactInternalSnapshotBeforeUpdate=s}catch(Se){pt(o,o.return,Se)}}break;case 3:if((s&1024)!==0){if(s=r.stateNode.containerInfo,o=s.nodeType,o===9)zp(s);else if(o===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":zp(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(l(163))}if(s=r.sibling,s!==null){s.return=r.return,ys=s;break}ys=r.return}}function Sv(s,r,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(s,o),d&4&&Yc(5,o);break;case 1:if(Sl(s,o),d&4)if(s=o.stateNode,r===null)try{s.componentDidMount()}catch(_){pt(o,o.return,_)}else{var m=ii(o.type,r.memoizedProps);r=r.memoizedState;try{s.componentDidUpdate(m,r,s.__reactInternalSnapshotBeforeUpdate)}catch(_){pt(o,o.return,_)}}d&64&&vv(o),d&512&&Gc(o,o.return);break;case 3:if(Sl(s,o),d&64&&(s=o.updateQueue,s!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{dy(s,r)}catch(_){pt(o,o.return,_)}}break;case 27:r===null&&d&4&&Nv(o);case 26:case 5:Sl(s,o),r===null&&d&4&&Av(o),d&512&&Gc(o,o.return);break;case 12:Sl(s,o);break;case 31:Sl(s,o),d&4&&Ev(s,o);break;case 13:Sl(s,o),d&4&&Tv(s,o),d&64&&(s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(o=d3.bind(null,o),T3(s,o))));break;case 22:if(d=o.memoizedState!==null||Nl,!d){r=r!==null&&r.memoizedState!==null||us,m=Nl;var g=us;Nl=d,(us=r)&&!g?kl(s,o,(o.subtreeFlags&8772)!==0):Sl(s,o),Nl=m,us=g}break;case 30:break;default:Sl(s,o)}}function kv(s){var r=s.alternate;r!==null&&(s.alternate=null,kv(r)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(r=s.stateNode,r!==null&&$t(r)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var Mt=null,ia=!1;function _l(s,r,o){for(o=o.child;o!==null;)Cv(s,r,o),o=o.sibling}function Cv(s,r,o){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Gn,o)}catch{}switch(o.tag){case 26:us||$n(o,r),_l(s,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:us||$n(o,r);var d=Mt,m=ia;mr(o.type)&&(Mt=o.stateNode,ia=!1),_l(s,r,o),td(o.stateNode),Mt=d,ia=m;break;case 5:us||$n(o,r);case 6:if(d=Mt,m=ia,Mt=null,_l(s,r,o),Mt=d,ia=m,Mt!==null)if(ia)try{(Mt.nodeType===9?Mt.body:Mt.nodeName==="HTML"?Mt.ownerDocument.body:Mt).removeChild(o.stateNode)}catch(g){pt(o,r,g)}else try{Mt.removeChild(o.stateNode)}catch(g){pt(o,r,g)}break;case 18:Mt!==null&&(ia?(s=Mt,v2(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.stateNode),Ao(s)):v2(Mt,o.stateNode));break;case 4:d=Mt,m=ia,Mt=o.stateNode.containerInfo,ia=!0,_l(s,r,o),Mt=d,ia=m;break;case 0:case 11:case 14:case 15:ir(2,o,r),us||ir(4,o,r),_l(s,r,o);break;case 1:us||($n(o,r),d=o.stateNode,typeof d.componentWillUnmount=="function"&&jv(o,r,d)),_l(s,r,o);break;case 21:_l(s,r,o);break;case 22:us=(d=us)||o.memoizedState!==null,_l(s,r,o),us=d;break;default:_l(s,r,o)}}function Ev(s,r){if(r.memoizedState===null&&(s=r.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{Ao(s)}catch(o){pt(r,r.return,o)}}}function Tv(s,r){if(r.memoizedState===null&&(s=r.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Ao(s)}catch(o){pt(r,r.return,o)}}function s3(s){switch(s.tag){case 31:case 13:case 19:var r=s.stateNode;return r===null&&(r=s.stateNode=new _v),r;case 22:return s=s.stateNode,r=s._retryCache,r===null&&(r=s._retryCache=new _v),r;default:throw Error(l(435,s.tag))}}function oh(s,r){var o=s3(s);r.forEach(function(d){if(!o.has(d)){o.add(d);var m=u3.bind(null,s,d);d.then(m,m)}})}function oa(s,r){var o=r.deletions;if(o!==null)for(var d=0;d<o.length;d++){var m=o[d],g=s,_=r,M=_;e:for(;M!==null;){switch(M.tag){case 27:if(mr(M.type)){Mt=M.stateNode,ia=!1;break e}break;case 5:Mt=M.stateNode,ia=!1;break e;case 3:case 4:Mt=M.stateNode.containerInfo,ia=!0;break e}M=M.return}if(Mt===null)throw Error(l(160));Cv(g,_,m),Mt=null,ia=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Rv(r,s),r=r.sibling}var Ln=null;function Rv(s,r){var o=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:oa(r,s),ca(s),d&4&&(ir(3,s,s.return),Yc(3,s),ir(5,s,s.return));break;case 1:oa(r,s),ca(s),d&512&&(us||o===null||$n(o,o.return)),d&64&&Nl&&(s=s.updateQueue,s!==null&&(d=s.callbacks,d!==null&&(o=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var m=Ln;if(oa(r,s),ca(s),d&512&&(us||o===null||$n(o,o.return)),d&4){var g=o!==null?o.memoizedState:null;if(d=s.memoizedState,o===null)if(d===null)if(s.stateNode===null){e:{d=s.type,o=s.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":g=m.getElementsByTagName("title")[0],(!g||g[Ut]||g[Ue]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"))),Cs(g,d,o),g[Ue]=s,Ke(g),d=g;break e;case"link":var _=R2("link","href",m).get(d+(o.href||""));if(_){for(var M=0;M<_.length;M++)if(g=_[M],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){_.splice(M,1);break t}}g=m.createElement(d),Cs(g,d,o),m.head.appendChild(g);break;case"meta":if(_=R2("meta","content",m).get(d+(o.content||""))){for(M=0;M<_.length;M++)if(g=_[M],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){_.splice(M,1);break t}}g=m.createElement(d),Cs(g,d,o),m.head.appendChild(g);break;default:throw Error(l(468,d))}g[Ue]=s,Ke(g),d=g}s.stateNode=d}else O2(m,s.type,s.stateNode);else s.stateNode=T2(m,d,s.memoizedProps);else g!==d?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,d===null?O2(m,s.type,s.stateNode):T2(m,d,s.memoizedProps)):d===null&&s.stateNode!==null&&rp(s,s.memoizedProps,o.memoizedProps)}break;case 27:oa(r,s),ca(s),d&512&&(us||o===null||$n(o,o.return)),o!==null&&d&4&&rp(s,s.memoizedProps,o.memoizedProps);break;case 5:if(oa(r,s),ca(s),d&512&&(us||o===null||$n(o,o.return)),s.flags&32){m=s.stateNode;try{qi(m,"")}catch(ge){pt(s,s.return,ge)}}d&4&&s.stateNode!=null&&(m=s.memoizedProps,rp(s,m,o!==null?o.memoizedProps:m)),d&1024&&(cp=!0);break;case 6:if(oa(r,s),ca(s),d&4){if(s.stateNode===null)throw Error(l(162));d=s.memoizedProps,o=s.stateNode;try{o.nodeValue=d}catch(ge){pt(s,s.return,ge)}}break;case 3:if(Nh=null,m=Ln,Ln=Ah(r.containerInfo),oa(r,s),Ln=m,ca(s),d&4&&o!==null&&o.memoizedState.isDehydrated)try{Ao(r.containerInfo)}catch(ge){pt(s,s.return,ge)}cp&&(cp=!1,Ov(s));break;case 4:d=Ln,Ln=Ah(s.stateNode.containerInfo),oa(r,s),ca(s),Ln=d;break;case 12:oa(r,s),ca(s);break;case 31:oa(r,s),ca(s),d&4&&(d=s.updateQueue,d!==null&&(s.updateQueue=null,oh(s,d)));break;case 13:oa(r,s),ca(s),s.child.flags&8192&&s.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(dh=Jt()),d&4&&(d=s.updateQueue,d!==null&&(s.updateQueue=null,oh(s,d)));break;case 22:m=s.memoizedState!==null;var I=o!==null&&o.memoizedState!==null,W=Nl,se=us;if(Nl=W||m,us=se||I,oa(r,s),us=se,Nl=W,ca(s),d&8192)e:for(r=s.stateNode,r._visibility=m?r._visibility&-2:r._visibility|1,m&&(o===null||I||Nl||us||oi(s)),o=null,r=s;;){if(r.tag===5||r.tag===26){if(o===null){I=o=r;try{if(g=I.stateNode,m)_=g.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{M=I.stateNode;var le=I.memoizedProps.style,Q=le!=null&&le.hasOwnProperty("display")?le.display:null;M.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ge){pt(I,I.return,ge)}}}else if(r.tag===6){if(o===null){I=r;try{I.stateNode.nodeValue=m?"":I.memoizedProps}catch(ge){pt(I,I.return,ge)}}}else if(r.tag===18){if(o===null){I=r;try{var $=I.stateNode;m?j2($,!0):j2(I.stateNode,!1)}catch(ge){pt(I,I.return,ge)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===s)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}d&4&&(d=s.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,oh(s,o))));break;case 19:oa(r,s),ca(s),d&4&&(d=s.updateQueue,d!==null&&(s.updateQueue=null,oh(s,d)));break;case 30:break;case 21:break;default:oa(r,s),ca(s)}}function ca(s){var r=s.flags;if(r&2){try{for(var o,d=s.return;d!==null;){if(wv(d)){o=d;break}d=d.return}if(o==null)throw Error(l(160));switch(o.tag){case 27:var m=o.stateNode,g=ip(s);ih(s,g,m);break;case 5:var _=o.stateNode;o.flags&32&&(qi(_,""),o.flags&=-33);var M=ip(s);ih(s,M,_);break;case 3:case 4:var I=o.stateNode.containerInfo,W=ip(s);op(s,W,I);break;default:throw Error(l(161))}}catch(se){pt(s,s.return,se)}s.flags&=-3}r&4096&&(s.flags&=-4097)}function Ov(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var r=s;Ov(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),s=s.sibling}}function Sl(s,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Sv(s,r.alternate,r),r=r.sibling}function oi(s){for(s=s.child;s!==null;){var r=s;switch(r.tag){case 0:case 11:case 14:case 15:ir(4,r,r.return),oi(r);break;case 1:$n(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&jv(r,r.return,o),oi(r);break;case 27:td(r.stateNode);case 26:case 5:$n(r,r.return),oi(r);break;case 22:r.memoizedState===null&&oi(r);break;case 30:oi(r);break;default:oi(r)}s=s.sibling}}function kl(s,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var d=r.alternate,m=s,g=r,_=g.flags;switch(g.tag){case 0:case 11:case 15:kl(m,g,o),Yc(4,g);break;case 1:if(kl(m,g,o),d=g,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(W){pt(d,d.return,W)}if(d=g,m=d.updateQueue,m!==null){var M=d.stateNode;try{var I=m.shared.hiddenCallbacks;if(I!==null)for(m.shared.hiddenCallbacks=null,m=0;m<I.length;m++)cy(I[m],M)}catch(W){pt(d,d.return,W)}}o&&_&64&&vv(g),Gc(g,g.return);break;case 27:Nv(g);case 26:case 5:kl(m,g,o),o&&d===null&&_&4&&Av(g),Gc(g,g.return);break;case 12:kl(m,g,o);break;case 31:kl(m,g,o),o&&_&4&&Ev(m,g);break;case 13:kl(m,g,o),o&&_&4&&Tv(m,g);break;case 22:g.memoizedState===null&&kl(m,g,o),Gc(g,g.return);break;case 30:break;default:kl(m,g,o)}r=r.sibling}}function dp(s,r){var o=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(s!=null&&s.refCount++,o!=null&&Oc(o))}function up(s,r){s=null,r.alternate!==null&&(s=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==s&&(r.refCount++,s!=null&&Oc(s))}function Dn(s,r,o,d){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Mv(s,r,o,d),r=r.sibling}function Mv(s,r,o,d){var m=r.flags;switch(r.tag){case 0:case 11:case 15:Dn(s,r,o,d),m&2048&&Yc(9,r);break;case 1:Dn(s,r,o,d);break;case 3:Dn(s,r,o,d),m&2048&&(s=null,r.alternate!==null&&(s=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==s&&(r.refCount++,s!=null&&Oc(s)));break;case 12:if(m&2048){Dn(s,r,o,d),s=r.stateNode;try{var g=r.memoizedProps,_=g.id,M=g.onPostCommit;typeof M=="function"&&M(_,r.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(I){pt(r,r.return,I)}}else Dn(s,r,o,d);break;case 31:Dn(s,r,o,d);break;case 13:Dn(s,r,o,d);break;case 23:break;case 22:g=r.stateNode,_=r.alternate,r.memoizedState!==null?g._visibility&2?Dn(s,r,o,d):Wc(s,r):g._visibility&2?Dn(s,r,o,d):(g._visibility|=2,uo(s,r,o,d,(r.subtreeFlags&10256)!==0||!1)),m&2048&&dp(_,r);break;case 24:Dn(s,r,o,d),m&2048&&up(r.alternate,r);break;default:Dn(s,r,o,d)}}function uo(s,r,o,d,m){for(m=m&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var g=s,_=r,M=o,I=d,W=_.flags;switch(_.tag){case 0:case 11:case 15:uo(g,_,M,I,m),Yc(8,_);break;case 23:break;case 22:var se=_.stateNode;_.memoizedState!==null?se._visibility&2?uo(g,_,M,I,m):Wc(g,_):(se._visibility|=2,uo(g,_,M,I,m)),m&&W&2048&&dp(_.alternate,_);break;case 24:uo(g,_,M,I,m),m&&W&2048&&up(_.alternate,_);break;default:uo(g,_,M,I,m)}r=r.sibling}}function Wc(s,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=s,d=r,m=d.flags;switch(d.tag){case 22:Wc(o,d),m&2048&&dp(d.alternate,d);break;case 24:Wc(o,d),m&2048&&up(d.alternate,d);break;default:Wc(o,d)}r=r.sibling}}var Kc=8192;function ho(s,r,o){if(s.subtreeFlags&Kc)for(s=s.child;s!==null;)zv(s,r,o),s=s.sibling}function zv(s,r,o){switch(s.tag){case 26:ho(s,r,o),s.flags&Kc&&s.memoizedState!==null&&F3(o,Ln,s.memoizedState,s.memoizedProps);break;case 5:ho(s,r,o);break;case 3:case 4:var d=Ln;Ln=Ah(s.stateNode.containerInfo),ho(s,r,o),Ln=d;break;case 22:s.memoizedState===null&&(d=s.alternate,d!==null&&d.memoizedState!==null?(d=Kc,Kc=16777216,ho(s,r,o),Kc=d):ho(s,r,o));break;default:ho(s,r,o)}}function Lv(s){var r=s.alternate;if(r!==null&&(s=r.child,s!==null)){r.child=null;do r=s.sibling,s.sibling=null,s=r;while(s!==null)}}function Xc(s){var r=s.deletions;if((s.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var d=r[o];ys=d,Bv(d,s)}Lv(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Dv(s),s=s.sibling}function Dv(s){switch(s.tag){case 0:case 11:case 15:Xc(s),s.flags&2048&&ir(9,s,s.return);break;case 3:Xc(s);break;case 12:Xc(s);break;case 22:var r=s.stateNode;s.memoizedState!==null&&r._visibility&2&&(s.return===null||s.return.tag!==13)?(r._visibility&=-3,ch(s)):Xc(s);break;default:Xc(s)}}function ch(s){var r=s.deletions;if((s.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var d=r[o];ys=d,Bv(d,s)}Lv(s)}for(s=s.child;s!==null;){switch(r=s,r.tag){case 0:case 11:case 15:ir(8,r,r.return),ch(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,ch(r));break;default:ch(r)}s=s.sibling}}function Bv(s,r){for(;ys!==null;){var o=ys;switch(o.tag){case 0:case 11:case 15:ir(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Oc(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,ys=d;else e:for(o=s;ys!==null;){d=ys;var m=d.sibling,g=d.return;if(kv(d),d===o){ys=null;break e}if(m!==null){m.return=g,ys=m;break e}ys=g}}}var a3={getCacheForType:function(s){var r=Ss(os),o=r.data.get(s);return o===void 0&&(o=s(),r.data.set(s,o)),o},cacheSignal:function(){return Ss(os).controller.signal}},n3=typeof WeakMap=="function"?WeakMap:Map,ut=0,wt=null,$e=null,st=0,mt=0,Ea=null,or=!1,fo=!1,hp=!1,Cl=0,Xt=0,cr=0,ci=0,fp=0,Ta=0,mo=0,Qc=null,da=null,mp=!1,dh=0,Pv=0,uh=1/0,hh=null,dr=null,xs=0,ur=null,po=null,El=0,pp=0,xp=null,Uv=null,Zc=0,gp=null;function Ra(){return(ut&2)!==0&&st!==0?st&-st:U.T!==null?wp():We()}function Iv(){if(Ta===0)if((st&536870912)===0||lt){var s=Ds;Ds<<=1,(Ds&3932160)===0&&(Ds=262144),Ta=s}else Ta=536870912;return s=ka.current,s!==null&&(s.flags|=32),Ta}function ua(s,r,o){(s===wt&&(mt===2||mt===9)||s.cancelPendingCommit!==null)&&(xo(s,0),hr(s,st,Ta,!1)),Ae(s,o),((ut&2)===0||s!==wt)&&(s===wt&&((ut&2)===0&&(ci|=o),Xt===4&&hr(s,st,Ta,!1)),el(s))}function Vv(s,r,o){if((ut&6)!==0)throw Error(l(327));var d=!o&&(r&127)===0&&(r&s.expiredLanes)===0||tn(s,r),m=d?i3(s,r):yp(s,r,!0),g=d;
vendor: 15,554 bytes, line 9
9do{if(m===0){fo&&!d&&hr(s,r,0,!1);break}else{if(o=s.current.alternate,g&&!l3(o)){m=yp(s,r,!1),g=!1;continue}if(m===2){if(g=r,s.errorRecoveryDisabledLanes&g)var _=0;else _=s.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){r=_;e:{var M=s;m=Qc;var I=M.current.memoizedState.isDehydrated;if(I&&(xo(M,_).flags|=256),_=yp(M,_,!1),_!==2){if(hp&&!I){M.errorRecoveryDisabledLanes|=g,ci|=g,m=4;break e}g=da,da=m,g!==null&&(da===null?da=g:da.push.apply(da,g))}m=_}if(g=!1,m!==2)continue}}if(m===1){xo(s,0),hr(s,r,0,!0);break}e:{switch(d=s,g=m,g){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:hr(d,r,Ta,!or);break e;case 2:da=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(m=dh+300-Jt(),10<m)){if(hr(d,r,Ta,!or),en(d,0,!0)!==0)break e;El=r,d.timeoutHandle=b2(Fv.bind(null,d,o,da,hh,mp,r,Ta,ci,mo,or,g,"Throttled",-0,0),m);break e}Fv(d,o,da,hh,mp,r,Ta,ci,mo,or,g,null,-0,0)}}break}while(!0);el(s)}function Fv(s,r,o,d,m,g,_,M,I,W,se,le,Q,$){if(s.timeoutHandle=-1,le=r.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ml},zv(r,g,le);var ge=(g&62914560)===g?dh-Jt():(g&4194048)===g?Pv-Jt():0;if(ge=H3(le,ge),ge!==null){El=g,s.cancelPendingCommit=ge(Qv.bind(null,s,r,g,o,d,m,_,M,I,se,le,null,Q,$)),hr(s,g,_,!W);return}}Qv(s,r,g,o,d,m,_,M,I)}function l3(s){for(var r=s;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var m=o[d],g=m.getSnapshot;m=m.value;try{if(!_a(g(),m))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===s)break;for(;r.sibling===null;){if(r.return===null||r.return===s)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function hr(s,r,o,d){r&=~fp,r&=~ci,s.suspendedLanes|=r,s.pingedLanes&=~r,d&&(s.warmLanes|=r),d=s.expirationTimes;for(var m=r;0<m;){var g=31-is(m),_=1<<g;d[g]=-1,m&=~_}o!==0&&he(s,o,r)}function fh(){return(ut&6)===0?(Jc(0),!1):!0}function bp(){if($e!==null){if(mt===0)var s=$e.return;else s=$e,bl=ei=null,zm(s),lo=null,zc=0,s=$e;for(;s!==null;)yv(s.alternate,s),s=s.return;$e=null}}function xo(s,r){var o=s.timeoutHandle;o!==-1&&(s.timeoutHandle=-1,_3(o)),o=s.cancelPendingCommit,o!==null&&(s.cancelPendingCommit=null,o()),El=0,bp(),wt=s,$e=o=xl(s.current,null),st=r,mt=0,Ea=null,or=!1,fo=tn(s,r),hp=!1,mo=Ta=fp=ci=cr=Xt=0,da=Qc=null,mp=!1,(r&8)!==0&&(r|=r&32);var d=s.entangledLanes;if(d!==0)for(s=s.entanglements,d&=r;0<d;){var m=31-is(d),g=1<<m;r|=s[m],d&=~g}return Cl=r,zu(),o}function Hv(s,r){ze=null,U.H=Fc,r===no||r===Fu?(r=ly(),mt=3):r===Am?(r=ly(),mt=4):mt=r===Qm?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Ea=r,$e===null&&(Xt=1,sh(s,on(r,s.current)))}function qv(){var s=ka.current;return s===null?!0:(st&4194048)===st?hn===null:(st&62914560)===st||(st&536870912)!==0?s===hn:!1}function Yv(){var s=U.H;return U.H=Fc,s===null?Fc:s}function Gv(){var s=U.A;return U.A=a3,s}function mh(){Xt=4,or||(st&4194048)!==st&&ka.current!==null||(fo=!0),(cr&134217727)===0&&(ci&134217727)===0||wt===null||hr(wt,st,Ta,!1)}function yp(s,r,o){var d=ut;ut|=2;var m=Yv(),g=Gv();(wt!==s||st!==r)&&(hh=null,xo(s,r)),r=!1;var _=Xt;e:do try{if(mt!==0&&$e!==null){var M=$e,I=Ea;switch(mt){case 8:bp(),_=6;break e;case 3:case 2:case 9:case 6:ka.current===null&&(r=!0);var W=mt;if(mt=0,Ea=null,go(s,M,I,W),o&&fo){_=0;break e}break;default:W=mt,mt=0,Ea=null,go(s,M,I,W)}}r3(),_=Xt;break}catch(se){Hv(s,se)}while(!0);return r&&s.shellSuspendCounter++,bl=ei=null,ut=d,U.H=m,U.A=g,$e===null&&(wt=null,st=0,zu()),_}function r3(){for(;$e!==null;)Wv($e)}function i3(s,r){var o=ut;ut|=2;var d=Yv(),m=Gv();wt!==s||st!==r?(hh=null,uh=Jt()+500,xo(s,r)):fo=tn(s,r);e:do try{if(mt!==0&&$e!==null){r=$e;var g=Ea;t:switch(mt){case 1:mt=0,Ea=null,go(s,r,g,1);break;case 2:case 9:if(ay(g)){mt=0,Ea=null,Kv(r);break}r=function(){mt!==2&&mt!==9||wt!==s||(mt=7),el(s)},g.then(r,r);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:ay(g)?(mt=0,Ea=null,Kv(r)):(mt=0,Ea=null,go(s,r,g,7));break;case 5:var _=null;switch($e.tag){case 26:_=$e.memoizedState;case 5:case 27:var M=$e;if(_?M2(_):M.stateNode.complete){mt=0,Ea=null;var I=M.sibling;if(I!==null)$e=I;else{var W=M.return;W!==null?($e=W,ph(W)):$e=null}break t}}mt=0,Ea=null,go(s,r,g,5);break;case 6:mt=0,Ea=null,go(s,r,g,6);break;case 8:bp(),Xt=6;break e;default:throw Error(l(462))}}o3();break}catch(se){Hv(s,se)}while(!0);return bl=ei=null,U.H=d,U.A=m,ut=o,$e!==null?0:(wt=null,st=0,zu(),Xt)}function o3(){for(;$e!==null&&!Rn();)Wv($e)}function Wv(s){var r=gv(s.alternate,s,Cl);s.memoizedProps=s.pendingProps,r===null?ph(s):$e=r}function Kv(s){var r=s,o=r.alternate;switch(r.tag){case 15:case 0:r=uv(o,r,r.pendingProps,r.type,void 0,st);break;case 11:r=uv(o,r,r.pendingProps,r.type.render,r.ref,st);break;case 5:zm(r);default:yv(o,r),r=$e=G1(r,Cl),r=gv(o,r,Cl)}s.memoizedProps=s.pendingProps,r===null?ph(s):$e=r}function go(s,r,o,d){bl=ei=null,zm(r),lo=null,zc=0;var m=r.return;try{if(Q_(s,m,r,o,st)){Xt=1,sh(s,on(o,s.current)),$e=null;return}}catch(g){if(m!==null)throw $e=m,g;Xt=1,sh(s,on(o,s.current)),$e=null;return}r.flags&32768?(lt||d===1?s=!0:fo||(st&536870912)!==0?s=!1:(or=s=!0,(d===2||d===9||d===3||d===6)&&(d=ka.current,d!==null&&d.tag===13&&(d.flags|=16384))),Xv(r,s)):ph(r)}function ph(s){var r=s;do{if((r.flags&32768)!==0){Xv(r,or);return}s=r.return;var o=$_(r.alternate,r,Cl);if(o!==null){$e=o;return}if(r=r.sibling,r!==null){$e=r;return}$e=r=s}while(r!==null);Xt===0&&(Xt=5)}function Xv(s,r){do{var o=e3(s.alternate,s);if(o!==null){o.flags&=32767,$e=o;return}if(o=s.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(s=s.sibling,s!==null)){$e=s;return}$e=s=o}while(s!==null);Xt=6,$e=null}function Qv(s,r,o,d,m,g,_,M,I){s.cancelPendingCommit=null;do xh();while(xs!==0);if((ut&6)!==0)throw Error(l(327));if(r!==null){if(r===s.current)throw Error(l(177));if(g=r.lanes|r.childLanes,g|=im,ot(s,o,g,_,M,I),s===wt&&($e=wt=null,st=0),po=r,ur=s,El=o,pp=g,xp=m,Uv=d,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,h3(Ls,function(){return t2(),null})):(s.callbackNode=null,s.callbackPriority=0),d=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||d){d=U.T,U.T=null,m=B.p,B.p=2,_=ut,ut|=4;try{t3(s,r,o)}finally{ut=_,B.p=m,U.T=d}}xs=1,Zv(),Jv(),$v()}}function Zv(){if(xs===1){xs=0;var s=ur,r=po,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=U.T,U.T=null;var d=B.p;B.p=2;var m=ut;ut|=4;try{Rv(r,s);var g=Rp,_=B1(s.containerInfo),M=g.focusedElem,I=g.selectionRange;if(_!==M&&M&&M.ownerDocument&&D1(M.ownerDocument.documentElement,M)){if(I!==null&&sm(M)){var W=I.start,se=I.end;if(se===void 0&&(se=W),"selectionStart"in M)M.selectionStart=W,M.selectionEnd=Math.min(se,M.value.length);else{var le=M.ownerDocument||document,Q=le&&le.defaultView||window;if(Q.getSelection){var $=Q.getSelection(),ge=M.textContent.length,Se=Math.min(I.start,ge),vt=I.end===void 0?Se:Math.min(I.end,ge);!$.extend&&Se>vt&&(_=vt,vt=Se,Se=_);var H=L1(M,Se),F=L1(M,vt);if(H&&F&&($.rangeCount!==1||$.anchorNode!==H.node||$.anchorOffset!==H.offset||$.focusNode!==F.node||$.focusOffset!==F.offset)){var G=le.createRange();G.setStart(H.node,H.offset),$.removeAllRanges(),Se>vt?($.addRange(G),$.extend(F.node,F.offset)):(G.setEnd(F.node,F.offset),$.addRange(G))}}}}for(le=[],$=M;$=$.parentNode;)$.nodeType===1&&le.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<le.length;M++){var ne=le[M];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Ch=!!Tp,Rp=Tp=null}finally{ut=m,B.p=d,U.T=o}}s.current=r,xs=2}}function Jv(){if(xs===2){xs=0;var s=ur,r=po,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=U.T,U.T=null;var d=B.p;B.p=2;var m=ut;ut|=4;try{Sv(s,r.alternate,r)}finally{ut=m,B.p=d,U.T=o}}xs=3}}function $v(){if(xs===4||xs===3){xs=0,Yn();var s=ur,r=po,o=El,d=Uv;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?xs=5:(xs=0,po=ur=null,e2(s,s.pendingLanes));var m=s.pendingLanes;if(m===0&&(dr=null),Wt(o),r=r.stateNode,Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Gn,r,void 0,(r.current.flags&128)===128)}catch{}if(d!==null){r=U.T,m=B.p,B.p=2,U.T=null;try{for(var g=s.onRecoverableError,_=0;_<d.length;_++){var M=d[_];g(M.value,{componentStack:M.stack})}}finally{U.T=r,B.p=m}}(El&3)!==0&&xh(),el(s),m=s.pendingLanes,(o&261930)!==0&&(m&42)!==0?s===gp?Zc++:(Zc=0,gp=s):Zc=0,Jc(0)}}function e2(s,r){(s.pooledCacheLanes&=r)===0&&(r=s.pooledCache,r!=null&&(s.pooledCache=null,Oc(r)))}function xh(){return Zv(),Jv(),$v(),t2()}function t2(){if(xs!==5)return!1;var s=ur,r=pp;pp=0;var o=Wt(El),d=U.T,m=B.p;try{B.p=32>o?32:o,U.T=null,o=xp,xp=null;var g=ur,_=El;if(xs=0,po=ur=null,El=0,(ut&6)!==0)throw Error(l(331));var M=ut;if(ut|=4,Dv(g.current),Mv(g,g.current,_,o),ut=M,Jc(0,!1),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(Gn,g)}catch{}return!0}finally{B.p=m,U.T=d,e2(s,r)}}function s2(s,r,o){r=on(o,r),r=Xm(s.stateNode,r,2),s=nr(s,r,2),s!==null&&(Ae(s,2),el(s))}function pt(s,r,o){if(s.tag===3)s2(s,s,o);else for(;r!==null;){if(r.tag===3){s2(r,s,o);break}else if(r.tag===1){var d=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(dr===null||!dr.has(d))){s=on(o,s),o=av(2),d=nr(r,o,2),d!==null&&(nv(o,d,r,s),Ae(d,2),el(d));break}}r=r.return}}function vp(s,r,o){var d=s.pingCache;if(d===null){d=s.pingCache=new n3;var m=new Set;d.set(r,m)}else m=d.get(r),m===void 0&&(m=new Set,d.set(r,m));m.has(o)||(hp=!0,m.add(o),s=c3.bind(null,s,r,o),r.then(s,s))}function c3(s,r,o){var d=s.pingCache;d!==null&&d.delete(r),s.pingedLanes|=s.suspendedLanes&o,s.warmLanes&=~o,wt===s&&(st&o)===o&&(Xt===4||Xt===3&&(st&62914560)===st&&300>Jt()-dh?(ut&2)===0&&xo(s,0):fp|=o,mo===st&&(mo=0)),el(s)}function a2(s,r){r===0&&(r=Xl()),s=Zr(s,r),s!==null&&(Ae(s,r),el(s))}function d3(s){var r=s.memoizedState,o=0;r!==null&&(o=r.retryLane),a2(s,o)}function u3(s,r){var o=0;switch(s.tag){case 31:case 13:var d=s.stateNode,m=s.memoizedState;m!==null&&(o=m.retryLane);break;case 19:d=s.stateNode;break;case 22:d=s.stateNode._retryCache;break;default:throw Error(l(314))}d!==null&&d.delete(r),a2(s,o)}function h3(s,r){return Za(s,r)}var gh=null,bo=null,jp=!1,bh=!1,Ap=!1,fr=0;function el(s){s!==bo&&s.next===null&&(bo===null?gh=bo=s:bo=bo.next=s),bh=!0,jp||(jp=!0,m3())}function Jc(s,r){if(!Ap&&bh){Ap=!0;do for(var o=!1,d=gh;d!==null;){if(s!==0){var m=d.pendingLanes;if(m===0)var g=0;else{var _=d.suspendedLanes,M=d.pingedLanes;g=(1<<31-is(42|s)+1)-1,g&=m&~(_&~M),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,i2(d,g))}else g=st,g=en(d,d===wt?g:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(g&3)===0||tn(d,g)||(o=!0,i2(d,g));d=d.next}while(o);Ap=!1}}function f3(){n2()}function n2(){bh=jp=!1;var s=0;fr!==0&&N3()&&(s=fr);for(var r=Jt(),o=null,d=gh;d!==null;){var m=d.next,g=l2(d,r);g===0?(d.next=null,o===null?gh=m:o.next=m,m===null&&(bo=o)):(o=d,(s!==0||(g&3)!==0)&&(bh=!0)),d=m}xs!==0&&xs!==5||Jc(s),fr!==0&&(fr=0)}function l2(s,r){for(var o=s.suspendedLanes,d=s.pingedLanes,m=s.expirationTimes,g=s.pendingLanes&-62914561;0<g;){var _=31-is(g),M=1<<_,I=m[_];I===-1?((M&o)===0||(M&d)!==0)&&(m[_]=Mn(M,r)):I<=r&&(s.expiredLanes|=M),g&=~M}if(r=wt,o=st,o=en(s,s===r?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),d=s.callbackNode,o===0||s===r&&(mt===2||mt===9)||s.cancelPendingCommit!==null)return d!==null&&d!==null&&St(d),s.callbackNode=null,s.callbackPriority=0;if((o&3)===0||tn(s,o)){if(r=o&-o,r===s.callbackPriority)return r;switch(d!==null&&St(d),Wt(o)){case 2:case 8:o=Rt;break;case 32:o=Ls;break;case 268435456:o=Ja;break;default:o=Ls}return d=r2.bind(null,s),o=Za(o,d),s.callbackPriority=r,s.callbackNode=o,r}return d!==null&&d!==null&&St(d),s.callbackPriority=2,s.callbackNode=null,2}function r2(s,r){if(xs!==0&&xs!==5)return s.callbackNode=null,s.callbackPriority=0,null;var o=s.callbackNode;if(xh()&&s.callbackNode!==o)return null;var d=st;return d=en(s,s===wt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),d===0?null:(Vv(s,d,r),l2(s,Jt()),s.callbackNode!=null&&s.callbackNode===o?r2.bind(null,s):null)}function i2(s,r){if(xh())return null;Vv(s,r,!0)}function m3(){S3(function(){(ut&6)!==0?Za(On,f3):n2()})}function wp(){if(fr===0){var s=so;s===0&&(s=$a,$a<<=1,($a&261888)===0&&($a=256)),fr=s}return fr}function o2(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Su(""+s)}function c2(s,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,s.id&&o.setAttribute("form",s.id),r.parentNode.insertBefore(o,r),s=new FormData(s),o.parentNode.removeChild(o),s}function p3(s,r,o,d,m){if(r==="submit"&&o&&o.stateNode===m){var g=o2((m[He]||null).action),_=d.submitter;_&&(r=(r=_[He]||null)?o2(r.formAction):_.getAttribute("formAction"),r!==null&&(g=r,_=null));var M=new Tu("action","action",null,d,m);s.push({event:M,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(fr!==0){var I=_?c2(m,_):new FormData(m);Hm(o,{pending:!0,data:I,method:m.method,action:g},null,I)}}else typeof g=="function"&&(M.preventDefault(),I=_?c2(m,_):new FormData(m),Hm(o,{pending:!0,data:I,method:m.method,action:g},g,I))},currentTarget:m}]})}}for(var Np=0;Np<rm.length;Np++){var _p=rm[Np],x3=_p.toLowerCase(),g3=_p[0].toUpperCase()+_p.slice(1);zn(x3,"on"+g3)}zn(I1,"onAnimationEnd"),zn(V1,"onAnimationIteration"),zn(F1,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(M_,"onTransitionRun"),zn(z_,"onTransitionStart"),zn(L_,"onTransitionCancel"),zn(H1,"onTransitionEnd"),sn("onMouseEnter",["mouseout","mouseover"]),sn("onMouseLeave",["mouseout","mouseover"]),sn("onPointerEnter",["pointerout","pointerover"]),sn("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),b3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($c));function d2(s,r){r=(r&4)!==0;for(var o=0;o<s.length;o++){var d=s[o],m=d.event;d=d.listeners;e:{var g=void 0;if(r)for(var _=d.length-1;0<=_;_--){var M=d[_],I=M.instance,W=M.currentTarget;if(M=M.listener,I!==g&&m.isPropagationStopped())break e;g=M,m.currentTarget=W;try{g(m)}catch(se){Mu(se)}m.currentTarget=null,g=I}else for(_=0;_<d.length;_++){if(M=d[_],I=M.instance,W=M.currentTarget,M=M.listener,I!==g&&m.isPropagationStopped())break e;g=M,m.currentTarget=W;try{g(m)}catch(se){Mu(se)}m.currentTarget=null,g=I}}}}function et(s,r){var o=r[Ks];o===void 0&&(o=r[Ks]=new Set);var d=s+"__bubble";o.has(d)||(u2(r,s,2,!1),o.add(d))}function Sp(s,r,o){var d=0;r&&(d|=4),u2(o,s,d,r)}var yh="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,394 bytes, line 9
9function kp(s){if(!s[yh]){s[yh]=!0,Na.forEach(function(o){o!=="selectionchange"&&(b3.has(o)||Sp(o,!1,s),Sp(o,!0,s))});var r=s.nodeType===9?s:s.ownerDocument;r===null||r[yh]||(r[yh]=!0,Sp("selectionchange",!1,r))}}function u2(s,r,o,d){switch(I2(r)){case 2:var m=G3;break;case 8:m=W3;break;default:m=Fp}o=m.bind(null,r,o,s),m=void 0,!W0||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(m=!0),d?m!==void 0?s.addEventListener(r,o,{capture:!0,passive:m}):s.addEventListener(r,o,!0):m!==void 0?s.addEventListener(r,o,{passive:m}):s.addEventListener(r,o,!1)}function Cp(s,r,o,d,m){var g=d;if((r&1)===0&&(r&2)===0&&d!==null)e:for(;;){if(d===null)return;var _=d.tag;if(_===3||_===4){var M=d.stateNode.containerInfo;if(M===m)break;if(_===4)for(_=d.return;_!==null;){var I=_.tag;if((I===3||I===4)&&_.stateNode.containerInfo===m)return;_=_.return}for(;M!==null;){if(_=It(M),_===null)return;if(I=_.tag,I===5||I===6||I===26||I===27){d=g=_;continue e}M=M.parentNode}}d=d.return}x1(function(){var W=g,se=Y0(o),le=[];e:{var Q=q1.get(s);if(Q!==void 0){var $=Tu,ge=s;switch(s){case"keypress":if(Cu(o)===0)break e;case"keydown":case"keyup":$=u_;break;case"focusin":ge="focus",$=Z0;break;case"focusout":ge="blur",$=Z0;break;case"beforeblur":case"afterblur":$=Z0;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=y1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=$4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=m_;break;case I1:case V1:case F1:$=s_;break;case H1:$=x_;break;case"scroll":case"scrollend":$=Z4;break;case"wheel":$=b_;break;case"copy":case"cut":case"paste":$=n_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=j1;break;case"toggle":case"beforetoggle":$=v_}var Se=(r&4)!==0,vt=!Se&&(s==="scroll"||s==="scrollend"),H=Se?Q!==null?Q+"Capture":null:Q;Se=[];for(var F=W,G;F!==null;){var ne=F;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||H===null||(ne=jc(F,H),ne!=null&&Se.push(ed(F,ne,G))),vt)break;F=F.return}0<Se.length&&(Q=new $(Q,ge,null,o,se),le.push({event:Q,listeners:Se}))}}if((r&7)===0){e:{if(Q=s==="mouseover"||s==="pointerover",$=s==="mouseout"||s==="pointerout",Q&&o!==q0&&(ge=o.relatedTarget||o.fromElement)&&(It(ge)||ge[it]))break e;if(($||Q)&&(Q=se.window===se?se:(Q=se.ownerDocument)?Q.defaultView||Q.parentWindow:window,$?(ge=o.relatedTarget||o.toElement,$=W,ge=ge?It(ge):null,ge!==null&&(vt=c(ge),Se=ge.tag,ge!==vt||Se!==5&&Se!==27&&Se!==6)&&(ge=null)):($=null,ge=W),$!==ge)){if(Se=y1,ne="onMouseLeave",H="onMouseEnter",F="mouse",(s==="pointerout"||s==="pointerover")&&(Se=j1,ne="onPointerLeave",H="onPointerEnter",F="pointer"),vt=$==null?Q:Kn($),G=ge==null?Q:Kn(ge),Q=new Se(ne,F+"leave",$,o,se),Q.target=vt,Q.relatedTarget=G,ne=null,It(se)===W&&(Se=new Se(H,F+"enter",ge,o,se),Se.target=G,Se.relatedTarget=vt,ne=Se),vt=ne,$&&ge)t:{for(Se=y3,H=$,F=ge,G=0,ne=H;ne;ne=Se(ne))G++;ne=0;for(var Ne=F;Ne;Ne=Se(Ne))ne++;for(;0<G-ne;)H=Se(H),G--;for(;0<ne-G;)F=Se(F),ne--;for(;G--;){if(H===F||F!==null&&H===F.alternate){Se=H;break t}H=Se(H),F=Se(F)}Se=null}else Se=null;$!==null&&h2(le,Q,$,Se,!1),ge!==null&&vt!==null&&h2(le,vt,ge,Se,!0)}}
vendor: 5,203 bytes, lines 9-10
9e:{if(Q=W?Kn(W):window,$=Q.nodeName&&Q.nodeName.toLowerCase(),$==="select"||$==="input"&&Q.type==="file")var ct=E1;else if(k1(Q))if(T1)ct=T_;else{ct=C_;var ye=k_}else $=Q.nodeName,!$||$.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?W&&H0(W.elementType)&&(ct=E1):ct=E_;if(ct&&(ct=ct(s,W))){C1(le,ct,o,se);break e}ye&&ye(s,Q,W),s==="focusout"&&W&&Q.type==="number"&&W.memoizedProps.value!=null&&F0(Q,"number",Q.value)}switch(ye=W?Kn(W):window,s){case"focusin":(k1(ye)||ye.contentEditable==="true")&&(Ki=ye,am=W,Ec=null);break;case"focusout":Ec=am=Ki=null;break;case"mousedown":nm=!0;break;case"contextmenu":case"mouseup":case"dragend":nm=!1,P1(le,o,se);break;case"selectionchange":if(O_)break;case"keydown":case"keyup":P1(le,o,se)}var Be;if($0)e:{switch(s){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Wi?_1(s,o)&&(at="onCompositionEnd"):s==="keydown"&&o.keyCode===229&&(at="onCompositionStart");at&&(A1&&o.locale!=="ko"&&(Wi||at!=="onCompositionStart"?at==="onCompositionEnd"&&Wi&&(Be=g1()):(Zl=se,K0="value"in Zl?Zl.value:Zl.textContent,Wi=!0)),ye=vh(W,at),0<ye.length&&(at=new v1(at,s,null,o,se),le.push({event:at,listeners:ye}),Be?at.data=Be:(Be=S1(o),Be!==null&&(at.data=Be)))),(Be=A_?w_(s,o):N_(s,o))&&(at=vh(W,"onBeforeInput"),0<at.length&&(ye=new v1("onBeforeInput","beforeinput",null,o,se),le.push({event:ye,listeners:at}),ye.data=Be)),p3(le,s,W,o,se)}d2(le,r)})}function ed(s,r,o){return{instance:s,listener:r,currentTarget:o}}function vh(s,r){for(var o=r+"Capture",d=[];s!==null;){var m=s,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=jc(s,o),m!=null&&d.unshift(ed(s,m,g)),m=jc(s,r),m!=null&&d.push(ed(s,m,g))),s.tag===3)return d;s=s.return}return[]}function y3(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function h2(s,r,o,d,m){for(var g=r._reactName,_=[];o!==null&&o!==d;){var M=o,I=M.alternate,W=M.stateNode;if(M=M.tag,I!==null&&I===d)break;M!==5&&M!==26&&M!==27||W===null||(I=W,m?(W=jc(o,g),W!=null&&_.unshift(ed(o,W,I))):m||(W=jc(o,g),W!=null&&_.push(ed(o,W,I)))),o=o.return}_.length!==0&&s.push({event:r,listeners:_})}var v3=/\r\n?/g,j3=/\u0000|\uFFFD/g;function f2(s){return(typeof s=="string"?s:""+s).replace(v3,` 10`).replace(j3,"")}function m2(s,r){return r=f2(r),f2(s)===r}function yt(s,r,o,d,m,g){switch(o){case"children":typeof d=="string"?r==="body"||r==="textarea"&&d===""||qi(s,d):(typeof d=="number"||typeof d=="bigint")&&r!=="body"&&qi(s,""+d);break;case"className":Nu(s,"class",d);break;case"tabIndex":Nu(s,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Nu(s,o,d);break;case"style":m1(s,d,g);break;case"data":if(r!=="object"){Nu(s,"data",d);break}case"src":case"href":if(d===""&&(r!=="a"||o!=="href")){s.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){s.removeAttribute(o);break}d=Su(""+d),s.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){s.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(r!=="input"&&yt(s,r,"name",m.name,m,null),yt(s,r,"formEncType",m.formEncType,m,null),yt(s,r,"formMethod",m.formMethod,m,null),yt(s,r,"formTarget",m.formTarget,m,null)):(yt(s,r,"encType",m.encType,m,null),yt(s,r,"method",m.method,m,null),yt(s,r,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){s.removeAttribute(o);break}d=Su(""+d),s.setAttribute(o,d);break;case"onClick":d!=null&&(s.onclick=ml);break;case"onScroll":d!=null&&et("scroll",s);break;case"onScrollEnd":d!=null&&et("scrollend",s);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(l(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(l(60));s.innerHTML=o}}break;case"multiple":s.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":s.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){s.removeAttribute("xlink:href");break}o=Su(""+d),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,""+d):s.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,""):s.removeAttribute(o);break;case"capture":case"download":d===!0?s.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,d):s.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?s.setAttribute(o,d):s.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?s.removeAttribute(o):s.setAttribute(o,d);break;case"popover":et("beforetoggle",s),et("toggle",s),wu(s,"popover",d);break;case"xlinkActuate":fl(s,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":fl(s,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":fl(s,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":fl(s,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":fl(s,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":fl(s,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":fl(s,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":fl(s,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":fl(s,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":wu(s,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=X4.get(o)||o,wu(s,o,d))}}function Ep(s,r,o,d,m,g){switch(o){case"style":m1(s,d,g);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(l(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(l(60));s.innerHTML=o}}break;case"children":typeof d=="string"?qi(s,d):(typeof d=="number"||typeof d=="bigint")&&qi(s,""+d);break;case"onScroll":d!=null&&et("scroll",s);break;case"onScrollEnd":d!=null&&et("scrollend",s);break;case"onClick":d!=null&&(s.onclick=ml);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fi.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),r=o.slice(2,m?o.length-7:void 0),g=s[He]||null,g=g!=null?g[o]:null,typeof g=="function"&&s.removeEventListener(r,g,m),typeof d=="function")){typeof g!="function"&&g!==null&&(o in s?s[o]=null:s.hasAttribute(o)&&s.removeAttribute(o)),s.addEventListener(r,d,m);break e}o in s?s[o]=d:d===!0?s.setAttribute(o,""):wu(s,o,d)}}}function Cs(s,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",s),et("load",s);var d=!1,m=!1,g;for(g in o)if(o.hasOwnProperty(g)){var _=o[g];if(_!=null)switch(g){case"src":d=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:yt(s,r,g,_,o,null)}}m&&yt(s,r,"srcSet",o.srcSet,o,null),d&&yt(s,r,"src",o.src,o,null);return;case"input":et("invalid",s);var M=g=_=m=null,I=null,W=null;for(d in o)if(o.hasOwnProperty(d)){var se=o[d];if(se!=null)switch(d){case"name":m=se;break;case"type":_=se;break;case"checked":I=se;break;case"defaultChecked":W=se;break;case"value":g=se;break;case"defaultValue":M=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(l(137,r));break;default:yt(s,r,d,se,o,null)}}d1(s,g,M,I,W,_,m,!1);return;case"select":et("invalid",s),d=_=g=null;for(m in o)if(o.hasOwnProperty(m)&&(M=o[m],M!=null))switch(m){case"value":g=M;break;case"defaultValue":_=M;break;case"multiple":d=M;default:yt(s,r,m,M,o,null)}r=g,o=_,s.multiple=!!d,r!=null?Hi(s,!!d,r,!1):o!=null&&Hi(s,!!d,o,!0);return;case"textarea":et("invalid",s),g=m=d=null;for(_ in o)if(o.hasOwnProperty(_)&&(M=o[_],M!=null))switch(_){case"value":d=M;break;case"defaultValue":m=M;break;case"children":g=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(l(91));break;default:yt(s,r,_,M,o,null)}h1(s,d,m,g);return;case"option":for(I in o)o.hasOwnProperty(I)&&(d=o[I],d!=null)&&(I==="selected"?s.selected=d&&typeof d!="function"&&typeof d!="symbol":yt(s,r,I,d,o,null));return;case"dialog":et("beforetoggle",s),et("toggle",s),et("cancel",s),et("close",s
vendor: 5,874 bytes, line 10
10);break;case"iframe":case"object":et("load",s);break;case"video":case"audio":for(d=0;d<$c.length;d++)et($c[d],s);break;case"image":et("error",s),et("load",s);break;case"details":et("toggle",s);break;case"embed":case"source":case"link":et("error",s),et("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in o)if(o.hasOwnProperty(W)&&(d=o[W],d!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:yt(s,r,W,d,o,null)}return;default:if(H0(r)){for(se in o)o.hasOwnProperty(se)&&(d=o[se],d!==void 0&&Ep(s,r,se,d,o,void 0));return}}for(M in o)o.hasOwnProperty(M)&&(d=o[M],d!=null&&yt(s,r,M,d,o,null))}function A3(s,r,o,d){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,_=null,M=null,I=null,W=null,se=null;for($ in o){var le=o[$];if(o.hasOwnProperty($)&&le!=null)switch($){case"checked":break;case"value":break;case"defaultValue":I=le;default:d.hasOwnProperty($)||yt(s,r,$,null,d,le)}}for(var Q in d){var $=d[Q];if(le=o[Q],d.hasOwnProperty(Q)&&($!=null||le!=null))switch(Q){case"type":g=$;break;case"name":m=$;break;case"checked":W=$;break;case"defaultChecked":se=$;break;case"value":_=$;break;case"defaultValue":M=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(l(137,r));break;default:$!==le&&yt(s,r,Q,$,d,le)}}V0(s,_,M,I,W,se,g,m);return;case"select":$=_=M=Q=null;for(g in o)if(I=o[g],o.hasOwnProperty(g)&&I!=null)switch(g){case"value":break;case"multiple":$=I;default:d.hasOwnProperty(g)||yt(s,r,g,null,d,I)}for(m in d)if(g=d[m],I=o[m],d.hasOwnProperty(m)&&(g!=null||I!=null))switch(m){case"value":Q=g;break;case"defaultValue":M=g;break;case"multiple":_=g;default:g!==I&&yt(s,r,m,g,d,I)}r=M,o=_,d=$,Q!=null?Hi(s,!!o,Q,!1):!!d!=!!o&&(r!=null?Hi(s,!!o,r,!0):Hi(s,!!o,o?[]:"",!1));return;case"textarea":$=Q=null;for(M in o)if(m=o[M],o.hasOwnProperty(M)&&m!=null&&!d.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:yt(s,r,M,null,d,m)}for(_ in d)if(m=d[_],g=o[_],d.hasOwnProperty(_)&&(m!=null||g!=null))switch(_){case"value":Q=m;break;case"defaultValue":$=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(l(91));break;default:m!==g&&yt(s,r,_,m,d,g)}u1(s,Q,$);return;case"option":for(var ge in o)Q=o[ge],o.hasOwnProperty(ge)&&Q!=null&&!d.hasOwnProperty(ge)&&(ge==="selected"?s.selected=!1:yt(s,r,ge,null,d,Q));for(I in d)Q=d[I],$=o[I],d.hasOwnProperty(I)&&Q!==$&&(Q!=null||$!=null)&&(I==="selected"?s.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":yt(s,r,I,Q,d,$));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in o)Q=o[Se],o.hasOwnProperty(Se)&&Q!=null&&!d.hasOwnProperty(Se)&&yt(s,r,Se,null,d,Q);for(W in d)if(Q=d[W],$=o[W],d.hasOwnProperty(W)&&Q!==$&&(Q!=null||$!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,r));break;default:yt(s,r,W,Q,d,$)}return;default:if(H0(r)){for(var vt in o)Q=o[vt],o.hasOwnProperty(vt)&&Q!==void 0&&!d.hasOwnProperty(vt)&&Ep(s,r,vt,void 0,d,Q);for(se in d)Q=d[se],$=o[se],!d.hasOwnProperty(se)||Q===$||Q===void 0&&$===void 0||Ep(s,r,se,Q,d,$);return}}for(var H in o)Q=o[H],o.hasOwnProperty(H)&&Q!=null&&!d.hasOwnProperty(H)&&yt(s,r,H,null,d,Q);for(le in d)Q=d[le],$=o[le],!d.hasOwnProperty(le)||Q===$||Q==null&&$==null||yt(s,r,le,Q,d,$)}function p2(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w3(){if(typeof performance.getEntriesByType=="function"){for(var s=0,r=0,o=performance.getEntriesByType("resource"),d=0;d<o.length;d++){var m=o[d],g=m.transferSize,_=m.initiatorType,M=m.duration;if(g&&M&&p2(_)){for(_=0,M=m.responseEnd,d+=1;d<o.length;d++){var I=o[d],W=I.startTime;if(W>M)break;var se=I.transferSize,le=I.initiatorType;se&&p2(le)&&(I=I.responseEnd,_+=se*(I<M?1:(M-W)/(I-W)))}if(--d,r+=8*(g+_)/(m.duration/1e3),s++,10<s)break}}if(0<s)return r/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var Tp=null,Rp=null;function jh(s){return s.nodeType===9?s:s.ownerDocument}function x2(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g2(s,r){if(s===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&r==="foreignObject"?0:s}function Op(s,r){return s==="textarea"||s==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Mp=null;function N3(){var s=window.event;return s&&s.type==="popstate"?s===Mp?!1:(Mp=s,!0):(Mp=null,!1)}var b2=typeof setTimeout=="function"?setTimeout:void 0,_3=typeof clearTimeout=="function"?clearTimeout:void 0,y2=typeof Promise=="function"?Promise:void 0,S3=typeof queueMicrotask=="function"?queueMicrotask:typeof y2<"u"?function(s){return y2.resolve(null).then(s).catch(k3)}:b2;function k3(s){setTimeout(function(){throw s})}function mr(s){return s==="head"}function v2(s,r){var o=r,d=0;do{var m=o.nextSibling;if(s.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(d===0){s.removeChild(m),Ao(r);return}d--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")d++;else if(o==="html")td(s.ownerDocument.documentElement);else if(o==="head"){o=s.ownerDocument.head,td(o);for(var g=o.firstChild;g;){var _=g.nextSibling,M=g.nodeName;g[Ut]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=_}}else o==="body"&&td(s.ownerDocument.body);o=m}while(o);Ao(r)}function j2(s,r){var o=s;
vendor: 5,805 bytes, line 10
10s=0;do{var d=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(s===0)break;s--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||s++;o=d}while(o)}function zp(s){var r=s.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":zp(o),$t(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}s.removeChild(o)}}function C3(s,r,o,d){for(;s.nodeType===1;){var m=o;if(s.nodeName.toLowerCase()!==r.toLowerCase()){if(!d&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(d){if(!s[Ut])switch(r){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(g=s.getAttribute("rel"),g==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(g!==m.rel||s.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||s.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||s.getAttribute("title")!==(m.title==null?null:m.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(g=s.getAttribute("src"),(g!==(m.src==null?null:m.src)||s.getAttribute("type")!==(m.type==null?null:m.type)||s.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(r==="input"&&s.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&s.getAttribute("name")===g)return s}else return s;if(s=fn(s.nextSibling),s===null)break}return null}function E3(s,r,o){if(r==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!o||(s=fn(s.nextSibling),s===null))return null;return s}function A2(s,r){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!r||(s=fn(s.nextSibling),s===null))return null;return s}function Lp(s){return s.data==="$?"||s.data==="$~"}function Dp(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function T3(s,r){var o=s.ownerDocument;if(s.data==="$~")s._reactRetry=r;else if(s.data!=="$?"||o.readyState!=="loading")r();else{var d=function(){r(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),s._reactRetry=d}}function fn(s){for(;s!=null;s=s.nextSibling){var r=s.nodeType;if(r===1||r===3)break;if(r===8){if(r=s.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return s}var Bp=null;function w2(s){s=s.nextSibling;for(var r=0;s;){if(s.nodeType===8){var o=s.data;if(o==="/$"||o==="/&"){if(r===0)return fn(s.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}s=s.nextSibling}return null}function N2(s){s=s.previousSibling;for(var r=0;s;){if(s.nodeType===8){var o=s.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return s;r--}else o!=="/$"&&o!=="/&"||r++}s=s.previousSibling}return null}function _2(s,r,o){switch(r=jh(o),s){case"html":if(s=r.documentElement,!s)throw Error(l(452));return s;case"head":if(s=r.head,!s)throw Error(l(453));return s;case"body":if(s=r.body,!s)throw Error(l(454));return s;default:throw Error(l(451))}}function td(s){for(var r=s.attributes;r.length;)s.removeAttributeNode(r[0]);$t(s)}var mn=new Map,S2=new Set;function Ah(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Tl=B.d;B.d={f:R3,r:O3,D:M3,C:z3,L:L3,m:D3,X:P3,S:B3,M:U3};function R3(){var s=Tl.f(),r=fh();return s||r}function O3(s){var r=la(s);r!==null&&r.tag===5&&r.type==="form"?Hy(r):Tl.r(s)}var yo=typeof document>"u"?null:document;function k2(s,r,o){var d=yo;if(d&&typeof r=="string"&&r){var m=ln(r);m='link[rel="'+s+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),S2.has(m)||(S2.add(m),s={rel:s,crossOrigin:o,href:r},d.querySelector(m)===null&&(r=d.createElement("link"),Cs(r,"link",s),Ke(r),d.head.appendChild(r)))}}function M3(s){Tl.D(s),k2("dns-prefetch",s,null)}function z3(s,r){Tl.C(s,r),k2("preconnect",s,r)}function L3(s,r,o){Tl.L(s,r,o);var d=yo;if(d&&s&&r){var m='link[rel="preload"][as="'+ln(r)+'"]';r==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+ln(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+ln(o.imageSizes)+'"]')):m+='[href="'+ln(s)+'"]';var g=m;switch(r){case"style":g=vo(s);break;case"script":g=jo(s)}mn.has(g)||(s=b({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:s,as:r},o),mn.set(g,s),d.querySelector(m)!==null||r==="style"&&d.querySelector(sd(g))||r==="script"&&d.querySelector(ad(g))||(r=d.createElement("link"),Cs(r,"link",s),Ke(r),d.head.appendChild(r)))}}function D3(s,r){Tl.m(s,r);var o=yo;if(o&&s){var d=r&&typeof r.as=="string"?r.as:"script",m='link[rel="modulepreload"][as="'+ln(d)+'"][href="'+ln(s)+'"]',g=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=jo(s)}if(!mn.has(g)&&(s=b({rel:"modulepreload",href:s},r),mn.set(g,s),o.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ad(g)))return}d=o.createElement("link"),Cs(d,"link",s),Ke(d),o.head.appendChild(d)}}}function B3(s,r,o){Tl.S(s,r,o);var d=yo;if(d&&s){var m=Vt(d).hoistableStyles,g=vo(s);r=r||"default";var _=m.get(g);if(!_){var M={loading:0,preload:null};if(_=d.querySelector(sd(g)))M.loading=5;else{s=b({rel:"stylesheet",href:s,"data-precedence":r},o),(o=mn.get(g))&&Pp(s,o);var I=_=d.createElement("link");
vendor: 5,716 bytes, line 10
10Ke(I),Cs(I,"link",s),I._p=new Promise(function(W,se){I.onload=W,I.onerror=se}),I.addEventListener("load",function(){M.loading|=1}),I.addEventListener("error",function(){M.loading|=2}),M.loading|=4,wh(_,r,d)}_={type:"stylesheet",instance:_,count:1,state:M},m.set(g,_)}}}function P3(s,r){Tl.X(s,r);var o=yo;if(o&&s){var d=Vt(o).hoistableScripts,m=jo(s),g=d.get(m);g||(g=o.querySelector(ad(m)),g||(s=b({src:s,async:!0},r),(r=mn.get(m))&&Up(s,r),g=o.createElement("script"),Ke(g),Cs(g,"link",s),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(m,g))}}function U3(s,r){Tl.M(s,r);var o=yo;if(o&&s){var d=Vt(o).hoistableScripts,m=jo(s),g=d.get(m);g||(g=o.querySelector(ad(m)),g||(s=b({src:s,async:!0,type:"module"},r),(r=mn.get(m))&&Up(s,r),g=o.createElement("script"),Ke(g),Cs(g,"link",s),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(m,g))}}function C2(s,r,o,d){var m=(m=Ve.current)?Ah(m):null;if(!m)throw Error(l(446));switch(s){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=vo(o.href),o=Vt(m).hoistableStyles,d=o.get(r),d||(d={type:"style",instance:null,count:0,state:null},o.set(r,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){s=vo(o.href);var g=Vt(m).hoistableStyles,_=g.get(s);if(_||(m=m.ownerDocument||m,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(s,_),(g=m.querySelector(sd(s)))&&!g._p&&(_.instance=g,_.state.loading=5),mn.has(s)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},mn.set(s,o),g||I3(m,s,o,_.state))),r&&d===null)throw Error(l(528,""));return _}if(r&&d!==null)throw Error(l(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=jo(o),o=Vt(m).hoistableScripts,d=o.get(r),d||(d={type:"script",instance:null,count:0,state:null},o.set(r,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,s))}}function vo(s){return'href="'+ln(s)+'"'}function sd(s){return'link[rel="stylesheet"]['+s+"]"}function E2(s){return b({},s,{"data-precedence":s.precedence,precedence:null})}function I3(s,r,o,d){s.querySelector('link[rel="preload"][as="style"]['+r+"]")?d.loading=1:(r=s.createElement("link"),d.preload=r,r.addEventListener("load",function(){return d.loading|=1}),r.addEventListener("error",function(){return d.loading|=2}),Cs(r,"link",o),Ke(r),s.head.appendChild(r))}function jo(s){return'[src="'+ln(s)+'"]'}function ad(s){return"script[async]"+s}function T2(s,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var d=s.querySelector('style[data-href~="'+ln(o.href)+'"]');if(d)return r.instance=d,Ke(d),d;var m=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(s.ownerDocument||s).createElement("style"),Ke(d),Cs(d,"style",m),wh(d,o.precedence,s),r.instance=d;case"stylesheet":m=vo(o.href);var g=s.querySelector(sd(m));if(g)return r.state.loading|=4,r.instance=g,Ke(g),g;d=E2(o),(m=mn.get(m))&&Pp(d,m),g=(s.ownerDocument||s).createElement("link"),Ke(g);var _=g;return _._p=new Promise(function(M,I){_.onload=M,_.onerror=I}),Cs(g,"link",d),r.state.loading|=4,wh(g,o.precedence,s),r.instance=g;case"script":return g=jo(o.src),(m=s.querySelector(ad(g)))?(r.instance=m,Ke(m),m):(d=o,(m=mn.get(g))&&(d=b({},o),Up(d,m)),s=s.ownerDocument||s,m=s.createElement("script"),Ke(m),Cs(m,"link",d),s.head.appendChild(m),r.instance=m);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(d=r.instance,r.state.loading|=4,wh(d,o.precedence,s));return r.instance}function wh(s,r,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=d.length?d[d.length-1]:null,g=m,_=0;_<d.length;_++){var M=d[_];if(M.dataset.precedence===r)g=M;else if(g!==m)break}g?g.parentNode.insertBefore(s,g.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(s,r.firstChild))}function Pp(s,r){s.crossOrigin==null&&(s.crossOrigin=r.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=r.referrerPolicy),s.title==null&&(s.title=r.title)}function Up(s,r){s.crossOrigin==null&&(s.crossOrigin=r.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=r.referrerPolicy),s.integrity==null&&(s.integrity=r.integrity)}var Nh=null;function R2(s,r,o){if(Nh===null){var d=new Map,m=Nh=new Map;m.set(o,d)}else m=Nh,d=m.get(o),d||(d=new Map,m.set(o,d));if(d.has(s))return d;for(d.set(s,null),o=o.getElementsByTagName(s),m=0;m<o.length;m++){var g=o[m];if(!(g[Ut]||g[Ue]||s==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var _=g.getAttribute(r)||"";_=s+_;var M=d.get(_);M?M.push(g):d.set(_,[g])}}return d}function O2(s,r,o){s=s.ownerDocument||s,s.head.insertBefore(o,r==="title"?s.querySelector("head > title"):null)}function V3(s,r,o){if(o===1||r.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(s=r.disabled,typeof r.precedence=="string"&&s==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function M2(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function F3(s,r,o,d){if(o.type==="stylesheet"&&(typeof d.media!="str
10ing"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=vo(d.href),g=r.querySelector(sd(m));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(s.count++,s=_h.bind(s),r.then(s,s)),o.state.loading|=4,o.instance=g,Ke(g);return}g=r.ownerDocument||r,d=E2(d),(m=mn.get(m))&&Pp(d,m),g=g.createElement("link"),Ke(g);var _=g;_._p=new Promise(function(M,I){_.onload=M,_.onerror=I}),Cs(g,"link",d),o.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(s.count++,o=_h.bind(s),r.addEventListener("load",o),r.addEventListener("error",o))}}var Ip=0;function H3(s,r){return s.stylesheets&&s.count===0&&kh(s,s.stylesheets),0<s.count||0<s.imgCount?function(o){var d=setTimeout(function(){if(s.stylesheets&&kh(s,s.stylesheets),s.unsuspend){var g=s.unsuspend;s.unsuspend=null,g()}},6e4+r);0<s.imgBytes&&Ip===0&&(Ip=62500*w3());var m=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&kh(s,s.stylesheets),s.unsuspend)){var g=s.unsuspend;s.unsuspend=null,g()}},(s.imgBytes>Ip?50:800)+r);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(d),clearTimeout(m)}}:null}function _h(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kh(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Sh=null;function kh(s,r){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Sh=new Map,r.forEach(q3,s),Sh=null,_h.call(s))}function q3(s,r){if(!(r.state.loading&4)){var o=Sh.get(s);if(o)var d=o.get(null);else{o=new Map,Sh.set(s,o);for(var m=s.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var _=m[g];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(o.set(_.dataset.precedence,_),d=_)}d&&o.set(null,d)}m=r.instance,_=m.getAttribute("data-precedence"),g=o.get(_)||d,g===d&&o.set(null,m),o.set(_,m),this.count++,d=_h.bind(this),m.addEventListener("load",d),m.addEventListener("error",d),g?g.parentNode.insertBefore(m,g.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(m,s.firstChild)),r.state.loading|=4}}var nd={$$typeof:T,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function Y3(s,r,o,d,m,g,_,M,I){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Te(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Te(0),this.hiddenUpdates=Te(null),this.identifierPrefix=d,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function z2(s,r,o,d,m,g,_,M,I,W,se,le){return s=new Y3(s,r,o,_,I,W,se,le,M),r=1,g===!0&&(r|=24),g=Sa(3,null,null,r),s.current=g,g.stateNode=s,r=ym(),r.refCount++,s.pooledCache=r,r.refCount++,g.memoizedState={element:d,isDehydrated:o,cache:r},wm(g),s}function L2(s){return s?(s=Zi,s):Zi}function D2(s,r,o,d,m,g){m=L2(m),d.context===null?d.context=m:d.pendingContext=m,d=ar(r),d.payload={element:o},g=g===void 0?null:g,g!==null&&(d.callback=g),o=nr(s,d,r),o!==null&&(ua(o,s,r),Dc(o,s,r))}function B2(s,r){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var o=s.retryLane;s.retryLane=o!==0&&o<r?o:r}}function Vp(s,r){B2(s,r),(s=s.alternate)&&B2(s,r)}function P2(s){if(s.tag===13||s.tag===31){var r=Zr(s,67108864);r!==null&&ua(r,s,67108864),Vp(s,67108864)}}function U2(s){if(s.tag===13||s.tag===31){var r=Ra();r=Ee(r);var o=Zr(s,r);o!==null&&ua(o,s,r),Vp(s,r)}}var Ch=!0;function G3(s,r,o,d){var m=U.T;U.T=null;var g=B.p;try{B.p=2,Fp(s,r,o,d)}finally{B.p=g,U.T=m}}function W3(s,r,o,d){var m=U.T;U.T=null;var g=B.p;try{B.p=8,Fp(s,r,o,d)}finally{B.p=g,U.T=m}}function Fp(s,r,o,d){if(Ch){var m=Hp(d);if(m===null)Cp(s,r,d,Eh,o),V2(s,d);else if(X3(m,s,r,o,d))d.stopPropagation();else if(V2(s,d),r&4&&-1<K3.indexOf(s)){for(;m!==null;){var g=la(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var _=ps(g.pendingLanes);if(_!==0){var M=g;
vendor: 7,032 bytes, line 10
10for(M.pendingLanes|=2,M.entangledLanes|=2;_;){var I=1<<31-is(_);M.entanglements[1]|=I,_&=~I}el(g),(ut&6)===0&&(uh=Jt()+500,Jc(0))}}break;case 31:case 13:M=Zr(g,2),M!==null&&ua(M,g,2),fh(),Vp(g,2)}if(g=Hp(d),g===null&&Cp(s,r,d,Eh,o),g===m)break;m=g}m!==null&&d.stopPropagation()}else Cp(s,r,d,null,o)}}function Hp(s){return s=Y0(s),qp(s)}var Eh=null;function qp(s){if(Eh=null,s=It(s),s!==null){var r=c(s);if(r===null)s=null;else{var o=r.tag;if(o===13){if(s=u(r),s!==null)return s;s=null}else if(o===31){if(s=h(r),s!==null)return s;s=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;s=null}else r!==s&&(s=null)}}return Eh=s,null}function I2(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(rs()){case On:return 2;case Rt:return 8;case Ls:case na:return 32;case Ja:return 268435456;default:return 32}default:return 32}}var Yp=!1,pr=null,xr=null,gr=null,ld=new Map,rd=new Map,br=[],K3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function V2(s,r){switch(s){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":ld.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(r.pointerId)}}function id(s,r,o,d,m,g){return s===null||s.nativeEvent!==g?(s={blockedOn:r,domEventName:o,eventSystemFlags:d,nativeEvent:g,targetContainers:[m]},r!==null&&(r=la(r),r!==null&&P2(r)),s):(s.eventSystemFlags|=d,r=s.targetContainers,m!==null&&r.indexOf(m)===-1&&r.push(m),s)}function X3(s,r,o,d,m){switch(r){case"focusin":return pr=id(pr,s,r,o,d,m),!0;case"dragenter":return xr=id(xr,s,r,o,d,m),!0;case"mouseover":return gr=id(gr,s,r,o,d,m),!0;case"pointerover":var g=m.pointerId;return ld.set(g,id(ld.get(g)||null,s,r,o,d,m)),!0;case"gotpointercapture":return g=m.pointerId,rd.set(g,id(rd.get(g)||null,s,r,o,d,m)),!0}return!1}function F2(s){var r=It(s.target);if(r!==null){var o=c(r);if(o!==null){if(r=o.tag,r===13){if(r=u(o),r!==null){s.blockedOn=r,Ot(s.priority,function(){U2(o)});return}}else if(r===31){if(r=h(o),r!==null){s.blockedOn=r,Ot(s.priority,function(){U2(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){s.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Th(s){if(s.blockedOn!==null)return!1;for(var r=s.targetContainers;0<r.length;){var o=Hp(s.nativeEvent);if(o===null){o=s.nativeEvent;var d=new o.constructor(o.type,o);q0=d,o.target.dispatchEvent(d),q0=null}else return r=la(o),r!==null&&P2(r),s.blockedOn=o,!1;r.shift()}return!0}function H2(s,r,o){Th(s)&&o.delete(r)}function Q3(){Yp=!1,pr!==null&&Th(pr)&&(pr=null),xr!==null&&Th(xr)&&(xr=null),gr!==null&&Th(gr)&&(gr=null),ld.forEach(H2),rd.forEach(H2)}function Rh(s,r){s.blockedOn===r&&(s.blockedOn=null,Yp||(Yp=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Q3)))}var Oh=null;function q2(s){Oh!==s&&(Oh=s,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Oh===s&&(Oh=null);for(var r=0;r<s.length;r+=3){var o=s[r],d=s[r+1],m=s[r+2];if(typeof d!="function"){if(qp(d||o)===null)continue;break}var g=la(o);g!==null&&(s.splice(r,3),r-=3,Hm(g,{pending:!0,data:m,method:o.method,action:d},d,m))}}))}function Ao(s){function r(I){return Rh(I,s)}pr!==null&&Rh(pr,s),xr!==null&&Rh(xr,s),gr!==null&&Rh(gr,s),ld.forEach(r),rd.forEach(r);for(var o=0;o<br.length;o++){var d=br[o];d.blockedOn===s&&(d.blockedOn=null)}for(;0<br.length&&(o=br[0],o.blockedOn===null);)F2(o),o.blockedOn===null&&br.shift();if(o=(s.ownerDocument||s).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var m=o[d],g=o[d+1],_=m[He]||null;if(typeof g=="function")_||q2(o);else if(_){var M=null;if(g&&g.hasAttribute("formAction")){if(m=g,_=g[He]||null)M=_.formAction;else if(qp(m)!==null)continue}else M=_.action;typeof M=="function"?o[d+1]=M:(o.splice(d,3),d-=3),q2(o)}}}function Y2(){function s(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(_){return m=_})},focusReset:"manual",scroll:"manual"})}function r(){m!==null&&(m(),m=null),d||setTimeout(o,20)}function o(){if(!d&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,m=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){d=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),m!==null&&(m(),m=null)}}}function Gp(s){this._internalRoot=s}Mh.prototype.render=Gp.prototype.render=function(s){var r=this._internalRoot;if(r===null)throw Error(l(409));var o=r.current,d=Ra();D2(o,d,s,r,null,null)},Mh.prototype.unmount=Gp.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var r=s.containerInfo;D2(s.current,2,null,s,null,null),fh(),r[it]=null}};function Mh(s){this._internalRoot=s}Mh.prototype.unstable_scheduleHydration=function(s){if(s){var r=We();s={blockedOn:null,target:s,priority:r};for(var o=0;o<br.length&&r!==0&&r<br[o].priority;o++);br.splice(o,0,s),o===0&&F2(s)}};var G2=t.version;if(G2!=="19.2.3")throw Error(l(527,G2,"19.2.3"));B.findDOMNode=function(s){var r=s._reactInternals;if(r===void 0)throw typeof s.render=="function"?Error(l(188)):(s=Object.keys(s).join(","),Error(l(268,s)));return s=p(r),s=s!==null?x(s):null,s=s===null?null:s.stateNode,s};var Z3={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};
vendor: 4,788 bytes, line 10
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zh.isDisabled&&zh.supportsFiber)try{Gn=zh.inject(Z3),Pt=zh}catch{}}return od.createRoot=function(s,r){if(!i(s))throw Error(l(299));var o=!1,d="",m=$y,g=ev,_=tv;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError)),r=z2(s,1,!1,null,null,o,d,null,m,g,_,Y2),s[it]=r.current,kp(s),new Gp(r)},od.hydrateRoot=function(s,r,o){if(!i(s))throw Error(l(299));var d=!1,m="",g=$y,_=ev,M=tv,I=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(M=o.onRecoverableError),o.formState!==void 0&&(I=o.formState)),r=z2(s,1,!0,r,o??null,d,m,I,g,_,M,Y2),r.context=L2(null),o=r.current,d=Ra(),d=Ee(d),m=ar(d),m.callback=null,nr(o,m,d),o=d,r.current.lanes=o,Ae(r,o),el(r),s[it]=r.current,kp(s),new Mh(r)},od.version="19.2.3",od}var ej;function hS(){if(ej)return Wp.exports;ej=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(t){console.error(t)}}return a(),Wp.exports=uS(),Wp.exports}var fS=hS();function Aw(a,t){return function(){return a.apply(t,arguments)}}const{toString:mS}=Object.prototype,{getPrototypeOf:$g}=Object,{iterator:j0,toStringTag:ww}=Symbol,A0=(a=>t=>{const n=mS.call(t);return a[n]||(a[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vn=a=>(a=a.toLowerCase(),t=>A0(t)===a),w0=a=>t=>typeof t===a,{isArray:cc}=Array,$o=w0("undefined");function ou(a){return a!==null&&!$o(a)&&a.constructor!==null&&!$o(a.constructor)&&pa(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const Nw=Vn("ArrayBuffer");function pS(a){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(a):t=a&&a.buffer&&Nw(a.buffer),t}const xS=w0("string"),pa=w0("function"),_w=w0("number"),cu=a=>a!==null&&typeof a=="object",gS=a=>a===!0||a===!1,Ef=a=>{if(A0(a)!=="object")return!1;const t=$g(a);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ww in a)&&!(j0 in a)},bS=a=>{if(!cu(a)||ou(a))return!1;try{return Object.keys(a).length===0&&Object.getPrototypeOf(a)===Object.prototype}catch{return!1}},yS=Vn("Date"),vS=Vn("File"),jS=Vn("Blob"),AS=Vn("FileList"),wS=a=>cu(a)&&pa(a.pipe),NS=a=>{let t;return a&&(typeof FormData=="function"&&a instanceof FormData||pa(a.append)&&((t=A0(a))==="formdata"||t==="object"&&pa(a.toString)&&a.toString()==="[object FormData]"))},_S=Vn("URLSearchParams"),[SS,kS,CS,ES]=["ReadableStream","Request","Response","Headers"].map(Vn),TS=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function du(a,t,{allOwnKeys:n=!1}={}){if(a===null||typeof a>"u")return;let l,i;if(typeof a!="object"&&(a=[a]),cc(a))for(l=0,i=a.length;l<i;l++)t.call(null,a[l],l,a);else{if(ou(a))return;const c=n?Object.getOwnPropertyNames(a):Object.keys(a),u=c.length;let h;for(l=0;l<u;l++)h=c[l],t.call(null,a[h],h,a)}}function Sw(a,t){if(ou(a))return null;t=t.toLowerCase();const n=Object.keys(a);let l=n.length,i;for(;l-- >0;)if(i=n[l],t===i.toLowerCase())return i;return null}const bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,kw=a=>!$o(a)&&a!==bi;function $x(){const{caseless:a,skipUndefined:t}=kw(this)&&this||{},n={},l=(i,c)=>{const u=a&&Sw(n,c)||c;Ef(n[u])&&Ef(i)?n[u]=$x(n[u],i):Ef(i)?n[u]=$x({},i):cc(i)?n[u]=i.slice():(!t||!$o(i))&&(n[u]=i)};for(let i=0,c=arguments.length;i<c;i++)arguments[i]&&du(arguments[i],l);return n}const RS=(a,t,n,{allOwnKeys:l}={})=>(du(t,(i,c)=>{n&&pa(i)?a[c]=Aw(i,n):a[c]=i},{allOwnKeys:l}),a),OS=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),MS=(a,t,n,l)=>{a.prototype=Object.create(t.prototype,l),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:t.prototype}),n&&Object.assign(a.prototype,n)},zS=(a,t,n,l)=>{let i,c,u;const h={};if(t=t||{},a==null)return t;do{for(i=Object.getOwnPropertyNames(a),c=i.length;c-- >0;)u=i[c],(!l||l(u,a,t))&&!h[u]&&(t[u]=a[u],h[u]=!0);a=n!==!1&&$g(a)}while(a&&(!n||n(a,t))&&a!==Object.prototype);return t},LS=(a,t,n)=>{a=String(a),(n===void 0||n>a.length)&&(n=a.length),n-=t.length;const l=a.indexOf(t,n);return l!==-1&&l===n},DS=a=>{if(!a)return null;if(cc(a))return a;let t=a.length;if(!_w(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=a[t];return n},BS=(a=>t=>a&&t instanceof a)(typeof Uint8Array<"u"&&$g(Uint8Array)),PS=(a,t)=>{const l=(a&&a[j0]).call(a);let i;for(;(i=l.next())&&!i.done;){const c=i.value;
10t.call(a,c[0],c[1])}},US=(a,t)=>{let n;const l=[];for(;(n=a.exec(t))!==null;)l.push(n);return l},IS=Vn("HTMLFormElement"),VS=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,l,i){return l.toUpperCase()+i}),tj=(({hasOwnProperty:a})=>(t,n)=>a.call(t,n))(Object.prototype),FS=Vn("RegExp"),Cw=(a,t)=>{const n=Object.getOwnPropertyDescriptors(a),l={};du(n,(i,c)=>{let u;(u=t(i,c,a))!==!1&&(l[c]=u||i)}),Object.defineProperties(a,l)},HS=a=>{Cw(a,(t,n)=>{if(pa(a)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const l=a[n];if(pa(l)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qS=(a,t)=>{const n={},l=i=>{i.forEach(c=>{n[c]=!0})};return cc(a)?l(a):l(String(a).split(t)),n},YS=()=>{},GS=(a,t)=>a!=null&&Number.isFinite(a=+a)?a:t;function WS(a){return!!(a&&pa(a.append)&&a[ww]==="FormData"&&a[j0])}const KS=a=>{const t=new Array(10),n=(l,i)=>{if(cu(l)){if(t.indexOf(l)>=0)return;if(ou(l))return l;if(!("toJSON"in l)){t[i]=l;const c=cc(l)?[]:{};return du(l,(u,h)=>{const f=n(u,i+1);!$o(f)&&(c[h]=f)}),t[i]=void 0,c}}return l};return n(a,0)},XS=Vn("AsyncFunction"),QS=a=>a&&(cu(a)||pa(a))&&pa(a.then)&&pa(a.catch),Ew=((a,t)=>a?setImmediate:t?((n,l)=>(bi.addEventListener("message",({source:i,data:c})=>{i===bi&&c===n&&l.length&&l.shift()()},!1),i=>{l.push(i),bi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pa(bi.postMessage)),ZS=typeof queueMicrotask<"u"?queueMicrotask.bind(bi):typeof process<"u"&&process.nextTick||Ew,JS=a=>a!=null&&pa(a[j0]),J={isArray:cc,isArrayBuffer:Nw,isBuffer:ou,isFormData:NS,isArrayBufferView:pS,isString:xS,isNumber:_w,isBoolean:gS,isObject:cu,isPlainObject:Ef,isEmptyObject:bS,isReadableStream:SS,isRequest:kS,isResponse:CS,isHeaders:ES,isUndefined:$o,isDate:yS,isFile:vS,isBlob:jS,isRegExp:FS,isFunction:pa,isStream:wS,isURLSearchParams:_S,isTypedArray:BS,isFileList:AS,forEach:du,merge:$x,extend:RS,trim:TS,stripBOM:OS,inherits:MS,toFlatObject:zS,kindOf:A0,kindOfTest:Vn,endsWith:LS,toArray:DS,forEachEntry:PS,matchAll:US,isHTMLForm:IS,hasOwnProperty:tj,hasOwnProp:tj,reduceDescriptors:Cw,freezeMethods:HS,toObjectSet:qS,toCamelCase:VS,noop:YS,toFiniteNumber:GS,findKey:Sw,global:bi,isContextDefined:kw,isSpecCompliantForm:WS,toJSONObject:KS,isAsyncFn:XS,isThenable:QS,setImmediate:Ew,asap:ZS,isIterable:JS};function Le(a,t,n,l,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),l&&(this.request=l),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(Le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Tw=Le.prototype,Rw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{Rw[a]={value:a}});Object.defineProperties(Le,Rw);Object.defineProperty(Tw,"isAxiosError",{value:!0});Le.from=(a,t,n,l,i,c)=>{const u=Object.create(Tw);J.toFlatObject(a,u,function(x){return x!==Error.prototype},p=>p!=="isAxiosError");const h=a&&a.message?a.message:"Error",f=t==null&&a?a.code:t;return Le.call(u,h,f,n,l,i),a&&u.cause==null&&Object.defineProperty(u,"cause",{value:a,configurable:!0}),u.name=a&&a.name||"Error",c&&Object.assign(u,c),u};const $S=null;function eg(a){return J.isPlainObject(a)||J.isArray(a)}function Ow(a){return J.endsWith(a,"[]")?a.slice(0,-2):a}function sj(a,t,n){return a?a.concat(t).map(function(i,c){return i=Ow(i),!n&&c?"["+i+"]":i}).join(n?".":""):t}function e6(a){return J.isArray(a)&&!a.some(eg)}const t6=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function N0(a,t,n){if(!J.isObject(a))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,A){return!J.isUndefined(A[N])});const l=n.metaTokens,i=n.visitor||x,c=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function p(j){if(j===null)return"";if(J.isDate(j))return j.toISOString();if(J.isBoolean(j))return j.toString();if(!f&&J.isBlob(j))throw new Le("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(j)||J.isTypedArray(j)?f&&typeof Blob=="function"?new Blob([j]):Buffer.from(j):j}function x(j,N,A){let S=j;
vendor: 4,383 bytes, line 10
10if(j&&!A&&typeof j=="object"){if(J.endsWith(N,"{}"))N=l?N:N.slice(0,-2),j=JSON.stringify(j);else if(J.isArray(j)&&e6(j)||(J.isFileList(j)||J.endsWith(N,"[]"))&&(S=J.toArray(j)))return N=Ow(N),S.forEach(function(T,L){!(J.isUndefined(T)||T===null)&&t.append(u===!0?sj([N],L,c):u===null?N:N+"[]",p(T))}),!1}return eg(j)?!0:(t.append(sj(A,N,c),p(j)),!1)}const b=[],v=Object.assign(t6,{defaultVisitor:x,convertValue:p,isVisitable:eg});function w(j,N){if(!J.isUndefined(j)){if(b.indexOf(j)!==-1)throw Error("Circular reference detected in "+N.join("."));b.push(j),J.forEach(j,function(S,C){(!(J.isUndefined(S)||S===null)&&i.call(t,S,J.isString(C)?C.trim():C,N,v))===!0&&w(S,N?N.concat(C):[C])}),b.pop()}}if(!J.isObject(a))throw new TypeError("data must be an object");return w(a),t}function aj(a){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(l){return t[l]})}function eb(a,t){this._pairs=[],a&&N0(a,this,t)}const Mw=eb.prototype;Mw.append=function(t,n){this._pairs.push([t,n])};Mw.toString=function(t){const n=t?function(l){return t.call(this,l,aj)}:aj;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function s6(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function zw(a,t,n){if(!t)return a;const l=n&&n.encode||s6;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let c;if(i?c=i(t,n):c=J.isURLSearchParams(t)?t.toString():new eb(t,n).toString(l),c){const u=a.indexOf("#");u!==-1&&(a=a.slice(0,u)),a+=(a.indexOf("?")===-1?"?":"&")+c}return a}class nj{constructor(){this.handlers=[]}use(t,n,l){return this.handlers.push({fulfilled:t,rejected:n,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(l){l!==null&&t(l)})}}const Lw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a6=typeof URLSearchParams<"u"?URLSearchParams:eb,n6=typeof FormData<"u"?FormData:null,l6=typeof Blob<"u"?Blob:null,r6={isBrowser:!0,classes:{URLSearchParams:a6,FormData:n6,Blob:l6},protocols:["http","https","file","blob","url","data"]},tb=typeof window<"u"&&typeof document<"u",tg=typeof navigator=="object"&&navigator||void 0,i6=tb&&(!tg||["ReactNative","NativeScript","NS"].indexOf(tg.product)<0),o6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c6=tb&&window.location.href||"http://localhost",d6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tb,hasStandardBrowserEnv:i6,hasStandardBrowserWebWorkerEnv:o6,navigator:tg,origin:c6},Symbol.toStringTag,{value:"Module"})),Is={...d6,...r6};function u6(a,t){return N0(a,new Is.classes.URLSearchParams,{visitor:function(n,l,i,c){return Is.isNode&&J.isBuffer(n)?(this.append(l,n.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...t})}function h6(a){return J.matchAll(/\w+|\[(\w*)]/g,a).map(t=>t[0]==="[]"?"":t[1]||t[0])}function f6(a){const t={},n=Object.keys(a);let l;const i=n.length;let c;for(l=0;l<i;l++)c=n[l],t[c]=a[c];return t}function Dw(a){function t(n,l,i,c){let u=n[c++];if(u==="__proto__")return!0;const h=Number.isFinite(+u),f=c>=n.length;return u=!u&&J.isArray(i)?i.length:u,f?(J.hasOwnProp(i,u)?i[u]=[i[u],l]:i[u]=l,!h):((!i[u]||!J.isObject(i[u]))&&(i[u]=[]),t(n,l,i[u],c)&&J.isArray(i[u])&&(i[u]=f6(i[u])),!h)}if(J.isFormData(a)&&J.isFunction(a.entries)){const n={};return J.forEachEntry(a,(l,i)=>{t(h6(l),i,n,0)}),n}return null}function m6(a,t,n){if(J.isString(a))try{return(t||JSON.parse)(a),J.trim(a)}catch(l){if(l.name!=="SyntaxError")throw l}return(n||JSON.stringify)(a)}const uu={transitional:Lw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const l=n.getContentType()||"",i=l.indexOf("application/json")>-1,c=J.isObject(t);if(c&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(Dw(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let h;if(c){if(l.indexOf("application/x-www-form-urlencoded")>
vendor: 4,427 bytes, lines 10-12
10-1)return u6(t,this.formSerializer).toString();if((h=J.isFileList(t))||l.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return N0(h?{"files[]":t}:t,f&&new f,this.formSerializer)}}return c||i?(n.setContentType("application/json",!1),m6(t)):t}],transformResponse:[function(t){const n=this.transitional||uu.transitional,l=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(l&&!this.responseType||i)){const u=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(h){if(u)throw h.name==="SyntaxError"?Le.from(h,Le.ERR_BAD_RESPONSE,this,null,this.response):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Is.classes.FormData,Blob:Is.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],a=>{uu.headers[a]={}});const p6=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),x6=a=>{const t={};let n,l,i;return a&&a.split(` 11`).forEach(function(u){i=u.indexOf(":"),n=u.substring(0,i).trim().toLowerCase(),l=u.substring(i+1).trim(),!(!n||t[n]&&p6[n])&&(n==="set-cookie"?t[n]?t[n].push(l):t[n]=[l]:t[n]=t[n]?t[n]+", "+l:l)}),t},lj=Symbol("internals");function cd(a){return a&&String(a).trim().toLowerCase()}function Tf(a){return a===!1||a==null?a:J.isArray(a)?a.map(Tf):String(a)}function g6(a){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=n.exec(a);)t[l[1]]=l[2];return t}const b6=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function Qp(a,t,n,l,i){if(J.isFunction(l))return l.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(l))return t.indexOf(l)!==-1;if(J.isRegExp(l))return l.test(t)}}function y6(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,l)=>n.toUpperCase()+l)}function v6(a,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(l=>{Object.defineProperty(a,l+n,{value:function(i,c,u){return this[l].call(this,t,i,c,u)},configurable:!0})})}let xa=class{constructor(t){t&&this.set(t)}set(t,n,l){const i=this;function c(h,f,p){const x=cd(f);if(!x)throw new Error("header name must be a non-empty string");const b=J.findKey(i,x);(!b||i[b]===void 0||p===!0||p===void 0&&i[b]!==!1)&&(i[b||f]=Tf(h))}const u=(h,f)=>J.forEach(h,(p,x)=>c(p,x,f));if(J.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(J.isString(t)&&(t=t.trim())&&!b6(t))u(x6(t),n);else if(J.isObject(t)&&J.isIterable(t)){let h={},f,p;for(const x of t){if(!J.isArray(x))throw TypeError("Object iterator must return a key-value pair");h[p=x[0]]=(f=h[p])?J.isArray(f)?[...f,x[1]]:[f,x[1]]:x[1]}u(h,n)}else t!=null&&c(n,t,l);return this}get(t,n){if(t=cd(t),t){const l=J.findKey(this,t);if(l){const i=this[l];if(!n)return i;if(n===!0)return g6(i);if(J.isFunction(n))return n.call(this,i,l);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cd(t),t){const l=J.findKey(this,t);return!!(l&&this[l]!==void 0&&(!n||Qp(this,this[l],l,n)))}return!1}delete(t,n){const l=this;let i=!1;function c(u){if(u=cd(u),u){const h=J.findKey(l,u);h&&(!n||Qp(l,l[h],h,n))&&(delete l[h],i=!0)}}return J.isArray(t)?t.forEach(c):c(t),i}clear(t){const n=Object.keys(this);let l=n.length,i=!1;for(;l--;){const c=n[l];(!t||Qp(this,this[c],c,t,!0))&&(delete this[c],i=!0)}return i}normalize(t){const n=this,l={};return J.forEach(this,(i,c)=>{const u=J.findKey(l,c);if(u){n[u]=Tf(i),delete n[c];return}const h=t?y6(c):String(c).trim();h!==c&&delete n[c],n[h]=Tf(i),l[h]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(l,i)=>{l!=null&&l!==!1&&(n[i]=t&&J.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 12`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const l=new this(t);
vendor: 5,848 bytes, line 12
12return n.forEach(i=>l.set(i)),l}static accessor(t){const l=(this[lj]=this[lj]={accessors:{}}).accessors,i=this.prototype;function c(u){const h=cd(u);l[h]||(v6(i,u),l[h]=!0)}return J.isArray(t)?t.forEach(c):c(t),this}};xa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(xa.prototype,({value:a},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>a,set(l){this[n]=l}}});J.freezeMethods(xa);function Zp(a,t){const n=this||uu,l=t||n,i=xa.from(l.headers);let c=l.data;return J.forEach(a,function(h){c=h.call(n,c,i.normalize(),t?t.status:void 0)}),i.normalize(),c}function Bw(a){return!!(a&&a.__CANCEL__)}function dc(a,t,n){Le.call(this,a??"canceled",Le.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(dc,Le,{__CANCEL__:!0});function Pw(a,t,n){const l=n.config.validateStatus;!n.status||!l||l(n.status)?a(n):t(new Le("Request failed with status code "+n.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function j6(a){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return t&&t[1]||""}function A6(a,t){a=a||10;const n=new Array(a),l=new Array(a);let i=0,c=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),x=l[c];u||(u=p),n[i]=f,l[i]=p;let b=c,v=0;for(;b!==i;)v+=n[b++],b=b%a;if(i=(i+1)%a,i===c&&(c=(c+1)%a),p-u<t)return;const w=x&&p-x;return w?Math.round(v*1e3/w):void 0}}function w6(a,t){let n=0,l=1e3/t,i,c;const u=(p,x=Date.now())=>{n=x,i=null,c&&(clearTimeout(c),c=null),a(...p)};return[(...p)=>{const x=Date.now(),b=x-n;b>=l?u(p,x):(i=p,c||(c=setTimeout(()=>{c=null,u(i)},l-b)))},()=>i&&u(i)]}const $f=(a,t,n=3)=>{let l=0;const i=A6(50,250);return w6(c=>{const u=c.loaded,h=c.lengthComputable?c.total:void 0,f=u-l,p=i(f),x=u<=h;l=u;const b={loaded:u,total:h,progress:h?u/h:void 0,bytes:f,rate:p||void 0,estimated:p&&h&&x?(h-u)/p:void 0,event:c,lengthComputable:h!=null,[t?"download":"upload"]:!0};a(b)},n)},rj=(a,t)=>{const n=a!=null;return[l=>t[0]({lengthComputable:n,total:a,loaded:l}),t[1]]},ij=a=>(...t)=>J.asap(()=>a(...t)),N6=Is.hasStandardBrowserEnv?((a,t)=>n=>(n=new URL(n,Is.origin),a.protocol===n.protocol&&a.host===n.host&&(t||a.port===n.port)))(new URL(Is.origin),Is.navigator&&/(msie|trident)/i.test(Is.navigator.userAgent)):()=>!0,_6=Is.hasStandardBrowserEnv?{write(a,t,n,l,i,c,u){if(typeof document>"u")return;const h=[`${a}=${encodeURIComponent(t)}`];J.isNumber(n)&&h.push(`expires=${new Date(n).toUTCString()}`),J.isString(l)&&h.push(`path=${l}`),J.isString(i)&&h.push(`domain=${i}`),c===!0&&h.push("secure"),J.isString(u)&&h.push(`SameSite=${u}`),document.cookie=h.join("; ")},read(a){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+a+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(a){this.write(a,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function S6(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function k6(a,t){return t?a.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):a}function Uw(a,t,n){let l=!S6(t);return a&&(l||n==!1)?k6(a,t):t}const oj=a=>a instanceof xa?{...a}:a;function Oi(a,t){t=t||{};const n={};function l(p,x,b,v){return J.isPlainObject(p)&&J.isPlainObject(x)?J.merge.call({caseless:v},p,x):J.isPlainObject(x)?J.merge({},x):J.isArray(x)?x.slice():x}function i(p,x,b,v){if(J.isUndefined(x)){if(!J.isUndefined(p))return l(void 0,p,b,v)}else return l(p,x,b,v)}function c(p,x){if(!J.isUndefined(x))return l(void 0,x)}function u(p,x){if(J.isUndefined(x)){if(!J.isUndefined(p))return l(void 0,p)}else return l(void 0,x)}function h(p,x,b){if(b in t)return l(p,x);if(b in a)return l(void 0,p)}const f={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:h,headers:(p,x,b)=>i(oj(p),oj(x),b,!0)};return J.forEach(Object.keys({...a,...t}),function(x){const b=f[x]||i,v=b(a[x],t[x],x);J.isUndefined(v)&&b!==h||(n[x]=v)}),n}const Iw=a=>{const t=Oi({},a);let{data:n,withXSRFToken:l,xsrfHeaderName:i,xsrfCookieName:c,headers:u,auth:h}=t;if(t.headers=u=xa.from(u),t.url=zw(Uw(t.baseURL,t.url,t.allowAbsoluteUrls),a.params,a.paramsSerializer),h&&u.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),J.isFormData(n)){if(Is.hasStandardBrowserEnv||Is.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const f=n.getHeaders(),p=["content-type","content-length"];Object.entries(f).forEach(([x,b])=>{p.includes(x.toLowerCase())&&u.set(x,b)})}}if(Is.hasStandardBrowserEnv&&(l&&J.isFunction(l)&&(l=l(t)),l||l!==!1&&N6(t.url))){const f=i&&c&&_6.read(c);f&&u.set(i,f)}return t},C6=typeof XMLHttpRequest<"u",E6=C6&&function(a){return new Promise(function(n,l){const i=Iw(a);let c=i.data;const u=xa.from(i.headers).normalize();let{responseType:h,onUploadProgress:f,onDownloadProgress:p}=i,x,b,v,w,j;function N(){w&&w(),j&&j(),i.cancelToken&&i.cancelToken.unsubscribe(x),i.signal&&i.signal.removeEventListener("abort",x)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function S(){if(!A)return;const T=xa.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),O={data:!h||h==="text"||h==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:T,config:a,request:A};Pw(function(k){n(k),N()},function(k){l(k),N()},O),A=null}"onloadend"in A?A.onloadend=S:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(S)}
vendor: 6,287 bytes, lines 12-14
12,A.onabort=function(){A&&(l(new Le("Request aborted",Le.ECONNABORTED,a,A)),A=null)},A.onerror=function(L){const O=L&&L.message?L.message:"Network Error",R=new Le(O,Le.ERR_NETWORK,a,A);R.event=L||null,l(R),A=null},A.ontimeout=function(){let L=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||Lw;i.timeoutErrorMessage&&(L=i.timeoutErrorMessage),l(new Le(L,O.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,a,A)),A=null},c===void 0&&u.setContentType(null),"setRequestHeader"in A&&J.forEach(u.toJSON(),function(L,O){A.setRequestHeader(O,L)}),J.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),h&&h!=="json"&&(A.responseType=i.responseType),p&&([v,j]=$f(p,!0),A.addEventListener("progress",v)),f&&A.upload&&([b,w]=$f(f),A.upload.addEventListener("progress",b),A.upload.addEventListener("loadend",w)),(i.cancelToken||i.signal)&&(x=T=>{A&&(l(!T||T.type?new dc(null,a,A):T),A.abort(),A=null)},i.cancelToken&&i.cancelToken.subscribe(x),i.signal&&(i.signal.aborted?x():i.signal.addEventListener("abort",x)));const C=j6(i.url);if(C&&Is.protocols.indexOf(C)===-1){l(new Le("Unsupported protocol "+C+":",Le.ERR_BAD_REQUEST,a));return}A.send(c||null)})},T6=(a,t)=>{const{length:n}=a=a?a.filter(Boolean):[];if(t||n){let l=new AbortController,i;const c=function(p){if(!i){i=!0,h();const x=p instanceof Error?p:this.reason;l.abort(x instanceof Le?x:new dc(x instanceof Error?x.message:x))}};let u=t&&setTimeout(()=>{u=null,c(new Le(`timeout ${t} of ms exceeded`,Le.ETIMEDOUT))},t);const h=()=>{a&&(u&&clearTimeout(u),u=null,a.forEach(p=>{p.unsubscribe?p.unsubscribe(c):p.removeEventListener("abort",c)}),a=null)};a.forEach(p=>p.addEventListener("abort",c));const{signal:f}=l;return f.unsubscribe=()=>J.asap(h),f}},R6=function*(a,t){let n=a.byteLength;if(n<t){yield a;return}let l=0,i;for(;l<n;)i=l+t,yield a.slice(l,i),l=i},O6=async function*(a,t){for await(const n of M6(a))yield*R6(n,t)},M6=async function*(a){if(a[Symbol.asyncIterator]){yield*a;return}const t=a.getReader();try{for(;;){const{done:n,value:l}=await t.read();if(n)break;yield l}}finally{await t.cancel()}},cj=(a,t,n,l)=>{const i=O6(a,t);let c=0,u,h=f=>{u||(u=!0,l&&l(f))};return new ReadableStream({async pull(f){try{const{done:p,value:x}=await i.next();if(p){h(),f.close();return}let b=x.byteLength;if(n){let v=c+=b;n(v)}f.enqueue(new Uint8Array(x))}catch(p){throw h(p),p}},cancel(f){return h(f),i.return()}},{highWaterMark:2})},dj=64*1024,{isFunction:Lh}=J,z6=(({Request:a,Response:t})=>({Request:a,Response:t}))(J.global),{ReadableStream:uj,TextEncoder:hj}=J.global,fj=(a,...t)=>{try{return!!a(...t)}catch{return!1}},L6=a=>{a=J.merge.call({skipUndefined:!0},z6,a);const{fetch:t,Request:n,Response:l}=a,i=t?Lh(t):typeof fetch=="function",c=Lh(n),u=Lh(l);if(!i)return!1;const h=i&&Lh(uj),f=i&&(typeof hj=="function"?(j=>N=>j.encode(N))(new hj):async j=>new Uint8Array(await new n(j).arrayBuffer())),p=c&&h&&fj(()=>{let j=!1;const N=new n(Is.origin,{body:new uj,method:"POST",get duplex(){return j=!0,"half"}}).headers.has("Content-Type");return j&&!N}),x=u&&h&&fj(()=>J.isReadableStream(new l("").body)),b={stream:x&&(j=>j.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(j=>{!b[j]&&(b[j]=(N,A)=>{let S=N&&N[j];if(S)return S.call(N);throw new Le(`Response type '${j}' is not supported`,Le.ERR_NOT_SUPPORT,A)})});const v=async j=>{if(j==null)return 0;if(J.isBlob(j))return j.size;if(J.isSpecCompliantForm(j))return(await new n(Is.origin,{method:"POST",body:j}).arrayBuffer()).byteLength;if(J.isArrayBufferView(j)||J.isArrayBuffer(j))return j.byteLength;if(J.isURLSearchParams(j)&&(j=j+""),J.isString(j))return(await f(j)).byteLength},w=async(j,N)=>{const A=J.toFiniteNumber(j.getContentLength());return A??v(N)};return async j=>{let{url:N,method:A,data:S,signal:C,cancelToken:T,timeout:L,onDownloadProgress:O,onUploadProgress:R,responseType:k,headers:E,withCredentials:z="same-origin",fetchOptions:D}=Iw(j),q=t||fetch;k=k?(k+"").toLowerCase():"text";let V=T6([C,T&&T.toAbortSignal()],L),Z=null;const ae=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ee;try{if(R&&p&&A!=="get"&&A!=="head"&&(ee=await w(E,S))!==0){let Y=new n(N,{method:"POST",body:S,duplex:"half"}),oe;if(J.isFormData(S)&&(oe=Y.headers.get("content-type"))&&E.setContentType(oe),Y.body){const[ue,me]=rj(ee,$f(ij(R)));S=cj(Y.body,dj,ue,me)}}J.isString(z)||(z=z?"include":"omit");const U=c&&"credentials"in n.prototype,B={...D,signal:V,method:A.toUpperCase(),headers:E.normalize().toJSON(),body:S,duplex:"half",credentials:U?z:void 0};Z=c&&new n(N,B);let X=await(c?q(Z,D):q(N,B));const re=x&&(k==="stream"||k==="response");if(x&&(O||re&&ae)){const Y={};["status","statusText","headers"].forEach(ke=>{Y[ke]=X[ke]});const oe=J.toFiniteNumber(X.headers.get("content-length")),[ue,me]=O&&rj(oe,$f(ij(O),!0))||[];X=new l(cj(X.body,dj,ue,()=>{me&&me(),ae&&ae()}),Y)}k=k||"text";let P=await b[J.findKey(b,k)||"text"](X,j);return!re&&ae&&ae(),await new Promise((Y,oe)=>{Pw(Y,oe,{data:P,headers:xa.from(X.headers),status:X.status,statusText:X.statusText,config:j,request:Z})})}catch(U){throw ae&&ae(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,j,Z),{cause:U.cause||U}):Le.from(U,U&&U.code,j,Z)}}},D6=new Map,Vw=a=>{let t=a&&a.env||{};const{fetch:n,Request:l,Response:i}=t,c=[l,i,n];let u=c.length,h=u,f,p,x=D6;for(;h--;)f=c[h],p=x.get(f),p===void 0&&x.set(f,p=h?new Map:L6(t)),x=p;return p};Vw();const sb={http:$S,xhr:E6,fetch:{get:Vw}};J.forEach(sb,(a,t)=>{if(a){try{Object.defineProperty(a,"name",{value:t})}catch{}Object.defineProperty(a,"adapterName",{value:t})}});const mj=a=>`- ${a}`,B6=a=>J.isFunction(a)||a===null||a===!1;function P6(a,t){a=J.isArray(a)?a:[a];const{length:n}=a;let l,i;const c={};for(let u=0;u<n;u++){l=a[u];let h;if(i=l,!B6(l)&&(i=sb[(h=String(l)).toLowerCase()],i===void 0))throw new Le(`Unknown adapter '${h}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;c[h||"#"+u]=i}if(!i){const u=Object.entries(c).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let h=n?u.length>1?`since : 13`+u.map(mj).join(` 14`):" "+mj(u[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return i}
vendor: 4,726 bytes, lines 14-15
14const Fw={getAdapter:P6,adapters:sb};function Jp(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new dc(null,a)}function pj(a){return Jp(a),a.headers=xa.from(a.headers),a.data=Zp.call(a,a.transformRequest),["post","put","patch"].indexOf(a.method)!==-1&&a.headers.setContentType("application/x-www-form-urlencoded",!1),Fw.getAdapter(a.adapter||uu.adapter,a)(a).then(function(l){return Jp(a),l.data=Zp.call(a,a.transformResponse,l),l.headers=xa.from(l.headers),l},function(l){return Bw(l)||(Jp(a),l&&l.response&&(l.response.data=Zp.call(a,a.transformResponse,l.response),l.response.headers=xa.from(l.response.headers))),Promise.reject(l)})}const Hw="1.13.2",_0={};["object","boolean","number","function","string","symbol"].forEach((a,t)=>{_0[a]=function(l){return typeof l===a||"a"+(t<1?"n ":" ")+a}});const xj={};_0.transitional=function(t,n,l){function i(c,u){return"[Axios v"+Hw+"] Transitional option '"+c+"'"+u+(l?". "+l:"")}return(c,u,h)=>{if(t===!1)throw new Le(i(u," has been removed"+(n?" in "+n:"")),Le.ERR_DEPRECATED);return n&&!xj[u]&&(xj[u]=!0,console.warn(i(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(c,u,h):!0}};_0.spelling=function(t){return(n,l)=>(console.warn(`${l} is likely a misspelling of ${t}`),!0)};function U6(a,t,n){if(typeof a!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const l=Object.keys(a);let i=l.length;for(;i-- >0;){const c=l[i],u=t[c];if(u){const h=a[c],f=h===void 0||u(h,c,a);if(f!==!0)throw new Le("option "+c+" must be "+f,Le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Le("Unknown option "+c,Le.ERR_BAD_OPTION)}}const Rf={assertOptions:U6,validators:_0},tl=Rf.validators;let Ai=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nj,response:new nj}}async request(t,n){try{return await this._request(t,n)}catch(l){if(l instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const c=i.stack?i.stack.replace(/^.+\n/,""):"";try{l.stack?c&&!String(l.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(l.stack+=` 15`+c):l.stack=c}catch{}}throw l}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Oi(this.defaults,n);const{transitional:l,paramsSerializer:i,headers:c}=n;l!==void 0&&Rf.assertOptions(l,{silentJSONParsing:tl.transitional(tl.boolean),forcedJSONParsing:tl.transitional(tl.boolean),clarifyTimeoutError:tl.transitional(tl.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Rf.assertOptions(i,{encode:tl.function,serialize:tl.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Rf.assertOptions(n,{baseUrl:tl.spelling("baseURL"),withXsrfToken:tl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=c&&J.merge(c.common,c[n.method]);c&&J.forEach(["delete","get","head","post","put","patch","common"],j=>{delete c[j]}),n.headers=xa.concat(u,c);const h=[];let f=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(f=f&&N.synchronous,h.unshift(N.fulfilled,N.rejected))});const p=[];this.interceptors.response.forEach(function(N){p.push(N.fulfilled,N.rejected)});let x,b=0,v;if(!f){const j=[pj.bind(this),void 0];for(j.unshift(...h),j.push(...p),v=j.length,x=Promise.resolve(n);b<v;)x=x.then(j[b++],j[b++]);return x}v=h.length;let w=n;for(;b<v;){const j=h[b++],N=h[b++];try{w=j(w)}catch(A){N.call(this,A);break}}try{x=pj.call(this,w)}catch(j){return Promise.reject(j)}for(b=0,v=p.length;b<v;)x=x.then(p[b++],p[b++]);return x}getUri(t){t=Oi(this.defaults,t);const n=Uw(t.baseURL,t.url,t.allowAbsoluteUrls);return zw(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Ai.prototype[t]=function(n,l){return this.request(Oi(l||{},{method:t,url:n,data:(l||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(l){return function(c,u,h){return this.request(Oi(h||{},{method:t,headers:l?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Ai.prototype[t]=n(),Ai.prototype[t+"Form"]=n(!0)});let I6=class qw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(c){n=c});const l=this;this.promise.then(i=>{if(!l._listeners)return;let c=l._listeners.length;for(;c-- >0;)l._listeners[c](i);l._listeners=null}),this.promise.then=i=>{let c;const u=new Promise(h=>{l.subscribe(h),c=h}).then(i);return u.cancel=function(){l.unsubscribe(c)},u},t(function(c,u,h){l.reason||(l.reason=new dc(c,u,h),n(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
15subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=l=>{t.abort(l)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qw(function(i){t=i}),cancel:t}}};function V6(a){return function(n){return a.apply(null,n)}}function F6(a){return J.isObject(a)&&a.isAxiosError===!0}const sg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sg).forEach(([a,t])=>{sg[t]=a});function Yw(a){const t=new Ai(a),n=Aw(Ai.prototype.request,t);return J.extend(n,Ai.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Yw(Oi(a,i))},n}const Me=Yw(uu);Me.Axios=Ai;Me.CanceledError=dc;Me.CancelToken=I6;Me.isCancel=Bw;Me.VERSION=Hw;Me.toFormData=N0;Me.AxiosError=Le;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=V6;Me.isAxiosError=F6;Me.mergeConfig=Oi;Me.AxiosHeaders=xa;Me.formToJSON=a=>Dw(J.isHTMLForm(a)?new FormData(a):a);Me.getAdapter=Fw.getAdapter;Me.HttpStatusCode=sg;Me.default=Me;const{Axios:AB,AxiosError:wB,CanceledError:NB,isCancel:_B,CancelToken:SB,VERSION:kB,all:CB,Cancel:EB,isAxiosError:TB,spread:RB,toFormData:OB,AxiosHeaders:MB,HttpStatusCode:zB,formToJSON:LB,getAdapter:DB,mergeConfig:BB}=Me;var gj="popstate";function H6(a={}){function t(l,i){let{pathname:c,search:u,hash:h}=l.location;return ag("",{pathname:c,search:u,hash:h},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(l,i){return typeof i=="string"?i:Wd(i)}return Y6(t,n,null,a)}function Dt(a,t){if(a===!1||a===null||typeof a>"u")throw new Error(t)}function Ya(a,t){if(!a){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q6(){return Math.random().toString(36).substring(2,10)}function bj(a,t){return{usr:a.state,key:a.key,idx:t}}function ag(a,t,n=null,l){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof t=="string"?uc(t):t,state:n,key:t&&t.key||l||q6()}}function Wd({pathname:a="/",search:t="",hash:n=""}){return t&&t!=="?"&&(a+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(a+=n.charAt(0)==="#"?n:"#"+n),a}function uc(a){let t={};if(a){let n=a.indexOf("#");n>=0&&(t.hash=a.substring(n),a=a.substring(0,n));let l=a.indexOf("?");l>=0&&(t.search=a.substring(l),a=a.substring(0,l)),a&&(t.pathname=a)}return t}function Y6(a,t,n,l={}){let{window:i=document.defaultView,v5Compat:c=!1}=l,u=i.history,h="POP",f=null,p=x();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function x(){return(u.state||{idx:null}).idx}function b(){h="POP";let A=x(),S=A==null?null:A-p;p=A,f&&f({action:h,location:N.location,delta:S})}function v(A,S){h="PUSH";let C=ag(N.location,A,S);p=x()+1;let T=bj(C,p),L=N.createHref(C);try{u.pushState(T,"",L)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(L)}c&&f&&f({action:h,location:N.location,delta:1})}function w(A,S){h="REPLACE";let C=ag(N.location,A,S);p=x();let T=bj(C,p),L=N.createHref(C);u.replaceState(T,"",L),c&&f&&f({action:h,location:N.location,delta:0})}function j(A){return G6(A)}let N={get action(){return h},get location(){return a(i,u)},listen(A){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(gj,b),f=A,()=>{i.removeEventListener(gj,b),f=null}},createHref(A){return t(i,A)},createURL:j,encodeLocation(A){let S=j(A);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:v,replace:w,go(A){return u.go(A)}};return N}function G6(a,t=!1){let n="http://localhost";
15typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Dt(n,"No window.location.(origin|href) available to create URL");let l=typeof a=="string"?a:Wd(a);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=n+l),new URL(l,n)}function Gw(a,t,n="/"){return W6(a,t,n,!1)}function W6(a,t,n,l){let i=typeof t=="string"?uc(t):t,c=Fl(i.pathname||"/",n);if(c==null)return null;let u=Ww(a);K6(u);let h=null;for(let f=0;h==null&&f<u.length;++f){let p=lk(c);h=ak(u[f],p,l)}return h}function Ww(a,t=[],n=[],l="",i=!1){let c=(u,h,f=i,p)=>{let x={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(l)&&f)return;Dt(x.relativePath.startsWith(l),`Absolute route path "${x.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(l.length)}let b=Il([l,x.relativePath]),v=n.concat(x);u.children&&u.children.length>0&&(Dt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Ww(u.children,t,v,b,f)),!(u.path==null&&!u.index)&&t.push({path:b,score:tk(b,u.index),routesMeta:v})};return a.forEach((u,h)=>{if(u.path===""||!u.path?.includes("?"))c(u,h);else for(let f of Kw(u.path))c(u,h,!0,f)}),t}function Kw(a){let t=a.split("/");if(t.length===0)return[];let[n,...l]=t,i=n.endsWith("?"),c=n.replace(/\?$/,"");if(l.length===0)return i?[c,""]:[c];let u=Kw(l.join("/")),h=[];return h.push(...u.map(f=>f===""?c:[c,f].join("/"))),i&&h.push(...u),h.map(f=>a.startsWith("/")&&f===""?"/":f)}function K6(a){a.sort((t,n)=>t.score!==n.score?n.score-t.score:sk(t.routesMeta.map(l=>l.childrenIndex),n.routesMeta.map(l=>l.childrenIndex)))}var X6=/^:[\w-]+$/,Q6=3,Z6=2,J6=1,$6=10,ek=-2,yj=a=>a==="*";function tk(a,t){let n=a.split("/"),l=n.length;return n.some(yj)&&(l+=ek),t&&(l+=Z6),n.filter(i=>!yj(i)).reduce((i,c)=>i+(X6.test(c)?Q6:c===""?J6:$6),l)}function sk(a,t){return a.length===t.length&&a.slice(0,-1).every((l,i)=>l===t[i])?a[a.length-1]-t[t.length-1]:0}function ak(a,t,n=!1){let{routesMeta:l}=a,i={},c="/",u=[];for(let h=0;h<l.length;++h){let f=l[h],p=h===l.length-1,x=c==="/"?t:t.slice(c.length)||"/",b=e0({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},x),v=f.route;if(!b&&p&&n&&!l[l.length-1].route.index&&(b=e0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},x)),!b)return null;
15Object.assign(i,b.params),u.push({params:i,pathname:Il([c,b.pathname]),pathnameBase:ck(Il([c,b.pathnameBase])),route:v}),b.pathnameBase!=="/"&&(c=Il([c,b.pathnameBase]))}return u}function e0(a,t){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[n,l]=nk(a.path,a.caseSensitive,a.end),i=t.match(n);if(!i)return null;let c=i[0],u=c.replace(/(.)\/+$/,"$1"),h=i.slice(1);return{params:l.reduce((p,{paramName:x,isOptional:b},v)=>{if(x==="*"){let j=h[v]||"";u=c.slice(0,c.length-j.length).replace(/(.)\/+$/,"$1")}const w=h[v];return b&&!w?p[x]=void 0:p[x]=(w||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:a}}function nk(a,t=!1,n=!0){Ya(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let l=[],i="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,h,f)=>(l.push({paramName:h,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(l.push({paramName:"*"}),i+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":a!==""&&a!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),l]}function lk(a){try{return a.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ya(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),a}}function Fl(a,t){if(t==="/")return a;
15if(!a.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,l=a.charAt(n);return l&&l!=="/"?null:a.slice(n)||"/"}var Xw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rk=a=>Xw.test(a);function ik(a,t="/"){let{pathname:n,search:l="",hash:i=""}=typeof a=="string"?uc(a):a,c;if(n)if(rk(n))c=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),Ya(!1,`Pathnames cannot have embedded double slashes - normalizing ${u} -> ${n}`)}n.startsWith("/")?c=vj(n.substring(1),"/"):c=vj(n,t)}else c=t;return{pathname:c,search:dk(l),hash:uk(i)}}function vj(a,t){let n=t.replace(/\/+$/,"").split("/");return a.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function $p(a,t,n,l){return`Cannot include a '${a}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ok(a){return a.filter((t,
15n)=>n===0||t.route.path&&t.route.path.length>0)}function ab(a){let t=ok(a);return t.map((n,l)=>l===t.length-1?n.pathname:n.pathnameBase)}function nb(a,t,n,l=!1){let i;typeof a=="string"?i=uc(a):(i={...a},Dt(!i.pathname||!i.pathname.includes("?"),$p("?","pathname","search",i)),Dt(!i.pathname||!i.pathname.includes("#"),$p("#","pathname","hash",i)),Dt(!i.search||!i.search.includes("#"),$p("#","search","hash",i)));let c=a===""||i.pathname==="",u=c?"/":i.pathname,h;if(u==null)h=n;else{let b=t.length-1;if(!l&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),b-=1;i.pathname=v.join("/")}h=b>=0?t[b]:"/"}let f=ik(i,h),p=u&&u!=="/"&&u.endsWith("/"),x=(c||u===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||x)&&(f.pathname+="/"),f}var Il=a=>a.join("/").replace(/\/\/+/g,"/"),ck=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),dk=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,uk=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,hk=class{constructor(a,t,n,l=!1){this.status=a,this.statusText=t||"",this.internal=l,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function fk(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function mk(a){return a.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Qw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zw(a,t){let n=a;if(typeof n!="string"||!Xw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let l=n,i=!1;if(Qw)try{let c=new URL(window.location.href),u=n.startsWith("//")?new URL(c.protocol+n):new URL(n),h=Fl(u.pathname,t);u.origin===c.origin&&h!=null?n=h+u.search+u.hash:i=!0}catch{Ya(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Jw=["POST","PUT","PATCH","DELETE"];new Set(Jw);var pk=["GET",...Jw];new Set(pk);var hc=y.createContext(null);hc.displayName="DataRouter";var S0=y.createContext(null);S0.displayName="DataRouterState";var xk=y.createContext(!1),$w=y.createContext({isTransitioning:!1});$w.displayName="ViewTransition";var gk=y.createContext(new Map);gk.displayName="Fetchers";var bk=y.createContext(null);bk.displayName="Await";var Qa=y.createContext(null);Qa.displayName="Navigation";var hu=y.createContext(null);hu.displayName="Location";var En=y.createContext({outlet:null,matches:[],isDataRoute:!1});En.displayName="Route";var lb=y.createContext(null);lb.displayName="RouteError";var eN="REACT_ROUTER_ERROR",yk="REDIRECT",vk="ROUTE_ERROR_RESPONSE";function jk(a){if(a.startsWith(`${eN}:${yk}:{`))try{let t=JSON.parse(a.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ak(a){if(a.startsWith(`${eN}:${vk}:{`))try{let t=JSON.parse(a.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new hk(t.status,t.statusText,t.data)}catch{}}function wk(a,{relative:t}={}){Dt(fc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:l}=y.useContext(Qa),{hash:i,pathname:c,search:u}=fu(a,{relative:t}),h=c;return n!=="/"&&(h=c==="/"?n:Il([n,c])),l.createHref({pathname:h,search:u,hash:i})}function fc(){return y.useContext(hu)!=null}function Os(){return Dt(fc(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(hu).location}var tN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sN(a){y.useContext(Qa).static||y.useLayoutEffect(a)}function gt(){let{isDataRoute:a}=y.useContext(En);return a?Pk():Nk()}function Nk(){Dt(fc(),"useNavigate() may be used only in the context of a <Router> component.");let a=y.useContext(hc),{basename:t,navigator:n}=y.useContext(Qa),{matches:l}=y.useContext(En),{pathname:i}=Os(),c=JSON.stringify(ab(l)),u=y.useRef(!1);return sN(()=>{u.current=!0}),y.useCallback((f,p={})=>
15{if(Ya(u.current,tN),!u.current)return;if(typeof f=="number"){n.go(f);return}let x=nb(f,JSON.parse(c),i,p.relative==="path");a==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:Il([t,x.pathname])),(p.replace?n.replace:n.push)(x,p.state,p)},[t,n,c,i,a])}var _k=y.createContext(null);function Sk(a){let t=y.useContext(En).outlet;return y.useMemo(()=>t&&y.createElement(_k.Provider,{value:a},t),[t,a])}function Ui(){let{matches:a}=y.useContext(En),t=a[a.length-1];return t?t.params:{}}function fu(a,{relative:t}={}){let{matches:n}=y.useContext(En),{pathname:l}=Os(),i=JSON.stringify(ab(n));return y.useMemo(()=>nb(a,JSON.parse(i),l,t==="path"),[a,i,l,t])}function kk(a,t){return aN(a,t)}function aN(a,t,n,l,i){Dt(fc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=y.useContext(Qa),{matches:u}=y.useContext(En),h=u[u.length-1],f=h?h.params:{},p=h?h.pathname:"/",x=h?h.pathnameBase:"/",b=h&&h.route;{let C=b&&b.path||"";lN(p,!b||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 16 17Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let v=Os(),w;if(t){let C=typeof t=="string"?uc(t):t;Dt(x==="/"||C.pathname?.startsWith(x),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${C.pathname}" was given in the \`location\` prop.`),w=C}else w=v;let j=w.pathname||"/",N=j;if(x!=="/"){let C=x.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=Gw(a,{pathname:N});Ya(b||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ya(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=Ok(A&&A.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:Il([x,c.encodeLocation?c.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?x:Il([x,c.encodeLocation?c.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,n,l,i);return t&&S?y.createElement(hu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},S):S}function Ck(){let a=Bk(),t=fk(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),n=a instanceof Error?a.stack:null,l="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},u=null;return console.error("Error handled by React Router default ErrorBoundary:",a),u=y.createElement(y.Fragment,null,y.createElement("p",null,"ð¿ Hey developer ð"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:c},"ErrorBoundary")," or"," ",y.createElement("code",{style:c},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,u)}var Ek=y.createElement(Ck,null),nN=class extends y.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,t){return t.location!==a.location||t.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:t.error,location:t.location,revalidation:a.revalidation||t.revalidation}}componentDidCatch(a,t){this.props.onError?this.props.onError(a,t):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const n=Ak(a.digest);n&&(a=n)}let t=a!==void 0?y.createElement(En.Provider,{value:this.props.routeContext},y.createElement(lb.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?y.createElement(Tk,{error:a},t):t}};nN.contextType=xk;var ex=new WeakMap;function Tk({children:a,error:t}){let{basename:n}=y.useContext(Qa);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let l=jk(t.digest);if(l){let i=ex.get(t);if(i)throw i;let c=Zw(l.location,n);if(Qw&&!ex.get(t))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||
17c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw ex.set(t,u),u}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return a}function Rk({routeContext:a,match:t,children:n}){let l=y.useContext(hc);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(En.Provider,{value:a},n)}function Ok(a,t=[],n=null,l=null,i=null){if(a==null){if(!n)return null;if(n.errors)a=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)a=n.matches;else return null}let c=a,u=n?.errors;if(u!=null){let x=c.findIndex(b=>b.route.id&&u?.[b.route.id]!==void 0);Dt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let h=!1,f=-1;if(n)for(let x=0;x<c.length;x++){let b=c[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(f=x),b.route.id){let{loaderData:v,errors:w}=n,j=b.route.loader&&!v.hasOwnProperty(b.route.id)&&(!w||w[b.route.id]===void 0);if(b.route.lazy||j){h=!0,f>=0?c=c.slice(0,f+1):c=[c[0]];break}}}let p=n&&l?(x,b)=>{l(x,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:mk(n.matches),errorInfo:b})}:void 0;return c.reduceRight((x,b,v)=>{let w,j=!1,N=null,A=null;n&&(w=u&&b.route.id?u[b.route.id]:void 0,N=b.route.errorElement||Ek,h&&(f<0&&v===0?(lN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,A=null):f===v&&(j=!0,A=b.route.hydrateFallbackElement||null)));let S=t.concat(c.slice(0,v+1)),C=()=>{let T;return w?T=N:j?T=A:b.route.Component?T=y.createElement(b.route.Component,null):b.route.element?T=b.route.element:T=x,y.createElement(Rk,{match:b,routeContext:{outlet:x,matches:S,isDataRoute:n!=null},children:T})};return n&&(b.route.ErrorBoundary||b.route.errorElement||v===0)?y.createElement(nN,{location:n.location,revalidation:n.revalidation,component:N,error:w,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:p}):C()},null)}function rb(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mk(a){let t=y.useContext(hc);return Dt(t,rb(a)),t}function zk(a){let t=y.useContext(S0);return Dt(t,rb(a)),t}function Lk(a){let t=y.useContext(En);return Dt(t,rb(a)),t}function ib(a){let t=Lk(a),n=t.matches[t.matches.length-1];return Dt(n.route.id,`${a} can only be used on routes that contain a unique "id"`),n.route.id}function Dk(){return ib("useRouteId")}function Bk(){let a=y.useContext(lb),t=zk("useRouteError"),n=ib("useRouteError");return a!==void 0?a:t.errors?.[n]}function Pk(){let{router:a}=Mk("useNavigate"),t=ib("useNavigate"),n=y.useRef(!1);return sN(()=>{n.current=!0}),y.useCallback(async(i,c={})=>{Ya(n.current,tN),n.current&&(typeof i=="number"?await a.navigate(i):await a.navigate(i,{fromRouteId:t,...c}))},[a,t])}var jj={};function lN(a,t,n){!t&&!jj[a]&&(jj[a]=!0,Ya(!1,n))}y.memo(Uk);function Uk({routes:a,future:t,state:n,onError:l}){return aN(a,void 0,n,l,t)}function bn({to:a,replace:t,state:n,relative:l}){Dt(fc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=y.useContext(Qa);Ya(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=y.useContext(En),{pathname:u}=Os(),h=gt(),f=nb(a,ab(c),u,l==="path"),p=JSON.stringify(f);return y.useEffect(()=>{h(JSON.parse(p),{replace:t,state:n,relative:l})},[h,p,l,t,n]),null}function mu(a){return Sk(a.context)}function K(a){Dt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ik({basename:a="/",children:t=null,location:n,navigationType:l="POP",navigator:i,static:c=!1,unstable_useTransitions:u}){Dt(!fc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),f=y.useMemo(()=>({basename:h,navigator:i,static:c,unstable_useTransitions:u,future:{}}),[h,i,c,u]);typeof n=="string"&&(n=uc(n));let{pathname:p="/",search:x="",hash:b="",state:v=null,key:w="default"}=n,j=y.useMemo(()=>{let N=Fl(p,h);return N==null?null:{location:{pathname:N,search:x,hash:b,state:v,key:w},navigationType:l}},[h,p,x,b,v,w,l]);
17return Ya(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:y.createElement(Qa.Provider,{value:f},y.createElement(hu.Provider,{children:t,value:j}))}function rN({children:a,location:t}){return kk(ng(a),t)}function ng(a,t=[]){let n=[];return y.Children.forEach(a,(l,i)=>{if(!y.isValidElement(l))return;let c=[...t,i];if(l.type===y.Fragment){n.push.apply(n,ng(l.props.children,c));return}Dt(l.type===K,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Dt(!l.props.index||!l.props.children,"An index route cannot have child routes.");let u={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(u.children=ng(l.props.children,c)),n.push(u)}),n}var Of="get",Mf="application/x-www-form-urlencoded";function k0(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Vk(a){return k0(a)&&a.tagName.toLowerCase()==="button"}function Fk(a){return k0(a)&&a.tagName.toLowerCase()==="form"}function Hk(a){return k0(a)&&a.tagName.toLowerCase()==="input"}function qk(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Yk(a,t){return a.button===0&&(!t||t==="_self")&&!qk(a)}function lg(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((t,n)=>{let l=a[n];return t.concat(Array.isArray(l)?l.map(i=>[n,i]):[[n,l]])},[]))}function Gk(a,t){let n=lg(a);return t&&t.forEach((l,i)=>{n.has(i)||t.getAll(i).forEach(c=>{n.append(i,c)})}),n}var Dh=null;function Wk(){if(Dh===null)try{new FormData(document.createElement("form"),0),Dh=!1}catch{Dh=!0}return Dh}var Kk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tx(a){return a!=null&&!Kk.has(a)?(Ya(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mf}"`),null):a}function Xk(a,t){let n,l,i,c,u;if(Fk(a)){let h=a.getAttribute("action");l=h?Fl(h,t):null,n=a.getAttribute("method")||Of,i=tx(a.getAttribute("enctype"))||Mf,c=new FormData(a)}else if(Vk(a)||Hk(a)&&(a.type==="submit"||a.type==="image")){let h=a.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=a.getAttribute("formaction")||h.getAttribute("action");if(l=f?Fl(f,t):null,n=a.getAttribute("formmethod")||h.getAttribute("method")||Of,i=tx(a.getAttribute("formenctype"))||tx(h.getAttribute("enctype"))||Mf,c=new FormData(h,a),!Wk()){let{name:p,type:x,value:b}=a;if(x==="image"){let v=p?`${p}.`:"";c.append(`${v}x`,"0"),c.append(`${v}y`,"0")}else p&&c.append(p,b)}}else{if(k0(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Of,l=null,i=Mf,u=a}return c&&i==="text/plain"&&(u=c,c=void 0),{action:l,method:n.toLowerCase(),encType:i,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ob(a,t){if(a===!1||a===null||typeof a>"u")throw new Error(t)}function Qk(a,t,n){let l=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return l.pathname==="/"?l.pathname=`_root.${n}`:t&&Fl(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${n}`,l}async function Zk(a,t){if(a.id in t)return t[a.id];try{let n=await import(a.module);return t[a.id]=n,n}catch(n){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
17isSpaMode,window.location.reload(),new Promise(()=>{})}}function Jk(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function $k(a,t,n){let l=await Promise.all(a.map(async i=>{let c=t.routes[i.route.id];if(c){let u=await Zk(c,n);return u.links?u.links():[]}return[]}));return aC(l.flat(1).filter(Jk).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Aj(a,t,n,l,i,c){let u=(f,p)=>n[p]?f.route.id!==n[p].route.id:!0,h=(f,p)=>n[p].pathname!==f.pathname||n[p].route.path?.endsWith("*")&&n[p].params["*"]!==f.params["*"];return c==="assets"?t.filter((f,p)=>u(f,p)||h(f,p)):c==="data"?t.filter((f,p)=>{let x=l.routes[f.route.id];if(!x||!x.hasLoader)return!1;if(u(f,p)||h(f,p))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function eC(a,t,{includeHydrateFallback:n}={}){return tC(a.map(l=>{let i=t.routes[l.route.id];if(!i)return[];let c=[i.module];return i.clientActionModule&&(c=c.concat(i.clientActionModule)),i.clientLoaderModule&&(c=c.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(c=c.concat(i.hydrateFallbackModule)),i.imports&&(c=c.concat(i.imports)),c}).flat(1))}
17function tC(a){return[...new Set(a)]}function sC(a){let t={},n=Object.keys(a).sort();for(let l of n)t[l]=a[l];return t}function aC(a,t){let n=new Set;return new Set(t),a.reduce((l,i)=>{let c=JSON.stringify(sC(i));return n.has(c)||(n.add(c),l.push({key:c,link:i})),l},[])}function iN(){let a=y.useContext(hc);return ob(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function nC(){let a=y.useContext(S0);return ob(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var cb=y.createContext(void 0);cb.displayName="FrameworkContext";function oN(){let a=y.useContext(cb);return ob(a,"You must render this element inside a <HydratedRouter> element"),a}function lC(a,t){let n=y.useContext(cb),[l,i]=y.useState(!1),[c,u]=y.useState(!1),{onFocus:h,onBlur:f,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=t,v=y.useRef(null);y.useEffect(()=>{if(a==="render"&&u(!0),a==="viewport"){let N=S=>{S.forEach(C=>{u(C.isIntersecting)})},A=new IntersectionObserver(N,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[a]),y.useEffect(()=>{if(l){let N=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(N)}}},[l]);let w=()=>{i(!0)},j=()=>{i(!1),u(!1)};return n?a!=="intent"?[c,v,{}]:[c,v,{onFocus:dd(h,w),onBlur:dd(f,j),onMouseEnter:dd(p,w),onMouseLeave:dd(x,j),onTouchStart:dd(b,w)}]:[!1,v,{}]}function dd(a,t){return n=>{a&&a(n),n.defaultPrevented||t(n)}}function rC({page:a,...t}){let{router:n}=iN(),l=y.useMemo(()=>Gw(n.routes,a,n.basename),[n.routes,a,n.basename]);return l?y.createElement(oC,{page:a,matches:l,...t}):null}function iC(a){let{manifest:t,routeModules:n}=oN(),[l,i]=y.useState([]);return y.useEffect(()=>{let c=!1;return $k(a,t,n).then(u=>{c||i(u)}),()=>{c=!0}},[a,t,n]),l}function oC({page:a,matches:t,...n}){let l=Os(),{manifest:i,routeModules:c}=oN(),{basename:u}=iN(),{loaderData:h,matches:f}=nC(),p=y.useMemo(()=>Aj(a,t,f,i,l,"data"),[a,t,f,i,l]),x=y.useMemo(()=>Aj(a,t,f,i,l,"assets"),[a,t,f,i,l]),b=y.useMemo(()=>{if(a===l.pathname+l.search+l.hash)return[];let j=new Set,N=!1;if(t.forEach(S=>{let C=i.routes[S.route.id];!C||!C.hasLoader||(!p.some(T=>T.route.id===S.route.id)&&S.route.id in h&&c[S.route.id]?.shouldRevalidate||C.hasClientLoader?N=!0:j.add(S.route.id))}),j.size===0)return[];let A=Qk(a,u,"data");return N&&j.size>0&&A.searchParams.set("_routes",t.filter(S=>j.has(S.route.id)).map(S=>S.route.id).join(",")),[A.pathname+A.search]},[u,h,l,i,p,t,a,c]),v=y.useMemo(()=>eC(x,i),[x,i]),w=iC(x);return y.createElement(y.Fragment,null,b.map(j=>y.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...n})),v.map(j=>y.createElement("link",{key:j,rel:"modulepreload",href:j,...n})),w.map(({key:j,link:N})=>y.createElement("link",{key:j,nonce:n.nonce,...N})))}function cC(...a){return t=>{a.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var dC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dC&&(window.__reactRouterVersion="7.11.0")}catch{}function uC({basename:a,children:t,unstable_useTransitions:n,window:l}){let i=y.useRef();i.current==null&&(i.current=H6({window:l,v5Compat:!0}));let c=i.current,[u,h]=y.useState({action:c.action,location:c.location}),f=y.useCallback(p=>{n===!1?h(p):y.startTransition(()=>h(p))},[n]);return y.useLayoutEffect(()=>c.listen(f),[c,f]),y.createElement(Ik,{basename:a,children:t,location:u.location,navigationType:u.action,navigator:c,unstable_useTransitions:n})}var cN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,as=y.forwardRef(function({onClick:t,discover:n="render",prefetch:l="none",relative:i,reloadDocument:c,replace:u,state:h,target:f,to:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:v,...w},j){let{basename:N,unstable_useTransitions:A}=y.useContext(Qa),S=typeof p=="string"&&cN.test(p),C=Zw(p,N);p=C.to;let T=wk(p,{relative:i}),[L,O,R]=lC(l,w),k=mC(p,{replace:u,state:h,target:f,preventScrollReset:x,relative:i,viewTransition:b,unstable_defaultShouldRevalidate:v,unstable_useTransitions:A});function E(D){t&&t(D),D.defaultPrevented||k(D)}let z=y.createElement("a",{...w,...R,href:C.absoluteURL||T,onClick:C.isExternal||c?t:E,ref:cC(j,O),target:f,"data-discover":!S&&n==="render"?"true":void 0});return L&&!S?y.createElement(y.Fragment,null,z,y.createElement(rC,{page:T})):z});as.displayName="Link";
17var rg=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:l="",end:i=!1,style:c,to:u,viewTransition:h,children:f,...p},x){let b=fu(u,{relative:p.relative}),v=Os(),w=y.useContext(S0),{navigator:j,basename:N}=y.useContext(Qa),A=w!=null&&vC(b)&&h===!0,S=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,C=v.pathname,T=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(C=C.toLowerCase(),T=T?T.toLowerCase():null,S=S.toLowerCase()),T&&N&&(T=Fl(T,N)||T);const L=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let O=C===S||!i&&C.startsWith(S)&&C.charAt(L)==="/",R=T!=null&&(T===S||!i&&T.startsWith(S)&&T.charAt(S.length)==="/"),k={isActive:O,isPending:R,isTransitioning:A},E=O?t:void 0,z;typeof l=="function"?z=l(k):z=[l,O?"active":null,R?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let D=typeof c=="function"?c(k):c;return y.createElement(as,{...p,"aria-current":E,className:z,ref:x,style:D,to:u,viewTransition:h},typeof f=="function"?f(k):f)});rg.displayName="NavLink";var hC=y.forwardRef(({discover:a="render",fetcherKey:t,navigate:n,reloadDocument:l,replace:i,state:c,method:u=Of,action:h,onSubmit:f,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:v,...w},j)=>{let{unstable_useTransitions:N}=y.useContext(Qa),A=bC(),S=yC(h,{relative:p}),C=u.toLowerCase()==="get"?"get":"post",T=typeof h=="string"&&cN.test(h),L=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let R=O.nativeEvent.submitter,k=R?.getAttribute("formmethod")||u,E=()=>A(R||O.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:i,state:c,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:v});N&&n!==!1?y.startTransition(()=>E()):E()};return y.createElement("form",{ref:j,method:C,action:S,onSubmit:l?f:L,...w,"data-discover":!T&&a==="render"?"true":void 0})});hC.displayName="Form";function fC(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dN(a){let t=y.useContext(hc);return Dt(t,fC(a)),t}function mC(a,{target:t,replace:n,state:l,preventScrollReset:i,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:h,unstable_useTransitions:f}={}){let p=gt(),x=Os(),b=fu(a,{relative:c}
17);return y.useCallback(v=>{if(Yk(v,t)){v.preventDefault();let w=n!==void 0?n:Wd(x)===Wd(b),j=()=>p(a,{replace:w,state:l,preventScrollReset:i,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:h});f?y.startTransition(()=>j()):j()}},[x,p,b,n,l,t,a,i,c,u,h,f])}function pC(a){Ya(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=y.useRef(lg(a)),n=y.useRef(!1),l=Os(),i=y.useMemo(()=>Gk(l.search,n.current?null:t.current),[l.search]),c=gt(),u=y.useCallback((h,f)=>{const p=lg(typeof h=="function"?h(new URLSearchParams(i)):h);n.current=!0,c("?"+p,f)},[c,i]);return[i,u]}var xC=0,gC=()=>`__${String(++xC)}__`;function bC(){let{router:a}=dN("useSubmit"),{basename:t}=y.useContext(Qa),n=Dk(),l=a.fetch,i=a.navigate;return y.useCallback(async(c,u={})=>{let{action:h,method:f,encType:p,formData:x,body:b}=Xk(c,t);if(u.navigate===!1){let v=u.fetcherKey||gC();await l(v,n,u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:x,body:b,formMethod:u.method||f,formEncType:u.encType||p,flushSync:u.flushSync})}else await i(u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:x,body:b,formMethod:u.method||f,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,i,t,n])}function yC(a,{relative:t}={}){let{basename:n}=y.useContext(Qa),l=y.useContext(En);Dt(l,"useFormAction must be used inside a RouteContext");let[i]=l.matches.slice(-1),c={...fu(a||".",{relative:t})},u=Os();if(a==null){c.search=u.search;let h=new URLSearchParams(c.search),f=h.getAll("index");if(f.some(x=>x==="")){h.delete("index"),f.filter(b=>b).forEach(b=>h.append("index",b));let x=h.toString();c.search=x?`?${x}`:""}}return(!a||a===".")&&i.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(c.pathname=c.pathname==="/"?n:Il([n,c.pathname])),Wd(c)}function vC(a,{relative:t}={}){let n=y.useContext($w);Dt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=dN("useViewTransitionState"),i=fu(a,{relative:t});if(!n.isTransitioning)return!1;let c=Fl(n.currentLocation.pathname,l)||n.currentLocation.pathname,u=Fl(n.nextLocation.pathname,l)||n.nextLocation.pathname;return e0(i.pathname,u)!=null||e0(i.pathname,c)!=null}const kn="https://client.voicerix.ai";var sx,wj;function jC(){if(wj)return sx;wj=1;var a=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(c,u){if(c===u)return!0;if(c&&u&&typeof c=="object"&&typeof u=="object"){if(c.constructor!==u.constructor)return!1;var h,f,p;if(Array.isArray(c)){if(h=c.length,h!=u.length)return!1;for(f=h;f--!==0;)if(!i(c[f],u[f]))return!1;return!0}var x;if(t&&c instanceof Map&&u instanceof Map){if(c.size!==u.size)return!1;for(x=c.entries();!(f=x.next()).done;)if(!u.has(f.value[0]))return!1;for(x=c.entries();!(f=x.next()).done;)if(!i(f.value[1],u.get(f.value[0])))return!1;return!0}if(n&&c instanceof Set&&u instanceof Set){if(c.size!==u.size)return!1;for(x=c.entries();!(f=x.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(u)){if(h=c.length,h!=u.length)return!1;for(f=h;f--!==0;)if(c[f]!==u[f])return!1;return!0}if(c.constructor===RegExp)return c.source===u.source&&c.flags===u.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof u.valueOf=="function")return c.valueOf()===u.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof u.toString=="function")return c.toString()===u.toString();if(p=Object.keys(c),h=p.length,h!==Object.keys(u).length)return!1;for(f=h;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[f]))return!1;if(a&&c instanceof Element)return!1;for(f=h;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&c.$$typeof)&&!i(c[p[f]],u[p[f]]))return!1;return!0}return c!==c&&u!==u}return sx=function(u,h){try{return i(u,h)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},sx}var AC=jC();const wC=Pi(AC);var ax,Nj;function NC(){return Nj||(Nj=1,ax=function(t,n,l,i){var c=l?l.call(i,t,n):void 0;if(c!==void 0)return!!c;if(t===n)return!0;
17if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var u=Object.keys(t),h=Object.keys(n);if(u.length!==h.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),p=0;p<u.length;p++){var x=u[p];if(!f(x))return!1;var b=t[x],v=n[x];if(c=l?l.call(i,b,v,x):void 0,c===!1||c===void 0&&b!==v)return!1}return!0}),ax}var _C=NC();const SC=Pi(_C);var uN=(a=>(a.BASE="base",a.BODY="body",a.HEAD="head",a.HTML="html",a.LINK="link",a.META="meta",a.NOSCRIPT="noscript",a.SCRIPT="script",a.STYLE="style",a.TITLE="title",a.FRAGMENT="Symbol(react.fragment)",a))(uN||{}),nx={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},_j=Object.values(uN),C0={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},hN=Object.entries(C0).reduce((a,[t,n])=>(a[n]=t,a),{}),In="data-rh",qo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Yo=(a,t)=>{for(let n=a.length-1;n>=0;n-=1){const l=a[n];if(Object.prototype.hasOwnProperty.call(l,t))return l[t]}return null},kC=a=>{let t=Yo(a,"title");const n=Yo(a,qo.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const l=Yo(a,qo.DEFAULT_TITLE);return t||l||void 0},CC=a=>Yo(a,qo.ON_CHANGE_CLIENT_STATE)||(()=>{}),lx=(a,t)=>t.filter(n=>typeof n[a]<"u").map(n=>n[a]).reduce((n,l)=>({...n,...l}),{}),EC=(a,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,l)=>{if(!n.length){const i=Object.keys(l);for(let c=0;c<i.length;c+=1){const h=i[c].toLowerCase();if(a.indexOf(h)!==-1&&l[h])return n.concat(l)}}return n},[]),TC=a=>console&&typeof console.warn=="function"&&console.warn(a),ud=(a,t,n)=>{const l={};return n.filter(i=>Array.isArray(i[a])?!0:(typeof i[a]<"u"&&TC(`Helmet: ${a} should be of type "Array". Instead found type "${typeof i[a]}"`),!1)).map(i=>i[a]).reverse().reduce((i,c)=>{const u={};c.filter(f=>{let p;const x=Object.keys(f);for(let v=0;v<x.length;v+=1){const w=x[v],j=w.toLowerCase();t.indexOf(j)!==-1&&!(p==="rel"&&f[p].toLowerCase()==="canonical")&&!(j==="rel"&&f[j].toLowerCase()==="stylesheet")&&(p=j),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(p=w)}if(!p||!f[p])return!1;const b=f[p].toLowerCase();return l[p]||(l[p]={}),u[p]||(u[p]={}),l[p][b]?!1:(u[p][b]=!0,!0)}).reverse().forEach(f=>i.push(f));const h=Object.keys(u);for(let f=0;f<h.length;f+=1){const p=h[f],x={...l[p],...u[p]};l[p]=x}return i},[]).reverse()},RC=(a,t)=>{if(Array.isArray(a)&&a.length){for(let n=0;n<a.length;n+=1)if(a[n][t])return!0}return!1},OC=a=>({baseTag:EC(["href"],a),bodyAttributes:lx("bodyAttributes",a),defer:Yo(a,qo.DEFER),encode:Yo(a,qo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:lx("htmlAttributes",a),linkTags:ud("link",["rel","href"],a),metaTags:ud("meta",["name","charset","http-equiv","property","itemprop"],a),noscriptTags:ud("noscript",["innerHTML"],a),onChangeClientState:CC(a),scriptTags:ud("script",["src","innerHTML"],a),styleTags:ud("style",["cssText"],a),title:kC(a),titleAttributes:lx("titleAttributes",a),prioritizeSeoTags:RC(a,qo.PRIORITIZE_SEO_TAGS)}),fN=a=>Array.isArray(a)?a.join(""):a,MC=(a,t)=>{const n=Object.keys(a);for(let l=0;l<n.length;l+=1)if(t[n[l]]&&t[n[l]].includes(a[n[l]]))return!0;return!1},rx=(a,t)=>Array.isArray(a)?a.reduce((n,l)=>(MC(l,t)?n.priority.push(l):n.default.push(l),n),{priority:[],default:[]}):{default:a,priority:[]},Sj=(a,t)=>({...a,[t]:void 0}),zC=["noscript","script","style"],ig=(a,t=!0)=>t===!1?String(a):String(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),mN=a=>Object.keys(a).reduce((t,n)=>{const l=typeof a[n]<"u"?`${n}="${a[n]}"`:`${n}`;return t?`${t} ${l}`:l},""),LC=(a,t,n,l)=>{const i=mN(n),c=fN(t);return i?`<${a} ${In}="true" ${i}>${ig(c,l)}</${a}>`:`<${a} ${In}="true">${ig(c,l)}</${a}>`},DC=(a,t,n=!0)=>t.reduce((l,i)=>{const c=i,u=Object.keys(c).filter(p=>!(p==="innerHTML"||p==="cssText")).reduce((p,x)=>{const b=typeof c[x]>"u"?x:`${x}="${ig(c[x],n)}"`;return p?`${p} ${b}`:b},""),h=c.innerHTML||c.cssText||"",f=zC.indexOf(a)===-1;return`${l}<${a} ${In}="true" ${u}${f?"/>":`>${h}</${a}>`}`},""),pN=(a,t={})=>Object.keys(a).reduce((n,l)=>{const i=C0[l];return n[i||l]=a[l],n},t),BC=(a,t,n)=>{const l={key:t,[In]:!0},i=pN(n,l);return[de.createElement("title",i,t)]},zf=(a,t)=>t.map((n,l)=>{const i={key:l,[In]:!0};
17return Object.keys(n).forEach(c=>{const h=C0[c]||c;if(h==="innerHTML"||h==="cssText"){const f=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:f}}else i[h]=n[c]}),de.createElement(a,i)}),gn=(a,t,n=!0)=>{switch(a){case"title":return{toComponent:()=>BC(a,t.title,t.titleAttributes),toString:()=>LC(a,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>pN(t),toString:()=>mN(t)};default:return{toComponent:()=>zf(a,t),toString:()=>DC(a,t,n)}}},PC=({metaTags:a,linkTags:t,scriptTags:n,encode:l})=>{const i=rx(a,nx.meta),c=rx(t,nx.link),u=rx(n,nx.script);return{priorityMethods:{toComponent:()=>[...zf("meta",i.priority),...zf("link",c.priority),...zf("script",u.priority)],toString:()=>`${gn("meta",i.priority,l)} ${gn("link",c.priority,l)} ${gn("script",u.priority,l)}`},metaTags:i.default,linkTags:c.default,scriptTags:u.default}},UC=a=>{const{baseTag:t,bodyAttributes:n,encode:l=!0,htmlAttributes:i,noscriptTags:c,styleTags:u,title:h="",titleAttributes:f,prioritizeSeoTags:p}=a;let{linkTags:x,metaTags:b,scriptTags:v}=a,w={toComponent:()=>[],toString:()=>""};return p&&({priorityMethods:w,linkTags:x,metaTags:b,scriptTags:v}=PC(a)),{priority:w,base:gn("base",t,l),bodyAttributes:gn("bodyAttributes",n,l),htmlAttributes:gn("htmlAttributes",i,l),link:gn("link",x,l),meta:gn("meta",b,l),noscript:gn("noscript",c,l),script:gn("script",v,l),style:gn("style",u,l),title:gn("title",{title:h,titleAttributes:f},l)}},og=UC,Bh=[],db=!!(typeof window<"u"&&window.document&&window.document.createElement),cg=class{instances=[];canUseDOM=db;context;value={setHelmet:a=>{this.context.helmet=a},helmetInstances:{get:()=>this.canUseDOM?Bh:this.instances,add:a=>{(this.canUseDOM?Bh:this.instances).push(a)},remove:a=>{const t=(this.canUseDOM?Bh:this.instances).indexOf(a);(this.canUseDOM?Bh:this.instances).splice(t,1)}}};constructor(a,t){this.context=a,this.canUseDOM=t||!1,t||(a.helmet=og({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},IC=parseInt(de.version.split(".")[0],10),dg=IC>=19,VC={},xN=de.createContext(VC),gN=class bN extends y.Component{static canUseDOM=db;helmetData;constructor(t){super(t),dg?this.helmetData=null:this.helmetData=new cg(this.props.context||{},bN.canUseDOM)}render(){return dg?de.createElement(de.Fragment,null,this.props.children):de.createElement(xN.Provider,{value:this.helmetData.value},this.props.children)}},wo=(a,t)=>{const n=document.head||document.querySelector("head"),l=n.querySelectorAll(`${a}[${In}]`),i=[].slice.call(l),c=[];let u;return t&&t.length&&t.forEach(h=>{const f=document.createElement(a);for(const p in h)if(Object.prototype.hasOwnProperty.call(h,p))if(p==="innerHTML")f.innerHTML=h.innerHTML;else if(p==="cssText"){const x=h.cssText;f.appendChild(document.createTextNode(x))}else{const x=p,b=typeof h[x]>"u"?"":h[x];f.setAttribute(p,b)}f.setAttribute(In,"true"),i.some((p,x)=>(u=x,f.isEqualNode(p)))?i.splice(u,1):c.push(f)}),i.forEach(h=>h.parentNode?.removeChild(h)),c.forEach(h=>n.appendChild(h)),{oldTags:i,newTags:c}},ug=(a,t)=>{const n=document.getElementsByTagName(a)[0];if(!n)return;const l=n.getAttribute(In),i=l?l.split(","):[],c=[...i],u=Object.keys(t);for(const h of u){const f=t[h]||"";n.getAttribute(h)!==f&&n.setAttribute(h,f),i.indexOf(h)===-1&&i.push(h);const p=c.indexOf(h);p!==-1&&c.splice(p,1)}for(let h=c.length-1;h>=0;h-=1)n.removeAttribute(c[h]);i.length===c.length?n.removeAttribute(In):n.getAttribute(In)!==u.join(",")&&n.setAttribute(In,u.join(","))},FC=(a,t)=>{typeof a<"u"&&document.title!==a&&(document.title=fN(a)),ug("title",t)},kj=(a,t)=>{const{baseTag:n,bodyAttributes:l,htmlAttributes:i,linkTags:c,metaTags:u,noscriptTags:h,onChangeClientState:f,scriptTags:p,styleTags:x,title:b,titleAttributes:v}=a;ug("body",l),ug("html",i),FC(b,v);const w={baseTag:wo("base",n),linkTags:wo("link",c),metaTags:wo("meta",u),noscriptTags:wo("noscript",h),scriptTags:wo("script",p),styleTags:wo("style",x)},j={},N={};
17Object.keys(w).forEach(A=>{const{newTags:S,oldTags:C}=w[A];S.length&&(j[A]=S),C.length&&(N[A]=w[A].oldTags)}),t&&t(),f(a,j,N)},hd=null,HC=a=>{hd&&cancelAnimationFrame(hd),a.defer?hd=requestAnimationFrame(()=>{kj(a,()=>{hd=null})}):(kj(a),hd=null)},qC=HC,Cj=class extends y.Component{rendered=!1;shouldComponentUpdate(a){return!SC(a,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:a}=this.props.context;a.remove(this),this.emitChange()}emitChange(){const{helmetInstances:a,setHelmet:t}=this.props.context;let n=null;const l=OC(a.get().map(i=>{const{context:c,...u}=i.props;return u}));gN.canUseDOM?qC(l):og&&(n=og(l)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:a}=this.props.context;a.add(this),this.emitChange()}render(){return this.init(),null}},Lf=[],Ej=a=>{const t={};for(const n of Object.keys(a))t[hN[n]||n]=a[n];return t},di=a=>{const t={};for(const n of Object.keys(a)){const l=C0[n];t[l||n]=a[n]}return t},Tj=(a,t)=>{if(!db)return;const n=document.getElementsByTagName(a)[0];if(!n)return;const l="data-rh-managed",i=n.getAttribute(l),c=i?i.split(","):[],u=Object.keys(t);for(const h of c)u.includes(h)||n.removeAttribute(h);for(const h of u){const f=t[h];f==null||f===!1?n.removeAttribute(h):f===!0?n.setAttribute(h,""):n.setAttribute(h,String(f))}u.length>0?n.setAttribute(l,u.join(",")):n.removeAttribute(l)},ix=()=>{const a={},t={};for(const n of Lf){const{htmlAttributes:l,bodyAttributes:i}=n.props;l&&Object.assign(a,Ej(l)),i&&Object.assign(t,Ej(i))}Tj("html",a),Tj("body",t)},YC=class extends y.Component{componentDidMount(){Lf.push(this),ix()}componentDidUpdate(){ix()}componentWillUnmount(){const a=Lf.indexOf(this);a!==-1&&Lf.splice(a,1),ix()}resolveTitle(){const{title:a,titleTemplate:t,defaultTitle:n}=this.props;return a&&t?t.replace(/%s/g,()=>Array.isArray(a)?a.join(""):a):a||n||void 0}renderTitle(){const a=this.resolveTitle();if(a===void 0)return null;const t=this.props.titleAttributes||{};return de.createElement("title",di(t),a)}renderBase(){const{base:a}=this.props;return a?de.createElement("base",di(a)):null}renderMeta(){const{meta:a}=this.props;return!a||!Array.isArray(a)?null:a.map((t,n)=>de.createElement("meta",{key:n,...di(t)}))}renderLink(){const{link:a}=this.props;return!a||!Array.isArray(a)?null:a.map((t,n)=>de.createElement("link",{key:n,...di(t)}))}renderScript(){const{script:a}=this.props;return!a||!Array.isArray(a)?null:a.map((t,n)=>{const{innerHTML:l,...i}=t,c=di(i);return l&&(c.dangerouslySetInnerHTML={__html:l}),de.createElement("script",{key:n,...c})})}renderStyle(){const{style:a}=this.props;return!a||!Array.isArray(a)?null:a.map((t,n)=>{const{cssText:l,...i}=t,c=di(i);return l&&(c.dangerouslySetInnerHTML={__html:l}),de.createElement("style",{key:n,...c})})}renderNoscript(){const{noscript:a}=this.props;return!a||!Array.isArray(a)?null:a.map((t,n)=>{const{innerHTML:l,...i}=t,c=di(i);return l&&(c.dangerouslySetInnerHTML={__html:l}),de.createElement("noscript",{key:n,...c})})}render(){return de.createElement(de.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},pu=class extends y.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(a){return!wC(Sj(this.props,"helmetData"),Sj(a,"helmetData"))}mapNestedChildrenToProps(a,t){if(!t)return null;switch(a.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${a.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(a,t,n,l){return{...t,[a.type]:[...t[a.type]||[],{...n,...this.mapNestedChildrenToProps(a,l)}]}}mapObjectTypeChildren(a,t,n,l){switch(a.type){case"title":return{...t,[a.type]:l,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[a.type]:{...n}}}}mapArrayTypeChildrenToProps(a,t){let n={...t};
17return Object.keys(a).forEach(l=>{n={...n,[l]:a[l]}}),n}warnOnInvalidChildren(a,t){return W2(_j.some(n=>a.type===n),typeof a.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${_j.join(", ")} are allowed. Helmet does not support rendering <${a.type}> elements. Refer to our API for more information.`),W2(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${a.type}>. Did you forget to wrap your children in braces? ( <${a.type}>{\`\`}</${a.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(a,t){let n={};return de.Children.forEach(a,l=>{if(!l||!l.props)return;const{children:i,...c}=l.props,u=Object.keys(c).reduce((f,p)=>(f[hN[p]||p]=c[p],f),{});let{type:h}=l;switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(l,i),h){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(l,n,u,i);break;default:t=this.mapObjectTypeChildren(l,t,u,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:a,...t}=this.props;let n={...t},{helmetData:l}=t;if(a&&(n=this.mapChildrenToProps(a,n)),l&&!(l instanceof cg)){const i=l;l=new cg(i.context,!0),delete n.helmetData}return dg?de.createElement(YC,{...n}):l?de.createElement(Cj,{...n,context:l.value}):de.createElement(xN.Consumer,null,i=>de.createElement(Cj,{...n,context:i}))}},Rj="1.3.26";function yN(a,t,n){return Math.max(a,Math.min(t,n))}function GC(a,t,n){return(1-n)*a+n*t}function WC(a,t,n,l){return GC(a,t,1-Math.exp(-n*l))}function KC(a,t){return(a%t+t)%t}var XC=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(a){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=a;const n=yN(0,this.currentTime/this.duration,1);t=n>=1;const l=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*l}else this.lerp?(this.value=WC(this.value,this.to,this.lerp*60,a),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(a,t,{lerp:n,duration:l,easing:i,onStart:c,onUpdate:u}){this.from=this.value=a,this.to=t,this.lerp=n,this.duration=l,this.easing=i,this.currentTime=0,this.isRunning=!0,c?.(),this.onUpdate=u}};function QC(a,t){let n;return function(...l){clearTimeout(n),n=setTimeout(()=>{n=void 0,a.apply(this,l)},t)}}var ZC=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(a,t,{autoResize:n=!0,debounce:l=250}={}){this.wrapper=a,this.content=t,n&&(this.debouncedResize=QC(this.resize,l),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},vN=class{events={};emit(t,...n){const l=this.events[t]||[];for(let i=0,c=l.length;i<c;i++)l[i]?.(...n)}on(t,n){return this.events[t]?this.events[t].push(n):this.events[t]=[n],()=>{this.events[t]=this.events[t]?.filter(l=>n!==l)}}off(t,n){this.events[t]=this.events[t]?.filter(l=>n!==l)}destroy(){this.events={}}};
vendor: 4,133 bytes, line 17
17const JC=100/6,vr={passive:!1};function Oj(a,t){return a===1?JC:a===2?t:1}var $C=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new vN;constructor(a,t={wheelMultiplier:1,touchMultiplier:1}){this.element=a,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,vr),this.element.addEventListener("touchstart",this.onTouchStart,vr),this.element.addEventListener("touchmove",this.onTouchMove,vr),this.element.addEventListener("touchend",this.onTouchEnd,vr)}on(a,t){return this.emitter.on(a,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,vr),this.element.removeEventListener("touchstart",this.onTouchStart,vr),this.element.removeEventListener("touchmove",this.onTouchMove,vr),this.element.removeEventListener("touchend",this.onTouchEnd,vr)}onTouchStart=a=>{const{clientX:t,clientY:n}=a.targetTouches?a.targetTouches[0]:a;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:a})};onTouchMove=a=>{const{clientX:t,clientY:n}=a.targetTouches?a.targetTouches[0]:a,l=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:l,y:i},this.emitter.emit("scroll",{deltaX:l,deltaY:i,event:a})};onTouchEnd=a=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:a})};onWheel=a=>{let{deltaX:t,deltaY:n,deltaMode:l}=a;const i=Oj(l,this.window.width),c=Oj(l,this.window.height);t*=i,n*=c,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:a})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};const Mj=a=>Math.min(1,1.001-2**(-10*a));var eE=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;reducedMotionMediaQuery=window.matchMedia("(prefers-reduced-motion: reduce)");isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new XC;emitter=new vN;dimensions;virtualScroll;constructor({wrapper:a=window,content:t=document.documentElement,eventsTarget:n=a,smoothWheel:l=!0,syncTouch:i=!1,syncTouchLerp:c=.075,touchInertiaExponent:u=1.7,duration:h,easing:f,lerp:p=.1,infinite:x=!1,orientation:b="vertical",gestureOrientation:v=b==="horizontal"?"both":"vertical",touchMultiplier:w=1,wheelMultiplier:j=1,autoResize:N=!0,prevent:A,virtualScroll:S,overscroll:C=!0,autoRaf:T=!1,anchors:L=!1,autoToggle:O=!1,allowNestedScroll:R=!1,__experimental__naiveDimensions:k=!1,naiveDimensions:E=k,stopInertiaOnNavigate:z=!1,respectReducedMotion:D=!0}={}){window.lenisVersion=Rj,window.lenis||(window.lenis={}),window.lenis.version=Rj,b==="horizontal"&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!a||a===document.documentElement)&&(a=window),typeof h=="number"&&typeof f!="function"?f=Mj:typeof f=="function"&&typeof h!="number"&&(h=1),this.options={wrapper:a,content:t,eventsTarget:n,smoothWheel:l,syncTouch:i,syncTouchLerp:c,touchInertiaExponent:u,duration:h,easing:f,lerp:p,infinite:x,gestureOrientation:v,orientation:b,touchMultiplier:w,wheelMultiplier:j,autoResize:N,prevent:A,virtualScroll:S,overscroll:C,autoRaf:T,anchors:L,autoToggle:O,allowNestedScroll:R,naiveDimensions:E,stopInertiaOnNavigate:z,respectReducedMotion:D},this.dimensions=new ZC(a,t,{autoResize:N}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=ne
17w $C(n,{touchMultiplier:w,wheelMultiplier:j}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(a,t){return this.emitter.on(a,t)}off(a,t){return this.emitter.off(a,t)}onScrollEnd=a=>{a instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&a.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){const a=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[a]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=a=>{a.propertyName?.includes("overflow")&&a.target===this.rootElement&&this.checkOverflow()};setScroll(a){this.isHorizontal?this.options.wrapper.scrollTo({left:a,behavior:"instant"}):this.options.wrapper.scrollTo({top:a,behavior:"instant"})}onClick=a=>{const t=a.composedPath().filter(l=>l instanceof HTMLAnchorElement&&l.href).map(l=>new URL(l.href)),n=new URL(window.location.href);if(this.options.anchors){const l=t.find(i=>n.host===i.host&&n.pathname===i.pathname&&i.hash);if(l){const i=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,c=decodeURIComponent(l.hash);this.scrollTo(c,i);return}}if(this.options.stopInertiaOnNavigate&&t.some(l=>n.host===l.host&&n.pathname!==l.pathname)){this.reset();return}};onPointerDown=a=>{a.button===1&&this.reset()};isTouchOnSelectionHandle(a){const t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;const n=a.targetTouches[0]??a.changedTouches[0];if(!n)return!1;const l=t.getRangeAt(0).getClientRects();if(l.length===0)return!1;const i=l[0],c=l[l.length-1],u=40,h=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=u,f=Math.hypot(n.clientX-c.right,n.clientY-c.bottom)<=u;return h||f}onVirtualScroll=a=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(a)===!1)return;const{deltaX:t,deltaY:n,event:l}=a;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:l}),l.ctrlKey||l.lenisStopPropagation)return;const i=l.type.includes("touch"),c=l.type.includes("wheel");if(i&&this.isIos&&(l.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(l)),this._isDraggingSelection)){l.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=l.type==="touchstart"||l.type==="touchmove";const u=t===0&&n===0;if(this.options.syncTouch&&i&&l.type==="touchstart"&&u&&!this.isStopped&&!this.isLocked){this.reset();return}const h=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&t===0;if(u||h)return;let f=l.composedPath();f=f.slice(0,f.indexOf(this.rootElement));const p=this.options.prevent,x=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";if(f.find(j=>j instanceof HTMLElement&&(typeof p=="function"&&p?.(j)||j.hasAttribute?.("data-lenis-prevent")||x==="vertical"&&j.hasAttribute?.("data-lenis-prevent-vertical")||x==="horizontal"&&j.hasAttribute?.("data-lenis-prevent-horizontal")||i&&j.hasAttribute?.("data-lenis-prevent-touch")||c&&j.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(j,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){l.cancelable&&l.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&c)){this.isScrolling="native",this.animate.stop(),l.lenisStopPropagation=!0;return}let b=n;this.options.gestureOrientation==="both"?b=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation==="horizontal"&&(b=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(l.lenisStopPropagation=!0),l.cancelable&&l.preventDefault();const v=i&&this.options.syncTouch,w=i&&l.type==="touchend";w&&(b=Math.sign(b)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+b,{programmatic:!1,...v?{lerp:w?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
vendor: 6,410 bytes, line 17
17()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const a=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-a,this.direction=Math.sign(this.animatedScroll-a),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=a=>{const t=a-(this.time||a);this.time=a,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(a,{offset:t=0,immediate:n=!1,lock:l=!1,programmatic:i=!0,lerp:c=i?this.options.lerp:void 0,duration:u=i?this.options.duration:void 0,easing:h=i?this.options.easing:void 0,onStart:f,onComplete:p,force:x=!1,userData:b}={}){if(this.prefersReducedMotion&&(i?n=!0:(c=1,u=void 0,h=void 0)),(this.isStopped||this.isLocked)&&!x)return;let v=a,w=t;if(typeof v=="string"&&["top","left","start","#"].includes(v))v=0;else if(typeof v=="string"&&["bottom","right","end"].includes(v))v=this.limit;else{let j=null;if(typeof v=="string"?(j=v.startsWith("#")?document.getElementById(v.slice(1)):document.querySelector(v),j||(v==="#top"?v=0:console.warn("Lenis: Target not found",v))):v instanceof HTMLElement&&v?.nodeType&&(j=v),j){if(this.options.wrapper!==window){const L=this.rootElement.getBoundingClientRect();w-=this.isHorizontal?L.left:L.top}const N=j.getBoundingClientRect(),A=getComputedStyle(j),S=this.isHorizontal?Number.parseFloat(A.scrollMarginLeft):Number.parseFloat(A.scrollMarginTop),C=getComputedStyle(this.rootElement),T=this.isHorizontal?Number.parseFloat(C.scrollPaddingLeft):Number.parseFloat(C.scrollPaddingTop);v=(this.isHorizontal?N.left:N.top)+this.animatedScroll-(Number.isNaN(S)?0:S)-(Number.isNaN(T)?0:T)}}if(typeof v=="number"){if(v+=w,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;const j=v-this.animatedScroll;j>this.limit/2?v-=this.limit:j<-this.limit/2&&(v+=this.limit)}}else v=yN(0,v,this.limit);if(v===this.targetScroll){f?.(this),p?.(this);return}if(this.userData=b??{},n){this.animatedScroll=this.targetScroll=v,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),p?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=v),typeof u=="number"&&typeof h!="function"?h=Mj:typeof h=="function"&&typeof u!="number"&&(u=1),this.animate.fromTo(this.animatedScroll,v,{duration:u,easing:h,lerp:c,onStart:()=>{l&&(this.isLocked=!0),this.isScrolling="smooth",f?.(this)},onUpdate:(j,N)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=j-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=j,this.setScroll(this.scroll),i&&(this.targetScroll=j),N||this.emit(),N&&(this.reset(),this.emit(),p?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(a,{deltaX:t,deltaY:n}){const l=Date.now();a._lenis||(a._lenis={});const i=a._lenis;let c,u,h,f,p,x,b,v,w,j;if(l-(i.time??0)>2e3){i.time=Date.now();const R=window.getComputedStyle(a);if(i.computedStyle=R,c=["auto","overlay","scroll"].includes(R.overflowX),u=["auto","overlay","scroll"].includes(R.overflowY),p=["auto"].includes(R.overscrollBehaviorX),x=["auto"].includes(R.overscrollBehaviorY),i.hasOverflowX=c,i.hasOverflowY=u,!(c||u))return!1;b=a.scrollWidth,v=a.scrollHeight,w=a.clientWidth,j=a.clientHeight,h=b>w,f=v>j,i.isScrollableX=h,i.isScrollableY=f,i.scrollWidth=b,i.scrollHeight=v,i.clientWidth=w,i.clientHeight=j,i.hasOverscrollBehaviorX=p,i.hasOverscrollBehaviorY=x}else h=i.isScrollableX,f=i.isScrollableY,c=i.hasOverflowX,u=i.hasOverflowY,b=i.scrollWidth,v=i.scrollHeight,w=i.clientWidth,j=i.clientHeight,p=i.hasOverscrollBehaviorX,x=i.hasOverscrollBehaviorY;if(!(c&&h||u&&f))return!1;const N=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";let A,S,C,T,L,O;if(N==="horizontal")A=Math.round(a.scrollLeft),S=b-w,C=t,T=c,L=h,O=p;else if(N==="vertical")A=Math.round(a.scrollTop),S=v-j,C=n,T=u,L=f,O=x;else return!1;return!O&&(A>=S||A<=0)?!0:(C>0?A<S:A>0)&&T&&L}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const a=this.options.wrapper;return this.isHorizontal?a.scrollX??a.scrollLeft:a.scrollY??a.scrollTop}get scroll(){return this.options.infinite?KC(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(a){this._isScrolling!==a&&(this._isScrolling=a,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(a){this._isStopped!==a&&(this._isStopped=a,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(a){this._isLocked!==a&&(this._isLocked=a,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let a="lenis";
vendor: 5,282 bytes, line 17
17return this.options.autoToggle&&(a+=" lenis-autoToggle"),this.isStopped&&(a+=" lenis-stopped"),this.isLocked&&(a+=" lenis-locked"),this.isScrolling&&(a+=" lenis-scrolling"),this.isScrolling==="smooth"&&(a+=" lenis-smooth"),a}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(a=>{this.rootElement.classList.add(a)})}cleanUpClassName(){for(const a of Array.from(this.rootElement.classList))(a==="lenis"||a.startsWith("lenis-"))&&this.rootElement.classList.remove(a)}};function Rl(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function jN(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}var Va={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Kd={duration:.5,overwrite:!1,delay:0},ub,Rs,Lt,Nn=1e8,_t=1/Nn,hg=Math.PI*2,tE=hg/4,sE=0,AN=Math.sqrt,aE=Math.cos,nE=Math.sin,Ns=function(t){return typeof t=="string"},Qt=function(t){return typeof t=="function"},Hl=function(t){return typeof t=="number"},hb=function(t){return typeof t>"u"},cl=function(t){return typeof t=="object"},ga=function(t){return t!==!1},fb=function(){return typeof window<"u"},Ph=function(t){return Qt(t)||Ns(t)},wN=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Hs=Array.isArray,lE=/random\([^)]+\)/g,rE=/,\s*/g,zj=/(?:-?\.?\d|\.)+/gi,NN=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,zo=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ox=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,_N=/[+-]=-?[.\d]+/,iE=/[^,'"\[\]\s]+/gi,oE=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ht,sl,fg,mb,Ga={},t0={},SN,kN=function(t){return(t0=ec(t,Ga))&&ja},pb=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},Xd=function(t,n){return!n&&console.warn(t)},CN=function(t,n){return t&&(Ga[t]=n)&&t0&&(t0[t]=n)||Ga},Qd=function(){return 0},cE={suppressEvents:!0,isStart:!0,kill:!1},Df={suppressEvents:!0,kill:!1},dE={suppressEvents:!0},xb={},Rr=[],mg={},EN,La={},cx={},Lj=30,Bf=[],gb="",bb=function(t){var n=t[0],l,i;if(cl(n)||Qt(n)||(t=[t]),!(l=(n._gsap||{}).harness)){for(i=Bf.length;i--&&!Bf[i].targetTest(n););l=Bf[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new ZN(t[i],l)))||t.splice(i,1);return t},wi=function(t){return t._gsap||bb(_n(t))[0]._gsap},TN=function(t,n,l){return(l=t[n])&&Qt(l)?t[n]():hb(l)&&t.getAttribute&&t.getAttribute(n)||l},ba=function(t,n){return(t=t.split(",")).forEach(n)||t},ss=function(t){return Math.round(t*1e5)/1e5||0},Ft=function(t){return Math.round(t*1e7)/1e7||0},Go=function(t,n){var l=n.charAt(0),i=parseFloat(n.substr(2));return t=parseFloat(t),l==="+"?t+i:l==="-"?t-i:l==="*"?t*i:t/i},uE=function(t,n){for(var l=n.length,i=0;t.indexOf(n[i])<0&&++i<l;);return i<l},s0=function(){var t=Rr.length,n=Rr.slice(0),l,i;for(mg={},Rr.length=0,l=0;l<t;l++)i=n[l],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},yb=function(t){return!!(t._initted||t._startAt||t.add)},RN=function(t,n,l,i){Rr.length&&!Rs&&s0(),t.render(n,l,!!(Rs&&n<0&&yb(t))),Rr.length&&!Rs&&s0()},ON=function(t){var n=parseFloat(t);return(n||n===0)&&(t+"").match(iE).length<2?n:Ns(t)?t.trim():t},MN=function(t){return t},Wa=function(t,n){for(var l in n)l in t||(t[l]=n[l]);return t},hE=function(t){return function(n,l){for(var i in l)i in n||i==="duration"&&t||i==="ease"||(n[i]=l[i])}},ec=function(t,n){for(var l in n)t[l]=n[l];return t},Dj=function a(t,n){for(var l in n)l!=="__proto__"&&l!=="constructor"&&l!=="prototype"&&(t[l]=cl(n[l])?a(t[l]||(t[l]={}),n[l]):n[l]);return t},a0=function(t,n){var l={},i;for(i in t)i in n||(l[i]=t[i]);return l},Md=function(t){var n=t.parent||Ht,l=t.keyframes?hE(Hs(t.keyframes)):Wa;if(ga(t.inherit))for(;n;)l(t,n.vars.defaults),n=n.parent||n._dp;return t},fE=function(t,n){for(var l=t.length,i=l===n.length;i&&l--&&t[l]===n[l];);return l<0},zN=function(t,n,l,i,c){var u=t[i],h;if(c)for(h=n[c];u&&u[c]>h;)u=u._prev;return u?(n._next=u._next,u._next=n):(n._next=t[l],t[l]=n),n._next?n._next._prev=n:t[i]=n,n._prev=u,n.parent=n._dp=t,n},E0=function(t,n,l,i){l===void 0&&(l="_first"),i===void 0&&(i="_last");var c=n._prev,u=n._next;c?c._next=u:t[l]===n&&(t[l]=u),u?u._prev=c:t[i]===n&&(t[i]=c),n._next=n._prev=n.parent=null},Dr=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ni=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var l=t;l;)l._dirty=1,l=l.parent;return t},mE=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},pg=function(t,n,l,i){return t._startAt&&(Rs?t._startAt.revert(Df):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,i))},pE=function a(t){return!t||t._ts&&a(t.parent)},Bj=function(t){return t._repeat?tc(t._tTime,t=t.duration()+t._rDelay)*t:0},tc=function(t,n){var l=Math.floor(t=Ft(t/n));return t&&l===t?l-1:l},n0=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},T0=function(t){return t._end=Ft(t._start+(t._tDur/Math.abs(t._ts||t._rts||_t)||0))},R0=function(t,n){var l=t._dp;return l&&l.smoothChildTiming&&t._ts&&(t._start=Ft(l._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),T0(t),l._dirty||Ni(l,t)),t},LN=function(t,n){var l;if((n._time||!n._dur&&n._initted||n._start<t._time&&(n._dur||!n.add
vendor: 7,139 bytes, line 17
17))&&(l=n0(t.rawTime(),n),(!n._dur||xu(0,n.totalDuration(),l)-n._tTime>_t)&&n.render(l,!0)),Ni(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(l=t;l._dp;)l.rawTime()>=0&&l.totalTime(l._tTime),l=l._dp;t._zTime=-_t}},nl=function(t,n,l,i){return n.parent&&Dr(n),n._start=Ft((Hl(l)?l:l||t!==Ht?xn(t,l,n):t._time)+n._delay),n._end=Ft(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),zN(t,n,"_first","_last",t._sort?"_start":0),xg(n)||(t._recent=n),i||LN(t,n),t._ts<0&&R0(t,t._tTime),t},DN=function(t,n){return(Ga.ScrollTrigger||pb("scrollTrigger",n))&&Ga.ScrollTrigger.create(n,t)},BN=function(t,n,l,i,c){if(jb(t,n,c),!t._initted)return 1;if(!l&&t._pt&&!Rs&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&EN!==Ba.frame)return Rr.push(t),t._lazy=[c,i],1},xE=function a(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||a(n))},xg=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},gE=function(t,n,l,i){var c=t.ratio,u=n<0||!n&&(!t._start&&xE(t)&&!(!t._initted&&xg(t))||(t._ts<0||t._dp._ts<0)&&!xg(t))?0:1,h=t._rDelay,f=0,p,x,b;if(h&&t._repeat&&(f=xu(0,t._tDur,n),x=tc(f,h),t._yoyo&&x&1&&(u=1-u),x!==tc(t._tTime,h)&&(c=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==c||Rs||i||t._zTime===_t||!n&&t._zTime){if(!t._initted&&BN(t,n,i,l,f))return;for(b=t._zTime,t._zTime=n||(l?_t:0),l||(l=n&&!b),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=f,p=t._pt;p;)p.r(u,p.d),p=p._next;n<0&&pg(t,n,l,!0),t._onUpdate&&!l&&Ua(t,"onUpdate"),f&&t._repeat&&!l&&t.parent&&Ua(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===u&&(u&&Dr(t,1),!l&&!Rs&&(Ua(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},bE=function(t,n,l){var i;if(l>n)for(i=t._first;i&&i._start<=l;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=t._last;i&&i._start>=l;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},sc=function(t,n,l,i){var c=t._repeat,u=Ft(n)||0,h=t._tTime/t._tDur;return h&&!i&&(t._time*=u/t._dur),t._dur=u,t._tDur=c?c<0?1e10:Ft(u*(c+1)+t._rDelay*c):u,h>0&&!i&&R0(t,t._tTime=t._tDur*h),t.parent&&T0(t),l||Ni(t.parent,t),t},Pj=function(t){return t instanceof fa?Ni(t):sc(t,t._dur)},yE={_start:0,endTime:Qd,totalDuration:Qd},xn=function a(t,n,l){var i=t.labels,c=t._recent||yE,u=t.duration()>=Nn?c.endTime(!1):t._dur,h,f,p;return Ns(n)&&(isNaN(n)||n in i)?(f=n.charAt(0),p=n.substr(-1)==="%",h=n.indexOf("="),f==="<"||f===">"?(h>=0&&(n=n.replace(/=/,"")),(f==="<"?c._start:c.endTime(c._repeat>=0))+(parseFloat(n.substr(1))||0)*(p?(h<0?c:l).totalDuration()/100:1)):h<0?(n in i||(i[n]=u),i[n]):(f=parseFloat(n.charAt(h-1)+n.substr(h+1)),p&&l&&(f=f/100*(Hs(l)?l[0]:l).totalDuration()),h>1?a(t,n.substr(0,h-1),l)+f:u+f)):n==null?u:+n},zd=function(t,n,l){var i=Hl(n[1]),c=(i?2:1)+(t<2?0:1),u=n[c],h,f;if(i&&(u.duration=n[1]),u.parent=l,t){for(h=u,f=l;f&&!("immediateRender"in h);)h=f.vars.defaults||{},f=ga(f.vars.inherit)&&f.parent;u.immediateRender=ga(h.immediateRender),t<2?u.runBackwards=1:u.startAt=n[c-1]}return new fs(n[0],u,n[c+1])},Vr=function(t,n){return t||t===0?n(t):n},xu=function(t,n,l){return l<t?t:l>n?n:l},Vs=function(t,n){return!Ns(t)||!(n=oE.exec(t))?"":n[1]},vE=function(t,n,l){return Vr(l,function(i){return xu(t,n,i)})},gg=[].slice,PN=function(t,n){return t&&cl(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&cl(t[0]))&&!t.nodeType&&t!==sl},jE=function(t,n,l){return l===void 0&&(l=[]),t.forEach(function(i){var c;return Ns(i)&&!n||PN(i,1)?(c=l).push.apply(c,_n(i)):l.push(i)})||l},_n=function(t,n,l){return Lt&&!n&&Lt.selector?Lt.selector(t):Ns(t)&&!l&&(fg||!ac())?gg.call((n||mb).querySelectorAll(t),0):Hs(t)?jE(t,l):PN(t)?gg.call(t,0):t?[t]:[]},bg=function(t){return t=_n(t)[0]||Xd("Invalid scope")||{},function(n){var l=t.current||t.nativeElement||t;return _n(n,l.querySelectorAll?l:l===t?Xd("Invalid scope")||mb.createElement("div"):t)}},UN=function(t){return t.sort(function(){return .5-Math.random()})},IN=function(t){if(Qt(t))return t;var n=cl(t)?t:{each:t},l=_i(n.ease),i=n.from||0,c=parseFloat(n.base)||0,u={},h=i>0&&i<1,f=isNaN(i)||h,p=n.axis,x=i,b=i;return Ns(i)?x=b={center:.5,edges:.5,end:1}[i]||0:!h&&f&&(x=i[0],b=i[1]),function(v,w,j){var N=(j||n).length,A=u[N],S,C,T,L,O,R,k,E,z;if(!A){if(z=n.grid==="auto"?0:(n.grid||[1,Nn])[1],!z){for(k=-Nn;k<(k=j[z++].getBoundingClientRect().left)&&z<N;);z<N&&z--}for(A=u[N]=[],S=f?Math.min(z,N)*x-.5:i%z,C=z===Nn?0:f?N*b/z-.5:i/z|0,k=0,E=Nn,R=0;R<N;R++)T=R%z-S,L=C-(R/z|0),A[R]=O=p?Math.abs(p==="y"?L:T):AN(T*T+L*L),O>k&&(k=O),O<E&&(E=O);i==="random"&&UN(A),A.max=k-E,A.min=E,A.v=N=(parseFloat(n.amount)||parseFloat(n.each)*(z>N?N-1:p?p==="y"?N/z:z:Math.max(z,N/z))||0)*(i==="edges"?-1:1),A.b=N<0?c-N:c,A.u=Vs(n.amount||n.each)||0,l=l&&N<0?zE(l):l}return N=(A[v]-A.min)/A.max||0,Ft(A.b+(l?l(N):N)*A.v)+A.u}},yg=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(l){var i=Ft(Math.round(parseFloat(l)/t)*t*n);return(i-i%1)/n+(Hl(l)?0:Vs(l))}},VN=function(t,n){var l=Hs(t),i,c;return!l&&cl(t)&&(i=l=t.radius||Nn,t.values?(t=_n(t.values),(c=!Hl(t[0]))&&(i*=i)):t=yg(t.increment)),Vr(n,l?Qt(t)?function(u){return c=t(u),Math.abs(c-u)<=i?c:u}:function(u){for(var h=parseFloat(c?u.x:u),f=parseFloat(c?u.y:0),p=Nn,x=0,b=t.length,v,w;b--;)c?(v=t[b].x-h,w=t[b].y-f,v=v*v+w*w):v=Math.abs(t[b]-h),v<p&&(p=v,x=b);return x=!i||p<=i?t[x]:u,c||x===u||Hl(u)?x:x+Vs(u)}:yg(t))},FN=function(t,n,l,i){return Vr(Hs(t)?!n:l===!0?!!(l=0):!i,function(){return Hs(t)?t[~~(Math.random()*t.length)]:(l=l||1e-5)&&(i=l<1?Math.pow(10,(l+"").length-2):1)&&Math.floor(Math.round((t-l/2+Math.random()*(n-t+l*.99))/l)*l*i)/i})},AE=function(){for(var t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];return function(i){return n.reduce(function(c,u){return u(c)},i)}},wE=function(t,n){return function(l){return t(parseFloat(l))+(n||Vs(l))}},NE=function(t,n,l){return qN(t,n,0,1,l)},HN=function(t,n,l){return Vr(l,function(i){return t[~~n(i)]})},_E=function a(t,n,l){var i=n-t;return Hs(t)?HN(t,a(0,t.length),n):Vr(l,function(c){return(i+(c-t)%i)%i+t})},SE=function a(t,n,l){var i=n-t,c=i*2;return Hs(t)?HN(t,a(0,t.length-1),n):Vr(l,function(u){return u=(c+(u-t)%c)%c||0,t+(u>i?c-u:u)})},Zd=function(t){return t.replace(lE,function(n){var l=n.indexOf("[")+1,i=n.substring(l||7,l?n.indexOf("]"):n.length-1).split(rE);return FN(l?i:+i[0],l?0:+i[1],+i[2]||1e-5)})},qN=function(t,n,l,i,c){var u=n-t,h=i-l;return Vr(c,function(f){return l+((f-t)/u*h||0)})},kE=function a(t,n,l,i){var c=isNaN(t+n)?0:function(w){return(1-w)*t+w*n};if(!c){var u=Ns(t),h={},f,p,x,b,v;if(l===!0&&(i=1)&&(l=null),u)t={p:t},n={p:n};else if(Hs(t)&&!Hs(n)){for(x=[],b=t.length,v=b-2,p=1;p<b;p++)x.push(a(t[p-1],t[p]));b--,c=function(j){j*=b;var N=Math.min(v,~~j);return x[N](j-N)},l=n}else i||(t=ec(Hs(t)?[]:{},t));if(!x){for(f in n)vb.call(h,t,f,"get",n[f]);c=function(j){return Nb(j,h)||(u?t.p:t)}}}return Vr(l,c)},Uj=function(t,n,l){var i=t.labels,c=Nn,u,h,f;for(u in i)h=i[u]-n,h<0==!!l&&h&&c>(h=Math.abs(h))&&(f=u,c=h);return f},Ua=function(t,n,l){var i=t.vars,c=i[n],u=Lt,h=t._ctx,f,p,x;if(c)return f=i[n+"Params"],p=i.callbackScope||t,l&&Rr.length&&s0(),h&&(Lt=h),x=f?c.apply(
vendor: 10,568 bytes, line 17
17p,f):c.call(p),Lt=u,x},Ad=function(t){return Dr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Rs),t.progress()<1&&Ua(t,"onInterrupt"),t},Lo,YN=[],GN=function(t){if(t)if(t=!t.name&&t.default||t,fb()||t.headless){var n=t.name,l=Qt(t),i=n&&!l&&t.init?function(){this._props=[]}:t,c={init:Qd,render:Nb,add:vb,kill:qE,modifier:HE,rawVars:0},u={targetTest:0,get:0,getSetter:wb,aliases:{},register:0};if(ac(),t!==i){if(La[n])return;Wa(i,Wa(a0(t,c),u)),ec(i.prototype,ec(c,a0(t,u))),La[i.prop=n]=i,t.targetTest&&(Bf.push(i),xb[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}CN(n,i),t.register&&t.register(ja,i,ya)}else YN.push(t)},Nt=255,wd={aqua:[0,Nt,Nt],lime:[0,Nt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Nt],navy:[0,0,128],white:[Nt,Nt,Nt],olive:[128,128,0],yellow:[Nt,Nt,0],orange:[Nt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Nt,0,0],pink:[Nt,192,203],cyan:[0,Nt,Nt],transparent:[Nt,Nt,Nt,0]},dx=function(t,n,l){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(l-n)*t*6:t<.5?l:t*3<2?n+(l-n)*(2/3-t)*6:n)*Nt+.5|0},WN=function(t,n,l){var i=t?Hl(t)?[t>>16,t>>8&Nt,t&Nt]:0:wd.black,c,u,h,f,p,x,b,v,w,j;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),wd[t])i=wd[t];else if(t.charAt(0)==="#"){if(t.length<6&&(c=t.charAt(1),u=t.charAt(2),h=t.charAt(3),t="#"+c+c+u+u+h+h+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Nt,i&Nt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Nt,t&Nt]}else if(t.substr(0,3)==="hsl"){if(i=j=t.match(zj),!n)f=+i[0]%360/360,p=+i[1]/100,x=+i[2]/100,u=x<=.5?x*(p+1):x+p-x*p,c=x*2-u,i.length>3&&(i[3]*=1),i[0]=dx(f+1/3,c,u),i[1]=dx(f,c,u),i[2]=dx(f-1/3,c,u);else if(~t.indexOf("="))return i=t.match(NN),l&&i.length<4&&(i[3]=1),i}else i=t.match(zj)||wd.transparent;i=i.map(Number)}return n&&!j&&(c=i[0]/Nt,u=i[1]/Nt,h=i[2]/Nt,b=Math.max(c,u,h),v=Math.min(c,u,h),x=(b+v)/2,b===v?f=p=0:(w=b-v,p=x>.5?w/(2-b-v):w/(b+v),f=b===c?(u-h)/w+(u<h?6:0):b===u?(h-c)/w+2:(c-u)/w+4,f*=60),i[0]=~~(f+.5),i[1]=~~(p*100+.5),i[2]=~~(x*100+.5)),l&&i.length<4&&(i[3]=1),i},KN=function(t){var n=[],l=[],i=-1;return t.split(Or).forEach(function(c){var u=c.match(zo)||[];n.push.apply(n,u),l.push(i+=u.length+1)}),n.c=l,n},Ij=function(t,n,l){var i="",c=(t+i).match(Or),u=n?"hsla(":"rgba(",h=0,f,p,x,b;if(!c)return t;if(c=c.map(function(v){return(v=WN(v,n,1))&&u+(n?v[0]+","+v[1]+"%,"+v[2]+"%,"+v[3]:v.join(","))+")"}),l&&(x=KN(t),f=l.c,f.join(i)!==x.c.join(i)))for(p=t.replace(Or,"1").split(zo),b=p.length-1;h<b;h++)i+=p[h]+(~f.indexOf(h)?c.shift()||u+"0,0,0,0)":(x.length?x:c.length?c:l).shift());if(!p)for(p=t.split(Or),b=p.length-1;h<b;h++)i+=p[h]+c[h];return i+p[b]},Or=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in wd)a+="|"+t+"\\b";return new RegExp(a+")","gi")})(),CE=/hsl[a]?\(/,XN=function(t){var n=t.join(" "),l;if(Or.lastIndex=0,Or.test(n))return l=CE.test(n),t[1]=Ij(t[1],l),t[0]=Ij(t[0],l,KN(t[1])),!0},Jd,Ba=(function(){var a=Date.now,t=500,n=33,l=a(),i=l,c=1e3/240,u=c,h=[],f,p,x,b,v,w,j=function N(A){var S=a()-i,C=A===!0,T,L,O,R;if((S>t||S<0)&&(l+=S-n),i+=S,O=i-l,T=O-u,(T>0||C)&&(R=++b.frame,v=O-b.time*1e3,b.time=O=O/1e3,u+=T+(T>=c?4:c-T),L=1),C||(f=p(N)),L)for(w=0;w<h.length;w++)h[w](O,v,R,A)};return b={time:0,frame:0,tick:function(){j(!0)},deltaRatio:function(A){return v/(1e3/(A||60))},wake:function(){SN&&(!fg&&fb()&&(sl=fg=window,mb=sl.document||{},Ga.gsap=ja,(sl.gsapVersions||(sl.gsapVersions=[])).push(ja.version),kN(t0||sl.GreenSockGlobals||!sl.gsap&&sl||{}),YN.forEach(GN)),x=typeof requestAnimationFrame<"u"&&requestAnimationFrame,f&&b.sleep(),p=x||function(A){return setTimeout(A,u-b.time*1e3+1|0)},Jd=1,j(2))},sleep:function(){(x?cancelAnimationFrame:clearTimeout)(f),Jd=0,p=Qd},lagSmoothing:function(A,S){t=A||1/0,n=Math.min(S||33,t)},fps:function(A){c=1e3/(A||240),u=b.time*1e3+c},add:function(A,S,C){var T=S?function(L,O,R,k){A(L,O,R,k),b.remove(T)}:A;return b.remove(A),h[C?"unshift":"push"](T),ac(),T},remove:function(A,S){~(S=h.indexOf(A))&&h.splice(S,1)&&w>=S&&w--},_listeners:h},b})(),ac=function(){return!Jd&&Ba.wake()},rt={},EE=/^[\d.\-M][\d.\-,\s]/,TE=/["']/g,RE=function(t){for(var n={},l=t.substr(1,t.length-3).split(":"),i=l[0],c=1,u=l.length,h,f,p;c<u;c++)f=l[c],h=c!==u-1?f.lastIndexOf(","):f.length,p=f.substr(0,h),n[i]=isNaN(p)?p.replace(TE,"").trim():+p,i=f.substr(h+1).trim();return n},OE=function(t){var n=t.indexOf("(")+1,l=t.indexOf(")"),i=t.indexOf("(",n);return t.substring(n,~i&&i<l?t.indexOf(")",l+1):l)},ME=function(t){var n=(t+"").split("("),l=rt[n[0]];return l&&n.length>1&&l.config?l.config.apply(null,~t.indexOf("{")?[RE(n[1])]:OE(t).split(",").map(ON)):rt._CE&&EE.test(t)?rt._CE("",t):l},zE=function(t){return function(n){return 1-t(1-n)}},_i=function(t,n){return t&&(Qt(t)?t:rt[t]||ME(t))||n},Ii=function(t,n,l,i){l===void 0&&(l=function(f){return 1-n(1-f)}),i===void 0&&(i=function(f){return f<.5?n(f*2)/2:1-n((1-f)*2)/2});var c={easeIn:n,easeOut:l,easeInOut:i},u;return ba(t,function(h){rt[h]=Ga[h]=c,rt[u=h.toLowerCase()]=l;for(var f in c)rt[u+(f==="easeIn"?".in":f==="easeOut"?".out":".inOut")]=rt[h+"."+f]=c[f]}),c},QN=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},ux=function a(t,n,l){var i=n>=1?n:1,c=(l||(t?.3:.45))/(n<1?n:1),u=c/hg*(Math.asin(1/i)||0),h=function(x){return x===1?1:i*Math.pow(2,-10*x)*nE((x-u)*c)+1},f=t==="out"?h:t==="in"?function(p){return 1-h(1-p)}:QN(h);return c=hg/c,f.config=function(p,x){return a(t,p,x)},f},hx=function a(t,n){n===void 0&&(n=1.70158);var l=function(u){return u?--u*u*((n+1)*u+n)+1:0},i=t==="out"?l:t==="in"?function(c){return 1-l(1-c)}:QN(l);return i.config=function(c){return a(t,c)},i};ba("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,t){var n=t<5?t+1:t;Ii(a+",Power"+(n-1),t?function(l){return Math.pow(l,n)}:function(l){return l},function(l){return 1-Math.pow(1-l,n)},function(l){return l<.5?Math.pow(l*2,n)/2:1-Math.pow((1-l)*2,n)/2})});rt.Linear.easeNone=rt.none=rt.Linear.easeIn;Ii("Elastic",ux("in"),ux("out"),ux());(function(a,t){var n=1/t,l=2*n,i=2.5*n,c=function(h){return h<n?a*h*h:h<l?a*Math.pow(h-1.5/t,2)+.75:h<i?a*(h-=2.25/t)*h+.9375:a*Math.pow(h-2.625/t,2)+.984375};Ii("Bounce",function(u){return 1-c(1-u)},c)})(7.5625,2.75);Ii("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});Ii("Circ",function(a){return-(AN(1-a*a)-1)});Ii("Sine",function(a){return a===1?1:-aE(a*tE)+1});Ii("Back",hx("in"),hx("out"),hx());rt.SteppedEase=rt.steps=Ga.SteppedEase={config:function(t,n){t===void 0&&(t=1);var l=1/t,i=t+(n?0:1),c=n?1:0,u=1-_t;return function(h){return((i*xu(0,u,h)|0)+c)*l}}};Kd.ease=rt["quad.out"];ba("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return gb+=a+","+a+"Params,"});var ZN=function(t,n){this.id=sE++,t._gsap=this,this.target=t,this.harness=n,this.get=n?n.get:TN,this.set=n?n.getSetter:wb},$d=(function(){function a(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,sc(this,+n.duration,1,1),this.data=n.data,Lt&&(this._ctx=Lt,Lt.data.push(this)),Jd||Ba.wake()}var t=a.prototype;return t.delay=function(l){return l||l===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+l-this._delay),this._delay=l,this):this._delay},t.duration=function(l){return arguments.length?this.totalDuration(this._repeat>0?l+(l+this._rDelay)*this._repeat:l):this.totalDuration()&&this._dur},t.totalDuration=function(l){return arguments.length?(this._dirty=0,sc(this,this._repeat<0?l:(l-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(l,i){if(ac(),!arguments.length)return this._tTime;var c=this._dp;if(c&&c.smoothChildTiming&&this._ts){for(R0(this,l),!c._dp||c.parent||LN(c,this);c&&c.parent;)c.parent._time!==c._start+(c._ts>=0?c._tTime/c._ts:(c.totalDuration()-c._tTime)/-c._ts)&&c.totalTime(c._tTime,!0),c=c.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&l<this._tDur||this._ts<0&&l>0||!this._tDur&&!l)&&nl(this._dp,this,this._start-this._delay)}return(this._tTime!==l||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===_t||!this._initted&&this._dur&&l||!l&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=l),RN(this,l,i)),this},t.time=function(l,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),l+Bj(this))%(this._dur+this._rDelay)||(l?this._dur:0),i):this._time},t.totalProgress=function(l,i){return arguments.length?this.totalTime(this.totalDuration()*l,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(l,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-l:l)+Bj(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(l,i){var c=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(l-1)*c,i):this._repeat?tc(this._tTime,c)+1:1},t.timeScale=function(l,i){if(!arguments.length)return this._rts===-_t?0:this._rts;if(this._rts===l)return this;var c=this.parent&&this._ts?n0(this.parent._time,this):this._tTime;return this._rts=+l||0,this._ts=this._ps||l===-_t?0:this._rts,this.totalTime(xu(-Math.abs(this._delay),this.totalDuration(),c),i!==!1),T0(this),mE(this)},t.paused=function(l){return arguments.length?(this._ps!==l&&(this._ps=l,l?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ac(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==_t&&(this._tTime-=_t)))),this):this._ps},t.startTime=function(l){if(arguments.length){this._start=Ft(l);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&nl(i,this,this._start-this._delay),this}return this._start},t.endTime=function(l){return this._start+(ga(l)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(l){var i=this.parent||this._dp;return i?l&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?n0(i.rawTime(l),this):this._tTime:this._tTime},t.revert=function(l){l===void 0&&(l=dE);var i=Rs;return Rs=l,yb(this)&&(this.timeline&&this.timeline.revert(l),this.totalTime(-.01,l.suppressEvents)),this.data!=="nested"&&l.kill!==!1&&this.kill(),Rs=i,this},t.globalTime=function(l){for(var i=this,c=arguments.length?l:i.rawTime();i;
vendor: 18,541 bytes, line 17
17)c=i._start+c/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(l):c},t.repeat=function(l){return arguments.length?(this._repeat=l===1/0?-2:l,Pj(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(l){if(arguments.length){var i=this._time;return this._rDelay=l,Pj(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(l){return arguments.length?(this._yoyo=l,this):this._yoyo},t.seek=function(l,i){return this.totalTime(xn(this,l),ga(i))},t.restart=function(l,i){return this.play().totalTime(l?-this._delay:0,ga(i)),this._dur||(this._zTime=-_t),this},t.play=function(l,i){return l!=null&&this.seek(l,i),this.reversed(!1).paused(!1)},t.reverse=function(l,i){return l!=null&&this.seek(l||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(l,i){return l!=null&&this.seek(l,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(l){return arguments.length?(!!l!==this.reversed()&&this.timeScale(-this._rts||(l?-_t:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-_t,this},t.isActive=function(){var l=this.parent||this._dp,i=this._start,c;return!!(!l||this._ts&&this._initted&&l.isActive()&&(c=l.rawTime(!0))>=i&&c<this.endTime(!0)-_t)},t.eventCallback=function(l,i,c){var u=this.vars;return arguments.length>1?(i?(u[l]=i,c&&(u[l+"Params"]=c),l==="onUpdate"&&(this._onUpdate=i)):delete u[l],this):u[l]},t.then=function(l){var i=this,c=i._prom;return new Promise(function(u){var h=Qt(l)?l:MN,f=function(){var x=i.then;i.then=null,c&&c(),Qt(h)&&(h=h(i))&&(h.then||h===i)&&(i.then=x),u(h),i.then=x};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?f():i._prom=f})},t.kill=function(){Ad(this)},a})();Wa($d.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-_t,_prom:0,_ps:!1,_rts:1});var fa=(function(a){jN(t,a);function t(l,i){var c;return l===void 0&&(l={}),c=a.call(this,l)||this,c.labels={},c.smoothChildTiming=!!l.smoothChildTiming,c.autoRemoveChildren=!!l.autoRemoveChildren,c._sort=ga(l.sortChildren),Ht&&nl(l.parent||Ht,Rl(c),i),l.reversed&&c.reverse(),l.paused&&c.paused(!0),l.scrollTrigger&&DN(Rl(c),l.scrollTrigger),c}var n=t.prototype;return n.to=function(i,c,u){return zd(0,arguments,this),this},n.from=function(i,c,u){return zd(1,arguments,this),this},n.fromTo=function(i,c,u,h){return zd(2,arguments,this),this},n.set=function(i,c,u){return c.duration=0,c.parent=this,Md(c).repeatDelay||(c.repeat=0),c.immediateRender=!!c.immediateRender,new fs(i,c,xn(this,u),1),this},n.call=function(i,c,u){return nl(this,fs.delayedCall(0,i,c),u)},n.staggerTo=function(i,c,u,h,f,p,x){return u.duration=c,u.stagger=u.stagger||h,u.onComplete=p,u.onCompleteParams=x,u.parent=this,new fs(i,u,xn(this,f)),this},n.staggerFrom=function(i,c,u,h,f,p,x){return u.runBackwards=1,Md(u).immediateRender=ga(u.immediateRender),this.staggerTo(i,c,u,h,f,p,x)},n.staggerFromTo=function(i,c,u,h,f,p,x,b){return h.startAt=u,Md(h).immediateRender=ga(h.immediateRender),this.staggerTo(i,c,h,f,p,x,b)},n.render=function(i,c,u){var h=this._time,f=this._dirty?this.totalDuration():this._tDur,p=this._dur,x=i<=0?0:Ft(i),b=this._zTime<0!=i<0&&(this._initted||!p),v,w,j,N,A,S,C,T,L,O,R,k;if(this!==Ht&&x>f&&i>=0&&(x=f),x!==this._tTime||u||b){if(h!==this._time&&p&&(x+=this._time-h,i+=this._time-h),v=x,L=this._start,T=this._ts,S=!T,b&&(p||(h=this._zTime),(i||!c)&&(this._zTime=i)),this._repeat){if(R=this._yoyo,A=p+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(A*100+i,c,u);if(v=Ft(x%A),x===f?(N=this._repeat,v=p):(O=Ft(x/A),N=~~O,N&&N===O&&(v=p,N--),v>p&&(v=p)),O=tc(this._tTime,A),!h&&this._tTime&&O!==N&&this._tTime-O*A-this._dur<=0&&(O=N),R&&N&1&&(v=p-v,k=1),N!==O&&!this._lock){var E=R&&O&1,z=E===(R&&N&1);if(N<O&&(E=!E),h=E?0:x%p?p:x,this._lock=1,this.render(h||(k?0:Ft(N*A)),c,!p)._lock=0,this._tTime=x,!c&&this.parent&&Ua(this,"onRepeat"),this.vars.repeatRefresh&&!k&&(this.invalidate()._lock=1,O=N),h&&h!==this._time||S!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(p=this._dur,f=this._tDur,z&&(this._lock=2,h=E?p:-1e-4,this.render(h,!0),this.vars.repeatRefresh&&!k&&this.invalidate()),this._lock=0,!this._ts&&!S)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(C=bE(this,Ft(h),Ft(v)),C&&(x-=v-(v=C._start))),this._tTime=x,this._time=v,this._act=!!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,h=0),!h&&x&&p&&!c&&!O&&(Ua(this,"onStart"),this._tTime!==x))return this;if(v>=h&&i>=0)for(w=this._first;w;){if(j=w._next,(w._act||v>=w._start)&&w._ts&&C!==w){if(w.parent!==this)return this.render(i,c,u);if(w.render(w._ts>0?(v-w._start)*w._ts:(w._dirty?w.totalDuration():w._tDur)+(v-w._start)*w._ts,c,u),v!==this._time||!this._ts&&!S){C=0,j&&(x+=this._zTime=-_t);break}}w=j}else{w=this._last;for(var D=i<0?i:v;w;){if(j=w._prev,(w._act||D<=w._end)&&w._ts&&C!==w){if(w.parent!==this)return this.render(i,c,u);if(w.render(w._ts>0?(D-w._start)*w._ts:(w._dirty?w.totalDuration():w._tDur)+(D-w._start)*w._ts,c,u||Rs&&yb(w)),v!==this._time||!this._ts&&!S){C=0,j&&(x+=this._zTime=D?-_t:_t);break}}w=j}}if(C&&!c&&(this.pause(),C.render(v>=h?0:-_t)._zTime=v>=h?1:-1,this._ts))return this._start=L,T0(this),this.render(i,c,u);this._onUpdate&&!c&&Ua(this,"onUpdate",!0),(x===f&&this._tTime>=this.totalDuration()||!x&&h)&&(L===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!p)&&(x===f&&this._ts>0||!x&&this._ts<0)&&Dr(this,1),!c&&!(i<0&&!h)&&(x||h||!f)&&(Ua(this,x===f&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<f&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,c){var u=this;if(Hl(c)||(c=xn(this,c,i)),!(i instanceof $d)){if(Hs(i))return i.forEach(function(h){return u.add(h,c)}),this;if(Ns(i))return this.addLabel(i,c);if(Qt(i))i=fs.delayedCall(0,i);else return this}return this!==i?nl(this,i,c):this},n.getChildren=function(i,c,u,h){i===void 0&&(i=!0),c===void 0&&(c=!0),u===void 0&&(u=!0),h===void 0&&(h=-Nn);for(var f=[],p=this._first;p;)p._start>=h&&(p instanceof fs?c&&f.push(p):(u&&f.push(p),i&&f.push.apply(f,p.getChildren(!0,c,u)))),p=p._next;return f},n.getById=function(i){for(var c=this.getChildren(1,1,1),u=c.length;u--;)if(c[u].vars.id===i)return c[u]},n.remove=function(i){return Ns(i)?this.removeLabel(i):Qt(i)?this.killTweensOf(i):(i.parent===this&&E0(this,i),i===this._recent&&(this._recent=this._last),Ni(this))},n.totalTime=function(i,c){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ft(Ba.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,c),this._forcing=0,this):this._tTime},n.addLabel=function(i,c){return this.labels[i]=xn(this,c),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,c,u){var h=fs.delayedCall(0,c||Qd,u);return h.data="isPause",this._hasPause=1,nl(this,h,xn(this,i))},n.removePause=function(i){var c=this._first;for(i=xn(this,i);c;)c._start===i&&c.data==="isPause"&&Dr(c),c=c._next},n.killTweensOf=function(i,c,u){for(var h=this.getTweensOf(i,u),f=h.length;f--;)Nr!==h[f]&&h[f].kill(i,c);return this},n.getTweensOf=function(i,c){for(var u=[],h=_n(i),f=this._first,p=Hl(c),x;f;)f instanceof fs?uE(f._targets,h)&&(p?(!Nr||f._initted&&f._ts)&&f.globalTime(0)<=c&&f.globalTime(f.totalDuration())>c:!c||f.isActive())&&u.push(f):(x=f.getTweensOf(h,c)).length&&u.push.apply(u,x),f=f._next;return u},n.tweenTo=function(i,c){c=c||{};var u=this,h=xn(u,i),f=c,p=f.startAt,x=f.onStart,b=f.onStartParams,v=f.immediateRender,w,j=fs.to(u,Wa({ease:c.ease||"none",lazy:!1,immediateRender:!1,time:h,overwrite:"auto",duration:c.duration||Math.abs((h-(p&&"time"in p?p.time:u._time))/u.timeScale())||_t,onStart:function(){if(u.pause(),!w){var A=c.duration||Math.abs((h-(p&&"time"in p?p.time:u._time))/u.timeScale());j._dur!==A&&sc(j,A,0,1).render(j._time,!0,!0),w=1}x&&x.apply(j,b||[])}},c));return v?j.render(0):j},n.tweenFromTo=function(i,c,u){return this.tweenTo(c,Wa({startAt:{time:xn(this,i)}},u))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Uj(this,xn(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Uj(this,xn(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+_t)},n.shiftChildren=function(i,c,u){u===void 0&&(u=0);var h=this._first,f=this.labels,p;for(i=Ft(i);h;)h._start>=u&&(h._start+=i,h._end+=i),h=h._next;if(c)for(p in f)f[p]>=u&&(f[p]+=i);return Ni(this)},n.invalidate=function(i){var c=this._first;for(this._lock=0;c;)c.invalidate(i),c=c._next;return a.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var c=this._first,u;c;)u=c._next,this.remove(c),c=u;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ni(this)},n.totalDuration=function(i){var c=0,u=this,h=u._last,f=Nn,p,x,b;if(arguments.length)return u.timeScale((u._repeat<0?u.duration():u.totalDuration())/(u.reversed()?-i:i));if(u._dirty){for(b=u.parent;h;)p=h._prev,h._dirty&&h.totalDuration(),x=h._start,x>f&&u._sort&&h._ts&&!u._lock?(u._lock=1,nl(u,h,x-h._delay,1)._lock=0):f=x,x<0&&h._ts&&(c-=x,(!b&&!u._dp||b&&b.smoothChildTiming)&&(u._start+=Ft(x/u._ts),u._time-=x,u._tTime-=x),u.shiftChildren(-x,!1,-1/0),f=0),h._end>c&&h._ts&&(c=h._end),h=p;sc(u,u===Ht&&u._time>c?u._time:c,1,1),u._dirty=0}return u._tDur},t.updateRoot=function(i){if(Ht._ts&&(RN(Ht,n0(i,Ht)),EN=Ba.frame),Ba.frame>=Lj){Lj+=Va.autoSleep||120;var c=Ht._first;if((!c||!c._ts)&&Va.autoSleep&&Ba._listeners.length<2){for(;c&&!c._ts;)c=c._next;c||Ba.sleep()}}},t})($d);Wa(fa.prototype,{_lock:0,_hasPause:0,_forcing:0});var LE=function(t,n,l,i,c,u,h){var f=new ya(this._pt,t,n,0,1,a5,null,c),p=0,x=0,b,v,w,j,N,A,S,C;for(f.b=l,f.e=i,l+="",i+="",(S=~i.indexOf("random("))&&(i=Zd(i)),u&&(C=[l,i],u(C,t,n),l=C[0],i=C[1]),v=l.match(ox)||[];b=ox.exec(i);)j=b[0],N=i.substring(p,b.index),w?w=(w+1)%5:N.substr(-5)==="rgba("&&(w=1),j!==v[x++]&&(A=parseFloat(v[x-1])||0,f._pt={_next:f._pt,p:N||x===1?N:",",s:A,c:j.charAt(1)==="="?Go(A,j)-A:parseFloat(j)-A,m:w&&w<4?Math.round:0},p=ox.lastIndex);return f.c=p<i.length?i.substring(p,i.length):"",f.fp=h,(_N.test(i)||S)&&(f.e=0),this._pt=f,f},vb=function(t,n,l,i,c,u,h,f,p,x){Qt(i)&&(i=i(c||0,t,u));var b=t[n],v=l!=="get"?l:Qt(b)?p?t[n.indexOf("set")||!Qt(t["get"+n.substr(3)])?n:"get"+n.substr(3)](p):t[n]():b,w=Qt(b)?p?IE:t5:Ab,j;if(Ns(i)&&(~i.indexOf("random(")&&(i=Zd(i)),i.charAt(1)==="="&&(j=Go(v,i)+(Vs(v)||0),(j||j===0)&&(i=j))),!x||v!==i||vg)return!isNaN(v*i)&&i!==""?(j=new ya(this._pt,t,n,+v||0,i-(v||0),typeof b=="boolean"?FE:s5,0,w),p&&(j.fp=p),h&&j.modifier(h,this,t),this._pt=j):(!b&&!(n in t)&&pb(n,i),LE.call(this,t,n,v,i,w,f||Va.stringFilter,p))},DE=function(t,n,l,i,c){if(Qt(t)&&(t=Ld(t,c,n,l,i)),!cl(t)||t.style&&t.nodeType||Hs(t)||wN(t))return Ns(t)?Ld(t,c,n,l,i):t;var u={},h;for(h in t)u[h]=Ld(t[h],c,n,l,i);return u},JN=function(t,n,l,i,c,u){var h,f,p,x;if(La[t]&&(h=new La[t]).init(c,h.rawVars?n[t]:DE(n[t],i,c,u,l),l,i,u)!==!1&&(l._pt=f=new ya(l._pt,c,t,0,1,h.render,h,0,h.priority),l!==Lo))for(p=l._ptLookup[l._targets.indexOf(c)],x=h._props.length;x--;)p[h._props[x]]=f;return h},Nr,vg,jb=function a(t,n,l){var i=t.vars,c=i.ease,u=i.startAt,h=i.immediateRender,f=i.lazy,p=i.onUpdate,x=i.runBackwards,b=i.yoyoEase,v=i.keyframes,w=i.autoRevert,j=t._dur,N=t._startAt,A=t._targets,S=t.parent,C=S&&S.data==="nested"?S.vars.targets:A,T=t._overwrite==="auto"&&!ub,L=t.timeline,O=i.easeReverse||b,R,k,E,z,D,q,V,Z,ae,ee,U,B,X;if(L&&(!v||!c)&&(c="none"),t._ease=_i(c,Kd.ease),t._rEase=O&&(_i(O)||t._ease),t._from=!L&&!!i.runBackwards,t._from&&(t.ratio=1),!L||v&&!i.stagger){if(Z=A[0]?wi(A[0]).harness:0,B=Z&&i[Z.prop],R=a0(i,xb),N&&(N._zTime<0&&N.progress(1),n<0&&x&&h&&!w?N.render(-1,!0):N.revert(x&&j?Df:cE),N._lazy=0),u){if(Dr(t._startAt=fs.set(A,Wa({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:!N&&ga(f),startAt:null,delay:0,onUpdate:p&&function(){return Ua(t,"onUpdate")},stagger:0},u))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Rs||!h&&!w)&&t._startAt.revert(Df),h&&j&&n<=0&&l<=0){n&&(t._zTime=n);return}}else if(x&&j&&!N){if(n&&(h=!1),E=Wa({overwrite:!1,data:"isFromStart",lazy:h&&!N&&ga(f),immediateRender:h,stagger:0,parent:S},R),B&&(E[Z.prop]=B),Dr(t._startAt=fs.set(A,E)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Rs?t._startAt.revert(Df):t._startAt.render(-1,!0)),t._zTime=n,!h)a(t._startAt,_t,_t);else if(!n)return}for(t._pt=t._ptCache=0,f=j&&ga(f)||f&&!j,k=0;k<A.length;k++){if(D=A[k],V=D._gsap||bb(A)[k]._gsap,t._ptLookup[k]=ee={},mg[V.id]&&Rr.length&&s0(),U=C===A?k:C.indexOf(D),Z&&(ae=new Z).init(D,B||R,t,U,C)!==!1&&(t._pt=z=new ya(t._pt,D,ae.name,0,1,ae.render,ae,0,ae.priority),ae._props.forEach(function(re){ee[re]=z}),ae.priority&&(q=1)),!Z||B)for(E in R)La[E]&&(ae=JN(E,R,t,U,D,C))?ae.priority&&(q=1):ee[E]=z=vb.call(t,D,E,"get",R[E],U,C,0,i.stringFilter);t._op&&t._op[k]&&t.kill(D,t._op[k]),T&&t._pt&&(Nr=t,Ht.killTweensOf(D,ee,t.globalTime(n)),X=!t.parent,Nr=0),t._pt&&f&&(mg[V.id]=1)}q&&n5(t),t._onInit&&t._onInit(t)}t._onUpdate=p,t._initted=(!t._op||t._pt)&&!X,v&&n<=0&&L.render(Nn,!0,!0)},BE=function(t,n,l,i,c,u,h,f){var p=(t._pt&&t._ptCache||(t._ptCache={}))[n],x,b,v,w;if(!p)for(p=t._ptCache[n]=[],v=t._ptLookup,w=t._targets.length;w--;){if(x=v[w][n],x&&x.d&&x.d._pt)for(x=x.d._pt;x&&x.p!==n&&x.fp!==n;)x=x._next;if(!x)return vg=1,t.vars[n]="+=0",jb(t,h),vg=0,f?Xd(n+" not eligible for reset. Try splitting into individual properties"):1;p.push(x)}for(w=p.length;w--;)b=p[w],x=b._pt||b,x.s=(i||i===0)&&!c?i:x.s+(i||0)+u*x.c,x.c=l-x.s,b.e&&(b.e=ss(l)+Vs(b.e)),b.b&&(b.b=x.s+Vs(b.b))},PE=function(t,n){var l=t[0]?wi(t[0]).harness:0,i=l&&l.aliases,c,u,h,f;if(!i)return n;c=ec({},n);for(u in i)if(u in c)for(f=i[u].split(","),h=f.length;h--;)c[f[h]]=c[u];return c},UE=function(t,n,l,i){var c=n.ease||i||"power1.inOut",u,h;if(Hs(n))h=l[t]||(l[t]=[]),n.forEach(function(f,p){return h.push({t:p/(n.length-1)*100,v:f,e:c})});else for(u in n)h=l[u]||(l[u]=[]),u==="ease"||h.push({t:parseFloat(t),v:n[u],e:c})},Ld=function(t,n,l,i,c){return Qt(t)?t.call(n,l,i,c):Ns(t)&&~t.indexOf("random(")?Zd(t):t},$N=gb+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",e5={};ba($N+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return e5[a]=1});var fs=(function(a){jN(t,a);function t(l,i,c,u){var h;typeof i=="number"&&(c.duration=i,i=c,c=null),h=a.call(this,u?i:Md(i))||this;var f=h.vars,p=f.duration,x=f.delay,b=f.immediateRender,v=f.stagger,w=f.overwrite,j=f.keyframes,N=f.defaults,A=f.scrollTrigger,S=i.parent||Ht,C=(Hs(l)||wN(l)?Hl(l[0]):"length"in i)?[l]:_n(l),T,L,O,R,k,E,z,D;if(h._targets=C.length?bb(C):Xd("GSAP target "+l+" not found. https://gsap.com",!Va.nullTargetWarn)||[],h._ptLookup=[],h._overwrite=w,j||v||Ph(p)||Ph(x)){i=h.vars;var q=i.easeReverse||i.yoyoEase;if(T=h.timeline=new fa({data:"nested",defaults:N||{},targets:S&&S.data==="nested"?S.vars.targets:C}),T.kill(),T.parent=T._dp=Rl(h),T._start=0,v||Ph(p)||Ph(x)){if(R=C.length,z=v&&IN(v),cl(v))for(k in v)~$N.indexOf(k)&&(D||(D={}),D[k]=v[k]);for(L=0;L<R;L++)O=a0(i,e5),O.stagger=0,q&&(O.easeReverse=q),D&&ec(O,D),E=C[L],O.duration=+Ld(p,Rl(h),L,E,C),O.delay=(+Ld(x,Rl(h),L,E,C)||0)-h._delay,!v&&R===1&&O.delay&&(h._delay=x=O.delay,h._start+=x,O.delay=0),T.to(E,O,z?z(L,E,C):0),T._ease=rt.none;T.duration()?p=x=0:h.timeline=0}else if(j){Md(Wa(T.vars.defaults,{ease:"none"})),T._ease=_i(j.ease||i.ease||"none");var V=0,Z,ae,ee;if(Hs(j))j.forEach(function(U){return T.to(C,U,">")}),T.duration();else{O={};for(k in j)k==="ease"||k==="easeEach"||UE(k,j[k],O,j.easeEach);for(k in O)for(Z=O[k].sort(function(U,B){return U.t-B.t}),V=0,L=0;L<Z.length;L++)ae=Z[L],ee={ease:ae.e,duration:(ae.t-(L?Z[L-1].t:0))/100*p},ee[k]=ae.v,T.to(C,ee,V),V+=ee.duration;T.duration()<p&&T.to({},{duration:p-T.duration()})}}p||h.duration(p=T.duration())}else h.timeline=0;return w===!0&&!ub&&(Nr=Rl(h),Ht.killTweensOf(C),Nr=0),nl(S,Rl(h),c),i.reversed&&h.reverse(),i.paused&&h.paused(!0),(b||!p&&!j&&h._start===Ft(S._time)&&ga(b)&&pE(Rl(h))&&S.data!=="nested")&&(h._tTime=-_t,h.render(Math.max(0,-x)||0)),A&&DN(Rl(h),A),h}var n=t.prototype;return n.render=function(i,c,u){var h=this._time,f=this._tDur,p=this._dur,x=i<0,b=i>f-_t&&!x?f:i<_t?0:i,v,w,j,N,A,S,C,T;if(!p)gE(this,i,c,u);else if(b!==this._tTime||!i||u||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==x||this._lazy){if(v=b,T=this.timeline,this._repeat){if(N=p+this._rDelay,this._repeat<-1&&x)return this.totalTime(N*100+i,c,u);if(v=Ft(b%N),b===f?(j=this._repeat,v=p):(A=Ft(b/N),j=~~A,j&&j===A?(v=p,j--):v>p&&(v=p)),S=this._yoyo&&j&1,S&&(v=p-v),A=tc(this._tTime,N),v===h&&!u&&this._initted&&j===A)return this._tTime=b,this;j!==A&&this.vars.repeatRefresh&&!S&&!this._lock&&v!==N&&this._initted&&(this._lock=u=1,this.render(Ft(N*j),!0).invalidate()._lock=0)}if(!this._initted){if(BN(this,x?i:v,u,c,b))return this._tTime=0,this;if(h!==this._time&&!(u&&this.vars.repeatRefresh&&j!==A))return this;if(p!==this._dur)return this.render(i,c,u)}if(this._rEase){var L=v<h;if(L!==this._inv){var O=L?h:p-h;this._inv=L,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=O?(L?-1:1)/O:0,this._invScale=L?-this.ratio:1-this.ratio,this._invEase=L?this._rEase:this._ease}this.ratio=C=this._invRatio+this._invScale*this._invEase((v-this._invTime)*this._invRecip)}else this.ratio=C=this._ease(v/p);if(this._from&&(this.ratio=C=1-C),this._tTime=b,this._time=v,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&b&&!c&&!A&&(Ua(this,"onStart"),this._tTime!==b))return this;for(w=this._pt;w;)w.r(C,w.d),w=w._next;T&&T.render(i<0?i:T._dur*T._ease(v/this._dur),c,u)||this._startAt&&(this._zTime=i),this._onUpdate&&!c&&(x&&pg(this,i,c,u),Ua(this,"onUpdate")),this._repeat&&j!==A&&this.vars.onRepeat&&!c&&this.parent&&Ua(this,"onRepeat"),(b===this._tDur||!b)&&this._tTime===b&&(x&&!this._onUpdate&&pg(this,i,!0,!0),(i||!p)&&(b===this._tDur&&this._ts>0||!b&&this._ts<0)&&Dr(this,1),!c&&!(x&&!h)&&(b||h||S)&&(Ua(this,b===f?"onComplete":"onReverseComplete",!0),this._prom&&!(b<f&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},n.resetTo=function(i,c,u,h,f){Jd||Ba.wake(),this._ts||this.play();
vendor: 14,207 bytes, line 17
17var p=Math.min(this._dur,(this._dp._time-this._start)*this._ts),x;return this._initted||jb(this,p),x=this._ease(p/this._dur),BE(this,i,c,u,h,x,p,f)?this.resetTo(i,c,u,h,1):(R0(this,0),this.parent||zN(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,c){if(c===void 0&&(c="all"),!i&&(!c||c==="all"))return this._lazy=this._pt=0,this.parent?Ad(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Rs),this;if(this.timeline){var u=this.timeline.totalDuration();return this.timeline.killTweensOf(i,c,Nr&&Nr.vars.overwrite!==!0)._first||Ad(this),this.parent&&u!==this.timeline.totalDuration()&&sc(this,this._dur*this.timeline._tDur/u,0,1),this}var h=this._targets,f=i?_n(i):h,p=this._ptLookup,x=this._pt,b,v,w,j,N,A,S;if((!c||c==="all")&&fE(h,f))return c==="all"&&(this._pt=0),Ad(this);for(b=this._op=this._op||[],c!=="all"&&(Ns(c)&&(N={},ba(c,function(C){return N[C]=1}),c=N),c=PE(h,c)),S=h.length;S--;)if(~f.indexOf(h[S])){v=p[S],c==="all"?(b[S]=c,j=v,w={}):(w=b[S]=b[S]||{},j=c);for(N in j)A=v&&v[N],A&&((!("kill"in A.d)||A.d.kill(N)===!0)&&E0(this,A,"_pt"),delete v[N]),w!=="all"&&(w[N]=1)}return this._initted&&!this._pt&&x&&Ad(this),this},t.to=function(i,c){return new t(i,c,arguments[2])},t.from=function(i,c){return zd(1,arguments)},t.delayedCall=function(i,c,u,h){return new t(c,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:c,onReverseComplete:c,onCompleteParams:u,onReverseCompleteParams:u,callbackScope:h})},t.fromTo=function(i,c,u){return zd(2,arguments)},t.set=function(i,c){return c.duration=0,c.repeatDelay||(c.repeat=0),new t(i,c)},t.killTweensOf=function(i,c,u){return Ht.killTweensOf(i,c,u)},t})($d);Wa(fs.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ba("staggerTo,staggerFrom,staggerFromTo",function(a){fs[a]=function(){var t=new fa,n=gg.call(arguments,0);return n.splice(a==="staggerFromTo"?5:4,0,0),t[a].apply(t,n)}});var Ab=function(t,n,l){return t[n]=l},t5=function(t,n,l){return t[n](l)},IE=function(t,n,l,i){return t[n](i.fp,l)},VE=function(t,n,l){return t.setAttribute(n,l)},wb=function(t,n){return Qt(t[n])?t5:hb(t[n])&&t.setAttribute?VE:Ab},s5=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},FE=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},a5=function(t,n){var l=n._pt,i="";if(!t&&n.b)i=n.b;else if(t===1&&n.e)i=n.e;else{for(;l;)i=l.p+(l.m?l.m(l.s+l.c*t):Math.round((l.s+l.c*t)*1e4)/1e4)+i,l=l._next;i+=n.c}n.set(n.t,n.p,i,n)},Nb=function(t,n){for(var l=n._pt;l;)l.r(t,l.d),l=l._next},HE=function(t,n,l,i){for(var c=this._pt,u;c;)u=c._next,c.p===i&&c.modifier(t,n,l),c=u},qE=function(t){for(var n=this._pt,l,i;n;)i=n._next,n.p===t&&!n.op||n.op===t?E0(this,n,"_pt"):n.dep||(l=1),n=i;return!l},YE=function(t,n,l,i){i.mSet(t,n,i.m.call(i.tween,l,i.mt),i)},n5=function(t){for(var n=t._pt,l,i,c,u;n;){for(l=n._next,i=c;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:u)?n._prev._next=n:c=n,(n._next=i)?i._prev=n:u=n,n=l}t._pt=c},ya=(function(){function a(n,l,i,c,u,h,f,p,x){this.t=l,this.s=c,this.c=u,this.p=i,this.r=h||s5,this.d=f||this,this.set=p||Ab,this.pr=x||0,this._next=n,n&&(n._prev=this)}var t=a.prototype;return t.modifier=function(l,i,c){this.mSet=this.mSet||this.set,this.set=YE,this.m=l,this.mt=c,this.tween=i},a})();ba(gb+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(a){return xb[a]=1});Ga.TweenMax=Ga.TweenLite=fs;Ga.TimelineLite=Ga.TimelineMax=fa;Ht=new fa({sortChildren:!1,defaults:Kd,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Va.stringFilter=XN;var Si=[],Pf={},GE=[],Vj=0,WE=0,fx=function(t){return(Pf[t]||GE).map(function(n){return n()})},jg=function(){var t=Date.now(),n=[];t-Vj>2&&(fx("matchMediaInit"),Si.forEach(function(l){var i=l.queries,c=l.conditions,u,h,f,p;for(h in i)u=sl.matchMedia(i[h]).matches,u&&(f=1),u!==c[h]&&(c[h]=u,p=1);p&&(l.revert(),f&&n.push(l))}),fx("matchMediaRevert"),n.forEach(function(l){return l.onMatch(l,function(i){return l.add(null,i)})}),Vj=t,fx("matchMedia"))},l5=(function(){function a(n,l){this.selector=l&&bg(l),this.data=[],this._r=[],this.isReverted=!1,this.id=WE++,n&&this.add(n)}var t=a.prototype;return t.add=function(l,i,c){Qt(l)&&(c=i,i=l,l=Qt);var u=this,h=function(){var p=Lt,x=u.selector,b;return p&&p!==u&&p.data.push(u),c&&(u.selector=bg(c)),Lt=u,b=i.apply(u,arguments),Qt(b)&&u._r.push(b),Lt=p,u.selector=x,u.isReverted=!1,b};return u.last=h,l===Qt?h(u,function(f){return u.add(null,f)}):l?u[l]=h:h},t.ignore=function(l){var i=Lt;Lt=null,l(this),Lt=i},t.getTweens=function(){var l=[];return this.data.forEach(function(i){return i instanceof a?l.push.apply(l,i.getTweens()):i instanceof fs&&!(i.parent&&i.parent.data==="nested")&&l.push(i)}),l},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(l,i){var c=this;if(l?(function(){for(var h=c.getTweens(),f=c.data.length,p;f--;)p=c.data[f],p.data==="isFlip"&&(p.revert(),p.getChildren(!0,!0,!1).forEach(function(x){return h.splice(h.indexOf(x),1)}));for(h.map(function(x){return{g:x._dur||x._delay||x._sat&&!x._sat.vars.immediateRender?x.globalTime(0):-1/0,t:x}}).sort(function(x,b){return b.g-x.g||-1/0}).forEach(function(x){return x.t.revert(l)}),f=c.data.length;f--;)p=c.data[f],p instanceof fa?p.data!=="nested"&&(p.scrollTrigger&&p.scrollTrigger.revert(),p.kill()):!(p instanceof fs)&&p.revert&&p.revert(l);c._r.forEach(function(x){return x(l,c)}),c.isReverted=!0})():this.data.forEach(function(h){return h.kill&&h.kill()}),this.clear(),i)for(var u=Si.length;u--;)Si[u].id===this.id&&Si.splice(u,1)},t.revert=function(l){this.kill(l||{})},a})(),KE=(function(){function a(n){this.contexts=[],this.scope=n,Lt&&Lt.data.push(this)}var t=a.prototype;return t.add=function(l,i,c){cl(l)||(l={matches:l});var u=new l5(0,c||this.scope),h=u.conditions={},f,p,x;Lt&&!u.selector&&(u.selector=Lt.selector),this.contexts.push(u),i=u.add("onMatch",i),u.queries=l;for(p in l)p==="all"?x=1:(f=sl.matchMedia(l[p]),f&&(Si.indexOf(u)<0&&Si.push(u),(h[p]=f.matches)&&(x=1),f.addListener?f.addListener(jg):f.addEventListener("change",jg)));return x&&i(u,function(b){return u.add(null,b)}),this},t.revert=function(l){this.kill(l||{})},t.kill=function(l){this.contexts.forEach(function(i){return i.kill(l,!0)})},a})(),l0={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];n.forEach(function(i){return GN(i)})},timeline:function(t){return new fa(t)},getTweensOf:function(t,n){return Ht.getTweensOf(t,n)},getProperty:function(t,n,l,i){Ns(t)&&(t=_n(t)[0]);var c=wi(t||{}).get,u=l?MN:ON;return l==="native"&&(l=""),t&&(n?u((La[n]&&La[n].get||c)(t,n,l,i)):function(h,f,p){return u((La[h]&&La[h].get||c)(t,h,f,p))})},quickSetter:function(t,n,l){if(t=_n(t),t.length>1){var i=t.map(function(x){return ja.quickSetter(x,n,l)}),c=i.length;return function(x){for(var b=c;b--;)i[b](x)}}t=t[0]||{};var u=La[n],h=wi(t),f=h.harness&&(h.harness.aliases||{})[n]||n,p=u?function(x){var b=new u;Lo._pt=0,b.init(t,l?x+l:x,Lo,0,[t]),b.render(1,b),Lo._pt&&Nb(1,Lo)}:h.set(t,f);return u?p:function(x){return p(t,f,l?x+l:x,h,1)}},quickTo:function(t,n,l){var i,c=ja.to(t,Wa((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),l||{})),u=function(f,p,x){return c.resetTo(n,f,p,x)};return u.tween=c,u},isTweening:function(t){return Ht.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=_i(t.ease,Kd.ease)),Dj(Kd,t||{})},config:function(t){return Dj(Va,t||{})},registerEffect:function(t){var n=t.name,l=t.effect,i=t.plugins,c=t.defaults,u=t.extendTimeline;(i||"").split(",").forEach(function(h){return h&&!La[h]&&!Ga[h]&&Xd(n+" effect requires "+h+" plugin.")}),cx[n]=function(h,f,p){return l(_n(h),Wa(f||{},c),p)},u&&(fa.prototype[n]=function(h,f,p){return this.add(cx[n](h,cl(f)?f:(p=f)&&{},this),p)})},registerEase:function(t,n){rt[t]=_i(n)},parseEase:function(t,n){return arguments.length?_i(t,n):rt},getById:function(t){return Ht.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var l=new fa(t),i,c;for(l.smoothChildTiming=ga(t.smoothChildTiming),Ht.remove(l),l._dp=0,l._time=l._tTime=Ht._time,i=Ht._first;i;)c=i._next,(n||!(!i._dur&&i instanceof fs&&i.vars.onComplete===i._targets[0]))&&nl(l,i,i._start-i._delay),i=c;return nl(Ht,l,0),l},context:function(t,n){return t?new l5(t,n):Lt},matchMedia:function(t){return new KE(t)},matchMediaRefresh:function(){return Si.forEach(function(t){var n=t.conditions,l,i;for(i in n)n[i]&&(n[i]=!1,l=1);l&&t.revert()})||jg()},addEventListener:function(t,n){var l=Pf[t]||(Pf[t]=[]);~l.indexOf(n)||l.push(n)},removeEventListener:function(t,n){var l=Pf[t],i=l&&l.indexOf(n);i>=0&&l.splice(i,1)},utils:{wrap:_E,wrapYoyo:SE,distribute:IN,random:FN,snap:VN,normalize:NE,getUnit:Vs,clamp:vE,splitColor:WN,toArray:_n,selector:bg,mapRange:qN,pipe:AE,unitize:wE,interpolate:kE,shuffle:UN},install:kN,effects:cx,ticker:Ba,updateRoot:fa.updateRoot,plugins:La,globalTimeline:Ht,core:{PropTween:ya,globals:CN,Tween:fs,Timeline:fa,Animation:$d,getCache:wi,_removeLinkedListItem:E0,reverting:function(){return Rs},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return ub=t}}};ba("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return l0[a]=fs[a]});Ba.add(fa.updateRoot);Lo=l0.to({},{duration:0});var XE=function(t,n){for(var l=t._pt;l&&l.p!==n&&l.op!==n&&l.fp!==n;)l=l._next;return l},QE=function(t,n){var l=t._targets,i,c,u;for(i in n)for(c=l.length;c--;)u=t._ptLookup[c][i],u&&(u=u.d)&&(u._pt&&(u=XE(u,i)),u&&u.modifier&&u.modifier(n[i],t,l[c],i))},mx=function(t,n){return{name:t,headless:1,rawVars:1,init:function(i,c,u){u._onInit=function(h){var f,p;if(Ns(c)&&(f={},ba(c,function(x){return f[x]=1}),c=f),n){f={};for(p in c)f[p]=n(c[p]);c=f}QE(h,c)}}}},ja=l0.registerPlugin({name:"attr",init:function(t,n,l,i,c){var u,h,f;this.tween=l;for(u in n)f=t.getAttribute(u)||"",h=this.add(t,"setAttribute",(f||0)+"",n[u],i,c,0,0,u),h.op=u,h.b=f,this._props.push(u)},render:function(t,n){for(var l=n._pt;l;)Rs?l.set(l.t,l.p,l.b,l):l.r(t,l.d),l=l._next}},{name:"endArray",headless:1,init:function(t,n){for(var l=n.length;l--;)this.add(t,l,t[l]||0,n[l],0,0,0,0,0,1)}},mx("roundProps",yg),mx("modifiers"),mx("snap",VN))||l0;fs.version=fa.version=ja.version="3.15.0";SN=1;fb()&&ac();rt.Power0;rt.Power1;rt.Power2;rt.Power3;rt.Power4;rt.Linear;rt.Quad;rt.Cubic;rt.Quart;rt.Quint;rt.Strong;rt.Elastic;rt.Back;rt.SteppedEase;rt.Bounce;rt.Sine;rt.Expo;rt.Circ;var Fj,_r,Wo,_b,yi,Hj,Sb,ZE=function(){return typeof window<"u"},ql={},pi=180/Math.PI,Ko=Math.PI/180,No=Math.atan2,qj=1e8,kb=/([A-Z])/g,JE=/(left|right|width|margin|padding|x)/i,$E=/[\s,\(]\S/,ll={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ag=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},e8=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},t8=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},s8=function(t,n){return n.set(n.t,n.p,t===1?n.e:t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},a8=function(t,n){var l=n.s+n.c*t;n.set(n.t,n.p,~~(l+(l<0?-.5:.5))+n.u,n)},r5=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},i5=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},n8=function(t,n,l){return t.style[n]=l},l8=function(t,n,l){return t.style.setProperty(n,l)},r8=function(t,n,l){return t._gsap[n]=l},i8=function(t,n,l){return t._gsap.scaleX=t._gsap.scaleY=l},o8=function(t,n,l,i,c){var u=t._gsap;u.scaleX=u.scaleY=l,u.renderTransform(c,u)},c8=function(t,n,l,i,c){var u=t._gsap;u[n]=l,u.renderTransform(c,u)},qt="transform",va=qt+"Origin",d8=function a(t,n){var l=this,i=this.target,c=i.style,u=i._gsap;if(t in ql&&c){if(this.tfm=this.tfm||{},t!=="transform")t=ll[t]||t,~t.indexOf(",")?t.split(",").forEach(function(h){return l.tfm[h]=Ol(i,h)}):this.tfm[t]=u.x?u[t]:Ol(i,t),t===va&&(this.tfm.zOrigin=u.zOrigin);else return ll.transform.split(",").forEach(function(h){return a.call(l,h,n)});if(this.props.indexOf(qt)>=0)return;u.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(va,n,"")),t=qt}(c||n)&&this.props.push(t,n,c[t])},o5=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},u8=function(){var t=this.props,n=this.target,l=n.style,i=n._gsap,c,u;for(c=0;c<t.length;c+=3)t[c+1]?t[c+1]===2?n[t[c]](t[c+2]):n[t[c]]=t[c+2]:t[c+2]?l[t[c]]=t[c+2]:l.removeProperty(t[c].substr(0,2)==="--"?t[c]:t[c].replace(kb,"-$1").toLowerCase());if(this.tfm){for(u in this.tfm)i[u]=this.tfm[u];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),c=Sb(),(!c||!c.isStart)&&!l[qt]&&(o5(l),i.zOrigin&&l[va]&&(l[va]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},c5=function(t,n){var l={target:t,props:[],revert:u8,save:d8};return t._gsap||ja.core.getCache(t),n&&t.style&&t.nodeType&&n.split(",").forEach(function(i){return l.save(i)}),l},d5,wg=function(t,n){var l=_r.createElementNS?_r.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):_r.createElement(t);return l&&l.style?l:_r.createElement(t)},Ia=function a(t,n,l){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(kb,"-$1").toLowerCase())||i.getPropertyValue(n)||!l&&a(t,nc(n)||n,1)||""},Yj="O,Moz,ms,Ms,Webkit".split(","),nc=function(t,n,l){var i=n||yi,c=i.style,u=5;if(t in c&&!l)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);u--&&!(Yj[u]+t in c););return u<0?null:(u===3?"ms":u>=0?Yj[u]:"")+t},Ng=function(){ZE()&&window.document&&(Fj=window,_r=Fj.document,Wo=_r.documentElement,yi=wg("div")||{style:{}},wg("div"),qt=nc(qt),va=qt+"Origin",yi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",d5=!!nc("perspective"),Sb=ja.core.reverting,_b=1)},Gj=function(t){var n=t.ownerSVGElement,l=wg("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),c;i.style.display="block",l.appendChild(i),Wo.appendChild(l);try{c=i.getBBox()}catch{}return l.removeChild(i),Wo.removeChild(l),c},Wj=function(t,n){for(var l=n.length;l--;)if(t.hasAttribute(n[l]))return t.getAttribute(n[l])},u5=function(t){var n,l;
vendor: 1,444 bytes, line 17
17try{n=t.getBBox()}catch{n=Gj(t),l=1}return n&&(n.width||n.height)||l||(n=Gj(t)),n&&!n.width&&!n.x&&!n.y?{x:+Wj(t,["x","cx","x1"])||0,y:+Wj(t,["y","cy","y1"])||0,width:0,height:0}:n},h5=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&u5(t))},Br=function(t,n){if(n){var l=t.style,i;n in ql&&n!==va&&(n=qt),l.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),l.removeProperty(i==="--"?n:n.replace(kb,"-$1").toLowerCase())):l.removeAttribute(n)}},Sr=function(t,n,l,i,c,u){var h=new ya(t._pt,n,l,0,1,u?i5:r5);return t._pt=h,h.b=i,h.e=c,t._props.push(l),h},Kj={deg:1,rad:1,turn:1},h8={grid:1,flex:1},Pr=function a(t,n,l,i){var c=parseFloat(l)||0,u=(l+"").trim().substr((c+"").length)||"px",h=yi.style,f=JE.test(n),p=t.tagName.toLowerCase()==="svg",x=(p?"client":"offset")+(f?"Width":"Height"),b=100,v=i==="px",w=i==="%",j,N,A,S;if(i===u||!c||Kj[i]||Kj[u])return c;if(u!=="px"&&!v&&(c=a(t,n,l,"px")),S=t.getCTM&&h5(t),(w||u==="%")&&(ql[n]||~n.indexOf("adius")))return j=S?t.getBBox()[f?"width":"height"]:t[x],ss(w?c/j*b:c/100*j);if(h[f?"width":"height"]=b+(v?u:i),N=i!=="rem"&&~n.indexOf("adius")||i==="em"&&t.appendChild&&!p?t:t.parentNode,S&&(N=(t.ownerSVGElement||{}).parentNode),(!N||N===_r||!N.appendChild)&&(N=_r.body),A=N._gsap,A&&w&&A.width&&f&&A.time===Ba.time&&!A.uncache)return ss(c/A.width*b);if(w&&(n==="height"||n==="width")){var C=t.style[n];t.style[n]=b+i,j=t[x],C?t.style[n]=C:Br(t,n)}
vendor: 4,767 bytes, line 17
17else(w||u==="%")&&!h8[Ia(N,"display")]&&(h.position=Ia(t,"position")),N===t&&(h.position="static"),N.appendChild(yi),j=yi[x],N.removeChild(yi),h.position="absolute";return f&&w&&(A=wi(N),A.time=Ba.time,A.width=N[x]),ss(v?j*c/b:j&&c?b/j*c:0)},Ol=function(t,n,l,i){var c;return _b||Ng(),n in ll&&n!=="transform"&&(n=ll[n],~n.indexOf(",")&&(n=n.split(",")[0])),ql[n]&&n!=="transform"?(c=tu(t,i),c=n!=="transformOrigin"?c[n]:c.svg?c.origin:i0(Ia(t,va))+" "+c.zOrigin+"px"):(c=t.style[n],(!c||c==="auto"||i||~(c+"").indexOf("calc("))&&(c=r0[n]&&r0[n](t,n,l)||Ia(t,n)||TN(t,n)||(n==="opacity"?1:0))),l&&!~(c+"").trim().indexOf(" ")?Pr(t,n,c,l)+l:c},f8=function(t,n,l,i){if(!l||l==="none"){var c=nc(n,t,1),u=c&&Ia(t,c,1);u&&u!==l?(n=c,l=u):n==="borderColor"&&(l=Ia(t,"borderTopColor"))}var h=new ya(this._pt,t.style,n,0,1,a5),f=0,p=0,x,b,v,w,j,N,A,S,C,T,L,O;if(h.b=l,h.e=i,l+="",i+="",i.substring(0,6)==="var(--"&&(i=Ia(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(N=t.style[n],t.style[n]=i,i=Ia(t,n)||i,N?t.style[n]=N:Br(t,n)),x=[l,i],XN(x),l=x[0],i=x[1],v=l.match(zo)||[],O=i.match(zo)||[],O.length){for(;b=zo.exec(i);)A=b[0],C=i.substring(f,b.index),j?j=(j+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(j=1),A!==(N=v[p++]||"")&&(w=parseFloat(N)||0,L=N.substr((w+"").length),A.charAt(1)==="="&&(A=Go(w,A)+L),S=parseFloat(A),T=A.substr((S+"").length),f=zo.lastIndex-T.length,T||(T=T||Va.units[n]||L,f===i.length&&(i+=T,h.e+=T)),L!==T&&(w=Pr(t,n,N,T)||0),h._pt={_next:h._pt,p:C||p===1?C:",",s:w,c:S-w,m:j&&j<4||n==="zIndex"?Math.round:0});h.c=f<i.length?i.substring(f,i.length):""}else h.r=n==="display"&&i==="none"?i5:r5;return _N.test(i)&&(h.e=0),this._pt=h,h},Xj={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},m8=function(t){var n=t.split(" "),l=n[0],i=n[1]||"50%";return(l==="top"||l==="bottom"||i==="left"||i==="right")&&(t=l,l=i,i=t),n[0]=Xj[l]||l,n[1]=Xj[i]||i,n.join(" ")},p8=function(t,n){if(n.tween&&n.tween._time===n.tween._dur){var l=n.t,i=l.style,c=n.u,u=l._gsap,h,f,p;if(c==="all"||c===!0)i.cssText="",f=1;else for(c=c.split(","),p=c.length;--p>-1;)h=c[p],ql[h]&&(f=1,h=h==="transformOrigin"?va:qt),Br(l,h);f&&(Br(l,qt),u&&(u.svg&&l.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",tu(l,1),u.uncache=1,o5(i)))}},r0={clearProps:function(t,n,l,i,c){if(c.data!=="isFromStart"){var u=t._pt=new ya(t._pt,n,l,0,0,p8);return u.u=i,u.pr=-10,u.tween=c,t._props.push(l),1}}},eu=[1,0,0,1,0,0],f5={},m5=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Qj=function(t){var n=Ia(t,qt);return m5(n)?eu:n.substr(7).match(NN).map(ss)},Cb=function(t,n){var l=t._gsap||wi(t),i=t.style,c=Qj(t),u,h,f,p;return l.svg&&t.getAttribute("transform")?(f=t.transform.baseVal.consolidate().matrix,c=[f.a,f.b,f.c,f.d,f.e,f.f],c.join(",")==="1,0,0,1,0,0"?eu:c):(c===eu&&!t.offsetParent&&t!==Wo&&!l.svg&&(f=i.display,i.display="block",u=t.parentNode,(!u||!t.offsetParent&&!t.getBoundingClientRect().width)&&(p=1,h=t.nextElementSibling,Wo.appendChild(t)),c=Qj(t),f?i.display=f:Br(t,"display"),p&&(h?u.insertBefore(t,h):u?u.appendChild(t):Wo.removeChild(t))),n&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},_g=function(t,n,l,i,c,u){var h=t._gsap,f=c||Cb(t,!0),p=h.xOrigin||0,x=h.yOrigin||0,b=h.xOffset||0,v=h.yOffset||0,w=f[0],j=f[1],N=f[2],A=f[3],S=f[4],C=f[5],T=n.split(" "),L=parseFloat(T[0])||0,O=parseFloat(T[1])||0,R,k,E,z;l?f!==eu&&(k=w*A-j*N)&&(E=L*(A/k)+O*(-N/k)+(N*C-A*S)/k,z=L*(-j/k)+O*(w/k)-(w*C-j*S)/k,L=E,O=z):(R=u5(t),L=R.x+(~T[0].indexOf("%")?L/100*R.width:L),O=R.y+(~(T[1]||T[0]).indexOf("%")?O/100*R.height:O)),i||i!==!1&&h.smooth?(S=L-p,C=O-x,h.xOffset=b+(S*w+C*N)-S,h.yOffset=v+(S*j+C*A)-C):h.xOffset=h.yOffset=0,h.xOrigin=L,h.yOrigin=O,h.smooth=!!i,h.origin=n,h.originIsAbsolute=!!l,t.style[va]="0px 0px",u&&(Sr(u,h,"xOrigin",p,L),Sr(u,h,"yOrigin",x,O),Sr(u,h,"xOffset",b,h.xOffset),Sr(u,h,"yOffset",v,h.yOffset)),t.setAttribute("data-svg-origin",L+" "+O)},tu=function(t,n){var l=t._gsap||new ZN(t);if("x"in l&&!n&&!l.uncache)return l;var i=t.style,c=l.scaleX<0,u="px",h="deg",f=getComputedStyle(t),p=Ia(t,va)||"0",x,b,v,w,j,N,A,S,C,T,L,O,R,k,E,z,D,q,V,Z,ae,ee,U,B,X,re,P,Y,oe,ue,me,ke;return x=b=v=N=A=S=C=T=L=0,w=j=1,l.svg=!!(t.getCTM&&h5(t)),f.translate&&((f.translate!=="none"||f.scale!=="none"||f.rotate!=="none")&&(i[qt]=(f.translate!=="none"?"translate3d("+(f.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(f.rotate!=="none"?"rotate("+f.rotate+") ":"")+(f.scale!=="none"?"scale("+f.scale.split(" ").join(",")+") ":"")+(f[qt]!=="none"?f[qt]:"")),i.scale=i.rotate=i.translate="none"),k=Cb(t,l.svg),l.svg&&(l.uncache?(X=t.getBBox(),p=l.xOrigin-X.x+"px "+(l.yOrigin-X.y)+"px",B=""):B=!n&&t.getAttribute("data-svg-origin"),_g(t,B||p,!!B||l.originIsAbsolute,l.smooth!==!1,k)),O=l.xOrigin||0,R=l.
vendor: 5,320 bytes, line 17
17yOrigin||0,k!==eu&&(q=k[0],V=k[1],Z=k[2],ae=k[3],x=ee=k[4],b=U=k[5],k.length===6?(w=Math.sqrt(q*q+V*V),j=Math.sqrt(ae*ae+Z*Z),N=q||V?No(V,q)*pi:0,C=Z||ae?No(Z,ae)*pi+N:0,C&&(j*=Math.abs(Math.cos(C*Ko))),l.svg&&(x-=O-(O*q+R*Z),b-=R-(O*V+R*ae))):(ke=k[6],ue=k[7],P=k[8],Y=k[9],oe=k[10],me=k[11],x=k[12],b=k[13],v=k[14],E=No(ke,oe),A=E*pi,E&&(z=Math.cos(-E),D=Math.sin(-E),B=ee*z+P*D,X=U*z+Y*D,re=ke*z+oe*D,P=ee*-D+P*z,Y=U*-D+Y*z,oe=ke*-D+oe*z,me=ue*-D+me*z,ee=B,U=X,ke=re),E=No(-Z,oe),S=E*pi,E&&(z=Math.cos(-E),D=Math.sin(-E),B=q*z-P*D,X=V*z-Y*D,re=Z*z-oe*D,me=ae*D+me*z,q=B,V=X,Z=re),E=No(V,q),N=E*pi,E&&(z=Math.cos(E),D=Math.sin(E),B=q*z+V*D,X=ee*z+U*D,V=V*z-q*D,U=U*z-ee*D,q=B,ee=X),A&&Math.abs(A)+Math.abs(N)>359.9&&(A=N=0,S=180-S),w=ss(Math.sqrt(q*q+V*V+Z*Z)),j=ss(Math.sqrt(U*U+ke*ke)),E=No(ee,U),C=Math.abs(E)>2e-4?E*pi:0,L=me?1/(me<0?-me:me):0),l.svg&&(B=t.getAttribute("transform"),l.forceCSS=t.setAttribute("transform","")||!m5(Ia(t,qt)),B&&t.setAttribute("transform",B))),Math.abs(C)>90&&Math.abs(C)<270&&(c?(w*=-1,C+=N<=0?180:-180,N+=N<=0?180:-180):(j*=-1,C+=C<=0?180:-180)),n=n||l.uncache,l.x=x-((l.xPercent=x&&(!n&&l.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-x)?-50:0)))?t.offsetWidth*l.xPercent/100:0)+u,l.y=b-((l.yPercent=b&&(!n&&l.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-b)?-50:0)))?t.offsetHeight*l.yPercent/100:0)+u,l.z=v+u,l.scaleX=ss(w),l.scaleY=ss(j),l.rotation=ss(N)+h,l.rotationX=ss(A)+h,l.rotationY=ss(S)+h,l.skewX=C+h,l.skewY=T+h,l.transformPerspective=L+u,(l.zOrigin=parseFloat(p.split(" ")[2])||!n&&l.zOrigin||0)&&(i[va]=i0(p)),l.xOffset=l.yOffset=0,l.force3D=Va.force3D,l.renderTransform=l.svg?g8:d5?p5:x8,l.uncache=0,l},i0=function(t){return(t=t.split(" "))[0]+" "+t[1]},px=function(t,n,l){var i=Vs(n);return ss(parseFloat(n)+parseFloat(Pr(t,"x",l+"px",i)))+i},x8=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,p5(t,n)},ui="0deg",fd="0px",hi=") ",p5=function(t,n){var l=n||this,i=l.xPercent,c=l.yPercent,u=l.x,h=l.y,f=l.z,p=l.rotation,x=l.rotationY,b=l.rotationX,v=l.skewX,w=l.skewY,j=l.scaleX,N=l.scaleY,A=l.transformPerspective,S=l.force3D,C=l.target,T=l.zOrigin,L="",O=S==="auto"&&t&&t!==1||S===!0;if(T&&(b!==ui||x!==ui)){var R=parseFloat(x)*Ko,k=Math.sin(R),E=Math.cos(R),z;R=parseFloat(b)*Ko,z=Math.cos(R),u=px(C,u,k*z*-T),h=px(C,h,-Math.sin(R)*-T),f=px(C,f,E*z*-T+T)}A!==fd&&(L+="perspective("+A+hi),(i||c)&&(L+="translate("+i+"%, "+c+"%) "),(O||u!==fd||h!==fd||f!==fd)&&(L+=f!==fd||O?"translate3d("+u+", "+h+", "+f+") ":"translate("+u+", "+h+hi),p!==ui&&(L+="rotate("+p+hi),x!==ui&&(L+="rotateY("+x+hi),b!==ui&&(L+="rotateX("+b+hi),(v!==ui||w!==ui)&&(L+="skew("+v+", "+w+hi),(j!==1||N!==1)&&(L+="scale("+j+", "+N+hi),C.style[qt]=L||"translate(0, 0)"},g8=function(t,n){var l=n||this,i=l.xPercent,c=l.yPercent,u=l.x,h=l.y,f=l.rotation,p=l.skewX,x=l.skewY,b=l.scaleX,v=l.scaleY,w=l.target,j=l.xOrigin,N=l.yOrigin,A=l.xOffset,S=l.yOffset,C=l.forceCSS,T=parseFloat(u),L=parseFloat(h),O,R,k,E,z;f=parseFloat(f),p=parseFloat(p),x=parseFloat(x),x&&(x=parseFloat(x),p+=x,f+=x),f||p?(f*=Ko,p*=Ko,O=Math.cos(f)*b,R=Math.sin(f)*b,k=Math.sin(f-p)*-v,E=Math.cos(f-p)*v,p&&(x*=Ko,z=Math.tan(p-x),z=Math.sqrt(1+z*z),k*=z,E*=z,x&&(z=Math.tan(x),z=Math.sqrt(1+z*z),O*=z,R*=z)),O=ss(O),R=ss(R),k=ss(k),E=ss(E)):(O=b,E=v,R=k=0),(T&&!~(u+"").indexOf("px")||L&&!~(h+"").indexOf("px"))&&(T=Pr(w,"x",u,"px"),L=Pr(w,"y",h,"px")),(j||N||A||S)&&(T=ss(T+j-(j*O+N*k)+A),L=ss(L+N-(j*R+N*E)+S)),(i||c)&&(z=w.getBBox(),T=ss(T+i/100*z.width),L=ss(L+c/100*z.height)),z="matrix("+O+","+R+","+k+","+E+","+T+","+L+")",w.setAttribute("transform",z),C&&(w.style[qt]=z)},b8=function(t,n,l,i,c){var u=360,h=Ns(c),f=parseFloat(c)*(h&&~c.indexOf("rad")?pi:1),p=f-i,x=i+p+"deg",b,v;return h&&(b=c.split("_")[1],b==="short"&&(p%=u,p!==p%(u/2)&&(p+=p<0?u:-u)),b==="cw"&&p<0?p=(p+u*qj)%u-~~(p/u)*u:b==="ccw"&&p>0&&(p=(p-u*qj)%u-~~(p/u)*u)),t._pt=v=new ya(t._pt,n,l,i,p,e8),v.e=x,v.u="deg",t._props.push(l),v},Zj=function(t,n){for(var l in n)t[l]=n[l];return t},y8=function(t,n,l){var i=Zj({},l._gsap),c="perspective,force3D,transformOrigin,svgOrigin",u=l.style,h,f,p,x,b,v,w,j;i.svg?(p=l.getAttribute("transform"),l.setAttribute("transform",""),u[qt]=n,h=tu(l,1),Br(l,qt),l.setAttribute("transform",p)):(p=getComputedStyle(l)[qt],u[qt]=n,h=tu(l,1),u[qt]=p);for(f in ql)p=i[f],x=h[f],p!==x&&c.indexOf(f)<0&&(w=Vs(p),j=Vs(x),b=w!==j?Pr(l,f,p,j):parseFloat(p),v=parseFloat(x),t._pt=new ya(t._pt,h,f,b,v-b,Ag),t._pt.u=j||0,t._props.push(f));Zj(h,i)};ba("padding,margin,Width,Radius",function(a,t){var n="Top",l="Right",i="Bottom",c="Left",u=(t<3?[n,l,i,c]:[n+c,n+l,i+l,i+c]).map(function(h){return t<2?a+h:"border"+h+a});r0[t>1?"border"+a:a]=function(h,f,p,x,b){var v,w;if(arguments.length<4)return v=u.map(function(j){return Ol(h,j,p)}),w=v.join(" "),w.split(v[0]).length===5?v[0]:w;v=(x+"").split(" "),w={},u.forEach(function(j,N){return w[j]=v[N]=v[N]||v[(N-1)/2|0]}),h.init(f,w,b)}});var x5={name:"css",register:Ng,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,l,i,c){var u=this._props,h=t.style,f=l.vars.startAt,p,x,b,v,w,j,N,A,S,C,T,L,O,R,k,E,z;_b||Ng(),this.styles=this.styles||c5(t),E=this.styles.props,this.tween=l;for(N in n)if(N!=="autoRound"&&(x=n[N],!(La[N]&&JN(N,n,l,i,t,c)))){if(w=typeof x,j=r0[N],w==="function"&&(x=x.call(l,i,t,c),w=typeof x),w==="str
17ing"&&~x.indexOf("random(")&&(x=Zd(x)),j)j(this,t,N,x,l)&&(k=1);else if(N.substr(0,2)==="--")p=(getComputedStyle(t).getPropertyValue(N)+"").trim(),x+="",Or.lastIndex=0,Or.test(p)||(A=Vs(p),S=Vs(x),S?A!==S&&(p=Pr(t,N,p,S)+S):A&&(x+=A)),this.add(h,"setProperty",p,x,i,c,0,0,N),u.push(N),E.push(N,0,h[N]);else if(w!=="undefined"){if(f&&N in f?(p=typeof f[N]=="function"?f[N].call(l,i,t,c):f[N],Ns(p)&&~p.indexOf("random(")&&(p=Zd(p)),Vs(p+"")||p==="auto"||(p+=Va.units[N]||Vs(Ol(t,N))||""),(p+"").charAt(1)==="="&&(p=Ol(t,N))):p=Ol(t,N),v=parseFloat(p),C=w==="string"&&x.charAt(1)==="="&&x.substr(0,2),C&&(x=x.substr(2)),b=parseFloat(x),N in ll&&(N==="autoAlpha"&&(v===1&&Ol(t,"visibility")==="hidden"&&b&&(v=0),E.push("visibility",0,h.visibility),Sr(this,h,"visibility",v?"inherit":"hidden",b?"inherit":"hidden",!b)),N!=="scale"&&N!=="transform"&&(N=ll[N],~N.indexOf(",")&&(N=N.split(",")[0]))),T=N in ql,T){if(this.styles.save(N),z=x,w==="string"&&x.substring(0,6)==="var(--"){if(x=Ia(t,x.substring(4,x.indexOf(")"))),x.substring(0,5)==="calc("){var D=t.style.perspective;t.style.perspective=x,x=Ia(t,"perspective"),D?t.style.perspective=D:Br(t,"perspective")}b=parseFloat(x)}if(L||(O=t._gsap,O.renderTransform&&!n.parseTransform||tu(t,n.parseTransform),R=n.smoothOrigin!==!1&&O.smooth,L=this._pt=new ya(this._pt,h,qt,0,1,O.renderTransform,O,0,-1),L.dep=1),N==="scale")this._pt=new ya(this._pt,O,"scaleY",O.scaleY,(C?Go(O.scaleY,C+b):b)-O.scaleY||0,Ag),this._pt.u=0,u.push("scaleY",N),N+="X";else if(N==="transformOrigin"){E.push(va,0,h[va]),x=m8(x),O.svg?_g(t,x,0,R,0,this):(S=parseFloat(x.split(" ")[2])||0,S!==O.zOrigin&&Sr(this,O,"zOrigin",O.zOrigin,S),Sr(this,h,N,i0(p),i0(x)));continue}else if(N==="svgOrigin"){_g(t,x,1,R,0,this);continue}else if(N in f5){b8(this,O,N,v,C?Go(v,C+x):x);continue}else if(N==="smoothOrigin"){Sr(this,O,"smooth",O.smooth,x);continue}else if(N==="force3D"){O[N]=x;continue}else if(N==="transform"){y8(this,x,t);continue}}else N in h||(N=nc(N)||N);if(T||(b||b===0)&&(v||v===0)&&!$E.test(x)&&N in h)A=(p+"").substr((v+"").length),b||(b=0),S=Vs(x)||(N in Va.units?Va.units[N]:A),A!==S&&(v=Pr(t,N,p,S)),this._pt=new ya(this._pt,T?O:h,N,v,(C?Go(v,C+b):b)-v,!T&&(S==="px"||N==="zIndex")&&n.autoRound!==!1?a8:Ag),this._pt.u=S||0,T&&z!==x?(this._pt.b=p,this._pt.e=z,this._pt.r=s8):A!==S&&S!=="%"&&(this._pt.b=p,this._pt.r=t8);else if(N in h)f8.call(this,t,N,p,C?C+x:x);else if(N in t)this.add(t,N,p||t[N],C?C+x:x,i,c);else if(N!=="parseTransform"){pb(N,x);continue}T||(N in h?E.push(N,0,h[N]):typeof t[N]=="function"?E.push(N,2,t[N]()):E.push(N,1,p||t[N])),u.push(N)}}k&&n5(this)},render:function(t,n){if(n.tween._time||!Sb())for(var l=n._pt;l;)l.r(t,l.d),l=l._next;else n.styles.revert()},get:Ol,aliases:ll,getSetter:function(t,n,l){var i=ll[n];return i&&i.indexOf(",")<0&&(n=i),n in ql&&n!==va&&(t._gsap.x||Ol(t,"x"))?l&&Hj===l?n==="scale"?i8:r8:(Hj=l||{})&&(n==="scale"?o8:c8):t.style&&!hb(t.style[n])?n8:~n.indexOf("-")?l8:wb(t,n)},core:{_removeProperty:Br,_getMatrix:Cb}};ja.utils.checkPrefix=nc;ja.core.getStyleSaver=c5;(function(a,t,n,l){var i=ba(a+","+t+","+n,function(c){ql[c]=1});ba(t,function(c){Va.units[c]="deg",f5[c]=1}),ll[i[13]]=a+","+t,ba(l,function(c){var u=c.split(":");ll[u[1]]=i[u[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ba("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Va.units[a]="px"});ja.registerPlugin(x5);var jt=ja.registerPlugin(x5)||ja;jt.core.Tween;function v8(a,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function j8(a,t,n){return t&&v8(a.prototype,t),a}var Es,Uf,Pa,kr,Cr,Xo,g5,xi,Qo,b5,Bl,Pn,y5,v5=function(){return Es||typeof window<"u"&&(Es=window.gsap)&&Es.registerPlugin&&Es},j5=1,Do=[],Ze=[],il=[],Dd=Date.now,Sg=function(t,n){return n},A8=function(){var t=Qo.core,n=t.bridge||{},l=t._scrollers,i=t._proxies;l.push.apply(l,Ze),i.push.apply(i,il),Ze=l,il=i,Sg=function(u,h){return n[u](h)}},Mr=function(t,n){return~il.indexOf(t)&&il[il.indexOf(t)+1][n]},Bd=function(t){return!!~b5.indexOf(t)},Js=function(t,n,l,i,c){return t.addEventListener(n,l,{passive:i!==!1,capture:!!c})},Zs=function(t,n,l,i){return t.removeEventListener(n,l,!!i)},Uh="scrollLeft",Ih="scrollTop",kg=function(){return Bl&&Bl.isPressed||Ze.cache++},o0=function(t,n){var l=function i(c){if(c||c===0){j5&&(Pa.history.scrollRestoration="manual");var u=Bl&&Bl.isPressed;c=i.v=Math.round(c)||(Bl&&Bl.iOS?1:0),t(c),i.cacheID=Ze.cache,u&&Sg("ss",c)}else(n||Ze.cache!==i.cacheID||Sg("ref"))&&(i.cacheID=Ze.cache,i.v=t());return i.v+i.offset};return l.offset=0,t&&l},sa={s:Uh,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:o0(function(a){return arguments.length?Pa.scrollTo(a,bs.sc()):Pa.pageXOffset||kr[Uh]||Cr[Uh]||Xo[Uh]||0})},bs={s:Ih,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:sa,sc:o0(function(a){return arguments.length?Pa.scrollTo(sa.sc(),a):Pa.pageYOffset||kr[Ih]||Cr[Ih]||Xo[Ih]||0})},ha=function(t,n){return(n&&n._ctx&&n._ctx.selector||Es.utils.toArray)(t)[0]||(typeof t=="string"&&Es.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},w8=function(t,n){for(var l=n.length;l--;)if(n[l]===t||n[l].contains(t))return!0;return!1},Ur=function(t,n){var l=n.s,i=n.sc;Bd(t)&&(t=kr.scrollingElement||Cr);var c=Ze.indexOf(t),u=i===bs.sc?1:2;
vendor: 5,005 bytes, line 17
17!~c&&(c=Ze.push(t)-1),Ze[c+u]||Js(t,"scroll",kg);var h=Ze[c+u],f=h||(Ze[c+u]=o0(Mr(t,l),!0)||(Bd(t)?i:o0(function(p){return arguments.length?t[l]=p:t[l]})));return f.target=t,h||(f.smooth=Es.getProperty(t,"scrollBehavior")==="smooth"),f},Cg=function(t,n,l){var i=t,c=t,u=Dd(),h=u,f=n||50,p=Math.max(500,f*3),x=function(j,N){var A=Dd();N||A-u>f?(c=i,i=j,h=u,u=A):l?i+=j:i=c+(j-c)/(A-h)*(u-h)},b=function(){c=i=l?0:i,h=u=0},v=function(j){var N=h,A=c,S=Dd();return(j||j===0)&&j!==i&&x(j),u===h||S-h>p?0:(i+(l?A:-A))/((l?S:u)-N)*1e3};return{update:x,reset:b,getVelocity:v}},md=function(t,n){return n&&!t._gsapAllow&&t.cancelable!==!1&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Jj=function(t){var n=Math.max.apply(Math,t),l=Math.min.apply(Math,t);return Math.abs(n)>=Math.abs(l)?n:l},A5=function(){Qo=Es.core.globals().ScrollTrigger,Qo&&Qo.core&&A8()},w5=function(t){return Es=t||v5(),!Uf&&Es&&typeof document<"u"&&document.body&&(Pa=window,kr=document,Cr=kr.documentElement,Xo=kr.body,b5=[Pa,kr,Cr,Xo],Es.utils.clamp,y5=Es.core.context||function(){},xi="onpointerenter"in Xo?"pointer":"mouse",g5=ns.isTouch=Pa.matchMedia&&Pa.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Pa||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Pn=ns.eventTypes=("ontouchstart"in Cr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Cr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return j5=0},500),Uf=1),Qo||A5(),Uf};sa.op=bs;Ze.cache=0;var ns=(function(){function a(n){this.init(n)}var t=a.prototype;return t.init=function(l){Uf||w5(Es)||console.warn("Please gsap.registerPlugin(Observer)"),Qo||A5();var i=l.tolerance,c=l.dragMinimum,u=l.type,h=l.target,f=l.lineHeight,p=l.debounce,x=l.preventDefault,b=l.onStop,v=l.onStopDelay,w=l.ignore,j=l.wheelSpeed,N=l.event,A=l.onDragStart,S=l.onDragEnd,C=l.onDrag,T=l.onPress,L=l.onRelease,O=l.onRight,R=l.onLeft,k=l.onUp,E=l.onDown,z=l.onChangeX,D=l.onChangeY,q=l.onChange,V=l.onToggleX,Z=l.onToggleY,ae=l.onHover,ee=l.onHoverEnd,U=l.onMove,B=l.ignoreCheck,X=l.isNormalizer,re=l.onGestureStart,P=l.onGestureEnd,Y=l.onWheel,oe=l.onEnable,ue=l.onDisable,me=l.onClick,ke=l.scrollSpeed,Ve=l.capture,tt=l.allowClicks,je=l.lockAxis,De=l.onLockAxis;this.target=h=ha(h)||Cr,this.vars=l,w&&(w=Es.utils.toArray(w)),i=i||1e-9,c=c||0,j=j||1,ke=ke||1,u=u||"wheel,touch,pointer",p=p!==!1,f||(f=parseFloat(Pa.getComputedStyle(Xo).lineHeight)||22);var Yt,Je,ft,Ce,_e,Oe,Zt,te=this,zs=0,Aa=0,Za=l.passive||!x&&l.passive!==!1,St=Ur(h,sa),Rn=Ur(h,bs),Yn=St(),Jt=Rn(),rs=~u.indexOf("touch")&&!~u.indexOf("pointer")&&Pn[0]==="pointerdown",On=Bd(h),Rt=h.ownerDocument||kr,Ls=[0,0,0],na=[0,0,0],Ja=0,Gr=function(){return Ja=Dd()},Gt=function(Ae,ot){return(te.event=Ae)&&w&&w8(Ae.target,w)||ot&&rs&&Ae.pointerType!=="touch"||B&&B(Ae,ot)},Gn=function(){te._vx.reset(),te._vy.reset(),Je.pause(),b&&b(te)},Pt=function(){var Ae=te.deltaX=Jj(Ls),ot=te.deltaY=Jj(na),he=Math.abs(Ae)>=i,Re=Math.abs(ot)>=i;q&&(he||Re)&&q(te,Ae,ot,Ls,na),he&&(O&&te.deltaX>0&&O(te),R&&te.deltaX<0&&R(te),z&&z(te),V&&te.deltaX<0!=zs<0&&V(te),zs=te.deltaX,Ls[0]=Ls[1]=Ls[2]=0),Re&&(E&&te.deltaY>0&&E(te),k&&te.deltaY<0&&k(te),D&&D(te),Z&&te.deltaY<0!=Aa<0&&Z(te),Aa=te.deltaY,na[0]=na[1]=na[2]=0),(Ce||ft)&&(U&&U(te),ft&&(A&&ft===1&&A(te),C&&C(te),ft=0),Ce=!1),Oe&&!(Oe=!1)&&De&&De(te),_e&&(Y(te),_e=!1),Yt=0},Ws=function(Ae,ot,he){Ls[he]+=Ae,na[he]+=ot,te._vx.update(Ae),te._vy.update(ot),p?Yt||(Yt=requestAnimationFrame(Pt)):Pt()},is=function(Ae,ot){je&&!Zt&&(te.axis=Zt=Math.abs(Ae)>Math.abs(ot)?"x":"y",Oe=!0),Zt!=="y"&&(Ls[2]+=Ae,te._vx.update(Ae,!0)),Zt!=="x"&&(na[2]+=ot,te._vy.update(ot,!0)),p?Yt||(Yt=requestAnimationFrame(Pt)):Pt()},Wn=function(Ae){if(!Gt(Ae,1)){Ae=md(Ae,x);var ot=Ae.clientX,he=Ae.clientY,Re=ot-te.x,we=he-te.y,Ee=te.isDragging;te.x=ot,te.y=he,(Ee||(Re||we)&&(Math.abs(te.startX-ot)>=c||Math.abs(te.startY-he)>=c))&&(ft||(ft=Ee?2:1),Ee||(te.isDragging=!0),is(Re,we))}},hl=te.onPress=function(Te){Gt(Te,1)||Te&&Te.button||(te.axis=Zt=null,Je.pause(),te.isPressed=!0,Te=md(Te),zs=Aa=0,te.startX=te.x=Te.clientX,te.startY=te.y=Te.clientY,te._vx.reset(),te._vy.reset(),Js(X?h:Rt,Pn[1],Wn,Za,!0),te.deltaX=te.deltaY=0,T&&T(te))},Fe=te.onRelease=function(Te){if(!Gt(Te,1)){Zs(X?h:Rt,Pn[1],Wn,!0);var Ae=!isNaN(te.y-te.startY),ot=te.isDragging,he=ot&&(Math.abs(te.x-te.startX)>3||Math.abs(te.y-te.startY)>3),Re=md(Te);!he&&Ae&&(te._vx.reset(),te._vy.reset(),x&&tt&&Es.delayedCall(.08,function(){if(Dd()-Ja>300&&!Te.defaultPrevented){if(Te.target.click)Te.target.click();else if(Rt.createEvent){var we=Rt.createEvent("MouseEvents");we.initMouseEvent("click",!0,!0,Pa,1,Re.screenX,Re.screenY,Re.clientX,Re.clientY,!1,!1,!1,!1,0,null),Te.target.dispatchEvent(we)}}})),te.isDragging=te.isGesturing=te.isPressed=!1,b&&ot&&!X&&Je.restart(!0),ft&&Pt(),S&&ot&&S(te),L&&L(te,he)}},$a=function(Ae){return Ae.touches&&Ae.touches.length>1&&(te.isGesturing=!0)&&re(Ae,te.isDragging)}
vendor: 4,100 bytes, line 17
17,Ds=function(){return(te.isGesturing=!1)||P(te)},Bs=function(Ae){if(!Gt(Ae)){var ot=St(),he=Rn();Ws((ot-Yn)*ke,(he-Jt)*ke,1),Yn=ot,Jt=he,b&&Je.restart(!0)}},ps=function(Ae){if(!Gt(Ae)){Ae=md(Ae,x),Y&&(_e=!0);var ot=(Ae.deltaMode===1?f:Ae.deltaMode===2?Pa.innerHeight:1)*j;Ws(Ae.deltaX*ot,Ae.deltaY*ot,0),b&&!X&&Je.restart(!0)}},en=function(Ae){if(!Gt(Ae)){var ot=Ae.clientX,he=Ae.clientY,Re=ot-te.x,we=he-te.y;te.x=ot,te.y=he,Ce=!0,b&&Je.restart(!0),(Re||we)&&is(Re,we)}},tn=function(Ae){te.event=Ae,ae(te)},Mn=function(Ae){te.event=Ae,ee(te)},Xl=function(Ae){return Gt(Ae)||md(Ae,x)&&me(te)};Je=te._dc=Es.delayedCall(v||.25,Gn).pause(),te.deltaX=te.deltaY=0,te._vx=Cg(0,50,!0),te._vy=Cg(0,50,!0),te.scrollX=St,te.scrollY=Rn,te.isDragging=te.isGesturing=te.isPressed=!1,y5(this),te.enable=function(Te){return te.isEnabled||(Js(On?Rt:h,"scroll",kg),u.indexOf("scroll")>=0&&Js(On?Rt:h,"scroll",Bs,Za,Ve),u.indexOf("wheel")>=0&&Js(h,"wheel",ps,Za,Ve),(u.indexOf("touch")>=0&&g5||u.indexOf("pointer")>=0)&&(Js(h,Pn[0],hl,Za,Ve),Js(Rt,Pn[2],Fe),Js(Rt,Pn[3],Fe),tt&&Js(h,"click",Gr,!0,!0),me&&Js(h,"click",Xl),re&&Js(Rt,"gesturestart",$a),P&&Js(Rt,"gestureend",Ds),ae&&Js(h,xi+"enter",tn),ee&&Js(h,xi+"leave",Mn),U&&Js(h,xi+"move",en)),te.isEnabled=!0,te.isDragging=te.isGesturing=te.isPressed=Ce=ft=!1,te._vx.reset(),te._vy.reset(),Yn=St(),Jt=Rn(),Te&&Te.type&&hl(Te),oe&&oe(te)),te},te.disable=function(){te.isEnabled&&(Do.filter(function(Te){return Te!==te&&Bd(Te.target)}).length||Zs(On?Rt:h,"scroll",kg),te.isPressed&&(te._vx.reset(),te._vy.reset(),Zs(X?h:Rt,Pn[1],Wn,!0)),Zs(On?Rt:h,"scroll",Bs,Ve),Zs(h,"wheel",ps,Ve),Zs(h,Pn[0],hl,Ve),Zs(Rt,Pn[2],Fe),Zs(Rt,Pn[3],Fe),Zs(h,"click",Gr,!0),Zs(h,"click",Xl),Zs(Rt,"gesturestart",$a),Zs(Rt,"gestureend",Ds),Zs(h,xi+"enter",tn),Zs(h,xi+"leave",Mn),Zs(h,xi+"move",en),te.isEnabled=te.isPressed=te.isDragging=!1,ue&&ue(te))},te.kill=te.revert=function(){te.disable();var Te=Do.indexOf(te);Te>=0&&Do.splice(Te,1),Bl===te&&(Bl=0)},Do.push(te),X&&Bd(h)&&(Bl=te),te.enable(N)},j8(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a})();ns.version="3.15.0";ns.create=function(a){return new ns(a)};ns.register=w5;ns.getAll=function(){return Do.slice()};ns.getById=function(a){return Do.filter(function(t){return t.vars.id===a})[0]};v5()&&Es.registerPlugin(ns);var be,Ro,Xe,xt,Da,ht,Eb,c0,su,Pd,Nd,Vh,Ps,O0,Eg,ea,$j,eA,Oo,N5,xx,_5,$s,Tg,S5,k5,Ar,Rg,Tb,Zo,Rb,Ud,Og,gx,Fh=1,Us=Date.now,bx=Us(),Sn=0,_d=0,tA=function(t,n,l){var i=za(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return l["_"+n+"Clamp"]=i,i?t.substr(6,t.length-7):t},sA=function(t,n){return n&&(!za(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},N8=function a(){return _d&&requestAnimationFrame(a)},aA=function(){return O0=1},nA=function(){return O0=0},al=function(t){return t},Sd=function(t){return Math.round(t*1e5)/1e5||0},C5=function(){return typeof window<"u"},E5=function(){return be||C5()&&(be=window.gsap)&&be.registerPlugin&&be},Mi=function(t){return!!~Eb.indexOf(t)},T5=function(t){return(t==="Height"?Rb:Xe["inner"+t])||Da["client"+t]||ht["client"+t]},R5=function(t){return Mr(t,"getBoundingClientRect")||(Mi(t)?function(){return qf.width=Xe.innerWidth,qf.height=Rb,qf}:function(){return zl(t)})},_8=function(t,n,l){var i=l.d,c=l.d2,u=l.a;return(u=Mr(t,"getBoundingClientRect"))?function(){return u()[i]}:function(){return(n?T5(c):t["client"+c])||0}},S8=function(t,n){return!n||~il.indexOf(t)?R5(t):function(){return qf}},rl=function(t,n){var l=n.s,i=n.d2,c=n.d,u=n.a;return Math.max(0,(l="scroll"+i)&&(u=Mr(t,l))?u()-R5(t)()[c]:Mi(t)?(Da[l]||ht[l])-T5(i):t[l]-t["offset"+i])},Hh=function(t,n){for(var l=0;l<Oo.length;l+=3)(!n||~n.indexOf(Oo[l+1]))&&t(Oo[l],Oo[l+1],Oo[l+2])},za=function(t){return typeof t=="string"},Fs=function(t){return typeof t=="function"},kd=function(t){return typeof t=="number"},gi=function(t){return typeof t=="object"},pd=function(t,n,l){return t&&t.progress(n?0:1)&&l&&t.pause()},_o=function(t,n,l){if(t.enabled){var i=t._ctx?t._ctx.add(function(){return n(t,l)}):n(t,l);
vendor: 8,339 bytes, line 17
17i&&i.totalTime&&(t.callbackAnimation=i)}},So=Math.abs,O5="left",M5="top",Ob="right",Mb="bottom",ki="width",Ci="height",Id="Right",Vd="Left",Fd="Top",Hd="Bottom",hs="padding",yn="margin",lc="Width",zb="Height",gs="px",vn=function(t){return Xe.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},k8=function(t){var n=vn(t).position;t.style.position=n==="absolute"||n==="fixed"?n:"relative"},lA=function(t,n){for(var l in n)l in t||(t[l]=n[l]);return t},zl=function(t,n){var l=n&&vn(t)[Eg]!=="matrix(1, 0, 0, 1, 0, 0)"&&be.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return l&&l.progress(0).kill(),i},d0=function(t,n){var l=n.d2;return t["offset"+l]||t["client"+l]||0},z5=function(t){var n=[],l=t.labels,i=t.duration(),c;for(c in l)n.push(l[c]/i);return n},C8=function(t){return function(n){return be.utils.snap(z5(t),n)}},Lb=function(t){var n=be.utils.snap(t),l=Array.isArray(t)&&t.slice(0).sort(function(i,c){return i-c});return l?function(i,c,u){u===void 0&&(u=.001);var h;if(!c)return n(i);if(c>0){for(i-=u,h=0;h<l.length;h++)if(l[h]>=i)return l[h];return l[h-1]}else for(h=l.length,i+=u;h--;)if(l[h]<=i)return l[h];return l[0]}:function(i,c,u){u===void 0&&(u=.001);var h=n(i);return!c||Math.abs(h-i)<u||h-i<0==c<0?h:n(c<0?i-t:i+t)}},E8=function(t){return function(n,l){return Lb(z5(t))(n,l.direction)}},qh=function(t,n,l,i){return l.split(",").forEach(function(c){return t(n,c,i)})},As=function(t,n,l,i,c){return t.addEventListener(n,l,{passive:!i,capture:!!c})},vs=function(t,n,l,i){return t.removeEventListener(n,l,!!i)},Yh=function(t,n,l){l=l&&l.wheelHandler,l&&(t(n,"wheel",l),t(n,"touchmove",l))},rA={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Gh={toggleActions:"play",anticipatePin:0},u0={top:0,left:0,center:.5,bottom:1,right:1},If=function(t,n){if(za(t)){var l=t.indexOf("="),i=~l?+(t.charAt(l-1)+1)*parseFloat(t.substr(l+1)):0;~l&&(t.indexOf("%")>l&&(i*=n/100),t=t.substr(0,l-1)),t=i+(t in u0?u0[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0)}return t},Wh=function(t,n,l,i,c,u,h,f){var p=c.startColor,x=c.endColor,b=c.fontSize,v=c.indent,w=c.fontWeight,j=xt.createElement("div"),N=Mi(l)||Mr(l,"pinType")==="fixed",A=t.indexOf("scroller")!==-1,S=N?ht:l.tagName==="IFRAME"?l.contentDocument.body:l,C=t.indexOf("start")!==-1,T=C?p:x,L="border-color:"+T+";font-size:"+b+";color:"+T+";font-weight:"+w+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return L+="position:"+((A||f)&&N?"fixed;":"absolute;"),(A||f||!N)&&(L+=(i===bs?Ob:Mb)+":"+(u+parseFloat(v))+"px;"),h&&(L+="box-sizing:border-box;text-align:left;width:"+h.offsetWidth+"px;"),j._isStart=C,j.setAttribute("class","gsap-marker-"+t+(n?" marker-"+n:"")),j.style.cssText=L,j.innerText=n||n===0?t+"-"+n:t,S.children[0]?S.insertBefore(j,S.children[0]):S.appendChild(j),j._offset=j["offset"+i.op.d2],Vf(j,0,i,C),j},Vf=function(t,n,l,i){var c={display:"block"},u=l[i?"os2":"p2"],h=l[i?"p2":"os2"];t._isFlipped=i,c[l.a+"Percent"]=i?-100:0,c[l.a]=i?"1px":0,c["border"+u+lc]=1,c["border"+h+lc]=0,c[l.p]=n+"px",be.set(t,c)},qe=[],Mg={},au,iA=function(){return Us()-Sn>34&&(au||(au=requestAnimationFrame(Vl)))},ko=function(){(!$s||!$s.isPressed||$s.startX>ht.clientWidth)&&(Ze.cache++,$s?au||(au=requestAnimationFrame(Vl)):Vl(),Sn||Li("scrollStart"),Sn=Us())},yx=function(){k5=Xe.innerWidth,S5=Xe.innerHeight},Cd=function(t){Ze.cache++,(t===!0||!Ps&&!_5&&!xt.fullscreenElement&&!xt.webkitFullscreenElement&&(!Tg||k5!==Xe.innerWidth||Math.abs(Xe.innerHeight-S5)>Xe.innerHeight*.25))&&c0.restart(!0)},zi={},T8=[],L5=function a(){return vs(Ye,"scrollEnd",a)||vi(!0)},Li=function(t){return zi[t]&&zi[t].map(function(n){return n()})||T8},Ma=[],D5=function(t){for(var n=0;n<Ma.length;n+=5)(!t||Ma[n+4]&&Ma[n+4].query===t)&&(Ma[n].style.cssText=Ma[n+1],Ma[n].getBBox&&Ma[n].setAttribute("transform",Ma[n+2]||""),Ma[n+3].uncache=1)},B5=function(){return Ze.forEach(function(t){return Fs(t)&&++t.cacheID&&(t.rec=t())})},Db=function(t,n){var l;for(ea=0;ea<qe.length;ea++)l=qe[ea],l&&(!n||l._ctx===n)&&(t?l.kill(1):l.revert(!0,!0));Ud=!0,n&&D5(n),n||Li("revert")},P5=function(t,n){Ze.cache++,(n||!ta)&&Ze.forEach(function(l){return Fs(l)&&l.cacheID++&&(l.rec=0)}),za(t)&&(Xe.history.scrollRestoration=Tb=t)},ta,Ei=0,oA,R8=function(){if(oA!==Ei){var t=oA=Ei;requestAnimationFrame(function(){return t===Ei&&vi(!0)})}},U5=function(){ht.appendChild(Zo),Rb=!$s&&Zo.offsetHeight||Xe.innerHeight,ht.removeChild(Zo)},cA=function(t){return su(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=t?"none":"block"})},vi=function(t,n){if(Da=xt.documentElement,ht=xt.body,Eb=[Xe,xt,Da,ht],Sn&&!t&&!Ud){As(Ye,"scrollEnd",L5);return}U5(),ta=Ye.isRefreshing=!0,Ud||B5();var l=Li("refreshInit");N5&&Ye.sort(),n||Db(),Ze.forEach(function(i){Fs(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),qe.slice(0).forEach(function(i){return i.refresh()}),Ud=!1,qe.forEach(function(i){if(i._subPinOffset&&i.pin){var c=i.vars.horizontal?"offsetWidth":"offsetHeight",u=i.pin[c];i.revert(!0,1),i.adjustPinSpacing(i.pin[c]-u),i.refresh()}}),Og=1,cA(!0),qe.forEach(function(i){var c=rl(i.scroller,i._dir),u=i.vars.end==="max"||i._endClamp&&i.end>c,h=i._startClamp&&i.start>=c;(u||h)&&i.setPositions(h?c-1:i.start,u?Math.max(h?c:i.start+1,c):i.end,!0)}),cA(!1),Og=0,l.forEach(function(i){return i&&i.render&&i.render(-1)}),Ze.forEach(function(i){Fs(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),P5(Tb,1),c0.pause(),Ei++,ta=2,Vl(2),qe.forEach(function(i){return Fs(i.vars.onRefresh)&&i.vars.onRefresh(i)}),ta=Ye.isRefreshing=!1,Li("refresh")},zg=0,Ff=1,qd,Vl=function(t){if(t===2||!ta&&!Ud){Ye.isUpdating=!0,qd&&qd.update(0);var n=qe.length,l=Us(),i=l-bx>=50,c=n&&qe[0].scroll();if(Ff=zg>c?-1:1,ta||(zg=c),i&&(Sn&&!O0&&l-Sn>200&&(Sn=0,Li("scrollEnd")),Nd=bx,bx=l),Ff<0){for(ea=n;ea-- >0;)qe[ea]&&qe[ea].update(0,i);Ff=1}else for(ea=0;ea<n;ea++)qe[ea]&&qe[ea].update(0,i);Ye.isUpdating=!1}au=0},Lg=[O5,M5,Mb,Ob,yn+Hd,yn+Id,yn+Fd,yn+Vd,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Hf=Lg.concat([ki,Ci,"boxSizing","max"+lc,"max"+zb,"position",yn,hs,hs+Fd,hs+Id,hs+Hd,hs+Vd]),O8=function(t,n,l){Jo(l);var i=t._gsap;if(i.spacerIsNative)Jo(i.spacerState);else if(t._gsap.swappedIn){var c=n.parentNode;c&&(c.insertBefore(t,n),c.removeChild(n))}t._gsap.swappedIn=!1},vx=function(t,n,l,i){if(!t._gsap.swappedIn){for(var c=Lg.length,u=n.style,h=t.style,f;c--;)f=Lg[c],u[f]=l[f];u.position=l.position==="absolute"?"absolute":"relative",l.display==="inline"&&(u.display="inline-block"),h[Mb]=h[Ob]="auto",u.flexBasis=l.flexBasis||"auto",u.overflow="visible",u.boxSizing="border-box",u[ki]=d0(t,sa)+gs,u[Ci]=d0(t,bs)+gs,u[hs]=h[yn]=h[M5]=h[O5]="0",Jo(i),h[ki]=h["max"+lc]=l[ki],h[Ci]=h["max"+zb]=l[Ci],h[hs]=l[hs],t.parentNode!==n&&(t.parentNode.insertBefore(n,t),n.appendChild(t)),t._gsap.swappedIn=!0}},M8=/([A-Z])/g,Jo=function(t){if(t){var n=t.t.style,l=t.length,i=0,c,u;for((t.t._gsap||be.core.getCache(t.t)).uncache=1;i<l;i+=2)u=t[i+1],c=t[i],u?n[c]=u:n[c]&&n.removeProperty(c.replace(M8,"-$1").toLowerCase())}},Kh=function(t){for(var n=Hf.length,l=t.style,i=[],c=0;c<n;c++)i.push(Hf[c],l[Hf[c]]);return i.t=t,i},z8=function(t,n,l){for(var i=[],c=t.length,u=l?8:0,h;u<c;u+=2)h=t[u],i.push(h,h in n?n[h]:t[u+1]);return i.t=t.t,i},qf={left:0,top:0},dA=function(t,n,l,i,c,u,h,f,p,x,b,v,w,j){Fs(t)&&(t=t(f)),za(t)&&t.substr(0,3)==="max"&&(t=v+(t.charAt(4)==="="?If("0"+t.substr(3),l):0));var N=w?w.time():0,A,S,C;if(w&&w.seek(0),isNaN(t)||(t=+t),kd(t))w&&(t=be.utils.mapRange(w.scrollTrigger.start,w.scrollTrigger.end,0,v,t)),h&&Vf(h,l,i,!0);else{Fs(n)&&(n=n(f));var T=(t||"0").split(" "),L,O,R,k;C=ha(n,f)||ht,L=zl(C)||{},(!L||!L.left&&!L.top)&&vn(C).display==="none"&&(k=C.style.display,C.style.display="block",L=zl(C),k?C.style.display=k:C.style.removeProperty("display")),O=If(T[0],L[i.d]),R=If(T[1]||"0",l),t=L[i.p]-p[i.p]-x+O+c-R,h&&Vf
vendor: 4,582 bytes, line 17
17(h,R,i,l-R<20||h._isStart&&R>20),l-=l-R}if(j&&(f[j]=t||-.001,t<0&&(t=0)),u){var E=t+l,z=u._isStart;A="scroll"+i.d2,Vf(u,E,i,z&&E>20||!z&&(b?Math.max(ht[A],Da[A]):u.parentNode[A])<=E+1),b&&(p=zl(h),b&&(u.style[i.op.p]=p[i.op.p]-i.op.m-u._offset+gs))}return w&&C&&(A=zl(C),w.seek(v),S=zl(C),w._caScrollDist=A[i.p]-S[i.p],t=t/w._caScrollDist*v),w&&w.seek(N),w?t:Math.round(t)},L8=/(webkit|moz|length|cssText|inset)/i,uA=function(t,n,l,i){if(t.parentNode!==n){var c=t.style,u,h;if(n===ht){t._stOrig=c.cssText,h=vn(t);for(u in h)!+u&&!L8.test(u)&&h[u]&&typeof c[u]=="string"&&u!=="0"&&(c[u]=h[u]);c.top=l,c.left=i}else c.cssText=t._stOrig;be.core.getCache(t).uncache=1,n.appendChild(t)}},I5=function(t,n,l){var i=n,c=i;return function(u){var h=Math.round(t());return h!==i&&h!==c&&Math.abs(h-i)>3&&Math.abs(h-c)>3&&(u=h,l&&l()),c=i,i=Math.round(u),i}},Xh=function(t,n,l){var i={};i[n.p]="+="+l,be.set(t,i)},hA=function(t,n){var l=Ur(t,n),i="_scroll"+n.p2,c=function u(h,f,p,x,b){var v=u.tween,w=f.onComplete,j={};p=p||l();var N=I5(l,p,function(){v.kill(),u.tween=0});return b=x&&b||0,x=x||h-p,v&&v.kill(),f[i]=h,f.inherit=!1,f.modifiers=j,j[i]=function(){return N(p+x*v.ratio+b*v.ratio*v.ratio)},f.onUpdate=function(){Ze.cache++,u.tween&&Vl()},f.onComplete=function(){u.tween=0,w&&w.call(v)},v=u.tween=be.to(t,f),v};return t[i]=l,l.wheelHandler=function(){return c.tween&&c.tween.kill()&&(c.tween=0)},As(t,"wheel",l.wheelHandler),Ye.isTouch&&As(t,"touchmove",l.wheelHandler),c},Ye=(function(){function a(n,l){Ro||a.register(be)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Rg(this),this.init(n,l)}var t=a.prototype;return t.init=function(l,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!_d){this.update=this.refresh=this.kill=al;return}l=lA(za(l)||kd(l)||l.nodeType?{trigger:l}:l,Gh);var c=l,u=c.onUpdate,h=c.toggleClass,f=c.id,p=c.onToggle,x=c.onRefresh,b=c.scrub,v=c.trigger,w=c.pin,j=c.pinSpacing,N=c.invalidateOnRefresh,A=c.anticipatePin,S=c.onScrubComplete,C=c.onSnapComplete,T=c.once,L=c.snap,O=c.pinReparent,R=c.pinSpacer,k=c.containerAnimation,E=c.fastScrollEnd,z=c.preventOverlaps,D=l.horizontal||l.containerAnimation&&l.horizontal!==!1?sa:bs,q=!b&&b!==0,V=ha(l.scroller||Xe),Z=be.core.getCache(V),ae=Mi(V),ee=("pinType"in l?l.pinType:Mr(V,"pinType")||ae&&"fixed")==="fixed",U=[l.onEnter,l.onLeave,l.onEnterBack,l.onLeaveBack],B=q&&l.toggleActions.split(" "),X="markers"in l?l.markers:Gh.markers,re=ae?0:parseFloat(vn(V)["border"+D.p2+lc])||0,P=this,Y=l.onRefreshInit&&function(){return l.onRefreshInit(P)},oe=_8(V,ae,D),ue=S8(V,ae),me=0,ke=0,Ve=0,tt=Ur(V,D),je,De,Yt,Je,ft,Ce,_e,Oe,Zt,te,zs,Aa,Za,St,Rn,Yn,Jt,rs,On,Rt,Ls,na,Ja,Gr,Gt,Gn,Pt,Ws,is,Wn,hl,Fe,$a,Ds,Bs,ps,en,tn,Mn;if(P._startClamp=P._endClamp=!1,P._dir=D,A*=45,P.scroller=V,P.scroll=k?k.time.bind(k):tt,Je=tt(),P.vars=l,i=i||l.animation,"refreshPriority"in l&&(N5=1,l.refreshPriority===-9999&&(qd=P)),Z.tweenScroll=Z.tweenScroll||{top:hA(V,bs),left:hA(V,sa)},P.tweenTo=je=Z.tweenScroll[D.p],P.scrubDuration=function(he){$a=kd(he)&&he,$a?Fe?Fe.duration(he):Fe=be.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:$a,paused:!0,onComplete:function(){return S&&S(P)}}):(Fe&&Fe.progress(1).kill(),Fe=0)},i&&(i.vars.lazy=!1,i._initted&&!P.isReverted||i.vars.immediateRender!==!1&&l.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),P.animation=i.pause(),i.scrollTrigger=P,P.scrubDuration(b),Wn=0,f||(f=i.vars.id)),L&&((!gi(L)||L.push)&&(L={snapTo:L}),"scrollBehavior"in ht.style&&be.set(ae?[ht,Da]:V,{scrollBehavior:"auto"}),Ze.forEach(function(he){return Fs(he)&&he.target===(ae?xt.scrollingElement||Da:V)&&(he.smooth=!1)}),Yt=Fs(L.snapTo)?L.snapTo:L.snapTo==="labels"?C8(i):L.snapTo==="labelsDirectional"?E8(i):L.directional!==!1?function(he,Re){return Lb(L.snapTo)(he,Us()-ke<500?0:Re.direction)}:be.utils.snap(L.snapTo),Ds=L.duration||{min:.1,max:2},Ds=gi(Ds)?Pd(Ds.min,Ds.max):Pd(Ds,Ds),Bs=be.delayedCall(L.delay||$a/2||.1,function(){var he=tt(),Re=Us()-ke<500,we=je.tween;if((Re||Math.abs(P.getVelocity())<10)&&!we&&!O0&&me!==he){var Ee=(he-Ce)/St,Wt=i&&!q?i.totalProgress():Ee,We=Re?0:(Wt-hl)/(Us()-Nd)*1e3||0,Ot=be.utils.clamp(-Ee,1-Ee,So(We/2)*We/.185),kt=Ee+(L.inertia===!1?0:Ot),Ue,He,it=L,Ks=it.onStart,Ct=it.onInterrupt,Xs=it.onComplete;if(Ue=Yt(kt,P),kd(Ue)||(Ue=kt),He=Math.max(0,Math.round(Ce+Ue*St)),he<=_e&&he>=Ce&&He!==he){if(we&&!we._initted&&we.data<=So(He-he))return;L.inertia===!1&&(Ot=Ue-Ee),je(He,{duration:Ds(So(Math.max(So(kt-Wt),So(Ue-Wt))*.185/We/.05||0)),ease:L.ease||"power3",data:So(He-he),onInterrupt:function(){return Bs.restart(!0)&&Ct&&_o(P,Ct)}
vendor: 6,204 bytes, line 17
17,onComplete:function(){P.update(),me=tt(),i&&!q&&(Fe?Fe.resetTo("totalProgress",Ue,i._tTime/i._tDur):i.progress(Ue)),Wn=hl=i&&!q?i.totalProgress():P.progress,C&&C(P),Xs&&_o(P,Xs)}},he,Ot*St,He-he-Ot*St),Ks&&_o(P,Ks,je.tween)}}else P.isActive&&me!==he&&Bs.restart(!0)}).pause()),f&&(Mg[f]=P),v=P.trigger=ha(v||w!==!0&&w),Mn=v&&v._gsap&&v._gsap.stRevert,Mn&&(Mn=Mn(P)),w=w===!0?v:ha(w),za(h)&&(h={targets:v,className:h}),w&&(j===!1||j===yn||(j=!j&&w.parentNode&&w.parentNode.style&&vn(w.parentNode).display==="flex"?!1:hs),P.pin=w,De=be.core.getCache(w),De.spacer?Rn=De.pinState:(R&&(R=ha(R),R&&!R.nodeType&&(R=R.current||R.nativeElement),De.spacerIsNative=!!R,R&&(De.spacerState=Kh(R))),De.spacer=rs=R||xt.createElement("div"),rs.classList.add("pin-spacer"),f&&rs.classList.add("pin-spacer-"+f),De.pinState=Rn=Kh(w)),l.force3D!==!1&&be.set(w,{force3D:!0}),P.spacer=rs=De.spacer,is=vn(w),Gr=is[j+D.os2],Rt=be.getProperty(w),Ls=be.quickSetter(w,D.a,gs),vx(w,rs,is),Jt=Kh(w)),X){Aa=gi(X)?lA(X,rA):rA,te=Wh("scroller-start",f,V,D,Aa,0),zs=Wh("scroller-end",f,V,D,Aa,0,te),On=te["offset"+D.op.d2];var Xl=ha(Mr(V,"content")||V);Oe=this.markerStart=Wh("start",f,Xl,D,Aa,On,0,k),Zt=this.markerEnd=Wh("end",f,Xl,D,Aa,On,0,k),k&&(tn=be.quickSetter([Oe,Zt],D.a,gs)),!ee&&!(il.length&&Mr(V,"fixedMarkers")===!0)&&(k8(ae?ht:V),be.set([te,zs],{force3D:!0}),Gn=be.quickSetter(te,D.a,gs),Ws=be.quickSetter(zs,D.a,gs))}if(k){var Te=k.vars.onUpdate,Ae=k.vars.onUpdateParams;k.eventCallback("onUpdate",function(){P.update(0,0,1),Te&&Te.apply(k,Ae||[])})}if(P.previous=function(){return qe[qe.indexOf(P)-1]},P.next=function(){return qe[qe.indexOf(P)+1]},P.revert=function(he,Re){if(!Re)return P.kill(!0);var we=he!==!1||!P.enabled,Ee=Ps;we!==P.isReverted&&(we&&(ps=Math.max(tt(),P.scroll.rec||0),Ve=P.progress,en=i&&i.progress()),Oe&&[Oe,Zt,te,zs].forEach(function(Wt){return Wt.style.display=we?"none":"block"}),we&&(Ps=P,P.update(we)),w&&(!O||!P.isActive)&&(we?O8(w,rs,Rn):vx(w,rs,vn(w),Gt)),we||P.update(we),Ps=Ee,P.isReverted=we)},P.refresh=function(he,Re,we,Ee){if(!((Ps||!P.enabled)&&!Re)){if(w&&he&&Sn){As(a,"scrollEnd",L5);return}!ta&&Y&&Y(P),Ps=P,je.tween&&!we&&(je.tween.kill(),je.tween=0),Fe&&Fe.pause(),N&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Qn){return Qn.vars.immediateRender&&Qn.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var Wt=oe(),We=ue(),Ot=k?k.duration():rl(V,D),kt=St<=.01||!St,Ue=0,He=Ee||0,it=gi(we)?we.end:l.end,Ks=l.endTrigger||v,Ct=gi(we)?we.start:l.start||(l.start===0||!v?0:w?"0 0":"0 100%"),Xs=P.pinnedContainer=l.pinnedContainer&&ha(l.pinnedContainer,P),wa=v&&Math.max(0,qe.indexOf(P))||0,Ut=wa,$t,It,la,Kn,Vt,Ke,Na,Fi,Xn,sn,an,Ql,Wr;for(X&&gi(we)&&(Ql=be.getProperty(te,D.p),Wr=be.getProperty(zs,D.p));Ut-- >0;)Ke=qe[Ut],Ke.end||Ke.refresh(0,1)||(Ps=P),Na=Ke.pin,Na&&(Na===v||Na===w||Na===Xs)&&!Ke.isReverted&&(sn||(sn=[]),sn.unshift(Ke),Ke.revert(!0,!0)),Ke!==qe[Ut]&&(wa--,Ut--);for(Fs(Ct)&&(Ct=Ct(P)),Ct=tA(Ct,"start",P),Ce=dA(Ct,v,Wt,D,tt(),Oe,te,P,We,re,ee,Ot,k,P._startClamp&&"_startClamp")||(w?-.001:0),Fs(it)&&(it=it(P)),za(it)&&!it.indexOf("+=")&&(~it.indexOf(" ")?it=(za(Ct)?Ct.split(" ")[0]:"")+it:(Ue=If(it.substr(2),Wt),it=za(Ct)?Ct:(k?be.utils.mapRange(0,k.duration(),k.scrollTrigger.start,k.scrollTrigger.end,Ce):Ce)+Ue,Ks=v)),it=tA(it,"end",P),_e=Math.max(Ce,dA(it||(Ks?"100% 0":Ot),Ks,Wt,D,tt()+Ue,Zt,zs,P,We,re,ee,Ot,k,P._endClamp&&"_endClamp"))||-.001,Ue=0,Ut=wa;Ut--;)Ke=qe[Ut]||{},Na=Ke.pin,Na&&Ke.start-Ke._pinPush<=Ce&&!k&&Ke.end>0&&($t=Ke.end-(P._startClamp?Math.max(0,Ke.start):Ke.start),(Na===v&&Ke.start-Ke._pinPush<Ce||Na===Xs)&&isNaN(Ct)&&(Ue+=$t*(1-Ke.progress)),Na===w&&(He+=$t));if(Ce+=Ue,_e+=Ue,P._startClamp&&(P._startClamp+=Ue),P._endClamp&&!ta&&(P._endClamp=_e||-.001,_e=Math.min(_e,rl(V,D))),St=_e-Ce||(Ce-=.01)&&.001,kt&&(Ve=be.utils.clamp(0,1,be.utils.normalize(Ce,_e,ps))),P._pinPush=He,Oe&&Ue&&($t={},$t[D.a]="+="+Ue,Xs&&($t[D.p]="-="+tt()),be.set([Oe,Zt],$t)),w&&!(Og&&P.end>=rl(V,D)))$t=vn(w),Kn=D===bs,la=tt(),na=parseFloat(Rt(D.a))+He,!Ot&&_e>1&&(an=(ae?xt.scrollingElement||Da:V).style,an={style:an,value:an["overflow"+D.a.toUpperCase()]},ae&&vn(ht)["overflow"+D.a.toUpperCase()]!=="scroll"&&(an.style["overflow"+D.a.toUpperCase()]="scroll")),vx(w,rs,$t),Jt=Kh(w),It=zl(w,!0),Fi=ee&&Ur(V,Kn?sa:bs)(),j?(Gt=[j+D.os2,St+He+gs],Gt.t=rs,Ut=j===hs?d0(w,D)+St+He:0,Ut&&(Gt.push(D.d,Ut+gs),rs.style.flexBasis!=="auto"&&(rs.style.flexBasis=Ut+gs)),Jo(Gt),Xs&&qe.forEach(function(Qn){Qn.pin===Xs&&Qn.vars.pinSpacing!==!1&&(Qn._subPinOffset=!0)}),ee&&tt(ps)):(Ut=d0(w,D),Ut&&rs.style.flexBasis!=="auto"&&(rs.style.flexBasis=Ut+gs)),ee&&(Vt={top:It.top+(Kn?la-Ce:Fi)+gs,left:It.left+(Kn?Fi:la-Ce)+gs,boxSizing:"border-box",position:"fixed"},Vt[ki]=Vt["max"+lc]=Math.ceil(It.width)+gs,Vt[Ci]=Vt["max"+zb]=Math.ceil(It.height)+gs,Vt[yn]=Vt[yn+Fd]=Vt[yn+Id]=Vt[yn+Hd]=Vt[yn+Vd]="0",Vt[hs]=$t[hs],Vt[hs+Fd]=$t[hs+Fd],Vt[hs+Id]=$t[hs+Id],Vt[hs+Hd]=$t[hs+Hd],Vt[hs+Vd]=$t[hs+Vd],Yn=z8(Rn,Vt,O),ta&&tt(0)),i?(Xn=i._initted,xx(1),i.render(i.duration(),!0,!0),Ja=Rt(D.a)-na+St+He,Pt=Math.abs(St-Ja)>1,ee&&Pt&&Yn.splice(Yn.length-2,2),i.render(0,!0,!0),Xn||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),xx(0)):Ja=St,an&&(an.value?an.style["overflow"+D.a.toUpperCase()]=an.value:an.style.removeProperty("overflow-"+D.a));else if(v&&tt()&&!k)for(It=v.parentNode;It&&It!==ht;)It._pinOffset&&(Ce-=It._pinOffset,_e-=It._pinOffset),It=It.parentNode;sn&&sn.forEach(function(Qn){return Qn.revert(!1,!0)}),P.start=Ce,P.end=_e,Je=ft=ta?ps:tt(),!k&&!ta&&(Je<ps&&tt(ps),P.scroll.rec=0),P.revert(!1,!0),ke=Us(),Bs&&(me=-1,Bs.restart(!0)),Ps=0,i&&q&&(i._initted||en)&&i.progress()!==en&&i.progress(en||0,!0).render(i.time(),!0,!0),(kt||Ve!==P.progress||k||N||i&&!i._initted)&&(i&&!q&&(i._initted||Ve||i.vars.immediateRender!==!1)&&i.totalProgress(k&&Ce<-.001&&!Ve?be.utils.normalize(Ce,_e,0):Ve,!0),P.progress=kt||(Je-Ce)/St===Ve?0:Ve),w&&j&&(rs._pinOffset=Math.round(P.progress*Ja)),Fe&&Fe.invalidate(),isNaN(Ql)||(Ql-=be.getProperty(te,D.p),Wr-=be.getProperty(zs,D.p),Xh(te,D,Ql),Xh(Oe,D,Ql-(Ee||0)),Xh(zs,D,Wr),Xh(Zt,D,Wr-(Ee||0))),kt&&!ta&&P.update(
vendor: 9,190 bytes, line 17
17),x&&!ta&&!Za&&(Za=!0,x(P),Za=!1)}},P.getVelocity=function(){return(tt()-ft)/(Us()-Nd)*1e3||0},P.endAnimation=function(){pd(P.callbackAnimation),i&&(Fe?Fe.progress(1):i.paused()?q||pd(i,P.direction<0,1):pd(i,i.reversed()))},P.labelToScroll=function(he){return i&&i.labels&&(Ce||P.refresh()||Ce)+i.labels[he]/i.duration()*St||0},P.getTrailing=function(he){var Re=qe.indexOf(P),we=P.direction>0?qe.slice(0,Re).reverse():qe.slice(Re+1);return(za(he)?we.filter(function(Ee){return Ee.vars.preventOverlaps===he}):we).filter(function(Ee){return P.direction>0?Ee.end<=Ce:Ee.start>=_e})},P.update=function(he,Re,we){if(!(k&&!we&&!he)){var Ee=ta===!0?ps:P.scroll(),Wt=he?0:(Ee-Ce)/St,We=Wt<0?0:Wt>1?1:Wt||0,Ot=P.progress,kt,Ue,He,it,Ks,Ct,Xs,wa;if(Re&&(ft=Je,Je=k?tt():Ee,L&&(hl=Wn,Wn=i&&!q?i.totalProgress():We)),A&&w&&!Ps&&!Fh&&Sn&&(!We&&Ce<Ee+(Ee-ft)/(Us()-Nd)*A?We=1e-4:We===1&&_e>Ee+(Ee-ft)/(Us()-Nd)*A&&(We=.9999)),We!==Ot&&P.enabled){if(kt=P.isActive=!!We&&We<1,Ue=!!Ot&&Ot<1,Ct=kt!==Ue,Ks=Ct||!!We!=!!Ot,P.direction=We>Ot?1:-1,P.progress=We,Ks&&!Ps&&(He=We&&!Ot?0:We===1?1:Ot===1?2:3,q&&(it=!Ct&&B[He+1]!=="none"&&B[He+1]||B[He],wa=i&&(it==="complete"||it==="reset"||it in i))),z&&(Ct||wa)&&(wa||b||!i)&&(Fs(z)?z(P):P.getTrailing(z).forEach(function(la){return la.endAnimation()})),q||(Fe&&!Ps&&!Fh?(Fe._dp._time-Fe._start!==Fe._time&&Fe.render(Fe._dp._time-Fe._start),Fe.resetTo?Fe.resetTo("totalProgress",We,i._tTime/i._tDur):(Fe.vars.totalProgress=We,Fe.invalidate().restart())):i&&i.totalProgress(We,!!(Ps&&(ke||he)))),w){if(he&&j&&(rs.style[j+D.os2]=Gr),!ee)Ls(Sd(na+Ja*We));else if(Ks){if(Xs=!he&&We>Ot&&_e+1>Ee&&Ee+1>=rl(V,D),O)if(!he&&(kt||Xs)){var Ut=zl(w,!0),$t=Ee-Ce;uA(w,ht,Ut.top+(D===bs?$t:0)+gs,Ut.left+(D===bs?0:$t)+gs)}else uA(w,rs);Jo(kt||Xs?Yn:Jt),Pt&&We<1&&kt||Ls(na+(We===1&&!Xs?Ja:0))}}L&&!je.tween&&!Ps&&!Fh&&Bs.restart(!0),h&&(Ct||T&&We&&(We<1||!gx))&&su(h.targets).forEach(function(la){return la.classList[kt||T?"add":"remove"](h.className)}),u&&!q&&!he&&u(P),Ks&&!Ps?(q&&(wa&&(it==="complete"?i.pause().totalProgress(1):it==="reset"?i.restart(!0).pause():it==="restart"?i.restart(!0):i[it]()),u&&u(P)),(Ct||!gx)&&(p&&Ct&&_o(P,p),U[He]&&_o(P,U[He]),T&&(We===1?P.kill(!1,1):U[He]=0),Ct||(He=We===1?1:3,U[He]&&_o(P,U[He]))),E&&!kt&&Math.abs(P.getVelocity())>(kd(E)?E:2500)&&(pd(P.callbackAnimation),Fe?Fe.progress(1):pd(i,it==="reverse"?1:!We,1))):q&&u&&!Ps&&u(P)}if(Ws){var It=k?Ee/k.duration()*(k._caScrollDist||0):Ee;Gn(It+(te._isFlipped?1:0)),Ws(It)}tn&&tn(-Ee/k.duration()*(k._caScrollDist||0))}},P.enable=function(he,Re){P.enabled||(P.enabled=!0,As(V,"resize",Cd),ae||As(V,"scroll",ko),Y&&As(a,"refreshInit",Y),he!==!1&&(P.progress=Ve=0,Je=ft=me=tt()),Re!==!1&&P.refresh())},P.getTween=function(he){return he&&je?je.tween:Fe},P.setPositions=function(he,Re,we,Ee){if(k){var Wt=k.scrollTrigger,We=k.duration(),Ot=Wt.end-Wt.start;he=Wt.start+Ot*he/We,Re=Wt.start+Ot*Re/We}P.refresh(!1,!1,{start:sA(he,we&&!!P._startClamp),end:sA(Re,we&&!!P._endClamp)},Ee),P.update()},P.adjustPinSpacing=function(he){if(Gt&&he){var Re=Gt.indexOf(D.d)+1;Gt[Re]=parseFloat(Gt[Re])+he+gs,Gt[1]=parseFloat(Gt[1])+he+gs,Jo(Gt)}},P.disable=function(he,Re){if(he!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,Re||Fe&&Fe.pause(),ps=0,De&&(De.uncache=1),Y&&vs(a,"refreshInit",Y),Bs&&(Bs.pause(),je.tween&&je.tween.kill()&&(je.tween=0)),!ae)){for(var we=qe.length;we--;)if(qe[we].scroller===V&&qe[we]!==P)return;vs(V,"resize",Cd),ae||vs(V,"scroll",ko)}},P.kill=function(he,Re){P.disable(he,Re),Fe&&!Re&&Fe.kill(),f&&delete Mg[f];var we=qe.indexOf(P);we>=0&&qe.splice(we,1),we===ea&&Ff>0&&ea--,we=0,qe.forEach(function(Ee){return Ee.scroller===P.scroller&&(we=1)}),we||ta||(P.scroll.rec=0),i&&(i.scrollTrigger=null,he&&i.revert({kill:!1}),Re||i.kill()),Oe&&[Oe,Zt,te,zs].forEach(function(Ee){return Ee.parentNode&&Ee.parentNode.removeChild(Ee)}),qd===P&&(qd=0),w&&(De&&(De.uncache=1),we=0,qe.forEach(function(Ee){return Ee.pin===w&&we++}),we||(De.spacer=0)),l.onKill&&l.onKill(P)},qe.push(P),P.enable(!1,!1),Mn&&Mn(P),i&&i.add&&!St){var ot=P.update;P.update=function(){P.update=ot,Ze.cache++,Ce||_e||P.refresh()},be.delayedCall(.01,P.update),St=.01,Ce=_e=0}else P.refresh();w&&R8()},a.register=function(l){return Ro||(be=l||E5(),C5()&&window.document&&a.enable(),Ro=_d),Ro},a.defaults=function(l){if(l)for(var i in l)Gh[i]=l[i];return Gh},a.disable=function(l,i){_d=0,qe.forEach(function(u){return u[i?"kill":"disable"](l)}),vs(Xe,"wheel",ko),vs(xt,"scroll",ko),clearInterval(Vh),vs(xt,"touchcancel",al),vs(ht,"touchstart",al),qh(vs,xt,"pointerdown,touchstart,mousedown",aA),qh(vs,xt,"pointerup,touchend,mouseup",nA),c0.kill(),Hh(vs);for(var c=0;c<Ze.length;c+=3)Yh(vs,Ze[c],Ze[c+1]),Yh(vs,Ze[c],Ze[c+2])},a.enable=function(){if(Xe=window,xt=document,Da=xt.documentElement,ht=xt.body,be){if(su=be.utils.toArray,Pd=be.utils.clamp,Rg=be.core.context||al,xx=be.core.suppressOverwrites||al,Tb=Xe.history.scrollRestoration||"auto",zg=Xe.pageYOffset||0,be.core.globals("ScrollTrigger",a),ht){_d=1,Zo=document.createElement("div"),Zo.style.height="100vh",Zo.style.position="absolute",U5(),N8(),ns.register(be),a.isTouch=ns.isTouch,Ar=ns.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Tg=ns.isTouch===1,As(Xe,"wheel",ko),Eb=[Xe,xt,Da,ht],be.matchMedia?(a.matchMedia=function(x){var b=be.matchMedia(),v;for(v in x)b.add(v,x[v]);return b},be.addEventListener("matchMediaInit",function(){B5(),Db()}),be.addEventListener("matchMediaRevert",function(){return D5()}),be.addEventListener("matchMedia",function(){vi(0,1),Li("matchMedia")}),be.matchMedia().add("(orientation: portrait)",function(){return yx(),yx})):console.warn("Requires GSAP 3.11.0 or later"),yx(),As(xt,"scroll",ko);var l=ht.hasAttribute("style"),i=ht.style,c=i.borderTopStyle,u=be.core.Animation.prototype,h,f;for(u.revert||Object.defineProperty(u,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",h=zl(ht),bs.m=Math.round(h.top+bs.sc())||0,sa.m=Math.round(h.left+sa.sc())||0,c?i.borderTopStyle=c:i.removeProperty("border-top-style"),l||(ht.setAttribute("style",""),ht.removeAttribute("style")),Vh=setInterval(iA,250),be.delayedCall(.5,function(){return Fh=0}),As(xt,"touchcancel",al),As(ht,"touchstart",al),qh(As,xt,"pointerdown,touchstart,mousedown",aA),qh(As,xt,"pointerup,touchend,mouseup",nA),Eg=be.utils.checkPrefix("transform"),Hf.push(Eg),Ro=Us(),c0=be.delayedCall(.2,vi).pause(),Oo=[xt,"visibilitychange",function(){var x=Xe.innerWidth,b=Xe.innerHeight;xt.hidden?($j=x,eA=b):($j!==x||eA!==b)&&Cd()},xt,"DOMContentLoaded",vi,Xe,"load",vi,Xe,"resize",Cd],Hh(As),qe.forEach(function(x){return x.enable(0,1)}),f=0;f<Ze.length;f+=3)Yh(vs,Ze[f],Ze[f+1]),Yh(vs,Ze[f],Ze[f+2])}else if(xt){var p=function x(){a.enable(),xt.removeEventListener("DOMContentLoaded",x)};xt.addEventListener("DOMContentLoaded",p)}}},a.config=function(l){"limitCallbacks"in l&&(gx=!!l.limitCallbacks);var i=l.syncInterval;i&&clearInterval(Vh)||(Vh=i)&&setInterval(iA,i),"ignoreMobileResize"in l&&(Tg=a.isTouch===1&&l.ignoreMobileResize),"autoRefreshEvents"in l&&(Hh(vs)||Hh(As,l.autoRefreshEvents||"none"),_5=(l.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(l,i){var c=ha(l),u=Ze.indexOf(c),h=Mi(c);~u&&Ze.splice(u,h?6:2),i&&(h?il.unshift(Xe,i,ht,i,Da,i):il.unshift(c,i))},a.clearMatchMedia=function(l){qe.forEach(function(i){return i._ctx&&i._ctx.query===l&&i._ctx.kill(!0,!0)})},a.isInViewport=function(l,i,c){var u=(za(l)?ha(l):l).getBoundingClientRect(),h=u[c?ki:Ci]*i||0;return c?u.right-h>0&&u.left+h<Xe.innerWidth:u.bottom-h>0&&u.top+h<Xe.innerHeight},a.positionInViewport=function(l,i,c){za(l)&&(l=ha(l));var u=l.getBoundingClientRect(),h=u[c?ki:Ci],f=i==null?h/2:i in u0?u0[i]*h:~i.indexOf("%")?parseFloat(i)*h/100:parseFloat(i)||0;return c?(u.left+f)/Xe.innerWidth:(u.top+f)/Xe.innerHeight},a.killAll=function(l){if(qe.slice(0).forEach(function(c){return c.vars.id!=="ScrollSmoother"&&c.kill()}),l!==!0){var i=zi.killAll||[];zi={},i.forEach(function(c){return c()})}},a})();Ye.version="3.15.0";Ye.saveStyles=function(a){return a?su(a).forEach(function(t){if(t&&t.style){var n=Ma.indexOf(t);n>=0&&Ma.splice(n,5),Ma.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),be.core.getCache(t),Rg())}}):Ma};Ye.revert=function(a,t){return Db(!a,t)};Ye.create=function(a,t){return new Ye(a,t)};Ye.refresh=function(a){return a?Cd(!0):(Ro||Ye.register())&&vi(!0)};Ye.update=function(a){return++Ze.cache&&Vl(a===!0?2:0)};Ye.clearScrollMemory=P5;Ye.maxScroll=function(a,t){return rl(a,t?sa:bs)};Ye.getScrollFunc=function(a,t){return Ur(ha(a),t?sa:bs)};Ye.getById=function(a){return Mg[a]};Ye.getAll=function(){return qe.filter(function(a){return a.vars.id!=="ScrollSmoother"})};Ye.isScrolling=function(){return!!Sn};Ye.snapDirectional=Lb;Ye.addEventListener=function(a,t){var n=zi[a]||(zi[a]=[]);~n.indexOf(t)||n.push(t)};Ye.removeEventListener=function(a,t){var n=zi[a],l=n&&n.indexOf(t);l>=0&&n.splice(l,1)};Ye.batch=function(a,t){var n=[],l={},i=t.interval||.016,c=t.batchMax||1e9,u=function(p,x){var b=[],v=[],w=be.delayedCall(i,function(){x(b,v),b=[],v=[]}).pause();return function(j){b.length||w.restart(!0),b.push(j.trigger),v.push(j),c<=b.length&&w.progress(1)}},h;
vendor: 2,895 bytes, line 17
17for(h in t)l[h]=h.substr(0,2)==="on"&&Fs(t[h])&&h!=="onRefreshInit"?u(h,t[h]):t[h];return Fs(c)&&(c=c(),As(Ye,"refresh",function(){return c=t.batchMax()})),su(a).forEach(function(f){var p={};for(h in l)p[h]=l[h];p.trigger=f,n.push(Ye.create(p))}),n};var fA=function(t,n,l,i){return n>i?t(i):n<0&&t(0),l>i?(i-n)/(l-n):l<0?n/(n-l):1},jx=function a(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(ns.isTouch?" pinch-zoom":""):"none",t===Da&&a(ht,n)},Qh={auto:1,scroll:1},D8=function(t){var n=t.event,l=t.target,i=t.axis,c=(n.changedTouches?n.changedTouches[0]:n).target,u=c._gsap||be.core.getCache(c),h=Us(),f;if(!u._isScrollT||h-u._isScrollT>2e3){for(;c&&c!==ht&&(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth||!(Qh[(f=vn(c)).overflowY]||Qh[f.overflowX]));)c=c.parentNode;u._isScroll=c&&c!==l&&!Mi(c)&&(Qh[(f=vn(c)).overflowY]||Qh[f.overflowX]),u._isScrollT=h}(u._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},V5=function(t,n,l,i){return ns.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&D8,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return l&&As(xt,ns.eventTypes[0],pA,!1,!0)},onDisable:function(){return vs(xt,ns.eventTypes[0],pA,!0)}})},B8=/(input|label|select|textarea)/i,mA,pA=function(t){var n=B8.test(t.target.tagName);(n||mA)&&(t._gsapAllow=!0,mA=n)},P8=function(t){gi(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var n=t,l=n.normalizeScrollX,i=n.momentum,c=n.allowNestedScroll,u=n.onRelease,h,f,p=ha(t.target)||Da,x=be.core.globals().ScrollSmoother,b=x&&x.get(),v=Ar&&(t.content&&ha(t.content)||b&&t.content!==!1&&!b.smooth()&&b.content()),w=Ur(p,bs),j=Ur(p,sa),N=1,A=(ns.isTouch&&Xe.visualViewport?Xe.visualViewport.scale*Xe.visualViewport.width:Xe.outerWidth)/Xe.innerWidth,S=0,C=Fs(i)?function(){return i(h)}:function(){return i||2.8},T,L,O=V5(p,t.type,!0,c),R=function(){return L=!1},k=al,E=al,z=function(){f=rl(p,bs),E=Pd(Ar?1:0,f),l&&(k=Pd(0,rl(p,sa))),T=Ei},D=function(){v._gsap.y=Sd(parseFloat(v._gsap.y)+w.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",w.offset=w.cacheID=0},q=function(){if(L){requestAnimationFrame(R);var X=Sd(h.deltaY/2),re=E(w.v-X);if(v&&re!==w.v+w.offset){w.offset=re-w.v;var P=Sd((parseFloat(v&&v._gsap.y)||0)-w.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+P+", 0, 1)",v._gsap.y=P+"px",w.cacheID=Ze.cache,Vl()}return!0}w.offset&&D(),L=!0},V,Z,ae,ee,U=function(){z(),V.isActive()&&V.vars.scrollY>f&&(w()>f?V.progress(1)&&w(f):V.resetTo("scrollY",f))};return v&&be.set(v,{y:"+=0"}),t.ignoreCheck=function(B){return Ar&&B.type==="touchmove"&&q()||N>1.05&&B.type!=="touchstart"||h.isGesturing||B.touches&&B.touches.length>1},t.onPress=function(){L=!1;var B=N;
17N=Sd((Xe.visualViewport&&Xe.visualViewport.scale||1)/A),V.pause(),B!==N&&jx(p,N>1.01?!0:l?!1:"x"),Z=j(),ae=w(),z(),T=Ei},t.onRelease=t.onGestureStart=function(B,X){if(w.offset&&D(),!X)ee.restart(!0);else{Ze.cache++;var re=C(),P,Y;l&&(P=j(),Y=P+re*.05*-B.velocityX/.227,re*=fA(j,P,Y,rl(p,sa)),V.vars.scrollX=k(Y)),P=w(),Y=P+re*.05*-B.velocityY/.227,re*=fA(w,P,Y,rl(p,bs)),V.vars.scrollY=E(Y),V.invalidate().duration(re).play(.01),(Ar&&V.vars.scrollY>=f||P>=f-1)&&be.to({},{onUpdate:U,duration:re})}u&&u(B)},t.onWheel=function(){V._ts&&V.pause(),Us()-S>1e3&&(T=0,S=Us())},t.onChange=function(B,X,re,P,Y){if(Ei!==T&&z(),X&&l&&j(k(P[2]===X?Z+(B.startX-B.x):j()+X-P[1])),re){w.offset&&D();var oe=Y[2]===re,ue=oe?ae+B.startY-B.y:w()+re-Y[1],me=E(ue);oe&&ue!==me&&(ae+=me-ue),w(me)}(re||X)&&Vl()},t.onEnable=function(){jx(p,l?!1:"x"),Ye.addEventListener("refresh",U),As(Xe,"resize",U),w.smooth&&(w.target.style.scrollBehavior="auto",w.smooth=j.smooth=!1),O.enable()},t.onDisable=function(){jx(p,!0),vs(Xe,"resize",U),Ye.removeEventListener("refresh",U),O.kill()},t.lockAxis=t.lockAxis!==!1,h=new ns(t),h.iOS=Ar,Ar&&!w()&&w(1),Ar&&be.ticker.add(al),ee=h._dc,V=be.to(h,{ease:"power4",paused:!0,inherit:!1,scrollX:l?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:I5(w,w(),function(){return V.pause()})},onUpdate:Vl,onComplete:ee.vars.onComplete}),h};Ye.sort=function(a){if(Fs(a))return qe.sort(a);var t=Xe.pageYOffset||0;return Ye.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+Xe.innerHeight}),qe.sort(a||function(n,l){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((l.vars.containerAnimation?1e6:l._sortY)+(l.vars.refreshPriority||0)*-1e6)})};Ye.observe=function(a){return new ns(a)};Ye.normalizeScroll=function(a){if(typeof a>"u")return $s;if(a===!0&&$s)return $s.enable();if(a===!1){$s&&$s.kill(),$s=a;return}var t=a instanceof ns?a:P8(a);return $s&&$s.target===t.target&&$s.kill(),Mi(t.target)&&($s=t),t};Ye.core={_getVelocityProp:Cg,_inputObserver:V5,_scrollers:Ze,_proxies:il,bridge:{ss:function(){Sn||Li("scrollStart"),Sn=Us()},ref:function(){return Ps}}};E5()&&be.registerPlugin(Ye);var F5={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xA=de.createContext&&de.createContext(F5),U8=["attr","size","title"];function I8(a,t){if(a==null)return{};var n=V8(a,t),l,i;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(i=0;i<c.length;i++)l=c[i],!(t.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(a,l)&&(n[l]=a[l])}return n}function V8(a,t){if(a==null)return{};var n={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){if(t.indexOf(l)>=0)continue;n[l]=a[l]}return n}function h0(){return h0=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(a[l]=n[l])}return a},h0.apply(this,arguments)}function gA(a,t){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);t&&(l=l.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),n.push.apply(n,l)}return n}function f0(a){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gA(Object(n),!0).forEach(function(l){F8(a,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(n,l))})}return a}function F8(a,t,n){return t=H8(t),t in a?Object.defineProperty(a,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[t]=n,a}function H8(a){var t=q8(a,"string");return typeof t=="symbol"?t:t+""}function q8(a,t){if(typeof a!="object"||!a)return a;var n=a[Symbol.toPrimitive];if(n!==void 0){var l=n.call(a,t);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(a)}function H5(a){return a&&a.map((t,n)=>de.createElement(t.tag,f0({key:n},t.attr),H5(t.child)))}function ie(a){return t=>de.createElement(Y8,h0({attr:f0({},a.attr)},t),H5(a.child))}function Y8(a){var t=n=>{var{attr:l,size:i,title:c}=a,u=I8(a,U8),h=i||n.size||"1em",f;return n.className&&(f=n.className),a.className&&(f=(f?f+" ":"")+a.className),de.createElement("svg",h0({stroke:"currentColor",fill:"
17currentColor",strokeWidth:"0"},n.attr,l,u,{className:f,style:f0(f0({color:a.color||n.color},n.style),a.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),c&&de.createElement("title",null,c),a.children)};return xA!==void 0?de.createElement(xA.Consumer,null,n=>t(n)):t(F5)}function G8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(a)}function Ts(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(a)}function UB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(a)}function IB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"17",y1:"7",x2:"7",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 17 7 17 7 7"},child:[]}]})(a)}function VB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(a)}function m0(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(a)}function dl(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(a)}function FB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"16 12 12 8 8 12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"8"},child:[]}]})(a)}function HB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"},child:[]},{tag:"polyline",attr:{points:"7 7 17 7 17 17"},child:[]}]})(a)}function qB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"8",r:"7"},child:[]},{tag:"polyline",attr:{points:"8.21 13.89 7 23 12 20 17 23 15.79 13.88"},child:[]}]})(a)}function W8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"14"},child:[]}]})(a)}function YB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"},child:[]},{tag:"path",attr:{d:"M13.73 21a2 2 0 0 1-3.46 0"},child:[]}]})(a)}function q5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"},child:[]},{tag:"path",attr:{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"},child:[]}]})(a)}function GB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(a)}function Y5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"},child:[]}]})(a)}function p0(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(a)}function x0(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},child:[]},{tag:"polyline",attr:{points:"22 4 12 14.01 9 11.01"},child:[]}]})(a)}function K8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 11 12 14 22 4"},child:[]},{tag:"path",attr:{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"},child:[]}]})(a)}function X8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(a)}
17function jr(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(a)}function Q8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"},child:[]}]})(a)}function G5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(a)}function Z8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},child:[]},{tag:"rect",attr:{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},child:[]}]})(a)}function Ed(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polyline",attr:{points:"12 6 12 12 16 14"},child:[]}]})(a)}function WB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"},child:[]}]})(a)}function J8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}
17,child:[{tag:"path",attr:{d:"M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"},child:[]}]})(a)}function KB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polygon",attr:{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"},child:[]}]})(a)}function XB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},child:[]}]})(a)}function Bb(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"4",y:"4",width:"16",height:"16",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"9",y:"9",width:"6",height:"6"},child:[]},{tag:"line",attr:{x1:"9",y1:"1",x2:"9",y2:"4"},child:[]},{tag:"line",attr:{x1:"15",y1:"1",x2:"15",y2:"4"},child:[]},{tag:"line",attr:{x1:"9",y1:"20",x2:"9",y2:"23"},child:[]},{tag:"line",attr:{x1:"15",y1:"20",x2:"15",y2:"23"},child:[]},{tag:"line",attr:{x1:"20",y1:"9",x2:"23",y2:"9"},child:[]},{tag:"line",attr:{x1:"20",y1:"14",x2:"23",y2:"14"},child:[]},{tag:"line",attr:{x1:"1",y1:"9",x2:"4",y2:"9"},child:[]},{tag:"line",attr:{x1:"1",y1:"14",x2:"4",y2:"14"},child:[]}]})(a)}function bA(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"1",y1:"10",x2:"23",y2:"10"},child:[]}]})(a)}function QB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"},child:[]},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"},child:[]},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"},child:[]}]})(a)}function $8(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"23"},child:[]},{tag:"path",attr:{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"},child:[]}]})(a)}function ZB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(a)}function JB(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"},child:[]}]})(a)}function W5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 20h9"},child:[]},{tag:"path",attr:{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},child:[]}]})(a)}function $B(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(a)}function nu(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"},child:[]},{tag:"line",attr:{x1:"1",y1:"1",x2:"23",y2:"23"},child:[]}]})(a)}function lu(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]}]})(a)}function eP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"},child:[]},{tag:"line",attr:{x1:"16",y1:"8",x2:"2",y2:"22"},child:[]},{tag:"line",attr:{x1:"17.5",y1:"15",x2:"9",y2:"15"},child:[]}]})(a)}function K5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"},child:[]},{tag:"polyline",attr:{points:"14 2 14 8 20 8"},child:[]},{tag:"line",attr:{x1:"16",y1:"13",x2:"8",y2:"13"},child:[]},{tag:"line",attr:{x1:"16",y1:"17",x2:"8",y2:"17"},child:[]},{tag:"polyline",attr:{points:"10 9 9 9 8 9"},child:[]}]})(a)}function tP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},child:[]},{tag:"polyline",attr:{points:"13 2 13 9 20 9"},child:[]}]})(a)}function eT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},child:[]}]})(a)}function tT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"18",cy:"18",r:"3"},child:[]},{tag:"circle",attr:{cx:"6",cy:"6",r:"3"},child:[]},{tag:"path",attr:{d:"M6 21V9a9 9 0 0 0 9 9"},child:[]}]})(a)}function Pb(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"path",attr:{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"},child:[]}]})(a)}function sP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"4",y1:"9",x2:"20",y2:"9"},child:[]},{tag:"line",attr:{x1:"4",y1:"15",x2:"20",y2:"15"},child:[]},{tag:"line",attr:{x1:"10",y1:"3",x2:"8",y2:"21"},child:[]},{tag:"line",attr:{x1:"16",y1:"3",x2:"14",y2:"21"},child:[]}]})(a)}function X5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 18v-6a9 9 0 0 1 18 0v6"},child:[]},{tag:"path",attr:{d:"M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"},child:[]}]})(a)}function aP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"},child:[]}]})(a)}function nP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(a)}function Q5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},child:[]},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"}
17,child:[]}]})(a)}function sT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(a)}function lP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"},child:[]}]})(a)}function rP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 2 7 12 12 22 7 12 2"},child:[]},{tag:"polyline",attr:{points:"2 17 12 22 22 17"},child:[]},{tag:"polyline",attr:{points:"2 12 12 17 22 12"},child:[]}]})(a)}function iP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"3",y1:"9",x2:"21",y2:"9"},child:[]},{tag:"line",attr:{x1:"9",y1:"21",x2:"9",y2:"9"},child:[]}]})(a)}function oP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"4"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"9.17",y2:"9.17"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"14.83",x2:"19.07",y2:"19.07"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"9.17",x2:"19.07",y2:"4.93"},child:[]},{tag:"line",attr:{x1:"14.83",y1:"9.17",x2:"18.36",y2:"5.64"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"19.07",x2:"9.17",y2:"14.83"},child:[]}]})(a)}function cP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"},child:[]},{tag:"path",attr:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"},child:[]}]})(a)}function dP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"8",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"8",y1:"18",x2:"21",y2:"18"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"3.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"12",x2:"3.01",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"3.01",y2:"18"},child:[]}]})(a)}function aT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"2",x2:"12",y2:"6"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12",y2:"22"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"},child:[]},{tag:"line",attr:{x1:"2",y1:"12",x2:"6",y2:"12"},child:[]},{tag:"line",attr:{x1:"18",y1:"12",x2:"22",y2:"12"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"},child:[]},{tag:"line",attr:{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"},child:[]}]})(a)}function Di(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"},child:[]}]})(a)}function nT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"},child:[]},{tag:"polyline",attr:{points:"10 17 15 12 10 7"},child:[]},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"},child:[]}]})(a)}function lT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(a)}function Yl(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"},child:[]},{tag:"polyline",attr:{points:"22,6 12,13 2,6"},child:[]}]})(a)}function rT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"10",r:"3"},child:[]}]})(a)}function iT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"18"},child:[]},{tag:"line",attr:{x1:"16",y1:"6",x2:"16",y2:"22"},child:[]}]})(a)}function Ub(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(a)}function uP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},child:[]}]})(a)}function Z5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(a)}function hP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"},child:[]},{tag:"path",attr:{d:"M19 10v2a7 7 0 0 1-14 0v-2"},child:[]},{tag:"line",attr:{x1:"12",y1:"19",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"8",y1:"23",x2:"16",y2:"23"},child:[]}]})(a)}function oT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"},child:[]},{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},child:[]},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"},child:[]},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"},child:[]}]})(a)}function fP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"6",y:"4",width:"4",height:"16"},child:[]},{tag:"rect",attr:{x:"14",y:"4",width:"4",height:"16"},child:[]}]})(a)}function cT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 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"}
17,child:[]}]})(a)}function mP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"19 1 23 5 19 9"},child:[]},{tag:"line",attr:{x1:"15",y1:"5",x2:"23",y2:"5"},child:[]},{tag:"path",attr:{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"},child:[]}]})(a)}function pP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"23",y1:"1",x2:"17",y2:"7"},child:[]},{tag:"line",attr:{x1:"17",y1:"1",x2:"23",y2:"7"},child:[]},{tag:"path",attr:{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"},child:[]}]})(a)}function xP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 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.91"},child:[]},{tag:"line",attr:{x1:"23",y1:"1",x2:"1",y2:"23"},child:[]}]})(a)}function mc(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{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"},child:[]}]})(a)}function gP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"polygon",attr:{points:"10 8 16 12 10 16 10 8"},child:[]}]})(a)}function bP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 3 19 12 5 21 5 3"},child:[]}]})(a)}function yP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"16"},child:[]},{tag:"line",attr:{x1:"8",y1:"12",x2:"16",y2:"12"},child:[]}]})(a)}function vP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"},child:[]},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]}]})(a)}function Ib(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(a)}function jP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(a)}function AP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(a)}function wP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(a)}function NP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"2",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"rect",attr:{x:"2",y:"14",width:"20",height:"8",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"6.01",y2:"6"},child:[]},{tag:"line",attr:{x1:"6",y1:"18",x2:"6.01",y2:"18"},child:[]}]})(a)}function dT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"},child:[]},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2
170 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"},child:[]}]})(a)}function gu(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"},child:[]}]})(a)}function _P(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"path",attr:{d:"M16 10a4 4 0 0 1-8 0"},child:[]}]})(a)}function uT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"9",cy:"21",r:"1"},child:[]},{tag:"circle",attr:{cx:"20",cy:"21",r:"1"},child:[]},{tag:"path",attr:{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"},child:[]}]})(a)}function SP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 3 21 3 21 8"},child:[]},{tag:"line",attr:{x1:"4",y1:"20",x2:"21",y2:"3"},child:[]},{tag:"polyline",attr:{points:"21 16 21 21 16 21"},child:[]},{tag:"line",attr:{x1:"15",y1:"15",x2:"21",y2:"21"},child:[]},{tag:"line",attr:{x1:"4",y1:"4",x2:"9",y2:"9"},child:[]}]})(a)}function J5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"12",y1:"18",x2:"12.01",y2:"18"},child:[]}]})(a)}function kP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M8 14s1.5 2 4 2 4-2 4-2"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"9.01",y2:"9"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"15.01",y2:"9"},child:[]}]})(a)}function CP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"},child:[]}]})(a)}function EP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"6"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"2"},child:[]}]})(a)}function TP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},child:[]}]})(a)}function RP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{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"},child:[]}]})(a)}function hT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(a)}function OP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 18 13.5 8.5 8.5 13.5 1 6"},child:[]},{tag:"polyline",attr:{points:"17 18 23 18 23 12"},child:[]}]})(a)}function fT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 6 13.5 15.5 8.5 10.5 1 18"},child:[]},{tag:"polyline",attr:{points:"17 6 23 6 23 12"},child:[]}]})(a)}function mT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"1",y:"3",width:"15",height:"13"},child:[]},{tag:"polygon",attr:{points:"16 8 20 8 23 11 23 16 16 16 16 8"},child:[]},{tag:"circle",attr:{cx:"5.5",cy:"18.5",r:"2.5"},child:[]},{tag:"circle",attr:{cx:"18.5",cy:"18.5",r:"2.5"},child:[]}]})(a)}function MP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]},{tag:"line",attr:{x1:"12",y1:"12",x2:"12",y2:"21"},child:[]},{tag:"path",attr:{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"},child:[]},{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]}]})(a)}function ru(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(a)}function $5(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(a)}
17function pT(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"},child:[]},{tag:"path",attr:{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"},child:[]}]})(a)}function zP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12.55a11 11 0 0 1 14.08 0"},child:[]},{tag:"path",attr:{d:"M1.42 9a16 16 0 0 1 21.16 0"},child:[]},{tag:"path",attr:{d:"M8.53 16.11a6 6 0 0 1 6.95 0"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12.01",y2:"20"},child:[]}]})(a)}function LP(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"15",y1:"9",x2:"9",y2:"15"},child:[]},{tag:"line",attr:{x1:"9",y1:"9",x2:"15",y2:"15"},child:[]}]})(a)}function e4(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(a)}function yA(a){return ie({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"},child:[]}]})(a)}const zt="text-gray-400 group-hover:text-[#d946ef] transition-colors duration-300",vA=[{icon:e.jsx($8,{className:zt}),label:"Banking & Finance",desc:"Loan follow-ups, KYC reminders & EMI alerts",path:"/solutions/banking-&-finance"},{icon:e.jsx(W8,{className:zt}),label:"Stocks & Forex Market",desc:"Real-time market updates & trading alerts",path:"/solutions/stocks-&-forex-market"},{icon:e.jsx(Q5,{className:zt}),label:"Real Estate",desc:"Lead qualification, site visits & buyer follow-ups",path:"/solutions/real-estate"},{icon:e.jsx(gu,{className:zt}),label:"Insurance",desc:"Policy renewals, claims & new customer calls",path:"/solutions/insurance"},{icon:e.jsx(G8,{className:zt}),label:"Healthcare",desc:"Appointments, reminders & patient follow-ups",path:"/solutions/healthcare"},{icon:e.jsx(uT,{className:zt}),label:"E-Commerce",desc:"Order updates, cart recovery & COD confirmation",path:"/solutions/ecommerce"},{icon:e.jsx(iT,{className:zt}),label:"Travel & Hospitality",desc:"Bookings, check-in & guest feedback automation",path:"/solutions/travel-&-hospitality"},{icon:e.jsx(J5,{className:zt}),label:"Telecom",desc:"Renewals, upgrades & customer retention calls",path:"/solutions/telecom"},{icon:e.jsx(mT,{className:zt}),label:"Logistics",desc:"Delivery updates, pickup scheduling & ETAs",path:"/solutions/logistics"},{icon:e.jsx(X5,{className:zt}),label:"Customer Support",desc:"24/7 AI support calls & query resolution",path:"/solutions/customer-support"}],jA=[{icon:e.jsx(eT,{className:zt}),label:"Lead Qualification & Screening",desc:"Qualify leads automatically with intelligent voice calls",path:"/use-cases/lead-qualification-&-screening"},{icon:e.jsx(bA,{className:zt}),label:"EMI & Payment Reminders",desc:"Reduce defaults with timely automated payment nudges",path:"/use-cases/emi-&-payment-reminders"},{icon:e.jsx(pT,{className:zt}),label:"Marketing Campaign Calls",desc:"Run personalised outbound voice campaigns at scale",path:"/use-cases/marketing-campaign-calls"},{icon:e.jsx(Z8,{className:zt}),label:"Customer Feedback & Surveys",desc:"Collect CSAT and NPS data through conversational calls",path:"/use-cases/customer-feedback-&-surveys"},{icon:e.jsx(K8,{className:zt}),label:"Order Confirmations",desc:"Confirm COD orders and reduce RTO with AI calls",path:"/use-cases/order-confirmations"},{icon:e.jsx(bA,{className:zt}),label:"Transaction Confirmations",desc:"Confirm transactions and reduce fraud with AI calls",path:"/use-cases/transaction-confirmations"}],AA=[{icon:e.jsx(Bb,{className:zt}),label:"AI Customer Support Calls",desc:"Resolve queries 24/7 without human agents",path:"/use-cases/ai-customer-support-calls"},{icon:e.jsx(p0,{className:zt}),label:"Appointment Booking & Reminders",desc:"Let customers self-schedule and get auto-reminded",path:"/use-cases/appointment-booking-&-reminders"},{icon:e.jsx(tT,{className:zt}),label:"Call Routing",desc:"Intelligently route callers to the right department",path:"/use-cases/call-routing"}
17],wA=[{icon:e.jsx(K5,{className:zt}),label:"Blog",desc:"Insights, trends, and expert perspectives on AI voice and customer experience",path:"/blog"},{icon:e.jsx(q5,{className:zt}),label:"AI Guides",desc:"Step-by-step guides to implement and scale AI voice automation",path:"/ai-guides"},{icon:e.jsx(J8,{className:zt}),label:"Comparisons",desc:"Compare AI voice platforms, tools, and solutions",path:"/comparisons"}],NA=[{icon:e.jsx(sT,{className:zt}),label:"About Us",desc:"Learn about our mission, vision, and the team",path:"/about-us"},{icon:e.jsx(mc,{className:zt}),label:"Contact Us",desc:"Get in touch with our sales and support teams",path:"/contact-us"}],Zh=()=>{const[a,t]=y.useState(!1),n=y.useRef(null);return{open:a,onEnter:()=>{clearTimeout(n.current),t(!0)},onLeave:()=>{n.current=setTimeout(()=>t(!1),250)}}},pc=({navigate:a,isScrolled:t,isMobileMenuOpen:n,setIsMobileMenuOpen:l})=>{const i=gt(),c=a||i,[u,h]=y.useState(!1),[f,p]=y.useState(!1),x=t!==void 0?t:u,b=n!==void 0?n:f,v=l||p;y.useEffect(()=>{const B=()=>{window.scrollY>20?h(!0):h(!1)};return window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)},[]);const w=Zh(),j=Zh(),N=Zh(),A=Zh(),[S,C]=y.useState(!1),[T,L]=y.useState(!1),[O,R]=y.useState(!1),[k,E]=y.useState(!1),z=b||w.open||j.open||N.open||A.open;y.useEffect(()=>(z?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[z]);const D=B=>{c(B),window.scrollTo(0,0)},q="text-gray-300 font-medium text-[15px] relative transition-colors duration-300 hover:text-white cursor-pointer bg-transparent border-none p-0 after:content-[''] after:absolute after:-bottom-1 after:left-0 after:w-0 after:h-[2px] after:bg-gradient-to-r after:from-[#d946ef] after:to-[#9333ea] after:transition-all after:duration-300 hover:after:w-full",V="absolute top-full mt-5 bg-[#1a0b2e]/95 backdrop-blur-xl rounded-2xl shadow-[0_8px_32px_rgba(192,38,211,0.2)] border border-white/10 z-50 transition-all duration-300",Z="opacity-100 visible pointer-events-auto translate-y-0",ae="opacity-0 invisible pointer-events-none -translate-y-2",ee=({title:B,subtitle:X,cta:re,path:P,imgSrc:Y,imgAlt:oe,fallbackIcon:ue,onClose:me})=>{const[ke,Ve]=de.useState(!1);return e.jsxs("div",{className:"bg-[#1a0b2e] rounded-xl flex flex-col h-full border border-white/10 overflow-hidden shadow-sm",children:[e.jsx("div",{className:"w-full h-[100px] xl:h-[130px] overflow-hidden shrink-0",children:Y&&!ke?e.jsx("img",{src:Y,alt:oe,className:"object-cover w-full h-full",onError:()=>Ve(!0)}):e.jsx("div",{className:"w-full h-full bg-gradient-to-br from-[#c026d3] to-[#9333ea] flex items-center justify-center text-4xl",children:ue})}),e.jsxs("div",{className:"flex flex-col flex-1 gap-1.5 p-3 xl:p-4",children:[e.jsx("div",{className:"font-semibold text-white text-sm leading-snug",children:B}),e.jsx("div",{className:"text-gray-300 text-xs leading-relaxed line-clamp-2",children:X}),e.jsxs("a",{href:P,onClick:tt=>{tt.preventDefault(),D(P),me?.()},className:"mt-auto flex items-center gap-1.5 text-white text-xs font-semibold bg-gradient-to-r from-[#c026d3] to-[#9333ea] px-3 py-2 rounded-lg hover:opacity-90 transition-all w-fit",children:[re," ",e.jsx(dl,{size:12})]})]})]})},U=({icon:B,label:X,desc:re,path:P,onClick:Y})=>e.jsx("li",{children:e.jsxs("a",{href:P,onClick:oe=>{oe.preventDefault(),D(P),Y?.()},className:"flex items-start gap-2.5 px-3 py-1.5 xl:py-2.5 rounded-lg hover:bg-white/5 group cursor-pointer transition-colors w-full",children:[e.jsx("span",{className:"text-[18px] xl:text-[20px] mt-0.5 shrink-0 transition-transform group-hover:scale-110",children:B}),e.jsxs("div",{className:"flex flex-col text-left",children:[e.jsx("span",{className:"text-white text-[13px] xl:text-sm font-medium group-hover:text-[#d946ef] transition-colors leading-tight",children:X}),re&&e.jsx("span",{className:"text-gray-400 text-[11px] xl:text-xs mt-0.5 leading-snug",children:re})]})]})});return e.jsxs("nav",{"aria-label":"Main Navigation",className:`fixed top-0 left-0 right-0 z-[1000] transition-all duration-300 w-full ${x?"bg-[#10002B] shadow-[0_4px_20px_rgba(192,38,211,0.2)] backdrop-blur-md":"bg-[#10002B] border-b border-white/10"}`,children:[e.jsxs("div",{className:"max-w-[1280px] mx-auto px-5 lg:px-8 py-5 flex justify-between items-center",children:[e.jsx("a",{href:"/",onClick:B=>{B.preventDefault(),D("/")},className:"flex items-center transition-transform duration-300 cursor-pointer hover:scale-105","aria-label":"Home",children:e.jsx("img",{src:"/Voicerix_logo.png",alt:"
17VoiceRix Logo",width:"229",height:"48",className:"h-10 md:h-12 lg:h-12 w-auto object-contain drop-shadow-md"})}),e.jsxs("ul",{className:"items-center hidden gap-0 lg:flex relative m-0 p-0 list-none",children:[e.jsx("li",{className:"px-3 py-4",children:e.jsx("a",{href:"/platform",onClick:B=>{B.preventDefault(),D("/platform")},className:q,children:"Platform"})}),e.jsxs("li",{className:"px-3 py-4",onMouseEnter:w.onEnter,onMouseLeave:w.onLeave,children:[e.jsxs("button",{className:`${q} flex items-center gap-1`,"aria-expanded":w.open,children:["Solutions ",e.jsx(jr,{className:`transition-transform duration-200 ${w.open?"rotate-180":""}`,size:14})]}),e.jsx("div",{className:`${V} left-1/2 -translate-x-1/2 w-[95vw] max-w-[860px] ${w.open?Z:ae}`,children:e.jsxs("div",{className:"px-3 xl:px-4",children:[e.jsx("div",{className:"pt-3 pb-2 border-b border-white/10",children:e.jsx("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-widest",children:"Industries we serve"})}),e.jsxs("div",{className:"flex gap-0",children:[e.jsx("ul",{className:"flex-1 py-3 pr-3 xl:py-4 xl:pr-4 grid grid-cols-2 gap-1 border-r border-white/10 m-0 p-0 list-none",children:vA.map(B=>e.jsx(U,{icon:B.icon,label:B.label,desc:B.desc,path:B.path,onClick:()=>w.onLeave()},B.path))}),e.jsx("div",{className:"w-[220px] xl:w-[240px] p-3 xl:p-4",children:e.jsx(ee,{title:"What Is an AI Voice Agent?",subtitle:"Businesses today receive thousands of customer calls every day...",cta:"Read More",path:"/blog/what-is-an-ai-voice-agent",imgSrc:"/blog-1.webp",fallbackIcon:e.jsx(Y5,{className:"text-white opacity-80"}),onClose:w.onLeave})})]})]})})]}),e.jsxs("li",{className:"px-3 py-4",onMouseEnter:j.onEnter,onMouseLeave:j.onLeave,children:[e.jsxs("button",{className:`${q} flex items-center gap-1`,"aria-expanded":j.open,children:["Use Cases ",e.jsx(jr,{className:`transition-transform duration-200 ${j.open?"rotate-180":""}`,size:14})]}),e.jsx("div",{className:`${V} left-1/2 -translate-x-1/2 w-[95vw] max-w-[780px] ${j.open?Z:ae}`,children:e.jsx("div",{className:"px-3 xl:px-4",children:e.jsxs("div",{className:"flex",children:[e.jsxs("div",{className:"flex-1 py-3 pr-3 xl:py-4 xl:pr-4 border-r border-white/10",children:[e.jsx("div",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-widest mb-1.5",children:"Outbound Automation"}),e.jsx("ul",{className:"grid grid-cols-2 gap-1 m-0 p-0 list-none",children:jA.map(B=>e.jsx(U,{icon:B.icon,label:B.label,desc:B.desc,path:B.path,onClick:()=>j.onLeave()},B.path))}),e.jsx("div",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-widest mb-1.5 mt-3 pt-2 border-t border-white/10",children:"Inbound Automation"}),e.jsx("ul",{className:"grid grid-cols-2 gap-1 m-0 p-0 list-none",children:AA.map(B=>e.jsx(U,{icon:B.icon,label:B.label,desc:B.desc,path:B.path,onClick:()=>j.onLeave()},B.path))})]}),e.jsx("div",{className:"w-[220px] xl:w-[240px] p-3 xl:p-4",children:e.jsx(ee,{title:"AI Voice Automation: The Ultimate Guide",subtitle:"AI voice automation allows businesses to handle phone conversations...",cta:"Explore Guide",path:"/ai-guides/ai-voice-automation-beginner-guide",imgSrc:"/AIguide1.webp",fallbackIcon:e.jsx(cT,{className:"text-white opacity-80"}),onClose:j.onLeave})})]})})})]}),e.jsxs("li",{className:"px-3 py-4",onMouseEnter:N.onEnter,onMouseLeave:N.onLeave,children:[e.jsxs("button",{className:`${q} flex items-center gap-1`,"aria-expanded":N.open,children:["Resources ",e.jsx(jr,{className:`transition-transform duration-200 ${N.open?"rotate-180":""}`,size:14})]}),e.jsx("div",{className:`${V} left-1/2 -translate-x-1/2 w-[95vw] max-w-[660px] ${N.open?Z:ae}`,children:e.jsxs("div",{className:"px-3 xl:px-4",children:[e.jsx("div",{className:"pt-3 pb-2 border-b border-white/10",children:e.jsx("span",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-widest",children:"Start exploring Voicerix resources"})}),e.jsxs("div",{className:"flex",children:[e.jsx("ul",{className:"flex-1 py-3 pr-3 xl:py-4 xl:pr-4 grid grid-cols-1 gap-1 border-r border-white/10 m-0 p-0 list-none",children:wA.map(B=>e.jsx(U,{icon:B.icon,label:B.label,desc:B.desc,path:B.path,onClick:()=>N.onLeave()},B.path))}),e.jsx("div",{className:"w-[220px] xl:w-[240px] p-3 xl:p-4",children:e.jsx(ee,{title:"What Is AI Voice Automation?",subtitle:"Learn how businesses use it to automate customer calls, support...",cta:"Read More",path:"/blog/ai-voice-automation",imgSrc:"/Blog-2.webp",fallbackIcon:e.jsx(q5,{className:"text-white opacity-80"}),onClose:N.onLeave})})]})]})})]}),e.jsxs("li",{className:"px-3 py-4",onMouseEnter:A.onEnter,onMouseLeave:A.onLeave,children:[e.jsxs("button",{className:`${q} flex items-center gap-1`,"aria-expanded":A.open,children:["Company ",e.jsx(jr,{className:`transition-transform duration-200 ${A.open?"rotate-180":""}`,size:14})]}),e.jsx("div",{className:`${V} right-0 w-[320px] ${A.open?Z:ae}`,children:e.jsx("ul",{className:"p-2 m-0 list-none",children:NA.map(B=>e.jsx(U,{icon:B.icon,label:B.label,desc:B.desc,path:B.path,onClick:()=>A.onLeave()},B.path))})})]})]}),e.jsxs("div",{className:"items-center hidden gap-3 lg:flex",children:[e.jsx("a",{href:"https://client.voicerix.ai/auth/login",className:"px-6 py-2.5 border border-white/20 bg-transparent text-white rounded-xl font-semibold text-sm transition-all duration-300 hover:border-[#c026d3]/50 hover:bg-[#c026d3]/10 hover:shadow-[0_0_15px_rgba(192,38,211,0.3)] block",children:"Login"}),e.jsx("a",{href:"https://client.voicerix.ai/auth/signup",className:"px-6 py-2.5 bg-gradient-to-r from-[#c026d3] to-[#7c3aed] text-white rounded-xl font-semibold text-sm tracking-wide transition-all duration-300 border border-[#c026d3]/40 shadow-[0_4px_14px_rgba(192,38,211,0.35)] hover:shadow-[0_6px_20px_rgba(192,38,211,0.55)] hover:-translate-y-
17px flex items-center justify-center whitespace-nowrap",children:"Sign Up"})]}),e.jsx("button",{className:"lg:hidden text-2xl text-white p-2 hover:bg-white/10 rounded-lg transition-colors",onClick:()=>v(!b),"aria-label":"Toggle Menu",children:b?e.jsx(e4,{}):e.jsx(Ub,{})})]}),b&&e.jsxs("div",{className:"lg:hidden absolute top-full left-0 right-0 bg-[#10002B] border-t border-white/10 shadow-lg p-5 flex flex-col gap-4 animate-[slideDown_0.3s_ease] max-h-[85vh] overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:bg-white/10 [&::-webkit-scrollbar-track]:bg-transparent",children:[e.jsx("a",{href:"/platform",onClick:B=>{B.preventDefault(),D("/platform"),v(!1)},className:"text-gray-300 font-medium text-lg py-3 border-b border-white/10 cursor-pointer hover:text-white transition-colors block",children:"Platform"}),e.jsxs("div",{className:"border-b border-white/10",children:[e.jsxs("button",{onClick:()=>C(!S),className:"flex items-center justify-between bg-transparent border-none p-0 text-gray-300 font-medium text-lg py-3 cursor-pointer w-full hover:text-white transition-colors text-left","aria-expanded":S,children:["Solutions ",e.jsx(jr,{className:`transition-transform duration-200 ${S?"rotate-180":""}`,size:16})]}),S&&e.jsx("ul",{className:"flex flex-col gap-1 pb-2 pl-2 m-0 list-none",children:vA.map(B=>e.jsx("li",{children:e.jsxs("a",{href:B.path,onClick:X=>{X.preventDefault(),D(B.path),v(!1),C(!1)},className:"flex items-start gap-3 py-2.5 px-2 rounded-lg text-gray-300 text-sm cursor-pointer hover:bg-white/5 hover:text-[#d946ef] transition-colors",children:[e.jsx("span",{className:"text-[20px] shrink-0 mt-0.5",children:B.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:B.label}),e.jsx("span",{className:"text-xs text-gray-500 mt-0.5",children:B.desc})]})]})},B.path))})]}),e.jsxs("div",{className:"border-b border-white/10",children:[e.jsxs("button",{onClick:()=>L(B=>!B),className:"flex items-center justify-between bg-transparent border-none p-0 text-gray-300 font-medium text-lg py-3 cursor-pointer w-full hover:text-white transition-colors text-left","aria-expanded":T,children:["Use Cases ",e.jsx(jr,{className:`transition-transform duration-200 ${T?"rotate-180":""}`,size:16})]}),T&&e.jsxs("div",{className:"flex flex-col pb-2 pl-2",children:[e.jsx("div",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest px-2 py-1.5",children:"Outbound Automation"}),e.jsx("ul",{className:"m-0 p-0 list-none flex flex-col gap-1",children:jA.map(B=>e.jsx("li",{children:e.jsxs("a",{href:B.path,onClick:X=>{X.preventDefault(),D(B.path),v(!1),L(!1)},className:"flex items-start gap-3 py-2.5 px-2 rounded-lg text-gray-300 text-sm cursor-pointer hover:bg-white/5 hover:text-[#d946ef] transition-colors",children:[e.jsx("span",{className:"text-[20px] shrink-0 mt-0.5",children:B.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:B.label}),e.jsx("span",{className:"text-xs text-gray-500 mt-0.5",children:B.desc})]})]})},B.path))}),e.jsx("div",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest px-2 py-1.5 mt-1 border-t border-white/10",children:"Inbound Automation"}),e.jsx("ul",{className:"m-0 p-0 list-none flex flex-col gap-1",children:AA.map(B=>e.jsx("li",{children:e.jsxs("a",{href:B.path,onClick:X=>{X.preventDefault(),D(B.path),v(!1),L(!1)},className:"flex items-start gap-3 py-2.5 px-2 rounded-lg text-gray-300 text-sm cursor-pointer hover:bg-white/5 hover:text-[#d946ef] transition-colors",children:[e.jsx("span",{className:"text-[20px] shrink-0 mt-0.5",children:B.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:B.label}),e.jsx("span",{className:"text-xs text-gray-500 mt-0.5",children:B.desc})]})]})},B.path))})]})]}),e.jsxs("div",{className:"border-b border-white/10",children:[e.jsxs("button",{onClick:()=>R(B=>!B),className:"flex items-center justify-between bg-transparent border-none p-0 text-gray-300 font-medium text-lg py-3 cursor-pointer w-full hover:text-white transition-colors text-left","aria-expanded":O,children:["Resources ",e.jsx(jr,{className:`transition-transform duration-200 ${O?"rotate-180":""}`,size:16})]}),O&&e.jsx("ul",{className:"flex flex-col gap-1 pb-2 pl-2 m-0 list-none",children:wA.map(B=>e.jsx("li",{children:e.jsxs("a",{href:B.path,onClick:X=>{X.preventDefault(),D(B.path),v(!1),R(!1)},className:"flex items-start gap-3 py-2.5 px-2 rounded-lg text-gray-300 text-sm cursor-pointer hover:bg-white/5 hover:text-[#d946ef] transition-colors",children:[e.jsx("span",{className:"text-[20px] shrink-0 mt-0.5",children:B.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:B.label}),e.jsx("span",{className:"text-xs text-gray-500 mt-0.5",children:B.desc})]})]})},B.path))})]}),e.jsxs("div",{className:"border-b border-white/10",children:[e.jsxs("button",{onClick:()=>E(B=>!B),className:"flex items-center justify-between bg-transparent border-none p-0 text-gray-300 font-medium text-lg py-3 cursor-pointer w-full hover:text-white transition-colors text-left","aria-expanded":k,children:["Company ",e.jsx(jr,{className:`transition-transform duration-200 ${k?"rotate-180":""}`,size:16})]}),k&&e.jsx("ul",{className:"flex flex-col gap-1 pb-2 pl-2 m-0 list-none",children:NA.map(B=>e.jsx("li",{children:e.jsxs("a",{href:B.path,onClick:X=>{X.preventDefault(),D(B.path),v(!1),E(!1)},className:"flex items-start gap-3 py-2.5 px-2 rounded-lg text-gray-300 text-sm cursor-pointer hover:bg-white/5 hover:text-[#d946ef] transition-colors",children:[e.jsx("span",{className:"text-[20px] shrink-0 mt-0.5",children:B.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:B.label}),e.jsx("span",{className:"text-xs text-gray-500 mt-0.5",children:B.desc})]})]})},B.path))})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-3 pt-4 border-t border-white/10",children:[e.jsx("a",{href:"https://client.voicerix.ai/auth/login",className:"w-full py-3.5 border border-white/20 rounded-xl font-semibold text-white text-[15px] transition-all duration-300 hover:border-white/40 hover:bg-white/5 text-center block",children:"Login"}),e.jsx("a",{href:"https://client.voicerix.ai/auth/signup",className:"w-full py-3.5 bg-gradient-to-r from-[#c026d3] to-[#7c3aed] text-white rounded-xl font-semibold text-[15px] tracking-wide border border-[#c026d3]/40 shadow-[0_4px_14px_rgba(192,38,211,0.35)] text-center flex items-center justify-center",children:"Sign Up"})]})]})]})},xT=[{number:"99.9%",label:"Voice Accuracy"},{number:"<200ms",label:"Ultra-low Latency"},{number:"24/7",label:"Automated Operations"},{number:"10x",label:"Cost Efficiency"}],gT=({navigate:a,stats:t=xT})=>e.jsxs("section",{className:"relative min-h-[100vh] pt-[100px] pb-[60px] px-10 flex items-center bg-gradient-to-br from-[#3C096C] to-[#10002B] overflow-hidden max-md:px-5",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none opacity-40",children:[e.jsx("div",{className:"absolute top-[10%] left-[5%] w-[300px] h-[300px] bg-[#9333ea] rounded-full blur-[100px] animate-[float_15s_ease-in-out_infinite]"}
17),e.jsx("div",{className:"absolute bottom-[10%] right-[5%] w-[400px] h-[400px] bg-[#7e22ce] rounded-full blur-[120px] animate-[float_20s_ease-in-out_infinite]"}),e.jsx("div",{className:"absolute top-[50%] left-[50%] w-[250px] h-[250px] bg-[#a855f7] rounded-full blur-[80px] animate-[float_18s_ease-in-out_infinite]"})]}),e.jsx("div",{className:"absolute inset-0 opacity-[0.2] pointer-events-none",children:e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,rgba(255,255,255,0.1)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.1)_1px,transparent_1px)] bg-[size:40px_40px]"})}),e.jsx("div",{className:"absolute bottom-16 left-1/2 -translate-x-1/2 flex items-end gap-[3px] opacity-40 pointer-events-none",children:[14,22,36,28,44,32,20,40,26,34,18,42,30,24,38].map((n,l)=>e.jsx("div",{className:"w-[3px] bg-[#c026d3] rounded-full",style:{height:`${n}px`,animation:"waveBar 1.4s ease-in-out infinite",animationDelay:`${l*.09}s`}},l))}),[{top:"18%",left:"12%",size:8,delay:"0s"},{top:"72%",left:"8
17%",size:5,delay:"0.6s"},{top:"30%",right:"10%",size:6,delay:"1.1s"},{top:"80%",right:"14%",size:9,delay:"0.3s"},{top:"55%",left:"20%",size:5,delay:"1.5s"}].map((n,l)=>e.jsx("div",{className:"absolute rounded-full bg-white/20 border border-white/30",style:{width:n.size*4,height:n.size*4,top:n.top,left:n.left,right:n.right,animation:`float ${6+l}s ease-in-out infinite`,animationDelay:n.delay}},l)),e.jsx("style",{children:` 18 @keyframes waveBar { 19 0%, 100% { transform: scaleY(0.5); opacity: 0.5; } 20 50% { transform: scaleY(1.4); opacity: 1; } 21 } 22 @keyframes nodeFloat { 23 0%, 100% { transform: translateY(0px) scale(1); } 24 50% { transform: translateY(-12px) scale(1.1); } 25 } 26 @keyframes circlePulse { 27 0%, 100% { transform: scale(1); opacity: 0.9; } 28 50% { transform: scale(1.05); opacity: 1; } 29 } 30 @keyframes ripple { 31 0% { transform: scale(0.85); opacity: 0.7; } 32 70% { transform: scale(1.2); opacity: 0.3; } 33 100% { transform: scale(1.4); opacity: 0; } 34 } 35 @keyframes badgeGlow { 36 0%, 100% { opacity: 0.8; transform: scale(1); } 37 50% { opacity: 1; transform: scale(1.02); } 38 } 39 `}),e.jsxs("div",{className:"max-w-[1200px] mx-auto grid grid-cols-1 lg:grid-cols-2 gap-[80px] items-center w-full relative z-10",children:[e.jsxs("div",{className:"animate-[slideInLeft_1s_ease-out] text-center lg:text-left",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 mb-6 bg-white/5 backdrop-blur-md rounded-[30px] text-white text-[13px] font-semibold border border-white/10 transition-all duration-300",style:{animation:"badgeGlow 3s ease-in-out infinite"},children:[e.jsx(yA,{className:"text-base text-[#c026d3]"}),e.jsx("span",{children:"AI-Powered Voice Technology"})]}),e.jsxs("h1",{className:"text-[40px] font-extrabold text-white leading-[1.2] mb-6 tracking-tight max-md:text-[32px] max-sm:text-[26px] whitespace-nowrap max-sm:whitespace-normal",children:["AI VOICE AGENTS THAT",e.jsx("br",{}),"AUTOMATE BUSINESS",e.jsx("br",{}),"PHONE CALLS"]}),e.jsx("p",{className:"text-gray-300 text-lg leading-[1.75] mb-10 max-w-[540px] mx-auto lg:mx-0 animate-[fadeInDown_0.8s_ease-out_0.6s_backwards]",children:"VoiceRix helps businesses automate customer conversations using human-like AI voice agents. Handle lead qualification, appointment booking, payment reminders, and support calls automatically 24/7."}),e.jsx("div",{className:"relative z-30 flex flex-col justify-center gap-4 mb-12 sm:flex-row lg:justify-start animate-[fadeInDown_0.8s_ease-out_0.8s_backwards]",children:e.jsxs("button",{className:"px-8 py-4 bg-gradient-to-r from-[#c026d3] to-[#9333ea] text-white rounded-4xl font-semibold text-base flex items-center justify-center gap-2 shadow-[0_8px_24px_rgba(192,38,211,0.4)] hover:-translate-y-1 hover:shadow-[0_12px_32px_rgba(192,38,211,0.5)] transition-all max-md:w-full cursor-pointer",onClick:()=>a&&a("/contact-us"),children:["Book a Demo ",e.jsx(dl,{})]})}),e.jsx("div",{className:"grid grid-cols-4 gap-6 max-md:grid-cols-2 animate-[fadeInUp_0.8s_ease-out_1s_backwards]",children:t&&t.map((n,l)=>e.jsxs("div",{className:"text-left max-md:text-center",children:[e.jsx("div",{className:"text-[28px] font-extrabold text-white mb-1",children:n.number}),e.jsx("div",{className:"text-[10px] text-gray-300 font-medium leading-[1.3] whitespace-nowrap",children:n.label})]},l))})]}),e.jsx("div",{className:"relative min-h-[450px] md:h-[600px] flex items-center justify-center animate-[slideInRight_1s_ease-out_0.4s_backwards] mt-10 lg:mt-0",children:e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:[e.jsx("div",{className:"absolute w-[300px] md:w-[500px] h-[300px] md:h-[500px] rounded-full border-2 border-white/10 animate-[ripple_3s_ease-out_infinite]"}),e.jsx("div",{className:"absolute w-[300px] md:w-[500px] h-[300px] md:h-[500px] rounded-full border-2 border-white/5 animate-[ripple_3s_ease-out_infinite_1s]"}),e.jsx("div",{className:"absolute w-[300px] md:w-[500px] h-[300px] md:h-[500px] rounded-full border-2 border-white/5 animate-[ripple_3s_ease-out_infinite_2s]"})]}),e.jsxs("div",{className:"relative z-10 animate-[scaleIn_0.8s_ease-out_0.8s_backwards]",children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-[180px] md:w-[240px] h-[180px] md:h-[240px] rounded-full bg-gradient-to-br from-[#c026d3]/40 to-[#9333ea]/40 blur-2xl"})}),e.jsxs("a",{className:"relative w-[160px] h-[160px] md:w-[200px] md:h-[200px] rounded-full bg-gradient-to-br from-[#d946ef] to-[#9333ea] flex flex-col items-center justify-center text-white shadow-[0_20px_60px_rgba(192,38,211,0.6)] transition-all duration-300 cursor-pointer hover:scale-110 hover:shadow-[0_25px_70px_rgba(192,38,211,0.8)]",style:{animation:"circlePulse 2.5s ease-in-out infinite"},children:[e.jsx("div",{className:"absolute inset-0 rounded-full bg-white/10"}),e.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-2",children:[e.jsx(mc,{className:"text-4xl md:text-5xl"}),e.jsx("span",{className:"text-base font-bold md:text-lg",children:"Start AI Call"})]})]})]}),e.jsx("div",{className:"absolute -top-10 md:top-[50px] left-1/2 -translate-x-1/2 md:translate-x-0 md:left-[20px] bg-[#1a0b2e]/80 backdrop-blur-md p-3 md:p-4 roun
39ded-2xl border border-white/10 w-[168px] md:w-[196px] shadow-xl animate-[popIn_0.6s_ease-out_1.2s_backwards] hover:scale-105 transition-transform z-20",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 md:w-10 md:h-10 bg-gradient-to-br from-[#c026d3] to-[#9333ea] rounded-xl flex items-center justify-center shadow-lg flex-shrink-0",children:e.jsx(yA,{className:"text-base text-white md:text-lg"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] md:text-xs font-semibold text-white",children:"Real-Time AI"}),e.jsx("div",{className:"text-gray-400 text-[9px] md:text-[10px]",children:"Conversation"})]})]})}),e.jsx("div",{className:"absolute top-[50%] right-0 translate-x-[10%] md:translate-x-0 md:top-[250px] md:-right-[50px] bg-[#1a0b2e]/80 backdrop-blur-md p-3 md:p-4 rounded-2xl border border-white/10 w-[150px] md:w-[172px] shadow-xl animate-[popIn_0.6s_ease-out_1.4s_backwards] hover:scale-105 transition-transform z-20 hidden sm:block",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 md:w-10 md:h-10 bg-gradient-to-br from-[#c026d3] to-[#9333ea] rounded-xl flex items-center justify-center shadow-lg flex-shrink-0",children:e.jsx(gu,{className:"text-base text-white md:text-lg"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] md:text-xs font-semibold text-white",children:"Secure"}),e.jsx("div",{className:"text-gray-400 text-[9px] md:text-[10px]",children:"AI Calls"})]})]})}),e.jsx("div",{className:"absolute -bottom-10 md:bottom-[120px] left-1/2 -translate-x-1/2 md:translate-x-0 md:left-[40px] bg-[#1a0b2e]/80 backdrop-blur-md p-3 md:p-4 roun
39ded-2xl border border-white/10 w-[160px] md:w-[184px] shadow-xl animate-[popIn_0.6s_ease-out_1.6s_backwards] hover:scale-105 transition-transform z-20",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 md:w-10 md:h-10 bg-gradient-to-br from-[#c026d3] to-[#9333ea] rounded-xl flex items-center justify-center shadow-lg flex-shrink-0",children:e.jsx(Pb,{className:"text-base text-white md:text-lg"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] md:text-xs font-semibold text-white",children:"Multi-Language"}),e.jsx("div",{className:"text-gray-400 text-[9px] md:text-[10px]",children:"AI"})]})]})})]})})]})]});const bT=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yT=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase()),_A=a=>{const t=yT(a);return t.charAt(0).toUpperCase()+t.slice(1)},t4=(...a)=>a.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim(),vT=a=>{for(const t in a)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var jT={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"};const AT=y.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:i="",children:c,iconNode:u,...h},f)=>y.createElement("svg",{ref:f,...jT,width:t,height:t,stroke:a,strokeWidth:l?Number(n)*24/Number(t):n,className:t4("lucide",i),...!c&&!vT(h)&&{"aria-hidden":"true"},...h},[...u.map(([p,x])=>y.createElement(p,x)),...Array.isArray(c)?c:[c]]));const ce=(a,t)=>{const n=y.forwardRef(({className:l,...i},c)=>y.createElement(AT,{ref:c,iconNode:t,className:t4(`lucide-${bT(_A(a))}`,`lucide-${a}`,l),...i}));return n.displayName=_A(a),n};const wT=[["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"}]],Bt=ce("activity",wT);const NT=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Fr=ce("arrow-left",NT);const _T=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Vb=ce("arrow-right",_T);const ST=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],kT=ce("bell",ST);const CT=[["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"}]],Dg=ce("book-open",CT);const ET=[["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"}]],Pl=ce("bot",ET);const TT=[["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"}]],RT=ce("briefcase",TT);const OT=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],Er=ce("building-2",OT);const MT=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],zT=ce("building",MT);const LT=[["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"}]],Fa=ce("calendar",LT);const DT=[["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"}]],Tn=ce("chart-column",DT);const BT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],s4=ce("check",BT);const PT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],UT=ce("chevron-down",PT);const IT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fn=ce("chevron-left",IT);const VT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ms=ce("chevron-right",VT);const FT=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Gl=ce("chevrons-left",FT);const HT=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Wl=ce("chevrons-right",HT);const qT=[["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"}]],aa=ce("circle-alert",qT);const YT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],M0=ce("circle-check",YT);const GT=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Bi=ce("circle-check-big",GT);const WT=[["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"}]],KT=ce("circle-question-mark",WT);const XT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Fb=ce("circle-x",XT);const QT=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ka=ce("clock",QT);const ZT=[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]],JT=ce("construction",ZT);const $T=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],a4=ce("credit-card",$T);const e9=[["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"}]],Ti=ce("database",e9);const t9=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Tr=ce("dollar-sign",t9);const s9=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Kl=ce("download",s9);const a9=[["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"}]],Xa=ce("eye",a9);
39const n9=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],n4=ce("file-code",n9);const l9=[["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"}]],Cn=ce("file-text",l9);const r9=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],i9=ce("funnel",r9);const o9=[["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"}]],Ri=ce("globe",o9);const c9=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],SA=ce("hard-drive",c9);const d9=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],l4=ce("hash",d9);const u9=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],r4=ce("headphones",u9);const h9=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],i4=ce("house",h9);const f9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Hb=ce("info",f9);const m9=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],p9=ce("landmark",m9);const x9=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],g9=ce("layout-dashboard",x9);const b9=[["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"}]],y9=ce("link-2",b9);const v9=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Ge=ce("loader",v9);const j9=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],A9=ce("log-out",j9);const w9=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],N9=ce("lock",w9);const _9=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Hr=ce("mail",_9);const S9=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],rc=ce("map-pin",S9);const k9=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],Bg=ce("megaphone",k9);const C9=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],o4=ce("message-square",C9);const E9=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Pg=ce("mic",E9);const T9=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Ha=ce("package",T9);const R9=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],O9=ce("pause",R9);const M9=[["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"}]],z9=ce("pen",M9);const L9=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
390 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],ic=ce("phone-call",L9);const D9=[["path",{d:"M14 6h8",key:"yd68k4"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],c4=ce("phone-forwarded",D9);const B9=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],At=ce("phone",B9);const P9=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],U9=ce("play",P9);const I9=[["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"}]],zr=ce("plug",I9);const V9=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ji=ce("plus",V9);const F9=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],H9=ce("refresh-ccw",F9);const q9=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],g0=ce("refresh-cw",q9);const Y9=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],G9=ce("rotate-ccw",Y9);const W9=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],K9=ce("rotate-cw",W9);const X9=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],qb=ce("save",X9);const Q9=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Gs=ce("search",Q9);const Z9=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],J9=ce("server",Z9);const $9=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Yb=ce("settings",$9);const eR=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],tR=ce("shield-alert",eR);const sR=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Gb=ce("shield-check",sR);const aR=[["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"}]],Ax=ce("shield",aR);const nR=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7
39a2 2 0 0 0-1.6.8z",key:"o988cm"}]],lR=ce("shopping-bag",nR);const rR=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],z0=ce("sparkles",rR);const iR=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],oR=ce("square-pen",iR);const cR=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],dR=ce("stethoscope",cR);const uR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wb=ce("trash-2",uR);const hR=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],fR=ce("trending-down",hR);const mR=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Vi=ce("trending-up",mR);const pR=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["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"}]],d4=ce("user-check",pR);const xR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],kA=ce("user-plus",xR);const gR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],bR=ce("user-x",gR);const yR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qa=ce("users",yR);const vR=[["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"}]],Hn=ce("user",vR);const jR=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],b0=ce("volume-2",jR);const AR=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],wR=ce("volume-x",AR);const NR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ls=ce("x",NR);const _R=[["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"}]],Kb=ce("zap",_R);const SR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],kR=ce("zoom-in",SR);const CR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ER=ce("zoom-out",CR),CA=[{id:"ecommerce",name:"E-Commerce AI",badge:"E-COMMERCE AI RECORDING",title:"ShopEasy Store",subt
39itle:"boAt Earphones COD Confirmation",audioSrc:"/recordings/ecommerce-new.wav",icon:lR,highlights:["ð¦ COD Order Verified","ð Delivery Prefs Saved","ð¬ Address Confirmed"]},{id:"insurance",name:"Insurance AI",badge:"INSURANCE AI RECORDING",title:"Secure Life Insurance",subtitle:"Car Policy Renewal Alert",audioSrc:"/recordings/insurce-new.wav",icon:Gb,highlights:["ð¡ï¸ Renewal Alert Sent","ð No-Claim Bonus Applied","ð² Link Sent"]},{id:"realestate",name:"Real Estate AI",badge:"REAL ESTATE AI RECORDING",title:"Prestige Group",subtitle:"Property Inquiry & Site Visit",audioSrc:"/recordings/real-new.wav",icon:i4,highlights:["ð
Site Visit Scheduled","ð¬ SMS Sent","ð¤ Qualified Lead"]},{id:"medical",name:"Medical AI",badge:"HEALTHCARE AI RECORDING",title:"Dr. Sharma Clinic",subtitle:"Doctor Appointment Booking",audioSrc:"/recordings/medical-new.wav",icon:dR,highlights:["𩺠Consultation Booked","â° Auto-Reminder Set","ð¬ Confirmation Sent"]},{id:"loan",name:"Loan & EMI AI",badge:"BANKING & LOAN RECORDING",title:"FinQuick Personal Loan",subtitle:"EMI Nudge & Reminder",audioSrc:"/recordings/loan-new.wav",icon:p9,highlights:["ð³ EMI Reminder Sent","ð Extension Logged","â¡ CRM Synced"]}],TR=({autoPlay:a=!1})=>{const[t,n]=y.useState(0),[l,i]=y.useState(!1),[c,u]=y.useState(!1),[h,f]=y.useState(38),[p,x]=y.useState({x:4,y:-10}),b=y.useRef(null),v=y.useRef(null),w=y.useRef(null),j=CA[t],N=j.icon;y.useEffect(()=>{typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()},[]);const A=R=>{R===t&&l||(n(R),f(0),i(!0),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel(),setTimeout(()=>{const k=v.current;k&&(k.currentTime=0,k.muted=c,k.play().catch(E=>{console.warn("Preset audio play error:",E)}))},50))},S=R=>{R&&(R.stopPropagation(),R.preventDefault()),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel();const k=v.current;l?(k&&k.pause(),i(!1)):(i(!0),k&&(k.muted=c,k.play().catch(E=>{console.warn("Audio play error:",E)})))},C=R=>{R&&(R.stopPropagation(),R.preventDefault());const k=!c;u(k),v.current&&(v.current.muted=k),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()};y.useEffect(()=>{if(a){typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel(),(()=>{i(!0);const E=v.current;E&&(E.muted=c,E.play().catch(z=>{console.warn("Autoplay blocked by browser policy:",z)}))})();const k=()=>{typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel(),v.current&&v.current.paused&&l&&v.current.play().catch(()=>{})};return window.addEventListener("scroll",k,{passive:!0,once:!0}),window.addEventListener("click",k,{passive:!0,once:!0}),window.addEventListener("touchstart",k,{passive:!0,once:!0}),()=>{window.removeEventListener("scroll",k),window.removeEventListener("click",k),window.removeEventListener("touchstart",k)}}else i(!1),v.current&&v.current.pause(),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()},[a]),y.useEffect(()=>{let R;return l&&(R=setInterval(()=>{f(k=>k>=90?0:k+1)},1e3)),()=>clearInterval(R)},[l]),y.useEffect(()=>{const R=b.current;if(!R)return;const k=R.getContext("2d");let E;R.parentElement&&(R.width=R.parentElement.offsetWidth||220,R.height=36);let D=0;const q=()=>{k.clearRect(0,0,R.width,R.height);const V=28,Z=3,ae=(R.width-V*Z)/(V-1);for(let ee=0;ee<V;ee++){const U=ee*(Z+ae);let B=4;l?(B=Math.sin(D+ee*.4)*12+Math.cos(D*1.5+ee*.2)*8+14,B=Math.max(4,Math.min(B,30))):B=Math.sin(ee*.5)*3+6;const X=(R.height-B)/2,re=k.createLinearGradient(0,X,0,X+B);l?(re.addColorStop(0,"#A855F7"),re.addColorStop(1,"#6366F1")):(re.addColorStop(0,"#64748B"),re.addColorStop(1,"#334155")),k.fillStyle=re,k.beginPath(),k.roundRect(U,X,Z,B,2),k.fill()}l&&(D+=.12),E=requestAnimationFrame(q)};return q(),()=>cancelAnimationFrame(E)},[l]);const T=R=>{if(!w.current)return;const k=w.current.getBoundingClientRect(),E=R.clientX-k.left-k.width/2,D=(R.clientY-k.top-k.height/2)/(k.height/2)*-14,q=E/(k.width/2)*16;x({x:D,y:q})},L=()=>{x({x:4,y:-10})},O=R=>{const k=Math.floor(R/60),E=R%60;return`0${k}:${E<10?"0":""}${E}`};return e.jsxs("div",{ref:w,onMouseMove:T,onMouseLeave:L,style:{perspective:"1200px"},className:"relative flex flex-col items-center justify-center pointer-events-auto group py-2",children:[e.jsx("audio",{ref:v,src:j.audioSrc,preload:"auto",loop:!0},j.id),e.jsx("div",{className:"absolute -bottom-10 w-72 h-10 rounded-full bg-purple-950/40 blur-2xl pointer-events-none group-hover:scale-110 transition-transform duration-500"}),e.jsx("div",{className:"absolute -bottom-6 w-60 h-6 rounded-full bg-black/80 blur-lg pointer-events-none"}),e.jsxs("div",{style:{transform:`rotateX(${p.x}deg) rotateY(${p.y}deg)`,transformStyle:"preserve-3d",transition:"transform 0.15s ease-out"},className:"relative w-[265px] sm:w-[295px] rounded-[48px] p-[4px] bg-gradient-to-b from-slate-300 via-slate-600 to-slate-800 shadow-[0_25px_60px_-15px_rgba(0,0,0,0.9),0_0_40px_rgba(168,85,247,0.35),inset_0_1px_3px_rgba(255,255,255,0.7)] border border-slate-400/50",children:[e.jsx("div",{className:"absolute -left-[5px] top-20 w-[5px] h-9 rounded-l-md bg-gradient-to-b from-slate-300 via-slate-400 to-slate-500 border-l border-white/60 shadow-md"}),e.jsx("div",{className:"absolute -left-[5px] top-32 w-[5px] h-9 rounded-l-md bg-gradient-to-b from-slate-300 via-slate-400 to-slate-500 border-l border-white/60 shadow-md"}),e.jsx("div",{className:"absolute -right-[5px] top-24 w-[5px] h-14 roun
39ded-r-md bg-gradient-to-b from-slate-300 via-slate-400 to-slate-500 border-r border-white/60 shadow-md"}),e.jsx("div",{className:"w-full h-full rounded-[44px] bg-gradient-to-b from-[#12101D] to-[#080612] p-[3.5px] shadow-inner",children:e.jsxs("div",{className:"relative w-full rounded-[40px] bg-[#070512] text-white p-4 sm:p-5 overflow-hidden flex flex-col items-center justify-between min-h-[475px] border border-purple-500/20 shadow-2xl",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-white/12 via-white/4 to-transparent opacity-90 pointer-events-none z-10"}),e.jsx("div",{className:"absolute -top-24 -left-24 w-64 h-64 bg-purple-500/10 rounded-full blur-3xl pointer-events-none z-0"}),e.jsxs("div",{className:"relative z-40 mx-auto w-26 h-3.5 bg-black rounded-full flex items-center justify-between px-2.5 shadow-[inset_0_1px_3px_rgba(0,0,0,0.9)] border border-slate-800/80 pointer-events-none",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-slate-900 border border-slate-800 flex items-center justify-center",children:e.jsx("div",{className:"w-1 h-1 rounded-full bg-indigo-900/90"})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-blue-500/80"}),e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"})]})]}),e.jsxs("div",{className:"relative z-40 w-full flex flex-col items-center text-center space-y-4 my-auto pt-2 pointer-events-auto",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-purple-500/15 border border-purple-500/35 text-purple-300 font-mono text-[10px] font-bold tracking-wider shadow-[0_0_15px_rgba(168,85,247,0.2)]",children:[e.jsx(N,{className:"w-3 h-3 text-purple-400"}),e.jsx("span",{children:j.badge})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-xl sm:text-2xl font-extrabold text-white tracking-tight drop-shadow-md",children:j.title}),e.jsxs("p",{className:"text-xs font-mono text-emerald-400 font-semibold flex items-center justify-center gap-1.5",children:[e.jsx("span",{className:`w-2 h-2 rounded-full ${l?"bg-emerald-400 animate-ping":"bg-slate-500"}`}),e.jsxs("span",{children:[j.subtitle," ⢠",O(h)]})]})]}),e.jsxs("div",{onClick:S,className:"w-full bg-white/5 border border-white/12 rounded-2xl p-3 space-y-2 backdrop-blur-md cursor-pointer hover:border-purple-500/60 transition-all duration-200 pointer-events-auto shadow-lg hover:shadow-purple-500/20",children:[e.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono text-slate-400 px-1",children:[e.jsxs("span",{className:"flex items-center gap-1 text-purple-400 font-semibold",children:[e.jsx(b0,{className:"w-3 h-3"})," ",l?"Playing Voice Audio":"Click to Play Recording"]}),e.jsx("span",{children:"PCM 24kHz ⢠220ms"})]}),e.jsx("div",{className:"w-full h-8 flex items-center justify-center",children:e.jsx("canvas",{ref:b,className:"w-full h-full"})})]}),e.jsxs("div",{className:"w-full bg-white/5 border border-white/10 rounded-2xl p-3 text-left space-y-2 backdrop-blur-md shadow-md",children:[e.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono font-bold",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-emerald-400",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),"AI CALL HIGHLIGHTS"]}),e.jsx("span",{className:"text-purple-300 font-semibold",children:"Real-Time Sync"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5 pt-0.5",children:j.highlights?.map((R,k)=>e.jsx("span",{className:"px-2.5 py-1 rounded-lg bg-purple-500/15 border border-purple-500/30 text-purple-200 text-[10px] font-medium flex items-center gap-1 shadow-sm",children:R},k))})]}),e.jsxs("div",{className:"w-full pt-1 flex items-center justify-center gap-4 relative z-50 pointer-events-auto",children:[e.jsx("button",{type:"button",onClick:C,className:"w-10 h-10 rounded-full bg-white/10 border border-white/15 text-slate-300 hover:text-white hover:bg-white/20 flex items-center justify-center transition-colors cursor-pointer pointer-events-auto shadow-md",title:c?"Unmute":"Mute",children:c?e.jsx(wR,{className:"w-4 h-4 text-rose-400"}):e.jsx(b0,{className:"w-4 h-4 text-purple-300"})}),e.jsx("button",{type:"button",onClick:S,className:"w-14 h-14 roun
39ded-full bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 hover:to-indigo-500 text-white flex items-center justify-center shadow-xl shadow-purple-600/50 transition-all hover:scale-110 active:scale-95 cursor-pointer pointer-events-auto relative z-50",title:l?"Pause Voice":"Play Voice Audio",children:l?e.jsx(O9,{className:"w-6 h-6 fill-white"}):e.jsx(U9,{className:"w-6 h-6 fill-white ml-0.5"})}),e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-500/20 border border-emerald-500/40 text-emerald-400 flex items-center justify-center shadow-md",children:e.jsx(M0,{className:"w-5 h-5"})})]})]}),e.jsx("div",{className:"relative z-40 w-24 h-1 bg-slate-600 rounded-full mb-0.5 shadow-sm"})]})})]}),e.jsx("div",{className:"relative z-50 mt-16 sm:mt-20 w-full flex items-center justify-center gap-2.5 sm:gap-4 overflow-x-auto whitespace-nowrap px-2 py-1 no-scrollbar",children:CA.map((R,k)=>{const E=k===t,z=R.icon;return e.jsxs("button",{onClick:()=>A(k),className:`px-3.5 sm:px-4 py-2 rounded-full text-xs font-mono font-bold flex items-center gap-2 transition-all duration-200 cursor-pointer shrink-0 whitespace-nowrap shadow-md ${E?"bg-purple-600 text-white border border-purple-400 shadow-purple-600/50 scale-105":"bg-[#130b2b] border border-purple-500/40 text-purple-200 hover:text-white hover:border-purple-400 hover:bg-purple-900"}`,children:[e.jsx(z,{className:`w-3.5 h-3.5 ${E?"text-white":"text-purple-400"}`}),e.jsx("span",{children:R.name})]},R.id)})})]})};jt.registerPlugin(Ye);const RR=()=>{const[a,t]=y.useState(!1),n=y.useRef(null),l=y.useRef(null),i=y.useRef(null),c=y.useRef(null),u=y.useRef(null),h=y.useRef(null),f=y.useRef(null),p=y.useRef(null);return y.useEffect(()=>{const x=n.current;if(!x)return;const b=new IntersectionObserver(w=>{w.forEach(j=>{j.isIntersecting?t(!0):t(!1)})},{threshold:.15});b.observe(x);const v=jt.context(()=>{jt.set(i.current,{scale:.65,y:20,rotateY:-3,rotateX:2,opacity:1}),jt.set(u.current,{opacity:1,y:0,scale:1}),jt.set(h.current,{opacity:0,y:20,scale:.98}),jt.set(c.current,{scale:.6,opacity:.4}),jt.set(l.current,{opacity:.1});const w=jt.timeline({scrollTrigger:{trigger:x,start:"top top",end:"+=60%",pin:!0,scrub:.05,anticipatePin:1,onEnter:()=>t(!0),onEnterBack:()=>t(!0),onLeave:()=>t(!1),onLeaveBack:()=>t(!1),onToggle:j=>{t(j.isActive)}}});w.to(u.current,{opacity:0,y:-20,duration:.2,ease:"power1.out"},0),w.to(h.current,{opacity:1,y:0,scale:1,duration:.25,ease:"power1.out"},.1),w.to(i.current,{scale:.88,y:-10,rotateY:0,rotateX:0,duration:.4,ease:"power2.out"},0),w.to(c.current,{scale:1,opacity:.8,duration:.4,ease:"power1.out"},0),w.to(l.current,{opacity:.6,duration:.4,ease:"power1.out"},0),w.to(i.current,{scale:.88,y:-10,duration:.4,ease:"none"},.4)},x);return()=>{b.disconnect(),v.revert()}},[]),e.jsxs("section",{ref:n,id:"hero-to-section2-transition",className:"relative min-h-screen w-full bg-[#05030B] font-sans antialiased overflow-hidden flex flex-col items-center justify-between py-12 px-4 sm:px-8 select-none z-20",children:[e.jsx("div",{ref:l,className:"absolute inset-0 bg-gradient-to-b from-[#05030B] via-[#0F0826]/80 to-[#0A0518] pointer-events-none z-0"}),e.jsx("div",{ref:c,className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] sm:w-[800px] h-[600px] sm:h-[800px] rounded-full bg-gradient-to-tr from-purple-600/30 via-fuchsia-500/20 to-cyan-400/15 blur-[120px] pointer-events-none z-10"}),e.jsx("div",{ref:f,className:"absolute inset-0 pointer-events-none z-10 opacity-30",children:e.jsxs("svg",{className:"w-full h-full",fill:"none",viewBox:"0 0 1440 900",preserveAspectRatio:"none",children:[e.jsx("path",{d:"M -100 450 C 300 200, 600 700, 1540 450",stroke:"url(#purpleCyanGrad1)",strokeWidth:"2.5",strokeDasharray:"8 6",className:"animate-pulse"}),e.jsx("path",{d:"M -100 350 C 400 650, 900 150, 1540 550",stroke:"url(#purpleCyanGrad2)",strokeWidth:"1.5"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"purpleCyanGrad1",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[e.jsx("stop",{offset:"0%",stopColor:"#a855f7",stopOpacity:"0.8"}),e.jsx("stop",{offset:"50%",stopColor:"#d946ef",stopOpacity:"0.6"}),e.jsx("stop",{offset:"100%",stopColor:"#06b6d4",stopOpacity:"0.8"})]}),e.jsxs("linearGradient",{id:"purpleCyanGrad2",x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:"#06b6d4",stopOpacity:"0.7"}),e.jsx("stop",{offset:"100%",stopColor:"#9333ea",stopOpacity:"0.8"})]})]})]})}),e.jsx("div",{ref:p,className:"absolute inset-0 pointer-events-none overflow-hidden z-10 opacity-40",children:Array.from({length:18}).map((x,b)=>e.jsx("div",{className:"absolute rounded-full bg-gradient-to-r from-purple-400 to-cyan-300 blur-[1px] animate-pulse",style:{width:`${b%3*2+3}px`,height:`${b%3*2+3}px`,top:`${b*17%95}%`,left:`${b*23%95}%`,animationDuration:`${b%4+3}s`}},b))}),e.jsxs("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center pointer-events-none select-none overflow-hidden px-4 text-center",children:[e.jsx("div",{ref:u,className:"w-full flex items-center justify-center",children:e.jsx("h2",{className:"text-4xl sm:text-6xl md:text-7xl lg:text-8xl font-black tracking-tighter text-transparent bg-clip-text bg-gradient-to-r from-purple-300 via-white to-purple-300 drop-shadow-[0_0_35px_rgba(168,85,247,0.6)] whitespace-nowrap",children:"Every conversation is an opportunity."})}),e.jsxs("div",{ref:h,className:"absolute inset-0 flex flex-col items-center justify-center space-y-3",children:[e.jsxs("h2",{className:"text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-black tracking-tight text-white drop-shadow-[0_0_30px_rgba(255,255,255,0.4)] whitespace-nowrap",children:["AI that listens. ",e.jsx("span",{className:"text-purple-400 drop-shadow-[0_0_25px_rgba(192,38,211,0.9)]",children:"AI that understands."})," ",e.jsx("span",{className:"text-fuchsia-400 drop-shadow-[0_0_25px_rgba(236,72,153,0.9)]",children:"AI that acts."})]}),e.jsx("p",{className:"text-xs sm:text-base font-extrabold tracking-widest text-cyan-300 uppercase font-mono drop-shadow-[0_0_15px_rgba(6,182,212,0.7)]",children:"VoiceRix Autonomous Conversation Engine"})]})]}),e.jsx("div",{className:"relative z-30 my-auto flex items-center justify-center w-full max-w-2xl pointer-events-auto",children:e.jsx("div",{ref:i,className:"relative transition-shadow duration-500 transform-gpu",style:{transformStyle:"preserve-3d",perspective:"1200px"},children:e.jsx(TR,{autoPlay:a})})}),e.jsx("div",{className:"relative z-30 pb-4 text-center",children:e.jsx("span",{className:"text-[11px] sm:text-xs font-mono font-bold tracking-[0.25em] text-purple-300/70 uppercase animate-pulse",children:"SCROLL TO TRAVEL INTO VOICERIX ENGINE"})})]})},OR=({navigate:a})=>e.jsxs("section",{className:"relative w-full bg-[#F8F5FF] text-slate-900 font-sans antialiased overflow-hidden py-16 sm:py-24 px-4 sm:px-8 select-none border-t border-purple-100/60",children:[e.jsx("div",{className:"absolute top-1/3 left-1/4 w-[500px] h-[350px] bg-purple-200/30 rounded-full blur-[130px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-[500px] h-[350px] bg-indigo-200/30 rounded-full blur-[130px] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto w-full space-y-10",children:[e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6}
39,className:"text-center max-w-4xl mx-auto space-y-3",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-purple-100/70 border border-purple-200 text-purple-800 text-xs font-extrabold tracking-wider shadow-xs",children:[e.jsx(z0,{className:"w-3.5 h-3.5 text-purple-600 stroke-[2.5]"}),e.jsx("span",{children:"AI WORKFORCE EVOLUTION"})]}),e.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-extrabold text-slate-950 tracking-tight leading-snug",children:"Upgrade From Manual Calling to AI Automation"}),e.jsx("p",{className:"text-slate-600 text-sm sm:text-base font-semibold max-w-xl mx-auto",children:"Replace slow manual dialers with 24/7 intelligent voice agents."})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[e.jsxs(ve.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,ease:"easeOut"},className:"bg-white border-2 border-red-100/90 rounded-3xl p-4 sm:p-6 flex flex-col justify-between shadow-xl shadow-red-500/5 space-y-5",children:[e.jsx("div",{className:"relative w-full h-[230px] sm:h-[270px] bg-[#0A0D14] rounded-2xl overflow-hidden flex items-center justify-center border border-slate-200 shadow-inner",children:e.jsx("video",{src:"/Create_a_standalone_premium_MI (online-video-cutter.com).mp4",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-contain rounded-2xl"})}),e.jsxs("div",{className:"bg-red-50/70 border border-red-100 rounded-2xl p-4 text-left space-y-1 shadow-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 text-red-600 text-lg sm:text-xl font-black tracking-tight",children:[e.jsx(Fb,{className:"w-4 h-4 stroke-[2.5]"}),e.jsx("span",{children:"The Old Way"})]}),e.jsx("p",{className:"text-slate-700 text-xs font-semibold leading-relaxed",children:"Slow responses. Missed calls. Manual follow-ups. Limited by team capacity."})]})]}),e.jsxs(ve.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,ease:"easeOut"},className:"bg-white border-2 border-purple-200/90 rounded-3xl p-4 sm:p-6 flex flex-col justify-between shadow-xl shadow-purple-500/10 space-y-5",children:[e.jsxs("div",{className:"relative w-full h-[230px] sm:h-[270px] bg-[#0A0D14] rounded-2xl overflow-hidden flex items-center justify-center border border-purple-200 shadow-inner",children:[e.jsx("video",{src:"/Create_a_completely_separate_s (online-video-cutter.com).mp4",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-contain rounded-2xl"}),e.jsx("div",{className:"absolute bottom-2 inset-x-0 text-center text-[9px] sm:text-[10px] font-mono text-purple-200 bg-purple-950/80 backdrop-blur-xs py-0.5 px-1",children:"Lower Cost, Less Workload. More growth â all powered by VoiceRix."})]}),e.jsxs("div",{className:"bg-purple-50/80 border border-purple-100 rounded-2xl p-4 text-left space-y-1 shadow-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 text-purple-900 text-lg sm:text-xl font-black tracking-tight",children:[e.jsx(M0,{className:"w-4 h-4 text-emerald-600 stroke-[2.5]"}),e.jsx("span",{children:"VoiceRix Way"})]}),e.jsx("p",{className:"text-slate-800 text-xs font-semibold leading-relaxed",children:"Instant answers. Qualified leads. Booked meetings. Always on."})]})]})]})]})]}),MR=["â Smart Voice Agents","â Automated Workflows","â Real-Time Insights"],zR=()=>{const[a,t]=y.useState({x:0,y:0}),[n,l]=y.useState(()=>typeof window<"u"?window.innerWidth<1024:!1),i=y.useRef(null),c=y.useRef(null),u=y.useRef(null),h=y.useRef(null),f=y.useRef(null),p=y.useRef(null),x=y.useRef(null),b=y.useRef(null),v=y.useRef(null);y.useEffect(()=>{const N=()=>l(window.innerWidth<1024);return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[]),y.useEffect(()=>{const N=i.current,A=v.current;if(!N)return;if(window.innerWidth<1024){h.current&&jt.set(h.current,{clipPath:"none",y:0,opacity:1,clearProps:"all"}),f.current&&jt.set(f.current,{clipPath:"none",y:0,opacity:1,clearProps:"all"}),u.current&&jt.set(u.current,{opacity:1,x:0,y:0,clearProps:"all"}),p.current&&jt.set(p.current,{opacity:1,y:0,clearProps:"all"}),x.current&&jt.set(x.current,{opacity:1,y:0,clearProps:"all"}),b.current&&jt.set(b.current,{opacity:1,y:0,clearProps:"all"}),c.current&&jt.set(c.current,{x:0,width:"100%",scale:1,rotateX:0,rotateY:0,y:0,clearProps:"all"});return}if(A){const C=A.getTotalLength();jt.set(A,{strokeDasharray:C,strokeDashoffset:C}
39)}jt.set([h.current,f.current],{clipPath:"polygon(0 100%, 100% 100%, 100% 100%, 0 100%)",y:40}),jt.set(u.current,{opacity:0,x:-60}),jt.set(p.current,{opacity:0,y:40}),jt.set(x.current,{opacity:0,y:30}),jt.set(b.current,{opacity:0,y:30}),jt.set(c.current,{x:0,width:"80vw",scale:.85,rotateX:12,y:0});const S=jt.timeline({scrollTrigger:{trigger:N,start:"top top",end:"+=50%",pin:!0,scrub:.05}});return A&&S.to(A,{strokeDashoffset:0,ease:"none",duration:1},0),S.to(u.current,{opacity:1,x:0,duration:.25,ease:"power3.out"},.1),S.to(h.current,{clipPath:"polygon(0 0%, 100% 0%, 100% 100%, 0 100%)",y:0,duration:.3,ease:"power3.out"},.2),S.to(f.current,{clipPath:"polygon(0 0%, 100% 0%, 100% 100%, 0 100%)",y:0,duration:.3,ease:"power3.out"},.35),S.to(p.current,{opacity:1,y:0,duration:.25,ease:"power2.out"},.45),S.to(x.current,{opacity:1,y:0,duration:.2,ease:"power2.out"},.55),S.to(b.current,{opacity:1,y:0,duration:.2,ease:"power2.out"},.65),S.to(c.current,{x:0,width:"100%",scale:1,rotateX:0,rotateY:0,y:0,ease:"power2.inOut",duration:.25},.75),()=>S.kill()},[]);const w=N=>
39{if(!c.current||window.innerWidth<1024)return;const A=c.current.getBoundingClientRect(),S=N.clientX-A.left-A.width/2,C=N.clientY-A.top-A.height/2;t({x:C/A.height*-8,y:S/A.width*8})},j=n?{opacity:1,transform:"none",clipPath:"none"}:void 0;return e.jsxs("section",{ref:i,id:"section6-cinematic",className:"relative min-h-screen w-full bg-[#FFFFFF] text-slate-900 font-sans antialiased overflow-hidden flex flex-col justify-between pt-12 pb-12 px-6 sm:px-12 transition-colors duration-500",style:{perspective:"1200px",perspectiveOrigin:"50% 50%"},children:[e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[900px] h-[900px] bg-purple-100/40 rounded-full blur-[200px] pointer-events-none"}),e.jsx("svg",{className:"absolute inset-0 w-full h-full pointer-events-none z-10 opacity-30",fill:"none",children:e.jsx("path",{ref:v,d:"M -100 200 C 400 50, 600 700, 1200 400 C 1500 200, 1700 500, 1900 350",stroke:"#8b5cf6",strokeWidth:"3.5",strokeLinecap:"round"})}),e.jsxs("div",{className:"relative z-20 max-w-7xl mx-auto w-full grid grid-cols-1 lg:grid-cols-12 gap-12 items-center my-auto",children:[e.jsxs("div",{ref:u,style:j,className:"lg:col-span-5 space-y-8 text-left z-30",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-purple-50 border border-purple-100 text-purple-700 text-xs font-mono font-bold tracking-wider uppercase",children:[e.jsx(z0,{className:"w-4 h-4 text-purple-600"}),e.jsx("span",{children:"VOICE INTELLIGENCE"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"overflow-hidden",children:e.jsx("h2",{ref:h,style:j,className:"text-3xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight text-slate-900 leading-tight",children:"Every Call."})}),e.jsx("div",{className:"overflow-hidden",children:e.jsx("h2",{ref:f,style:j,className:"text-3xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight bg-gradient-to-r from-purple-600 to-fuchsia-600 bg-clip-text text-transparent leading-tight",children:"One Intelligent System."})})]}),e.jsx("p",{ref:p,style:j,className:"text-base sm:text-lg font-light text-slate-600 leading-relaxed max-w-xl",children:"Turn conversations into qualified leads, booked appointments, automated follow-ups, and actionable insights."}),e.jsx("div",{ref:x,style:j,className:"flex flex-wrap gap-3",children:MR.map((N,A)=>e.jsx("div",{className:"px-4 py-2 rounded-xl bg-purple-50 border border-purple-100 text-purple-700 text-xs font-mono font-bold shadow-sm flex items-center gap-2",children:e.jsx("span",{children:N})},A))}),e.jsx("div",{ref:b,style:j,className:"pt-2",children:e.jsxs("button",{onClick:()=>{const N="https://client.voicerix.ai/auth/login";window.location.href=N},className:"px-8 py-4 rounded-2xl bg-purple-600 hover:bg-purple-700 text-white font-bold text-base shadow-xl shadow-purple-600/30 hover:scale-[1.02] active:scale-[0.98] transition-all flex items-center gap-3 group",children:[e.jsx("span",{children:"Explore Platform"}),e.jsx(Vb,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]}),e.jsx("div",{className:"lg:col-span-7 w-full flex items-center justify-center",children:e.jsx("div",{ref:c,onMouseMove:w,onMouseLeave:()=>t({x:0,y:0}),style:{transform:n?"none":`perspective(1200px) rotateX(${a.x}deg) rotateY(${a.y}deg)`,transition:"transform 0.2s ease-out"},className:"relative w-full max-w-2xl group rounded-[32px] overflow-hidden shadow-2xl shadow-purple-500/25 border border-purple-100/80 bg-white/80 backdrop-blur-xl p-3 z-30 transition-all duration-300",children:e.jsx("img",{src:"/overview.png",alt:"VoiceRix Workspace Overview Portal",className:"w-full h-auto object-cover rounded-[24px] group-hover:scale-105 transition-transform duration-700 shadow-sm"})})})]})]})},LR=()=>e.jsxs("section",{id:"platform",className:"relative w-full bg-[#0B051D] text-slate-900 font-sans antialiased overflow-hidden py-16 sm:py-24 px-4 sm:px-8 select-none",children:[e.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-[800px] h-[500px] bg-purple-900/20 rounded-full blur-[140px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-10 right-10 w-[400px] h-[400px] bg-indigo-900/20 rounded-full blur-[120px] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto w-full space-y-12",children:[e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6}
vendor: 4,418 bytes, line 39
39,className:"text-center max-w-3xl mx-auto space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/10 border border-white/15 text-purple-300 text-xs font-bold tracking-wide backdrop-blur-md",children:[e.jsx(z0,{className:"w-3.5 h-3.5 text-purple-400"}),e.jsx("span",{children:"VOICERIX AI CAPABILITIES"})]}),e.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-black text-white tracking-tight leading-tight",children:"Scale Your Operations With Intelligent AI Voice"}),e.jsx("p",{className:"text-slate-400 text-sm sm:text-base font-medium max-w-xl mx-auto",children:"Handle thousands of calls simultaneously with human-like voice agents."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-5",children:[e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"md:col-span-2 bg-[#E6FFFA] rounded-3xl p-7 flex flex-col justify-between shadow-xl relative overflow-hidden min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsxs("div",{className:"grid grid-cols-4 gap-3 items-center opacity-85 mb-8 pt-1",children:[e.jsxs("div",{className:"flex items-center gap-1 font-bold text-slate-800 text-[11px] sm:text-xs",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-cyan-600"})," Salesforce"]}),e.jsx("div",{className:"font-extrabold text-slate-800 text-[11px] sm:text-xs tracking-wider",children:"HUBSPOT"}),e.jsx("div",{className:"font-mono text-slate-800 text-[11px] sm:text-xs font-bold",children:"Zoho CRM"}),e.jsx("div",{className:"font-black text-emerald-700 text-xs sm:text-sm tracking-tight",children:"WhatsApp"}),e.jsxs("div",{className:"flex items-center gap-1 font-bold text-slate-800 text-[11px] sm:text-xs",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-indigo-500"})," Stripe"]}),e.jsx("div",{className:"font-black text-blue-900 text-xs sm:text-sm tracking-tighter",children:"Google Cal"}),e.jsx("div",{className:"font-serif font-bold text-slate-800 text-[10px] sm:text-xs truncate",children:"Outlook"}),e.jsx("div",{className:"font-black text-orange-600 text-xs sm:text-sm",children:"Zapier"})]}),e.jsxs("div",{className:"space-y-1 mt-auto",children:[e.jsx("h3",{className:"text-2xl sm:text-3xl lg:text-4xl font-extrabold text-slate-900 tracking-tight",children:"1,200+ Business Calls Handled"}),e.jsx("p",{className:"text-slate-600 text-xs sm:text-sm font-medium",children:"Automated lead booking & instant CRM synchronization"})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-white rounded-3xl p-6 flex flex-col justify-between shadow-xl relative border border-slate-100 min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-purple-50 text-purple-700 text-[10px] font-bold",children:[e.jsx(Kb,{className:"w-3 h-3 text-purple-600"}),e.jsx("span",{children:"ULTRA-LOW LATENCY"})]}),e.jsx("p",{className:"text-slate-700 text-xs sm:text-sm font-medium leading-relaxed",children:'"VoiceRix AI responds in under 200ms with natural human tone, zero awkward pauses, and instant multi-turn understanding."'})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-slate-100 mt-auto",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-purple-100 border border-purple-200 flex items-center justify-center text-purple-700 font-bold overflow-hidden shadow-sm",children:"ðï¸"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-bold text-slate-900",children:"Real-time Voice Engine"}),e.jsx("div",{className:"text-[11px] text-slate-500 font-medium",children:"24kHz HD Stream"})]})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-[#FDF2F8] rounded-3xl p-6 flex flex-col justify-between shadow-xl relative overflow-hidden min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsx("div",{className:"flex items-center justify-start pt-2",children:e.jsxs("div",{className:"relative flex items-center bg-white/70 backdrop-blur-md p-2 rounded-2xl border border-pink-100 shadow-sm",children:[e.jsxs("div",{className:"flex -sp
39ace-x-2",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-purple-200 border-2 border-white flex items-center justify-center text-xs font-bold text-purple-700",children:"ð©ð»âð¼"}),e.jsx("div",{className:"w-9 h-9 rounded-full bg-indigo-200 border-2 border-white flex items-center justify-center text-xs font-bold text-indigo-700",children:"ð¨ð½âð¼"})]}),e.jsx("div",{className:"w-7 h-7 rounded-full bg-amber-500 text-white flex items-center justify-center ml-2 shadow-sm",children:e.jsx(Ka,{className:"w-4 h-4 stroke-[2.5]"})})]})}),e.jsxs("div",{className:"space-y-1 mt-auto",children:[e.jsx("h3",{className:"text-3xl sm:text-4xl font-black text-slate-900 tracking-tight",children:"99.9%"}),e.jsx("p",{className:"text-slate-600 text-xs font-medium",children:"Uptime for 24/7 automated call operations"})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"bg-[#E0F7FA] rounded-3xl p-6 flex flex-col justify-between shadow-xl relative overflow-hidden min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsx("div",{className:"flex items-center justify-center pt-2",children:e.jsxs("div",{className:"w-24 h-24 rounded-full bg-white/80 backdrop-blur-md flex items-center justify-center relative shadow-sm border border-cyan-100",children:[e.jsx("span",{className:"text-xl absolute top-1",children:"ð¬ð§"}),e.jsx("span",{className:"text-xl absolute bottom-1",children:"ð©ðª"}),e.jsx("span",{className:"text-xl absolute left-1",children:"ðªð¸"}),e.jsx("span",{className:"text-xl absolute right-1",children:"ð®ð³"})]})}),e.jsxs("div",{className:"space-y-1 mt-auto",children:[e.jsx("h3",{className:"text-3xl sm:text-4xl font-black text-slate-900 tracking-tight",children:"50+"}),e.jsx("p",{className:"text-slate-600 text-xs font-medium",children:"Languages & Regional Dialects Supported"})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.5},className:"bg-white rounded-3xl p-6 flex flex-col justify-between shadow-xl relative border border-slate-100 min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-emerald-50 text-emerald-700 text-[10px] font-bold",children:[e.jsx(M0,{className:"w-3 h-3 text-emerald-600"}),e.jsx("span",{children:"LEAD QUALIFICATION"})]}),e.jsx("p",{className:"text-slate-700 text-xs sm:text-sm font-medium leading-relaxed",children:'"Our AI agents qualify incoming phone leads 30% faster, filter spam calls automatically, and book meetings directly into your calendar."'})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-slate-100 mt-auto",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-100 border border-emerald-200 flex items-center justify-center text-emerald-700 font-bold overflow-hidden shadow-sm",children:"ð¯"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-bold text-slate-900",children:"Smart Intent Engine"}),e.jsx("div",{className:"text-[11px] text-slate-500 font-medium",children:"Auto Lead Scoring"})]})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.6},className:"md:col-span-2 bg-[#FCE7F3] rounded-3xl p-7 flex flex-col justify-between shadow-xl relative overflow-hidden min-h-[260px] group hover:scale-[1.01] transition-transform",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 opacity-90 mb-4 pt-2",children:[e.jsxs("div",{className:"flex items-center gap-2 bg-white/70 px-3 py-1.5 rounded-full border border-pink-200",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-pink-200 flex items-center justify-center text-xs",children:"ð¨ð»âð¼"}),e.jsx("div",{className:"text-[10px] font-bold text-slate-700",children:"Customer"}),e.jsx("div",{className:"w-8 h-1.5 bg-pink-300/60 rounded-full"})]}),e.jsx("div",{className:"w-12 h-12 rounded-full bg-rose-500 text-white flex items-center justify-center shadow-lg shadow-rose-500/30",children:e.jsx(At,{className:"w-6 h-6 fill-white"})}),e.jsxs("div",{className:"flex items-center gap-2 bg-white/70 px-3 py-1.5 rounded-full border border-pink-200",children:[e.jsx("div",{className:"w-8 h-1.5 bg-pink-300/60 rounded-full"}),e.jsx("div",{className:"w-6 h-6 rounded-full bg-purple-200 flex items-center justify-center text-xs",children:"ð¤"}),e.jsx("div",{className:"text-[10px] font-bold text-slate-700",children:"VoiceRix AI"})]})]}),e.jsxs("div",{className:"space-y-1 mt-auto",children:[e.jsx("h3",{className:"text-2xl sm:text-3xl lg:text-4xl font-extrabold text-slate-900 tracking-tight",children:"12 million+"}),e.jsx("p",{className:"text-slate-600 text-xs sm:text-sm font-medium",children:"Voice call minutes processed with 99.4% accuracy"})]})]})]})]})]}),DR=({navigate:a})=>e.jsxs("section",{className:"relative w-full bg-[#FFFFFF] text-slate-900 font-sans antialiased overflow-hidden py-20 sm:py-28 select-none border-t border-slate-100",children:[e.jsx("div",{className:"absolute top-1/3 right-1/4 w-[500px] h-[350px] bg-purple-100/20 rounded-full blur-[140px] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-8 space-y-12",children:[e.jsxs(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"space-y-3 text-left",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-slate-50 border border-slate-200 text-purple-700 text-xs font-extrabold tracking-wider shadow-2xs",children:[e.jsx(z0,{className:"w-3.5 h-3.5 text-purple-600 stroke-[2.5]"}),e.jsx("span",{children:"FLEXIBLE AI DEPLOYMENT"})]}),e.jsx("h2",{className:"text-xl sm:text-3xl lg:text-4xl font-black text-slate-950 tracking-tight whitespace-nowrap overflow-hidden text-ellipsis",children:"Build & Deploy Custom AI Voice Agents"}),e.jsx("p",{className:"text-slate-600 text-sm sm:text-base font-semibold",children:"Custom voices. Smart workflows. Instant deployment. Always on."})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"hidden lg:block absolute -top-8 -bottom-8 left-[calc(25%+24px)] -right-[100vw] bg-gradient-to-r from-[#F8F2FF] via-[#FAF5FF] to-[#FAF
395FF] border-l border-purple-100/90 rounded-l-3xl pointer-events-none"}),e.jsxs("div",{className:"relative z-10 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 pt-2",children:[e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"bg-white border-2 border-slate-200/90 rounded-3xl p-6 flex flex-col justify-between shadow-lg shadow-slate-200/50 relative overflow-hidden min-h-[360px] group hover:border-purple-300 hover:shadow-xl hover:shadow-purple-500/10 hover:-translate-y-1.5 transition-all duration-300",children:[e.jsx("div",{className:"relative h-44 w-full bg-slate-50/80 border border-slate-100 rounded-2xl p-4 flex items-center justify-center shadow-inner overflow-hidden",children:e.jsxs("div",{className:"w-full max-w-[200px] bg-white border border-slate-200/80 rounded-xl p-2.5 space-y-1.5 shadow-md",children:[e.jsxs(ve.div,{animate:{scale:[1,1.04,1,1],opacity:[.6,1,.6,.6]},transition:{duration:4,repeat:1/0,times:[0,.25,.5,1],delay:0},className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg bg-slate-50 border border-slate-100 text-xs font-bold text-slate-700",children:[e.jsx(Ri,{className:"w-3.5 h-3.5 text-cyan-600"}),e.jsx("span",{children:"English & Hindi"})]}),e.jsxs(ve.div,{animate:{scale:[1,1,1.04,1],opacity:[.6,.6,1,.6]},transition:{duration:4,repeat:1/0,times:[0,.25,.5,.75],delay:0},className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg bg-slate-50 border border-slate-100 text-xs font-bold text-slate-700",children:[e.jsx(Pg,{className:"w-3.5 h-3.5 text-purple-600"}),e.jsx("span",{children:"24kHz HD Voice"})]}),e.jsxs(ve.div,{animate:{scale:[1,1,1,1.04],opacity:[.6,.6,.6,1]},transition:{duration:4,repeat:1/0,times:[0,.5,.75,1],delay:0},className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg bg-slate-900 border border-slate-900 text-xs font-bold text-white shadow-2xs",children:[e.jsx(Cn,{className:"w-3.5 h-3.5 text-white"}),e.jsx("span",{children:"Prompt Script"})]}),e.jsxs(ve.div,{animate:{scale:[1.04,1,1,1],opacity:[1,.6,.6,.6]},transition:{duration:4,repeat:1/0,times:[0,.25,.5,1],delay:0},className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg bg-slate-50 border border-slate-100 text-xs font-bold text-slate-500",children:[e.jsx(Yb,{className:"w-3.5 h-3.5 text-slate-400"}),e.jsx("span",{children:"Custom Persona"})]})]})}),e.jsxs("div",{className:"space-y-2 pt-5 mt-auto text-left",children:[e.jsx("h3",{className:"text-xl font-black text-slate-950 tracking-tight group-hover:text-purple-700 transition-colors",children:"Customize Agent"}),e.jsx("p",{className:"text-slate-600 text-xs font-semibold leading-relaxed",children:"HD voices. 30+ languages. Custom prompts. Tailored personas."})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"bg-white border-2 border-purple-100/80 rounded-3xl p-6 flex flex-col justify-between shadow-lg shadow-purple-950/5 relative overflow-hidden min-h-[360px] group hover:border-purple-300 hover:shadow-xl hover:shadow-purple-500/10 hover:-translate-y-1.5 transition-all duration-300",children:[e.jsxs("div",{className:"relative h-44 w-full bg-slate-50/80 border border-slate-100 rounded-2xl p-3.5 flex flex-col justify-between shadow-inner overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-purple-100/30 rounded-full blur-2xl pointer-events-none"}),e.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono font-bold text-slate-500 border-b border-slate-200/80 pb-1.5 z-10",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-purple-700 font-extrabold",children:[e.jsx(ve.span,{animate:{scale:[1,1.3,1],opacity:[.7,1,.7]},transition:{duration:1.8,repeat:1/0},className:"w-2 h-2 rounded-full bg-purple-600"}),"TOOL INTEGRATIONS"]}),e.jsx("span",{className:"text-emerald-600",children:"Auto-Synced"})]}),e.jsxs("div",{className:"space-y-2 z-10 py-0.5",children:[e.jsxs(ve.div,{animate:{x:[-8,0,0,-8],opacity:[.3,1,1,.3]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:0},className:"flex items-center justify-between bg-white border border-slate-100 rounded-xl p-2 shadow-2xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-sky-500"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Salesforce & HubSpot"})]}),e.jsx("span",{className:"text-[10px] font-mono font-extrabold text-purple-700 bg-purple-50 px-2 py-0.5 rounded-md border border-purple-100",children:"CRM Sync"})]}),e.jsxs(ve.div,{animate:{x:[-8,0,0,-8],opacity:[.3,1,1,.3]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:1.2},className:"flex items-center justify-between bg-white border border-slate-100 rounded-xl p-2 shadow-2xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Google Cal & Outlook"})]}),e.jsx("span",{className:"text-[10px] font-mono font-extrabold text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded-md border border-emerald-100",children:"Auto Book"})]}),e.jsxs(ve.div,{animate:{x:[-8,0,0,-8],opacity:[.3,1,1,.3]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:2.4},className:"flex items-center justify-between bg-white border border-slate-100 rounded-xl p-2 shadow-2xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500"}),e.jsx("span",{className:"text-xs font-black text-slate-900",children:"Stripe & WhatsApp"})]}),e.jsx("span",{className:"text-[10px] font-mono font-extrabold text-indigo-700 bg-indigo-50 px-2 py-0.5 rounded-md border border-indigo-100",children:"Live Actions"})]})]})]}),e.jsxs("div",{className:"space-y-2 pt-5 mt-auto text-left",children:[e.jsx("h3",{className:"text-xl font-black text-slate-950 tracking-tight group-hover:text-purple-700 transition-colors",children:"Connect Tools"}),e.jsx("p",{className:"text-slate-600 text-xs font-semibold leading-relaxed",children:"CRM sync. Calendar booking. Stripe payments. Instant webhooks."})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"bg-white border-2 border-purple-100/80 rounded-3xl p-6 flex flex-col justify-between shadow-lg shadow-purple-950/5 relative overflow-hidden min-h-[360px] group hover:border-purple-300 hover:shadow-xl hover:shadow-
39purple-500/10 hover:-translate-y-1.5 transition-all duration-300",children:[e.jsxs("div",{className:"relative h-44 w-full bg-slate-50/80 border border-slate-100 rounded-2xl p-4 flex flex-col items-center justify-center shadow-inner space-y-2.5 overflow-hidden",children:[e.jsx(ve.div,{animate:{scale:[.95,1.05,1,.95],opacity:[.4,1,1,.4]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:0},className:"px-3 py-1 rounded-lg bg-rose-50 border border-rose-200 text-rose-700 text-[11px] font-mono font-bold shadow-2xs",children:"Custom SMS & WhatsApp"}),e.jsx(ve.div,{animate:{scale:[.95,1.05,1,.95],opacity:[.4,1,1,.4]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:1.2},className:"px-3 py-1 rounded-lg bg-purple-50 border border-purple-200 text-purple-700 text-[11px] font-mono font-bold shadow-2xs",children:"Book a meeting"}),e.jsxs(ve.div,{animate:{scale:[.95,1.05,1,.95],opacity:[.4,1,1,.4]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:2.4},className:"flex items-center justify-center -space-x-2 pt-1",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 border-2 border-white flex items-center justify-center text-xs shadow-xs",children:"ð©ð»âð¼"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-indigo-100 border-2 border-white flex items-center justify-center text-xs shadow-xs",children:"ð¨ð½âð¼"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-pink-100 border-2 border-white flex items-center justify-center text-xs shadow-xs",children:"ð©ð½âð¼"})]})]}),e.jsxs("div",{className:"space-y-2 pt-5 mt-auto text-left",children:[e.jsx("h3",{className:"text-xl font-black text-slate-950 tracking-tight group-hover:text-purple-700 transition-colors",children:"Smart Actions"}),e.jsx("p",{className:"text-slate-600 text-xs font-semibold leading-relaxed",children:"Book meetings. Send SMS follow-ups. Update records. Transfer live."})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"bg-white border-2 border-purple-100/80 rounded-3xl p-6 flex flex-col justify-between shadow-lg shadow-purple-950/5 relative overflow-hidden min-h-[360px] group hover:border-purple-300 hover:shadow-xl hover:shadow-purple-500/10 hover:-translate-y-1.5 transition-all duration-300",children:[e.jsxs("div",{className:"relative h-44 w-full bg-slate-50/80 border border-slate-100 rounded-2xl p-3 flex flex-col justify-between shadow-inner overflow-hidden",children:[e.jsxs(ve.div,{animate:{opacity:[.3,1,1,.3],y:[-3,0,0,-3]},transition:{duration:3.6,repeat:1/0,times:[0,.2,.8,1],delay:0},className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 border border-emerald-200 text-emerald-700 text-[10px] font-mono font-bold self-start",children:[e.jsx(Vi,{className:"w-3 h-3 text-emerald-600"}),e.jsx("span",{children:"100+ Leads Qualified"})]}),e.jsxs("div",{className:"w-full h-20 pt-2 relative",children:[e.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 100 40",preserveAspectRatio:"none",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"chartGradLight",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#9333ea",stopOpacity:"0.25"}),e.jsx("stop",{offset:"100%",stopColor:"#9333ea",stopOpacity:"0.0"})]})}),e.jsx("path",{d:"M 0 35 Q 25 15, 50 25 T 100 5 L 100 40 L 0 40 Z",fill:"url(#chartGradLight)",opacity:"0.5"}),e.jsx(ve.path,{d:"M 0 35 Q 25 15, 50 25 T 100 5",fill:"none",stroke:"#9333ea",strokeWidth:"2.5",strokeLinecap:"round",animate:{pathLength:[0,1,1,0]},transition:{duration:3.6,repeat:1/0,times:[0,.5,.8,1],delay:.8}})]}),e.jsx(ve.div,{animate:{scale:[0,1.4,1,0],opacity:[0,1,1,0]},transition:{duration:3.6,repeat:1/0,times:[0,.3,.8,1],delay:1.8},className:"absolute top-1 right-1 w-2.5 h-2.5 rounded-full bg-purple-600 border-2 border-white shadow-xs"})]})]}),e.jsxs("div",{className:"space-y-2 pt-5 mt-auto text-left",children:[e.jsx("h3",{className:"text-xl font-black text-slate-950 tracking-tight group-hover:text-purple-700 transition-colors",children:"Track Performance"}),e.jsx("p",{className:"text-slate-600 text-xs font-semibold leading-relaxed",children:"Call summaries. Sentiment analysis. Conversion metrics. ROI insights."})]})]})]})]}),e.jsx(ve.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.5},className:"flex items-center justify-center pt-4",children:e.jsxs("button",{onClick:()=>a&&a("/contact-us"),className:"px-8 py-3.5 rounded-full bg-gradient-to-r from-purple-600 to-indigo-600 text-white font-extrabold text-sm shadow-lg shadow-purple-600/30 hover:shadow-xl hover:shadow-
39purple-600/40 hover:-translate-y-0.5 transition-all flex items-center gap-2 cursor-pointer",children:["Get Started ",e.jsx(Vb,{className:"w-4 h-4"})]})})]})]}),Co=["/lead.webp","/booking.webp","/payment.webp","/customer.webp","/marketing.webp","/feedback.webp"],Jh=[{title:"Lead Qualification",desc:"Automatically call new leads and capture key information.",image:Co[0]},{title:"Appointment Booking",desc:"Schedule and confirm appointments automatically.",image:Co[1]},{title:"Payment Reminders",desc:"Reduce missed payments with AI reminder calls.",image:Co[2]},{title:"Customer Support Calls",desc:"Answer common customer questions instantly.",image:Co[3]},{title:"Marketing Campaign Calls",desc:"Run large-scale outbound campaigns.",image:Co[4]},{title:"Customer Feedback Surveys",desc:"Collect feedback through voice surveys.",image:Co[5]}];function BR(){const[a,t]=y.useState(0),n=y.useRef(null),l=()=>{clearInterval(n.current),n.current=setInterval(()=>{t(c=>(c+1)%Jh.length)},3e3)},i=c=>{t(c),l()};return y.useEffect(()=>(l(),()=>clearInterval(n.current)),[]),e.jsx("section",{style:{background:"#ffffff",width:"100%",overflow:"hidden"},children:e.jsxs("div",{style:{fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif",maxWidth:1200,margin:"0 auto",padding:"100px 24px"},children:[e.jsx("style",{children:` 40 .ucs-page * { box-sizing: border-box; } 41 42 @media(max-width: 900px) { 43 .split-grid { 44 grid-template-columns: 1fr !important; 45 gap: 24px !important; 46 } 47 .image-wrapper { 48 min-height: auto !important; 49 padding: 12px !important; 50 margin-top: 10px; 51 } 52 .image-inner { 53 /* Gives the image proper vertical breathing room on phones */ 54 min-height: 320px !important; 55 height: 65vw !important; 56 } 57 .carousel-img { 58 /* Removes double padding to make the image expand fully */ 59 padding: 0px !important; 60 } 61 } 62 `}),e.jsxs("div",{style:{textAlign:"center",marginBottom:64},children:[e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,border:"1px solid #fbcfe8",borderRadius:100,padding:"6px 16px",fontSize:12,fontWeight:700,color:"#c026d3",background:"#fdf4ff",marginBottom:20,textTransform:"uppercase",letterSpacing:"0.08em"},children:[e.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:"#c026d3",display:"inline-block"}}),"Benefits and outcomes"]}),e.jsx("h2",{style:{fontSize:"clamp(28px, 3.5vw, 48px)",fontWeight:900,color:"#10002B",letterSpacing:"-.03em",lineHeight:1.1,margin:0},children:"The Results Speak for Themselves"})]}),e.jsxs("div",{style:{display:"flex",gap:80,alignItems:"flex-start",flexWrap:"wrap",justifyContent:"center"},children:[e.jsx("div",{style:{flex:1,minWidth:280,paddingTop:12},children:Jh.map((c,u)=>{const h=u===a;return e.jsxs("div",{onClick:()=>i(u),style:{padding:h?"20px 18px":"20px 0",margin:h?"8px -18px":"8px 0",borderBottom:h?"none":"1px solid #e2e8f0",borderRadius:h?16:0,background:h?"rgba(192,38,211,0.06)":"transparent",cursor:"pointer",transition:"all .2s"},children:[e.jsxs("div",{style:{fontSize:16,fontWeight:700,color:h?"#c026d3":"#10002B",transition:"color .2s",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.title,h&&e.jsx("svg",{width:"17",height:"17",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M4 8h8M9 5l3 3-3 3",stroke:"#c026d3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),h&&e.jsx("div",{style:{fontSize:14,color:"#475569",lineHeight:1.75,marginTop:8},children:c.desc})]},u)})}),e.jsx("div",{style:{flex:"0 0 620px",maxWidth:"100%"},children:e.jsxs("div",{style:{borderRadius:18,border:"1px solid #e2e8f0",background:"#ffffff",overflow:"hidden",boxShadow:"0 12px 40px rgba(192,38,211,.08)"},children:[e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"14px 18px",borderBottom:"1px solid #e2e8f0",background:"#f8fafc"},children:["#ef4444","#f59e0b","#22c55e"].map((c,u)=>e.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:c}},u))}),e.jsxs("div",{style:{position:"relative",width:"100%",height:440,overflow:"hidden",background:"#ffffff"},children:[Jh.map((c,u)=>e.jsx("img",{src:c.image,alt:c.title,className:"carousel-img",style:{width:"100%",height:"100%",objectFit:"contain",position:"absolute",inset:0,padding:"clamp(0px, 3vw, 32px)",opacity:u===a?1:0,transform:u===a?"translateY(0)":"translateY(12px)",transition:"opacity .45s ease, transform .45s ease"}},u)),e.jsxs("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:8,zIndex:-1},children:[e.jsx("div",{style:{fontSize:36},children:"ð¼ï¸"}),e.jsx("div",{style:{fontSize:13,color:"#94a3b8"},children:"Image will appear here"})]})]}),e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0",background:"#f8fafc",borderTop:"1px solid #e2e8f0"},children:Jh.map((c,u)=>e.jsx("button",{onClick:()=>i(u),"aria-label":`Go to slide ${u+1}`,style:{border:"none",cursor:"pointer",background:"transparent",padding:"12px 6px"},children:e.jsx("div",{style:{width:u===a?22:7,height:7,borderRadius:100,background:u===a?"#c026d3":"#cbd5e1",transition:"all .3s ease"}})},u))})]})})]})]})})}function PR(){const a=[{id:"solving-customer-call-overload-with-ai-voice-technology",title:"Solving Customer Call Overload with AI Voice Technology",image:"/blog-solving-customer-call-overload-with-ai-voice-technology.png",category:"Customer Support",date:"Sep 28, 2026"},{id:"how-ai-voice-automation-improves-customer-response-time",title:"How AI Voice Automation Improves Customer Response Time",image:"/blog-how-ai-voice-automation-improves-customer-response-time.png",category:"Customer Experience",date:"Sep 21, 2026"}],t=[{id:"the-hidden-cost-of-missed-calls-for-businesses",title:"The Hidden Cost of Missed Calls for Businesses: More Than Just Lost Leads",image:"/blog-the-hidden-cost-of-missed-calls-for-businesses.png"},{id:"how-to-automate-customer-calls-without-hiring-more-staff",title:"How to Automate Customer Calls Without Hiring More Staff",image:"/blog-how-to-automate-customer-calls-without-hiring-more-staff.png"},{id:"how-to-reduce-missed-customer-calls-using-ai",title:"How to Reduce Missed Customer Calls Using AI: A Practical Guide for Businesses",
62image:"/blog-how-to-reduce-missed-customer-calls-using-ai.png"}];return e.jsxs("section",{style:{background:"#ffffff",padding:"clamp(16px, 2vw, 32px) clamp(20px, 6vw, 80px)",fontFamily:'"Inter", sans-serif'},children:[e.jsx("style",{children:` 63 .thinktank-grid { 64 display: grid; 65 grid-template-columns: 1.1fr 1.1fr 0.8fr; 66 gap: 32px; 67 } 68 .tt-big-card { 69 text-decoration: none; 70 display: flex; 71 flex-direction: column; 72 gap: 16px; 73 } 74 .tt-img-container { 75 width: 100%; 76 aspect-ratio: 16/9; 77 border-radius: 16px; 78 overflow: hidden; 79 background: #f1f5f9; 80 border: 1px solid #e2e8f0; 81 transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s; 82 } 83 .tt-big-card:hover .tt-img-container { 84 transform: translateY(-4px); 85 box-shadow: 0 12px 24px rgba(192, 38, 211, 0.08); 86 } 87 .tt-img { 88 width: 100%; 89 height: 100%; 90 object-fit: cover; 91 } 92 .tt-title { 93 font-size: 15px; 94 fontWeight: 700; 95 color: '#10002B'; 96 lineHeight: 1.5; 97 margin: 0; 98 transition: color 0.2s; 99 } 100 .tt-big-card:hover .tt-title { 101 color: #c026d3; 102 } 103 .tt-small-item { 104 display: flex; 105 gap: 16px; 106 text-decoration: none; 107 align-items: center; 108 padding: 8px 0; 109 } 110 .tt-small-thumb { 111 width: 80px; 112 height: 52px; 113 border-radius: 8px; 114 overflow: hidden; 115 background: #f1f5f9; 116 border: 1px solid #e2e8f0; 117 flex-shrink: 0; 118 } 119 .tt-small-title { 120 font-size: 13px; 121 fontWeight: 600; 122 color: '#10002B'; 123 lineHeight: 1.4; 124 margin: 0; 125 transition: color 0.2s; 126 } 127 .tt-small-item:hover .tt-small-title { 128 color: #c026d3; 129 } 130 @media (max-width: 991px) { 131 .thinktank-grid { 132 grid-template-columns: 1fr 1fr; 133 } 134 .tt-col-small { 135 grid-column: span 2; 136 margin-top: 16px; 137 } 138 } 139 @media (max-width: 640px) { 140 .thinktank-grid { 141 grid-template-columns: 1fr; 142 } 143 .tt-col-small { 144 grid-column: span 1; 145 } 146 } 147 `}),e.jsxs("div",{style:{maxWidth:1140,margin:"0 auto"},children:[e.jsx("h2",{style:{fontSize:"clamp(22px, 3.2vw, 32px)",fontWeight:800,color:"#10002B",letterSpacing:"-0.02em",marginBottom:"clamp(30px, 4vw, 44px)"},children:"Latest from our Think Tank"}),e.jsxs("div",{className:"thinktank-grid",children:[a.map(n=>e.jsxs(as,{to:`/blog/${n.id}`,className:"tt-big-card",onClick:()=>window.scrollTo(0,0),children:[e.jsx("div",{className:"tt-img-container",children:e.jsx("img",{src:n.image,alt:n.title,className:"tt-img"})}),e.jsx("h3",{className:"tt-title",style:{fontSize:15,fontWeight:700,color:"#10002B",lineHeight:1.5,margin:0},children:n.title})]},n.id)),e.jsxs("div",{className:"tt-col-small",style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:t.map(n=>e.jsxs(as,{to:`/blog/${n.id}`,className:"tt-small-item",onClick:()=>window.scrollTo(0,0),children:[e.jsx("div",{className:"tt-small-thumb",children:e.jsx("img",{src:n.image,alt:n.title,style:{width:"100%",height:"100%",objectFit:"cover"}})}),e.jsx("h4",{className:"tt-small-title",style:{fontSize:13,fontWeight:700,color:"#10002B",lineHeight:1.4,margin:0},children:n.title})]},n.id))}),e.jsx("div",{style:{marginTop:12},children:e.jsx(as,{to:"/blog",style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:12,fontWeight:700,color:"#c026d3",textDecoration:"none",border:"1px solid rgba(192, 38, 211, 0.25)",padding:"8px 18px",borderRadius:8,background:"rgba(192, 38, 211, 0.04)",transition:"all 0.2s",fontFamily:"inherit"},onMouseEnter:n=>{n.currentTarget.style.background="rgba(192, 38, 211, 0.1)",n.currentTarget.style.borderColor="#c026d3"},onMouseLeave:n=>{n.currentTarget.style.background="rgba(192, 38, 211, 0.04)",n.currentTarget.style.borderColor="rgba(192, 38, 211, 0.25)"},onClick:()=>window.scrollTo(0,0),children:"Explore our AI blog  âº"})})]})]})]})]})}const UR=()=>{const a=gt();return e.jsxs("section",{style:{padding:"0",background:"#ffffff",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:"50%",left:"-5%",transform:"translateY(-50%)",width:300,height:300,borderRadius:"50%",background:"radial-gradient(circle,rgba(192,38,211,.1),transparent 70%)",filter:"blur(40px)",pointerEvents:"none"}}),e.jsx("div",{style:{position:"absolute",top:"50%",right:"-5%",transform:"translateY(-50%)",width:280,height:280,borderRadius:"50%",background:"radial-gradient(circle,rgba(147,51,234,.1),transparent 70%)",filter:"blur(40px)",pointerEvents:"none"}}),e.jsx("div",{style:{position:"relative"},children:e.jsx("div",{style:{borderRadius:0,overflow:"hidden",background:"#f1e6f8ff",padding:"60px 48px",textAlign:"center",position:"relative"},children:e.jsxs("div",{style:{position:"relative",zIndex:1},children:[e.jsxs("p",{style:{fontSize:"clamp(18px,2.5vw,24px)",color:"#475569",lineHeight:1.7,marginBottom:8},children:["Ready to automate your business calls with AI?",e.jsx("br",{}),"Zero missed calls, and limitless scale."]}),e.jsxs("p",{style:{fontSize:"clamp(20px,3vw,28px)",fontWeight:800,color:"#10002B",marginBottom:36,letterSpacing:"-0.02em"},children:["Choose"," ",e.jsx("span",{style:{color:"#c026d3"},children:"VoiceRix AI"})]}),e.jsx("div",{style:{display:"flex",justifyContent:"center",gap:16,flexWrap:"wrap"},children:e.jsx("button",{onClick:()=>a("/contact-us"),onMouseEnter:t=>{t.currentTarget.style.transform="translateY(-2px)",t.currentTarget.style.boxShadow="0 8px 24px rgba(192,38,211,0.6)"},onMouseLeave:t=>{t.currentTarget.style.transform="none",t.currentTarget.style.boxShadow="0 4px 12px rgba(192,38,211,0.4)"},style:{display:"inline-flex",alignItems:"center",gap:8,padding:"14px 36px",borderRadius:100,background:"linear-gradient(to right, #c026d3, #9333ea)",color:"#fff",fontWeight:800,fontSize:15,border:"none",cursor:"pointer",boxShadow:"0 4px 12px rgba(192,38,211,0.4)",transition:"transform 0.3s, box-shadow 0.3s",fontFamily:"inherit"},children:"Book a Demo â"})})]})})})]})},IR=[{label:"Banking & Finance",path:"/solutions/banking-&-finance"},{label:"Stock & Forex Market",path:"/solutions/stocks-&-forex-market"},{label:"Real Estate",path:"/solutions/real-estate"},{label:"Insurance",path:"/solutions/insurance"},{label:"Healthcare",path:"/solutions/healthcare"},{label:"E-Commerce",path:"/solutions/ecommerce"}
147,{label:"Travel & Hospitality",path:"/solutions/travel-&-hospitality"},{label:"Telecom",path:"/solutions/telecom"},{label:"Logistics",path:"/solutions/logistics"},{label:"Customer Support",path:"/solutions/customer-support"}],VR=[{label:"Lead Qualification & Screening",path:"/use-cases/lead-qualification-&-screening"},{label:"EMI & Payment Reminders",path:"/use-cases/emi-&-payment-reminders"},{label:"Marketing Campaign Calls",path:"/use-cases/marketing-campaign-calls"},{label:"Customer Feedback & Surveys",path:"/use-cases/customer-feedback-&-surveys"},{label:"Order Confirmations",path:"/use-cases/order-confirmations"},{label:"Transaction Confirmations",path:"/use-cases/transaction-confirmations"}],FR=[{label:"AI Customer Support Calls",path:"/use-cases/ai-customer-support-calls"},{label:"Appointment Booking & Reminders",path:"/use-cases/appointment-booking-&-reminders"},{label:"Call Routing",path:"/use-cases/call-routing"}],HR=[{label:"Blog",path:"/blog"},{label:"AI Guides",path:"/ai-guides"},{label:"Comparisons",path:"/comparisons"}],$h=({label:a,onClick:t})=>e.jsx("li",{className:"w-full list-none",children:e.jsxs("span",{onClick:t,className:"text-[#94a3b8] hover:text-[#d946ef] transition-colors duration-300 flex items-center gap-2.5 group cursor-pointer text-sm justify-start text-left",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-[#d946ef] rounded-full flex-shrink-0 group-hover:scale-150 transition-transform"}),e.jsx("span",{className:"leading-snug whitespace-nowrap",children:a})]})}),wx=({children:a})=>e.jsx("h3",{className:"inline-block pb-2 mb-4 text-base font-bold text-white border-b-2 border-[#d946ef]",children:a}),xc=()=>{const a=gt(),t=i=>{a(i),window.scrollTo(0,0)},n=[{href:"https://www.instagram.com/VoiceRix_ai/",label:"Instagram",svg:e.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})},{href:"https://www.youtube.com/@VoiceRix_ai",label:"YouTube",svg:e.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})},{href:"https://www.linkedin.com/showcase/VoiceRix/about/?viewAsMember=true",label:"LinkedIn",svg:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"}),e.jsx("circle",{cx:"4",cy:"4",r:"2"})]})},{href:"https://www.facebook.com/profile.php?id=61587651531961",label:"Facebook",svg:e.jsx("path",{d:"M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"})}],l=[{label:"Privacy Policy",path:"/privacy-policy"},{label:"Terms of Service",path:"/terms-of-service"},{label:"Partners & Referral Program",path:"/partners"},{label:"Contact Us",path:"/contact-us"}];return e.jsxs("footer",{className:"text-white pt-14 pb-8 px-4 sm:px-6 lg:px-10 relative overflow-hidden bg-[#0a001a]",children:[e.jsx("div",{className:"absolute inset-0 bg-[#0a001a]/85 z-0 pointer-events-none"}),e.jsx("div",{className:"absolute top-0 left-0 w-64 h-64 bg-[#c026d3]/10 rounded-full blur-3xl pointer-events-none z-0"}),e.jsx("div",{className:"absolute bottom-0 right-0 w-80 h-80 bg-[#9333ea]/10 rounded-full blur-3xl pointer-events-none z-0"}),e.jsxs("div",{className:"max-w-[1280px] mx-auto relative z-10",children:[e.jsxs("div",{className:"grid items-start grid-cols-1 gap-10 mb-12 sm:grid-cols-2 lg:grid-cols-12 xl:gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center col-span-1 text-center sm:col-span-2 lg:col-span-5 xl:col-span-3 lg:items-start lg:text-left lg:pr-8 xl:pr-4",children:[e.jsx("img",{src:"/Voicerix_logo.png",alt:"
147VoiceRix Logo",width:"400",height:"100",className:"object-contain w-auto h-24 sm:h-28 lg:h-28 filter drop-shadow-[0_0_20px_rgba(168,85,247,0.5)] cursor-pointer",onClick:()=>t("/")}),e.jsx("p",{className:"text-[#94a3b8] text-sm leading-relaxed mt-6 max-w-md lg:max-w-full text-center lg:text-justify",children:"VoiceRix AI is a smart AI voice automation platform that helps businesses automate calls, handle customer interactions, and provide 24/7 human-like support. It improves response time, reduces workload, and streamlines operations with scalable AI voice agents for customer support and call automation."}),e.jsxs("div",{className:"flex flex-row flex-wrap gap-3 mt-6 items-center lg:items-start",children:[e.jsxs("a",{href:"https://apps.apple.com/in/app/voicerix/id6764750473",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-white/15 bg-white/5 hover:bg-white/10 hover:border-[#c026d3]/50 transition-all duration-300 group",style:{height:48},children:[e.jsx("svg",{className:"w-6 h-6 text-white flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),e.jsxs("div",{className:"text-left",children:[e.jsx("div",{className:"text-[10px] text-white/50 leading-none",children:"Download on the"}),e.jsx("div",{className:"text-sm font-semibold text-white leading-tight",children:"App Store"})]})]}),e.jsxs("a",{href:"https://play.google.com/store/apps/details?id=com.voicerix.voiceagent",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-white/15 bg-white/5 hover:bg-white/10 hover:border-[#c026d3]/50 transition-all duration-300 group",style:{height:48},children:[e.jsxs("svg",{className:"w-6 h-6 flex-shrink-0",viewBox:"0 0 512 512",children:[e.jsx("path",{d:"M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1z",fill:"#EA4335"}),e.jsx("path",{d:"M47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l232.6-232.6L47 0z",fill:"#4285F4"}),e.jsx("path",{d:"M472.6 225.6l-58.9-34-67.7 67.7 67.7 67.7 59.1-34c16.8-9.8 16.8-33.5.2-43.3l-.4-.1z",fill:"#FBBC04"}),e.jsx("path",{d:"M315.9 303.1L93.1 512l280.8-161.2-58-47.7z",fill:"#34A853"})]}),e.jsxs("div",{className:"text-left",children:[e.jsx("div",{className:"text-[10px] text-white/50 leading-none",children:"Get it on"}),e.jsx("div",{className:"text-sm font-semibold text-white leading-tight",children:"Google Play"})]})]})]})]}),e.jsxs("div",{className:"col-span-1 text-left sm:col-span-2 lg:col-span-7 xl:col-span-5",children:[e.jsx(wx,{children:"Use Cases"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 lg:gap-8 xl:gap-4 mt-1",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-[11px] font-bold text-white/70 uppercase tracking-widest mb-3",children:"Outbound"}),e.jsx("ul",{className:"space-y-3.5",children:VR.map(i=>e.jsx($h,{label:i.label,onClick:()=>t(i.path)},i.path))})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-[11px] font-bold text-white/70 uppercase tracking-widest mb-3",children:"Inbound"}),e.jsx("ul",{className:"space-y-3.5",children:FR.map(i=>e.jsx($h,{label:i.label,onClick:()=>t(i.path)},i.path))})]})]})]}),e.jsxs("div",{className:"col-span-1 text-left sm:col-span-1 lg:col-span-6 xl:col-span-2",children:[e.jsx(wx,{children:"Solutions"}),e.jsx("ul",{className:"space-y-3.5 mt-1",children:IR.map(i=>e.jsx($h,{label:i.label,onClick:()=>t(i.path)},i.path))})]}),e.jsxs("div",{className:"col-span-1 text-left sm:col-span-1 lg:col-span-6 xl:col-span-2",children:[e.jsx(wx,{children:"Resources"}),e.jsx("ul",{className:"space-y-3.5 mt-1",children:HR.map(i=>e.jsx($h,{label:i.label,onClick:()=>t(i.path)},i.path))})]})]}),e.jsxs("div",{className:"pt-8 border-t border-white/10",children:[e.jsxs("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[e.jsx("div",{className:"flex flex-wrap justify-center order-2 gap-x-6 gap-y-3 md:justify-start md:order-1",children:l.map(i=>e.jsxs("span",{onClick:()=>t(i.path),className:"relative text-sm text-[#94a3b8] hover:text-white cursor-pointer transition-colors duration-300 font-medium group pb-1",children:[i.label,e.jsx("span",{className:"absolute bottom-0 left-0 w-0 h-[1.5px] bg-[#d946ef] transition-all duration-300 group-hover:w-full"})]},i.path))}),e.jsx("div",{className:"flex justify-center order-1 md:order-2",children:e.jsx("div",{className:"flex gap-4",children:n.map(({href:i,label:c,svg:u})=>e.jsx("a",{href:i,target:"_blank","aria-label":`Visit our ${c} page`,rel:"noopener noreferrer",className:"w-10 h-10 bg-white/5 rounded-full flex items-center justify-center hover:bg-[#c026d3] transition-all duration-300 hover:scale-110 border border-white/5",children:e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:u})},c))})})]}),e.jsx("div",{className:"mt-10 text-center",children:e.jsxs("p",{className:"text-sm font-medium text-[#94a3b8]",children:["© ",new Date().getFullYear()," VoiceRix. All rights reserved."]})})]})]})]})},Nx="voicerix_cookie_consent",EA="GTM-TPQ3T76J";function TA(){if(window._gtmLoaded)return;window._gtmLoaded=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});const a=document.createElement("script");a.async=!0,a.src=`https://www.googletagmanager.com/gtm.js?id=${EA}`,document.head.appendChild(a);const t=document.createElement("noscript"),n=document.createElement("iframe");n.src=`https://www.googletagmanager.com/ns.html?id=${EA}`,n.height="0",n.width="0",n.style.cssText="display:none;visibility:hidden",t.appendChild(n),document.body.prepend(t)}function qR(){const[a,t]=y.useState(!1);y.useEffect(()=>{const i=localStorage.getItem(Nx);if(i==="accepted")TA();else if(!i){const c=setTimeout(()=>t(!0),1e3);return()=>clearTimeout(c)}},[]);const n=()=>{localStorage.setItem(Nx,"accepted"),TA(),t(!1)},l=()=>{localStorage.setItem(Nx,"rejected"),t(!1)};return a?e.jsxs("div",{style:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",zIndex:99999,width:"100%",maxWidth:720,padding:"0 16px",animation:"cookieBannerIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both"},children:[e.jsx("style",{children:` 148 @keyframes cookieBannerIn { 149 from { opacity: 0; transform: translateX(-50%) translateY(30px); } 150 to { opacity: 1; transform: translateX(-50%) translateY(0); } 151 } 152 `}),e.jsxs("div",{style:{background:"rgba(16, 0, 43, 0.96)",backdropFilter:"blur(16px)",border:"1px solid rgba(192, 38, 211, 0.35)",borderRadius:16,padding:"20px 24px",boxShadow:"0 8px 40px rgba(192,38,211,0.18), 0 2px 16px rgba(0,0,0,0.5)",display:"flex",alignItems:"center",gap:20,flexWrap:"wrap"}
152,children:[e.jsx("div",{style:{flexShrink:0,width:42,height:42,borderRadius:10,background:"linear-gradient(135deg, rgba(192,38,211,0.25) 0%, rgba(162,28,175,0.15) 100%)",border:"1px solid rgba(192,38,211,0.3)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"#c026d3",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"}),e.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"#c026d3",stroke:"none"}),e.jsx("circle",{cx:"8",cy:"14",r:"1",fill:"#c026d3",stroke:"none"}),e.jsx("circle",{cx:"14",cy:"8",r:"1",fill:"#c026d3",stroke:"none"})]})}),e.jsx("div",{style:{flex:1,minWidth:200},children:e.jsxs("p",{style:{margin:0,fontSize:13.5,color:"#e2d9f3",lineHeight:1.6},children:["We use cookies to improve your experience and analyze site usage. By clicking"," ",e.jsx("strong",{style:{color:"#e879f9"},children:"Accept"}),", you agree to our"," ",e.jsx("a",{href:"/privacy-policy",style:{color:"#c026d3",textDecoration:"underline",fontWeight:600},children:"Cookie & Privacy Policy"}),"."]})}),e.jsxs("div",{style:{display:"flex",gap:10,flexShrink:0,flexWrap:"wrap"},children:[e.jsx("button",{onClick:l,style:{padding:"9px 20px",borderRadius:8,border:"1px solid rgba(192,38,211,0.4)",background:"transparent",color:"#c4b5d4",fontSize:13,fontWeight:600,cursor:"pointer",transition:"all 0.2s",fontFamily:"inherit",whiteSpace:"nowrap"},onMouseEnter:i=>{i.currentTarget.style.borderColor="rgba(192,38,211,0.8)",i.currentTarget.style.color="#e879f9"},onMouseLeave:i=>{i.currentTarget.style.borderColor="rgba(192,38,211,0.4)",i.currentTarget.style.color="#c4b5d4"},children:"Reject"}),e.jsx("button",{onClick:n,style:{padding:"9px 22px",borderRadius:8,border:"none",background:"linear-gradient(135deg, #c026d3 0%, #a21caf 100%)",color:"#fff",fontSize:13,fontWeight:700,cursor:"pointer",transition:"all 0.2s",fontFamily:"inherit",whiteSpace:"nowrap",boxShadow:"0 4px 14px rgba(192,38,211,0.35)"},onMouseEnter:i=>{i.currentTarget.style.transform="translateY(-1px)",i.currentTarget.style.boxShadow="0 6px 20px rgba(192,38,211,0.5)"},onMouseLeave:i=>{i.currentTarget.style.transform="none",i.currentTarget.style.boxShadow="0 4px 14px rgba(192,38,211,0.35)"},children:"Accept All"})]})]})]}):null}jt.registerPlugin(Ye);const YR=()=>{const a=gt(),t=Os(),[n,l]=y.useState(!1),[i,c]=y.useState(!1);return y.useEffect(()=>{const u=new eE({duration:.7,easing:p=>Math.min(1,1.001-Math.pow(2,-10*p)),smoothWheel:!0,wheelMultiplier:1.35,touchMultiplier:2});function h(p){u.raf(p),requestAnimationFrame(h)}requestAnimationFrame(h),u.on("scroll",()=>{Ye.update()});const f=p=>{u.raf(p*1e3)};return jt.ticker.add(f),jt.ticker.lagSmoothing(0),()=>{jt.ticker.remove(f),u.destroy()}},[]),y.useEffect(()=>{t.state?.scrollTo&&(setTimeout(()=>{const u=document.getElementById(t.state.scrollTo);u&&u.scrollIntoView({behavior:"smooth"})},300),window.history.replaceState({},document.title))},[t.state]),e.jsxs("div",{className:"min-h-screen bg-[#10002B] text-gray-200 antialiased selection:bg-[#c026d3]/30",children:[e.jsxs(pu,{children:[e.jsx("title",{children:"AI Voice Automation Platform for Business Calls | VoiceRix AI"}),e.jsx("meta",{name:"description",content:"Automate business calls with VoiceRix AI voice agents. Handle leads, support, reminders, and campaigns 24/7 with real-time voice automation."}),e.jsx("link",{rel:"canonical",href:"https://www.voicerix.ai"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication",name:"VoiceRix AI Voice Automation Platform",applicationCategory:"BusinessApplication",url:"https://www.voicerix.ai",description:"VoiceRix AI automates customer conversations using AI voice agents."})}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"VoiceRix AI",url:"https://www.voicerix.ai"})})]}),e.jsx(pc,{navigate:a,isScrolled:n,isMobileMenuOpen:i,setIsMobileMenuOpen:c}),e.jsx(gT,{navigate:a}),e.jsx(BR,{}),e.jsx(RR,{navigate:a}),e.jsx(OR,{navigate:a}),e.jsx(zR,{}),e.jsx(LR,{}),e.jsx(DR,{navigate:a}),e.jsx(PR,{}),e.jsx(UR,{}),e.jsx(xc,{}),e.jsx(qR,{})]})},GR=()=>{const a=gt();y.useEffect(()=>{window.scrollTo(0,0)},[]);const t=[{title:"1. Information We Collect",subsections:[{subtitle:"Personal & Account Information",text:"When you register for VoiceRix.AI, request a demo, or subscribe to our services, we collect information such as your name, corporate email address, phone number,
152company name, country, and billing/tax details."},{subtitle:"Voice Data, Audio Recordings & Transcripts",text:"To execute conversational voice automations, VoiceRix.AI processes voice audio stream inputs, call audio recordings, AI transcripts, sentiment tags, and latency logs. Voice recordings and transcripts are encrypted both in transit and at rest."},{subtitle:"Contact Lists & Campaign Data",text:"Phone numbers, customer contact datasets, custom prompt variables, and metadata uploaded to initiate voice calls are processed strictly to carry out your requested automation workflows."},{subtitle:"Technical & Platform Telemetry",text:"We collect IP addresses, browser types, device information, API access tokens, request logs, and session statistics to ensure security, prevent abuse, and optimize platform reliability."}]},{title:"2. How We Use Your Information",subsections:[{subtitle:"Service Delivery & Call Automation",text:"We use collected information to establish inbound/outbound telephony sessions, generate real-time AI speech responses, transcribe conversations, and provide reporting analytics."},{subtitle:"Service Improvement & Model Optimization",text:"Aggregated, de-identified telemetry data may be used to benchmark latency, enhance speech recognition accuracy, and refine natural language understanding. Customer proprietary datasets are never sold or shared with third parties."},{subtitle:"Billing, Account Management & Support",text:"Your information is used to process invoice payments, manage minute balances, send essential security notifications, and resolve technical support tickets."}]},{title:"3. Data Sharing & Third-Party Telephony Integrations",subsections:[{subtitle:"Telecommunication & SIP Infrastructure",text:"Voice calls are routed through certified telecom operators and SIP trunk providers (such as Twilio, Plivo, Telnyx, or carrier partners) strictly to complete network telephony connections."},{subtitle:"Cloud & Infrastructure Partners",text:"We work with enterprise-grade cloud providers (e.g., AWS, Google Cloud) under stringent data protection agreements ensuring AES-256 encryption at rest and TLS 1.3 encryption in transit."},{subtitle:"Strict No-Sale Policy",text:"VoiceRix.AI does NOT sell, rent, monetize, or trade your personal data, audio recordings, or customer contact lists to advertisers or unauthorized third parties."}]},{title:"4. Data Security & Storage",subsections:[{subtitle:"Encryption & Access Control",text:"All data exchanged with our web applications and APIs is encrypted using SSL/TLS protocols. Access to production databases is strictly restricted through role-based access controls (RBAC) and multi-factor authentication (MFA)."},{subtitle:"Data Retention & Archival",text:"Call logs, audio files, and transcripts are retained according to your account subscription tier or user-configured retention schedule. You can purge or export call recordings directly via the platform."}]},{title:"5. Regulatory Compliance & Your Privacy Rights",subsections:[{subtitle:"DPDP Act (India), GDPR & Global Frameworks",text:"VoiceRix.AI adheres to applicable data protection principles including the Digital Personal Data Protection (DPDP) Act, India, GDPR, and CCPA. Users have rights to access, rectify, export, or delete their personal records."},{subtitle:"Data Erasure Requests",text:"You can request permanent deletion of your account and associated call data at any time by emailing [email protected]. We will process verified requests within 30 days, subject to mandatory legal or accounting retention obligations."}]},{title:"6. Cookies & Tracking Technologies",subsections:[{text:"We use essential cookies and lightweight analytics to maintain authenticated sessions, remember user preferences, and safeguard against CSRF attacks. You can manage cookie settings through your browser."}]},{title:"7. Policy Updates & Notifications",subsections:[{text:"We may periodically revise this Privacy Policy to reflect platform improvements or regulatory amendments. Significant changes will be announced on our website alongside an updated timestamp."}]},{title:"8. Contact Our Privacy Officer",subsections:[{text:"For privacy questions, data protection inquiries, or to exercise your statutory privacy rights, please contact our Data Protection Officer at [email protected]."}]}];return e.jsxs("div",{className:"min-h-screen bg-[#fafafa] text-gray-800",style:{fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},children:[e.jsx(pc,{navigate:a}),e.jsxs("main",{className:"max-w-4xl px-5 sm:px-8 pt-28 sm:pt-32 pb-20 mx-auto",children:[e.jsxs("div",{className:"border-b border-gray-200 pb-6 mb-8",children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-gray-900",children:"Privacy Policy"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs sm:text-sm text-gray-500 mt-2",children:[e.jsx("span",{children:"VoiceRix.AI (Metaqualt Software Pvt. Ltd.)"}),e.jsx("span",{children:"â¢"}),e.jsx("span",{children:"Last Updated: September 2024"})]})]}),e.jsxs("div",{className:"space-y-3 pb-6 border-b border-gray-200 text-sm sm:text-[15px] leading-relaxed text-gray-700",children:[e.jsxs("p",{children:["At ",e.jsx("strong",{children:"VoiceRix.AI"})," (operated by ",e.jsx("strong",{children:"Metaqualt Software Pvt. Ltd."}),"), we respect your privacy and are committed to protecting your personal information and customer voice data."]}
152),e.jsx("p",{children:"This Privacy Policy explains how we collect, process, store, and safeguard data when you access our voice automation platform, APIs, websites, and associated services. By using VoiceRix.AI, you consent to the data practices described in this policy."})]}),e.jsx("div",{className:"divide-y divide-gray-200",children:t.map((n,l)=>e.jsxs("section",{className:"py-7 space-y-4",children:[e.jsx("h2",{className:"text-base sm:text-lg font-bold text-gray-900 tracking-tight",children:n.title}),n.subsections?.map((i,c)=>e.jsxs("div",{className:"space-y-1",children:[i.subtitle&&e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-800",children:i.subtitle}),e.jsx("p",{className:"text-xs sm:text-sm leading-relaxed text-gray-600",children:i.text})]},c))]},l))}),e.jsxs("div",{className:"pt-8 mt-6 border-t border-gray-200 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs sm:text-sm text-gray-500",children:[e.jsxs("p",{children:["© ",new Date().getFullYear()," VoiceRix.AI (Metaqualt Software Pvt. Ltd.). All rights reserved."]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("a",{href:"mailto:[email protected]",className:"text-purple-700 font-medium hover:underline",children:"[email protected]"}),e.jsx("span",{children:"â¢"}),e.jsx("button",{onClick:()=>{window.scrollTo(0,0),a("/")},className:"text-gray-700 font-medium hover:text-purple-700 cursor-pointer",children:"Back to Home"})]})]})]}),e.jsx(xc,{})]})},WR=()=>{const a=gt();y.useEffect(()=>{window.scrollTo(0,0)},[]);const t=[{title:"1. Acceptance of Terms & Service Description",subsections:[{subtitle:"Acceptance of Terms",text:"By creating an account, accessing, or using VoiceRix.AI, you confirm that you have read, understood, and agreed to this User Agreement, Acceptable Use Policy, and the SLA. If you do not agree, you must not use the platform."},{subtitle:"Description of Service",text:"VoiceRix.AI provides AI-driven voice calling services including (but not limited to): outbound sales and follow-up calls, inbound customer support calls, voice agent workflows, call recording and AI transcription (where enabled), and call analytics and reporting. Services may evolve over time without prior notice."},{subtitle:"Eligibility & Authority",text:"You must be at least 18 years of age and legally capable of entering into a binding contract. If you are registering on behalf of a company or legal entity, you represent and warrant that you have the authority to bind such entity to these Terms."}]},{title:"2. Account Security & User Responsibilities",subsections:[{subtitle:"Account Registration & Security",text:"You are responsible for maintaining the confidentiality of your login credentials and for all activities conducted through your account. You must notify us immediately of any unauthorized access or security breach."},{subtitle:"User Prompts & Script Ownership",text:"You retain ownership of all conversational scripts, system prompts, knowledge base files, and contact datasets uploaded to the platform. You are solely responsible for the accuracy, legality, and appropriateness of your prompt configurations and agent responses."},{subtitle:"Caller ID & Verification Compliance",text:"You agree to only use verified, legally owned, or authorized caller ID numbers. Spoofing caller IDs or impersonating government entities, emergency services, or financial institutions is strictly prohibited."}]},{title:"3. Acceptable Use, DND / DNC & Calling Compliance",subsections:[{subtitle:"Acceptable Use Policy",text:"You agree NOT to use VoiceRix.AI for illegal, fraudulent, misleading, or deceptive activities; spam, robocalls, or unsolicited communications in violation of law; harassment, threats, abuse, or offensive content; impersonation or misrepresentation; or circumventing telecom, regulatory, or compliance requirements. We reserve the right to suspend or terminate accounts violating this policy."},{subtitle:"DND / DNC & Calling Compliance",text:"VoiceRix.AI operates strictly as a technology provider (intermediary). You are solely responsible for scrubbing your contact lists against National Do Not Call (DND/NDNC) registries (including TRAI & TCPA regulations) and obtaining proper recipient consent before initiating calls. Any regulatory penalties, fines, or complaints arising from calls placed to DND numbers are 100% y
152our responsibility, and VoiceRix.AI disclaims all liability."},{subtitle:"Call Recording & Mandatory Disclosure",text:"In compliance with telecom regulations, VoiceRix.AI by default plays an automated audible announcement at the beginning of calls informing parties that the call may be recorded for quality and training purposes. You agree not to bypass or alter this mandatory disclosure where required by law. You remain solely responsible for complying with local recording and consent laws in your jurisdiction, and VoiceRix.AI bears no liability for your recorded calls."}]},{title:"4. Data, Privacy & AI Limitations",subsections:[{subtitle:"Data & Privacy",text:"You retain ownership of your customer data and grant VoiceRix.AI a limited license to process data solely for providing the services. Call recordings and transcripts are stored as per your plan and retention settings. We implement reasonable security measures but do not guarantee absolute security."},{subtitle:"AI Limitations Disclaimer",text:"You understand that AI-generated voice responses are automated and probabilistic, and accuracy, tone, or intent may vary. VoiceRix.AI is not a substitute for human judgment, and you agree not to rely solely on AI outputs for critical or regulated decisions."}]},{title:"5. Fees, Billing, Credits & Refund Policy",subsections:[{subtitle:"Fees & Payments",text:"Usage-based minute charges and recurring subscription fees apply based on your selected plan. All fees are exclusive of applicable taxes (such as GST or local sales tax). Failure to maintain sufficient balance or pay invoices when due may result in immediate suspension or termination."},{subtitle:"Refund Policy",text:"All fees, wallet top-up credits, and subscription charges are strictly non-refundable once processed or consumed, except where mandated by applicable law."},{subtitle:"Intellectual Property",text:"VoiceRix.AI, its software, models, voice algorithms, and branding remain the exclusive property of Metaqualt Software Pvt. Ltd. You receive a limited, non-transferable, revocable license to use the platform."}]},{title:"6. Service Level Agreement (SLA) & Telephony Dependencies",subsections:[{subtitle:"Service Availability & Maintenance",text:"Target uptime is 99.5% per calendar month (excluding scheduled maintenance). Planned maintenance will be communicated in advance where possible."},{subtitle:"Telecom & Upstream Dependencies",text:"Voice delivery relies on third-party telecom operators, SIP carriers, and internet networks. VoiceRix.AI is not responsible or liable for call drops, carrier filtering, number blacklisting, or outages originating outside our platform."},{subtitle:"Support & Resolution",text:"Support is available during business hours (IST). Critical issues receive a response within 4 business hours, and general queries within 24 to 48 business hours. We make commercially reasonable efforts to resolve incidents promptly."}]},{title:"7. Limitation of Liability & Indemnification",subsections:[{subtitle:"Limitation of Liability",text:"To the maximum extent permitted by law, VoiceRix.AI shall not be liable for any indirect, incidental, special, or consequential damages. Total liability of VoiceRix.AI shall not exceed the total fees paid by you in the preceding 3 months."}],bullets:["Indemnify and hold harmless VoiceRix.AI from all third-party claims, legal costs, and damages arising from your use of the platform.","Indemnify VoiceRix.AI from any violation of DND regulations, TCPA/TRAI guidelines, or privacy laws by you or your agents.","Indemnify VoiceRix.AI from any defamatory, unauthorized, or unlawful content or audio transmitted through your account."]},{title:"8. Suspension & Termination",subsections:[{subtitle:"Termination by You",text:"You may terminate your account at any time via your account dashboard or by contacting support. Your access will continue until the end of your prepaid billing period."},{subtitle:"Suspension & Termination by Us",text:"We may immediately suspend or terminate your access without prior notice if you breach this agreement, engage in abusive calling practices, violate telecom regulations, or fail to pay due charges."}]},{title:"9. Governing Law & Jurisdiction",subsections:[{text:"This Agreement shall be governed by and construed in accordance with the laws of India. Any dispute, controversy, or claim arising out of or relating to this agreement shall be subject to the exclusive jurisdiction of the competent c
152ourts located in Ahmedabad, Gujarat, India."}]},{title:"10. Questions & Contact Information",subsections:[{text:"If you have any questions, regulatory inquiries, or feedback regarding these Terms of Service, please contact our legal team at [email protected]."}]}];return e.jsxs("div",{className:"min-h-screen bg-[#fafafa] text-gray-800",style:{fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},children:[e.jsx(pc,{navigate:a}),e.jsxs("main",{className:"max-w-4xl px-5 sm:px-8 pt-28 sm:pt-32 pb-20 mx-auto",children:[e.jsxs("div",{className:"border-b border-gray-200 pb-6 mb-8",children:[e.jsx("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-gray-900",children:"Terms of Service"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs sm:text-sm text-gray-500 mt-2",children:[e.jsx("span",{children:"VoiceRix.AI (Metaqualt Software Pvt. Ltd.)"}),e.jsx("span",{children:"â¢"}),e.jsx("span",{children:"Last Updated: September 2024"})]})]}),e.jsxs("div",{className:"space-y-3 pb-6 border-b border-gray-200 text-sm sm:text-[15px] leading-relaxed text-gray-700",children:[e.jsxs("p",{children:["This document governs the use of ",e.jsx("strong",{children:"VoiceRix.AI"}),", an AI-powered voice automation platform operated by ",e.jsx("strong",{children:"Metaqualt Software Pvt. Ltd."})," By signing up for, accessing, or using VoiceRix.AI, you (âUserâ, âCustomerâ, âyouâ) agree to be bound by these terms."]}),e.jsx("p",{children:"By creating an account, accessing, or using VoiceRix.AI, you confirm that you have read, understood, and agreed to this User Agreement, our Acceptable Use Policy, and the Service Level Agreement (SLA). If you do not agree to these terms, you must not use or access the platform."})]}),e.jsx("div",{className:"divide-y divide-gray-200",children:t.map((n,l)=>e.jsxs("section",{className:"py-7 space-y-4",children:[e.jsx("h2",{className:"text-base sm:text-lg font-bold text-gray-900 tracking-tight",children:n.title}),n.subsections?.map((i,c)=>e.jsxs("div",{className:"space-y-1",children:[i.subtitle&&e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-800",children:i.subtitle}),e.jsx("p",{className:"text-xs sm:text-sm leading-relaxed text-gray-600",children:i.text})]},c)),n.bullets&&e.jsx("ul",{className:"list-disc pl-5 space-y-1.5 text-xs sm:text-sm text-gray-600 pt-1",children:n.bullets.map((i,c)=>e.jsx("li",{className:"leading-relaxed",children:i},c))})]},l))}),e.jsxs("div",{className:"pt-8 mt-6 border-t border-gray-200 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs sm:text-sm text-gray-500",children:[e.jsxs("p",{children:["© ",new Date().getFullYear()," VoiceRix.AI (Metaqualt Software Pvt. Ltd.). All rights reserved."]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("a",{href:"mailto:[email protected]",className:"text-purple-700 font-medium hover:underline",children:"[email protected]"}),e.jsx("span",{children:"â¢"}),e.jsx("button",{onClick:()=>{window.scrollTo(0,0),a("/")},className:"text-gray-700 font-medium hover:text-purple-700 cursor-pointer",children:"Back to Home"})]})]})]}),e.jsx(xc,{})]})},KR=()=>{const a=gt(),[t,n]=y.useState({firstName:"",lastName:"",email:"",phone:"",company:"",message:"",agreePrivacy:!1,captchaInput:""}),[l,i]=y.useState({num1:7,num2:4,answer:11}),[c,u]=y.useState(!1),h=()=>{const v=Math.floor(Math.random()*8)+2,w=Math.floor(Math.random()*8)+1;i({num1:v,num2:w,answer:v+w}),u(!1),n(j=>({...j,captchaInput:""}))};y.useEffect(()=>{h()},[]);const[f,p]=y.useState({submitting:!1,submitted:!1,error:null}),x=v=>{const{name:w,value:j,type:N,checked:A}=v.target;n(S=>({...S,[w]:N==="checkbox"?A:j})),w==="captchaInput"&&u(!1)},b=async v=>{if(v.preventDefault(),parseInt(t.captchaInput.trim(),10)!==l.answer){u(!0);return}if(!t.agreePrivacy)return;p({submitting:!0,submitted:!1,error:null});const j=(A=>{const S=document.cookie.match(new RegExp("(^| )"+A+"=([^;]+)"));return S?S[2]:void 0})("hubspotutk"),N=`Company: ${t.company.trim()} 153 154Requirements: 155${t.message.trim()||"Book a demo request from VoiceRix website"}`;try{const A="47843880",S="d25aacc9-3a12-4ce2-884b-5903dd152579",C={submittedAt:Date.now(),fields:[{name:"firstname",value:t.firstName.trim()},{name:"lastname",value:t.lastName.trim()},{name:"email",value:t.email.trim()},{name:"phone",value:t.phone.trim()},{name:"company",value:t.company.trim()},{name:"message",value:N},{name:"hs_lead_status",value:"NEW"},{name:"lifecyclestage",value:"lead"}],context:{...j?{hutk:j}:{},pageUri:typeof window<"u"?window.location.href:"https://www.voicerix.ai/contact-us",pageName:"Contact VoiceRix AI - Book Demo"}};for(const T of[`https://api-na2.hsforms.com/submissions/v3/integration/submit/${A}/${S}`,`https://api.hsforms.com/submissions/v3/integration/submit/${A}/${S}`])try{if((await fetch(T,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)})).ok)break}catch(L){console.warn("Forms API error:",T,L)}fetch(`${kn}/api/v1/hubspot/assign-owner`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.email.trim()})}).catch(T=>console.warn("Owner assignment error:",T)),a("/request-submitted",{state:{firstName:t.firstName.trim(),lastName:t.lastName.trim(),email:t.email.trim(),phone:t.phone.trim(),company:t.company.trim()},replace:!0})}catch(A){console.warn("HubSpot error:",A),a("/request-submitted",{state:{firstName:t.firstName.trim(),lastName:t.lastName.trim(),email:t.email.trim(),phone:t.phone.trim(),company:t.company.trim()},replace:!0})}};return e.jsx("div",{className:"w-full max-w-3xl mx-auto relative",children:e.jsxs(ve.form,{initial:{opacity:0,y:15}
155,animate:{opacity:1,y:0},transition:{duration:.4},onSubmit:b,className:"p-6 sm:p-10 space-y-5 text-left",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:["First Name ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(ru,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 w-4 h-4"}),e.jsx("input",{type:"text",name:"firstName",required:!0,value:t.firstName,onChange:x,placeholder:"Alex",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:["Last Name ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(ru,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 w-4 h-4"}),e.jsx("input",{type:"text",name:"lastName",required:!0,value:t.lastName,onChange:x,placeholder:"Sharma",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:["Work Email ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Yl,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 w-4 h-4"}),e.jsx("input",{type:"email",name:"email",required:!0,value:t.email,onChange:x,placeholder:"[email protected]",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:["Phone Number ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(mc,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 w-4 h-4"}),e.jsx("input",{type:"tel",name:"phone",required:!0,value:t.phone,onChange:x,placeholder:"+91 98765 43210",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium"})]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:["Primary Company Name ",e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Y5,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 w-4 h-4"}),e.jsx("input",{type:"text",name:"company",required:!0,value:t.company,onChange:x,placeholder:"e.g. Prestige Group",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium"})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"block text-[11px] font-bold tracking-wider text-slate-700 uppercase",children:"Message / Requirements (Optional)"}),e.jsxs("div",{className:"relative",children:[e.jsx(Z5,{className:"absolute left-3.5 to
155p-3 text-slate-400 w-4 h-4"}),e.jsx("textarea",{name:"message",rows:3,value:t.message,onChange:x,placeholder:"Tell us about your call volume or voice automation goals...",className:"w-full pl-10 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm text-slate-900 placeholder:text-slate-400 focus:outline-none focus:border-purple-600 focus:bg-white focus:ring-2 focus:ring-purple-600/10 transition-all font-medium resize-none"})]})]}),e.jsxs("div",{className:"p-3.5 bg-slate-50 border border-slate-200 rounded-xl space-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold text-slate-700",children:[e.jsx(gu,{className:"w-4 h-4 text-purple-600"}),e.jsxs("span",{children:["Security Challenge: What is ",l.num1," + ",l.num2,"? ",e.jsx("span",{className:"text-rose-500",children:"*"})]})]}),e.jsxs("button",{type:"button",onClick:h,className:"inline-flex items-center gap-1 text-[11px] font-semibold text-purple-700 hover:text-purple-900 transition-colors",children:[e.jsx(Ib,{className:"w-3 h-3"})," Refresh"]})]}),e.jsx("div",{className:"relative max-w-xs",children:e.jsx("input",{type:"number",name:"captchaInput",required:!0,value:t.captchaInput,onChange:x,placeholder:"Enter answer",className:`w-full px-3 py-2 bg-white border ${c?"border-rose-500 ring-2 ring-rose-500/10":"border-slate-200"} rounded-lg text-sm text-slate-900 font-bold placeholder:font-normal focus:outline-none focus:border-purple-600`})}),c&&e.jsxs("p",{className:"text-xs font-semibold text-rose-600 flex items-center gap-1",children:[e.jsx(Ts,{className:"w-3.5 h-3.5"})," Incorrect captcha answer. Please try again."]})]}),e.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[e.jsx("input",{type:"checkbox",id:"agreePrivacy",name:"agreePrivacy",required:!0,checked:t.agreePrivacy,onChange:x,className:"mt-1 w-4 h-4 rounded border-slate-300 text-purple-600 focus:ring-purple-500 cursor-pointer accent-purple-600"}),e.jsxs("label",{htmlFor:"agreePrivacy",className:"text-xs font-medium text-slate-600 cursor-pointer select-none leading-relaxed",children:["I agree to VoiceRix ",e.jsx("a",{href:"/privacy-policy",target:"_blank",className:"text-purple-700 font-bold underline hover:text-purple-900",children:"Privacy Policy"})," and consent to VoiceRix contacting me regarding AI voice automation solutions. ",e.jsx("span",{className:"text-rose-500",children:"*"})]})]}),e.jsx("div",{className:"pt-2 flex justify-start",children:e.jsx("button",{type:"submit",disabled:f.submitting||!t.agreePrivacy,className:"px-7 py-3 rounded-xl bg-gradient-to-r from-[#c026d3] via-[#a21caf] to-[#9333ea] text-white font-bold text-sm tracking-wide shadow-md shadow-purple-600/20 hover:shadow-lg hover:shadow-purple-600/30 hover:-translate-y-0.5 active:translate-y-0 disabled:opacity-50 transition-all flex items-center justify-center gap-2 cursor-pointer",children:f.submitting?e.jsxs(e.Fragment,{children:[e.jsx(aT,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{children:"Submitting..."})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Submit Demo Request"}),e.jsx(dl,{className:"w-4 h-4"})]})})})]})})},XR=()=>{const a=gt(),[t,n]=y.useState(!1),[l,i]=y.useState(!1);y.useEffect(()=>{window.scrollTo(0,0);const f=()=>n(window.scrollY>50);return window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)},[]);const c=[{icon:e.jsx(Yl,{className:"w-7 h-7"}),title:"Email Us",subtext:"Reach out for general enquiries, partnerships, or support",details:"[email protected]",note:"Response within one business day",color:"from-[#c026d3] to-[#9333ea]"},{icon:e.jsx(mc,{className:"w-7 h-7"}),title:"Call Us",subtext:"Speak directly with our team for quick assistance",details:"+91 70960 69000",note:"Monday to Friday, 9:30 AM to 6:30 PM IST",color:"from-[#c026d3] to-[#9333ea]"},{icon:e.jsx(rT,{className:"w-7 h-7"}),title:"Visit Us",subtext:"Meet our team or schedule a discussion",details:"Ahmedabad, India",note:"Schedule an in-person or virtual meeting",color:"from-[#c026d3] to-[#9333ea]"}],u=[{icon:e.jsx(X5,{className:"w-4 h-4"}),text:"24/7 AI-powered support"},{icon:e.jsx(Pb,{className:"w-4 h-4"}),text:"Global business coverage"},{icon:e.jsx($5,{className:"w-4 h-4"}),text:"Dedicated solution experts"}],h=["Human-like AI voice conversations","24/7 automated call handling","Multi-language support","Seamless system integration","Enterprise-grade security"];return e.jsxs("div",{className:"min-h-[100vh] bg-white",children:[e.jsxs(pu,{children:[e.jsx("title",{children:"Contact VoiceRix AI | Talk to AI Voice Automation Experts"}),e.jsx("meta",{name:"description",content:"Contact VoiceRix AI to explore AI voice automation solutions. Book a demo, talk to experts, and transform your business conversations today."}),e.jsx("link",{rel:"canonical",href:"https://www.voicerix.ai/contact-us"})]}),e.jsx(pc,{navigate:a,isScrolled:t,isMobileMenuOpen:l,setIsMobileMenuOpen:i}),e.jsxs("section",{className:"relative overflow-hidden bg-[#10002B]",children:[e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#ffffff06_1px,transparent_1px),linear-gradient(to_bottom,#ffffff06_1px,transparent_1px)] bg-[size:40px_40px]"}),e.jsx(ve.div,{animate:{x:[0,80,0],y:[0,-40,0]},transition:{duration:18,repeat:1/0,ease:"linear"},className:"absolute w-[500px] h-[500px] bg-[#c026d3]/15 rounded-full blur-3xl top-[-100px] left-[-100px] pointer-events-none"}),e.jsx(ve.div,{animate:{x:[0,-60,0],y:[0,50,0]},transition:{duration:14,repeat:1/0,ease:"linear"},className:"absolute w-[400px] h-[400px] bg-[#9333ea]/15 rounded-full blur-3xl bottom-[-80px] right-[-80px] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 max-w-4xl px-6 mx-auto text-center py-28 lg:py-36",children:[e.jsx(ve.p,{initial:{opacity:0,y:10}
155,animate:{opacity:1,y:0},transition:{duration:.5},className:"mb-5 text-xs font-bold tracking-[0.18em] text-[#d946ef] uppercase",children:"Contact VoiceRix"}),e.jsxs(ve.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mb-6 text-4xl font-bold leading-tight text-white lg:text-6xl",children:["Talk to our AI voice"," ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#d946ef] to-[#c026d3]",children:"automation experts"})]}),e.jsx(ve.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"max-w-2xl mx-auto mb-10 text-lg leading-relaxed text-slate-300",children:"Have questions about VoiceRix AI or want to explore how voice automation can transform your customer conversations? Our team is ready to help."}),e.jsx(ve.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"flex flex-wrap items-center justify-center gap-3",children:u.map((f,p)=>e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white border rounded-full bg-white/10 backdrop-blur-sm border-white/10",children:[e.jsx("span",{className:"text-[#d946ef]",children:f.icon}),f.text]},p))})]}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 translate-y-[1px]",children:e.jsx("svg",{className:"block w-full",viewBox:"0 0 1440 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M0 80L60 72C120 64 240 48 360 44C480 40 600 48 720 52C840 56 960 56 1080 54C1200 52 1320 52 1380 52L1440 52V80H0Z",fill:"#ffffff"})})})]}),e.jsx("section",{className:"relative z-10 max-w-6xl px-6 pb-4 mx-auto -mt-2",children:e.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:c.map((f,p)=>e.jsxs(ve.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:p*.1},viewport:{once:!0},whileHover:{y:-6,scale:1.015},className:"relative p-8 overflow-hidden bg-white border border-slate-200 shadow-[0_8px_30px_rgba(192,38,211,0.06)] rounded-2xl group",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${f.color} opacity-0 group-hover:opacity-[0.04] transition-opacity duration-300`}),e.jsx("div",{className:`inline-flex items-center justify-center w-14 h-14 mb-5 rounded-xl bg-gradient-to-br ${f.color} shadow-md`,children:e.jsx("div",{className:"text-white",children:f.icon})}),e.jsx("h3",{className:"mb-1 text-lg font-bold text-[#10002B]",children:f.title}),e.jsx("p",{className:"mb-3 text-sm leading-relaxed text-slate-500",children:f.subtext}),e.jsx("p",{className:"mb-1 text-base font-semibold text-transparent bg-clip-text bg-gradient-to-r from-[#d946ef] to-[#c026d3]",children:f.details}),e.jsx("p",{className:"text-xs text-slate-400",children:f.note})]},p))})}),e.jsx("section",{id:"booking-section",className:"max-w-6xl px-6 pt-4 pb-10 mx-auto",children:e.jsx(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},className:"w-full",children:e.jsxs("div",{className:"bg-white border border-slate-200 shadow-[0_12px_40px_rgba(192,38,211,0.08)] rounded-3xl overflow-hidden min-h-[650px]",children:[e.jsxs("div",{className:"p-8 text-center border-b border-slate-200 bg-slate-50",children:[e.jsx("p",{className:"mb-2 text-xs font-bold tracking-[0.15em] text-[#d946ef] uppercase",children:"Book a Session"}),e.jsx("h2",{className:"text-3xl font-bold text-[#10002B]",children:"Schedule A Personalised Demo"}),e.jsx("p",{className:"max-w-xl mx-auto mt-2 text-slate-500",children:"See how VoiceRix AI automates customer conversations, reduces operational effort, and improves response time."}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 mt-4 text-xs font-medium text-blue-600 border border-blue-100 rounded-full bg-blue-50",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse"}),"Live walkthrough with our AI specialists"]})]}),e.jsx("div",{className:"py-4",children:e.jsx(KR,{})})]})})}),e.jsx("section",{className:"max-w-6xl px-6 pb-20 mx-auto",children:e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs(ve.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.6,delay:.1},viewport:{once:!0},className:"relative flex flex-col justify-center p-10 overflow-hidden shadow-xl rounded-3xl bg-gradient-to-br from-[#c026d3] via-[#a21caf] to-[#9333ea]",style:{boxShadow:"0 0 60px rgba(192,38,211,0.25)"}
155,children:[e.jsx(ve.div,{animate:{opacity:[.4,.8,.4]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},className:"absolute top-0 right-0 translate-x-10 -translate-y-10 rounded-full pointer-events-none w-52 h-52 bg-white/10 blur-2xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-40 h-40 -translate-x-10 translate-y-10 rounded-full pointer-events-none bg-[#9333ea]/20 blur-2xl"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("p",{className:"mb-2 text-xs font-bold tracking-[0.15em] text-[#fdf4ff] uppercase",children:"Get Started"}),e.jsx("h3",{className:"mb-4 text-3xl font-bold leading-tight text-white",children:"Start transforming your customer conversations today"}),e.jsx("p",{className:"mb-8 text-base leading-relaxed text-[#fdf4ff]",children:"Book a demo to see how VoiceRix AI can automate calls, improve customer experience, and scale your operations."}),e.jsx("div",{className:"flex flex-col gap-3",children:e.jsx(ve.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>{const f=document.getElementById("booking-section");f&&f.scrollIntoView({behavior:"smooth"})},className:"w-full py-3.5 text-sm font-semibold text-white border border-white/30 rounded-xl hover:bg-white/10 transition-colors",children:"Talk to an Expert"})})]})]}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs(ve.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},transition:{duration:.6,delay:.2},viewport:{once:!0},className:"flex-grow p-8 bg-white border border-slate-200 shadow-[0_8px_30px_rgba(192,38,211,0.06)] rounded-3xl",children:[e.jsx("h3",{className:"mb-6 text-xl font-bold text-[#10002B]",children:"Why choose VoiceRix AI"}),e.jsx("ul",{className:"space-y-4",children:h.map((f,p)=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex items-center justify-center flex-shrink-0 w-6 h-6 rounded-full shadow-sm bg-gradient-to-br from-[#c026d3] to-[#9333ea]",children:e.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),e.jsx("span",{className:"text-sm font-medium text-slate-600",children:f})]},p))})]}),e.jsx(ve.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:.3},viewport:{once:!0},children:e.jsx("button",{onClick:()=>{a("/"),window.scrollTo(0,0)},className:"w-full py-3 text-sm font-medium transition-colors text-slate-500 hover:text-[#c026d3]",children:"â Back to Home"})})]})]})}),e.jsx(xc,{})]})};function QR(a){return ie({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.
155036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z",clipRule:"evenodd"},child:[]}]})(a)}const ZR=()=>{const t=Os().state||{},{firstName:n="",lastName:l="",email:i="",phone:c="",company:u=""}=t,h=y.useRef(null);y.useEffect(()=>{const p=h.current;if(!p)return;const x=p.getContext("2d");p.width=window.innerWidth,p.height=window.innerHeight;const b=Array.from({length:120},()=>({x:Math.random()*p.width,y:-20,r:Math.random()*6+3,color:["#a855f7","#c026d3","#7c3aed","#ec4899","#6366f1","#fbbf24"][Math.floor(Math.random()*6)],vx:(Math.random()-.5)*3,vy:Math.random()*3+1.5,opacity:1}));let v;const w=()=>{x.clearRect(0,0,p.width,p.height),b.forEach(j=>{x.globalAlpha=j.opacity,x.fillStyle=j.color,x.beginPath(),x.arc(j.x,j.y,j.r,0,Math.PI*2),x.fill(),j.x+=j.vx,j.y+=j.vy,j.opacity-=.006}),b.some(j=>j.opacity>0)?v=requestAnimationFrame(w):x.clearRect(0,0,p.width,p.height)};return w(),()=>cancelAnimationFrame(v)},[]);const f=[{icon:e.jsx(Yl,{className:"w-5 h-5"}),title:"Confirmation Email",desc:"Check your inbox â a summary has been sent to you."},{icon:e.jsx(mc,{className:"w-5 h-5"}),title:"Our Team Reaches Out",desc:"A VoiceRix AI Specialist will contact you within 24 hours."},{icon:e.jsx(p0,{className:"w-5 h-5"}),title:"Live Demo Scheduled",desc:"We'll walk you through our AI voice engine, live."}];return e.jsxs(e.Fragment,{children:[e.jsxs(pu,{children:[e.jsx("title",{children:"Thank You â Demo Request Received | VoiceRix AI"}),e.jsx("meta",{name:"description",content:"Your demo request has been received. Our VoiceRix AI team will be in touch shortly to schedule your personalised live demo."}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("canvas",{ref:h,className:"fixed inset-0 pointer-events-none z-50"}),e.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-[#0f0024] via-[#1a0040] to-[#0d0030] pt-28 pb-20 px-6",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[700px] h-[400px] bg-purple-600/20 rounded-full blur-3xl pointer-events-none"}),e.jsx("div",{className:"absolute bottom-0 right-0 w-[300px] h-[300px] bg-fuchsia-500/10 rounded-full blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative max-w-2xl mx-auto text-center",children:[e.jsx(ve.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:200,damping:15,delay:.1},className:"w-24 h-24 mx-auto mb-6 rounded-full bg-gradient-to-br from-emerald-400 to-teal-500 flex items-center justify-center shadow-2xl shadow-emerald-500/40",children:e.jsx(x0,{className:"w-12 h-12 text-white",strokeWidth:2.5})}),e.jsxs(ve.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.25},className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-purple-500/20 border border-purple-400/30 text-purple-300 text-xs font-bold tracking-widest uppercase mb-5",children:[e.jsx(QR,{className:"w-4 h-4 text-yellow-400"}),"Request Submitted Successfully"]}),e.jsx(ve.h1,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.35},className:"text-4xl sm:text-5xl font-black text-white tracking-tight leading-tight mb-4",children:n?`Thank You, ${n}!`:"Thank You!"}),e.jsxs(ve.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.45},className:"text-slate-300 text-base sm:text-lg font-medium leading-relaxed max-w-xl mx-auto",children:["Your demo request has been received. Our VoiceRix AI Specialists will reach out to"," ",i?e.jsx("span",{className:"text-purple-300 font-bold",children:i}):"you"," ","shortly to walk you through our AI voice automation engine."]})]})]}),e.jsxs("section",{className:"bg-white py-16 px-6",children:[e.jsxs("div",{className:"max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8",children:[(n||i||u||c)&&e.jsxs(ve.div,{initial:{opacity:0,x:-20}
155,animate:{opacity:1,x:0},transition:{delay:.5},className:"rounded-2xl border border-slate-200 p-6 bg-slate-50 space-y-4",children:[e.jsxs("h2",{className:"text-sm font-black text-slate-900 uppercase tracking-wider flex items-center gap-2",children:[e.jsx(Z5,{className:"w-4 h-4 text-purple-600"}),"Your Submission"]}),e.jsxs("div",{className:"space-y-3 text-sm",children:[(n||l)&&e.jsxs("div",{className:"flex justify-between border-b border-slate-200 pb-2",children:[e.jsx("span",{className:"text-slate-500 font-medium",children:"Name"}),e.jsxs("span",{className:"font-bold text-slate-900",children:[n," ",l]})]}),i&&e.jsxs("div",{className:"flex justify-between border-b border-slate-200 pb-2",children:[e.jsx("span",{className:"text-slate-500 font-medium",children:"Email"}),e.jsx("span",{className:"font-bold text-slate-900 break-all",children:i})]}),u&&e.jsxs("div",{className:"flex justify-between border-b border-slate-200 pb-2",children:[e.jsx("span",{className:"text-slate-500 font-medium",children:"Company"}),e.jsx("span",{className:"font-bold text-slate-900",children:u})]}),c&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-500 font-medium",children:"Phone"}),e.jsx("span",{className:"font-bold text-slate-900",children:c})]})]})]}),e.jsxs(ve.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.55},className:"rounded-2xl border border-purple-100 bg-gradient-to-br from-purple-50 to-fuchsia-50 p-6 space-y-4",children:[e.jsxs("h2",{className:"text-sm font-black text-slate-900 uppercase tracking-wider flex items-center gap-2",children:[e.jsx(p0,{className:"w-4 h-4 text-purple-600"}),"What Happens Next"]}),e.jsx("div",{className:"space-y-4",children:f.map((p,x)=>e.jsxs("div",{className:"flex gap-3 items-start",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-purple-600/10 text-purple-600 flex items-center justify-center",children:p.icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-900",children:p.title}),e.jsx("p",{className:"text-xs text-slate-500 leading-relaxed",children:p.desc})]})]},x))})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.65},className:"max-w-4xl mx-auto mt-10 flex flex-wrap gap-4 justify-center",children:[e.jsxs(as,{to:"/",className:"inline-flex items-center gap-2 px-7 py-3 rounded-xl bg-gradient-to-r from-[#c026d3] via-[#a21caf] to-[#9333ea] text-white font-bold text-sm shadow-md shadow-purple-600/25 hover:shadow-lg hover:shadow-purple-600/35 hover:-translate-y-0.5 transition-all",children:["Back to Home ",e.jsx(dl,{className:"w-4 h-4"})]}),e.jsx(as,{to:"/platform",className:"inline-flex items-center gap-2 px-7 py-3 rounded-xl border border-slate-200 bg-white text-slate-700 font-bold text-sm hover:border-purple-300 hover:text-purple-700 hover:bg-purple-50 transition-all",children:"Explore Platform"})]})]})]})},JR=()=>{const a=gt(),[t,n]=y.useState(!1),[l,i]=y.useState(!1);y.useEffect(()=>{window.scrollTo(0,0);const h=()=>n(window.scrollY>50);return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]);const c=[{icon:e.jsx(J5,{className:"text-3xl"}),title:"In-app request",steps:["Go to Settings â Delete Account"]},{icon:e.jsx(Yl,{className:"text-3xl"}),title:"Email request",steps:["Send an email to [email protected]",'Use subject line: "Account Deletion Request â VoiceRix"',"Include your registered phone number or email ID"]}],u=["User account information (name, phone number, email)","Call recordings and call transcripts","Call metadata and usage data"];return e.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans',system-ui,sans-serif]",children:[e.jsx(pc,{navigate:a,isScrolled:t,isMobileMenuOpen:l,setIsMobileMenuOpen:i}),e.jsxs("section",{className:"relative pt-28 pb-20 overflow-hidden bg-gradient-to-br from-[#fdf4ff] to-white",children:[e.jsxs("div",{className:"absolute inset-0 opacity-[0.04]",children:[e.jsx("div",{className:"absolute top-20 right-20 w-96 h-96 bg-[#c026d3] rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-20 left-20 w-96 h-96 bg-[#9333ea] rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10 max-w-5xl px-6 mx-auto mt-12",children:[e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8},className:"mb-16 text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 mb-6 bg-gradient-to-br from-[#c026d3] to-[#9333ea] rounded-2xl shadow-[0_8px_24px_rgba(192,38,211,0.3)]",children:e.jsx(gu,{className:"text-4xl text-white"})}),e.jsx("h1",{className:"mb-4 text-4xl font-extrabold text-[#10002B] lg:text-5xl tracking-tight",children:"VoiceRix â Account & Data Deletion"}),e.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"VoiceRix respects user privacy and provides a simple way to request account and data deletion."})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"mb-12",children:[e.jsx("h2",{className:"mb-8 text-3xl font-bold text-[#10002B]",children:"How to request account deleti
155on"}),e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:c.map((h,f)=>e.jsxs(ve.div,{initial:{opacity:0,x:f===0?-30:30},whileInView:{opacity:1,x:0},transition:{duration:.6,delay:.3+f*.1},className:"p-8 bg-white border-2 border-[#fbcfe8] rounded-2xl shadow-[0_4px_20px_rgba(0,0,0,0.03)] hover:shadow-[0_16px_40px_rgba(192,38,211,0.08)] hover:-translate-y-1 transition-all duration-300",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"flex items-center justify-center w-16 h-16 bg-gradient-to-br from-[#c026d3] to-[#9333ea] rounded-xl shadow-md text-white",children:h.icon}),e.jsxs("div",{children:[e.jsxs("div",{className:"text-xs font-bold text-[#c026d3] uppercase tracking-widest mb-1",children:["Option ",f+1]}),e.jsx("h3",{className:"text-xl font-bold text-[#10002B]",children:h.title})]})]}),e.jsx("ul",{className:"space-y-3",children:h.steps.map((p,x)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(x0,{className:"text-[#c026d3] mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:p})]},x))})]},f))})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"mb-12 p-8 bg-gradient-to-br from-[#10002B] to-[#1a0b2e] rounded-2xl shadow-[0_20px_60px_rgba(192,38,211,0.15)] text-white relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-gradient-to-br from-[#c026d3] to-transparent rounded-full opacity-10 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(hT,{className:"text-3xl text-[#e879f9]"}),e.jsx("h2",{className:"text-3xl font-bold text-white",children:"What data will be deleted"})]}),e.jsx("p",{className:"mb-6 text-gray-300 text-lg",children:"Upon successful verification, the following data will be permanently removed:"}),e.jsx("div",{className:"space-y-4",children:u.map((h,f)=>e.jsxs(ve.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},transition:{duration:.5,delay:.5+f*.1},className:"flex items-start gap-3 p-4 bg-white/5 border border-white/10 backdrop-blur-sm rounded-xl",children:[e.jsx(x0,{className:"text-[#e879f9] mt-1 flex-shrink-0"}),e.jsx("span",{className:"text-gray-100 font-medium",children:h})]},f))})]})]}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2 mb-12",children:[e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"p-8 bg-white border-2 border-[#e2e8f0] hover:border-[#fbcfe8] transition-colors duration-300 rounded-2xl shadow-[0_4px_20px_rgba(0,0,0,0.03)]",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"flex items-center justify-center w-12 h-12 bg-[#fdf4ff] rounded-xl border border-[#fbcfe8]",children:e.jsx(Ts,{className:"text-2xl text-[#c026d3]"})}),e.jsx("h3",{className:"text-2xl font-bold text-[#10002B]",children:"Data retention"})]}),e.jsxs("ul",{className:"space-y-3 text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"text-[#c026d3] mt-1 font-bold",children:"â¢"}),e.jsxs("span",{children:["Some transactional or compliance-related data may be retained for up to ",e.jsx("strong",{className:"text-[#10002B]",children:"30 days"})," where legally required."]})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"text-[#c026d3] mt-1 font-bold",children:"â¢"}),e.jsx("span",{children:"After the retention period, all remaining data is permanently deleted."})]})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.7},className:"p-8 bg-white border-2 border-[#e2e8f0] hover:border-[#fbcfe8] transition-colors duration-300 rounded-2xl shadow-[0_4px_20px_rgba(0,0,0,0.03)]",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"flex items-center justify-center w-12 h-12 bg-[#fdf4ff] rounded-xl border border-[#fbcfe8]",children:e.jsx(Ed,{className:"text-2xl text-[#c026d3]"})}),e.jsx("h3",{className:"text-2xl font-bold text-[#10002B]",children:"Processing time"})]}),e.jsxs("p",{className:"text-gray-700 text-lg mt-4",children:["Account deleti
155on requests are typically processed within ",e.jsx("strong",{className:"text-[#c026d3]",children:"7â14 working days"}),"."]})]})]}),e.jsxs(ve.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"p-8 text-center bg-gradient-to-br from-gray-50 to-[#fdf4ff] rounded-2xl border-2 border-[#fbcfe8]",children:[e.jsx("p",{className:"text-lg text-gray-700 mb-6 font-medium",children:"For any questions regarding your data, please contact us:"}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-[#c026d3] to-[#9333ea] text-white rounded-full font-bold text-base shadow-[0_4px_20px_rgba(192,38,211,0.3)] hover:shadow-[0_8px_28px_rgba(192,38,211,0.5)] hover:-translate-y-1 transition-all",children:[e.jsx(Yl,{className:"text-xl"}),"[email protected]"]}),e.jsx("button",{onClick:()=>a("/"),className:"px-8 py-4 font-bold text-base transition-all duration-300 border-2 rounded-full text-slate-600 border-slate-200 hover:bg-white hover:border-[#c026d3] hover:text-[#c026d3]",children:"Back to Home"})]})]})]})]}),e.jsx(xc,{})]})},$R=()=>{const a=gt(),[t,n]=y.useState(!1),[l,i]=y.useState(!1);return y.useEffect(()=>{const c=()=>n(window.scrollY>20);return window.addEventListener("scroll",c),()=>window.removeEventListener("scroll",c)},[]),e.jsxs("div",{className:"min-h-screen bg-white text-[#1e293b] antialiased",children:[e.jsx(pc,{navigate:a,isScrolled:t,isMobileMenuOpen:l,setIsMobileMenuOpen:i}),e.jsx("main",{children:e.jsx(mu,{})}),e.jsx(xc,{})]})};function bu(a){if(!a)return null;try{const t=a.split(".");if(t.length!==3)return console.error("[JWT] Invalid token format"),null;const l=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(l).split("").map(c=>"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(i)}catch(t){return console.error("[JWT] Error decoding token:",t),null}}function L0(a){const t=bu(a);return t&&(t.role||t.user_role||t.type)||null}function eO(a){const t=bu(a);return t&&(t.user_id||t.sub||t.id)||null}function tO(a){const t=bu(a);return t&&(t.company_id||t.tenant_id||t.organization_id)||null}function Yd(a){const t=bu(a);return!t||!t.exp?!0:t.exp*1e3<Date.now()}function sO(a){const t=L0(a);return t==="super_admin"||t==="superadmin"}function aO(a){const t=L0(a);return t==="admin"||t==="tenant_admin"}function _x(a){const t=bu(a);return t?{userId:eO(a),role:L0(a),companyId:tO(a),email:t.email||null,exp:t.exp||null,iat:t.iat||null}:null}const Yf=kn,RA="38316230895-stq8doekadoiaapah310gcv3884ffott.apps.googleusercontent.com";async function Sx(a){try{const n=(await Me.get(`${Yf}/api/user/profile`,{headers:{Authorization:`Bearer ${a}`}})).data?.user||{};return{role:n.role??null,user_needs_onboarding:n.user_needs_onboarding??!1,has_seen_platform_tour:n.has_seen_platform_tour??!0}}catch{return{role:null,user_needs_onboarding:!1,has_seen_platform_tour:!0}}}function nO({onLoginSuccess:a}){const[t,n]=y.useState(""),[l,i]=y.useState(""),[c,u]=y.useState({}),[h,f]=y.useState(!1),[p,x]=y.useState(null),[b,v]=y.useState(!1),[w,j]=y.useState(!1),[N,A]=y.useState(!1),S=gt();y.useEffect(()=>{const k=document.createElement("script");return k.src="https://accounts.google.com/gsi/client",k.async=!0,k.defer=!0,document.body.appendChild(k),k.onload=()=>{window.google&&window.google.accounts.id.initialize({client_id:RA,callback:C,ux_mode:"popup",use_fedcm_for_prompt:!1})},()=>{const E=document.querySelector('script[src="https://accounts.google.com/gsi/client"]');E&&document.body.removeChild(E)}},[]);const C=async k=>{v(!0),x(null);try{const E=await Me.post(`${Yf}/api/auth/google`,{credential:k.credential}),{token:z}=E.data;localStorage.setItem("authToken",z),localStorage.setItem("loginExpiry",(Date.now()+6048e5).toString());const{user_needs_onboarding:D}=await Sx(z);a&&a(D),v(!1),S(D?"/onboarding-questions":"/app/dashboard")}catch(E){v(!1),x(E.response?.data?.error||"Google authentication failed. Please try again.")}},T=()=>{window.google&&window.google.accounts?window.google.accounts.oauth2.initTokenClient({client_id:RA,scope:"email profile",callback:async E=>{if(E.access_token){v(!0),x(null);try{const D=(await Me.get("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${E.access_token}`}})).data,q=await Me.post(`${Yf}/api/auth/google-token`,{access_token:E.access_token,email:D.email,name:D.name,picture:D.picture,google_id:D.sub}),{token:V,is_new_user:Z}=q.data;localStorage.setItem("authToken",V),localStorage.setItem("loginExpiry",(Date.now()+6048e5).toString());const{user_needs_onboarding:ae}=await Sx(V);a&&a(ae),v(!1),Z?S("/auth/signup/set-password",{state:{email:D.email,fromGoogle:!0}}):S(ae?"/onboarding-questions":"/app/dashboard")}catch(z){v(!1),x(z.response?.data?.error||"Google authentication failed. Please try again.")}}}}).requestAccessToken():x("Google Sign-In not loaded. Please refresh the page.")},L=()=>{let k={},E=!0;return t||(k.email="Email is required",E=!1),l||(k.password="Password is required",E=!1),u(k),E},O=async k=>
155{if(k.preventDefault(),!L())return;x(null),f(!0);const E={email:t,password:l};try{console.log("[Login] Attempting login for:",t);const z=await Me.post(`${Yf}/api/auth/login`,E);console.log("[Login] Backend response data:",z.data);const{token:D,role:q}=z.data;localStorage.setItem("authToken",D),localStorage.setItem("loginExpiry",(Date.now()+6048e5).toString());const V=await Sx(D),Z=V.user_needs_onboarding,ae=V.has_seen_platform_tour;let ee=L0(D)||q||V.role;if(ee==="super_admin"||ee==="superadmin"||sO(D)){console.log("[Login] Super admin detected (role: "+ee+"), redirecting to platform admin panel"),localStorage.removeItem("authToken"),localStorage.removeItem("userId"),localStorage.removeItem("loginExpiry"),localStorage.removeItem("needsOnboarding"),localStorage.setItem("admin_token",D),localStorage.setItem("admin_user",JSON.stringify({email:t,role:ee||"super_admin"})),f(!1),window.location.href="/admin/dashboard";return}if(ee==="admin"||ee==="tenant_admin"||aO(D)){console.log("[Login] Tenant admin detected (role: "+ee+")"),a&&a(Z),f(!1),S(Z?"/onboarding-questions":"/app/dashboard");return}console.log("[Login] Regular team member detected (role: "+(ee||"user")+")"),a&&a(!1),f(!1),S("/app/dashboard")}catch(z){f(!1);const D=z.response?.data?.error||z.response?.data?.detail||"Invalid email or password.";x(D),console.error("[Login] Error:",D)}},R=(k,E)=>{k==="email"&&n(E),k==="password"&&i(E),c[k]&&u(z=>({...z,[k]:null}))};return e.jsxs("div",{className:"w-full h-full relative flex flex-col justify-center",children:[e.jsx("div",{className:"fixed top-6 right-6 md:top-8 md:right-10 z-[1000]",children:e.jsxs(as,{to:"/",className:"inline-flex items-center gap-2 text-slate-400 hover:text-[#d946ef] transition-all duration-200 font-medium text-sm no-underline group",children:[e.jsx("div",{className:"w-9 h-9 rounded-full flex items-center justify-center transition-colors group-hover:bg-[#f0f9ff] group-hover:border-[#d946ef]",children:e.jsx(m0,{className:"transition-transform duration-200 group-hover:-translate-x-0.5",size:16})}),e.jsx("span",{className:"hidden md:inline",children:"Back"})]})}),e.jsxs("div",{className:"w-full max-w-[420px] mx-auto px-4 flex flex-col",children:[e.jsx("h2",{className:"text-[26px] font-bold text-gray-900 mb-2 text-center animate-[fadeIn_0.5s_ease-out_0.4s_both]",children:"Welcome Back!"}),e.jsx("p",{className:"text-gray-500 mb-8 text-[15px] text-center animate-[fadeIn_0.5s_ease-out_0.5s_both]",children:"Sign in with your email and password."}),e.jsxs("form",{onSubmit:O,noValidate:!0,children:[e.jsxs("div",{className:"mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Yl,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${c.email?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"email",placeholder:"Email",required:!0,autoComplete:"username",readOnly:!N,onFocus:()=>A(!0),value:t,onChange:k=>R("email",k.target.value),className:`w-full h-[52px] pl-12 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 156 ${c.email?"border-red-500 text-gray-900 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),c.email&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",c.email]})]}),e.jsxs("div",{className:"mb-2 animate-[fadeIn_0.5s_ease-out_0.7s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${c.password?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:w?"text":"password",placeholder:"Password",required:!0,autoComplete:"current-password",readOnly:!N,onFocus:()=>A(!0),value:l,onChange:k=>R("password",k.target.value),className:`w-full h-[52px] pl-12 pr-12 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 157 ${c.password?"border-red-500 text-gray-900 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),e.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors",onClick:()=>j(!w),children:w?e.jsx(nu,{}):e.jsx(lu,{})})]}),c.password&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt
157-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",c.password]})]}),e.jsx("div",{className:"flex justify-end mb-6 animate-[fadeIn_0.5s_ease-out_0.8s_both]",children:e.jsx(as,{to:"/auth/forgot-password",className:"text-[14px] font-semibold !text-[#d946ef] hover:!text-[#e879f9] transition-colors no-underline",children:"Forgot Password ?"})}),p&&e.jsx("div",{className:"bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-sm font-medium text-center mb-5 animate-[fadeIn_0.5s_ease-out_0.85s_both]",children:p}),e.jsx("div",{className:"animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:e.jsxs("button",{type:"submit",className:"w-full h-[52px] !bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none !text-white rounded-[10px] font-semibold text-[15px] flex items-center justify-center gap-2 hover:!bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none active:transform active:scale-[0.98] transition-all shadow-sm disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer",disabled:h,"aria-label":"Login",children:[h?"Logging In...":"Login"," ",e.jsx(nT,{})]})})]}),e.jsxs("div",{className:"animate-[fadeIn_0.5s_ease-out_1.0s_both]",children:[e.jsxs("div",{className:"flex items-center my-6",children:[e.jsx("div",{className:"flex-grow h-px bg-gray-200"}),e.jsx("span",{className:"px-3 text-[13px] text-gray-400 font-medium",children:"OR"}),e.jsx("div",{className:"flex-grow h-px bg-gray-200"})]}),e.jsx("div",{className:"mb-8",children:e.jsxs("button",{type:"button",className:"w-full h-[52px] !bg-white !text-gray-700 !border-[1.5px] !border-[#e2e8f0] rounded-[10px] font-semibold text-[15px] flex items-center justify-center gap-3 hover:!bg-gray-50 transition-all cursor-pointer",onClick:T,"aria-label":"Continue with Google",disabled:b,children:[e.jsxs("svg",{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),e.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),e.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),e.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]}),b?"Signing in...":"Continue with Google"]})})]}),e.jsxs("p",{className:"text-center text-gray-600 text-[15px] animate-[fadeIn_0.5s_ease-out_1.1s_both]",children:["Don't have an account?"," ",e.jsxs(as,{to:"https://client.voicerix.ai/auth/signup",className:"ml-1 font-sans text-[15px] font-bold !text-[#d946ef] inline-flex items-center gap-1 transition-all duration-200 hover:!text-[#d946ef] group no-underline",children:["Sign Up Now ",e.jsx(dl,{className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})]})]})}const lO=JSON.parse(`[{"value":"AF","label":"Afghanistan"},{"value":"AX","label":"Ã
land Islands"},{"value":"AL","label":"Albania"},{"value":"DZ","label":"Algeria"},{"value":"AS","label":"American Samoa"},{"value":"AD","label":"Andorra"},{"value":"AO","label":"Angola"},{"value":"AI","label":"Anguilla"},{"value":"AQ","label":"Antarctica"},{"value":"AG","label":"Antigua and Barbuda"},{"value":"AR","label":"Argentina"},{"value":"AM","label":"Armenia"},{"value":"AW","label":"Aruba"},{"value":"AU","label":"Australia"},{"value":"AT","label":"Austria"},{"value":"AZ","label":"Azerbaijan"},{"value":"BS","label":"Bahamas"},{"value":"BH","label":"Bahrain"},{"value":"BD","label":"Bangladesh"},{"value":"BB","label":"Barbados"},{"value":"BY","label":"Belarus"},{"value":"BE","label":"Belgium"},{"value":"BZ","label":"Belize"},{"value":"BJ","label":"Benin"},{"value":"BM","label":"Bermuda"},{"value":"BT","label":"Bhutan"},{"value":"BO","label":"Bolivia, Plurinational State of"},{"value":"BQ","label":"Bonaire, Sint Eustatius and Saba"},{"value":"BA","label":"Bosnia and Herzegovina"},{"value":"BW","label":"Botswana"},{"value":"BV","label":"Bouvet Island"},{"value":"BR","label":"Brazil"},{"value":"IO","label":"British Indian Ocean Territory"},{"value":"BN","label":"Brunei Darussalam"},{"value":"BG","label":"Bulgaria"},{"value":"BF","label":"Burkina Faso"},{"value":"BI","label":"Burundi"},{"value":"CV","label":"Cabo Verde"},{"value":"KH","label":"Cambodia"},{"value":"CM","label":"Cameroon"},{"value":"CA","label":"Canada"},{"value":"KY","label":"Cayman Islands"},{"value":"CF","label":"Central African Republic"},{"value":"TD","label":"Chad"},{"value":"CL","label":"Chile"},{"value":"CN","label":"China"},{"value":"CX","label":"Christmas Island"},{"value":"CC","label":"Cocos (Keeling) Islands"},{"value":"CO","label":"Colombia"},{"value":"KM","label":"Comoros"},{"value":"CG","label":"Congo"},{"value":"CD","label":"Congo, Democratic Republic of the"},{"value":"CK","label":"Cook Islands"},{"value":"CR","label":"Costa Rica"},{"value":"HR","label":"Croatia"},{"value":"CU","label":"Cuba"},{"value":"CW","label":"Curaçao"},{"value":"CY","label":"Cyprus"},{"value":"CZ","label":"Czechia"},{"value":"CI","label":"Côte d'Ivoire"},{"value":"DK","label":"Denmark"},{"value":"DJ","label":"Djibouti"},{"value":"DM","label":"Dominica"},{"value":"DO","label":"Dominican Republic"},{"value":"EC","label":"Ecuador"},{"value":"EG","label":"Egypt"},{"value":"SV","label":"El Salvador"},{"value":"GQ","label":"Equatorial Guinea"},{"value":"ER","label":"Eritrea"},{"value":"EE","label":"Estonia"},{"value":"SZ","label":"Eswatini"},{"value":"ET","label":"Ethiopia"},{"value":"FK","label":"Falkland Islands (Malvinas)"},{"value":"FO","label":"Faroe Islands"},{"value":"FJ","label":"Fiji"},{"value":"FI","label":"Finland"},{"value":"FR","label":"France"},{"value":"GF","label":"French Guiana"},{"value":"PF","label":"French Polynesia"},{"value":"TF","label":"French Southern Territories"},{"value":"GA","label":"Gabon"},{"value":"GM","label":"Gambia"},{"value":"GE","label":"Georgia"},{"value":"DE","label":"Germany"},{"value":"GH","label":"Ghana"},{"value":"GI","label":"Gibraltar"},{"value":"GR","label":"Greece"},{"value":"GL","label":"Greenland"},{"value":"GD","label":"Grenada"},{"value":"GP","label":"Guadeloupe"},{"value":"GU","label":"Guam"},{"value":"GT","label":"Guatemala"},{"value":"GG","label":"Guernsey"},{"value":"GN","label":"Guinea"},{"value":"GW","label":"Guinea-Bissau"},{"value":"GY","label":"Guyana"},{"value":"HT","label":"Haiti"},{"value":"HM","label":"Heard Island and McDonald Islands"},{"value":"VA","label":"Holy See"},{"value":"HN","label":"Honduras"},{"value":"HK","label":"Hong Kong"},{"value":"HU","label":"Hungary"},{"value":"IS","label":"Iceland"},{"value":"IN","label":"India"},{"value":"ID","label":"Indonesia"}
157,{"value":"IR","label":"Iran, Islamic Republic of"},{"value":"IQ","label":"Iraq"},{"value":"IE","label":"Ireland"},{"value":"IM","label":"Isle of Man"},{"value":"IL","label":"Israel"},{"value":"IT","label":"Italy"},{"value":"JM","label":"Jamaica"},{"value":"JP","label":"Japan"},{"value":"JE","label":"Jersey"},{"value":"JO","label":"Jordan"},{"value":"KZ","label":"Kazakhstan"},{"value":"KE","label":"Kenya"},{"value":"KI","label":"Kiribati"},{"value":"KP","label":"Korea, Democratic People's Republic of"},{"value":"KR","label":"Korea, Republic of"},{"value":"KW","label":"Kuwait"},{"value":"KG","label":"Kyrgyzstan"},{"value":"LA","label":"Lao People's Democratic Republic"},{"value":"LV","label":"Latvia"},{"value":"LB","label":"Lebanon"},{"value":"LS","label":"Lesotho"},{"value":"LR","label":"Liberia"},{"value":"LY","label":"Libya"},{"value":"LI","label":"Liechtenstein"},{"value":"LT","label":"Lithuania"},{"value":"LU","label":"Luxembourg"},{"value":"MO","label":"Macao"},{"value":"MG","label":"Madagascar"},{"value":"MW","label":"Malawi"},{"value":"MY","label":"Malaysia"},{"value":"MV","label":"Maldives"},{"value":"ML","label":"Mali"},{"value":"MT","label":"Malta"},{"value":"MH","label":"Marshall Islands"},{"value":"MQ","label":"Martinique"},{"value":"MR","label":"Mauritania"},{"value":"MU","label":"Mauritius"},{"value":"YT","label":"Mayotte"},{"value":"MX","label":"Mexico"},{"value":"FM","label":"Micronesia, Federated States of"},{"value":"MD","label":"Moldova, Republic of"},{"value":"MC","label":"Monaco"},{"value":"MN","label":"Mongolia"},{"value":"ME","label":"Montenegro"},{"value":"MS","label":"Montserrat"},{"value":"MA","label":"Morocco"},{"value":"MZ","label":"Mozambique"},{"value":"MM","label":"Myanmar"},{"value":"NA","label":"Namibia"},{"value":"NR","label":"Nauru"},{"value":"NP","label":"Nepal"},{"value":"NL","label":"Netherlands"},{"value":"NC","label":"New Caledonia"},{"value":"NZ","label":"New Zealand"},{"value":"NI","label":"Nicaragua"},{"value":"NE","label":"Niger"},{"value":"NG","label":"Nigeria"},{"value":"NU","label":"Niue"},{"value":"NF","label":"Norfolk Island"},{"value":"MK","label":"North Macedonia"},{"value":"MP","label":"Northern Mariana Islands"},{"value":"NO","label":"Norway"},{"value":"OM","label":"Oman"},{"value":"PK","label":"Pakistan"},{"value":"PW","label":"Palau"},{"value":"PS","label":"Palestine, State of"},{"value":"PA","label":"Panama"},{"value":"PG","label":"Papua New Guinea"},{"value":"PY","label":"Paraguay"},{"value":"PE","label":"Peru"},{"value":"PH","label":"Philippines"},{"value":"PN","label":"Pitcairn"},{"value":"PL","label":"Poland"},{"value":"PT","label":"Portugal"},{"value":"PR","label":"Puerto Rico"},{"value":"QA","label":"Qatar"},{"value":"RO","label":"Romania"},{"value":"RU","label":"Russian Federation"},{"value":"RW","label":"Rwanda"},{"value":"RE","label":"Réunion"},{"value":"BL","label":"Saint Barthélemy"},{"value":"SH","label":"Saint Helena, Ascension and Tristan da Cunha"},{"value":"KN","label":"Saint Kitts and Nevis"},{"value":"LC","label":"Saint Lucia"},{"value":"MF","label":"Saint Martin (French part)"},{"value":"PM","label":"Saint Pierre and Miquelon"},{"value":"VC","label":"Saint Vincent and the Grenadines"},{"value":"WS","label":"Samoa"},{"value":"SM","label":"San Marino"},{"value":"ST","label":"Sao Tome and Principe"},{"value":"SA","label":"Saudi Arabia"},{"value":"SN","label":"Senegal"},{"value":"RS","label":"Serbia"},{"value":"SC","label":"Seychelles"},{"value":"SL","label":"Sierra Leone"},{"value":"SG","label":"Singapore"},{"value":"SX","label":"Sint Maarten (Dutch part)"},{"value":"SK","label":"Slovakia"},{"value":"SI","label":"Slovenia"},{"value":"SB","label":"Solomon Islands"},{"value":"SO","label":"Somalia"},{"value":"ZA","label":"South Africa"},{"value":"GS","label":"South Georgia and the South Sandwich Islands"},{"value":"SS","label":"South Sudan"},{"value":"ES","label":"Spain"},{"value":"LK","label":"Sri Lanka"},{"value":"SD","label":"Sudan"},{"value":"SR","label":"Suriname"},{"value":"SJ","label":"Svalbard and Jan Mayen"},{"value":"SE","label":"Sweden"},{"value":"CH","label":"Switzerland"},{"value":"SY","label":"Syrian Arab Republic"},{"value":"TW","label":"Taiwan, Province of China"},{"value":"TJ","label":"Tajikistan"},{"value":"TZ","label":"Tanzania, United Republic of"},{"value":"TH","label":"Thailand"},{"value":"TL","label":"Timor-Leste"},{"value":"TG","label":"Togo"},{"value":"TK","label":"Tokelau"},{"value":"TO","label":"Tonga"},{"value":"TT","label":"Trinidad and Tobago"},{"value":"TN","label":"Tunisia"},{"value":"TR","label":"Turkey"},{"value":"TM","label":"Turkmenistan"},{"value":"TC","label":"Turks and Caicos Islands"},{"value":"TV","label":"Tuvalu"},{"value":"UG","label":"Uganda"},{"value":"UA","label":"Ukraine"},{"value":"AE","label":"United Arab Emirates"},{"value":"GB","label":"United Kingdom"},{"value":"UM","label":"United States Minor Outlying Islands"},{"value":"US","label":"United States"},{"value":"UY","label":"Uruguay"},{"value":"UZ","label":"Uzbekistan"},{"value":"VU","label":"Vanuatu"},{"value":"VE","label":"Venezuela, Bolivarian Republic of"},{"value":"VN","label":"Viet Nam"},{"value":"VG","label":"Virgin Islands, British"},{"value":"VI","label":"Virgin Islands, U.S."},{"value":"WF","label":"Wallis and Futuna"},{"value":"EH","label":"Western Sahara"},{"value":"YE","label":"Yemen"},{"value":"ZM","label":"Zambia"},{"value":"ZW","label":"Zimbabwe"}]`),rO=JSON.parse(`[{"value":"AF","label":"Ø§ÙØºØ§ÙستاÙ"},{"value":"AX","label":"Ã
land"},{"value":"AL","label":"Shqipëria"},{"value":"DZ","label":"Ø§ÙØ¬Ø²Ø§Ø¦Ø±"},{"value":"AS","label":"American Samoa"},{"value":"AD","label":"Andorra"},{"value":"AO","label":"Angola"},{"value":"AI","label":"Anguilla"},{"value":"AQ","label":"Antarctica"},{"value":"AG","label":"Antigua and Barbuda"},{"value":"AR","label":"Argentina"},{"value":"AM","label":"ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶"},{"value":"AW","label":"Aruba"},{"value":"AU","label":"Australia"},{"value":"AT","label":"Ãsterreich"},{"value":"AZ","label":"AzÉrbaycan"},{"value":"BS","label":"Bahamas"},{"value":"BH","label":"âØ§ÙØ¨ØØ±ÙÙ"},{"value":"BD","label":"Bangladesh"},{"value":"BB","label":"Barbados"},{"value":"BY","label":"ÐелаÑÑÌÑÑ"},{"value":"BE","label":"België"},{"value":"BZ","label":"Belize"},{"value":"BJ","label":"Bénin"},{"value":"BM","label":"Bermuda"},{"value":"BT","label":"ʼbrug-yul"},{"value":"BO","label":"Bolivia"},{"value":"BQ","label":"Bonaire"},{"value":"BA","label":"Bosna i Hercegovina"},{"value":"BW","label":"Botswana"},{"value":"BV","label":"Bouvetøya"},{"value":"BR","label":"Brasil"},{"value":"IO","label":"British Indian Ocean Territory"},{"value":"BN","label":"Negara Brunei Darussalam"},{"value":"BG","label":"ÐÑлгаÑиÑ"},{"value":"BF","label":"Burkina Faso"},{"value":"BI","label":"Burundi"},{"value":"KH","label":"KâmpÅchéa"},{"value":"CM","label":"Cameroon"},{"value":"CA","label":"Canada"},{"value":"CV","label":"Cabo Verde"},{"value":"KY","label":"Cayman Islands"},{"value":"CF","label":"Ködörösêse tî Bêafrîka"},{"value":"TD","label":"Tchad"},{"value":"CL","label":"Chile"},{"value":"CN","label":"ä¸å½"},{"value":"CX","label":"Christmas Island"},{"value":"CC","label":"Cocos (Keeling) Islands"},{"value":"CO","label":"Colombia"},{"value":"KM","label":"Komori"},{"value":"CG","label":"République du Congo"},{"value":"CD","label":"République démocratique du Congo"},{"value":"CK","label":"Cook Islands"},{"value":"CR","label":"Costa Rica"},{"value":"CI","label":"Côte d'Ivoire"},{"value":"HR","label":"Hrvatska"},{"value":"CU","label":"Cuba"},{"value":"CW","label":"Curaçao"},{"value":"CY","label":"ÎÏÏÏοÏ"},{"value":"CZ","label":"Äeská republika"},{"value":"DK","label":"Danmark"},{"value":"DJ","label":"Djibouti"},{"value":"DM","label":"Dominica"},{"value":"DO","label":"República Dominicana"},{"value":"EC","label":"Ecuador"},{"value":"EG","label":"Ù
صرâ"},{"value":"SV","label":"El Salvador"},{"value":"GQ","label":"Guinea Ecuatorial"},{"value":"ER","label":"á¤ááµá«"},{"value":"EE","label":"Eesti"},{"value":"ET","label":"á¢áµá®áµá«"},{"value":"FK","label":"Falkland Islands"},{"value":"FO","label":"Føroyar"},{"value":"FJ","label":"Fiji"},{"value":"FI","label":"Suomi"},{"value":"FR","label":"France"},{"value":"GF","label":"Guyane française"},{"value":"PF","label":"Polynésie française"},{"value":"TF","label":"Territoire des Terres australes et antarctiques fr"},{"value":"GA","label":"Gabon"},{"value":"GM","label":"Gambia"},{"value":"GE","label":"á¡áá¥áá ááááá"},{"value":"DE","label":"Deutschland"},{"value":"GH","label":"Ghana"},{"value":"GI","label":"Gibraltar"},{"value":"GR","label":"Îλλάδα"}
157,{"value":"GL","label":"Kalaallit Nunaat"},{"value":"GD","label":"Grenada"},{"value":"GP","label":"Guadeloupe"},{"value":"GU","label":"Guam"},{"value":"GT","label":"Guatemala"},{"value":"GG","label":"Guernsey"},{"value":"GN","label":"Guinée"},{"value":"GW","label":"Guiné-Bissau"},{"value":"GY","label":"Guyana"},{"value":"HT","label":"Haïti"},{"value":"HM","label":"Heard Island and McDonald Islands"},{"value":"VA","label":"Vaticano"},{"value":"HN","label":"Honduras"},{"value":"HK","label":"馿¸¯"},{"value":"HU","label":"Magyarország"},{"value":"IS","label":"Ãsland"},{"value":"IN","label":"à¤à¤¾à¤°à¤¤"},{"value":"ID","label":"Indonesia"},{"value":"IR","label":"Ø§ÛØ±Ø§Ù"},{"value":"IQ","label":"Ø§ÙØ¹Ø±Ø§Ù"},{"value":"IE","label":"Ãire"},{"value":"IM","label":"Isle of Man"},{"value":"IL","label":"×ִשְ×רָ×Öµ×"},{"value":"IT","label":"Italia"},{"value":"JM","label":"Jamaica"},{"value":"JP","label":"æ¥æ¬"},{"value":"JE","label":"Jersey"},{"value":"JO","label":"Ø§ÙØ£Ø±Ø¯Ù"},{"value":"KZ","label":"ÒазаÒÑÑан"},{"value":"KE","label":"Kenya"},{"value":"KI","label":"Kiribati"},{"value":"KP","label":"ë¶í"},{"value":"KR","label":"ëí민êµ"},{"value":"KW","label":"اÙÙÙÙØª"},{"value":"KG","label":"ÐÑÑгÑзÑÑан"},{"value":"LA","label":"ສàºàºàº¥àº²àº§"},{"value":"LV","label":"Latvija"},{"value":"LB","label":"ÙØ¨ÙاÙ"},{"value":"LS","label":"Lesotho"},{"value":"LR","label":"Liberia"},{"value":"LY","label":"âÙÙØ¨Ùا"},{"value":"LI","label":"Liechtenstein"},{"value":"LT","label":"Lietuva"},{"value":"LU","label":"Luxembourg"},{"value":"MO","label":"æ¾³é"},{"value":"MK","label":"СевеÑна ÐакедониÑа"},{"value":"MG","label":"Madagasikara"},{"value":"MW","label":"Malawi"},{"value":"MY","label":"Malaysia"},{"value":"MV","label":"Maldives"},{"value":"ML","label":"Mali"},{"value":"MT","label":"Malta"},{"value":"MH","label":"M̧ajeļ"},{"value":"MQ","label":"Martinique"},{"value":"MR","label":"Ù
ÙØ±ÙتاÙÙØ§"},{"value":"MU","label":"Maurice"},{"value":"YT","label":"Mayotte"},{"value":"MX","label":"México"},{"value":"FM","label":"Micronesia"},{"value":"MD","label":"Moldova"},{"value":"MC","label":"Monaco"},{"value":"MN","label":"Ðонгол ÑлÑ"},{"value":"ME","label":"ЦÑна ÐоÑа"},{"value":"MS","label":"Montserrat"},{"value":"MA","label":"اÙÙ
غرب"},{"value":"MZ","label":"Moçambique"},{"value":"MM","label":"áá¼ááºáá¬"},{"value":"NA","label":"Namibia"},{"value":"NR","label":"Nauru"},{"value":"NP","label":"नपल"},{"value":"NL","label":"Nederland"},{"value":"NC","label":"Nouvelle-Calédonie"},{"value":"NZ","label":"New Zealand"},{"value":"NI","label":"Nicaragua"},{"value":"NE","label":"Niger"},{"value":"NG","label":"Nigeria"},{"value":"NU","label":"NiuÄ"},{"value":"NF","label":"Norfolk Island"},{"value":"MP","label":"Northern Mariana Islands"},{"value":"NO","label":"Norge"},{"value":"OM","label":"عÙ
اÙ"},{"value":"PK","label":"Pakistan"},{"value":"PW","label":"Palau"},{"value":"PS","label":"ÙÙØ³Ø·ÙÙ"},{"value":"PA","label":"Panamá"},{"value":"PG","label":"Papua Niugini"},{"value":"PY","label":"Paraguay"},{"value":"PE","label":"Perú"},{"value":"PH","label":"Pilipinas"},{"value":"PN","label":"Pitcairn Islands"},{"value":"PL","label":"Polska"},{"value":"PT","label":"Portugal"},{"value":"PR","label":"Puerto Rico"},{"value":"QA","label":"ÙØ·Ø±"},{"value":"RE","label":"La Réunion"},{"value":"RO","label":"România"},{"value":"RU","label":"РоÑÑиÑ"},{"value":"RW","label":"Rwanda"},{"value":"BL","label":"Saint-Barthélemy"},{"value":"SH","label":"Saint Helena"},{"value":"KN","label":"Saint Kitts and Nevis"},{"value":"LC","label":"Saint Lucia"},{"value":"MF","label":"Saint-Martin"},{"value":"PM","label":"Saint-Pierre-et-Miquelon"},{"value":"VC","label":"Saint Vincent and the Grenadines"},{"value":"WS","label":"Samoa"},{"value":"SM","label":"San Marino"},{"value":"ST","label":"São Tomé e PrÃncipe"},{"value":"SA","label":"Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©"},{"value":"SN","label":"Sénégal"},{"value":"RS","label":"СÑбиÑа"},{"value":"SC","label":"Seychelles"},{"value":"SL","label":"Sierra Leone"},{"value":"SG","label":"Singapore"},{"value":"SX","label":"Sint Maarten"},{"value":"SK","label":"Slovensko"},{"value":"SI","label":"Slovenija"},{"value":"SB","label":"Solomon Islands"},{"value":"SO","label":"Soomaaliya"},{"value":"ZA","label":"South Africa"},{"value":"GS","label":"South Georgia"},{"value":"SS","label":"South Sudan"},{"value":"ES","label":"España"},{"value":"LK","label":"ÅrÄ« laá¹kÄva"},{"value":"SD","label":"Ø§ÙØ³ÙداÙ"},{"value":"SR","label":"Suriname"},{"value":"SJ","label":"Svalbard og Jan Mayen"},{"value":"SZ","label":"Swaziland"},{"value":"SE","label":"Sverige"},{"value":"CH","label":"Schweiz"},{"value":"SY","label":"Ø³ÙØ±Ùا"},{"value":"TW","label":"èºç£"},{"value":"TJ","label":"ТоҷикиÑÑон"},{"value":"TZ","label":"Tanzania"},{"value":"TH","label":"à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢"},{"value":"TL","label":"Timor-Leste"},{"value":"TG","label":"Togo"},{"value":"TK","label":"Tokelau"},{"value":"TO","label":"Tonga"},{"value":"TT","label":"Trinidad and Tobago"},{"value":"TN","label":"تÙÙØ³"},{"value":"TR","label":"Türkiye"},{"value":"TM","label":"Türkmenistan"},{"value":"TC","label":"Turks and Caicos Islands"},{"value":"TV","label":"Tuvalu"},{"value":"UG","label":"Uganda"},{"value":"UA","label":"УкÑаÑна"},{"value":"AE","label":"دÙÙØ© Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©"},{"value":"GB","label":"United Kingdom"},{"value":"US","label":"United States"},{"value":"UM","label":"United States Minor Outlying Islands"},{"value":"UY","label":"Uruguay"},{"value":"UZ","label":"Oâzbekiston"},{"value":"VU","label":"Vanuatu"},{"value":"VE","label":"Venezuela"},{"value":"VN","label":"Viá»t Nam"},{"value":"VG","label":"British Virgin Islands"},{"value":"VI","label":"United States Virgin Islands"},{"value":"WF","label":"Wallis et Futuna"},{"value":"EH","label":"Ø§ÙØµØØ±Ø§Ø¡ Ø§ÙØºØ±Ø¨ÙØ©"},{"value":"YE","label":"اÙÙÙÙ
ÙÙ"},{"value":"ZM","label":"Zambia"},{"value":"ZW","label":"Zimbabwe"}]`);var kx,OA;function iO(){if(OA)return kx;OA=1;class a{constructor(){this.data=lO,this.labelMap={},this.valueMap={},this.data.forEach(l=>{this.labelMap[l.label.toLowerCase()]=l.value,this.valueMap[l.value.toLowerCase()]=l.label})}getValue(l){return this.labelMap[l.toLowerCase()]}getLabel(l){return this.valueMap[l.toLowerCase()]}getLabels(){return this.data.map(l=>l.label)}getValues(){return this.data.map(l=>l.value)}
157getLabelList(){return this.labelMap}getValueList(){return this.valueMap}getData(){return this.data}setLabel(l,i){return this.data.forEach(c=>{c.value===l&&(c.label=i,this.valueMap[c.value.toLowerCase()]=c.label)}),this}setEmpty(l){return this.data.unshift({value:"",label:l}),this.valueMap[""]=l,this.labelMap[l]="",this}native(){return this.nativeData=rO,this.nativeData.forEach(l=>{this.labelMap[l.label.toLowerCase()]=l.value,this.valueMap[l.value.toLowerCase()]=l.label}),this}}return kx=()=>{if(!(this instanceof a))return new a},kx}var oO=iO();const cO=Pi(oO),dO=kn,uO=({options:a,value:t,onChange:n,placeholder:l,icon:i,hasError:c})=>{const[u,h]=y.useState(!1),[f,p]=y.useState(""),[x,b]=y.useState(-1),v=a.filter(A=>A.label.toLowerCase().includes(f.toLowerCase())),w=a.find(A=>A.value===t);y.useEffect(()=>{b(0)},[f]),y.useEffect(()=>{if(u&&x>=0){const A=document.getElementById(`dropdown-option-${x}`);A&&A.scrollIntoView({block:"nearest"})}},[x,u]);const j=A=>{!u&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),h(!0))},N=A=>{A.key==="ArrowDown"?(A.preventDefault(),b(S=>S<v.length-1?S+1:S)):A.key==="ArrowUp"?(A.preventDefault(),b(S=>S>0?S-1:0)):A.key==="Enter"?(A.preventDefault(),x>=0&&x<v.length&&(n(v[x].value),h(!1),p(""))):A.key==="Escape"&&h(!1)};return e.jsxs("div",{className:"relative w-full mb-0",children:[e.jsxs("div",{tabIndex:0,onKeyDown:j,className:`country-dropdown-trigger w-full flex justify-between items-center px-4 py-3 border-[1.5px] rounded-[10px] text-[14px] bg-white cursor-pointer h-[48px] md:h-[52px] box-border transition-all duration-200 font-medium font-sans outline-none focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10 158 ${c?"border-red-500 text-red-900":u?"border-[#c026d3] ring-4 ring-[#c026d3]/10":"border-[#e2e8f0] hover:border-gray-300"}`,onClick:()=>h(!u),children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 overflow-hidden",children:[e.jsx("span",{className:`text-lg flex items-center ${c?"text-red-500":"text-gray-400"}`,children:i}),u?e.jsx("input",{type:"text",className:"w-full h-full border-none outline-none bg-transparent text-[14px] text-gray-800 p-0 font-sans",placeholder:"Type to search...",value:f,onChange:A=>p(A.target.value),onClick:A=>A.stopPropagation(),onKeyDown:N,autoFocus:!0}):e.jsx("span",{className:`truncate whitespace-nowrap ${w?"text-gray-800":c?"text-red-400":"text-gray-400 font-normal"}`,children:w?w.label:l})]}),e.jsx(dl,{className:`flex-shrink-0 transition-transform duration-200 ${c?"text-red-400":"text-gray-400"} ${u?"rotate-90":""}`})]}),u&&e.jsx("div",{className:"absolute top-[calc(100%+8px)] left-0 right-0 bg-white border-[1.5px] border-gray-200 rounded-[10px] shadow-xl z-[100] max-h-[200px] overflow-y-auto p-2 origin-top animate-[fadeIn_0.2s_ease-out_both]",children:v.length>0?v.map((A,S)=>{const C=t===A.value,T=S===x;return e.jsx("div",{id:`dropdown-option-${S}`,onMouseEnter:()=>b(S),className:`flex items-center gap-2.5 px-3 py-2.5 text-[14px] font-medium rounded-lg cursor-pointer transition-all duration-150 159 ${C?"text-[#c026d3] bg-[#e0f2fe] font-semibold":"text-gray-700"} 160 ${T&&!C?"bg-[#f0f9ff] text-[#c026d3]":""} 161 ${!T&&!C?"hover:bg-[#f0f9ff] hover:text-[#c026d3]":""} 162 `,onClick:()=>{n(A.value),h(!1),p("")},children:A.label},A.value)}):e.jsx("div",{className:"px-3 py-3 text-gray-400 text-[14px] text-center",children:"No results found"})})]})};function hO({onNext:a}){const[t,n]=y.useState(""),[l,i]=y.useState(""),[c,u]=y.useState(""),[h,f]=y.useState(!1),[p,x]=y.useState({}),[b,v]=y.useState(!1),[w,j]=y.useState(null),N=y.useMemo(()=>cO().getData(),[]),A=C=>{p[C]&&x(T=>({...T,[C]:null}))},S=async C=>{C.preventDefault(),j(null);let T={},L=!0;if(t.trim()||(T.fullName="Full Name is required",L=!1),l.trim()||(T.email="Email is required",L=!1),h||(T.terms="You must agree to the Terms & Conditions",L=!1),!L){x(T);return}v(!0);const O={fullName:t,email:l,country:c,agreedToTerms:!0};try{await Me.post(`${dO}/api/auth/signup/send-otp`,O),v(!1),typeof window.gtag_report_conversion=="function"&&window.gtag_report_conversion(),a({fullName:t,email:l,country:c})}catch(R){v(!1),j(R.response?.data?.error||"An unexpected error occurred. Please try again.")}};return e.jsxs("form",{onSubmit:S,noValidate:!0,children:[e.jsxs("div",{className:"form-field mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(ru,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${p.fullName?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"text",placeholder:"Full Name",required:!0,value:t,onChange:C=>{n(C.target.value),A("fullName")},className:`w-full h-[48px] md:h-[52px] pl-11 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 163 ${p.fullName?"border-red-500 focus:border-red-500 text-red-900 placeholder:text-red-300":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),p.fullName&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt
163-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",p.fullName]})]}),e.jsxs("div",{className:"form-field mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.7s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Yl,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${p.email?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"email",placeholder:"Email",autoComplete:"username",required:!0,value:l,onChange:C=>{i(C.target.value),A("email")},className:`w-full h-[48px] md:h-[52px] pl-11 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 164 ${p.email?"border-red-500 focus:border-red-500 text-red-900 placeholder:text-red-300":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),p.email&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",p.email]})]}),e.jsx("div",{className:"form-field animate-[fadeIn_0.5s_ease-out_0.8s_both] relative z-50 mb-4 md:mb-5",children:e.jsx(uO,{options:N,value:c,onChange:C=>{u(C),A("country")},placeholder:"Select your country (Optional)",icon:e.jsx(Pb,{}),hasError:!!p.country})}),e.jsxs("div",{className:"terms-row mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:[e.jsxs("div",{className:"flex items-center px-1",children:[e.jsx("input",{type:"checkbox",id:"terms",checked:h,onChange:C=>{f(C.target.checked),A("terms")},className:`w-4 h-4 text-[#d946ef] bg-white border-gray-300 rounded focus:ring-[#c026d3] focus:ring-2 cursor-pointer accent-[#0284c7] transition-all flex-shrink-0 165 ${p.terms?"border-red-500 ring-1 ring-red-500":"border-gray-300"} 166 `}),e.jsxs("label",{htmlFor:"terms",className:"ml-3 text-[13px] md:text-[14px] text-gray-600 cursor-pointer select-none leading-snug",children:["I agree to the"," ",e.jsx(as,{to:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"text-[#d946ef] font-semibold hover:underline transition-colors whitespace-nowrap",children:"Terms and conditions"})]})]}),p.terms&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",p.terms]})]}),w&&e.jsx("div",{className:"bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-[13px] md:text-sm font-medium text-center mb-5 animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:w}),e.jsx("div",{className:"animate-[fadeIn_0.5s_ease-out_1.0s_both] mt-4 md:mt-5 relative z-10",children:e.jsxs("button",{type:"submit",className:"submit-btn w-full h-[48px] md:h-[52px] !bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none !text-white rounded-[10px] font-semibold text-[14px] md:text-[15px] flex items-center justify-center gap-2 hover:!bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none active:transform active:scale-[0.98] transition-all shadow-sm disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer",disabled:b,"aria-label":"Continue to next step",children:[b?"Sending OTP...":"Continue"," ",e.jsx(dl,{})]})})]})}const MA=kn;function fO({signupData:a,onNext:t,onBack:n}){const[l,i]=y.useState(""),[c,u]=y.useState({}),[h,f]=y.useState(!1),[p,x]=y.useState(null),[b,v]=y.useState(!1),w=A=>{c[A]&&u(S=>({...S,[A]:null}))},j=async A=>{if(A.preventDefault(),x(null),!l){u({otp:"Please enter the verification code"});return}if(l.length!==6){u({otp:"Code must be 6 digits"});return}f(!0);try{await Me.post(`${MA}/api/auth/signup/verify-otp`,{email:a.email,otp:l,fullName:a.fullName,country:a.country,agreedToTerms:a.agreedToTerms}),f(!1),t()}catch(S){f(!1),x(S.response?.data?.error||"Invalid OTP. Please try again.")}},N=async()=>{if(!b){v(!0),x(null),u({});try{await Me.post(`${MA}/api/auth/signup/send-otp`,{fullName:a.fullName,email:a.email,country:a.country})}catch{x("Failed to resend OTP. Please try again.")}finally{v(!1)}}};return e.jsxs("div",{className:"max-w-sm mx-auto w-full",children:[e.jsxs("div",{className:"text-center mb-6 md:mb-8 animate-[fadeIn_0.5s_ease-out_0.5s_both]",children:[e.jsx("div",{className:"w-14 h-14 md:w-16 md:h-16 bg-[#f0f9ff] text-[#c026d3] rounded-2xl flex items-center justify-center mx-auto mb-4 md:mb-5 shadow-sm border border-[#e0f2fe]",children:e.jsx(Yl,{className:"text-[28px] md:text-[32px]"})}),e.jsx("h3",{className:"text-[#0f172a] text-[18px] md:text-xl font-bold mb-2 tracking-tight",children:"Check your email"}),e.jsxs("p",{className:"text-[#64748b] text-[13px] md:text-[14px] leading-relaxed",children:["We've sent a 6-digit verification code to ",e.jsx("br",{className:"hidden sm:block"}),e.jsx("strong",{className:"text-[#0f172a] font-semibold break-all",children:a.email})]})]}),e.jsxs("form",{onSubmit:j,noValidate:!0,children:[e.jsxs("div",{className:"mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsx("input",{type:"text",placeholder:"Enter 6-digit OTP",required:!0,maxLength:"6",value:l,onCh
166ange:A=>{i(A.target.value.replace(/\D/g,"")),w("otp")},className:`w-full h-[48px] md:h-[52px] pl-4 pr-4 bg-gray-50 border rounded-[10px] outline-none transition-all text-center text-xl md:text-2xl font-bold tracking-[4px] sm:tracking-[8px] text-gray-800 167 ${c.otp?"border-red-500 focus:border-red-500":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),c.otp&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 text-center flex items-center justify-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",c.otp]})]}),p&&e.jsx("div",{className:"bg-red-50 text-red-600 border border-red-100 rounded-xl px-4 py-3 text-[13px] md:text-sm font-medium text-center mb-5 md:mb-6 animate-[fadeIn_0.5s_ease-out_0.7s_both]",children:p}),e.jsxs("button",{type:"submit",disabled:h,"aria-label":"Verify OTP",className:"w-full h-[48px] md:h-[52px] bg-[#c026d3] text-white rounded-xl font-bold text-[14px] md:text-[15px] flex items-center justify-center gap-2 opacity-90 hover:opacity-100 active:scale-[0.98] transition-all shadow-[0_4px_12px_rgba(0,113,213,0.2)] disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer animate-[fadeIn_0.5s_ease-out_0.8s_both]",children:[h?"Verifying...":"Verify OTP"," ",e.jsx(dl,{})]})]}),e.jsxs("div",{className:"mt-6 md:mt-8 pt-5 md:pt-6 border-t border-[#f1f5f9] animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 md:gap-4 text-[13px] md:text-sm font-medium",children:[e.jsxs("button",{type:"button",onClick:N,disabled:b,"aria-label":"Resend code",className:`flex items-center gap-1.5 md:gap-2 transition-all border-none bg-transparent cursor-pointer 168 ${b?"text-[#94a3b8]":"text-[#d946ef] hover:text-[#005fb3]"}`,children:[e.jsx(Ib,{className:`${b?"animate-spin":""}`}),b?"Sending...":"Resend code"]}),e.jsx("span",{className:"w-1 h-1 bg-[#cbd5e1] rounded-full"}),e.jsxs("button",{type:"button",onClick:n,"aria-label":"Change email",className:"flex items-center gap-1.5 md:gap-2 text-[#64748b] hover:text-[#0f172a] transition-all border-none bg-transparent cursor-pointer",children:[e.jsx(W5,{}),"Change email"]})]}),!b&&e.jsx("p",{className:"text-center text-[#94a3b8] text-[11px] md:text-[12px] mt-4 font-normal",children:"Didn't receive the code? Check your spam folder."})]})]})}const zA=kn;function u4({signupData:a,onLoginSuccess:t}){const[n,l]=y.useState(""),[i,c]=y.useState(""),[u,h]=y.useState({}),[f,p]=y.useState(!1),[x,b]=y.useState(null),v=gt(),w=Os(),[j,N]=y.useState(!1),[A,S]=y.useState(!1),C=a?.email||w.state?.email,T=w.state?.fromGoogle||!1,L=R=>{u[R]&&h(k=>({...k,[R]:null}))},O=async R=>{R.preventDefault(),b(null);let k={},E=!0;if(n||(k.password="Password is required",E=!1),i||(k.confirmPassword="Confirm Password is required",E=!1),!E){h(k);return}if(n.length<8){h({password:"Password must be at least 8 characters"});return}if(n!==i){h({confirmPassword:"Passwords do not match"});return}p(!0);try{let z;if(T)z=await Me.post(`${zA}/api/auth/google/set-password`,{email:C,password:n},{headers:{Authorization:`Bearer ${localStorage.getItem("authToken")}`}}),p(!1),v("/onboarding-questions");else{z=await Me.post(`${zA}/api/auth/signup/create-password`,{email:C,password:n});const{token:D,user_id:q}=z.data;localStorage.setItem("authToken",D),localStorage.setItem("userId",q),localStorage.setItem("loginExpiry",(Date.now()+6048e5).toString()),t&&t(!0),p(!1),v("/onboarding-questions")}}catch(z){p(!1),b(z.response?.data?.error||"Failed to create account. Please try again.")}};return e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"text-center mb-6 md:mb-[30px] animate-[fadeIn_0.5s_ease-out_0.5s_both]",children:[e.jsx("div",{className:"w-14 h-14 md:w-[60px] md:h-[60px] rounded-full bg-blue-50 flex items-center justify-center mx-auto mb-3 md:mb-[15px]",children:e.jsx(X8,{className:"text-[28px] md:text-[32px] text-[#c026d3]"})}),e.jsx("h3",{className:"text-gray-800 text-[18px] md:text-lg font-bold mb-1.5 md:mb-2",children:"Create Your Password"}),e.jsx("p",{className:"text-gray-500 text-[13px] md:text-sm",children:"Choose a strong password to secure your account"})]}),e.jsxs("form",{onSubmit:O,noValidate:!0,children:[e.jsx("input",{type:"email",name:"email",autoComplete:"username",value:C||"",readOnly:!0,style:{display:"none"},"aria-hidden":"true"}),e.jsxs("div",{className:"mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${u.password?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:j?"text":"password",placeholder:"Create Password",required:!0,autoComplete:"new-password",value:n,onChange:R=>{l(R.target.value),L("password")},minLength:"8",className:`w-full h-[48px] md:h-[52px] pl-11 pr-11 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 169 ${u.password?"border-red-500 focus:border-red-500 text-red-900 placeholder:text-red-300":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),e.jsx("button",{type:"button",onClick:()=>N(!j),"aria-label":j?"Hide password":"Show password",className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none border-none bg-transparent cursor-pointer",children:j?e.jsx(nu,{size:18}):e.jsx(lu,{size:18})})]}),u.password&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt
169-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",u.password]})]}),e.jsxs("div",{className:"mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.7s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${u.confirmPassword?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:A?"text":"password",placeholder:"Confirm Password",required:!0,autoComplete:"new-password",value:i,onChange:R=>{c(R.target.value),L("confirmPassword")},minLength:"8",className:`w-full h-[48px] md:h-[52px] pl-11 pr-11 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 170 ${u.confirmPassword?"border-red-500 focus:border-red-500 text-red-900 placeholder:text-red-300":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),e.jsx("button",{type:"button",onClick:()=>S(!A),"aria-label":A?"Hide password":"Show password",className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none border-none bg-transparent cursor-pointer",children:A?e.jsx(nu,{size:18}):e.jsx(lu,{size:18})})]}),u.confirmPassword&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",u.confirmPassword]})]}),x&&e.jsx("div",{className:"bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-[13px] md:text-sm font-medium text-center mb-4 md:mb-5 animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:x}),e.jsx("div",{className:"mt-4 md:mt-5 animate-[fadeIn_0.5s_ease-out_1.0s_both]",children:e.jsx("button",{type:"submit",className:"w-full h-[48px] md:h-[52px] !bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none !text-white rounded-[10px] font-semibold text-[14px] md:text-[15px] flex items-center justify-center gap-2 active:transform active:scale-[0.98] transition-all shadow-sm disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer",disabled:f,children:f?"Creating Account...":"Create Account"})})]})]})}const Cx=kn,mO="38316230895-stq8doekadoiaapah310gcv3884ffott.apps.googleusercontent.com";function pO({onLoginSuccess:a}){const t=gt(),[n]=pC(),l=n.get("token"),[i,c]=y.useState(1),[u,h]=y.useState({}),[f,p]=y.useState(!1),[x,b]=y.useState(null),[v,w]=y.useState(!1),[j,N]=y.useState(!1),[A,S]=y.useState({fullName:"",email:"",password:"",confirm:""}),[C,T]=y.useState(!1),[L,O]=y.useState({}),[R,k]=y.useState(!1),[E,z]=y.useState(!1);y.useEffect(()=>{if(!l){const ee=document.createElement("script");return ee.src="https://accounts.google.com/gsi/client",ee.async=!0,ee.defer=!0,document.body.appendChild(ee),()=>{const U=document.querySelector('script[src="https://accounts.google.com/gsi/client"]');U&&document.body.removeChild(U)}}},[l]);const D=()=>{window.google&&window.google.accounts?window.google.accounts.oauth2.initTokenClient({client_id:mO,scope:"email profile",callback:async U=>{if(U.access_token){p(!0),b(null);try{const X=(await Me.get("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${U.access_token}`}})).data,re=await Me.post(`${Cx}/api/auth/google-token`,{access_token:U.access_token,email:X.email,name:X.name,picture:X.picture,google_id:X.sub}),{token:P,user_id:Y,user_needs_onboarding:oe,is_new_user:ue}=re.data;localStorage.setItem("authToken",P),localStorage.setItem("userId",Y),localStorage.setItem("loginExpiry",(Date.now()+6048e5).toString()),a&&a(oe),p(!1),ue?t("/auth/signup/set-password",{state:{email:X.email,fromGoogle:!0}}):t(oe?"/onboarding-questions":"/app/dashboard")}catch(B){p(!1),b(B.response?.data?.error||"Google authentication failed.")}}}}).requestAccessToken():b("Google Sign-In not loaded. Please refresh the page.")};y.useEffect(()=>{l&&q()},[l]);const q=async()=>{N(!0);try{const ee=await Me.post(`${Cx}/api/auth/verify-invite`,{token:l});ee.data.success&&(w(!0),S(U=>({...U,email:ee.data.email,fullName:ee.data.name})))}catch{b("Invalid or expired invite link. Please sign up normally.")}finally{N(!1)}},V=ee=>{L[ee]&&O(U=>({...U,[ee]:null}))},Z=async ee=>{ee.preventDefault(),b(null),O({});let U={},B=!0;if(A.fullName.trim()||(U.fullName="Full name is required",B=!1),A.password||(U.password="Password is required",B=!1),A.confirm||(U.confirm="Please confirm password",B=!1),A.password&&A.password.length<8&&(U.password="Password must be at least 8 characters",B=!1),A.password&&A.confirm&&A.password!==A.confirm&&(U.confirm="Passwords do not match",B=!1),!B){O(U);return}N(!0);try{await Me.post(`${Cx}/api/auth/complete-invite`,{token:l,password:A.password,full_name:A.fullName}),T(!0),setTimeout(()=>t("https://client.voicerix.ai/auth/login"),2500)}catch(X){b(X.response?.data?.error||"Failed to set password")}finally{N(!1)}},ae=()=>e.jsxs("div",{className:"step-indicator flex items-center justify-center my-5 md:my-[30px] px-2 md:px-5 animate-[fadeIn_0.5s_ease-out_0.3s_both]",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1.5 md:gap-2",children:[e.jsx("div",{className:`step-circle w-8 h-8 md:w-10 md:h-10 rounded-full flex items-center justify-center font-semibold text-sm md:text-base transition-all duration-300 ${i>=1?"!bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none text-white":"bg-gray-200 text-gray-400"}`,children:"1"}),e.jsx("div",{className:`step-label text-[10px] md:text-xs font-medium ${i>=1?"!text-[#d946ef] font-semibold":"text-gray-500"}`,children:"Details"})]}),e.jsx("div",{className:"step-line w-[40px] md:w-[60px] h-[2px] bg-gray-200 mx-2 md:mx-2.5 -mt-4 md:-mt-5"}),e.jsxs("div",{className:"flex flex-col items-center gap-1.5 md:gap-2",children:[e.jsx("div",{className:`step-circle w-8 h-8 md:w-10 md:h-10 rounded-full flex items-center justify-center font-semibold text-sm md:text-base transition-all duration-300 ${i>=2?"!bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none text-white":"bg-gray-200 text-gray-400"}`,children:"2"}),e.jsx("div",{className:`step-label text-[10px] md:text-xs font-medium ${i>=2?"!text-[#d946ef] font-semibold":"text-gray-500"}`,children:"Verify"})]}),e.jsx("div",{className:"step-line w-[40px] md:w-[60px] h-[2px] bg-gray-200 mx-2 md:mx-2.5 -mt-4 md:-mt-5"}),e.jsxs("div",{className:"flex flex-col items-center gap-1.5 md:gap-2",children:[e.jsx("div",{className:`step-circle w-8 h-8 md:w-10 md:h-10 rounded-full flex items-center justify-center font-semibold text-sm md:text-base transition-all duration-300 ${i>=3?"!bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none text-white":"bg-gray-200 text-gray-400"}`,children:"3"}),e.jsx("div",{className:`step-label text-[10px] md:text-xs font-medium ${i>=3?"!text-[#d946ef] font-semibold":"text-gray-500"}`,children:"Password"})]})]});return e.jsxs("div",{className:"signup-wrapper w-full min-h-[100dvh] md:min-
170h-full relative flex flex-col justify-center py-10 md:py-6 overflow-y-auto overflow-x-hidden",children:[e.jsx("div",{className:"back-btn fixed top-4 right-4 md:top-8 md:right-12 z-[1000]",children:e.jsxs(as,{to:"/",className:"inline-flex items-center gap-2 text-slate-400 hover:text-[#d946ef] transition-all duration-200 font-medium text-sm no-underline group",children:[e.jsx("div",{className:"w-8 h-8 md:w-9 md:h-9 rounded-full bg-slate-50 border border-slate-100 flex items-center justify-center transition-colors group-hover:bg-[#f0f9ff] group-hover:border-[#e0f2fe]",children:e.jsx(m0,{className:"transition-transform duration-200 group-hover:-translate-x-0.5",size:16})}),e.jsx("span",{className:"hidden md:inline",children:"Back"})]})}),e.jsx("div",{className:"w-full max-w-[420px] mx-auto px-5 flex flex-col justify-center my-auto",children:v?e.jsx(e.Fragment,{children:C?e.jsxs("div",{className:"text-center p-5 animate-[fadeIn_0.5s_ease-out_both]",children:[e.jsx("div",{className:"bg-green-50 text-green-600 p-5 rounded-full w-[60px] h-[60px] mx-auto mb-5 flex items-center justify-center",children:e.jsx(x0,{size:32})}),e.jsx("h3",{className:"text-gray-800 text-xl font-bold mb-2",children:"Account Ready!"}),e.jsx("p",{className:"text-gray-500",children:"Redirecting you to login..."})]}):e.jsxs("form",{onSubmit:Z,className:"animate-[fadeIn_0.5s_ease-out_both] pb-6",noValidate:!0,children:[e.jsx("h2",{className:"text-2xl md:text-[26px] font-bold text-gray-900 mb-2 text-center",children:"Join the Team"}),e.jsxs("p",{className:"text-gray-500 mb-6 md:mb-8 text-[14px] md:text-[15px] text-center",children:["Set a password for ",e.jsx("strong",{children:A.email})]}),x&&e.jsx("div",{className:"bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-sm font-medium text-center mb-5",children:x}),e.jsxs("div",{className:"mb-4 md:mb-5 relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx(ru,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${L.fullName?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"text",value:A.fullName,onChange:ee=>{S({...A,fullName:ee.target.value}),V("fullName")},placeholder:"Full Name",required:!0,className:`w-full h-[48px] md:h-[52px] pl-11 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 171 ${L.fullName?"border-red-500 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),L.fullName&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",L.fullName]})]}),e.jsxs("div",{className:"mb-4 md:mb-5 relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${L.password?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:R?"text":"password",placeholder:"Create Password",value:A.password,onChange:ee=>{S({...A,password:ee.target.value}),V("password")},required:!0,minLength:8,className:`w-full h-[48px] md:h-[52px] pl-11 pr-11 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 172 ${L.password?"border-red-500 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),e.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors",onClick:()=>k(!R),children:R?e.jsx(nu,{size:18}):e.jsx(lu,{size:18})})]}),L.password&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",L.password]})]}),e.jsxs("div",{className:"mb-5 relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${L.confirm?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:E?"text":"password",placeholder:"Confirm Password",value:A.confirm,onChange:ee=>{S({...A,confirm:ee.target.value}),V("confirm")},required:!0,minLength:8,className:`w-full h-[48px] md:h-[52px] pl-11 pr-11 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 173 ${L.confirm?"border-red-500 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),e.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-400 cursor-pointer hover:text-gray-600 transition-colors",onClick:()=>
173z(!E),children:E?e.jsx(nu,{size:18}):e.jsx(lu,{size:18})})]}),L.confirm&&e.jsxs("p",{className:"text-red-500 text-[12px] md:text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",L.confirm]})]}),e.jsxs("button",{type:"submit",className:"w-full h-[48px] md:h-[52px] !bg-gradient-to-r from-[#c026d3] to-[#9333ea] text-white rounded-[10px] font-semibold text-[15px] flex items-center justify-center gap-2 opacity-90 hover:opacity-100 active:transform active:scale-[0.98] transition-all shadow-sm disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer",disabled:j,"aria-label":"Complete account setup",children:[j?"Setting Password...":"Complete Setup"," ",e.jsx(dl,{})]})]})}):e.jsxs("div",{className:"signup-inner pb-8",children:[i===1&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"signup-title text-[22px] md:text-[26px] font-bold text-gray-900 mb-4 md:mb-8 text-center animate-[fadeIn_0.5s_ease-out_0.4s_both]",children:"Create Account"}),e.jsx("p",{className:"signup-subtitle text-gray-500 mb-4 md:mb-8 text-[14px] md:text-[15px] text-center animate-[fadeIn_0.5s_ease-out_0.5s_both]",children:"Get started by filling out the info below."})]}),ae(),i===1&&e.jsx(hO,{onNext:ee=>{h(ee),c(2)}}),i===2&&e.jsx(fO,{signupData:u,onNext:()=>c(3),onBack:()=>c(1)}),i===3&&e.jsx(u4,{signupData:u,onLoginSuccess:a}),i===1&&e.jsxs("div",{className:"animate-[fadeIn_0.5s_ease-out_1.2s_both]",children:[e.jsxs("div",{className:"or-divider flex items-center my-5 md:my-6",children:[e.jsx("div",{className:"flex-grow h-px bg-gray-200"}),e.jsx("span",{className:"px-3 text-[12px] md:text-[13px] text-gray-400 font-medium",children:"OR"}),e.jsx("div",{className:"flex-grow h-px bg-gray-200"})]}),e.jsx("div",{className:"google-btn-wrapper mb-6 md:mb-8",children:e.jsxs("button",{type:"button",className:"google-btn w-full h-[48px] md:h-[52px] !bg-white !text-gray-700 !border-[1.5px] !border-[#e2e8f0] rounded-[10px] font-semibold text-[14px] md:text-[15px] flex items-center justify-center gap-3 hover:!bg-gray-50 transition-all cursor-pointer shadow-sm",onClick:D,disabled:f,"aria-label":"Continue with Google",children:[e.jsxs("svg",{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[e.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),e.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),e.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),e.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})," ",f?"Signing up...":"Continue with Google"]})}),x&&e.jsx("div",{className:"bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-[13px] md:text-sm font-medium text-center mb-5 mt-3",children:x})]}),e.jsxs("p",{className:"login-link text-center text-gray-600 text-[14px] md:text-[15px] mt-4 animate-[fadeIn_0.5s_ease-out_1.3s_both]",children:["Already have an account?"," ",e.jsxs(as,{to:"https://client.voicerix.ai/auth/login",className:"ml-1 font-sans text-[14px] md:text-[15px] font-bold !text-[#d946ef] inline-flex items-center gap-1 transition-all duration-200 hover:!text-[#d946ef] group no-underline",children:["Login Instead",e.jsx(dl,{className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})]})})]})}const ef=kn;function xO(){const[a,t]=y.useState(1),[n,l]=y.useState(""),[i,c]=y.useState(""),[u,h]=y.useState(""),[f,p]=y.useState(""),[x,b]=y.useState({}),[v,w]=y.useState(!1),[j,N]=y.useState(null),[A,S]=y.useState(!1),C=gt(),T=Z=>{x[Z]&&b(ae=>({...ae,[Z]:null}))},L=async Z=>{if(Z.preventDefault(),!n){b({email:"Email is required"});return}N(null),w(!0);try{await Me.post(`${ef}/api/auth/forgot-password/send-otp`,{email:n}),w(!1),t(2)}catch(ae){w(!1),N(ae.response?.data?.error||"Failed to send OTP. Please try again.")}},O=async Z=>{if(Z.preventDefault(),!i){b({otp:"OTP is required"});return}if(i.length!==6){N("Please enter a valid 6-digit OTP");return}N(null),w(!0);try{await Me.post(`${ef}/api/auth/forgot-password/verify-otp`,{email:n,otp:i}),w(!1),t(3)}catch(ae){w(!1),N(ae.response?.data?.error||"Invalid OTP. Please try again.")}},R=async Z=>{Z.preventDefault();let ae={},ee=!0;if(u||(ae.newPassword="New Password is required",ee=!1),f||(ae.confirmPassword="Confirm Password is required",ee=!1),!ee){b(ae);return}if(N(null),u.length<8){N("Password must be at least 8 characters");return}if(u!==f){N("Passwords do not match");return}w(!0);try{await Me.post(`${ef}/api/auth/forgot-password/reset-password`,{email:n,password:u}),w(!1),t(4)}catch(U){w(!1),N(U.response?.data?.error||"Failed to reset password. Please try again.")}},k=async()=>
173{if(!A){S(!0),N(null);try{await Me.post(`${ef}/api/auth/forgot-password/send-otp`,{email:n})}catch{N("Failed to resend OTP")}finally{S(!1)}}},E="w-full max-w-[420px] mx-auto px-4 flex flex-col justify-center h-full pt-10 pb-10",z="text-[26px] font-bold text-gray-900 mb-2 text-center animate-[fadeIn_0.5s_ease-out_0.4s_both]",D="text-gray-500 mb-8 text-[15px] text-center animate-[fadeIn_0.5s_ease-out_0.5s_both]",q="w-full h-[52px] !bg-gradient-to-r from-[#c026d3] to-[#9333ea] border-none !text-white rounded-[10px] font-semibold text-[15px] flex items-center justify-center gap-2 active:transform active:scale-[0.98] transition-all shadow-sm disabled:opacity-70 disabled:cursor-not-allowed border-none cursor-pointer",V="bg-[#ffebee] text-[#c62828] border border-[#ef9a9a] rounded-lg px-4 py-3 text-sm font-medium text-center mb-5 animate-[fadeIn_0.5s_ease-out_0.7s_both]";return e.jsxs("div",{className:E,children:[e.jsx("div",{className:"absolute top-5 left-4 md:left-220 z-20",children:e.jsxs(as,{to:"https://client.voicerix.ai/auth/login",className:"inline-flex items-center gap-2 text-slate-400 hover:text-[#d946ef] transition-all duration-200 font-medium text-sm no-underline group",children:[e.jsx("div",{className:"w-9 h-9 rounded-full flex items-center justify-center transition-colors group-hover:bg-[#f0f9ff] group-hover:border-[#d946ef]",children:e.jsx(m0,{className:"transition-transform duration-200 group-hover:-translate-x-0.5",size:16})}),e.jsx("span",{className:"hidden md:inline",children:"Back "})]})}),a===1&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:z,children:"Forgot Your Password?"}),e.jsx("p",{className:D,children:"Enter your email and we'll send you a verification code."}),e.jsxs("form",{onSubmit:L,noValidate:!0,children:[e.jsxs("div",{className:"mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Yl,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${x.email?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"email",placeholder:"Email",required:!0,value:n,onChange:Z=>{l(Z.target.value),T("email")},className:`w-full h-[52px] pl-12 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 174 ${x.email?"border-red-500 text-gray-900 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] text-gray-800 focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),x.email&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",x.email]})]}),j&&e.jsx("div",{className:V,children:j}),e.jsx("div",{className:"animate-[fadeIn_0.5s_ease-out_0.8s_both] mt-4",children:e.jsx("button",{type:"submit",className:q,disabled:v,children:v?"Sending...":"Send Verification Code"})})]}),e.jsxs("p",{className:"text-center text-gray-600 mt-6 text-[15px] animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:["Remembered it?"," ",e.jsxs(as,{to:"https://client.voicerix.ai/auth/login",className:"inline-flex items-center gap-1.5 font-semibold text-[15px] !text-[#d946ef] transition-colors no-underline",children:[e.jsx(m0,{})," Back to Login"]})]})]}),a===2&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:z,children:"Enter Verification Code"}),e.jsxs("p",{className:D,children:["We've sent a 6-digit code to ",e.jsx("strong",{children:n})]}),e.jsxs("form",{onSubmit:O,noValidate:!0,children:[e.jsxs("div",{className:"mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsx("input",{type:"text",placeholder:"Enter 6-digit OTP",required:!0,maxLength:"6",value:i,onChange:Z=>{c(Z.target.value.replace(/\D/g,"")),T("otp")},className:`w-full h-[52px] pl-4 pr-4 bg-gray-50 border rounded-[10px] outline-none transition-all text-center text-2xl font-bold tracking-[8px] text-gray-800 175 ${x.otp?"border-red-500 focus:border-red-500":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`}),x.otp&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt
175-1.5 text-center flex items-center justify-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",x.otp]})]}),j&&e.jsx("div",{className:V,children:j}),e.jsx("div",{className:"animate-[fadeIn_0.5s_ease-out_0.8s_both] mt-4",children:e.jsx("button",{type:"submit",className:q,disabled:v,children:v?"Verifying...":"Verify Code"})})]}),e.jsxs("div",{className:"mt-8 pt-6 border-t border-[#f1f5f9] animate-[fadeIn_0.5s_ease-out_0.9s_both]",children:[e.jsxs("div",{className:"flex items-center justify-center gap-4 text-sm font-medium",children:[e.jsxs("button",{type:"button",onClick:k,disabled:A,className:`flex items-center gap-2 transition-all border-none bg-transparent cursor-pointer 176 ${A?"text-[#94a3b8]":"text-[#d946ef] hover:text-[#005fb3]"}`,"aria-label":"Resend verification code",children:[e.jsx(Ib,{className:`${A?"animate-spin":""}`}),A?"Sending code...":"Resend code"]}),e.jsx("span",{className:"w-1 h-1 bg-[#cbd5e1] rounded-full"}),e.jsxs("button",{type:"button",onClick:()=>t(1),className:"flex items-center gap-2 text-[#64748b] hover:text-[#0f172a] transition-all border-none bg-transparent cursor-pointer","aria-label":"Change email",children:[e.jsx(W5,{}),"Change email"]})]}),!A&&e.jsx("p",{className:"text-center text-[#94a3b8] text-[12px] mt-4 font-normal",children:"Didn't receive the code? Check your spam folder."})]})]}),a===3&&e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:z,children:"Create New Password"}),e.jsx("p",{className:D,children:"Choose a strong password to secure your account"}),e.jsxs("form",{onSubmit:R,noValidate:!0,children:[e.jsxs("div",{className:"mb-5 animate-[fadeIn_0.5s_ease-out_0.6s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${x.newPassword?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"password",placeholder:"New Password",required:!0,value:u,onChange:Z=>{h(Z.target.value),T("newPassword")},minLength:"8",className:`w-full h-[52px] pl-12 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 177 ${x.newPassword?"border-red-500 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),x.newPassword&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",x.newPassword]})]}),e.jsxs("div",{className:"mb-2 animate-[fadeIn_0.5s_ease-out_0.7s_both]",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Di,{className:`absolute left-4 top-1/2 -translate-y-1/2 text-lg transition-colors ${x.confirmPassword?"text-red-500":"text-gray-400"}`}),e.jsx("input",{type:"password",placeholder:"Confirm Password",required:!0,value:f,onChange:Z=>{p(Z.target.value),T("confirmPassword")},minLength:"8",className:`w-full h-[52px] pl-12 pr-4 bg-white border-[1.5px] rounded-[10px] outline-none transition-all text-[14px] font-medium placeholder:font-normal 178 ${x.confirmPassword?"border-red-500 focus:border-red-500 focus:ring-4 focus:ring-red-500/10":"border-[#e2e8f0] focus:border-[#c026d3] focus:ring-4 focus:ring-[#c026d3]/10"}`})]}),x.confirmPassword&&e.jsxs("p",{className:"text-red-500 text-[13px] font-medium mt-1.5 ml-1 flex items-center gap-1.5 animate-[fadeIn_0.2s_ease-out]",children:[e.jsx(Ts,{className:"text-sm"})," ",x.confirmPassword]})]}),e.jsx("div",{className:"mb-5 animate-[fadeIn_0.5s_ease-out_0.8s_both]",children:e.jsx("p",{className:"text-[13px] text-gray-500 mt-2",children:"Password must be at least 8 characters"})}),j&&e.jsx("div",{className:V,children:j}),e.jsx("div",{className:"animate-[fadeIn_0.5s_ease-out_1.0s_both] mt-4",children:e.jsx("button",{type:"submit",className:q,disabled:v,children:v?"Resetting...":"Reset Password"})})]})]}),a===4&&e.jsxs("div",{className:"animate-[fadeIn_0.5s_ease-out_0.4s_both] text-center",children:[e.jsx("div",{className:"w-[80px] h-[80px] rounded-full bg-gradient-to-br from-emerald-500 to-emerald-600 flex items-center justify-center mx-auto mb-[30px] shadow-[0_10px_30px_rgba(16,185,129,0.3)]",children:e.jsx("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsx("h2",{className:"text-[28px] font-bold text-gray-900 mb-3",children:"Password Reset Successful!"}),e.jsx("p",{className:"text-gray-500 text-[16px] leading-[1.6] mb-[30px] max-w-[400px] mx-auto",children:"Your password has been successfully reset. You can now log in with your new password."}),e.jsx("button",{onClick:()=>
178C("https://client.voicerix.ai/auth/login"),className:q,children:"Continue to Login"})]})]})}const Ex=[{quote:"The most intelligent and seamless AI for customer communication.",author:"Product Feature"},{quote:"Reduce response times and increase customer satisfaction by 90%.",author:"Platform Benefit"},{quote:"Scale your operations with an AI that learns and adapts.",author:"Core Technology"}];function gO(){const[a,t]=y.useState(0);return y.useEffect(()=>{const n=setInterval(()=>{t(l=>(l+1)%Ex.length)},5e3);return()=>clearInterval(n)},[]),e.jsxs("div",{className:"flex w-screen h-screen overflow-hidden bg-white font-sans",children:[e.jsxs("div",{className:"auth-layout-brand hidden md:flex md:w-[45%] h-full bg-gradient-to-b from-[#3C096C] to-[#10002B] flex-col items-center justify-center p-12 text-white relative overflow-hidden animate-[slideInFromLeft_1.2s_cubic-bezier(0.1,0.8,0.2,1)_forwards]",children:[e.jsx("div",{className:"absolute -top-[30%] -right-[20%] w-[500px] h-[500px] rounded-full bg-[radial-gradient(circle,rgba(255,255,255,0.1)_0%,transparent_70%)] pointer-events-none"}),e.jsx("div",{className:"absolute -bottom-[20%] -left-[15%] w-[400px] h-[400px] rounded-full bg-[radial-gradient(circle,rgba(255,255,255,0.1)_0%,transparent_70%)] pointer-events-none"}),e.jsxs("div",{className:"relative z-10 flex flex-col items-center text-center",children:[e.jsx("div",{className:"brand-logo-box w-[120px] h-[120px] rounded-[20px] flex items-center justify-center transition-transform duration-300 hover:scale-105",children:e.jsx("img",{src:"/voicerix-collaps.png",alt:"VoiceRix Logo",className:"w-20 h-20 md:w-24 md:h-24 object-contain"})}),e.jsx("h1",{className:"brand-title text-[36px] font-extrabold text-white mt-8 mb-3 tracking-tight",children:"Intelligent Voice AI"}),e.jsxs("div",{className:"brand-quote-section mt-14 pt-12 border-t border-white/20 max-w-[360px] relative z-10",children:[e.jsxs("p",{className:"text-[18px] font-medium text-white/95 italic leading-relaxed mb-5",children:['"',Ex[a].quote,'"']}),e.jsxs("p",{className:"text-[14px] font-semibold text-white/75 text-right",children:["â ",Ex[a].author]})]})]})]}),e.jsx("div",{className:"auth-layout-form w-full md:w-[55%] h-full flex items-center justify-center p-6 md:p-12 bg-gradient-to-b from-[#fafbfc] to-white overflow-y-auto animate-[fadeIn_1s_ease-in-out_forwards]",children:e.jsx("div",{className:"w-full max-w-[440px]",children:e.jsx(mu,{})})})]})}function bO({onMenuClick:a}){return e.jsxs(e.Fragment,{children:[e.jsxs("header",{className:"flex items-center justify-between px-4 sm:px-5 h-[70px] bg-white border-b border-[#e2e8f0] fixed w-full left-0 top-0 z-[90] shadow-sm font-sans lg:hidden pt-[max(env(safe-area-inset-top),0px)]",children:[e.jsx("div",{className:"flex items-center cursor-pointer transition-opacity active:opacity-60",onClick:()=>window.location.reload(),children:e.jsx("img",{src:"/VoiceRix.png",alt:"Logo",className:"w-[150px] sm:w-[140px] h-auto object-contain"})}),e.jsx("button",{onClick:a,className:"w-11 h-11 shrink-0 flex items-center justify-center rounded-xl text-violet-600 hover:bg-violet-50 active:bg-violet-100 transition-all duration-200 active:scale-95","aria-label":"Open Menu",children:e.jsx(Ub,{size:26,strokeWidth:2.5})})]}),e.jsx("div",{className:"h-[70px] lg:hidden w-full shrink-0 pt-[max(env(safe-area-inset-top),0px)]"})]})}const Bo=Me.create({baseURL:kn,headers:{"Content-Type":"application/json","ngrok-skip-browser-warning":"true"}});Bo.interceptors.request.use(a=>{const t=localStorage.getItem("authToken");return t&&Yd(t)?(console.log("ð« Session expired. Clearing storage."),localStorage.removeItem("authToken"),localStorage.removeItem("userId"),localStorage.removeItem("loginExpiry"),window.location.href="/auth/login",a):(t&&(a.headers.Authorization=`Bearer ${t}`),a)},a=>Promise.reject(a));Bo.interceptors.response.use(a=>a,a=>(a.response&&a.response.status===401&&(localStorage.removeItem("authToken"),localStorage.removeItem("userId"),localStorage.removeItem("loginExpiry"),window.location.href="/auth/login"),Promise.reject(a)));const Xb=(a,t,n="view")=>{if(!a)return!1;if(a.role==="owner"||a.role==="admin")return!0;try{return a.permissions?.[t]?.[n]===!0}catch{return!1}},DP=(a,t)=>{if(!t)return"--";if(Xb(a,"security","unmask_numbers"))return t;try{const l=t.slice(0,6),i=t.slice(-3);return`${l}*****${i}`}catch{return"*****"}},BP=(a,t)=>{if(!t)return"--";if(Xb(a,"security","unmask_numbers"))return t;try{const l=t.split("@");if(l.length<2)return"*****";
vendor: 6,311 bytes, line 178
178const i=l[0],c=l[1];return`${i.substring(0,2)}*****@${c}`}catch{return"*****@***.com"}},PP=(a,t,n)=>{if(!a||!a.permissions)return!1;try{const l=a.permissions[t];return!l||l.enabled===!1?!1:l.value===-1?!0:n<l.value}catch{return!1}},ul=Object.create(null);ul.open="0";ul.close="1";ul.ping="2";ul.pong="3";ul.message="4";ul.upgrade="5";ul.noop="6";const Gf=Object.create(null);Object.keys(ul).forEach(a=>{Gf[ul[a]]=a});const Ug={type:"error",data:"parser error"},h4=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",f4=typeof ArrayBuffer=="function",m4=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,Qb=({type:a,data:t},n,l)=>h4&&t instanceof Blob?n?l(t):LA(t,l):f4&&(t instanceof ArrayBuffer||m4(t))?n?l(t):LA(new Blob([t]),l):l(ul[a]+(t||"")),LA=(a,t)=>{const n=new FileReader;return n.onload=function(){const l=n.result.split(",")[1];t("b"+(l||""))},n.readAsDataURL(a)};function DA(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let Tx;function yO(a,t){if(h4&&a.data instanceof Blob)return a.data.arrayBuffer().then(DA).then(t);if(f4&&(a.data instanceof ArrayBuffer||m4(a.data)))return t(DA(a.data));Qb(a,!1,n=>{Tx||(Tx=new TextEncoder),t(Tx.encode(n))})}const BA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Td=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<BA.length;a++)Td[BA.charCodeAt(a)]=a;const vO=a=>{let t=a.length*.75,n=a.length,l,i=0,c,u,h,f;a[a.length-1]==="="&&(t--,a[a.length-2]==="="&&t--);const p=new ArrayBuffer(t),x=new Uint8Array(p);for(l=0;l<n;l+=4)c=Td[a.charCodeAt(l)],u=Td[a.charCodeAt(l+1)],h=Td[a.charCodeAt(l+2)],f=Td[a.charCodeAt(l+3)],x[i++]=c<<2|u>>4,x[i++]=(u&15)<<4|h>>2,x[i++]=(h&3)<<6|f&63;return p},jO=typeof ArrayBuffer=="function",Zb=(a,t)=>{if(typeof a!="string")return{type:"message",data:p4(a,t)};const n=a.charAt(0);return n==="b"?{type:"message",data:AO(a.substring(1),t)}:Gf[n]?a.length>1?{type:Gf[n],data:a.substring(1)}:{type:Gf[n]}:Ug},AO=(a,t)=>{if(jO){const n=vO(a);return p4(n,t)}else return{base64:!0,data:a}},p4=(a,t)=>t==="blob"?a instanceof Blob?a:new Blob([a]):a instanceof ArrayBuffer?a:a.buffer,x4="�",wO=(a,t)=>{const n=a.length,l=new Array(n);let i=0;a.forEach((c,u)=>{Qb(c,!1,h=>{l[u]=h,++i===n&&t(l.join(x4))})})},NO=(a,t)=>{const n=a.split(x4),l=[];for(let i=0;i<n.length;i++){const c=Zb(n[i],t);if(l.push(c),c.type==="error")break}return l};function _O(){return new TransformStream({transform(a,t){yO(a,n=>{const l=n.length;let i;if(l<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,l);else if(l<65536){i=new Uint8Array(3);const c=new DataView(i.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{i=new Uint8Array(9);const c=new DataView(i.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}a.data&&typeof a.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Rx;function tf(a){return a.reduce((t,n)=>t+n.length,0)}function sf(a,t){if(a[0].length===t)return a.shift();const n=new Uint8Array(t);let l=0;for(let i=0;i<t;i++)n[i]=a[0][l++],l===a[0].length&&(a.shift(),l=0);return a.length&&l<a[0].length&&(a[0]=a[0].slice(l)),n}function SO(a,t){Rx||(Rx=new TextDecoder);const n=[];let l=0,i=-1,c=!1;return new TransformStream({transform(u,h){for(n.push(u);;){if(l===0){if(tf(n)<1)break;const f=sf(n,1);c=(f[0]&128)===128,i=f[0]&127,i<126?l=3:i===126?l=1:l=2}else if(l===1){if(tf(n)<2)break;const f=sf(n,2);i=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),l=3}else if(l===2){if(tf(n)<8)break;const f=sf(n,8),p=new DataView(f.buffer,f.byteOffset,f.length),x=p.getUint32(0);if(x>Math.pow(2,21)-1){h.enqueue(Ug);break}i=x*Math.pow(2,32)+p.getUint32(4),l=3}else{if(tf(n)<i)break;const f=sf(n,i);h.enqueue(Zb(c?f:Rx.decode(f),t)),l=0}if(i===0||i>a){h.enqueue(Ug);break}}}})}const g4=4;function ms(a){if(a)return kO(a)}function kO(a){for(var t in ms.prototype)a[t]=ms.prototype[t];return a}ms.prototype.on=ms.prototype.addEventListener=function(a,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(t),this};ms.prototype.once=function(a,t){function n(){this.off(a,n),t.apply(this,arguments)}return n.fn=t,this.on(a,n),this};ms.prototype.off=ms.prototype.removeListener=ms.prototype.removeAllListeners=ms.prototype.removeEventListener=function(a,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+a];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var l,i=0;i<n.length;i++)if(l=n[i],l===t||l.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+a],this};ms.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+a],l=1;l<arguments.length;l++)t[l-1]=arguments[l];if(n){n=n.slice(0);for(var l=0,i=n.length;l<i;++l)n[l].apply(this,t)}return this};ms.prototype.emitReserved=ms.prototype.emit;ms.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};ms.prototype.hasListeners=function(a){return!!this.listeners(a).length};const D0=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),jn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),CO="arraybuffer";function b4(a,...t){return t.reduce((n,l)=>(a.hasOwnProperty(l)&&(n[l]=a[l]),n),{})}const EO=jn.setTimeout,TO=jn.clearTimeout;function B0(a,t){t.useNativeTimers?(a.setTimeoutFn=EO.bind(jn),a.clearTimeoutFn=TO.bind(jn)):(a.setTimeoutFn=jn.setTimeout.bind(jn),a.clearTimeoutFn=jn.clearTimeout.bind(jn))}const RO=1.33;function OO(a){return typeof a=="string"?MO(a):Math.ceil((a.byteLength||a.size)*RO)}function MO(a){let t=0,n=0;for(let l=0,i=a.length;l<i;l++)t=a.charCodeAt(l),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(l++,n+=4);return n}function y4(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function zO(a){let t="";for(let n in a)a.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(a[n]));return t}function LO(a){let t={},n=a.split("&");for(let l=0,i=n.length;l<i;l++){let c=n[l].split("=");
vendor: 6,261 bytes, line 178
178t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}class DO extends Error{constructor(t,n,l){super(t),this.description=n,this.context=l,this.type="TransportError"}}class Jb extends ms{constructor(t){super(),this.writable=!1,B0(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,l){return super.emitReserved("error",new DO(t,n,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Zb(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=zO(t);return n.length?"?"+n:""}}class BO extends Jb{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||n()})),this.writable||(l++,this.once("drain",function(){--l||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};NO(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,wO(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=y4()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let v4=!1;try{v4=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PO=v4;function UO(){}class IO extends BO{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let l=location.port;l||(l=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||l!==t.port}}doWrite(t,n){const l=this.request({method:"POST",data:t});l.on("success",n),l.on("error",(i,c)=>{this.onError("xhr post error",i,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,l)=>{this.onError("xhr poll error",n,l)}),this.pollXhr=t}}class ol extends ms{constructor(t,n,l){super(),this.createRequest=t,B0(this,l),this._opts=l,this._method=l.method||"GET",this._uri=n,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var t;const n=b4(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(n);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&l.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var i;l.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=ol.requestsCount++,ol.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=UO,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ol.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ol.requestsCount=0;ol.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",PA);else if(typeof addEventListener=="function"){const a="onpagehide"in jn?"pagehide":"unload";addEventListener(a,PA,!1)}}function PA(){for(let a in ol.requests)ol.requests.hasOwnProperty(a)&&ol.requests[a].abort()}const VO=(function(){const a=j4({xdomain:!1});return a&&a.responseType!==null})();class FO extends IO{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=VO&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ol(j4,this.uri(),t)}}function j4(a){const t=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||PO))return new XMLHttpRequest}catch{}if(!t)try{return new jn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const A4=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HO extends Jb{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,l=A4?{}:b4(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,l)}catch(i){return this.emitReserved("error",i)}
vendor: 15,994 bytes, line 178
178this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const l=t[n],i=n===t.length-1;Qb(l,this.supportsBinary,c=>{try{this.doWrite(l,c)}catch{}i&&D0(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=y4()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Ox=jn.WebSocket||jn.MozWebSocket;class qO extends HO{createSocket(t,n,l){return A4?new Ox(t,n,l):n?new Ox(t,n):new Ox(t)}doWrite(t,n){this.ws.send(n)}}class YO extends Jb{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=SO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=t.readable.pipeThrough(n).getReader(),i=_O();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const c=()=>{l.read().then(({done:h,value:f})=>{h||(this.onPacket(f),c())}).catch(h=>{})};c();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const l=t[n],i=n===t.length-1;this._writer.write(l).then(()=>{i&&D0(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const GO={websocket:qO,webtransport:YO,polling:FO},WO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,KO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ig(a){if(a.length>8e3)throw"URI too long";const t=a,n=a.indexOf("["),l=a.indexOf("]");n!=-1&&l!=-1&&(a=a.substring(0,n)+a.substring(n,l).replace(/:/g,";")+a.substring(l,a.length));let i=WO.exec(a||""),c={},u=14;for(;u--;)c[KO[u]]=i[u]||"";return n!=-1&&l!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=XO(c,c.path),c.queryKey=QO(c,c.query),c}function XO(a,t){const n=/\/{2,9}/g,l=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&l.splice(0,1),t.slice(-1)=="/"&&l.splice(l.length-1,1),l}function QO(a,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,i,c){i&&(n[i]=c)}),n}const Vg=typeof addEventListener=="function"&&typeof removeEventListener=="function",Wf=[];Vg&&addEventListener("offline",()=>{Wf.forEach(a=>a())},!1);class Lr extends ms{constructor(t,n){if(super(),this.binaryType=CO,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const l=Ig(t);n.hostname=l.host,n.secure=l.protocol==="https"||l.protocol==="wss",n.port=l.port,l.query&&(n.query=l.query)}else n.host&&(n.hostname=Ig(n.host).host);B0(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(l=>{const i=l.prototype.name;this.transports.push(i),this._transportsByName[i]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=LO(this.opts.query)),Vg&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Wf.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=g4,n.transport=t,this.id&&(n.sid=this.id);const l=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Lr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Lr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let l=0;l<this.writeBuffer.length;l++){const i=this.writeBuffer[l].data;if(i&&(n+=OO(i)),l>0&&n>this._maxPayload)return this.writeBuffer.slice(0,l);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,D0(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,l){return this._sendPacket("message",t,n,l),this}send(t,n,l){return this._sendPacket("message",t,n,l),this}_sendPacket(t,n,l,i){if(typeof n=="function"&&(i=n,n=void 0),typeof l=="function"&&(i=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:t,data:n,options:l};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},l=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():t()}):this.upgrading?l():t()),this}_onError(t){if(Lr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Vg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=Wf.indexOf(this._offlineEventListener);l!==-1&&Wf.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Lr.protocol=g4;class ZO extends Lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),l=!1;Lr.priorWebsocketSuccess=!1;const i=()=>{l||(n.send([{type:"ping",data:"probe"}]),n.once("packet",b=>{if(!l)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Lr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(x(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function c(){l||(l=!0,x(),n.close(),n=null)}const u=b=>{const v=new Error("probe error: "+b);v.transport=n.name,c(),this.emitReserved("upgradeError",v)};function h(){u("transport closed")}function f(){u("socket closed")}function p(b){n&&b.name!==n.name&&c()}const x=()=>{n.removeListener("open",i),n.removeListener("error",u),n.removeListener("close",h),this.off("close",f),this.off("upgrading",p)};n.once("open",i),n.once("error",u),n.once("close",h),this.once("close",f),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{l||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let l=0;l<t.length;l++)~this.transports.indexOf(t[l])&&n.push(t[l]);return n}}let JO=class extends ZO{constructor(t,n={}){const l=typeof t=="object"?t:n;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(i=>GO[i]).filter(i=>!!i)),super(t,l)}};function $O(a,t="",n){let l=a;n=n||typeof location<"u"&&location,a==null&&(a=n.protocol+"//"+n.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=n.protocol+a:a=n.host+a),/^(https?|wss?):\/\//.test(a)||(typeof n<"u"?a=n.protocol+"//"+a:a="https://"+a),l=Ig(a)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+t,l.href=l.protocol+"://"+c+(n&&n.port===l.port?"":":"+l.port),l}const e7=typeof ArrayBuffer=="function",t7=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,w4=Object.prototype.toString,s7=typeof Blob=="function"||typeof Blob<"u"&&w4.call(Blob)==="[object BlobConstructor]",a7=typeof File=="function"||typeof File<"u"&&w4.call(File)==="[object FileConstructor]";function $b(a){return e7&&(a instanceof ArrayBuffer||t7(a))||s7&&a instanceof Blob||a7&&a instanceof File}function Kf(a,t){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let n=0,l=a.length;n<l;n++)if(Kf(a[n]))return!0;return!1}if($b(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return Kf(a.toJSON(),!0);for(const n in a)if(Object.prototype.hasOwnProperty.call(a,n)&&Kf(a[n]))return!0;return!1}function n7(a){const t=[],n=a.data,l=a;return l.data=Fg(n,t),l.attachments=t.length,{packet:l,buffers:t}}function Fg(a,t){if(!a)return a;if($b(a)){const n={_placeholder:!0,num:t.length};return t.push(a),n}else if(Array.isArray(a)){const n=new Array(a.length);for(let l=0;l<a.length;l++)n[l]=Fg(a[l],t);return n}else if(typeof a=="object"&&!(a instanceof Date)){const n={};for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&(n[l]=Fg(a[l],t));return n}return a}function l7(a,t){return a.data=Hg(a.data,t),delete a.attachments,a}function Hg(a,t){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<t.length)return t[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let n=0;n<a.length;n++)a[n]=Hg(a[n],t);else if(typeof a=="object")for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&(a[n]=Hg(a[n],t));return a}const N4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],r7=5;var Ie;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(Ie||(Ie={}));class i7{constructor(t){this.replacer=t}encode(t){return(t.type===Ie.EVENT||t.type===Ie.ACK)&&Kf(t)?this.encodeAsBinary({type:t.type===Ie.EVENT?Ie.BINARY_EVENT:Ie.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ie.BINARY_EVENT||t.type===Ie.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=n7(t),l=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(l),i}}class e1 extends ms{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const l=n.type===Ie.BINARY_EVENT;l||n.type===Ie.BINARY_ACK?(n.type=l?Ie.EVENT:Ie.ACK,this.reconstructor=new o7(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if($b(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const l={type:Number(t.charAt(0))};if(Ie[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ie.BINARY_EVENT||l.type===Ie.BINARY_ACK){const c=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(c,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");l.attachments=Number(u)}if(t.charAt(n+1)==="/"){const c=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););l.nsp=t.substring(c,n)}else l.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const c=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}l.id=Number(t.substring(c,n+1))}
vendor: 5,093 bytes, line 178
178if(t.charAt(++n)){const c=this.tryParse(t.substr(n));if(e1.isPayloadValid(l.type,c))l.data=c;else throw new Error("invalid payload")}return l}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Ie.CONNECT:return y0(n);case Ie.DISCONNECT:return n===void 0;case Ie.CONNECT_ERROR:return typeof n=="string"||y0(n);case Ie.EVENT:case Ie.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&N4.indexOf(n[0])===-1);case Ie.ACK:case Ie.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class o7{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=l7(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function c7(a){return typeof a=="string"}const d7=Number.isInteger||function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a};function u7(a){return a===void 0||d7(a)}function y0(a){return Object.prototype.toString.call(a)==="[object Object]"}function h7(a,t){switch(a){case Ie.CONNECT:return t===void 0||y0(t);case Ie.DISCONNECT:return t===void 0;case Ie.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&N4.indexOf(t[0])===-1);case Ie.ACK:return Array.isArray(t);case Ie.CONNECT_ERROR:return typeof t=="string"||y0(t);default:return!1}}function f7(a){return c7(a.nsp)&&u7(a.id)&&h7(a.type,a.data)}const m7=Object.freeze(Object.defineProperty({__proto__:null,Decoder:e1,Encoder:i7,get PacketType(){return Ie},isPacketValid:f7,protocol:r7},Symbol.toStringTag,{value:"Module"}));function Un(a,t,n){return a.on(t,n),function(){a.off(t,n)}}const p7=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _4 extends ms{constructor(t,n,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Un(t,"open",this.onopen.bind(this)),Un(t,"packet",this.onpacket.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var l,i,c;if(p7.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Ie.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const x=this.ids++,b=n.pop();this._registerAckCallback(x,b),u.id=x}const h=(i=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||i===void 0?void 0:i.writable,f=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var l;const i=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);n.call(this,new Error("operation has timed out"))},i),u=(...h)=>{this.io.clearTimeoutFn(c),n.apply(this,h)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((l,i)=>{const c=(u,h)=>u?i(u):l(h);c.withError=!0,n.push(c),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...c)=>(this._queue[0],i!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 6,880 bytes, line 178
178_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(l=>String(l.id)===t)){const l=this.acks[t];delete this.acks[t],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ie.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(t);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(t);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const l=new Error(t.data.message);l.data=t.data.data,this.emitReserved("connect_error",l);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const l of n)l.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let l=!1;return function(...i){l||(l=!0,n.packet({type:Ie.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let l=0;l<n.length;l++)if(t===n[l])return n.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let l=0;l<n.length;l++)if(t===n[l])return n.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const l of n)l.apply(this,t.data)}}}function gc(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}gc.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*a);a=(Math.floor(t*10)&1)==0?a-n:a+n}return Math.min(a,this.max)|0};gc.prototype.reset=function(){this.attempts=0};gc.prototype.setMin=function(a){this.ms=a};gc.prototype.setMax=function(a){this.max=a};gc.prototype.setJitter=function(a){this.jitter=a};class qg extends ms{constructor(t,n){var l;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,B0(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((l=n.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new gc({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||m7;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new JO(this.uri,this.opts);const n=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const i=Un(n,"open",function(){l.onopen(),t&&t()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},u=Un(n,"error",c);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{i(),c(new Error("timeout")),n.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Un(t,"ping",this.onping.bind(this)),Un(t,"data",this.ondata.bind(this)),Un(t,"error",this.onerror.bind(this)),Un(t,"close",this.onclose.bind(this)),Un(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){D0(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let l=this.nsps[t];return l?this._autoConnect&&!l.active&&l.connect():(l=new _4(this,t,n),this.nsps[t]=l),l}
178_destroy(t){const n=Object.keys(this.nsps);for(const l of n)if(this.nsps[l].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let l=0;l<n.length;l++)this.engine.write(n[l],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const xd={};function Xf(a,t){typeof a=="object"&&(t=a,a=void 0),t=t||{};const n=$O(a,t.path||"/socket.io"),l=n.source,i=n.id,c=n.path,u=xd[i]&&c in xd[i].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let f;return h?f=new qg(l,t):(xd[i]||(xd[i]=new qg(l,t)),f=xd[i]),n.query&&!t.query&&(t.query=n.queryKey),f.socket(n.path,t)}Object.assign(Xf,{Manager:qg,Socket:_4,io:Xf,connect:Xf});const gd=kn;function x7({onCollapse:a,isMobileOpen:t,onMobileNavClick:n}){const[l,i]=y.useState(!1),[c,u]=y.useState(!1),[h,f]=y.useState(null),[p,x]=y.useState(null),[b,v]=y.useState(!1),[w,j]=y.useState({itemId:null,rect:null}),[N,A]=y.useState({bulkCalls:0,s:0}),S=y.useRef(null),C=y.useRef(null),T=Os();gt();const L={dashboard:null,agents:"agents",create_agent:"agents",leads:"leads","outbound call":"dialer",bulk_calls:"campaigns",calendar:null,"call history":"history","call outcome":"analytics",closer:"closer",integrations:"integrations"},O=[{title:null,items:[{id:"dashboard",label:"Dashboard",icon:e.jsx(Q5,{}),path:"/app/dashboard"}]},{title:"Workspace",items:[{id:"agents",label:"AI Agents",icon:e.jsx(Bb,{}),path:"/app/create-agent",tourClass:"tour-step-agents"}]},{title:"Operations",items:[{id:"bulk_calls",label:"Campaigns",icon:e.jsx($5,{}),path:"/app/bulk-calls",tourClass:"tour-step-campaigns"},{id:"calendar",label:"Events",icon:e.jsx(p0,{}),path:"/app/calendar"}]},{title:"Analytics",items:[{id:"call outcome",label:"Call Outcome",icon:e.jsx(K5,{}),path:"/app/call-outcome"},{id:"call history",label:"Call History",icon:e.jsx(Ed,{}),path:"/app/call-history"}]},{title:"Configuration",items:[{id:"integrations",label:"Integrations",icon:e.jsx(oT,{}),path:"/app/integrations",tourClass:"tour-step-integrations"}]}],R=je=>T.pathname===je,k=je=>je==="bulk_calls"?N.bulkCalls:je==="calendar"?N.events:0,E=async()=>{try{const je=await Bo.get(`${gd}/api/sidebar-stats`);je.data.success&&A({bulkCalls:je.data.stats.bulkCalls||0,events:je.data.stats.events||0})}catch{A({bulkCalls:0,events:0})}};y.useEffect(()=>{const je=De=>{b&&S.current&&!S.current.contains(De.target)&&C.current&&!C.current.contains(De.target)&&v(!1)};return document.addEventListener("mousedown",je),document.addEventListener("touchstart",je),()=>{document.removeEventListener("mousedown",je),document.removeEventListener("touchstart",je)}},[b]),y.useEffect(()=>{const je=async()=>{try{const _e=localStorage.getItem("authToken");if(!_e)return;const Oe=await Bo.get(`${gd}/api/user/profile`,{headers:{Authorization:`Bearer ${_e}`}});Oe.data.success&&(f({name:Oe.data.user.name,initials:Oe.data.user.initials,plan:Oe.data.user.plan,role:Oe.data.user.role,permissions:Oe.data.user.permissions,wallet_balance:Oe.data.user.wallet_balance||0,monthly_limit:Oe.data.user.monthly_limit||0,token_limit:Oe.data.user.role==="admin"||Oe.data.user.role==="owner"?Oe.data.user.monthly_limit??5e3:Oe.data.user.wallet_balance||Oe.data.user.monthly_limit||5e3,tokens_consumed:Oe.data.user.tokens_consumed||0}),De(_e))}catch{f({name:"User",initials:"U",plan:"Free"})}},De=async _e=>{try{const Oe=await Bo.get(`${gd}/api/payment/subscription`,{headers:{Authorization:`Bearer ${_e}`}});Oe.data.success&&Oe.data.plan&&f(Zt=>({...Zt,plan:Oe.data.plan.name,expiryDate:Oe.data.plan.end_date}))}catch{}};je(),E();const Yt=Xf(gd,{reconnectionAttempts:3,reconnectionDelay:3e3,timeout:1e4,transports:["websocket","polling"]});Yt.on("wallet_update",_e=>{const Oe=localStorage.getItem("userId");_e.user_id===Oe&&f(Zt=>({...Zt,wallet_balance:_e.new_balance}))});const Je=()=>E();window.addEventListener("refreshSidebarStats",Je);
178const ft=()=>{window.innerWidth<1024&&(u(!0),i(!1))},Ce=()=>{u(!1)};return window.addEventListener("tour-open-sidebar",ft),window.addEventListener("tour-close-sidebar",Ce),Bo.get(`${gd}/api/system-info`).then(_e=>{_e.data.success&&x(_e.data.agent)}).catch(_e=>{x({name:"User Name",status:"Online",initials:"U"})}),()=>{Yt.disconnect(),window.removeEventListener("refreshSidebarStats",Je),window.removeEventListener("tour-open-sidebar",ft),window.removeEventListener("tour-close-sidebar",Ce)}},[]);const z=()=>{const je=!l;i(je),a&&a(je)},D=()=>{localStorage.removeItem("authToken"),localStorage.removeItem("userId"),localStorage.removeItem("loginExpiry"),window.location.href="https://client.voicerix.ai/auth/login"},q=je=>{if(!je)return"bg-violet-50 text-violet-600 border-violet-100";const De=je.toLowerCase();return De.includes("professional")?"bg-amber-50 text-amber-700 border-amber-200":De.includes("enterprise")?"bg-purple-50 text-purple-700 border-purple-200":"bg-violet-50 text-violet-600 border-violet-100"},Z=(je=>{if(!je)return null;const De=new Date(je)-new Date;return Math.ceil(De/(1e3*60*60*24))})(h?.expiryDate),ae=h?.plan?.toLowerCase().includes("free"),ee=!ae&&Z!==null&&Z<=3,U=!ae&&Z!==null&&Z<0,B=!ae&&Z===0,X=h?.role==="admin"||h?.role==="owner"?h?.monthly_limit||1:h?.token_limit||h?.monthly_limit||1,re=h?.wallet_balance||0,P=X>0?Math.min(100,Math.max(0,re/X*100)):re>0?100:0,Y="#7c3aed",ue=2*Math.PI*8,me=ue-P/100*ue,ke=(je,De)=>{if(window.innerWidth>=768){const Yt=je.currentTarget.getBoundingClientRect();j({itemId:De,rect:Yt})}},Ve=()=>{j({itemId:null,rect:null})},tt=()=>{for(const je of O){const De=je.items.find(Yt=>Yt.id===w.itemId);if(De)return De.label}return""};return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 179 /* CUSTOM SCROLLBAR & ANIMATIONS */ 180 .sidebar-scroll::-webkit-scrollbar { width: 4px; } 181 .sidebar-scroll::-webkit-scrollbar-track { background: transparent; } 182 .sidebar-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; } 183 .sidebar-scroll::-webkit-scrollbar-thumb:hover { background: #cbd5e1; } 184 185 @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } 186 /* Using margin instead of transform here so it doesnt overwrite the inline transform! */ 187 @keyframes tooltipFadeIn { from { opacity: 0; margin-left: -5px; } to { opacity: 1; margin-left: 0; } } 188 189 .animate-slideUp { animation: slideUp 0.2s ease-out forwards; } 190 .tooltip-anim { animation: tooltipFadeIn 0.2s ease forwards; } 191 `}),t&&e.jsx("div",{className:"fixed inset-0 bg-slate-900/40 backdrop-blur-[2px] z-[9998] lg:hidden",onClick:n}),e.jsxs("div",{id:"app-sidebar",className:`fixed top-0 left-0 h-[100dvh] bg-gradient-to-b from-white to-[#fafbfc] border-r border-[#e2e8f0] flex flex-col justify-between z-[9999] shadow-[0_0_24px_rgba(0,0,0,0.04)] font-['Inter',sans-serif] transition-all duration-300 ease-[cubic-bezier(0.4,0,0.2,1)] 192 ${l?"w-[100px]":"w-[280px]"} 193 ${t||c?"translate-x-0 shadow-2xl":"max-lg:-translate-x-full"}`,children:[e.jsx("button",{onClick:z,className:`absolute ${l?"top-[90px]":"top-[100px]"} -right-[5px] w-7 h-7 bg-white border border-violet-600 rounded-lg text-violet-600 flex items-center justify-center cursor-pointer z-[101] shadow-violet-600/15 transition-all duration-300 hover:bg-gradient-to-br hover:from-violet-600 hover:to-violet-400 hover:text-white hover:scale-110 active:scale-95 max-lg:hidden`,"aria-label":l?"Expand sidebar":"Collapse sidebar",children:l?e.jsx(G5,{strokeWidth:3,className:"w-3.5 h-3.5"}):e.jsx(Q8,{strokeWidth:3,className:"w-3.5 h-3.5"})}),e.jsxs("div",{className:`flex justify-center items-center relative shrink-0 transition-all duration-300 ${l?"py-7":"p-9.5"}`,children:[e.jsx("img",{src:l?"/voicerix-collaps.png":"/VoiceRix.png",alt:"Logo",className:`object-contain cursor-pointer transition-all duration-300 hover:scale-105 ${l?"w-[50px]":"w-[190px]"}`,onClick:()=>window.location.reload()}),e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[85%] h-[3px] bg-gradient-to-r from-violet-600 to-transparent roun
193ded-full opacity-80 transition-all duration-300"})]}),e.jsx("nav",{className:"flex-1 py-3 md:py-4 overflow-y-auto overflow-x-hidden sidebar-scroll",onScroll:()=>j({itemId:null,rect:null}),children:e.jsx("div",{className:"flex flex-col gap-3 px-0 m-0",children:O.map((je,De)=>{const Yt=je.items.filter(Je=>{const ft=L[Je.id];return!(ft&&h&&!Xb(h,ft,"view")||Je.roles&&h&&!Je.roles.includes(h.role))});return Yt.length===0?null:e.jsxs("div",{className:"flex flex-col gap-1.5",children:[je.title&&!l&&e.jsx("div",{className:"pl-5 pr-4 text-[10px] font-semibold text-[#94a3b8] uppercase tracking-wider mb-1 mt-1",children:je.title}),je.title&&l&&De>0&&e.jsx("div",{className:"mx-5 my-2 border-t border-[#e2e8f0] opacity-60"}),e.jsx("ul",{className:"flex flex-col gap-1.5 px-0 m-0 list-none",children:Yt.map(Je=>{const ft=k(Je.id),Ce=R(Je.path),_e=Je.id==="billing"&ⅇreturn e.jsxs("li",{onMouseEnter:Oe=>ke(Oe,Je.id),onMouseLeave:Ve,className:`relative mx-4 rounded-xl transition-all duration-300 cursor-pointer ${l?"mx-3":""} 194 ${_e&&!Ce?"bg-red-50/60 border border-red-200/60 hover:bg-red-50 hover:border-red-200 hover:translate-x-[2px]":""} 195 ${_e&&Ce?"bg-red-50 border border-red-300 shadow-[0_2px_8px_rgba(239,68,68,0.12)]":""} 196 ${!_e&&Ce?"bg-gradient-to-br from-violet-50 to-white border border-violet-200 shadow-violet-600/10":""} 197 ${!_e&&!Ce?"hover:bg-gradient-to-br hover:from-slate-50 hover:to-violet-50 hover:translate-x-[2px] border border-transparent group":""} 198 ${Je.tourClass||""}`,children:[e.jsx("div",{className:`absolute left-0 top-1/2 -translate-y-1/2 h-[24px] w-[3px] rounded-r transition-all duration-300 199 ${_e?"bg-gradient-to-b from-red-400 to-red-500 opacity-100":Ce?"bg-gradient-to-b from-violet-600 to-violet-400 opacity-100":"opacity-0"}`}),e.jsx(as,{to:Je.path,onClick:n,className:`flex items-center w-full h-full no-underline relative transition-all duration-200 ${l?"justify-center p-[10px_0]":"p-[8px_14px]"}`,children:e.jsxs("div",{className:`flex items-center transition-all duration-200 ${l?"justify-center":"w-full gap-3.5"}`,children:[e.jsx("span",{className:`text-lg flex items-center shrink-0 transition-all duration-300 200 ${_e?"text-red-500 group-hover:text-red-600 group-hover:scale-110":Ce?"text-violet-600":"text-[#64748b] group-hover:text-violet-600 group-hover:scale-110"}`,children:Je.icon}),!l&&e.jsxs("span",{className:`text-[13px] font-medium transition-all duration-200 tracking-wide flex items-center gap-1 w-full 201 ${_e?"text-red-700 font-semibold group-hover:text-red-800":Ce?"text-violet-600 font-semibold":"text-[#475569] group-hover:text-violet-600 group-hover:font-semibold"}`,children:[Je.label,_e&&e.jsx("div",{className:"ml-auto flex items-center justify-center text-red-500",children:e.jsx(Ed,{className:"w-4 h-4 animate-pulse"})})]}),ft>0&&!_e&&e.jsx("span",{className:`bg-violet-500 text-white text-[11px] font-bold px-2 py-0.5 rounded-xl min-w-[20px] text-center transition-all duration-300 ${l?"absolute top-1.5 right-2.5 w-4 h-4 p-0 flex items-center justify-center text-[9px] border border-white":"ml-auto"}`,children:ft>99?"99+":ft})]})}),_e&&e.jsx("div",{className:"block md:hidden relative w-[95%] mx-auto mt-2 mb-2 bg-white border border-red-200 rounded-xl p-3 shadow-sm z-[10]",children:e.jsxs("div",{className:"flex flex-col gap-1.5 relative z-10",children:[e.jsxs("span",{className:"text-[13px] font-bold text-red-600 flex items-center gap-1.5 border-b border-red-100 pb-1.5",children:[e.jsx(Ed,{className:"w-4 h-4"})," ",U?"Plan Expired":"Action Required"]}),e.jsx("span",{className:"text-[12px] font-medium text-slate-600 leading-relaxed whitespace-normal pt-1",children:U?e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan has ",e.jsx("strong",{className:"text-red-600",children:"expired"}),"."]}):B?e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan expires ",e.jsx("strong",{className:"text-red-600",children:"today"}),"."]}):e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan will expire in ",e.jsxs("strong",{className:"text-red-600",children:[Z," ",Z===1?"day":"days"]}),"."]})})]})})]},Je.id)})})]},`section-${De}`)})})}),e.jsxs("div",{className:`border-t border-[#f1f5f9] bg-white relative mt-auto shrink-0 ${l?"p-[16px_12px_20px_12px]":"p-4 pb-[max(1rem,env(safe-area-inset-bottom))]"}`,children:[b&&e.jsxs("div",{ref:S,className:`absolute bottom-[calc(100%+12px)] left-3 right-3 bg-white rounded-xl shadow-[0_10px_25px_rgba(0,0,0,0.15)] border border-[#e2e8f0] p-2 z-[1000] animate-slideUp origin-bottom ${l?"w-[240px] left-2":""}`,children:[e.jsxs("div",{className:"mb-2 bg-white rounded-lg border border-[#e2e8f0] p-3.5 shadow-sm",children:[e.jsxs("div",{className:"flex justify-between items-center mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"relative w-6 h-6 flex items-center justify-center",children:e.jsxs("svg",{className:"w-full h-full transform -rotate-90",children:[e.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:"#f5f3ff",strokeWidth:"2.5",fill:"transparent"}),e.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:Y,strokeWidth:"2.5",fill:"transparent",strokeDasharray:ue,strokeDashoffset:me,strokeLinecap:"round",className:"transition-all duration-1000 ease-out"})]})}),e.jsx("span",{className:"text-[13px] font-semibold text-[#0f172a]",children:"Balance"})]}),(h?.role==="admin"||h?.role==="owner")&&e.jsx(as,{to:"/app/billing",children:e.jsx("button",{className:"text-[11px] font-bold bg-vi
201olet-600 text-white px-3 py-1 rounded-md transition-colors shadow-sm","aria-label":"Upgrade plan",children:"Upgrade"})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center text-[12px]",children:[e.jsx("span",{className:"text-[#64748b] font-medium",children:"Total Limit"}),e.jsx("span",{className:"text-[#0f172a] font-bold",children:h?.role==="admin"||h?.role==="owner"?`${(h?.monthly_limit??0).toLocaleString()}`:`${(h?.token_limit??0).toLocaleString()}`})]}),e.jsxs("div",{className:"flex justify-between items-center text-[12px]",children:[e.jsx("span",{className:"text-[#64748b] font-medium",children:"Remaining"}),e.jsx("span",{className:"text-[#0f172a] font-bold",children:`${(h?.wallet_balance??0).toLocaleString()}`})]})]})]}),(h?.role==="admin"||h?.role==="owner")&&e.jsxs(as,{to:"/app/onboarding",className:"flex items-center gap-2.5 p-2.5 text-sm font-medium text-[#334155] rounded-lg hover:bg-violet-50 hover:text-violet-600 active:bg-violet-100 transition-all",onClick:()=>{v(!1),n&&n()},children:[e.jsx(ru,{size:16})," ",e.jsx("span",{children:"Company Profile"})]}),(h?.role==="admin"||h?.role==="owner")&&e.jsxs(as,{to:"/app/settings",className:"flex items-center gap-2.5 p-2.5 text-sm font-medium text-[#334155] rounded-lg hover:bg-violet-50 hover:text-violet-600 active:bg-violet-100 transition-all",onClick:()=>{v(!1),n&&n()},children:[e.jsx(dT,{size:16})," ",e.jsx("span",{children:"Settings"})]}),e.jsx("div",{className:"h-px bg-[#e2e8f0] my-1.5 opacity-60"}),e.jsxs("button",{onClick:()=>{v(!1),D()},className:"w-full flex items-center gap-2.5 p-2.5 text-sm font-medium text-[#ef4444] rounded-lg hover:bg-[#fef2f2] active:bg-[#fee2e2] transition-all text-left","aria-label":"Sign out",children:[e.jsx(lT,{size:16})," ",e.jsx("span",{children:"Sign Out"})]})]}),e.jsxs("div",{className:`tour-step-profile flex items-center cursor-pointer transition-all duration-300 ${l?"justify-center w-[68px] h-[68px] mx-auto mb-4 bg-gradient-to-br from-[#f8fafc] to-white border border-[#e2e8f0] rounded-xl hover:bg-gradient-to-br hover:from-violet-50 hover:to-white hover:border-violet-200 hover:shadow-violet-600/10":"gap-3 p-2.5 bg-gradient-to-br from-[#f8fafc] to-white border border-[#e2e8f0] rounded-xl hover:bg-gradient-to-br hover:from-violet-50 hover:to-white hover:border-violet-200 hover:shadow-violet-600/10 mb-4"} ${b?"bg-violet-50 border-violet-200":""}`,onClick:()=>v(!b),ref:C,children:[e.jsx("div",{className:"rounded-full flex items-center justify-center font-bold text-white shadow-sm shrink-0 bg-gradient-to-br from-violet-600 to-violet-400 transition-transform duration-300 hover:scale-105 w-10 h-10 text-[15px]",children:h?.initials||"U"}),!l&&e.jsxs("div",{className:"flex-1 flex flex-col gap-0.5 overflow-hidden",children:[e.jsx("span",{className:"text-[14px] font-semibold text-[#0f172a] truncate",children:h?.name||"User"}),e.jsx("span",{className:`text-[11px] font-bold px-2 py-0.5 rounded-full border w-fit ${q(h?.plan)}`,children:h?.plan||""})]})]})]})]}),w.itemId&&w.rect&&e.jsx("div",{className:"fixed z-[100000] pointer-events-none hidden md:block",style:{to
201p:w.rect.top+w.rect.height/2,left:w.rect.right+12,transform:"translateY(-50%)"},children:w.itemId==="billing"&&ee?e.jsxs("div",{className:"w-[250px] bg-white border border-red-200 rounded-xl p-3.5 shadow-[0_10px_30px_rgba(239,68,68,0.15)] tooltip-anim relative",children:[e.jsx("div",{className:"absolute -left-1.5 top-1/2 -translate-y-1/2 w-3 h-3 bg-white border-l border-b border-red-200 rotate-45"}),e.jsxs("div",{className:"flex flex-col gap-1.5 relative z-10",children:[e.jsxs("span",{className:"text-[13px] font-bold text-red-600 flex items-center gap-1.5 border-b border-red-100 pb-1.5",children:[e.jsx(Ed,{className:"w-4 h-4"})," ",U?"Plan Expired":"Action Required"]}),e.jsx("span",{className:"text-[12px] font-medium text-slate-600 leading-relaxed whitespace-normal pt-1",children:U?e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan has ",e.jsx("strong",{className:"text-red-600",children:"expired"}),"."]}):B?e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan expires ",e.jsx("strong",{className:"text-red-600",children:"today"}),"."]}):e.jsxs(e.Fragment,{children:["Your ",e.jsx("strong",{className:"text-slate-800",children:h?.plan})," plan will expire in ",e.jsxs("strong",{className:"text-red-600",children:[Z," ",Z===1?"day":"days"]}),"."]})}),e.jsx("span",{className:"text-[11px] text-slate-500 mt-1",children:U?"Click to renew and restore workspace access.":"Click to renew and avoid workflow interruptions."})]})]}):l&&e.jsxs("div",{className:"px-3.5 py-2 bg-gradient-to-br from-violet-600 to-violet-400 text-white text-[13px] font-medium rounded-lg whitespace-nowrap shadow-[0_6px_16px_rgba(124,58,237,0.25)] tooltip-anim relative",children:[e.jsx("div",{className:"absolute -left-1 top-1/2 -translate-y-1/2 w-2 h-2 bg-violet-600 rotate-45"}),e.jsx("span",{className:"relative z-10",children:tt()})]})})]})}function S4(a){return t=>typeof t===a}var g7=S4("function"),b7=a=>a===null,UA=a=>Object.prototype.toString.call(a).slice(8,-1)==="RegExp",IA=a=>!y7(a)&&!b7(a)&&(g7(a)||typeof a=="object"),y7=S4("undefined");function v7(a,t,n){return k7(n,a,t)?!0:(C7(n,a,t),a.constructor!==t.constructor?!1:Array.isArray(a)&&Array.isArray(t)?j7(a,t,n):a instanceof Map&&t instanceof Map?N7(a,t,n):a instanceof Set&&t instanceof Set?S7(a,t):a instanceof WeakMap||a instanceof WeakSet?!1:ArrayBuffer.isView(a)&&ArrayBuffer.isView(t)?A7(a,t):UA(a)&&UA(t)?a.source===t.source&&a.flags===t.flags:a instanceof Error&&t instanceof Error?w7(a,t,n):a.valueOf!==Object.prototype.valueOf?a.valueOf()===t.valueOf():a.toString!==Object.prototype.toString?a.toString()===t.toString():_7(a,t,n))}function yu(a,t,n){return a===t||Number.isNaN(a)&&Number.isNaN(t)?!0:!a||!IA(a)||!t||!IA(t)?!1:v7(a,t,n)}function j7(a,t,n){const{length:l}=a;if(l!==t.length)return!1;for(let i=l;i--!==0;)if(!yu(a[i],t[i],n))return!1;return!0}function A7(a,t){if(a.byteLength!==t.byteLength)return!1;const n=new DataView(a.buffer),l=new DataView(t.buffer);let i=a.byteLength;for(;i--;)if(n.getUint8(i)!==l.getUint8(i))return!1;return!0}function w7(a,t,n){return a.message===t.message&&a.name===t.name&&yu(a.cause,t.cause,n)}function N7(a,t,n){if(a.size!==t.size)return!1;for(const l of a.entries())if(!t.has(l[0]))return!1;for(const l of a.entries())if(!yu(l[1],t.get(l[0]),n))return!1;return!0}function _7(a,t,n){const l=Object.keys(a);if(l.length!==Object.keys(t).length)return!1;for(let i=l.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[i]))return!1;for(let i=l.length;i--!==0;){const c=l[i];if(!(c==="_owner"&&a.$$typeof)&&!yu(a[c],t[c],n))return!1}return!0}function S7(a,t){if(a.size!==t.size)return!1;for(const n of a.entries())if(!t.has(n[0]))return!1;return!0}function k7(a,t,n){return a.get(t)?.has(n)??!1}function C7(a,t,n){let l=a.get(t);l||(l=new WeakSet,a.set(t,l)),l.add(n)}function t1(a,t){return yu(a,t,new WeakMap)}function Mx(){return!!(typeof window<"u"&&window?.document?.createElement)}function E7(a,...t){a&&a.removeEventListener&&a.removeEventListener(...t)}function T7(a,...t){a&&a.addEventListener&&a.addEventListener(...t)}function R7(){const a=y.useRef(!0);return a.current?(a.current=!1,!0):a.current}function O7(a,t){const n=R7();y.useEffect(()=>{if(!n)return a()},t)}function k4(a){const t=y.useRef(void 0);return y.useEffect(()=>{t.current=a}),t.current}function M7(a,t){const n=y.useRef(t);return t1(t,n.current)||(n.current=t),y.useMemo(a,n.current)}function z7(a){y.useEffect(()=>{a()},[])}function L7(a=0){const[t,n]=y.useState({height:Mx()?window.innerHeight:0,width:Mx()?window.innerWidth:0}),l=y.useRef(0),i=y.useRef(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>{n({width:window.innerWidth,height:window.innerHeight})},a)});return y.useEffect(()=>{if(!Mx())return()=>{};const c=i.current;return n({height:window.innerHeight,width:window.innerWidth}),T7(window,"resize",c),()=>{E7(window,"resize",c)}},[]),t}var D7=tS(),B7=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","URL","WeakMap","WeakSet"],P7=["bigint","boolean","null","number","string","symbol","undefined"];function vu(a){const t=Object.prototype.toString.call(a).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(U7(t))return t}function qn(a){return t=>vu(t)===a}function U7(a){return B7.includes(a)}function bc(a){return t=>typeof t===a}function I7(a){return P7.includes(a)}var V7=["innerHTML","ownerDocument","style","attributes","nodeValue"],ju=a=>Array.isArray(a),F7=a=>vu(a)==="AsyncGeneratorFunction",H7=qn("AsyncFunction"),q7=bc("bigint"),Y7=a=>a===!0||a===!1,G7=qn("Date"),W7=qn("Error"),Ir=bc("function"),K7=qn("GeneratorFunction"),X7=a=>typeof a=="number"&&Number.isInteger(a),Yg=qn("Map"),C4=a=>Number.isNaN(a),s1=a=>a===null,E4=qn("Function"),Q7=qn("Promise"),Z7=qn("RegExp"),Gg=q
201n("Set"),Au=bc("string"),J7=bc("symbol"),a1=bc("undefined"),$7=qn("WeakMap"),eM=qn("WeakSet"),n1=a=>s1(a)||a1(a),T4=a=>!a1(a),tM=a=>bc("number")(a)&&!C4(a),sM=a=>Au(a)&&a.trim().length>0,aM=a=>{if(!Au(a)||a.length===0)return!1;const t=a.trim();return t.length>0&&Number.isFinite(Number(t))},P0=a=>!n1(a)&&(Ir(a)||typeof a=="object"),R4=a=>{if(vu(a)!=="Object")return!1;const t=Object.getPrototypeOf(a);return t===null||t===Object.getPrototypeOf({})},nM=a=>s1(a)||I7(typeof a),lM=a=>vu(a)==="URL",O4=a=>!n1(a)&&Ir(a[Symbol.iterator]),rM=a=>O4(a)&&Ir(a.next)&&Ir(a.throw),iM=a=>Ir(a)&&/^class\s/.test(a.toString()),oM=(a,t)=>!ju(a)||!Ir(t)?!1:a.every(n=>t(n)),cM=a=>P0(a)&&!R4(a)&&a.nodeType===1&&Au(a.nodeName)&&V7.every(t=>t in a),dM=a=>Au(a)&&a.length===0||ju(a)&&a.length===0||P0(a)&&!Yg(a)&&!Gg(a)&&Object.keys(a).length===0||Gg(a)&&a.size===0||Yg(a)&&a.size===0,uM=(a,t)=>!a||!t?!1:Object.getPrototypeOf(a)===t.prototype,hM=(a,t)=>ju(a)?a.indexOf(t)>-1:!1,fM=(a,t,n)=>{if(!P0(a)||!t)return!1;const l=a[t];return Ir(n)?n(l):T4(l)};function Pe(a){if(a===null)return"null";switch(typeof a){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ju(a))return"Array";if(E4(a))return"Function";const t=vu(a);return t||"Object"}Pe.array=ju;Pe.arrayOf=oM;Pe.asyncGeneratorFunction=F7;Pe.asyncFunction=H7;Pe.bigint=q7;Pe.boolean=Y7;Pe.class=iM;Pe.date=G7;Pe.defined=T4;Pe.domElement=cM;Pe.empty=dM;Pe.error=W7;Pe.function=Ir;Pe.generator=rM;Pe.generatorFunction=K7;Pe.instanceOf=uM;Pe.integer=X7;Pe.iterable=O4;Pe.map=Yg;Pe.nan=C4;Pe.null=s1;Pe.nullOrUndefined=n1;Pe.nonEmptyString=sM;Pe.number=tM;Pe.numericString=aM;Pe.object=P0;Pe.oneOf=hM;Pe.plainFunction=E4;Pe.plainObject=R4;Pe.primitive=nM;Pe.promise=Q7;Pe.propertyOf=fM;Pe.regexp=Z7;Pe.set=Gg;Pe.string=Au;Pe.symbol=J7;Pe.undefined=a1;Pe.url=lM;Pe.weakMap=$7;Pe.weakSet=eM;var qs=Pe;var zx,VA;function mM(){if(VA)return zx;VA=1;var a=function(l){return Object.prototype.hasOwnProperty.call(l,"props")},t=function(l,i){return l+n(i)},n=function(l){return l===null||typeof l=="boolean"||typeof l>"u"?"":typeof l=="number"?l.toString():typeof l=="string"?l:Array.isArray(l)?l.reduce(t,""):a(l)&&Object.prototype.hasOwnProperty.call(l.props,"children")?n(l.props.children):""};return n.default=n,zx=n,zx}var pM=mM();const Lx=Pi(pM);var Dx={exports:{}},FA;function xM(){return FA||(FA=1,(function(a){const t=Object.getPrototypeOf({});function n(){return function(c){return typeof c=="object"&&c!==null&&!(c instanceof RegExp)&&!(c instanceof Date)}}function l(i){function c(O){return O!=="constructor"&&O!=="prototype"&&O!=="__proto__"}function u(O){let R=0;const k=O.length,E=new Array(k);for(R;R<k;++R)E[R]=S(O[R]);return E}function h(O){const R={};if(v&&Object.getPrototypeOf(O)!==t)return v(O);const k=b(O);let E,z,D;for(E=0,z=k.length;E<z;++E)c(D=k[E])&&(R[D]=S(O[D]));return R}function f(O,R){const k=O.length,E=R.length;let z=0;const D=new Array(k+E);for(z;z<k;++z)D[z]=S(O[z]);for(z=0;z<E;++z)D[z+k]=S(R[z]);return D}const p=Object.prototype.propertyIsEnumerable;function x(O){const R=Object.keys(O),k=Object.getOwnPropertySymbols(O);for(let E=0,z=k.length;E<z;++E)p.call(O,k[E])&&R.push(k[E]);return R}const b=i?.symbols?x:Object.keys,v=typeof i?.cloneProtoObject=="function"?i.cloneProtoObject:void 0,w=typeof i?.isMergeableObject=="function"?i.isMergeableObject:n(),j=i?.onlyDefinedProperties===!0;function N(O){return typeof O!="object"||O===null}const A=i&&typeof i.mergeArray=="function"?i.mergeArray({clone:S,deepmerge:T,getKeys:b,isMergeableObject:w}):f;function S(O){return w(O)?Array.isArray(O)?u(O):h(O):O}function C(O,R){const k={},E=b(O),z=b(R);let D,q,V;for(D=0,q=E.length;D<q;++D)c(V=E[D])&&z.indexOf(V)===-1&&(k[V]=S(O[V]));for(D=0,q=z.length;D<q;++D)if(c(V=z[D]))if(V in O)E.indexOf(V)!==-1&&(v&&w(R[V])&&Object.getPrototypeOf(R[V])!==t?k[V]=v(R[V]):k[V]=T(O[V],R[V]));else{if(j&&typeof R[V]>"u")continue;k[V]=S(R[V])}return k}function T(O,R){if(j&&typeof R>"u")return S(O);const k=Array.isArray(R),E=Array.isArray(O);return N(R)?R:w(O)?k&&E?A(O,R):k!==E?S(R):C(O,R):S(R)}function L(){switch(arguments.length){case 0:return{};case 1:return S(arguments[0]);case 2:return T(arguments[0],arguments[1])}let O;for(let R=0,k=arguments.length;R<k;++R)O=T(O,arguments[R]);return O}return i?.all?L:T}a.exports=l,a.exports.default=l,a.exports.deepmerge=l,Object.defineProperty(a.exports,"isMergeableObject",{get:n})})(Dx)),Dx.exports}var gM=xM();const bM=Pi(gM);var Bx,HA;function yM(){if(HA)return Bx;HA=1;var a=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,l=Date.now;Bx={left:i("scrollLeft"),top:i("scrollTop")};function i(h){return function(p,x,b,v){b=b||{},typeof b=="function"&&(v=b,b={}),typeof v!="function"&&(v=u);var w=l(),j=p[h],N=b.ease||c,A=isNaN(b.duration)?350:+b.duration,S=!1;return j===x?v(a,p[h]):requestAnimationFrame(T),C;function C(){S=!0}function T(L){if(S)return v(t,p[h]);var O=l(),R=n(1,(O-w)/A),k=N(R);p[h]=k*(x-j)+j,R<1?requestAnimationFrame(T):requestAnimationFrame(function(){v(null,p[h])})}}}function c(h){return .5*(1-Math.cos(Math.PI*h))}function u(){}return Bx}var vM=yM();const jM=Pi(vM);var Qf={exports:{}},AM=Qf.exports,qA;function wM(){return qA||(qA=1,(function(a){(function(t,n){a.exports?a.exports=n():t.Scrollparent=n()})(AM,function(){function t(l){var i=getComputedStyle(l,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(l){if(l instanceof HTMLElement||l instanceof SVGElement){for(var i=l.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})})(Qf)),Qf.exports}var NM=wM();const M4=Pi(NM),_M={arrowBase:32,arrowColor:"#ffffff",arrowSize:16,arrowSpacing:12,backgroundColor:"#ffffff",beaconSize:36,beaconTrigger:"click",beforeTimeout:5e3,blockTargetInteraction:!1,buttons:["back","close","primary"],closeButtonAction:"close",disableFocusTrap:!1,dismissKeyAction:"close",hideOverlay:!1,loaderDelay:300,offset:10,overlayClickAction:"close",overlayColor:"#00000080",primaryColor:"#000000",scrollDuration:300,scrollOffset:20,showProgress:!1,skipBeacon:!1,skipScroll:!1,spotlightPadding:10,spotlightRadius:4,targetWaitTimeout:1e3,textColor:"#000000",width:380,zIndex:100},SM={beaconOptions:{offset:-18}},z4={back:"Back",close:"Close",last:"Last",next:"Next",nextWithProgress:"Next ({current} of {total}
201)",open:"Open the dialog",skip:"Skip"},kM={isFixed:!1,locale:z4,placement:"bottom"},CM={continuous:!1,debug:!1,run:!1,scrollToFirstStep:!1,steps:[]},nt={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update",COMPLETE:"complete"},js={TOUR_START:"tour:start",STEP_BEFORE_HOOK:"step:before_hook",STEP_BEFORE:"step:before",SCROLL_START:"scroll:start",SCROLL_END:"scroll:end",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",STEP_AFTER_HOOK:"step:after_hook",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},pe={INIT:"init",READY:"ready",BEACON_BEFORE:"beacon_before",BEACON:"beacon",TOOLTIP_BEFORE:"tooltip_before",TOOLTIP:"tooltip",COMPLETE:"complete"},Po={BUTTON_CLOSE:"button_close",BUTTON_SKIP:"button_skip",BUTTON_PRIMARY:"button_primary",KEYBOARD:"keyboard",OVERLAY:"overlay"},Qe={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"},EM="react-joyride-portal";function l1(){return!!(typeof window<"u"&&window.document?.createElement)}function YA(a){let t=0,n=0,l=a;for(;l;)t+=l.offsetTop,n+=l.offsetLeft,l=l.offsetParent;return{left:n,top:t}}function r1(a){return a?a.getBoundingClientRect():null}function TM(a=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(a){const l=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((c,u)=>c-u),i=Math.floor(l.length/2);return l.length%2===0?(l[i-1]+l[i])/2:l[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function wn(a){if(!a)return null;if(typeof a=="function")try{return a()}catch{return null}if(typeof a=="object"&&"current"in a)return a.current;if(typeof a=="string")try{return document.querySelector(a)}catch{return null}return a}function RM(a,t,n){const l=r1(a),i=yc(a),c=i?!i.isSameNode(ma()):!1,u=n??vc(a);let h=0,f=l?.top??0;return c&&u?f=l?.top??0:i instanceof HTMLElement&&(h=i.scrollTop,!c&&!u&&(f+=h),i.isSameNode(ma())||(f+=ma().scrollTop)),Math.floor(f-t)}function yc(a,t){if(!a)return ma();const n=M4(a);if(n){if(n.isSameNode(ma()))return t?document:ma();if(!(n.scrollHeight>n.offsetHeight))return ma()}return n}function OM(a){const t=a.getBoundingClientRect(),n=ma(),l=t.top+t.height/2,i=window.innerHeight/2;return Math.max(0,n.scrollTop+l-i)}function MM(a,t){if(!a)return 0;const n=M4(a)??ma(),l=parseFloat(getComputedStyle(a).scrollMarginTop)||0,i=r1(n),c=n.scrollTop??0,{offsetTop:u=0,scrollTop:h=0}=n;let f=a.getBoundingClientRect().top+h;if(u&&(L4(a)||zM(a))){const x=a.getBoundingClientRect(),b=x.top-(i?.top??0),v=b+x.height,w=n.clientHeight,j=w*.2;b>=j&&v<=w-j?f=c:f=b+c}const p=Math.floor(f-t-l);return p<0?0:p}function zM(a){return a.offsetParent!==document.body}function L4(a){if(!a)return!1;const t=yc(a);return t?!t.isSameNode(ma()):!1}function vc(a,t="fixed"){if(!a||!(a instanceof Element))return!1;const{nodeName:n}=a;return n==="BODY"||n==="HTML"?!1:getComputedStyle(a).position===t?!0:a.parentNode?vc(a.parentNode,t):!1}function af(a){if(!a)return!1;let t=a;for(;t&&t!==document.body;){if(t instanceof HTMLElement){const{display:n,visibility:l}=getComputedStyle(t);if(n==="none"||l==="hidden")return!1}t=t.parentElement??null}return!0}function ma(){return document.scrollingElement??document.documentElement}function GA(a,t){const{duration:n,element:l}=t;let i=()=>{};const c=new Promise(u=>{const{scrollTop:h}=l,f=a>h?a-h:h-a;i=jM.top(l,a,{duration:f<100?50:n},()=>{u()})});return{cancel:i,promise:c}}function LM(a){const t={};for(const n in a)a[n]!==void 0&&(t[n]=a[n]);return t}function Uo(...a){return bM({all:!0,isMergeableObject:t=>!(!qs.plainObject(t)||y.isValidElement(t))})(...a)}function D4(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}function Ml(a,t={}){const{defaultValue:n,step:l,steps:i}=t;let c=Lx(a);if(c)(c.includes("{current}")||c.includes("{total}"))&&l&&i&&(c=c.replace("{current}",l.toString()).replace("{total}",i.toString()));else if(y.isValidElement(a)&&!Object.values(a.props).length&&D4(a.type)==="function")try{c=Ml(a.type({}),t)}catch{c=Lx(n)}else c=Lx(n);return c}function DM(a){const t=a.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,(l,i,c,u)=>i+i+c+c+u+u),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function ws(a,t,n,...l){if(!a)return;const i=new Date,c=`${String(i.getHours()).padStart(2,"0")}
201:${String(i.getMinutes()).padStart(2,"0")}:${String(i.getSeconds()).padStart(2,"0")}.${String(i.getMilliseconds()).padStart(3,"0")}`;console.log(`${t} %c${n}%c ${c}`,"font-weight: bold","color: gray; font-weight: normal",...l)}function BM(a,t){const n=LM(t);return{...a,...n}}function WA(a){const{isFirstStep:t,scrollToFirstStep:n,step:l,target:i,targetLifecycle:c}=a;if(l.skipScroll||t&&!n&&c!==pe.TOOLTIP||l.placement==="center")return!1;const u=i?.isConnected?yc(i):ma(),h=u?!u.isSameNode(ma()):!1;return(l.isFixed||vc(i))&&!h?!1:u.scrollHeight>u.clientHeight}function iu(){}function PM(a){return Object.keys(a)}function v0(a,...t){if(!qs.plainObject(a))throw new TypeError("Expected an object");const n={};for(const l in a)({}).hasOwnProperty.call(a,l)&&(t.includes(l)||(n[l]=a[l]));return n}function KA(a,...t){if(!qs.plainObject(a))throw new TypeError("Expected an object");if(!t.length)return a;const n={};for(const l in a)({}).hasOwnProperty.call(a,l)&&t.includes(l)&&(n[l]=a[l]);return n}function Wg(a,t,n){const l=c=>c.replace("{current}",String(t)).replace("{total}",String(n));if(D4(a)==="string")return l(a);if(!y.isValidElement(a))return a;const{children:i}=a.props;if(qs.string(i)&&i.includes("{current}"))return y.cloneElement(a,{children:l(i)});if(Array.isArray(i))return y.cloneElement(a,{children:i.map(c=>typeof c=="string"?l(c):Wg(c,t,n))});if(qs.function(a.type)&&!Object.values(a.props).length)try{return Wg(a.type({}),t,n)}catch{return a}return a}function UM(a,t,n){const{action:l}=t,i=n&&[nt.PREV,nt.NEXT].includes(l);return a.skipBeacon||a.placement==="center"||i}function XA(a){return PM(a).sort().reduce((t,n)=>(t[n]=a[n],t),{})}const B4={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555555",cursor:"pointer",fontSize:16,lineHeight:1,padding:0,WebkitAppearance:"none"},nf={...B4,borderRadius:4,padding:8};function IM(a,t){const{styles:n}=a,l=Uo(n??{},t.styles??{});let{width:i}=t;l1()&&(i=typeof i=="number"&&window.innerWidth<i?window.innerWidth-30:i);const c={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex};return Uo({arrow:{alignItems:"center",color:t.arrowColor,display:"inline-flex",justifyContent:"center",position:"absolute"},beaconWrapper:{...B4,display:"inline-flex",borderRadius:"50%",position:"relative"},beacon:{height:t.beaconSize,width:t.beaconSize},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${DM(t.primaryColor).join(",")}, 0.2)`,border:`2px solid ${t.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},buttonBack:{...nf,color:t.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...nf,color:t.textColor,height:12,padding:8,position:"absolute",right:0,top:0,width:12},buttonPrimary:{...nf,backgroundColor:t.primaryColor,color:t.backgroundColor},buttonSkip:{...nf,color:t.textColor,fontSize:14},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:"100%",transition:"opacity 0.3s"},loader:{alignItems:"center",display:"flex",height:48,inset:0,justifyContent:"center",pointerEvents:"none",position:"fixed",width:48,zIndex:t.zIndex+1},overlay:{...c,backgroundColor:t.overlayColor},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:12,position:"relative",width:i},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{paddingBottom:12,paddingTop:12},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end"},tooltipFooterSpacer:{flex:1}},l)}const VM=["after","arrowBase","arrowColor","arrowSize","arrowSpacing","backgroundColor","beaconSize","beaconTrigger","before","beforeTimeout","buttons","closeButtonAction","skipBeacon","dismissKeyAction","disableFocusTrap","hideOverlay","skipScroll","blockTargetInteraction","loaderDelay","offset","overlayClickAction","overlayColor","primaryColor","scrollDuration","scrollOffset","showProgress","spotlightPadding","spotlightRadius","targetWaitTimeout","textColor","width","zIndex"];function i1(a,t){if(!t)return null;const n=Uo(kM,KA(a,"arrowComponent","beaconComponent","floatingOptions","loaderComponent","locale","styles","tooltipComponent"),t),l=Uo(_M,a.options??{},KA(t,...VM)),i=IM(a,{...n,...l}),c=Uo(SM,a.floatingOptions??{},n.floatingOptions??{});return{...n,...l,locale:Uo(z4,a.locale??{},n.locale||{}),floatingOptions:c,spotlightPadding:FM(l.spotlightPadding),styles:i}}function FM(a){return typeof a=="number"?{top:a,right:a,bottom:a,left
201:a}:{top:a?.top??0,right:a?.right??0,bottom:a?.bottom??0,left:a?.left??0}}function P4(a,t=!1){return qs.plainObject(a)?a.target?!0:(ws(t,"tour","target is missing from the step"),!1):(ws(t,"tour","step must be an object"),!1)}function U4(a,t=!1){return qs.array(a)?a.every(n=>P4(n,t)):(ws(t,"tour","steps must be an array"),!1)}var HM=class{beaconPosition=null;debug;eventListeners=new Map;listeners=new Set;props;snapshot;state;steps;tooltipPosition=null;constructor(a){const{initialStepIndex:t,stepIndex:n,steps:l=[]}=a??{},i=qs.number(n);let c=0;this.debug=a?.debug??!1,i?(c=n,qs.number(t)&&ws(this.debug,"tour","initialStepIndex is ignored in controlled mode")):qs.number(t)&&(t>=0&&t<l.length?c=t:l.length>0&&ws(this.debug,"tour","initialStepIndex is out of bounds")),this.props=a??{steps:[]},this.steps=l,this.state={action:nt.INIT,controlled:i,index:c,lifecycle:pe.INIT,origin:null,positioned:!1,scrolling:!1,size:l.length,status:l.length?Qe.READY:Qe.IDLE,waiting:!1},this.snapshot=Object.freeze({...this.state})}applyTransitions(a){return a.status===Qe.WAITING&&a.size>0?{...a,status:Qe.RUNNING}:a}getStep(a){return i1(this.props,this.steps[a??this.state.index])}cleanupPositionData=()=>{this.beaconPosition=null,this.tooltipPosition=null};getPositionData=a=>a==="beacon"?this.beaconPosition:this.tooltipPosition;getServerSnapshot=()=>this.snapshot;getSnapshot=()=>this.snapshot;getEventState=()=>v0(this.snapshot,"positioned");getState=()=>v0(this.snapshot,"positioned");setPositionData=(a,t)=>{(a==="beacon"?this.beaconPosition:this.tooltipPosition)?.placement!==t.placement&&ws(this.debug,`step:${this.state.index}`,"positioned",`${a} ${t.placement}`),a==="beacon"?this.beaconPosition=t:this.tooltipPosition=t,(this.state.lifecycle===pe.BEACON_BEFORE||this.state.lifecycle===pe.TOOLTIP_BEFORE)&&!this.state.positioned&&this.updateState({positioned:!0});const n=this.getStep()?.floatingOptions?.onPosition;n&&n(t)};setSteps=a=>{this.steps=a,this.updateState({size:a.length})};dispatch=(a,t)=>{const n=this.eventListeners.get(a.type);if(n)for(const l of n)try{l(a,t)}catch{}};on=(a,t)=>{let n=this.eventListeners.get(a);return n||(n=new Set,this.eventListeners.set(a,n)),n.add(t),()=>{n.delete(t)}};subscribe=a=>(this.listeners.add(a),()=>{this.listeners.delete(a)});updateState=(a,t=!1)=>{const{controlled:n,index:l}=this.state,i=this.snapshot,c=n&&!t&&a.index!==void 0?l:a.index??l,u={action:a.action??this.state.action,controlled:n,index:c,lifecycle:a.lifecycle??this.state.lifecycle,origin:a.origin??null,positioned:a.positioned??this.state.positioned,scrolling:a.scrolling??this.state.scrolling,size:a.size??this.state.size,status:a.status??this.state.status,waiting:a.waiting??this.state.waiting},h=this.applyTransitions(u);if(this.state=h,!t1(i,h)){this.snapshot=Object.freeze({...h});for(const f of this.listeners)f(this.snapshot)}}};function qM(a){return new HM(a)}function QA(a,t){return Math.min(Math.max(a,0),t)}function YM(a,t,n){const l=y.useRef(t),i=y.useRef(n);return l.current=t,i.current=n,y.useMemo(()=>{const c=()=>a.current.getSnapshot();return{close:(A=null)=>{const{index:S,status:C}=c();C===Qe.RUNNING&&a.current.updateState({action:nt.CLOSE,index:S+1,origin:A,lifecycle:pe.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},go:A=>{const{controlled:S,size:C,status:T}=c();if(S){ws(l.current,"tour","go() is not supported in controlled mode");return}T===Qe.RUNNING&&a.current.updateState({action:nt.GO,index:A,lifecycle:pe.COMPLETE,positioned:!1,scrolling:!1,status:A<C?T:Qe.FINISHED,waiting:!1})},info:()=>v0(a.current.getSnapshot(),"positioned"),next:()=>{const{index:A,size:S,status:C}=c();C===Qe.RUNNING&&a.current.updateState({action:nt.NEXT,index:QA(A+1,S),lifecycle:pe.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},open:()=>{const{status:A}=c();A===Qe.RUNNING&&a.current.updateState({action:nt.UPDATE,lifecycle:pe.TOOLTIP_BEFORE,positioned:!1,scrolling:!1,waiting:!1})},prev:()=>{const{index:A,size:S,status:C}=c();C===Qe.RUNNING&&a.current.updateState({action:nt.PREV,index:QA(A-1,S),lifecycle:pe.COMPLETE,positioned:!1,scrolling:!1,waiting:!1})},reset:(A=!1)=>{const{controlled:S}=c();if(S){ws(l.current,"tour","reset() is not supported in controlled mode");return}i.current(),a.current.updateState({action:nt.RESET,index:0,lifecycle:pe.INIT,positioned:!1,scrolling:!1,status:A?Qe.RUNNING:Qe.READY,waiting:!1})},skip:A=>{const{status:S}=c();S===Qe.RUNNING&&a.current.updateState({action:nt.SKIP,lifecycle:pe.COMPLETE,origin:A,positioned:!1,scrolling:!1,status:Qe.SKIPPED,waiting:!1})},start:A=>{const{index:S,size:C}=c();i.current(),a.current.updateState({action:nt.START,index:qs.number(A)?A:S,lifecycle:pe.INIT,positioned:!1,scrolling:!1,status:C?Qe.RUNNING:Qe.WAITING,waiting:!1},!0)},stop:(A=!1)=>{const{index:S,status:C}=c();[Qe.FINISHED,Qe.SKIPPED].includes(C)||a.current.updateState({action:nt.STOP,index:S+(A?1:0),lifecycle:pe.COMPLETE,positioned:!1,scrolling:!1,status:Qe.PAUSED,waiting:!1})}}},[a])}const GM=new Set(["origin","positioned"]);function WM(a,t){const n=y.useRef(null);y.useEffect(()=>{if(!t)return;const l=a.current.getSnapshot();return ws(!0,"tour","init",l),n.current=l,a.current.subscribe(i=>{const c=n.current;if(n.current=i,!c)return;const u={};let h=!1;for(const f of Object.keys(i))i[f]!==c[f]&&!GM.has(f)&&(u[f]={from:c[f],to:i[f]},(f==="status"||f==="size")&&(h=!0));Object.keys(u).length&&(!h&&i.index>=i.size||ws(!0,h?"tour":`step:${i.index}`,"state",u))})},[t,a])}function KM(a,t,n){const l=y.useRef(a),i=y.useRef(t);return l.current=a,i.current=t,y.useCallback((c,u,h)=>{const f={...n.current.getEventState(),error:null,scroll:null,step:u,type:c,...h};l.current?.(f,i.current),n.current.dispatch(f,i.current)},[n])}function wr(a,t){return{hasChanged(n){return a[n]!==t[n]},hasChangedTo(n,l){const i=a[n],c=t[n];return Array.isArray(l)?l.includes(i)&&!l.includes(c):i===l&&c!==l},previous:t}}function XM(a){const{addFailure:t,controls:n,emitEvent:l,previousState:i,props:c,state:u,step:h,store:f}=a,{action:p,index:x,lifecycle:b,positioned:v,scrolling:w,size:j,status:N}=u,A=k4(h)??null,S=y.useRef(null),C=y.useRef(c),T=y.useRef(u),L=y.useRef(i),O=y.useRef(h),R=y.useRef(A),k=y.useRef(n),E=y.useRef(null),z=y.useRef(null),D=y.useRef(null);C.current=c,T.current=u,L.current=i,O.current=h,R.current=A,k.current=n;const q=()=>{E.current&&(clearInterval(E.current),E.current=null),z.current=null,D.current&&(D.current.cancel(),D.current=null)};y.useEffect(()=>{if(!L.current)return;const{hasChangedTo:V}=wr(T.current,L.current);(V("action",[nt.NEXT,nt.PREV,nt.SKIP,nt.CLOSE])||S.current===nt.CLOSE&&p===nt.START)&&(S.current=p)},[p]),y.useEffect(()=>{if(!L.current)return()=>{q()};const{hasChanged:V}=wr(T.current,L.current),Z=O.current;if(V("index")&&q(),N!==Qe.RUNNING||!Z||b!==pe.INIT)return()=>{q()};const{hasChangedTo:ae}=wr(T.current,L.current);ae("status",Qe.RUNNING)&&[Qe.IDLE,Qe.READY,Qe.PAUSED].includes(L.current.status)&&l(js.TOUR_START,Z),f.current.cleanupPositionData();const{debug:ee}=C.current;if(Z.before&&!D.current){ws(ee,`step:${x}`,"before()",Z),D.current={cancel:()=>{}},f.current.updateState({waiting:!0}),l(js.STEP_BEFORE_HOOK,Z,{action:S.current??T.current.action});const U=()=>{D.current=null,f.current.updateState({action:S.current??T.current.action,waiting:!1,lifecycle:pe.READY})},B=new AbortController,X=Z.beforeTimeout;D.current={cancel:()=>B.abort()};const re=X?setTimeout(()=>{B.signal.aborted||(ws(ee,`step:${x}`,"before()","timed out",`${X}ms`),B.abort(),t(Z,"before_hook"),l(js.ERROR,Z,{error:new Error("Step before hook timed out")}),U())},X):null;Z.before({...f.current.getState(),action:S.current??f.current.getState().action,step:Z}).then(()=>{B.signal.aborted||(re&&clearTimeout(re),U())}).catch(P=>{B.signal.aborted||(re&&clearTimeout(re),t(Z,"before_hook"),l(js.ERROR,Z,{error:P instanceof Error?P:new Error(String(P))}),U())})}else if(!D.current){E.current&&z.current!==Z.target&&q();const U=wn(Z.target);if(U&&af(U))q(),f.current.updateState({action:S.current??nt.UPDATE,lifecycle:pe.READY,waiting:!1});else if(Z.targetWaitTimeout===0)f.current.updateState({action:S.current??nt.UPDATE,lifecycle:pe.READY,waiting:!1});else if(!E.current){const{targetWaitTimeout:B}=Z,X=Date.now();z.current=Z.target,ws(ee,`step:${x}`,"polling","started",`${B}ms`),f.current.updateState({waiting:!0}),E.current=setInterval(()=>{const re=wn(Z.target),P=Date.now()-X,Y=P>=B;(re&&af(re)||Y)&&(ws(ee,`step:${x}
201`,"polling",re&&af(re)?"found":"timed out",`${P}ms`),q(),f.current.updateState({action:S.current??nt.UPDATE,lifecycle:pe.READY,waiting:!1}))},100)}}return()=>{q()}},[t,l,x,b,N,f]),y.useEffect(()=>{if(!L.current)return;const{hasChanged:V,hasChangedTo:Z,previous:ae}=wr(T.current,L.current),ee=O.current;if(!ee)return;const U=wn(ee.target),B=!!U;if(B&&af(U)){if(Z("lifecycle",pe.READY)&&ae.lifecycle===pe.INIT&&l(js.STEP_BEFORE,ee,{action:S.current??T.current.action}),Z("lifecycle",pe.READY)){const X=T.current,re=UM(ee,X,C.current.continuous)?pe.TOOLTIP:pe.BEACON,P=wn(ee.scrollTarget??ee.spotlightTarget??ee.target),Y=WA({isFirstStep:X.index===0,scrollToFirstStep:C.current.scrollToFirstStep,step:ee,target:P,targetLifecycle:re}),oe=re===pe.TOOLTIP?pe.TOOLTIP_BEFORE:pe.BEACON_BEFORE;ws(C.current.debug,`step:${x}`,"scroll",Y?"needed":"skipped"),f.current.updateState({action:nt.UPDATE,lifecycle:oe,scrolling:Y})}}else if(T.current.status===Qe.RUNNING&&b!==pe.INIT&&b!==pe.COMPLETE&&V("lifecycle")){ws(C.current.debug,`step:${x}`,B?"Target not visible":"Target not mounted",ee),t(ee,"target_not_found"),l(js.TARGET_NOT_FOUND,ee);const X=T.current;X.controlled||f.current.updateState({action:nt.UPDATE,index:X.index+(X.action===nt.PREV?-1:1),lifecycle:pe.INIT})}},[t,l,x,b,f]),y.useEffect(()=>{if(!L.current)return;const{hasChangedTo:V,previous:Z}=wr(T.current,L.current),ae=O.current,ee=R.current;if(ae&&V("lifecycle",pe.TOOLTIP_BEFORE)&&Z.lifecycle===pe.BEACON){const X=wn(ae.scrollTarget??ae.spotlightTarget??ae.target);if(WA({isFirstStep:T.current.index===0,scrollToFirstStep:C.current.scrollToFirstStep,step:ae,target:X,targetLifecycle:pe.TOOLTIP})){f.current.updateState({scrolling:!0,positioned:!1});return}}const U=b===pe.BEACON_BEFORE||b===pe.TOOLTIP_BEFORE;if(ae&&U&&!w){const X=b===pe.TOOLTIP_BEFORE?pe.TOOLTIP:pe.BEACON;f.current.updateState({action:nt.UPDATE,lifecycle:X})}ae&&V("lifecycle",pe.BEACON)&&l(js.BEACON,ae),ae&&V("lifecycle",pe.TOOLTIP)&&l(js.TOOLTIP,ae);const B=T.current;if((B.status===Qe.RUNNING||B.controlled&&B.status===Qe.PAUSED&&ae)&&ee&&V("lifecycle",pe.COMPLETE)&&Z.lifecycle===pe.TOOLTIP&&(l(js.STEP_AFTER,ee,{action:S.current??nt.UPDATE,index:Z.index??B.index,lifecycle:B.lifecycle}),ee.after)){l(js.STEP_AFTER_HOOK,ee,{action:S.current??nt.UPDATE,index:Z.index??B.index,lifecycle:B.lifecycle});try{ee.after({...f.current.getState(),action:S.current??nt.UPDATE,index:Z.index??B.index,lifecycle:B.lifecycle,step:ee})}catch{}}},[l,b,v,w,f]),y.useEffect(()=>{if(!L.current)return;const{hasChangedTo:V,previous:Z}=wr(T.current,L.current),ae=O.current,ee=R.current;j&&!ae&&b===pe.INIT&&f.current.updateState({action:nt.UPDATE,lifecycle:pe.COMPLETE,status:Qe.FINISHED}),!T.current.controlled&&N===Qe.RUNNING&&V("lifecycle",pe.COMPLETE)&&x<j&&f.current.updateState({action:nt.UPDATE,lifecycle:pe.INIT}),V("lifecycle",pe.COMPLETE)&&x>=j&&f.current.updateState({action:nt.UPDATE,lifecycle:pe.COMPLETE,status:Qe.FINISHED});const U=ae??ee??i1(C.current,C.current.steps[x-1]);if(U&&V("status",[Qe.FINISHED,Qe.SKIPPED])){let B;ae?B=x:ee?B=Z.index??x:B=x-1,l(js.TOUR_END,U,{index:B}),T.current.controlled||k.current.reset(),S.current=null}ae&&V("action",nt.STOP)&&(S.current=null,l(js.TOUR_STATUS,ae)),ae&&V("action",nt.RESET)&&(l(js.TOUR_STATUS,ae),S.current=null)},[p,l,x,b,j,N,f])}function QM({controls:a,emitEvent:t,props:n,state:l,store:i}){const{debug:c,initialStepIndex:u,run:h,stepIndex:f,steps:p}=n,x=y.useRef(void 0),b=y.useRef(l),v=y.useRef(a);b.current=l,v.current=a,y.useEffect(()=>{const w=x.current;if(x.current=n,!w||n===w)return;const{hasChanged:j}=wr(n,w);if(t1(w.steps,p)||(U4(p,c)?i.current.setSteps(p):(ws(c,"tour","Steps are not valid",p),t(js.ERROR,p[0]??{target:"",content:""},{error:new Error("Steps are not valid")}))),j("run"))h?i.current.getState().size&&v.current.start(f??u):v.current.stop();else if(qs.number(f)&&j("stepIndex")){const N=qs.number(w.stepIndex)&&w.stepIndex<f?nt.NEXT:nt.PREV;[Qe.FINISHED,Qe.SKIPPED].includes(b.current.status)||i.current.updateState({action:N,index:f,lifecycle:pe.INIT,positioned:!1},!0)}},[c,t,u,n,h,f,p,i])}function ZM(a,t){const{beaconPosition:n,lifecycle:l,scrollOffset:i,step:c}=t;if(c.scrollTarget||c.spotlightTarget)return Math.max(0,a);let u=a-c.spotlightPadding.top;if(l===pe.BEACON_BEFORE&&n?.placement){const h=JM(n);["bottom"].includes(n.placement)||(u+=Math.floor(h-i))}else if(l===pe.TOOLTIP_BEFORE){const{placement:h}=c;if(h==="top"){const f=document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height??0,p=c.floatingOptions?.hideArrow?0:c.arrowSize,x=c.offset+c.spotlightPadding.top+p;u-=f+x}else if(h==="left"||h==="right"){const f=document.querySelector(".react-joyride__floater")?.getBoundingClientRect().height??0,p=wn(c.target)?.getBoundingClientRect().height??0,x=i+c.spotlightPadding.top+p/2-f/2;x<i&&(u-=i-x)}}return Math.max(0,u)}function JM(a){const t=a.middlewareData?.offset;return t?["left","right"].some(n=>a.placement.startsWith(n))?t.x:t.y:0}function $M({emitEvent:a,previousState:t,props:n,state:l,step:i,store:c}){const{index:u,lifecycle:h,positioned:f,scrolling:p,status:x}=l,b=y.useRef(null),v=y.useRef(l),w=y.useRef(t),j=y.useRef(n),N=y.useRef(i);v.current=l,w.current=t,j.current=n,N.current=i,y.useEffect(()=>()=>{b.current?.()},[]),y.useEffect(()=>{if(!w.current||!N.current)return;const{hasChangedTo:A}=wr(v.current,w.current),S=N.current,{debug:C}=j.current,{scrollDuration:T}=S,L=h===pe.BEACON_BEFORE||h===pe.TOOLTIP_BEFORE;if(x===Qe.RUNNING&&L&&p&&A("positioned",!0)){const O=wn(S.scrollTarget??S.spotlightTarget??S.target),R=c.current.getPositionData("beacon"),k=yc(O),E=k?!k.isSameNode(ma()):!1;b.current?.(),(async()=>
201{if(E&&!vc(k)){const U=ma(),B=OM(k),X={initial:U.scrollTop,target:B,element:U,duration:T};a(js.SCROLL_START,S,{scroll:X});const{cancel:re,promise:P}=GA(B,{element:U,duration:T});b.current=re,await P,a(js.SCROLL_END,S,{scroll:X})}const D=Math.floor(MM(O,S.scrollOffset))||0,q=E?D:ZM(D,{beaconPosition:R,lifecycle:h,scrollOffset:S.scrollOffset,step:S});ws(C,`step:${u}`,"scroll",E?"custom":"document",`${D} â ${q}`);const V=k,Z={initial:V.scrollTop,target:q,element:V,duration:T};a(js.SCROLL_START,S,{scroll:Z});const{cancel:ae,promise:ee}=GA(q,{element:V,duration:T});b.current=ae,await ee,a(js.SCROLL_END,S,{scroll:Z}),c.current.updateState({scrolling:!1})})().catch(()=>{c.current.updateState({scrolling:!1})})}},[a,u,h,f,p,x,c])}function ez(a){const t=M7(()=>BM(CM,a),[a]),{debug:n,initialStepIndex:l,onEvent:i,run:c,stepIndex:u,steps:h}=t,f=y.useRef(qM(t)),p=D7.useSyncExternalStore(f.current.subscribe,f.current.getSnapshot,f.current.getServerSnapshot),[x,b]=y.useState([]),v=y.useCallback((O,R)=>{b(k=>[...k,{reason:R,step:O}])},[]),w=y.useCallback(()=>{b([])},[]);WM(f,n);const j=YM(f,n,w),N=KM(i,j,f),{index:A,size:S,status:C}=p,T=k4(p),L=y.useMemo(()=>i1(t,h[A]),[A,t,h]);return z7(()=>{c&&S&&U4(h,n)&&j.start(u??l)}),O7(()=>{c&&S&&C===Qe.IDLE&&f.current.updateState({status:Qe.READY})},[c,S,C]),QM({controls:j,emitEvent:N,props:t,state:p,store:f}),XM({addFailure:v,controls:j,emitEvent:N,previousState:T,props:t,state:p,step:L,store:f}),$M({emitEvent:N,previousState:T,props:t,state:p,step:L,store:f}),{controls:j,failures:x,mergedProps:t,state:p,step:L,store:f}}function tz(a){const[t,n]=y.useState(null);return y.useEffect(()=>{let l=null,i=!1;if(a)if(qs.domElement(a))l=a,i=!0;else{const c=document.querySelector(a);c&&(l=c)}else{const c=document.createElement("div");c.id=EM,document.body.appendChild(c),l=c}return n(l),()=>{!l||i||l.parentNode===document.body&&document.body.removeChild(l)}},[a]),t}const sz={animation:"joyride-loader-spin 1s linear infinite",border:"5px solid rgba(0, 0, 0, 0.1)",borderRadius:"50%",borderTopColor:"#555"};function az({nonce:a,step:t}){const{loaderComponent:n}=t,l=!!n;if(y.useEffect(()=>{if(l||document.getElementById("joyride-loader-animation"))return iu;const f=document.createElement("style");return f.id="joyride-loader-animation",a&&f.setAttribute("nonce",a),f.appendChild(document.createTextNode(` 202 @keyframes joyride-loader-spin { 203 to { transform: rotate(360deg); } 204 } 205 `)),document.head.appendChild(f),()=>{const p=document.getElementById("joyride-loader-animation");p?.parentNode&&p.parentNode.removeChild(p)}},[l,a]),n===null)return null;const{height:i,width:c,...u}=t.styles.loader;let h;if(n){const f=n;h=de.createElement(f,{step:t})}else h=de.createElement("div",{style:{...sz,height:i,width:c,borderTopColor:t.primaryColor}});return de.createElement("div",{className:"react-joyride__loader","data-testid":"loader",style:u},h)}const nz={height:0,isFixed:!1,left:0,top:0,width:0};function bd(a,t){const n=wn(a);if(!n)return nz;const l=r1(n),i=vc(n),c=RM(n,t.top,i);return{height:Math.round((l?.height??0)+t.top+t.bottom),isFixed:i,left:Math.round((l?.left??0)-t.left),top:c,width:Math.round((l?.width??0)+t.left+t.right)}}function lz(a,t,n){const[l,i]=y.useState(()=>bd(a,t)),c=y.useRef(void 0),u=y.useRef(null),h=y.useRef(n),f=y.useRef(null),p=y.useCallback(()=>{clearTimeout(c.current),c.current=window.setTimeout(()=>{i(b=>{const v=bd(a,t);return b.top===v.top&&b.left===v.left&&b.width===v.width&&b.height===v.height&&b.isFixed===v.isFixed?b:v})},100)},[a,t]);y.useEffect(()=>{let b=null;const v=j=>{u.current=yc(j,!0),u.current&&u.current.addEventListener("scroll",p,{passive:!0}),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p),typeof ResizeObserver<"u"&&(f.current=new ResizeObserver(p),f.current.observe(j)),i(bd(a,t))},w=wn(a);return w?v(w):(b=new MutationObserver(()=>{const j=wn(a);j&&(b?.disconnect(),b=null,v(j))}),b.observe(document.body,{childList:!0,subtree:!0})),()=>{b?.disconnect(),u.current&&u.current.removeEventListener("scroll",p),window.removeEventListener("scroll",p),window.removeEventListener("resize",p),f.current?.disconnect(),clearTimeout(c.current)}},[a,t,p]),y.useEffect(()=>{h.current&&!n&&i(bd(a,t)),h.current=n},[n,a,t]);let x=l;return h.current&&!n&&(x=bd(a,t)),x}function rz(a,t,n){let l=`M0 0H${a}V${t}H0Z`;return n&&(l+=` ${n}`),l}function ZA(a,t,n,l,i){if(n<=0||l<=0)return"";const c=Math.max(0,Math.min(i,n/2,l/2));let u=`M${a+c} ${t}`;return u+=`H${a+n-c}`,u+=`A${c} ${c} 0 0 1 ${a+n} ${t+c}`,u+=`V${t+l-c}`,u+=`A${c} ${c} 0 0 1 ${a+n-c} ${t+l}`,u+=`H${a+c}`,u+=`A${c} ${c} 0 0 1 ${a} ${t+l-c}`,u+=`V${t+c}`,u+=`A${c} ${c} 0 0 1 ${a+c} ${t}Z`,u}const iz=[pe.BEACON_BEFORE,pe.BEACON];function oz(a){const{blockTargetInteraction:t,continuous:n,hideOverlay:l,lifecycle:i,onClickOverlay:c,overlayClickAction:u,placement:h,portalElement:f,scrolling:p,spotlightPadding:x,spotlightRadius:b,spotlightTarget:v,styles:w,target:j,waiting:N}=a,A=L7(),S=lz(v??j,x,p||N),C=y.useRef(i),T=y.useRef(null),[L,O]=y.useState(!1),[R,k]=y.useState(!1),E=f?T.current?.offsetParent:null,z=E?.clientWidth??A.width,D=E?.clientHeight??TM()??A.height,q=w.overlay?.backgroundColor??"rgba(0, 0, 0, 0.5)",V=y.useMemo(()=>{const{backgroundColor:X,mixBlendMode:re,...P}=w.overlay;return{height:D,pointerEvents:"none",...P}},[D,w.overlay]);y.useEffect(()=>{const X=C.current;C.current=i,(i===pe.TOOLTIP||i===pe.TOOLTIP_BEFORE)&&X!==pe.TOOLTIP&&X!==pe.TOOLTIP_BEFORE&&h!=="center"?O(!0):i===pe.COMPLETE&&X!==pe.COMPLETE&&O(!1)},[i,h]);const Z=L&&!p&&!N;y.useEffect(()=>{Z?requestAnimationFrame(()=>k(!0)):k(!1)}
205,[Z]);const ae=n&&iz.includes(i),ee=!n&&i!==pe.TOOLTIP;if(l||!N&&(ae||ee))return null;let U="";if(Z)if(f&&E){const X=wn(v??j);if(X){const re=YA(X),P=YA(E);U=ZA(re.left-P.left-x.left,re.top-P.top-x.top,X.offsetWidth+x.left+x.right,X.offsetHeight+x.top+x.bottom,b)}}else U=ZA(S.left,S.top,S.width,S.height,b);const B=rz(z,D,U);return de.createElement("div",{ref:T,"aria-hidden":"true",className:"react-joyride__overlay","data-testid":"overlay",style:V},de.createElement("svg",{className:"react-joyride__spotlight","data-testid":"spotlight",style:{height:D,left:0,position:S.isFixed?"fixed":"absolute",top:0,width:z}},de.createElement("path",{d:B,fill:q,fillRule:"evenodd",onClick:c,style:{cursor:u?"pointer":"default",pointerEvents:"auto"}}),U&&de.createElement("path",{d:U,fill:q,style:{opacity:R?0:1,pointerEvents:t?"auto":"none",transition:"opacity 0.2s"}})))}function I4(a){const{children:t,element:n}=a;return n?sS.createPortal(t,n):null}const cz='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), area[href], [tabindex]:not([tabindex="-1"]), [contenteditable]';function dz(a,t){const n=y.useRef(null);y.useEffect(()=>{if(!a)return iu;n.current=document.activeElement;const l=c=>{if(c.key!=="Tab")return;const u=[...a.querySelectorAll(cz)],{shiftKey:h}=c;if(!u.length)return;c.preventDefault();let f=document.activeElement?u.indexOf(document.activeElement):0;f===-1||!h&&f+1===u.length?f=0:h&&f===0?f=u.length-1:f+=h?-1:1,u[f].focus()};a.addEventListener("keydown",l,!1);let i;{const c=a.querySelector(t);c&&(i=setTimeout(()=>{c.focus({preventScroll:!0})},100))}return()=>{a.removeEventListener("keydown",l),i!==void 0&&clearTimeout(i),n.current?.focus({preventScroll:!0})}},[a,t])}function Ul(a,t,n){const[l]=a.split("-");switch(l){case"top":case"bottom":return{width:t,height:n};case"left":case"right":return{width:n,height:t};default:return null}}function uz(a,t,n){const[l]=a.split("-");switch(l){case"top":return{points:`0,0 ${t/2},${n} ${t},0`,...Ul(a,t,n)};case"bottom":return{points:`${t},${n} ${t/2},0 0,${n}`,...Ul(a,t,n)};case"left":return{points:`0,0 ${n},${t/2} 0,${t}`,...Ul(a,t,n)};case"right":return{points:`${n},${t} ${n},0 0,${t/2}`,...Ul(a,t,n)};default:return null}}function hz(a,t,n,l){if(!t)return{};const[i]=a.split("-");switch(i){case"top":return{bottom:-n,left:t.x??0,...Ul(a,l,n)};case"bottom":return{top:-n,left:t.x??0,...Ul(a,l,n)};case"left":return{right:-n,top:t.y??0,...Ul(a,l,n)};case"right":return{left:-n,top:t.y??0,...Ul(a,l,n)};default:return{}}}function fz({arrowComponent:a,arrowRef:t,base:n,placement:l,position:i,size:c,styles:u}){const h=a;let f=null;if(h){if(!Ul(l,n,c))return null;f=de.createElement("span",{style:{flexShrink:0}},de.createElement(h,{base:n,placement:l,size:c}))}else{const p=uz(l,n,c);if(!p)return null;f=de.createElement("svg",{height:p.height,width:p.width,xmlns:"http://www.w3.org/2000/svg"},de.createElement("polygon",{fill:"currentColor",points:p.points}))}return de.createElement("span",{ref:t,className:"react-joyride__arrow","data-testid":"arrow",style:{...u,...hz(l,i,c,n),...i?{}:{visibility:"hidden"}}},f)}function mz(a){const{beaconComponent:t,continuous:n,index:l,isLastStep:i,locale:c,nonce:u,onInteract:h,shouldFocus:f,size:p,step:x,styles:b}=a,v=y.useRef(null),w=!!t;y.useEffect(()=>{if(w||document.getElementById("joyride-beacon-animation"))return iu;const A=document.createElement("style");A.id="joyride-beacon-animation",u&&A.setAttribute("nonce",u),A.appendChild(document.createTextNode(` 206 @keyframes joyride-beacon-inner { 207 20% { 208 opacity: 0.9; 209 } 210 211 90% { 212 opacity: 0.7; 213 } 214 } 215 216 @keyframes joyride-beacon-outer { 217 0% { 218 transform: scale(1); 219 } 220 221 45% { 222 opacity: 0.7; 223 transform: scale(0.75); 224 } 225 226 100% { 227 opacity: 0.9; 228 transform: scale(1); 229 } 230 } 231 `)),document.head.appendChild(A);const S=setTimeout(()=>{qs.domElement(v.current)&&f&&v.current.focus()},0);return()=>{clearTimeout(S);const C=document.getElementById("joyride-beacon-animation");C?.parentNode&&C.parentNode.removeChild(C)}},[w,u,f]);const j=Ml(c.open);let N;if(t){const A=t;N=de.createElement(A,{continuous:n,index:l,isLastStep:i,size:p,step:x})}else N=de.createElement("span",{style:b.beacon},de.createElement("span",{style:b.beaconOuter}),de.createElement("span",{style:b.beaconInner}));return de.createElement("button",{ref:v,"aria-label":j,className:"react-joyride__beacon","data-testid":"button-beacon",onClick:h,onMouseEnter:h,style:b.beaconWrapper,title:j,type:"button"},N)}function pz({styles:a,...t}){const{color:n,height:l,width:i,...c}=a;return de.createElement("button",{style:c,type:"button",...t},de.createElement("svg",{height:typeof l=="number"?`${l}px`:l,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},de.createElement("g",null,de.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}function xz(a){const{backProps:t,closeProps:n,index:l,isLastStep:i,primaryProps:c,skipProps:u,step:h,tooltipProps:f}=a,{buttons:p,content:x,styles:b,title:v}=h,w={};p.includes("primary")&&(w.primary=de.createElement("button",{"data-testid":"button-primary",style:b.buttonPrimary,type:"button",...c})),p.includes("skip")&&!i&&(w.skip=de.createElement("button",{"aria-live":"off","data-testid":"button-skip",style:b.buttonSkip,type:"button",...u})),p.includes("back")&&l>0&&(w.back=de.createElement("button",{"data-testid":"button-back",style:b.buttonBack,type:"button",...t})),w.close=p.includes("close")&&de.createElement(pz,{"data-testid":"button-close",styles:b.buttonClose,...n});const j=v?{"aria-labelledby":"joyride-tooltip-title","aria-describedby":"joyride-tooltip-content"}:{"aria-label":Ml(x),"aria-describedby":"joyride-tooltip-content"};return de.createElement("div",{key:"JoyrideTooltip",className:"react-joyride__tooltip","data-joyride-step":l,...h.id&&{"data-joyride-id":h.id},style:b.tooltip,...f,...j},de.createElement("div",{style:b.tooltipContainer},v&&de.createElement("h4",{id:"joyride-tooltip-title",style:b.tooltipTitle},v),de.createElement("div",{id:"joyride-tooltip-content",style:b.tooltipContent},x)),p.some(N=>N==="back"||N==="primary"||N==="skip")&&de.createElement("div",{style:b.tooltipFooter},de.createElement("div",{style:b.tooltipFooterSpacer},w.skip),w.back,w.primary),w.close)}function gz(a){const{continuous:t,controls:n,index:l,isLastStep:i,size:c,step:u}=a,h=S=>{S.preventDefault(),n.prev()},f=S=>{S.preventDefault(),u.closeButtonAction==="skip"?n.skip(Po.BUTTON_CLOSE):n.close(Po.BUTTON_CLOSE)},p=S=>{if(S.preventDefault(),!t){n.close(Po.BUTTON_PRIMARY);return}n.next()},x=S=>{S.preventDefault(),n.skip(Po.BUTTON_SKIP)},b=()=>{const{back:S,close:C,last:T,next:L,nextWithProgress:O,skip:R}
231=u.locale,k=Ml(S),E=Ml(C),z=Ml(T),D=Ml(L),q=Ml(R);let V=C,Z=E;if(t){if(V=L,Z=D,u.showProgress&&!i){const ae=Ml(O,{step:l+1,steps:c});V=Wg(O,l+1,c),Z=ae}i&&(V=T,Z=z)}return{backProps:{"aria-label":k,children:S,"data-action":"back",onClick:h,role:"button",title:k},closeProps:{"aria-label":E,children:C,"data-action":"close",onClick:f,role:"button",title:E},primaryProps:{"aria-label":Z,children:V,"data-action":"primary",onClick:p,role:"button",title:Z},skipProps:{"aria-label":q,children:R,"data-action":"skip",onClick:x,role:"button",title:q},tooltipProps:{"aria-modal":!0,role:"alertdialog"}}},{arrowComponent:v,beaconComponent:w,tooltipComponent:j,...N}=u;let A;if(j){const S=j;A=de.createElement(S,{...b(),continuous:t,controls:n,index:l,isLastStep:i,size:c,step:N})}else A=de.createElement(xz,{...b(),continuous:t,controls:n,index:l,isLastStep:i,size:c,step:N});return A}function bz(a){if(a.startsWith("left"))return["top","bottom"];if(a.startsWith("right"))return["bottom","top"]}function yz(a,t,n){return a?[lS()]:t.floatingOptions?.flipOptions===!1?[]:[rS({crossAxis:!1,fallbackPlacements:bz(n),padding:20,...t.floatingOptions?.flipOptions})]}function vz(a){const{continuous:t,controls:n,index:l,lifecycle:i,nonce:c,open:u,portalElement:h,setPositionData:f,setTooltipRef:p,shouldScroll:x,size:b,step:v,target:w,updateState:j}=a,N=y.useRef(null),A=y.useRef({}),S=y.useRef({}),C=v.placement==="center",T=v.placement==="auto",L=y.useMemo(()=>({getBoundingClientRect:()=>({x:window.innerWidth/2,y:window.innerHeight/2,top:window.innerHeight/2,left:window.innerWidth/2,bottom:window.innerHeight/2,right:window.innerWidth/2,width:0,height:0})}),[]),O=y.useMemo(()=>L4(w)?yc(w):void 0,[w]),R=y.useMemo(()=>vc(w),[w]),k=y.useMemo(()=>O?{boundary:O,rootBoundary:"viewport"}:{},[O]),E=C||T?"bottom":v.placement,z=C?"fixed":v.floatingOptions?.strategy??(v.isFixed||R?"fixed":"absolute"),D=y.useMemo(()=>C?[{name:"center",fn:({rects:re})=>({x:(window.innerWidth-re.floating.width)/2,y:(window.innerHeight-re.floating.height)/2})}]:[K2(({placement:re})=>{let P="right";re.startsWith("top")?P="top":re.startsWith("bottom")?P="bottom":re.startsWith("left")&&(P="left");const Y=v.spotlightTarget?0:v.spotlightPadding[P];return v.offset+Y+(v.floatingOptions?.hideArrow?0:v.arrowSize)},[v.offset,v.spotlightPadding,v.spotlightTarget,v.arrowSize,v.floatingOptions?.hideArrow]),...yz(T,v,E),aS({padding:10,...k,...v.floatingOptions?.shiftOptions}),...v.floatingOptions?.hideArrow?[]:[nS({element:N,padding:v.arrowSpacing},[v.arrowSpacing,v.arrowBase])],...v.floatingOptions?.middleware??[]],[C,v,T,E,k]),q=X2({...C?{elements:{reference:L}}:{},placement:E,strategy:z,middleware:D}),V=X2({strategy:z,placement:v.beaconPlacement??(T||C?"bottom":v.placement),middleware:y.useMemo(()=>[K2(v.floatingOptions?.beaconOptions?.offset??-18)],[v.floatingOptions?.beaconOptions?.offset]),whileElementsMounted:Q2});S.current=q.middlewareData,A.current=V.middlewareData,y.useEffect(()=>{const re=q.refs.reference.current,P=q.refs.floating.current;if(!(!re||!P||i!==pe.TOOLTIP))return Q2(re,P,q.update,v.floatingOptions?.autoUpdate)},[i,q.refs.reference,q.refs.floating,q.update,v.floatingOptions?.autoUpdate,v.target]),y.useEffect(()=>{!C&&w&&q.refs.setReference(w),w&&V.refs.setReference(w)},[V.refs,C,w,q.refs]),y.useEffect(()=>{q.isPositioned&&f("tooltip",{placement:q.placement,x:q.x??0,y:q.y??0,middlewareData:S.current})},[f,q.isPositioned,q.placement,q.x,q.y]),y.useEffect(()=>{V.isPositioned&&f("beacon",{placement:V.placement,x:V.x??0,y:V.y??0,middlewareData:A.current})},[f,V.isPositioned,V.placement,V.x,V.y]);const Z=v.zIndex+100,ae=y.useCallback(re=>{re.type==="mouseenter"&&v.beaconTrigger!=="hover"||j({lifecycle:pe.TOOLTIP_BEFORE,positioned:!1})},[v.beaconTrigger,j]),ee=y.useCallback(re=>{re&&(q.refs.setFloating(re),p(re))},[q.refs,p]),{arrow:U,floater:B}=v.styles;let X=null;if(i===pe.TOOLTIP||i===pe.TOOLTIP_BEFORE){const re=XA({...B,...q.floatingStyles,zIndex:Z,opacity:u&&q.isPositioned?1:0,...!u&&{transition:"none"}});X=de.createElement("div",{ref:ee,className:"react-joyride__floater","data-testid":"floater",id:`react-joyride-step-${l}`,style:re},de.createElement(gz,{continuous:t,controls:n,index:l,isLastStep:l+1===b,size:b,step:v}),!C&&!v.floatingOptions?.hideArrow&&de.createElement(fz,{arrowComponent:v.arrowComponent,arrowRef:N,base:v.arrowBase,placement:q.placement,position:q.middlewareData.arrow,size:v.arrowSize,styles:U}))}else(i===pe.BEACON||i===pe.BEACON_BEFORE)&&(X=de.createElement("div",{ref:V.refs.setFloating,className:"react-joyride__floater","data-testid":"floater-beacon",i
231d:`react-joyride-step-${l}-beacon`,style:XA({...V.floatingStyles,zIndex:Z})},de.createElement(mz,{beaconComponent:v.beaconComponent,continuous:t,index:l,isLastStep:l+1===b,locale:v.locale,nonce:c,onInteract:ae,shouldFocus:x,size:b,step:v,styles:v.styles})));return de.createElement(I4,{element:h},X)}function jz(a){const{continuous:t,controls:n,index:l,lifecycle:i,nonce:c,portalElement:u,setPositionData:h,shouldScroll:f,size:p,step:x,updateState:b}=a,[v,w]=y.useState(null);dz(x.disableFocusTrap?null:v,"[data-action=primary]");const j=wn(x.target),N=i===pe.TOOLTIP;return!P4(x)||!qs.domElement(j)?null:de.createElement(vz,{key:`JoyrideStep-${l}`,continuous:t,controls:n,index:l,lifecycle:i,nonce:c,open:N,portalElement:u,setPositionData:h,setTooltipRef:w,shouldScroll:f,size:p,step:x,target:j,updateState:b})}function Az({controls:a,mergedProps:t,state:n,step:l,store:i}){const{continuous:c,debug:u,nonce:h,portalElement:f,scrollToFirstStep:p}=t,x=tz(f),{index:b,lifecycle:v,status:w}=n,j=w===Qe.RUNNING,[N,A]=y.useState(!1),S=y.useRef(null),C=l?.loaderDelay??0;y.useEffect(()=>(n.waiting?C===0?A(!0):S.current=setTimeout(()=>{A(!0)},C):A(!1),()=>{S.current&&(clearTimeout(S.current),S.current=null)}),[C,n.waiting]),y.useEffect(()=>{if(!j)return;const O=R=>{!l||v!==pe.TOOLTIP||R.key==="Escape"&&l.dismissKeyAction&&(l.dismissKeyAction==="next"?a.next():a.close(Po.KEYBOARD))};return document.body.addEventListener("keydown",O,{passive:!0}),()=>{document.body.removeEventListener("keydown",O)}},[a,j,v,l]);const T=y.useCallback(()=>{l?.overlayClickAction==="close"?a.close(Po.OVERLAY):l?.overlayClickAction==="next"&&a.next()},[a,l?.overlayClickAction]);if(!l||!j)return null;const L=n.action===nt.START&&!l.skipBeacon&&l.placement!=="center";return de.createElement(de.Fragment,null,v!==pe.INIT&&de.createElement(jz,{...n,continuous:c,controls:a,debug:u,nonce:h,portalElement:x,setPositionData:i.current.setPositionData,shouldScroll:!l.skipScroll&&(b!==0||p),step:l,updateState:i.current.updateState}),de.createElement(I4,{element:x},de.createElement(de.Fragment,null,N&&de.createElement(az,{nonce:h,step:l}),!L&&de.createElement(oz,{...l,continuous:c,lifecycle:v,onClickOverlay:T,portalElement:f?x:null,scrolling:n.scrolling,waiting:n.waiting}))))}function wz(a){const{controls:t,failures:n,mergedProps:l,state:i,step:c,store:u}=ez(a);return{controls:t,failures:n,on:y.useCallback((h,f)=>u.current.on(h,f),[u]),state:y.useMemo(()=>v0(i,"positioned"),[i]),step:c,Tour:l1()?de.createElement(Az,{controls:t,mergedProps:l,state:i,step:c,store:u}):null}}function Nz(a){const{Tour:t}=wz(a);return t}function _z(a){return l1()?de.createElement(Nz,a):null}function Sz({run:a,onComplete:t}){const[n,l]=y.useState(0),[i,c]=y.useState(window.innerWidth<1024);y.useEffect(()=>{const p=()=>c(window.innerWidth<1024);return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const u=({index:p,step:x,backProps:b,primaryProps:v,skipProps:w,tooltipProps:j,isLastStep:N,size:A})=>{const{title:S,...C}=v,{title:T,...L}=b,{title:O,...R}=w,k=p===0,E=(z,D)=>{D&&D(z),document.body.classList.remove("is-tour-active","tour-steps-running","is-platform-tour-welcome"),t&&t()};return k?e.jsxs("div",{...j,className:"bg-white rounded-[24px] w-[88vw] md:w-[90vw] max-w-[420px] shadow-[0_24px_64px_rgba(0,0,0,0.4)] border border-[#e2e8f0]/80 overflow-hidden font-['Inter',sans-serif] relative mt-2 z-10 mx-auto",children:[e.jsxs("div",{className:"bg-gradient-to-br from-[#f5f3ff] to-[#ede9fe] p-5 md:p-8 pb-8 md:pb-10 flex flex-col items-center justify-center relative border-b border-[#ddd6fe]/50",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle,rgba(124,58,237,0.1)_0%,transparent_70%)] pointer-events-none"}),e.jsx("div",{className:"w-[60px] h-[60px] md:w-[80px] md:h-[80px] rounded-2xl flex items-center justify-center relative z-10 mb-4 md:mb-5 p-2",children:e.jsx("img",{src:"/voicerix-collaps.png",alt:"voicerix Logo",className:"w-full h-full object-contain"})}),e.jsx("h2",{className:"text-[18px] md:text-[24px] font-extrabold text-[#0f172a] relative z-10 tracking-tight text-center m-0 px-2",children:x.title})]}),e.jsxs("div",{className:"p-5 md:p-8 pt-5 md:pt-6 relative bg-white",children:[e.jsx("p",{className:"text-[13px] md:text-[15px] text-[#475569] leading-relaxed text-center mb-6 md:mb-8 font-medium",children:x.content}),e.jsx("button",{...C,className:"w-full bg-gradient-to-b from-[#7c3aed] to-[#6d28d9] text-white text-[14px] md:text-[15px] font-bold py-3 md:py-3.5 rounded-xl transition-all shadow-md outline-none cursor-pointer",children:"Let's Get Started"}),e.jsx("button",{...R,onClick:z=>E(z,R.onClick),className:"w-full mt-4 text-[#94a3b8] text-[12px] md:text-[13px] font-semibold bg-transparent border-none outline-none cursor-pointer",children:"Skip the tour for now"})]})]}):e.jsx("div",{...j,className:"bg-white rounded-[20px] p-1 w-[88vw] md:w-[92vw] max-w-[380px] shadow-[0_24px_64px_rgba(0,0,0,0.18)] border border-[#e2e8f0]/80 font-['Inter',sans-serif] relative mt-2 mx-auto",children:e.jsxs("div",{className:"bg-white rounded-[16px] p-2 md:p-4 relative h-full",children:[e.jsx("button",{...R,onClick:z=>E(z,R.onClick),className:"absolute top-3 right-3 md:top-4 md:right-4 text-[#94a3b8] hover:text-[#ef4444] outline-none bg-white rounded-full p-1 cursor-pointer border-none z-10",children:e.jsx(e4,{size:16,"md:size":18,strokeWidth:2.5})}),i&&x.menuLabel&&e.jsxs("div",{className:"flex flex-col items-center justify-center mb-5 pt-2 bg-[#f8fafc] rounded-2xl p-3 border border-[#e2e8f0]",children:[e.jsx("p",{className:"text-[9px] font-black text-[#94a3b8] uppercase tracking-widest mb-2",children:"Navigation Path"}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-white px-2.5 py-2 rounded-xl shadow-[0_2px_10px_rgba(0,0,0,0.04)] border border-slate-200 w-full justify-center",children:[e.jsxs("div",{className:"flex items-center gap-1 text-slate-600",children:[e.jsx(Ub,{size:14}),e.jsx("span",{className:"text-[11px] font-bold whitespace-nowrap",children:"Sidebar"})]}),e.jsx(G5,{className:"text-slate-300 mx-0.5 animate-pulse shrink-0",size:14}),e.jsxs("div",{className:"flex items-center gap-1 text-[#7c3aed] min-w-0",children:[e.jsx("div",{className:"shrink-0",children:de.cloneElement(x.icon,{size:14})}),e.jsx("span",{className:"text-[11px] font-bold whitespace-nowrap truncate",children:x.menuLabel})]})]})]}),e.jsxs("div",{className:`flex items-center gap-3 md:gap-4 mb-3 pr-6 ${i?"justify-center text-center":""}`,children:[!i&&e.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 shrink-0 rounded-xl md:rounded-2xl bg-gradient-to-br from-[#7c3aed] to-[#a78bfa] flex items-center justify-center text-white shadow-lg",children:x.icon}),e.jsx("div",{children:e.jsx("h3",{className:"text-[16px] md:text-[18px] font-extrabold text-[#0f172a] leading-tight m-0 tracking-tight",children:x.title})})]}),e.jsx("div",{className:`text-[12.5px] md:text-[14.5px] text-[#475569] leading-[1.6] mb-5 md:mb-8 font-medium ${i?"text-center px-1":""}`,children:x.content}),e.jsxs("div",{className:"flex items-center justify-between mt-2 md:mt-4",children:[e.jsx("div",{className:"flex gap-1 items-center",children:Array.from({length:A-1}).map((z,D)=>e.jsx("div",{className:`h-1.5 rounded-full transition-all duration-500 ${D===p-1?"w-4 md:w-5 bg-[#7c3aed]":"w-1.5 bg-[#cbd5e1]"}`},D))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{...L,className:"text-[#64748b] text-[12px] md:text-[14px] font-semibold py-2 px-2 md:px-3 rounded-lg cursor-pointer bg-transparent border-none",children:"Back"}),e.jsx("button",{...C,onClick:z=>{N?E(z,C.onClick):C.onClick&&C.onClick(z)},className:"bg-gradient-to-b from-[#7c3aed] to-[#6d28d9] text-white text-[12px] md:text-[14px] font-bold py-2 md:py-2.5 px-4 md:px-6 rounded-xl cursor-pointer shadow-md outline-none border border-[#7c3aed]",children:N?"Launch VoiceRix":"Next"})]})]})]})})},h=[{target:"body",title:"Welcome to VoiceRix!",content:"We're thrilled to have you here. Let's take a quick tour to configure your AI workforce so you can launch your first intelligent voice campaign today.",placement:"center",disableBeacon:!0},{target:i?"body":".tour-step-profile",title:"1. Account Verification",menuLabel:"Company Profile",content:"To ensure compliance and unlock telephony features, please navigate to your Company Profile to complete the KYC verification process.",placement:i?"center":"right",disableBeacon:!0,icon:e.jsx(gu,{size:22})},{target:i?"body":".tour-step-integrations",title:"2. Configure Integrations",menuLabel:"Integrations",content:"Connect your preferred telephony providers to establish the Caller IDs your AI agents will utilize for outbound communications.",placement:i?"center":"right",disableBeacon:!0,icon:e.jsx(mc,{size:22})},{target:i?"body":".tour-step-agents",title:"3. Build your Agents",menuLabel:"Agents",content:"Customize your AI's voice, define its conversational personality, and link it directly to your Knowledge Base for seamless interactions.",placement:i?"center":"right",disableBeacon:!0,icon:e.jsx(Bb,{size:24})},{target:i?"body":".tour-step-campaigns",title:"4. Launch Campaigns",menuLabel:"Campaigns",content:"Upload your contact lists to execute large-scale outreach. Monitor real-time analytics and call outcomes directly from your Dashboard.",placement:i?"center":"right",disableBeacon:!0,icon:e.jsx(fT,{size:24})}],f=p=>{const{type:x,index:b,status:v}=p;x==="step:before"&&(l(b),b>0&&document.body.classList.add("is-tour-active","tour-steps-running"),b===0?(d
231ocument.body.classList.add("is-platform-tour-welcome"),document.body.classList.remove("is-tour-active")):document.body.classList.remove("is-platform-tour-welcome")),(v==="finished"||v==="skipped"||x==="tour:end")&&document.body.classList.remove("is-tour-active","tour-steps-running","is-platform-tour-welcome")};return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:` 232 body.is-platform-tour-welcome #root { filter: blur(6px); pointer-events: none; user-select: none; } 233 body.is-platform-tour-welcome .react-joyride__tooltip { filter: none !important; pointer-events: auto; } 234 .react-joyride__overlay, .react-joyride__spotlight { filter: none !important; } 235 236 /* Add a subtle bounce animation for the mobile icon */ 237 @keyframes bounce-subtle { 238 0%, 100% { transform: translateY(-2%); } 239 50% { transform: translateY(2%); } 240 } 241 .animate-bounce { animation: bounce-subtle 2s infinite ease-in-out; } 242 `}),e.jsx(_z,{steps:h,run:a,continuous:!0,scrollToFirstStep:!0,showProgress:!1,showSkipButton:!0,tooltipComponent:u,floaterProps:{hideArrow:!0,disableAnimation:i},callback:f,styles:{options:{zIndex:5e3,arrowColor:"transparent",overlayColor:n===0?"rgba(15, 23, 42, 0.65)":"rgba(15, 23, 42, 0.55)"},overlay:{mixBlendMode:"normal",backdropFilter:n===0?"blur(6px)":"none",WebkitBackdropFilter:n===0?"blur(6px)":"none"}}})]})}const kz="https://backend.voicerix.ai",Cz=`${kz}/api`,xe=Me.create({baseURL:Cz,headers:{"Content-Type":"application/json"}});xe.interceptors.request.use(a=>{const t=localStorage.getItem("admin_token");return t&&(a.headers.Authorization=`Bearer ${t}`),a});xe.interceptors.response.use(a=>a,a=>(a.response?.status===401&&(localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),window.location.href="/auth/login"),Promise.reject(a)));const Rd={login:(a,t)=>xe.post("/auth/admin/login",{email:a,password:t}),verify:()=>xe.get("/auth/admin/verify"),getProfile:()=>xe.get("/user/profile")},An={getStats:()=>xe.get("/dashboard/stats"),getUserGrowth:(a=30)=>xe.get(`/dashboard/user-growth?days=${a}`),getCallVolume:(a=30)=>xe.get(`/dashboard/call-volume?days=${a}`),getRevenue:(a=30)=>xe.get(`/dashboard/revenue?days=${a}`),getProviderUsage:()=>xe.get("/dashboard/provider-usage"),getRecentActivity:(a=10)=>xe.get(`/dashboard/recent-activity?limit=${a}`)},Mo={getAll:a=>xe.get("/users",{params:a}),getById:a=>xe.get(`/users/${a}`),getStats:()=>xe.get("/users/stats"),suspend:a=>xe.post(`/users/${a}/suspend`),activate:a=>xe.post(`/users/${a}/activate`),delete:a=>xe.delete(`/users/${a}`)},JA={getByStatus:(a,t)=>xe.get("/admin/kyc",{params:{status:a,...t}}),updateStatus:(a,t)=>xe.patch(`/admin/kyc/${a}/status`,t)},Od={getTemplates:()=>xe.get("/admin/packages/templates"),createTemplate:a=>xe.post("/admin/packages/templates",a),updateTemplate:(a,t)=>xe.patch(`/admin/packages/templates/${a}`,t),deleteTemplate:a=>xe.delete(`/admin/packages/templates/${a}`),getTemplateUsers:a=>xe.get(`/admin/packages/templates/${a}/users`)},Zf={getAll:a=>xe.get("/agents",{params:a}),getStats:()=>xe.get("/agents/stats"),getPerformance:a=>xe.get(`/agents/${a}/performance`)},Jf={getAll:a=>xe.get("/knowledge-bases",{params:a}),getStats:()=>xe.get("/knowledge-bases/stats"),getDetails:a=>xe.get(`/knowledge-bases/${a}/details`)},Gd={getAll:a=>xe.get("/integrations",{params:a}),getStats:()=>xe.get("/integrations/stats"),getUsage:a=>xe.get(`/integrations/${a}/usage`),getProviders:()=>xe.get("/admin/integrations/providers"),createProvider:a=>xe.post("/admin/integrations/providers",a),updateProviderStatus:(a,t)=>xe.patch(`/admin/integrations/providers/${a}/status`,t),updateProvider:(a,t)=>xe.patch(`/admin/integrations/providers/${a}`,t)},oc={getAll:a=>xe.get("/transactions",{params:a}),getStats:()=>xe.get("/transactions/stats"),getById:a=>xe.get(`/transactions/${a}`)},V4={getRevenue:(a="30d")=>xe.get(`/reports/revenue?period=${a}`),getUsers:()=>xe.get("/reports/users")},Px={getTemplates:()=>xe.get("/admin/email-templates"),createTemplate:a=>xe.post("/admin/email-templates",a),updateTemplate:(a,t)=>xe.patch(`/admin/email-templates/${a}`,t)},Ys={getAll:a=>xe.get("/companies",{params:a}),getStats:()=>xe.get("/companies/stats"),getById:a=>xe.get(`/companies/${a}`),getMembers:(a,t)=>xe.get(`/companies/${a}/members`,{params:t}),getResources:a=>xe.get(`/companies/${a}/resources`)},F4={getAll:a=>xe.get("/calls",{params:a}),getLive:a=>xe.get("/calls/live",{params:a}),getDetails:a=>xe.get(`/calls/${a}`),getTypes:()=>xe.get("/calls/types")},Ez={getAll:a=>xe.get("/web-calls",{params:a})},H4=y.createContext(null),Tz=({children:a})=>{const[t,n]=y.useState(()=>{try{const f=localStorage.getItem("admin_token"),p=localStorage.getItem("admin_user");if(f&&!Yd(f)){const x=_x(f);return{...p?JSON.parse(p):{},...x}}}catch(f){console.error("[AuthContext] Error initializing auth state:",f)}return null}),[l,i]=y.useState(()=>{const f=localStorage.getItem("admin_token");return!!f&&!Yd(f)}),c=y.useCallback(()=>{console.log("[Admin Auth] Logging out..."),localStorage.removeItem("admin_token"),localStorage.removeItem("admin_user"),n(null),i(!1)},[]),u=y.useCallback(async()=>{try{console.log("[Admin Auth] Verifying token with server...");const p=(await Rd.verify()).data.admin,x=localStorage.getItem("admin_token"),b=_x(x);console.log("[Admin Auth] Token verified successfully");const v=Object.fromEntries(Object.entries(b||{}).filter(([j,N])=>N!=null));let w={...p,...v};if(!w.role){console.log("[Admin Auth] Role missing in verify response, fetching profile...");try{const j=await Rd.getProfile();j.data.success&&j.data.user&&(w.role=j.data.user.role)}catch(j){console.error("[Admin Auth] Failed to fetch profile:",j.message)}}n(w),localStorage.setItem("admin_user",JSON.stringify(p))}catch(f){if(f.response?.status===404){console.warn("[Admin Auth] Verification endpoint not found (404). Backend admin implementation may be incomplete."),console.log("[Admin Auth] Proceeding with local token session..."),i(!1);return}console.error("[Admin Auth] Token verification failed:",f.response?.data||f.message),c()}finally{i(!1)}},[c]);y.useEffect(()=>{const f=localStorage.getItem("admin_token");f&&(Yd(f)?c():u())},[u,c]);const h=async(f,p)=>{try{console.log("[Admin Auth] Attempting login...");const x=await Rd.login(f,p),{token:b,admin:v}=x.data;console.log("[Admin Auth] Login successful"),localStorage.setItem("admin_token",b);const w=_x(b),j=Object.fromEntries(Object.entries(w||{}).filter(([A,S])=>S!=null));let N={...v,...j};if(!N.role){console.log("[Admin Auth] Role missing in login response, fetching profile...");try{const A=await Rd.getProfile();A.data.success&&A.data.user&&(N.role=A.data.user.role,console.log("[Admin Auth] Role fetched from profile:",N.role))}catch(A){console.error("[Admin Auth] Failed to fetch profile:",A.message)}}return localStorage.setItem("admin_user",JSON.stringify(v)),n(N),{success:!0}}catch(x){return console.error("[Admin Auth] Login failed:",x.response?.data||x.message),{success:!1,error:x.response?.data?.detail||x.response?.data?.error||"Login failed"}}};return e.jsx(H4.Provider,{value:{user:t,loading:l,login:h,logout:c},children:a})},U0=()=>{const a=y.useContext(H4);if(!a)throw new Error("useAuth must be used within AuthProvider");return a},q4=y.createContext(null),Rz=({children:a})=>{const[t,n]=y.useState({}),l=y.useCallback((i,c)=>{n(u=>({...u,[i]:c}))},[]);return e.jsx(q4.Provider,{value:{labels:t,setLabel:l},children:a})},qr=()=>y.useContext(q4),Oz=({children:a})=>{const{user:t,loading:n}=U0();if(n)return e.jsx("div",{className:"flex items-center justify-center h-screen",children:e.jsx(Ge,{size:48,className:"animate-spin text-primary-600"})});const l=t&&(t.role==="super_admin"||t.role==="superadmin");return!t||!l?(console.warn("[Admin Auth] Access denied: User not authenticated or lacks super admin role"),e.jsx(bn,{to:"/auth/login",replace:!0})):a},Mz=()=>{const a=Os(),[t,n]=y.useState({});y.useEffect(()=>{const c=a.pathname,u={};c.startsWith("/admin/kyc-management")&&(u["KYC Management"]=!0),c.startsWith("/admin/packages")&&(u["Packages & Billing"]=!0),c.startsWith("/admin/calls")&&(u["Call Monitoring"]=!0),(c.startsWith("/admin/agents")||c.startsWith("/admin/knowledge-bases"))&&(u["Agents & KB"]=!0),c.startsWith("/admin/integrations")&&(u.Integrations=!0),c.startsWith("/admin/reports")&&(u.Reports=!0),c.startsWith("/admin/settings")&&(u.Settings=!0),n(u)},[a.pathname]);const l=c=>{n(u=>({...u,[c]:!u[c]}))},i=[{name:"Dashboard",icon:g9,path:"/admin/dashboard"},{name:"Companies",icon:Er,path:"/admin/companies"},{name:"Users",icon:qa,path:"/admin/users"},{name:"KYC Management",icon:Gb,path:"/admin/kyc-management"},{name:"Packages & Billing",icon:Ha,submenu:[{name:"Package Templates",path:"/admin/packages/templates"},{name:"Active Subscriptions",path:"/admin/packages/subscriptions"},{name:"Transactions",path:"/admin/packages/transactions"}]},{name:"Call Monitoring",icon:At,submenu:[{name:"Live Calls",path:"/admin/calls/live"},{name:"All Calls",path:"/admin/calls"},{name:"Web Calls",path:"/admin/calls/web"},{name:"Call Analytics",path:"/admin/calls/analytics"}]},{name:"Agents & KB",icon:Pl,submenu:[{name:"All Agents",path:"/admin/agents"},{name:"System Prompts",path:"/admin/agents/prompts"},{name:"Knowledge Bases",path:"/admin/knowledge-bases"},{name:"Performance",path:"/admin/agents/performance"}]},{name:"Integrations",icon:zr,submenu:[{name:"Provider Status",path:"/admin/integrations/status"},{name:"Usage Stats",path:"/admin/integrations/stats"},{name:"Management",path:"/admin/integrations/manage"}]},{name:"Reports",icon:Tn,submenu:[{name:"User Reports",path:"/admin/reports/users"},{name:"Revenue Reports",path:"/admin/reports/revenue"},{name:"Call Reports",path:"/admin/reports/calls"},{name:"System Health",path:"/admin/reports/system"}]},{name:"Settings",icon:Yb,submenu:[{name:"Roles & Permissions",path:"/admin/settings/roles"},{name:"Email Templates",path:"/admin/settings/email"},{name:"Platform Config",path:"/admin/settings/config"},{name:"Audit Logs",path:"/admin/settings/audit"}]},{name:"Support",icon:KT,path:"/admin/support",badge:"Future"}];return e.jsxs("div",{className:"h-screen w-64 bg-sidebar-bg text-white flex flex-col fixed left-0 top-0 overflow-y-auto",children:[e.jsxs("div",{className:"p-6 border-b border-gray-700 flex flex-col items-start",children:[e.jsx("img",{src:"/logo.png",alt:"
242Voicerix Logo",className:"h-16 w-auto object-contain"}),e.jsx("p",{className:"text-xs text-gray-400 pl-32",children:"Admin Panel"})]}),e.jsx("nav",{className:"flex-1 py-4",children:i.map(c=>e.jsx("div",{children:c.submenu?e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>l(c.name),className:"w-full flex items-center justify-between px-6 py-3 text-gray-300 hover:bg-sidebar-hover transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(c.icon,{size:20}),e.jsx("span",{children:c.name})]}),t[c.name]?e.jsx(UT,{size:16}):e.jsx(Ms,{size:16})]}),t[c.name]&&e.jsx("div",{className:"bg-slate-800/50",children:c.submenu.map(u=>e.jsx(rg,{to:u.path,end:!0,className:({isActive:h})=>`block pl-14 pr-6 py-2.5 text-sm ${h?"text-primary-400 bg-primary-900/20 border-l-4 border-primary-400":"text-gray-400 hover:text-white hover:bg-sidebar-hover"} transition-colors`,children:u.name},u.path))})]}):e.jsxs(rg,{to:c.path,className:({isActive:u})=>`flex items-center gap-3 px-6 py-3 ${u?"bg-primary-600 text-white":"text-gray-300 hover:bg-sidebar-hover"} transition-colors`,children:[e.jsx(c.icon,{size:20}),e.jsx("span",{children:c.name}),c.badge&&e.jsx("span",{className:"ml-auto text-xs bg-yellow-500 text-black px-2 py-0.5 rounded",children:c.badge})]})},c.name))}),e.jsxs("div",{className:"p-4 border-t border-gray-700 text-xs text-gray-500",children:[e.jsx("p",{children:"© 2026 VoiceRix"}),e.jsx("p",{children:"Version 1.0.0"})]})]})},zz=()=>{const{user:a,logout:t}=U0(),{labels:n}=qr(),l=gt(),i=Os(),c=()=>{t(),l("/auth/login")},h=(()=>{const p=i.pathname.split("/").filter(Boolean),x={dashboard:"Dashboard",companies:"Companies",users:"All Users","kyc-management":"KYC Management",packages:"Packages & Billing",templates:"Package Templates",subscriptions:"Active Subscriptions",transactions:"Transactions",revenue:"Revenue Reports",calls:"Call Monitoring",live:"Live Calls",web:"Web Calls",analytics:"Call Analytics",agents:"Agents & KB",prompts:"System Prompts","knowledge-bases":"Knowledge Bases",performance:"Performance",integrations:"Integrations",status:"Provider Status",stats:"Usage Stats",reports:"Reports",system:"System Health",settings:"Settings",roles:"Roles & Permissions",email:"Email Templates",config:"Platform Config",audit:"Audit Logs",support:"Support","human-transfers":"Human Transfers",campaigns:"Campaigns",callbacks:"Callbacks"},b=[];let v="";return p.forEach((w,j)=>{v+=`/${w}`;const N=n[w]||x[w]||w;b.push({name:N,path:v,isLast:j===p.length-1})}),b})();return e.jsxs("header",{className:"bg-white border-b border-gray-200 h-16 flex items-center justify-between px-6 fixed top-0 right-0 left-64 z-10",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(as,{to:"/admin/dashboard",className:"flex items-center gap-1 text-gray-500 hover:text-blue-600 transition-colors",children:e.jsx(i4,{size:16})}),h.map((f,p)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ms,{size:14,className:"text-gray-400"}),f.isLast?e.jsx("span",{className:"font-bold text-gray-900",children:f.name}):e.jsx(as,{to:f.path,className:"text-gray-500 hover:text-blue-600 transition-colors font-medium",children:f.name})]},f.path))]})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("button",{className:"relative p-2 text-gray-600 hover:bg-gray-100 rounded-full transition-colors",children:[e.jsx(kT,{size:20}),e.jsx("span",{className:"absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"})]}),e.jsxs("div",{className:"flex items-center gap-3 pl-4 border-l border-gray-200",children:[e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-sm font-medium text-gray-800",children:a?.name}),e.jsx("p",{className:"text-xs text-gray-500",children:a?.email})]}),e.jsx("div",{className:"w-10 h-10 bg-primary-100 rounded-full flex items-center justify-center",children:e.jsx(Hn,{size:20,className:"text-primary-600"})}),e.jsx("button",{onClick:c,className:"p-2 text-gray-600 hover:bg-gray-100 rounded-full transition-colors",title:"Logout",children:e.jsx(A9,{size:20})})]})]})]})},Lz=()=>e.jsxs("div",{className:"flex h-screen bg-gray-50",children:[e.jsx(Mz,{}),e.jsxs("div",{className:"flex-1 ml-64 flex flex-col",children:[e.jsx(zz,{}),e.jsx("main",{className:"flex-1 mt-16 overflow-y-auto",children:e.jsx(mu,{})})]})]}),$A="/assets/logo-6wyVsF6S.png",Dz=()=>{const[a,t]=y.useState({email:"",password:""}),[n,l]=y.useState(""),[i,c]=y.useState(!1),{login:u}=U0(),h=gt(),f=async p=>{p.preventDefault(),l(""),c(!0),console.log("[Admin Login] Attempting login
242with:",a.email);const x=await u(a.email,a.password);console.log("[Admin Login] Result:",x),x.success?(console.log("[Admin Login] Success! Redirecting to /admin/dashboard"),h("/admin/dashboard")):(console.error("[Admin Login] Failed:",x.error),l(x.error)),c(!1)};return e.jsxs("div",{className:"min-h-screen bg-white flex flex-col lg:flex-row overflow-hidden font-sans antialiased",children:[e.jsxs("div",{className:"hidden lg:flex lg:w-[45%] bg-[#0F172A] p-16 flex-col justify-between relative",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.05]",style:{backgroundImage:"radial-gradient(#fff 1px, transparent 1px)",backgroundSize:"30px 30px"}}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:"mb-16",children:e.jsx("img",{src:$A,alt:"Oviyaa Logo",className:"h-12 w-auto object-contain brightness-0 invert"})}),e.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-8",children:["Advanced control for your ",e.jsx("br",{}),e.jsx("span",{className:"text-blue-500",children:"AI ecosystem."})]}),e.jsx("div",{className:"space-y-5",children:["Enterprise-grade agent monitoring","Secure multi-tenant architecture","Real-time analytics and insights"].map((p,x)=>e.jsxs("div",{className:"flex items-center gap-3 text-slate-400",children:[e.jsx(M0,{size:18,className:"text-blue-500"}),e.jsx("span",{className:"text-sm font-medium",children:p})]},x))})]}),e.jsx("div",{className:"relative z-10 text-slate-500 text-xs font-bold tracking-widest uppercase",children:"Verified Administrator Access Only"})]}),e.jsx("div",{className:"flex-1 flex items-center justify-center p-8 bg-slate-50 lg:bg-white",children:e.jsxs("div",{className:"w-full max-w-[380px]",children:[e.jsx("div",{className:"lg:hidden flex justify-center mb-10",children:e.jsx("img",{src:$A,alt:"Oviyaa Logo",className:"h-10 w-auto object-contain"})}),e.jsxs("div",{className:"mb-10 text-center lg:text-left",children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-2",children:"Sign in to Console"}),e.jsx("p",{className:"text-slate-500 text-sm",children:"Enter your credentials to manage your agents."})]}),n&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 rounded-xl flex items-center gap-3 text-red-600",children:[e.jsx(aa,{size:18}),e.jsx("p",{className:"text-sm font-bold",children:n})]}),e.jsxs("form",{onSubmit:f,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider ml-1",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(Hr,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"email",value:a.email,onChange:p=>t({...a,email:p.target.value}),className:"w-full pl-12 pr-4 py-3.5 bg-white border border-slate-200 rounded-xl text-slate-900 font-medium focus:border-blue-600 focus:ring-0 outline-none transition-all",placeholder:"",required:!0})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider ml-1",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(N9,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"password",value:a.password,onChange:p=>t({...a,password:p.target.value}),className:"w-full pl-12 pr-4 py-3.5 bg-white border border-slate-200 rounded-xl text-slate-900 font-medium focus:border-blue-600 focus:ring-0 outline-none transition-all",placeholder:"",required:!0})]})]}),e.jsx("button",{type:"submit",disabled:i,className:"w-full bg-slate-900 text-white py-4 rounded-xl font-bold text-sm hover:bg-black active:scale-[0.98] transition-all disabled:opacity-50 flex items-center justify-center gap-2",children:i?e.jsx(Ge,{size:18,className:"animate-spin"}):"Sign In"})]}),e.jsx("p",{className:"mt-12 text-center text-slate-400 text-[10px] font-bold uppercase tracking-[2px]",children:"© 2026 VoiceRix AI ⢠System Secure"})]})})]})},Bz=()=>{const[a,t]=y.useState(null),[n,l]=y.useState([]),[i,c]=y.useState([]),[u,h]=y.useState([]),[f,p]=y.useState([]),[x,b]=y.useState([]),[v,w]=y.useState(!0),[j,N]=y.useState(null);y.useEffect(()=>{A()},[]);const A=async()=>{try{N(null);const[C,T,L,O,R,k,E]=await Promise.all([An.getStats(),An.getUserGrowth(30),An.getCallVolume(30),An.getRevenue(30),An.getProviderUsage(),An.getRecentActivity(10),oc.getStats()]),z={...C.data.stats,total_revenue:E.data.total_revenue||0,monthly_revenue:E.data.monthly_revenue||0,active_subscriptions:E.data.active_subscriptions||0};t(z),l(T.data.data||[]),c(L.data.data||[]),h(O.data.data||[]),p(R.data.data||[]),b(k.data.activities||[])}catch(C){console.error("Error fetching dashboard data:",C),N(C.response?.data?.detail||C.message||"Failed to load dashboard data"),t({total_users:0,user_growth:0,new_users_today:0,active_calls:0,total_calls:0,total_revenue:0,system_health:0,total_agents:0,total_kbs:0,calls_this_month:0}),l([]),c([]),h([]),p([]),b([])}finally{w(!1)}};if(v)return e.jsx("div",{className:"flex items-center justify-center h-screen",children:e.jsx(Ge,{size:48,className:"animate-spin text-blue-600"})});if(j)return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-3xl p-8 text-center",children:[e.jsx("div",{className:"text-red-600 text-6xl mb-4",children:"â ï¸"}),e.jsx("h2",{className:"text-2xl font-bold text-red-900 mb-2",children:"Failed to Load Dashboard"}),e.jsx("p",{className:"text-red-700 mb-4",children:j}),e.jsx("button",{onClick:A,className:"px-6 py-3 bg-red-600 text-white rounded-xl hover:bg-red-700 transition-colors font-semibold",children:"Retry"}),e.jsxs("div",{className:"mt-6 text-left bg-white p-4 rounded-xl",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:e.jsx("strong",{children:"Troubleshooting:"})}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1 list-disc list-inside",children:[e.jsx("li",{children:"Check if the backend server is running"}),e.jsxs("li",{children:["Verify the API URL in .env file: ",e.jsx("code",{className:"bg-gray-100 px-2 py-1 rounded",children:"https://backend.voicerix.ai"})]}),e.jsx("li",{children:"Check browser console for detailed error messages"}),e.jsx("li",{children:"Ensure your admin token is valid"})]})]})]})})});const S=["#0ea5e9","#8b5cf6","#ec4899","#f59e0b","#10b981"];return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsxs("div",{className:"max-w-7xl mx-auto
242space-y-8",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-blue-600 rounded-2xl flex items-center justify-center shadow-lg shadow-blue-200",children:e.jsx(Bt,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Dashboard"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Platform overview and statistics"})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[e.jsx(fi,{title:"Total Users",value:a?.total_users||0,change:a?.user_growth||0,subtitle:`${a?.new_users_today||0} new today`,icon:qa,color:"blue"}),e.jsx(fi,{title:"Active Calls",value:a?.active_calls||0,subtitle:`${a?.total_calls||0} total calls`,icon:At,color:"green"}),e.jsx(fi,{title:"Total Revenue",value:`â¹${(a?.total_revenue||0).toLocaleString()}`,subtitle:"All time",icon:Tr,color:"purple"}),e.jsx(fi,{title:"System Health",value:`${a?.system_health||0}%`,subtitle:"Uptime",icon:Bt,color:"orange"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[e.jsx(fi,{title:"AI Agents",value:a?.total_agents||0,subtitle:"Active agents",icon:Pl,color:"blue"}),e.jsx(fi,{title:"Knowledge Bases",value:a?.total_kbs||0,subtitle:"Documents indexed",icon:Ti,color:"purple"}),e.jsx(fi,{title:"Calls This Month",value:a?.calls_this_month||0,subtitle:"Last 30 days",icon:ic,color:"green"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"User Growth (Last 30 Days)"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Kg,{data:n,children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(Xg,{type:"monotone",dataKey:"users",stroke:"#0ea5e9",strokeWidth:2,name:"New Users"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Call Volume Trends"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(jw,{data:i,children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(Jx,{dataKey:"total",fill:"#0ea5e9",name:"Total Calls"}),e.jsx(Jx,{dataKey:"completed",fill:"#10b981",name:"Completed"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Revenue Analytics"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(iS,{data:u,children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(oS,{type:"monotone",dataKey:"revenue",stroke:"#8b5cf6",fill:"#8b5cf6",fillOpacity:.3,name:"Revenue (â¹)"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Provider Usage"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Qg,{children:[e.jsx(Zg,{data:f,cx:"50%",cy:"50%",labelLine:!1,label:C=>`${C.provider}: ${C.total}`,outerRadius:80,fill:"#8884d8",dataKey:"total",children:f.map((C,T)=>e.jsx(Jg,{fill:S[T%S.length]},`cell-${T}`))}),e.jsx(Dl,{})]})})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Recent Activity"}),e.jsx("div",{className:"space-y-3",children:x.length>0?x.map((C,T)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-slate-50 rounded-2xl",children:[e.jsx("div",{className:`w-2 h-2 rounded-full mt-2 ${C.type==="user_signup"?"bg-green-500":"bg-blue-500"}`}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm text-slate-800 font-semibold",children:C.message}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:new Date(C.timestamp).toLocaleStr
242ing()})]})]},T)):e.jsx("p",{className:"text-slate-500 text-center py-8",children:"No recent activity"})})]})]})})},fi=({title:a,value:t,change:n,subtitle:l,icon:i,color:c})=>{const u={blue:"bg-blue-50 text-blue-600 border-blue-200",green:"bg-green-50 text-green-600 border-green-200",purple:"bg-purple-50 text-purple-600 border-purple-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm hover:shadow-lg transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:`p-3 rounded-2xl border ${u[c]}`,children:e.jsx(i,{size:24})}),n!==void 0&&e.jsxs("div",{className:`flex items-center gap-1 text-sm font-semibold ${n>=0?"text-green-600":"text-red-600"}`,children:[n>=0?e.jsx(Vi,{size:16}):e.jsx(fR,{size:16}),Math.abs(n),"%"]})]}),e.jsx("h3",{className:"text-3xl font-black text-slate-900 mb-1",children:t}),e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),l&&e.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["· ",l]})]})},mi=({title:a,description:t})=>e.jsx("div",{className:"flex flex-col items-center justify-center h-[calc(100vh-8rem)] p-6",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex p-6 bg-primary-50 rounded-full mb-6",children:e.jsx(JT,{size:64,className:"text-primary-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-800 mb-3",children:a}),e.jsx("p",{className:"text-gray-600 max-w-md",children:t||"This section will be implemented soon."}),e.jsx("div",{className:"mt-8 p-4 bg-blue-50 border border-blue-200 rounded-lg inline-block",children:e.jsx("p",{className:"text-sm text-blue-800",children:"Coming in the next update!"})})]})}),Pz=({userId:a,onClose:t})=>{const[n,l]=y.useState(null),[i,c]=y.useState(!0),[u,h]=y.useState(null),[f,p]=y.useState(""),[x,b]=y.useState(""),[v,w]=y.useState("all"),j=L=>{if(!L)return"";const O="http://localhost:5002/api",R=localStorage.getItem("admin_token")||"";return`${O}/admin/recording-proxy?url=${encodeURIComponent(L)}&token=${R}`},N=L=>`${j(L)}&download=true`,A=L=>L==null?"N/A":Array.isArray(L)?L.join(", "):typeof L=="object"?JSON.stringify(L):L;y.useEffect(()=>{a&&S()},[a]);const S=async()=>{try{c(!0);const L=await Mo.getById(a);l(L.data)}catch(L){console.error("Error fetching user details:",L)}finally{c(!1)}},C=y.useMemo(()=>{if(!n?.recent_calls)return[];let L=[...n.recent_calls];return f&&(L=L.filter(O=>O.phone?.toLowerCase().includes(f.toLowerCase()))),x&&(L=L.filter(O=>new Date(O.date).toISOString().split("T")[0]===x)),v!=="all"&&(L=L.filter(O=>O.type===v)),L},[n,f,x,v]),T=()=>{h(null)};return a?u?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:t}),e.jsxs("div",{className:"fixed right-0 top-0 h-full w-full md:w-2/3 lg:w-1/2 xl:w-2/5 bg-white shadow-2xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"sticky top-0 bg-primary-600 text-white p-6 flex items-center justify-between z-10",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:T,className:"p-2 hover:bg-primary-700 rounded-full transition-colors",children:e.jsx(Fr,{size:24})}),e.jsx("h2",{className:"text-2xl font-bold",children:"Call Details"})]}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-primary-700 rounded-full transition-colors",children:e.jsx(ls,{size:24})})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-primary-50 p-6 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-primary-600 rounded-full flex items-center justify-center text-white",children:e.jsx(ic,{size:24})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-800",children:u.phone||"Unknown Number"}),e.jsx("p",{className:"text-sm text-gray-600",children:new Date(u.date).toLocaleString()})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${u.status==="completed"?"bg-green-100 text-green-800":u.status==="failed"?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800"}`,children:u.status}),e.jsxs("span",{className:"px-3 py-1 rounded-full text-sm font-semibold bg-blue-100 text-blue-800",children:["Duration: ",u.duration,"s"]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(lf,{icon:ic,label:"Call ID",value:u.id||"N/A"}),e.jsx(lf,{icon:Bt,label:"Status",value:u.status||"Unknown"}),e.jsx(lf,{icon:Ka,label:"Duration",value:`${u.duration||0} seconds`}),e.jsx(lf,{icon:Fa,label:"Date & Time",value:new Date(u.date).toLocaleDateString()})]}),u.analysis&&Object.keys(u.analysis).length>0&&e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Cn,{className:"text-primary-600",size:20}),e.jsx("h3",{className:"text-lg font-bold text-gray-800",children:"Call Analysis"})]}),e.jsxs("div",{className:"space-y-3",children:[u.analysis.summary&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"Summary:"}),e.jsxs("p",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:[A(u.anal
242ysis.summary)," "]})]}),u.analysis.outcome&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"Outcome:"}),e.jsx("p",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:u.analysis.outcome})]}),u.analysis.sentiment_score&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"Sentiment Score:"}),e.jsx("p",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:u.analysis.sentiment_score})]}),u.analysis.customer_notes&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"Customer Notes:"}),e.jsx("p",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:u.analysis.customer_notes})]}),u.analysis.next_steps&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"Next Steps:"}),e.jsx("p",{className:"text-sm text-gray-600 bg-gray-50 p-3 rounded-lg",children:u.analysis.next_steps})]})]})]}),u.transcript_entries&&u.transcript_entries.length>0&&e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Cn,{className:"text-primary-600",size:20}),e.jsx("h3",{className:"text-lg font-bold text-gray-800",children:"Full Transcript"})]}),e.jsx("div",{className:"bg-gray-50 p-4 rounded-lg max-h-96 overflow-y-auto space-y-3",children:u.transcript_entries.map((L,O)=>e.jsxs("div",{className:`p-3 rounded-lg ${L.speaker==="agent"?"bg-blue-100":"bg-green-100"}`,children:[e.jsxs("p",{className:"text-xs font-semibold text-gray-600 mb-1",children:[L.speaker==="agent"?"ð¤ AI Agent":"ð¤ Customer",L.timestamp&&` - ${new Date(L.timestamp).toLocaleTimeString()}`]}),e.jsx("p",{className:"text-sm text-gray-800",children:L.text})]},O))})]}),u.recording_url&&e.jsxs("div",{className:"bg-gray-50 border border-gray-200 p-6 rounded-xl",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Call Recording"}),e.jsxs("div",{className:"flex items-center gap-3 w-full",children:[e.jsxs("audio",{controls:!0,className:"w-full h-12 rounded-lg shadow-sm",style:{filter:"brightness(0.95) contrast(1.1)"},preload:"metadata",children:[e.jsx("source",{src:j(u.recording_url),type:"audio/mpeg"}),"Your browser does not support the audio element."]}),e.jsx("a",{href:N(u.recording_url),className:"p-3 bg-white border border-gray-200 rounded-full hover:bg-gray-50 text-gray-600 shadow-sm transition-colors cursor-pointer",title:"Download Recording",children:e.jsx(Kl,{size:20})})]})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Additional Information"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(pn,{label:"Customer Name",value:u.customer_name||"N/A"}),e.jsx(pn,{label:"Agent",value:u.agent||"AI Agent"}),e.jsx(pn,{label:"Type",value:u.type||"Unknown"}),e.jsx(pn,{label:"Purpose",value:u.purpose||"N/A"}),e.jsx(pn,{label:"Call ID",value:u.call_id||"N/A"}),u.knowledge_base_id&&e.jsx(pn,{label:"Knowledge Base ID",value:u.knowledge_base_id}),u.agent_id&&e.jsx(pn,{label:"Agent ID",value:u.agent_id}),u.integration_id&&e.jsx(pn,{label:"Integration ID",value:u.integration_id})]})]})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:t}),e.jsxs("div",{className:"fixed right-0 top-0 h-full w-full md:w-2/3 lg:w-1/2 xl:w-2/5 bg-white shadow-2xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"sticky top-0 bg-primary-600 text-white p-6 flex items-center justify-between z-10",children:[e.jsx("h2",{className:"text-2xl font-bold",children:"User Details"}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-primary-700 rounded-full transition-colors",children:e.jsx(ls,{size:24})})]}),i?e.jsx("div",{className:"flex items-center justify-center p-12",children:e.jsx(Ge,{size:48,className:"animate-spin text-primary-600"})}):n?e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsx("div",{className:"bg-gradient-to-br from-primary-50 to-blue-50 p-6 rounded-xl",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-primary-600 rounded-full flex items-center justify-center text-white text-2xl font-bold",children:n.user.full_name?.charAt(0)||"U"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-800",children:n.user.full_name}),e.jsxs("p",{className:"text-gray-600 flex items-center gap-2 mt-1",children:[e.jsx(Hr,{size:16}),n.user.email]}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${n.user.status==="active"?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:n.user.status}),e.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-semibold bg-blue-100 text-blue-800",children:n.user.role})]})]})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Outbound Calls"}),e.jsx("p",{className:"text-2xl font-bold text-gray-800",children:n.outbound_calls??0})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Web Test Calls"}),e.jsx("p",{className:"text-2xl font-bold text-gray-800",children:n.web_test_calls??0})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"AI Agents"}),e.jsx("p",{className:"text-2xl font-bold text-gray-800",children:n.agents?.length||0})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Packages"}),e.jsx("p",{className:"text-2xl font-bold text-gray-800",children:n.packages?.length||0})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Email Verified"}),e.jsx("div",{className:"text-2xl font-bold text-gray-800",children:n.user.email_verified?e.jsx(s4,{className:"text-green-600"}):e.jsx(Fb,{className:"text-red-600"})})]})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-800 mb
242-4",children:"User Information"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(pn,{icon:Fa,label:"Joined",value:new Date(n.user.created_at).toLocaleDateString()}),e.jsx(pn,{icon:Bt,label:"Last Active",value:n.user.last_active?new Date(n.user.last_active).toLocaleDateString():"Never"}),e.jsx(pn,{icon:rc,label:"Country",value:n.user.country_code||"N/A"}),n.user.onboarding?.company_name&&e.jsx(pn,{icon:zT,label:"Company",value:n.user.onboarding.company_name})]})]}),n.packages&&n.packages.length>0&&e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:"Packages"}),e.jsx("div",{className:"space-y-3",children:n.packages.map(L=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-800",children:L.name}),e.jsxs("p",{className:"text-sm text-gray-600",children:[L.minutes!=null?L.minutes.toFixed(1):"0"," / ",L.total_minutes??0," mins left"]})]}),e.jsx("span",{className:`px-2 py-1 rounded text-xs font-semibold ${L.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:L.status||(L.is_active?"Active":"Inactive")})]},L.id))})]}),n.agents&&n.agents.length>0&&e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-800 mb-4",children:["AI Agents (",n.agents.length,")"]}),e.jsx("div",{className:"space-y-2",children:n.agents.map(L=>e.jsxs("div",{className:"p-3 bg-blue-50 rounded-lg flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center text-white",children:e.jsx(Hn,{size:16})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-800",children:L.name}),e.jsxs("p",{className:"text-xs text-gray-600",children:["Created: ",new Date(L.created_at).toLocaleDateString()]})]})]},L.id))})]}),e.jsxs("div",{className:"bg-white border border-gray-200 p-6 rounded-xl",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h3",{className:"text-lg font-bold text-gray-800",children:["Calls (",(n.outbound_calls??0)+(n.web_test_calls??0),")"]}),e.jsxs("select",{value:v,onChange:L=>w(L.target.value),className:"px-3 py-1.5 text-xs border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 outline-none font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]}),e.jsxs("div",{className:"flex gap-2 mb-4",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Gs,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:f,onChange:L=>p(L.target.value),placeholder:"Search by phone...",className:"w-full pl-9 pr-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 outline-none text-sm"})]}),e.jsx("input",{type:"date",value:x,onChange:L=>b(L.target.value),className:"px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 outline-none text-sm"})]}),C&&C.length>0?e.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto pr-2",children:C.map((L,O)=>e.jsxs("div",{onClick:()=>h(L),className:"border border-gray-200 p-4 rounded-lg hover:bg-primary-50 hover:border-primary-300 transition-all cursor-pointer",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(At,{size:16,className:"text-primary-600"}),e.jsx("span",{className:"font-semibold text-gray-800",children:L.phone||"Unknown"})]}),e.jsx("span",{className:`px-2 py-1 rounded text-xs font-semibold ${L.status==="completed"?"bg-green-100 text-green-800":L.status==="failed"?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800"}`,children:L.status})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm text-gray-600",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ka,{size:14}),L.duration,"s"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Fa,{size:14}),L.date?new Date(L.date).toLocaleDateString():"N/A"]})]})]},L.id||O))}):e.jsx("p",{className:"text-center text-gray-500 py-8",children:f||x?"No calls found":"No calls yet"})]})]}):e.jsx("div",{className:"p-6 text-center text-gray-500",children:"User details not available"})]})]}):null},pn=({icon:a,label:t,value:n})=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-600",children:[a&&e.jsx(a,{size:16}),e.jsx("span",{children:t})]}),e.jsx("span",{className:"font-semibold text-gray-800",children:n})]}),lf=({icon:a,label:t,value:n})=>e.jsxs("div",{className:"bg-white border border-gray-200 p-4 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(a,{size:18,className:"text-primary-600"}),e.jsx("p",{className:"text-sm text-gray-600",children:t})]}),e.jsx("p",{className:"text-sm font-semibold text-gray-800 break-words",children:n})]}),Uz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(null),[u,h]=y.useState(""),[f,p]=y.useState(""),[x,b]=y.useState(""),[v,w]=y.useState(1),[j,N]=y.useState(null),[A,S]=y.useState(null),C=10;y.useEffect(()=>{T(),L()},[v,u,f,x]);const T=async()=>{try{l(!0);const z=await Mo.getAll({page:v,limit:C,search:u,status:f,role:x});t(z.data.users),N(z.data.pagination)}catch(z){console.error("Error fetching users:",z)}finally{l(!1)}},L=async()=>{try{const z=await Mo.getStats();c(z.data)}catch(z){console.error("Error fetching stats:",z)}},O=async z=>{if(confirm("Are you sure you want to suspend this user?"))try{await Mo.suspend(z),T(),alert("User suspended successfully")}catch{alert("Failed to suspend user")}},R=async z=>{try{await Mo.activate(z),T(),alert("User activated successfully")}catch{alert("Failed to activate user")}}
242,k=async z=>{if(confirm("Are you sure you want to delete this user? This action cannot be undone."))try{await Mo.delete(z),T(),alert("User deleted successfully")}catch{alert("Failed to delete user")}},E=z=>{const D={active:"bg-green-100 text-green-800",suspended:"bg-yellow-100 text-yellow-800",deleted:"bg-red-100 text-red-800"};return e.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${D[z]||"bg-gray-100 text-gray-800"}`,children:z||"active"})};return e.jsxs(e.Fragment,{children:[A&&e.jsx(Pz,{userId:A.id,onClose:()=>S(null)}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-800",children:"All Users"}),e.jsx("p",{className:"text-gray-600 mt-1",children:"Manage and monitor platform users"})]}),e.jsxs("button",{className:"flex items-center gap-2 px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700",children:[e.jsx(Kl,{size:20}),"Export"]})]}),i&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:[e.jsx(yd,{title:"Total Users",value:i.total_users,color:"blue"}),e.jsx(yd,{title:"Active",value:i.active_users,color:"green"}),e.jsx(yd,{title:"Suspended",value:i.suspended_users,color:"yellow"}),e.jsx(yd,{title:"Deleted",value:i.deleted_users,color:"red"}),e.jsx(yd,{title:"Verified",value:i.verified_users,color:"purple"})]}),e.jsx("div",{className:"bg-white p-4 rounded-xl shadow-md",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Gs,{size:20,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:u,onChange:z=>{h(z.target.value),w(1)},placeholder:"Search by name or email...",className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 outline-none"})]}),e.jsxs("select",{value:f,onChange:z=>{p(z.target.value),w(1)},className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 outline-none",children:[e.jsx("option",{value:"",children:"All Status"}),e.jsx("option",{value:"active",children:"Active"}),e.jsx("option",{value:"suspended",children:"Suspended"}),e.jsx("option",{value:"deleted",children:"Deleted"})]}),e.jsxs("select",{value:x,onChange:z=>{b(z.target.value),w(1)},className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 outline-none",children:[e.jsx("option",{value:"",children:"All Roles"}),e.jsx("option",{value:"admin",children:"Admin"}),e.jsx("option",{value:"owner",children:"Owner"}),e.jsx("option",{value:"member",children:"Member"})]}),e.jsxs("button",{onClick:T,className:"flex items-center justify-center gap-2 px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200",children:[e.jsx(g0,{size:20}),"Refresh"]})]})}),e.jsx("div",{className:"bg-white rounded-xl shadow-md overflow-hidden",children:n?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(Ge,{size:48,className:"animate-spin text-primary-600"})}):a.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500",children:"No users found"})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-gray-50 border-b",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"User"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Company"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Role"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Package"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Calls"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Web Test"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Joined"}),e.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),e.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:a.map(z=>e.jsxs("tr",{className:"hover:bg-gray-50",children:[e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-gray-900",children:z.full_name}),e.jsx("div",{className:"text-sm text-gray-500",children:z.email})]})}),e.jsxs("td",{className:"px-6 py-4 whitespace-nowrap",children:[e.jsx("div",{className:"text-sm text-gray-900",children:z.company_name!=="N/A"?z.company_name:"â"}),z.company_id&&e.jsx("div",{className:"text-[10px] font-bold text-purple-500 uppercase tracking-wide mt-0.5",children:"Member"})]}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:E(z.status)}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:e.jsx("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 rounded text-xs font-semibold",children:z.role})}),e.jsxs("td",{className:"px-6 py-4 whitespace-nowrap",children:[e.jsx("div",{className:"text-sm text-gray-900",children:z.package}),e.jsxs("div",{className:"text-xs text-gray-500",children:[z.available_minutes!=null?Math.max(0,z.available_minutes).toFixed(1):"0"," / ",z.total_allocated_minutes??0," mins left"]})]}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900 font-medium",children:z.outbound_calls??0}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900 font-medium",children:z.web_test_calls??0}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:new Date(z.created_at).toLocaleDateString()}),e.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>S(z),className:"text-blue-600 hover:text-blue-900",title:"View Details",children:e.jsx(Xa,{size:18})}),z.status==="active"&&e.jsx("button",{onClick:()=>O(z.id),className:"text-yellow-600 hover:text-yellow-900",title:"Suspend User",children:e.jsx(bR,{size:18})}),z.status==="suspended"&&e.jsx("button",{onClick:()=>R(z.id),className:"text-green-600 hover:text-green-900",title:"Activate User",children:e.jsx(d4,{size:18})}),e.jsx("button",{onClick:()=>k(z.id),className:"text-red-600 hover:text-red-900",title:"Delete User",children:e.jsx(Wb,{size:18})})]})})]},z.id))})]})}),j&&e.jsxs("div",{className:"bg-gray-50 px-6 py-4 flex items-center justify-between border-t",children:[e.jsxs("div",{className:"text-sm text-gray-700",children:["Showing ",e.jsx("span",{className:"font-medium",children:(v-1)*C+1})," to"," ",e.jsx("span",{className:"font-medium",children:Math.min(v*C,j.total)})," ","of ",e.jsx("span",{className:"font-medium",children:j.total})," users"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>w(v-1),disabled:v===1,className:"px-3 py-1 border border-gray-300 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-100",children:e.jsx(Fn,{size:20})}),e.jsxs("span",{className:"px-4 py-1 text-sm",children:["Page ",v," of ",j.pages]}),e.jsx("button",{onClick:()=>w(v+1),disabled:v===j.pages,className:"px-3 py-1 border border-gray-300 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-100",children:e.jsx(Ms,{size:20})})]})]})]})})]})]})},yd=({title:a,value:t,color:n})=>{const l={blue:"bg-blue-50 text-blue-600",green:"bg-green-50 text-green-600",yellow:"bg-yellow-50 text-yellow-600",red:"bg-red-50 text-red-600",purple:"bg-purple-50 text-purple-600"};return e.jsxs("div",{className:"bg-white p-4 rounded-lg shadow-md",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:a}),e.jsx("p",{className:`text-2xl font-bold ${l[n]}`,children:t})]})},Y4=a=>{if(a.address)return a.address;
242const t=[a.addressLine,a.city,a.addressState,a.pincode].filter(Boolean);return t.length?t.join(", "):"N/A"},Iz=a=>a?a.includes("cloudinary.com")?a.replace("/upload/","/upload/fl_attachment/"):a:"#",Vz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState(null),[f,p]=y.useState(null),[x,b]=y.useState("pending_review"),v={pending_review:{colorClass:"text-blue-600",bgClass:"bg-blue-600",lightBg:"bg-blue-50",borderClass:"border-blue-100",ringClass:"focus:ring-blue-500/5",focusBorder:"focus:border-blue-500",label:"Pending Review"},approved:{colorClass:"text-green-600",bgClass:"bg-green-600",lightBg:"bg-green-50",borderClass:"border-green-100",ringClass:"focus:ring-green-500/5",focusBorder:"focus:border-green-500",label:"Verified Assets"},rejected:{colorClass:"text-rose-600",bgClass:"bg-rose-600",lightBg:"bg-rose-50",borderClass:"border-rose-100",ringClass:"focus:ring-rose-500/5",focusBorder:"focus:border-rose-500",label:"Rejected Records"}}[x];y.useEffect(()=>{j()},[i,x]);const w=(A,S="success")=>{p({message:A,type:S}),setTimeout(()=>p(null),3e3)},j=async()=>{try{l(!0);const S=(await JA.getByStatus(x,{search:i})).data,C=S.submissions||S.kyc_requests||S.data||S.records||S.kyc||[];t(Array.isArray(C)?C:[])}catch{w("Connection error","error")}finally{l(!1)}},N=async(A,S)=>{let C=null;if(!(S==="rejected"&&(C=prompt("Enter reason for rejection/revocation:"),!C))&&!(S==="pending_review"&&!window.confirm("Move back to pending for re-evaluation?")))try{await JA.updateStatus(A,{status:S,reason:C}),w(`Record moved to ${S.replace("_"," ")}`),j(),h(null)}catch{w("Update failed","error")}};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-4 md:p-8 font-sans",children:[f&&e.jsxs("div",{className:`fixed top-5 right-5 z-[100] flex items-center gap-3 px-6 py-4 rounded-2xl shadow-2xl border animate-in slide-in-from-right ${f.type==="error"?"bg-red-50 border-red-200 text-red-800":"bg-green-50 border-green-200 text-green-800"}`,children:[f.type==="error"?e.jsx(aa,{size:20}):e.jsx(Bi,{size:20}),e.jsx("span",{className:"font-bold text-sm",children:f.message})]}),e.jsxs("div",{className:"max-w-6xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6 bg-white p-6 rounded-[32px] border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:`h-14 w-14 rounded-2xl flex items-center justify-center text-white shadow-lg transition-all duration-500 ${v.bgClass}`,children:x==="rejected"?e.jsx(tR,{size:28}):e.jsx(Gb,{size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-black text-slate-900 tracking-tight",children:v.label}),e.jsx("p",{className:"text-slate-500 text-[10px] font-bold uppercase tracking-[0.2em]",children:"Compliance Management System"})]})]}),e.jsxs("div",{className:"flex bg-slate-100 p-1.5 rounded-2xl border border-slate-200 overflow-x-auto",children:[e.jsx(Ux,{active:x==="pending_review",onClick:()=>b("pending_review"),color:"blue",label:"Pending"}),e.jsx(Ux,{active:x==="approved",onClick:()=>b("approved"),color:"green",label:"Approved"}),e.jsx(Ux,{active:x==="rejected",onClick:()=>b("rejected"),color:"rose",label:"Rejected"})]})]}),e.jsxs("div",{className:"relative group",children:[e.jsx(Gs,{size:20,className:`absolute left-5 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:${v.colorClass} transition-colors`}),e.jsx("input",{type:"text",placeholder:`Search across ${x.replace("_"," ")} records...`,className:`w-full pl-14 pr-6 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 ${v.ringClass} ${v.focusBorder} transition-all font-medium text-slate-700`,value:i,onChange:A=>c(A.target.value)})]}),n?e.jsxs("div",{className:"flex flex-col items-center justify-center py-32 bg-white rounded-[32px] border border-dashed border-slate-200",children:[e.jsx(Ge,{className:`animate-spin ${v.colorClass} mb-4`,size:40}),e.jsx("p",{className:"text-slate-400 font-bold text-xs uppercase tracking-widest",children:"Syncing Records..."})]}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-[32px] border border-slate-200 shadow-sm",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsxs("h3",{className:"text-lg font-bold text-slate-400 uppercase tracking-widest",children:["No Records in ",x.replace("_"," ")]})]}):e.jsx("div",{className:"grid grid-cols-1 gap-4",children:a.map(A=>e.jsx(Fz,{kyc:A,status:x,theme:v,onView:()=>h(A)},A._id))})]}
242),u&&e.jsx(Hz,{kyc:u,status:x,onClose:()=>h(null),onAction:N,theme:v})]})},Ux=({active:a,onClick:t,color:n,label:l})=>{const i={blue:a?"bg-white text-blue-600 shadow-sm":"text-slate-500 hover:text-slate-700",green:a?"bg-white text-green-600 shadow-sm":"text-slate-500 hover:text-slate-700",rose:a?"bg-white text-rose-600 shadow-sm":"text-slate-500 hover:text-slate-700"};return e.jsx("button",{onClick:t,className:`px-6 py-2.5 rounded-xl text-[11px] font-black uppercase tracking-widest transition-all ${i[n]}`,children:l})},Fz=({kyc:a,status:t,theme:n,onView:l})=>e.jsx("div",{className:"group bg-white rounded-[32px] p-2 border border-slate-100 shadow-sm hover:shadow-xl transition-all",children:e.jsxs("div",{className:"p-4 flex flex-col lg:flex-row lg:items-center gap-8",children:[e.jsxs("div",{className:"lg:w-1/4 flex items-center gap-4",children:[e.jsx("div",{className:`h-16 w-16 rounded-2xl flex items-center justify-center border transition-all ${n.lightBg} ${n.colorClass} ${n.borderClass}`,children:e.jsx(RT,{size:28})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"font-bold text-slate-900 text-lg truncate mb-1",children:a.company_name}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("span",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest",children:a.business_mail})})]})]}),e.jsx("div",{className:"flex-1 lg:border-l border-slate-100 lg:pl-8 flex flex-col justify-center",children:t==="rejected"?e.jsxs("div",{className:"flex items-center gap-2 text-rose-600 font-bold italic text-xs",children:[e.jsx(aa,{size:14})," Reason: ",a.rejection_reason||"Check details"]}):e.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs",children:[e.jsx(rc,{size:14})," ",Y4(a)]})}),e.jsx("div",{className:"flex items-center justify-end gap-3",children:e.jsx("button",{onClick:l,className:"px-8 py-3 bg-slate-900 text-white rounded-2xl text-xs font-black uppercase tracking-[0.1em] hover:opacity-90 transition-all",children:"Review Request"})})]})}),Hz=({kyc:a,status:t,onClose:n,onAction:l,theme:i})=>{const[c,u]=y.useState(null),[h,f]=y.useState(1),[p,x]=y.useState(0);return e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md",children:e.jsxs("div",{className:`bg-white rounded-[40px] shadow-2xl overflow-hidden flex flex-col transition-all duration-500 243 ${c?"max-w-[95%] w-full h-[90vh]":"max-w-4xl w-full h-auto"}`,children:[e.jsxs("div",{className:`px-8 py-6 border-b border-slate-100 flex items-center justify-between ${i.lightBg}`,children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:`h-12 w-12 ${i.bgClass} rounded-2xl flex items-center justify-center text-white`,children:e.jsx(Er,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-black text-slate-900",children:a.company_name}),e.jsx("span",{className:`px-2 py-0.5 rounded ${i.lightBg} ${i.colorClass} text-[9px] font-black uppercase`,children:t.replace("_"," ")})]})]}),e.jsx("button",{onClick:n,className:"p-3 hover:bg-slate-200 rounded-full transition-all",children:e.jsx(ls,{size:24,className:"text-slate-400"})})]}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-row",children:[e.jsxs("div",{className:`p-8 overflow-y-auto space-y-8 transition-all duration-500 ${c?"w-1/3 border-r":"w-full"}`,children:[a.rejection_reason&&e.jsxs("div",{className:"p-5 bg-rose-50 border border-rose-100 rounded-2xl flex items-start gap-4",children:[e.jsx(aa,{className:"text-rose-500 mt-1",size:20}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-[10px] font-black text-rose-900 uppercase",children:"Rejection Context"}),e.jsx("p",{className:"text-sm text-rose-700 font-medium mt-1",children:a.rejection_reason})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-8",children:[e.jsx(Ix,{label:"Business Email",value:a.business_mail,icon:e.jsx(Hr,{size:14})}),e.jsx(Ix,{label:"Phone Number",value:a.phone_number,icon:e.jsx(At,{size:14})}),e.jsx(Ix,{label:"Registered Address",value:Y4(a),icon:e.jsx(rc,{size:14}),className:"col-span-2"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:`text-[11px] font-black text-slate-900 uppercase tracking-widest border-l-4 ${i.borderClass} border-l-current pl-3 ${i.colorClass}`,children:"Compliance Documents"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(Vx,{label:"ID Proof",url:a.personal_doc_url,onPreview:()=>u(a.personal_doc_url),active:c===a.personal_doc_url,themeColor:i.bgClass}),e.jsx(Vx,{label:"Incorporation Cert.",url:a.company_doc_url,onPreview:()=>u(a.company_doc_url),active:c===a.company_doc_url,themeColor:i.bgClass}),e.jsx(Vx,{label:"Address Proof",url:a.address_proof_url,onPreview:()=>u(a.address_proof_url),active:c===a.address_proof_url,themeColor:i.bgClass})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6 border-t",children:[t==="pending_review"&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>l(a._id,"approved"),className:"flex-1 py-4 bg-green-600 text-white rounded-2xl font-bold shadow-lg",children:"Approve"}),e.jsx("button",{onClick:()=>l(a._id,"rejected"),className:"flex-1 py-4 bg-white border border-rose-200 text-rose-600 rounded-2xl font-bold",children:"Reject"})]}),t==="approved"&&e.jsx("button",{onClick:()=>l(a._id,"rejected"),className:"flex-1 py-4 bg-rose-50 text-rose-600 border border-rose-200 rounded-2xl font-bold",children:"Revoke Approval"}),t==="rejected"&&e.jsxs("button",{onClick:()=>l(a._id,"pending_review"),className:"flex-1 py-4 bg-blue-600 text-white rounded-2xl font-bold flex items-center justify-center gap-2",children:[e.jsx(G9,{size:18})," Restore to Pending"]})]})]}),c&&e.jsxs("div",{className:"flex-1 bg-slate-100 flex flex-col relative overflow-hidden",children:[e.jsxs("div",{className:"absolute top-6 left-1/2 -translate-x-1/2 z-10 bg-white px-8 py-4 rounded-full shadow-2xl border flex items-center gap-10",children:[e.jsx("button",{onClick:()=>f(b=>
243Math.min(b+.3,3)),children:e.jsx(kR,{size:22})}),e.jsx("button",{onClick:()=>f(b=>Math.max(b-.3,.5)),children:e.jsx(ER,{size:22})}),e.jsx("button",{onClick:()=>x(b=>b+90),children:e.jsx(K9,{size:22})}),e.jsx("div",{className:"h-6 w-px bg-slate-300"}),e.jsx("button",{onClick:()=>{u(null),f(1),x(0)},className:"text-rose-500",children:e.jsx(ls,{size:22})})]}),e.jsx("div",{className:"flex-1 overflow-auto p-20 flex items-center justify-center",children:e.jsx("img",{src:c,alt:"Doc",className:"shadow-2xl transition-transform rounded-lg max-w-none origin-center",style:{transform:`scale(${h}) rotate(${p}deg)`}})})]})]})]})})},Ix=({label:a,value:t,icon:n,className:l=""})=>e.jsxs("div",{className:`space-y-1.5 ${l}`,children:[e.jsx("span",{className:"text-[10px] font-black text-slate-400 uppercase tracking-widest block",children:a}),e.jsxs("div",{className:"flex items-start gap-2.5 text-slate-800 font-bold text-sm",children:[n&&e.jsx("span",{className:"mt-0.5 text-slate-300",children:n}),e.jsx("span",{children:t||"N/A"})]})]}),Vx=({label:a,url:t,onPreview:n,active:l,themeColor:i})=>e.jsxs("div",{className:`flex items-center justify-between p-4 rounded-2xl border transition-all ${l?`${i} text-white shadow-lg`:"bg-white border-slate-100 hover:border-slate-300"}`,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`p-2 rounded-xl ${l?"bg-white/20":"bg-slate-50 text-slate-400"}`,children:e.jsx(Cn,{size:18})}),e.jsx("span",{className:"text-sm font-bold truncate max-w-[150px]",children:a})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:n,className:`p-2 rounded-xl ${l?"hover:bg-white/20":"text-slate-400 hover:text-indigo-600"}`,children:e.jsx(Xa,{size:18})}),e.jsx("a",{href:Iz(t),download:!0,className:`p-2 rounded-xl ${l?"hover:bg-white/20":"text-slate-400 hover:text-indigo-600"}`,children:e.jsx(Kl,{size:18})})]})]}),ew=["ai_agents","knowledgebase","telephony","team_members","campaign_limits"],tw={ai_agents:!1,knowledgebase:!1,telephony:!1,team_members:!1,campaign_limits:!1,campaign:!1},qz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(""),[i,c]=y.useState(!0),[u,h]=y.useState(!1),[f,p]=y.useState(null),[x,b]=y.useState(null),[v,w]=y.useState([]),[j,N]=y.useState(!1),[A,S]=y.useState({name:"",minutes_included:"",price:"",tokens:"",features:"",permissions:{...tw}});y.useEffect(()=>{C()},[]);const C=async()=>{try{c(!0);const z=await Od.getTemplates();t(z.data.templates||[])}catch(z){console.error("Error:",z)}finally{c(!1)}},T=z=>{p(z._id),S({name:z.name,minutes_included:z.minutes_included,price:z.price,tokens:z.tokens||"",features:z.features.join(` 244`),permissions:z.permissions}),h(!0)},L=async z=>{b(z),N(!0);try{const D=await Od.getTemplateUsers(z._id);w(D.data.users||[])}catch(D){console.error("Error fetching users:",D),w([])}finally{N(!1)}},O=async z=>{z.preventDefault();try{const D={...A,features:A.features.split(` 245`).filter(q=>q.trim()!=="")};f?await Od.updateTemplate(f,D):await Od.createTemplate(D),R(),C()}catch{alert("Action failed")}},R=()=>{h(!1),p(null),S({name:"",minutes_included:"",price:"",tokens:"",features:"",permissions:{...tw}})},k=z=>{S(D=>{const q=ew.includes(z),V=D.permissions[z];return{...D,permissions:{...D.permissions,[z]:q?{...V,enabled:!V.enabled}:!V}}})},E=(z,D)=>{if(D===""){S(V=>({...V,permissions:{...V.permissions,[z]:{...V.permissions[z],value:""}}}));return}const q=parseInt(D,10);isNaN(q)||S(V=>({...V,permissions:{...V.permissions,[z]:{...V.permissions[z],value:q}}}))};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:[e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-blue-600 rounded-2xl flex items-center justify-center shadow-lg shadow-blue-200",children:e.jsx(Ha,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Package Templates"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Manage your subscription plans"})]})]}),e.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-2 px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-2xl font-bold transition-all shadow-lg shadow-blue-100",children:[e.jsx(ji,{size:20})," Create New"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search packages by name...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm",value:n,onChange:z=>l(z.target.value)})]}),i?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-blue-600",size:40})}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:a.filter(z=>!n||z.name.toLowerCase().includes(n.toLowerCase())).map(z=>e.jsx(Yz,{pkg:z,onEdit:()=>T(z),onViewUsers:()=>L(z)},z._id))})]}),u&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/60 backdrop-blur-sm",children:e.jsxs("div",{className:"bg-white w-full max-w-md max-h-[90vh] rounded-[32px] shadow-2xl overflow-hidden flex flex-col animate-in fade-in zoom-in duration-200",children:[e.jsxs("div",{className:"p-8 pb-6 flex items-center justify-between border-b border-slate-50",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900",children:f?"Edit Package Template":"Create New Package"}),e.jsx("button",{onClick:R,className:"p-2 hover:bg-slate-100 rounded-full transition-colors",children:e.jsx(ls,{size:20})})]}),e.jsxs("form",{onSubmit:O,className:"flex-1 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex-1 overflow-y-auto p-8 pt-4 space-y-4 custom-scrollbar",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Package Name"}),e.jsx("input",{required:!0,type:"text",className:"w-full px-5 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:border-blue-500 font-bold",value:A.name,onChange:z=>S({...A,name:z.target.value})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Minutes"}),e.jsx("input",{required:!0,type:"number",className:"w-full px-5 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:border-blue-500 font-bold",value:A.minutes_included,onChange:z=>S({...A,minutes_included:z.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Price (â¹)"}),e.jsx("input",{required:!0,type:"number",className:"w-full px-5 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:border-blue-500 font-bold",value:A.price,onChange:z=>S({...A,price:z.target.value})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Tokens"}),e.jsx("input",{required:!0,type:"number",className:"w-full px-5 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:border-blue-500 font-bold",placeholder:"e.g., 4000, 5000",value:A.tokens,onChange:z=>S({...A,tokens:z.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Features"}),e.jsx("textarea",{required:!0,rows:"4",className:"w-full px-5 py-3 bg-slate-50 border border-slate-200 rounded-xl outline-none focus:border-blue-500 font-medium",value:A.features,onChange:z=>S({...A,features:z.target.value})})]}),e.jsxs("div",{className:"space-y-3 pt-4 border-t border-slate-100",children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block",children:"Package Permissions & Limits"}),e.jsx("div",{className:"grid grid-cols-1 gap-3 bg-slate-50 p-5 rounded-[24px] border border-slate-100",children:A.permissions&&Object.entries(A.permissions).map(([z,D])=>{const q=ew.includes(z),V=q?D?.enabled:D;return e.jsxs("div",{className:"group border-b border-slate-200/50 last:border-0 pb-3 last:pb-0",children:[e.jsxs("div",{className:"flex items-center justify-between py-1",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-bold text-slate-700 capitalize",children:z.replace(/_/g," ")}),q&&V&&e.jsx("span",{className:"text-[10px] text-blue-500 font-bold",children:"Set usage limit below"})]}),e.jsx("div",{onClick:()=>
245k(z),className:`w-11 h-6 flex items-center rounded-full p-1 transition-all duration-300 cursor-pointer ${V?"bg-blue-600 shadow-inner":"bg-slate-300"}`,children:e.jsx("div",{className:`bg-white w-4 h-4 rounded-full shadow-md transform transition-transform duration-300 ${V?"translate-x-5":"translate-x-0"}`})})]}),q&&V&&e.jsxs("div",{className:"mt-3 flex items-center gap-4 bg-white/50 p-3 rounded-xl border border-blue-100 animate-in fade-in slide-in-from-top-2 duration-300",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-[9px] font-black text-slate-400 uppercase tracking-tighter",children:"Maximum Allowed"}),e.jsx("input",{type:"number",min:"0",className:"w-full bg-transparent text-sm font-extrabold text-blue-600 outline-none",value:D?.value??"",onChange:Z=>E(z,Z.target.value),placeholder:"0"})]}),e.jsx("div",{className:"h-8 w-px bg-blue-100"}),e.jsx("div",{className:"pr-2",children:e.jsx("span",{className:"text-[10px] font-bold text-blue-400 uppercase",children:"Limit"})})]})]},z)})})]})]}),e.jsxs("div",{className:"p-8 py-6 bg-white border-t border-slate-100 flex gap-3 sticky bottom-0",children:[e.jsx("button",{type:"button",onClick:R,className:"flex-1 py-4 bg-slate-100 text-slate-600 font-bold rounded-2xl hover:bg-slate-200 transition-colors",children:"Cancel"}),e.jsx("button",{type:"submit",className:"flex-1 py-4 bg-blue-600 text-white font-bold rounded-2xl shadow-lg shadow-blue-100 hover:bg-blue-700 transition-all",children:f?"Save Changes":"Create Template"})]})]})]})}),x&&e.jsx(Gz,{package:x,users:v,loading:j,onClose:()=>b(null)})]})},Yz=({pkg:a,onEdit:t,onViewUsers:n})=>e.jsxs("div",{className:"bg-white rounded-[32px] border border-slate-200 p-8 shadow-sm hover:shadow-xl transition-all group",children:[e.jsxs("div",{className:"flex justify-between items-start mb-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-slate-900",children:a.name}),e.jsxs("p",{className:"text-[10px] font-bold text-slate-400 uppercase mt-1",children:["ID: ",a._id.substring(0,6)]})]}),e.jsx("div",{className:"h-10 w-10 bg-slate-50 rounded-xl flex items-center justify-center text-slate-400",children:e.jsx(Ha,{size:20})})]}),e.jsxs("div",{className:"mb-6",children:[e.jsxs("span",{className:"text-4xl font-black text-slate-900",children:["â¹",a.price]}),e.jsx("span",{className:"text-slate-400 text-sm font-medium",children:"/mo"}),e.jsxs("div",{className:"flex gap-3 mt-3",children:[e.jsxs("div",{className:"flex-1 bg-blue-50 rounded-xl px-3 py-2 border border-blue-100",children:[e.jsx("p",{className:"text-[10px] font-bold text-blue-400 uppercase tracking-widest",children:"Minutes"}),e.jsx("p",{className:"text-lg font-black text-blue-600",children:a.minutes_included})]}),a.tokens&&e.jsxs("div",{className:"flex-1 bg-purple-50 rounded-xl px-3 py-2 border border-purple-100",children:[e.jsx("p",{className:"text-[10px] font-bold text-purple-400 uppercase tracking-widest",children:"Tokens"}),e.jsx("p",{className:"text-lg font-black text-purple-600",children:a.tokens})]})]})]}),e.jsx("ul",{className:"space-y-3 mb-8",children:a.features.map((l,i)=>e.jsxs("li",{className:"flex items-center gap-3 text-sm font-semibold text-slate-600",children:[e.jsx(s4,{size:14,className:"text-green-500",strokeWidth:3})," ",l]},i))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("button",{onClick:t,className:"flex-1 py-3 bg-blue-600 text-white rounded-2xl text-sm font-bold shadow-lg shadow-blue-100 flex items-center justify-center gap-2",children:[e.jsx(oR,{size:16})," Edit"]}),e.jsxs("button",{onClick:n,className:"flex-1 py-3 bg-slate-50 text-slate-600 rounded-2xl text-sm font-bold border border-slate-100 hover:bg-slate-200 flex items-center justify-center gap-2",children:[e.jsx(qa,{size:16})," View Users"]})]})]}),Gz=({package:a,users:t,loading:n,onClose:l})=>{const i=gt(),c=u=>{i(`/users?highlight=${u}`),l()};return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-end",onClick:l,children:[e.jsx("div",{className:"absolute inset-0 bg-slate-900/50 backdrop-blur-sm"}),e.jsxs("div",{className:"relative bg-white h-full w-full max-w-md
245shadow-2xl overflow-y-auto",onClick:u=>u.stopPropagation(),children:[e.jsxs("div",{className:"sticky top-0 bg-white border-b border-slate-200 p-6 z-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900",children:"Package Users"}),e.jsx("button",{onClick:l,className:"p-2 hover:bg-slate-100 rounded-xl transition-all",children:e.jsx(ls,{size:20,className:"text-slate-400"})})]}),e.jsx("p",{className:"text-sm text-slate-500",children:a.name}),e.jsxs("p",{className:"text-xs text-slate-400 mt-1",children:[t.length," ",t.length===1?"subscriber":"subscribers"]})]}),e.jsx("div",{className:"p-6",children:n?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(Ge,{className:"animate-spin text-blue-600",size:32})}):t.length===0?e.jsxs("div",{className:"text-center py-12",children:[e.jsx(qa,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-lg font-bold text-slate-800",children:"No Users Yet"}),e.jsx("p",{className:"text-sm text-slate-500",children:"No one has subscribed to this package"})]}):e.jsx("div",{className:"space-y-4",children:t.map(u=>e.jsxs("div",{onClick:()=>c(u.id),className:"bg-slate-50 rounded-2xl p-4 border border-slate-100 hover:bg-slate-100 cursor-pointer transition-all",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-bold text-slate-900",children:u.name}),e.jsx("p",{className:"text-xs text-slate-500",children:u.email})]}),e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-bold uppercase ${u.status==="active"?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:u.status})]}),e.jsxs("div",{className:"space-y-1.5 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx("span",{className:"font-semibold w-20",children:"Phone:"}),e.jsx("span",{children:u.phone})]}),u.company!=="N/A"&&e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx("span",{className:"font-semibold w-20",children:"Company:"}),e.jsx("span",{children:u.company})]}),u.role!=="N/A"&&e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx("span",{className:"font-semibold w-20",children:"Role:"}),e.jsx("span",{className:"capitalize",children:u.role})]}),u.kyc_status!=="N/A"&&e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx("span",{className:"font-semibold w-20",children:"KYC:"}),e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold ${u.kyc_status==="approved"?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700"}`,children:u.kyc_status})]}),u.available_minutes>0&&e.jsxs("div",{className:"flex items-center gap-2 text-slate-600",children:[e.jsx("span",{className:"font-semibold w-20",children:"Minutes:"}),e.jsxs("span",{children:[u.available_minutes," / ",u.total_minutes]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-slate-400",children:[e.jsx("span",{className:"font-semibold w-20",children:"Joined:"}),e.jsx("span",{children:new Date(u.created_at).toLocaleDateString()})]})]}),e.jsx("div",{className:"mt-3 pt-3 border-t border-slate-200",children:e.jsx("p",{className:"text-xs text-blue-600 font-semibold",children:"Click to view full details â"})})]},u.id))})})]})]})},Yr=({call:a,onClose:t})=>{if(!a)return null;const n=c=>{if(!c)return"";const u="http://localhost:5002/api",h=localStorage.getItem("admin_token")||"";return`${u}/admin/recording-proxy?url=${encodeURIComponent(c)}&token=${h}`},l=c=>`${n(c)}&download=true`,i=c=>c==null?"N/A":Array.isArray(c)?c.join(", "):typeof c=="object"?JSON.stringify(c):c;return e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-slate-900/60 backdrop-blur-sm animate-in fade-in duration-300",onClick:t,children:e.jsxs("div",{className:"bg-white rounded-[32px] shadow-2xl w-full max-w-5xl h-[85vh] overflow-hidden flex flex-col border border-slate-200",onClick:c=>c.stopPropagation(),children:[e.jsxs("div",{className:"bg-white border-b border-slate-100 px-8 py-5 flex items-center justify-between z-20",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-10 w-10 bg-blue-600 rounded-xl flex items-center justify-center text-white shadow-lg shadow-blue-200",children:e.jsx(At,{size:20})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-bold text-slate-900 tracking-tight",children:a.phone||"Unknown Number"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] font-bold text-blue-600 uppercase tracking-widest bg-blue-50 px-2 py-0.5 rounded-md",children:a.type||"Inbound"}),e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest italic",children:a.customer_name||"Anonymous User"})]})]})]}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-slate-100 text-slate-400 rounded-full transition-all",children:e.jsx(ls,{size:24})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 space-y-8 pb-32 custom-scrollbar",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsx(rf,{label:"Call Reference",value:a.call_id?.substring(0,12)}),e.jsx(rf,{label:"Call Duration",value:`${a.duration||0} seconds`}),e.jsx(rf,{label:"Processed On",value:a.date?new Date(a.date).toLocaleDateString():"N/A"}),e.jsx(rf,{label:"Status",value:a.status,isStatus:!0,success:a.status==="completed"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[e.jsx(Fx,{title:"AI Intelligence",icon:e.jsx(Tn,{size:16}),children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(Eo,{label:"Sentiment Score",value:`${a.analysis?.sentiment_score||0}/100`}),e.jsx(Eo,{label:"Primary Outcome",value:i(a.analysis?.outcome)}),e.jsx(Eo,{label:"Strategic Next Steps",value:i(a.analysis?.next_steps)}),e.jsx(Eo,{label:"Call Summary",value:i(a.analysis?.summary),isLongText:!0})]})}),e.jsx(Fx,{title:"Technical Details",icon:e.jsx(Hb,{size:16}),children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(Eo,{label:"Connection Type",value:a.type||"outbound-twilio"}),e.jsx(Eo,{label:"Registered Name",value:a.customer_name||"N/A"})]})})]}),e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[a.recording_url&&e.jsxs("div",{className:"bg-slate-50 rounded-3xl p-6 border border-slate-200",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-3",children:"Call Recording"}),e.jsxs("div",{className:"flex items-center gap-3 w-full",children:[e.jsxs("audio",{controls:!0,className:"w-full h-12 rounded-xl shadow-sm",style:{filter:"brightness(0.95) contrast(1.1)"},preload:"metadata",children:[e.jsx("source",{src:n(a.recording_url),type:"audio/mpeg"}),"Your browser does not support the audio element."]}),e.jsx("a",{href:l(a.recording_url),className:"p-3 bg-white border border-gray-200 rounded-full hover:bg-gray-50 text-gray-600 shadow-sm transition-colors cursor-pointer",title:"Download Recording",children:e.jsx(Kl,{size:20})})]})]}),e.jsx(Fx,{title:"Conversation Transcript",icon:e.jsx(o4,{size:16}),children:e.jsx("div",{className:"space-y-4 max-h-[500px] overflow-y-auto pr-2",children:Array.isArray(a.transcript_entries)&&a.transcript_entries.length>0?a.transcript_entries.map((c,u)=>e.jsx("div",{className:`flex flex-col ${c.speaker==="agent"?"items-start":"items-end"}`,children:e.jsxs("div",{className:`max-w-[85%] px-4 py-3 rounded-2xl text-sm ${c.speaker==="agent"?"bg-blue-50 text-blue-900 rounded-tl-none border border-blue-100":"bg-slate-50 text-slate-800 rounded-tr-none border border-slate-100"}`,children:[e.jsx("p",{className:"text-[9px] font-black uppercase opacity-40 mb-1",children:c.speaker==="agent"?"ð¤ Agent":"ð¤ Customer"}),e.jsx("p",{className:"font-medium leading-relaxed",children:i(c.text)})]})},u)):e.jsx("p",{className:"text-center text-slate-400 py-10 italic text-sm",children:"No transcript data available for this session."})})})]})]})]}),e.jsx("div",{className:"bg-slate-50 px-8 py-5 border-t border-slate-100 flex justify-end z-20",children:e.jsx("button",{onClick:t,className:"px-8 py-2.5 bg-slate-900 text-white rounded-xl font-bold text-xs uppercase tracking-widest hover:bg-slate-800 transition-all shadow-lg",children:"Close Analysis"})})]})})},Fx=({title:a,icon:t,children:n})=>e.jsxs("div",{className:"bg-white border border-slate-100 rounded-[24px] p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-5 border-b border-slate-50 pb-4",children:[e.jsx("div",{className:"text-blue-600",children:t}),e.jsx("h3",{className:"text-xs font-black text-slate-800 uppercase tracking-wider",children:a})]}),n]}),rf=({label:a,value:t,isStatus:n,success:l})=>e.jsxs("div",{className:"bg-slate-50/50 border border-slate-100 p-4 rounded-2xl",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-1.5",children:a}),n?e.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-md text-[10px] font-black uppercase tracking-tight border ${l?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:t||"Unknown"}):e.jsx("p",{className:"text-sm font-bold text-slate-800 break-all",children:t||"â"})]}),Eo=({label:a,value:t,isLongText:n})=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("p",{className:`text-sm text-slate-700 font-semibold leading-relaxed ${n?"italic font-medium":""}`,children:t})]}),Wz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(null),[i,c]=y.useState(!0),[u,h]=y.useState(""),[f,p]=y.useState(1),[x,b]=y.useState(null),[v,w]=y.useState(null),[j,N]=y.useState(null),[A,S]=y.useState(null),C=10;y.useEffect(()=>{T(),L()},[u,f]);const T=async()=>{try{c(!0);const E=await Zf.getAll({search:u,page:f,limit:C});t(E.data.agents||[]),b(E.data.pagination)}
245catch(E){console.error("Error:",E)}finally{c(!1)}},L=async()=>{try{const E=await Zf.getStats();l(E.data)}catch(E){console.error("Error:",E)}},O=async E=>{w(E);try{const z=await Zf.getPerformance(E.agent_id);N(z.data)}catch(z){console.error("Error:",z)}},R=x?.pages??1,k=()=>{const E=[],D=Math.max(2,f-2),q=Math.min(R-1,f+2);E.push(1),D>2&&E.push("...");for(let V=D;V<=q;V++)E.push(V);return q<R-1&&E.push("..."),R>1&&E.push(R),E};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto space-y-6",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-purple-600 rounded-2xl flex items-center justify-center shadow-lg shadow-purple-200",children:e.jsx(Pl,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"AI Agents"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Manage conversational AI agents"})]})]})}),n&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(of,{title:"Total Agents",value:n.total_agents,color:"purple",icon:e.jsx(Pl,{size:20})}),e.jsx(of,{title:"Active Agents",value:n.active_agents,color:"green",icon:e.jsx(Kb,{size:20})}),e.jsx(of,{title:"Total Calls",value:n.total_calls,color:"blue",icon:e.jsx(At,{size:20})}),e.jsx(of,{title:"Avg Calls/Agent",value:n.avg_calls_per_agent,color:"orange",icon:e.jsx(Vi,{size:20})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search agents by name or ID...",className:"w-full pl-11 pr-4 py-3 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-2 focus:ring-purple-500/20 focus:border-purple-500 transition-all shadow-sm text-sm",value:u,onChange:E=>{h(E.target.value),p(1)}})]}),i?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-purple-600",size:40})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Agent Name"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Agent ID"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Owner"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Outbound Calls"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Web Test Calls"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Mode"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Created"}),e.jsx("th",{className:"text-center px-5 py-3 font-semibold text-slate-600",children:"Performance"})]})}),e.jsx("tbody",{children:a.length>0?a.map((E,z)=>e.jsxs("tr",{className:`border-b border-slate-100 hover:bg-purple-50/50 transition-colors ${z%2===0?"":"bg-slate-50/40"}`,children:[e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-purple-50 rounded-lg shrink-0",children:e.jsx(Pl,{size:15,className:"text-purple-600"})}),e.jsx("span",{className:"font-semibold text-slate-800",children:E.name})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:"text-xs font-mono text-slate-400 break-all",children:E.agent_id})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Hn,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:E.user_name||"Unknown"})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(At,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"font-semibold",children:E.outbound_calls??0})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(At,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"font-semibold",children:E.web_test_calls??0})]})}),e.jsx("td",{className:"px-5 py-3",children:E.indian===!0?e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"}):e.jsx("span",{className:"text-xs text-slate-300",children:"â"})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[e.jsx(Fa,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:new Date(E.created_at).toLocaleDateString()})]})}),e.jsx("td",{className:"px-5 py-3 text-center",children:e.jsxs("button",{onClick:()=>O(E),className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-purple-600 hover:bg-purple-700 text-white rounded-lg text-xs font-semibold transition-colors",children:[e.jsx(Bt,{size:13})," View"]})})]},E._id)):e.jsx("tr",{children:e.jsxs("td",{colSpan:"8",className:"text-center py-16 text-slate-400",children:[e.jsx(Pl,{size:40,className:"mx-auto mb-2 opacity-40"}),e.jsx("p",{children:"No agents found"})]})})})]})}),x&&R>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(f-1)*C+1,"â",Math.min(f*C,x.total)," of ",x.total," agents"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>p(1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>p(f-1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),k().map((E,z)=>E==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${z}`):e.jsx("button",{onClick:()=>p(E),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${E===f?"bg-purple-600 text-white border border-purple-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:E},E)),e.jsx("button",{onClick:()=>p(f+1),disabled:f>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>p(R),disabled:f>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),v&&j&&e.jsx(Kz,{agent:v,performance:j,onClose:()=>{w(null),N(null)},onViewCall:E=>S(E)}),A&&e.jsx(Yr,{call:A,onClose:()=>S(null)})]})},of=({title:a,value:t,color:n,icon:l})=>{const i={purple:"bg-purple-50 text-purple-600 border-purple-200",green:"bg-green-50 text-green-600 border-green-200",blue:"bg-blue-50 text-blue-600 border-blue-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},Kz=({agent:a,performance:t,onClose:n,onViewCall:l})=>{const[i,c]=y.useState("all"),u=i==="all"?t.calls||[]:(t.calls||[]).filter(h=>h.type===i);return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-6xl w-full max-h-[90vh] overflow-hidden flex flex-col",onClick:h=>h.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex items-center justify-between sticky top-0 bg-white z-10",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-purple-600 rounded-xl flex items-center justify-center text-white",children:e.jsx(Tn,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:a.name}),e.jsx("p",{className:"text-xs font-mono text-slate-400 mt-1 uppercase tracking-widest",children:a.agent_id})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-100 rounded-full transition-all",children:e.jsx(ls,{size:24,className:"text-slate-400"})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsx(cf,{label:"Total Calls",value:t.total_calls}),e.jsx(cf,{label:"Success Rate",value:`${t.success_rate}%`}),e.jsx(cf,{label:"Avg Duration",value:`${Math.floor(t.avg_duration_seconds/60)}m ${Math.floor(t.avg_duration_seconds%60)}s`}),e.jsx(cf,{label:"Avg Sentiment",value:t.avg_sentiment_score})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-4",children:[e.jsx("h3",{className:"text-sm font-bold text-slate-400 uppercase tracking-widest",children:"Outcomes Distribution"}),e.jsx("div",{className:"space-y-2",children:Object.entries(t.outcomes_distribution||{}).map(([h,f])=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-2xl border border-slate-100",children:[e.jsx("span",{className:"text-sm font-semibold text-slate-700 capitalize",children:h.replace("_"," ")}),e.jsx("span",{className:"text-sm font-black text-slate-900",children:f})]},h))})]}),e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-bold text-slate-400 uppercase tracking-widest",children:"Recent
245Calls"}),e.jsxs("select",{value:i,onChange:h=>c(h.target.value),className:"px-3 py-1.5 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-purple-400 font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]}),e.jsx("div",{className:"bg-white border border-slate-100 rounded-2xl overflow-hidden shadow-sm",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4",children:"Customer"}),e.jsx("th",{className:"px-6 py-4",children:"Date & Time"}),e.jsx("th",{className:"px-6 py-4",children:"Duration"}),e.jsx("th",{className:"px-6 py-4",children:"Type"}),e.jsx("th",{className:"px-6 py-4",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"View"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:u.length>0?u.map(h=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-all",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:h.phone||"N/A"}),e.jsx("p",{className:"text-[10px] text-slate-400 truncate w-32",children:h.call_id})]}),e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm text-slate-600 font-medium",children:new Date(h.date).toLocaleDateString()}),e.jsx("p",{className:"text-[10px] text-slate-400 uppercase tracking-tighter",children:new Date(h.date).toLocaleTimeString()})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-slate-600 font-bold text-xs",children:[e.jsx(Ka,{size:12})," ",h.duration,"s"]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"text-xs font-medium text-slate-500 capitalize",children:h.type||"â"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${h.status==="completed"?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:h.status})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:()=>l(h),className:"p-2 bg-slate-100 text-slate-400 hover:bg-purple-100 hover:text-purple-600 rounded-xl transition-all",children:e.jsx(Xa,{size:18})})})]},h.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"6",className:"px-6 py-12 text-center text-slate-400 italic",children:"No calls found."})})})]})})]})]})]}),e.jsx("div",{className:"p-8 border-t border-slate-100 sticky bottom-0 bg-white",children:e.jsx("button",{onClick:n,className:"w-full py-4 bg-slate-900 text-white rounded-3xl font-bold shadow-xl shadow-slate-200 hover:bg-slate-800 transition-all",children:"Close Analysis"})})]})})},cf=({label:a,value:t})=>e.jsxs("div",{className:"p-5 bg-slate-50 rounded-3xl border border-slate-100",children:[e.jsx("p",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em] mb-1",children:a}),e.jsx("p",{className:"text-2xl font-black text-slate-900",children:t})]}),Xz=a=>a?a.includes("cloudinary.com")?a.replace("/upload/","/upload/fl_attachment/"):a:"#",Qz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(null),[i,c]=y.useState(!0),[u,h]=y.useState(""),[f,p]=y.useState(1),[x,b]=y.useState(null),[v,w]=y.useState(null),[j,N]=y.useState(null),[A,S]=y.useState(null),C=10;y.useEffect(()=>{T(),L()},[u,f]);const T=async()=>{try{c(!0);const E=await Jf.getAll({search:u,page:f,limit:C});t(E.data.knowledge_bases||[]),b(E.data.pagination)}catch(E){console.error("Error:",E)}finally{c(!1)}},L=async()=>{try{const E=await Jf.getStats();l(E.data)}catch(E){console.error("Error:",E)}},O=async E=>{w(E),N({calls:[]});try{const z=await Jf.getDetails(E.knowledge_base_id);N(z.data)}catch(z){console.error("Error fetching KB details:",z)}},R=x?.pages??1,k=()=>{const E=[],D=Math.max(2,f-2),q=Math.min(R-1,f+2);E.push(1),D>2&&E.push("...");for(let V=D;V<=q;V++)E.push(V);return q<R-1&&E.push("..."),R>1&&E.push(R),E};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-6",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-indigo-600 rounded-2xl flex items-center justify-center shadow-lg shadow-indigo-200",children:e.jsx(Ti,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Knowledge Bases"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Manage AI training documents"})]})]})}),n&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(df,{title:"Total KBs",value:n.total_kbs,color:"indigo",icon:e.jsx(Ti,{size:20})}),e.jsx(df,{title:"Active KBs",value:n.active_kbs,color:"green",icon:e.jsx(Bt,{size:20})}),e.jsx(df,{title:"Total Calls",value:n.total_calls,color:"blue",icon:e.jsx(Cn,{size:20})}),e.jsx(df,{title:"Total Size",value:`${n.total_size_mb} MB`,color:"orange",icon:e.jsx(SA,{size:20})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search knowledge bases by name, filename, or ID...",className:"w-full pl-11 pr-4 py-3 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all shadow-sm text-sm",value:u,onChange:E=>{h(E.target.value),p(1)}})]}),i?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-indigo-600",size:40})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Name"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Filename"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Owner"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Size"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Outbound Calls"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Web Test Calls"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Mode"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Created"}),e.jsx("th",{className:"text-center px-5 py-3 font-semibold text-slate-600",children:"Details"})]})}),e.jsx("tbody",{children:a.length>0?a.map((E,z)=>e.jsxs("tr",{className:`border-b border-slate-100 hover:bg-indigo-50/50 transition-colors ${z%2===0?"":"bg-slate-50/40"}`,children:[e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-indigo-50 rounded-lg shrink-0",children:e.jsx(Cn,{size:15,className:"text-indigo-600"})}),e.jsx("span",{className:"font-semibold text-slate-800",children:E.name})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:"text-xs font-mono text-slate-400 truncate max-w-[160px] block",children:E.filename})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Hn,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:E.user_name||E.user_email||"Unknown"})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[e.jsx(SA,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:E.size||"â"})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Bt,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"font-semibold",children:E.outbound_calls??0})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Bt,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"font-semibold",children:E.web_test_calls??0})]})}),e.jsx("td",{className:"px-5 py-3",children:E.indian===!0?e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"}):e.jsx("span",{className:"text-xs text-slate-300",children:"â"})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[e.jsx(Fa,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:new Date(E.created_at).toLocaleDateString()})]})}),e.jsx("td",{className:"px-5 py-3 text-center",children:e.jsxs("button",{onClick:()=>O(E),className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-xs font-semibold transition-colors",children:[e.jsx(Xa,{size:13})," View"]})})]},E._id)):e.jsx("tr",{children:e.jsxs("td",{colSpan:"9",className:"text-center py-16 text-slate-400",children:[e.jsx(Ti,{size:40,className:"mx-auto mb-2 opacity-40"}),e.jsx("p",{children:"No knowledge bases found"})]})})})]})}),x&&R>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(f-1)*C+1,"â",Math.min(f*C,x.total)," of ",x.total," knowledge bases"]}
245),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>p(1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>p(f-1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),k().map((E,z)=>E==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${z}`):e.jsx("button",{onClick:()=>p(E),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${E===f?"bg-indigo-600 text-white border border-indigo-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:E},E)),e.jsx("button",{onClick:()=>p(f+1),disabled:f>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>p(R),disabled:f>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),v&&j&&e.jsx(Zz,{kb:v,details:j,onClose:()=>{w(null),N(null)},onViewCall:E=>S(E)}),A&&e.jsx(Yr,{call:A,onClose:()=>S(null)})]})},df=({title:a,value:t,color:n,icon:l})=>{const i={indigo:"bg-indigo-50 text-indigo-600 border-indigo-200",green:"bg-green-50 text-green-600 border-green-200",blue:"bg-blue-50 text-blue-600 border-blue-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},Zz=({kb:a,details:t,onClose:n,onViewCall:l})=>{const[i,c]=y.useState(""),[u,h]=y.useState(!1),[f,p]=y.useState("all"),x=f==="all"?t?.calls||[]:(t?.calls||[]).filter(b=>b.type===f);return y.useEffect(()=>{(async()=>{if(a?.cloudinary_url){h(!0);try{const w=await(await fetch(a.cloudinary_url)).text();c(w)}catch(v){console.error("Error reading text file:",v),c("Error: Could not load the content of this text file.")}finally{h(!1)}}})()},[a?.cloudinary_url]),e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-6xl w-full max-h-[90vh] overflow-hidden flex flex-col",onClick:b=>b.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex items-center justify-between sticky top-0 bg-white z-10",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-indigo-600 rounded-xl flex items-center justify-center text-white",children:e.jsx(Ti,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:a.name}),e.jsxs("p",{className:"text-xs font-mono text-slate-400 mt-1 uppercase tracking-widest break-all",children:["ID: ",a.knowledge_base_id]})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-100 rounded-full transition-all",children:e.jsx(ls,{size:24,className:"text-slate-400"})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsx(Hx,{label:"Associated File",value:a.filename,icon:e.jsx(n4,{size:16})}),e.jsx(Hx,{label:"Upload Date",value:new Date(a.created_at).toLocaleString(),icon:e.jsx(Fa,{size:16})}),e.jsx(Hx,{label:"Total Calls Linked",value:t.calls?.length||0,icon:e.jsx(At,{size:16})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-sm font-black text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Hb,{size:14})," Training Content"]}),e.jsxs("a",{href:Xz(a.cloudinary_url),download:a.filename,target:"_blank",rel:"noreferrer",className:"text-[10px] font-bold text-indigo-600 hover:underline flex items-center gap-1",children:[e.jsx(Kl,{size:12})," Download TXT"]})]}),e.jsx("div",{className:"bg-slate-50 text-slate-600 p-6 rounded-3xl h-[400px] overflow-y-auto font-mono text-xs leading-relaxed border border-slate-200 shadow-inner",children:u?e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(Ge,{className:"animate-spin text-indigo-400",size:24})}):e.jsx("pre",{className:"whitespace-pre-wrap",children:i||"No content found in file."})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-sm font-black text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Bt,{size:14})," Related Calls"]}),e.jsxs("select",{value:f,onChange:b=>p(b.target.value),className:"px-3 py-1.5 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-indigo-400 font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]}),e.jsx("div",{className:"bg-white border border-slate-100 rounded-3xl overflow-hidden shadow-sm h-[400px] overflow-y-auto",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100 sticky top-0",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4",children:"Customer"}),e.jsx("th",{className:"px-6 py-4",children:"Type"}),e.jsx("th",{className:"px-6 py-4",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Action"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:x.length>0?x.map(b=>e.jsxs("tr",{className:"hover:bg-indigo-50/30 transition-all",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:b.phone}),e.jsx("p",{className:"text-[10px] text-slate-400 truncate w-32 font-mono",children:b.call_id})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"text-xs font-medium text-slate-500 capitalize",children:b.type||"â"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-black uppercase border ${b.status==="completed"?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:b.status})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:()=>l(b),className:"p-2 bg-slate-100 text-indigo-600 hover:bg-indigo-600 hover:text-white rounded-xl transition-all",children:e.jsx(Ms,{size:18})})})]},b.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"px-6 py-20 text-center text-slate-400 italic text-sm",children:"No calls linked yet."})})})]})})]})]})]}),e.jsx("div",{className:"p-8 border-t border-slate-100 sticky bottom-0 bg-white",children:e.jsx("button",{onClick:n,className:"w-full py-4 bg-slate-900 text-white rounded-[24px] font-bold shadow-xl hover:bg-slate-800 transition-all uppercase tracking-widest text-xs",children:"Close Knowledge Overview"})})]})})},Hx=({label:a,value:t,icon:n})=>e.jsxs("div",{className:"p-5 bg-slate-50 rounded-3xl border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-400 mb-1",children:[n,e.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest",children:a})]}),e.jsx("p",{className:"text-sm font-black text-slate-900 break-all",children:t})]}),Jz=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(null),[i,c]=y.useState(!0),[u,h]=y.useState(""),[f,p]=y.useState(""),[x,b]=y.useState(1),[v,w]=y.useState(null),[j,N]=y.useState(null),[A,S]=y.useState(null),[C,T]=y.useState(null),L=10;y.useEffect(()=>{O(),R()},[u,f,x]);const O=async()=>{try{c(!0);const D=await Gd.getAll({search:u,provider:f,page:x,limit:L});t(D.data.integrations||[]),w(D.data.pagination)}catch(D){console.error("Error:",D)}finally{c(!1)}},R=async()=>{try{const D=await Gd.getStats();l(D.data)}catch(D){console.error("Error:",D)}},k=async D=>{N(D),S(null);try{const q=await Gd.getUsage(D.integration_id);S(q.data)}catch(q){console.error("Error:",q)}},E=v?.pages??1,z=()=>{const D=[],V=Math.max(2,x-2),Z=Math.min(E-1,x+2);D.push(1),V>2&&D.push("...");for(let ae=V;ae<=Z;ae++)D.push(ae);return Z<E-1&&D.push("..."),E>1&&D.push(E),D};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-6",children:[e.jsx("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-cyan-600 rounded-2xl flex items-center justify-center shadow-lg shadow-cyan-200",children:e.jsx(zr,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Provider Status"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Monitor system health and integration logs"})]})]})}),n&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(uf,{title:"Total",value:n.total_integrations,color:"cyan",icon:e.jsx(zr,{size:18})}),e.jsx(uf,{title:"Active",value:n.active_integrations,color:"green",icon:e.jsx(Bi,{size:18})}),e.jsx(uf,{title:"Total Calls",value:n.total_calls,color:"blue",icon:e.jsx(At,{size:18})}),e.jsx(uf,{title:"Inactive",value:n.inactive_integrations,color:"red",icon:e.jsx(Bt,{size:18})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by phone, email or ID...",className:"w-full pl-11 pr-4 py-3 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-2 focus:ring-cyan-500/20 focus:border-cyan-500 transition-all shadow-sm text-sm",value:u,onChange:D=>{h(D.target.value),b(1)}})]}),e.jsxs("select",{value:f,onChange:D=>{p(D.target.value),b(1)},className:"px-4 py-3 bg-white border border-slate-200 rounded-2xl outline-none text-sm font-medium shadow-sm",children:[e.jsx("option",{value:"",children:"All Providers"}),e.jsx("option",{value:"twilio",children:"Twilio"}),e.jsx("option",{value:"telnyx",children:"Telnyx"}),e.jsx("option",{value:"sendgrid",children:"SendGrid"}),e.jsx("option",{value:"brevo_email",children:"Brevo Email"})]})]}),i?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-cyan-600",size:40})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Provider / Label"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Phone / Email"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Integration ID"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Owner"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Mode"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Total Calls"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Status"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Created"}),e.jsx("th",{className:"text-center px-5 py-3 font-semibold text-slate-600",children:"Analytics"})]})}),e.jsx("tbody",{children:a.length>0?a.map((D,q)=>e.jsxs("tr",{className:`border-b border-slate-100 hover:bg-cyan-50/50 transition-colors ${q%2===0?"":"bg-slate-50/40"}`,children:[e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-cyan-50 rounded-lg shrink-0",children:D.provider?.includes("email")?e.jsx(Hr,{size:15,className:"text-cyan-600"}):e.jsx(At,{size:15,className:"text-cyan-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-800 uppercase text-xs tracking-wide",children:D.provider}),D.label&&e.jsx("p",{className:"text-xs text-cyan-600 font-medium",children:D.label})]})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:"font-mono text-xs text-slate-700",children:D.phoneNumber||D.senderEmail||D.senderNumber||"â"})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:"text-xs font-mono text-slate-400",children:D.integration_id})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Hn,{size:13,className:"text-slate-400 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-medium",children:D.user_name||"Unknown"}),D.user_email&&e.jsx("p",{className:"text-[10px] text-slate-400",children:D.user_email})]})]})}),e.jsx("td",{className:"px-5 py-3",children:D.indian===!0?e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"}):e.jsx("span",{className:"text-xs text-slate-300",children:"â"})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(Bt,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"font-semibold",children:D.total_calls??0})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:`px-2.5 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${D.is_active?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:D.is_active?"Active":"Inactive"})}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[e.jsx(Fa,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"text-xs",children:new Date(D.created_at).toLocaleDateString()})]})}),e.jsx("td",{className:"px-5 py-3 text-center",children:e.jsxs("button",{onClick:()=>k(D),className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-cyan-600 hover:bg-cyan-700 text-white rounded-lg text-xs font-semibold transition-colors",children:[e.jsx(Tn,{size:13})," View"]})})]},D._id)):e.jsx("tr",{children:e.jsxs("td",{colSpan:"9",className:"text-center py-16 text-slate-400",children:[e.jsx(zr,{size:40,className:"mx-auto mb-2 opacity-40"}
245),e.jsx("p",{children:"No integrations found"})]})})})]})}),v&&E>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(x-1)*L+1,"â",Math.min(x*L,v.total)," of ",v.total," integrations"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>b(1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>b(x-1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),z().map((D,q)=>D==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${q}`):e.jsx("button",{onClick:()=>b(D),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${D===x?"bg-cyan-600 text-white border border-cyan-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:D},D)),e.jsx("button",{onClick:()=>b(x+1),disabled:x>=E,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>b(E),disabled:x>=E,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),j&&e.jsx($z,{integration:j,usage:A,onClose:()=>{N(null),S(null)},onViewCall:D=>T(D)}),C&&e.jsx(Yr,{call:C,onClose:()=>T(null)})]})},uf=({title:a,value:t,color:n,icon:l})=>{const i={cyan:"text-cyan-600 bg-cyan-50 border-cyan-200",green:"text-green-600 bg-green-50 border-green-200",blue:"text-blue-600 bg-blue-50 border-blue-200",red:"text-red-600 bg-red-50 border-red-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t??0})]})},$z=({integration:a,usage:t,onClose:n,onViewCall:l})=>e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-400/50 backdrop-blur-sm",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-xl max-w-6xl w-full h-[85vh] overflow-hidden flex flex-col border border-slate-200",onClick:i=>i.stopPropagation(),children:[e.jsxs("div",{className:"p-6 border-b border-slate-100 flex items-center justify-between bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 bg-cyan-500 rounded-lg flex items-center justify-center text-white",children:e.jsx(Tn,{size:20})}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-lg font-bold text-slate-800 uppercase tracking-tight",children:[a.provider," Analysis"]}),e.jsxs("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-widest",children:[a.label&&`${a.label} · `,a.phoneNumber||a.senderEmail||a.integration_id]})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-200 text-slate-400 rounded-lg transition-colors",children:e.jsx(ls,{size:24})})]}),t?e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 flex flex-col lg:flex-row gap-8",children:[e.jsxs("div",{className:"lg:w-1/3 space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(hf,{label:"Total Volume",value:t.total_calls}),e.jsx(hf,{label:"Success %",value:`${t.success_rate}%`}),e.jsx(hf,{label:"Completed",value:t.completed_calls}),e.jsx(hf,{label:"Failed",value:t.failed_calls})]}),e.jsxs("div",{className:"bg-slate-50 p-6 rounded-xl border border-slate-100 space-y-4",children:[e.jsx("h3",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:"Monthly Trend"}),e.jsx("div",{className:"space-y-2",children:Object.entries(t.calls_by_month||{}).map(([i,c])=>e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-200 last:border-0",children:[e.jsx("span",{className:"text-xs font-bold text-slate-600",children:i}),e.jsxs("span",{className:"text-xs font-bold text-slate-800",children:[c," calls"]})]},i))})]})]}),e.jsxs("div",{className:"lg:w-2/3 flex flex-col space-y-4",children:[e.jsxs("h3",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Bt,{size:14}
245)," Recent Call Infrastructure Logs"]}),e.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-hidden flex-1 flex flex-col shadow-inner",children:e.jsx("div",{className:"overflow-y-auto h-full",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-200 sticky top-0",children:e.jsxs("tr",{className:"text-[10px] font-bold text-slate-400 uppercase",children:[e.jsx("th",{className:"px-5 py-3",children:"Identifier / Date"}),e.jsx("th",{className:"px-5 py-3",children:"Duration"}),e.jsx("th",{className:"px-5 py-3",children:"Status"}),e.jsx("th",{className:"px-5 py-3 text-right",children:"Review"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs",children:t.calls?.length>0?t.calls.map(i=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-colors",children:[e.jsxs("td",{className:"px-5 py-4 font-bold text-slate-700",children:[i.phone," ",e.jsx("br",{}),e.jsx("span",{className:"text-[9px] font-normal text-slate-400",children:new Date(i.date).toLocaleString()})]}),e.jsxs("td",{className:"px-5 py-4 text-slate-600 font-medium",children:[i.duration,"s"]}),e.jsx("td",{className:"px-5 py-4",children:e.jsx("span",{className:`px-2 py-0.5 rounded text-[9px] font-bold uppercase border ${i.status==="completed"?"text-green-600 border-green-100 bg-green-50":"text-red-600 border-red-100 bg-red-50"}`,children:i.status})}),e.jsx("td",{className:"px-5 py-4 text-right",children:e.jsx("button",{onClick:()=>l(i),className:"p-2 text-cyan-600 hover:bg-cyan-50 rounded-lg",children:e.jsx(Ms,{size:18})})})]},i.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"p-20 text-center text-slate-400 italic",children:"No logs available."})})})]})})})]})]}):e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(Ge,{className:"animate-spin text-cyan-500",size:36})}),e.jsx("div",{className:"p-6 border-t border-slate-100 flex justify-end bg-white",children:e.jsx("button",{onClick:n,className:"px-8 py-2.5 bg-slate-100 text-slate-700 font-bold rounded-lg text-xs uppercase tracking-widest transition-colors",children:"Close Report"})})]})}),hf=({label:a,value:t})=>e.jsxs("div",{className:"p-4 bg-slate-50 border border-slate-200 rounded-xl text-center",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase mb-1",children:a}),e.jsx("p",{className:"text-lg font-bold text-slate-800",children:t||0})]}),eL=()=>{const[a,t]=y.useState(null),[n,l]=y.useState(!0);y.useEffect(()=>{i()},[]);const i=async()=>{try{l(!0);const c=await Gd.getStats();t(c.data)}catch(c){console.error("Error:",c)}finally{l(!1)}};return n?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex items-center justify-center",children:e.jsx(Ge,{className:"animate-spin text-cyan-600",size:48})}):e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-cyan-600 rounded-2xl flex items-center justify-center shadow-lg shadow-cyan-200",children:e.jsx(Tn,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Integration Stats"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Usage analytics & insights"})]})]})}),a&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(ff,{title:"Total Integrations",value:a.total_integrations,color:"cyan",icon:e.jsx(zr,{size:20})}),e.jsx(ff,{title:"Active",value:a.active_integrations,color:"green",icon:e.jsx(Bt,{size:20})}),e.jsx(ff,{title:"Inactive",value:a.inactive_integrations,color:"red",icon:e.jsx(Bt,{size:20})}),e.jsx(ff,{title:"Total Calls",value:a.total_calls,color:"blue",icon:e.jsx(Vi,{size:20})})]}),e.jsxs("div",{className:"bg-white rounded-3xl border border-slate-200 p-8 shadow-sm",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900 mb-6",children:"Provider Distribution"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:a.by_provider?.map(c=>e.jsx("div",{className:"p-4 bg-slate-50 rounded-2xl border border-slate-100",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-bold text-slate-700 uppercase",children:c.provider}),e.jsx("span",{className:"text-2xl font-black text-slate-900",children:c.count})]})},c.provider))})]})]})]})})},ff=({title:a,value:t,color:n,icon:l})=>{const i={cyan:"bg-cyan-50 text-cyan-600 border-cyan-200",green:"bg-green-50 text-green-600 border-green-200",red:"bg-red-50 text-red-600 border-red-200",blue:"bg-blue-50 text-blue-600 border-blue-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},tL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState(1),[f,p]=y.useState(null),[x,b]=y.useState(null),[v,w]=y.useState(null),j=20,N=f?.pages??1,A=()=>{const C=[],L=Math.max(2,u-2),O=Math.min(N-1,u+2);C.push(1),L>2&&C.push("...");for(let R=L;R<=O;R++)C.push(R);return O<N-1&&C.push("..."),N>1&&C.push(N),C};y.useEffect(()=>{S();const C=setInterval(S,5e3);return()=>clearInterval(C)},[i,u]);const S=async()=>{try{l(!0);const T=(await F4.getLive({search:i,page:u,limit:j})).data;t(T.calls||[]),p(T.pagination||null),w(T.stats||{})}catch(C){console.error("Error fetching live calls:",C),t([])}finally{l(!1)}};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsxs("div",{className:"h-14 w-14 bg-green-600 rounded-2xl flex items-center justify-center shadow-lg shadow-green-200 relative",children:[e.jsx(At,{className:"text-white",size:28}),e.jsxs("span",{className:"absolute -top-1 -right-1 flex h-4 w-4",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-4 w-4 bg-green-500"})]})]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Live Calls"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Real-time call monitoring"})]})]}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsxs("div",{className:"px-5 py-2 bg-green-50 border border-green-100 rounded-2xl text-center",children:[e.jsx("p",{className:"text-[10px] font-bold text-green-400 uppercase tracking-widest",children:"Active Now"}),e.jsx("p",{className:"text-xl font-bold text-green-600",children:v?.active_calls||0})]})})]}),v&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(mf,{title:"Active Calls",value:v.active_calls||0,color:"green",icon:e.jsx(Bt,{size:20})}),e.jsx(mf,{title:"Total Today",value:v.calls_today||0,color:"blue",icon:e.jsx(At,{size:20})}),e.jsx(mf,{title:"Avg Duration",value:`${v.avg_duration||0}s`,color:"purple",icon:e.jsx(Ka,{size:20})}),e.jsx(mf,{title:"Success Rate",value:`${v.success_rate||0}%`,color:"orange",icon:e.jsx(Bt,{size:20})})]}),e.jsxs("div",{className:"relative group",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by phone number, customer name, or call ID...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-green-500/5 focus:border-green-500 transition-all shadow-sm",value:i,onChange:C=>c(C.target.value)})]}),n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-green-600",size:40})}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-3xl border border-slate-200",children:[e.jsx(At,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"No Active Calls"}),e.jsx("p",{className:"text-slate-500",children:"All lines are currently free"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4 text-left",children:"Call Info"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Customer"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Started At"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Duration"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:a.map(C=>e.jsx(sL,{call:C,onView:()=>b(C)},C.call_id))})]})}),f&&N>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(u-1)*j+1,"â",Math.min(u*j,f.total)," of ",f.total," calls"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>h(1),disabled:u<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>h(C=>C-1),disabled:u<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}
245),A().map((C,T)=>C==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${T}`):e.jsx("button",{onClick:()=>h(C),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${C===u?"bg-green-600 text-white border border-green-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:C},C)),e.jsx("button",{onClick:()=>h(C=>C+1),disabled:u>=N,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>h(N),disabled:u>=N,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),x&&e.jsx(Yr,{call:x,onClose:()=>b(null)})]})},mf=({title:a,value:t,color:n,icon:l})=>{const i={green:"bg-green-50 text-green-600 border-green-200",blue:"bg-blue-50 text-blue-600 border-blue-200",purple:"bg-purple-50 text-purple-600 border-purple-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},sL=({call:a,onView:t})=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-all group",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:a.phone||"N/A"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-mono",children:a.call_id})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Hn,{size:14,className:"text-slate-400"}),e.jsx("span",{className:"text-sm font-semibold text-slate-600",children:a.customer_name||"Unknown"})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Fa,{size:14,className:"text-slate-400"}),e.jsx("span",{className:"text-sm text-slate-600",children:new Date(a.date_time).toLocaleString()})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-slate-600 font-bold text-xs",children:[e.jsx(Ka,{size:12,className:"animate-pulse text-green-500"}),a.duration||0,"s"]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("span",{className:"px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border bg-green-50 text-green-600 border-green-100 flex items-center gap-1 w-fit",children:[e.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),"In Progress"]})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:t,className:"p-2 bg-slate-100 text-slate-400 hover:bg-green-100 hover:text-green-600 rounded-xl transition-all",children:e.jsx(Xa,{size:18})})})]}),aL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState("all"),[f,p]=y.useState("all"),[x,b]=y.useState(1),[v,w]=y.useState(null),[j,N]=y.useState(null),[A,S]=y.useState(null),C=10,T=v?.pages??1,L=()=>{const R=[],E=Math.max(2,x-2),z=Math.min(T-1,x+2);R.push(1),E>2&&R.push("...");for(let D=E;D<=z;D++)R.push(D);return z<T-1&&R.push("..."),T>1&&R.push(T),R};y.useEffect(()=>{O()},[i,u,f,x]);const O=async()=>{try{l(!0);const R=await F4.getAll({search:i,status:u,call_type:f,page:x,limit:C});t(R?.data?.calls||[]),w(R?.data?.pagination||null),S(R?.data?.stats||null)}catch(R){console.error("Error fetching calls:",R),t([])}finally{l(!1)}};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-blue-600 rounded-2xl flex items-center justify-center shadow-lg shadow-blue-200",children:e.jsx(At,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"All Calls"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Complete call history and analytics"})]})]})}),A&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(pf,{title:"Total Calls",value:A.total_calls||0,color:"blue",icon:e.jsx(At,{size:20})}),e.jsx(pf,{title:"Completed",value:A.completed_calls||0,color:"green",icon:e.jsx(Vi,{size:20})}),e.jsx(pf,{title:"Failed",value:A.failed_calls||0,color:"red",icon:e.jsx(At,{size:20})}),e.jsx(pf,{title:"Avg Duration",value:`${A.avg_duration||0}s`,color:"purple",icon:e.jsx(Ka,{size:20})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1 group",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by phone number,
245customer name, or call ID...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm",value:i,onChange:R=>{c(R.target.value),b(1)}})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("select",{value:u,onChange:R=>{h(R.target.value),b(1)},className:"px-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm font-medium",children:[e.jsx("option",{value:"all",children:"All Status"}),e.jsx("option",{value:"completed",children:"Completed"}),e.jsx("option",{value:"failed",children:"Failed"}),e.jsx("option",{value:"no-answer",children:"No Answer"}),e.jsx("option",{value:"busy",children:"Busy"})]}),e.jsxs("select",{value:f,onChange:R=>{p(R.target.value),b(1)},className:"px-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]})]}),n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-blue-600",size:40})}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-3xl border border-slate-200",children:[e.jsx(At,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"No Calls Found"}),e.jsx("p",{className:"text-slate-500",children:"Try adjusting your filters"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4 text-left",children:"Call Info"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Customer"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Date & Time"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Duration"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Type"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Mode"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:a.map(R=>e.jsx(nL,{call:R,onView:()=>N(R)},R.call_id))})]})}),v&&T>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(x-1)*C+1,"â",Math.min(x*C,v.total)," of ",v.total," calls"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>b(1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>b(R=>R-1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),L().map((R,k)=>R==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${k}`):e.jsx("button",{onClick:()=>b(R),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${R===x?"bg-blue-600 text-white border border-blue-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:R},R)),e.jsx("button",{onClick:()=>b(R=>R+1),disabled:x>=T,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>b(T),disabled:x>=T,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),j&&e.jsx(Yr,{call:j,onClose:()=>N(null)})]})},pf=({title:a,value:t,color:n,icon:l})=>{const i={blue:"bg-blue-50 text-blue-600 border-blue-200",green:"bg-green-50 text-green-600 border-green-200",red:"bg-red-50 text-red-600 border-red-200",purple:"bg-purple-50 text-purple-600 border-purple-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},nL=({call:a,onView:t})=>{const n=l=>{switch(l){case"completed":return"bg-green-50 text-green-600 border-green-100";case"failed":return"bg-red-50 text-red-600 border-red-100";case"no-answer":return"bg-yellow-50 text-yellow-600 border-yellow-100";case"busy":return"bg-orange-50 text-orange-600 border-orange-100";default:return"bg-slate-50 text-slate-600 border-slate-100"}};return e.jsxs("tr",{className:"hover:bg-slate-50 transition-all group",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:a.phone||"N/A"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-mono truncate max-w-[150px]",children:a.call_id})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Hn,{size:14,className:"text-slate-400"}),e.jsx("span",{className:"text-sm font-semibold text-slate-600",children:a.customer_name||"Unknown"})]})}),e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm text-slate-600 font-medium",children:new Date(a.date_time).toLocaleDateString()}),e.jsx("p",{className:"text-[10px] text-slate-400 uppercase tracking-tighter",children:new Date(a.date_time).toLocaleTimeString()})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-slate-600 font-bold text-xs",children:[e.jsx(Ka,{size:12}),a.duration||0,"s"]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"text-xs font-semibold text-slate-600 capitalize",children:a.type||"N/A"})}),e.jsx("td",{className:"px-6 py-4",children:a.indian===!0?e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"}):e.jsx("span",{className:"text-xs text-slate-300",children:"â"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${n(a.status)}`,children:a.status})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:t,className:"p-2 bg-slate-100 text-slate-400 hover:bg-blue-100 hover:text-blue-600 rounded-xl transition-all",children:e.jsx(Xa,{size:18})})})]})},lL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState("all"),[f,p]=y.useState([]),[x,b]=y.useState(1),[v,w]=y.useState(null),[j,N]=y.useState(null),[A,S]=y.useState(null),C=10,T=v?.pages??1,L=()=>{const k=[],z=Math.max(2,x-2),D=Math.min(T-1,x+2);k.push(1),z>2&&k.push("...");for(let q=z;q<=D;q++)k.push(q);return D<T-1&&k.push("..."),T>1&&k.push(T),k};y.useEffect(()=>{Od.getTemplates().then(k=>{p((k.data.templates||[]).map(E=>E.name))}).catch(()=>{}),R()},[]),y.useEffect(()=>{O()},[i,u,x]);const O=async()=>{try{l(!0);const k={search:i,status:"active",page:x,limit:C};u!=="all"&&(k.package_name=u);const E=await oc.getAll(k);t(E.data.transactions||[]),w(E.data.pagination)}catch(k){console.error("Error fetching subscriptions:",k),t([])}finally{l(!1)}},R=async()=>{try{const k=await oc.getStats();N(k.data)}catch(k){console.error("Error:",k)}};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-8",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-green-600 rounded-2xl flex items-center justify-center shadow-lg shadow-green-200",children:e.jsx(Bt,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Active Subscriptions"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Monitor real-time user usage and tokens"})]})]})}),j&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(xf,{title:"Active Subscriptions",value:j.active_subscriptions||0,color:"green",icon:e.jsx(Bt,{size:20})}),e.jsx(xf,{title:"Total Revenue",value:`â¹${(j.total_revenue||0).toLocaleString()}`,color:"blue",icon:e.jsx(Tr,{size:20})}),e.jsx(xf,{title:"This Month",value:`â¹${(j.monthly_revenue||0).toLocaleString()}`,color:"purple",icon:e.jsx(Tr,{size:20})}),e.jsx(xf,{title:"Total Transactions",value:j.total_transactions||0,color:"orange",icon:e.jsx(Ha,{size:20})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1 group",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by user name, email, or package...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-green-500/5 focus:border-green-500 transition-all shadow-sm",value:i,onChange:k=>{c(k.target.value),b(1)}})]}),e.jsxs("select",{value:u,onChange:k=>{h(k.target.value),b(1)},className:"px-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-green-500/5 focus:border-green-500 transition-all shadow-sm font-medium",children:[e.jsx("option",{value:"all",children:"All Packages"}),f.map(k=>e.jsx("option",{value:k,children:k},k))]})]}),n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-green-600",size:40})}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-3xl border border-slate-200",children:[e.jsx(Ha,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"No Active Subscriptions"}),e.jsx("p",{className:"text-slate-500",children:"No active subscriptions found"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4 text-left",children:"User"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Package"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Usage (Used / Total)"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Live Tokens"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Price Paid"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Start Date"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:a.map(k=>e.jsx(rL,{subscription:k,onView:()=>S(k)},k.id))})]})}),v&&T>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(x-1)*C+1,"â",Math.min(x*C,v.total)," of ",v.total," subscriptions"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>b(1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>b(k=>k-1),disabled:x<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),L().map((k,E)=>k==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${E}`):e.jsx("button",{onClick:()=>b(k),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${k===x?"bg-green-600 text-white border border-green-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:k},k)),e.jsx("button",{onClick:()=>b(k=>k+1),disabled:x>=T,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>b(T),disabled:x>=T,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),A&&e.jsx(iL,{subscription:A,onClose:()=>S(null)})]})},xf=({title:a,value:t,color:n,icon:l})=>{const i={green:"bg-green-50 text-green-600 border-green-200",blue:"bg-blue-50 text-blue-600 border-blue-200",purple:"bg-purple-50 text-purple-600 border-purple-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},rL=({subscription:a,onView:t})=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-all group",children:[e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 bg-slate-100 rounded-lg flex items-center justify-center text-slate-500 font-bold text-xs uppercase",children:a.user_name?a.user_name.charAt(0):"U"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:a.user_name||"Unknown User"}),e.jsx("p",{className:"text-[10px] text-slate-400",children:a.user_email})]})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"px-3 py-1 rounded-full text-[10px] font-black bg-blue-50 text-blue-600 border border-blue-100 uppercase tracking-wider",children:a.package_name})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex flex-col gap-1.5",children:[e.jsxs("div",{className:"flex items-end justify-between w-24",children:[e.jsx("span",{className:"text-sm font-black text-slate-800",children:a.used_minutes}),e.jsxs("span",{className:"text-[10px] font-bold text-slate-400",children:["/ ",a.total_allocated_minutes]})]}),e.jsx("div",{className:"w-24 h-1.5 bg-slate-100 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-500",style:{width:`${Math.min(100,a.used_minutes/a.total_allocated_minutes*100)}%`}})})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400 animate-pulse"}),e.jsx("span",{className:"text-sm font-black text-slate-700",children:a.tokens_remaining?.toLocaleStr
245ing()})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"text-sm font-bold text-green-600",children:["â¹",a.price_paid]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-sm text-slate-600 font-medium",children:[e.jsx(Fa,{size:12,className:"text-slate-400"}),new Date(a.start_date).toLocaleDateString()]})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:t,className:"p-2.5 bg-slate-100 text-slate-400 hover:bg-blue-600 hover:text-white rounded-xl transition-all shadow-sm",children:e.jsx(Xa,{size:18})})})]}),iL=({subscription:a,onClose:t})=>e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md animate-in fade-in duration-300",onClick:t,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-2xl w-full overflow-hidden flex flex-col max-h-[90vh] animate-in zoom-in duration-300",onClick:n=>n.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex justify-between items-center bg-indigo-50/30",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-indigo-600 rounded-2xl flex items-center justify-center text-white shadow-lg shadow-indigo-100",children:e.jsx(H9,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-black text-slate-900 tracking-tight",children:"Subscription Details"}),e.jsx("p",{className:"text-[10px] font-bold text-indigo-400 uppercase tracking-widest",children:"Active License Overview"})]})]}),e.jsx("button",{onClick:t,className:"p-3 hover:bg-slate-200 rounded-full transition-all text-slate-400",children:e.jsx(ls,{size:24})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto space-y-8 custom-scrollbar",children:[e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(Hn,{size:18,className:"text-indigo-600"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800 tracking-tight",children:"Customer Information"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-5 bg-slate-50 p-6 rounded-[32px] border border-slate-100",children:[e.jsx(Bn,{label:"Company Name",value:a.user_company,className:"col-span-2 text-indigo-600 font-black text-base"}),e.jsx(Bn,{label:"Primary contact",value:a.user_name}),e.jsx(Bn,{label:"Phone number",value:a.user_phone}),e.jsx(Bn,{label:"Email address",value:a.user_email,className:"col-span-2"})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(Bt,{size:18,className:"text-emerald-500"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800 tracking-tight",children:"Plan & Usage Metrics"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-6 bg-emerald-50/30 p-6 rounded-[32px] border border-emerald-100/50",children:[e.jsx(Bn,{label:"Active package",value:a.package_name,className:"col-span-2 font-bold text-emerald-700"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-emerald-600/60",children:"Live Minutes Left"}),e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xl font-black text-emerald-700",children:a.available_minutes}),e.jsxs("span",{className:"text-[10px] font-bold text-emerald-600/50",children:["/ ",a.total_allocated_minutes," Min"]})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wider text-orange-600/60",children:"Wallet Tokens"}),e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{className:"text-xl font-black text-orange-700",children:a.tokens_remaining?.toLocaleString()}),e.jsx("span",{className:"text-[10px] font-bold text-orange-600/50",children:"Available"})]})]}),e.jsx(Bn,{label:"Consumption",value:`${a.used_minutes} Min Used`}),e.jsx(Bn,{label:"Plan Price",value:`â¹${a.price_paid}`})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(Cn,{size:18,className:"text-slate-500"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800 tracking-tight",children:"Audit & Timestamps"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-5 bg-slate-900 p-7 rounded-[32px] text-white",children:[e.jsx(Bn,{label:"Payment ID",value:a.payment_id,dark:!0}),e.jsx(Bn,{label:"Order ID",value:a.order_id,dark:!0}),e.jsx(Bn,{label:"Service start date",value:new Date(a.start_date).toLocaleDateString(),dark:!0}),e.jsx(Bn,{label:"Record created",value:new Date(a.created_at).toLocaleStr
245ing(),dark:!0})]})]})]}),e.jsx("div",{className:"p-8 border-t border-slate-100 bg-white",children:e.jsx("button",{onClick:t,className:"w-full py-4 bg-slate-900 text-white rounded-2xl font-bold hover:bg-indigo-600 transition-all shadow-xl shadow-slate-200 active:scale-[0.98]",children:"Close View"})})]})}),Bn=({label:a,value:t,dark:n=!1,className:l="",customValueClass:i=""})=>e.jsxs("div",{className:`space-y-1 ${l}`,children:[e.jsx("p",{className:`text-[10px] font-bold tracking-wider ${n?"text-slate-500":"text-slate-400"}`,children:a}),e.jsx("p",{className:`text-sm font-semibold truncate ${n?"text-white":"text-slate-800"} ${i}`,children:t||"N/A"})]}),oL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState("all"),[f,p]=y.useState(1),[x,b]=y.useState(null),[v,w]=y.useState(null),[j,N]=y.useState(null),A=10,S=x?.pages??1,C=()=>{const O=[],k=Math.max(2,f-2),E=Math.min(S-1,f+2);O.push(1),k>2&&O.push("...");for(let z=k;z<=E;z++)O.push(z);return E<S-1&&O.push("..."),S>1&&O.push(S),O};y.useEffect(()=>{T(),L()},[i,u,f]);const T=async()=>{try{l(!0);const O=await oc.getAll({search:i,status:u,page:f,limit:A});t(O.data.transactions||[]),b(O.data.pagination)}catch(O){console.error("Error:",O)}finally{l(!1)}},L=async()=>{try{const O=await oc.getStats();w(O.data)}catch(O){console.error("Error:",O)}};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:[e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-blue-600 rounded-2xl flex items-center justify-center shadow-lg shadow-blue-200",children:e.jsx(Tr,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"All Transactions"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Complete transaction history"})]})]}),e.jsxs("button",{className:"flex items-center gap-2 px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-2xl font-bold transition-all shadow-lg shadow-blue-100",children:[e.jsx(Kl,{size:20}),"Export"]})]}),v&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(gf,{title:"Total Revenue",value:`â¹${(v.total_revenue||0).toLocaleString()}`,color:"blue",icon:e.jsx(Tr,{size:20})}),e.jsx(gf,{title:"Total Transactions",value:v.total_transactions||0,color:"green",icon:e.jsx(Ha,{size:20})}),e.jsx(gf,{title:"Active Subscriptions",value:v.active_subscriptions||0,color:"purple",icon:e.jsx(Ha,{size:20})}),e.jsx(gf,{title:"This Month",value:`â¹${(v.monthly_revenue||0).toLocaleString()}`,color:"orange",icon:e.jsx(Tr,{size:20})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1 group",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by user, package, or payment ID...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm",value:i,onChange:O=>{c(O.target.value),p(1)}})]}),e.jsxs("select",{value:u,onChange:O=>{h(O.target.value),p(1)},className:"px-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-blue-500/5 focus:border-blue-500 transition-all shadow-sm font-medium",children:[e.jsx("option",{value:"all",children:"All Status"}),e.jsx("option",{value:"active",children:"Active"}),e.jsx("option",{value:"inactive",children:"Inactive"})]})]}),n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-blue-600",size:40})}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-3xl border border-slate-200",children:[e.jsx(Tr,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"No Transactions Found"}),e.jsx("p",{className:"text-slate-500",children:"Try adjusting your filters"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4 text-left",children:"User"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Package"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Amount"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Payment ID"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Date"}),e.jsx("th",{className:"px-6 py-4 text-left",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:a.map(O=>e.jsx(cL,{transaction:O,onView:()=>N(O)},O.id))})]})}),x&&S>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(f-1)*A+1,"â",Math.min(f*A,x.total)," of ",x.total," transactions"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>p(1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>p(O=>O-1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),C().map((O,R)=>O==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${R}`):e.jsx("button",{onClick:()=>p(O),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${O===f?"bg-blue-600 text-white border border-blue-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:O},O)),e.jsx("button",{onClick:()=>p(O=>
245O+1),disabled:f>=S,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>p(S),disabled:f>=S,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]}),j&&e.jsx(dL,{transaction:j,onClose:()=>N(null)})]})},gf=({title:a,value:t,color:n,icon:l})=>{const i={blue:"bg-blue-50 text-blue-600 border-blue-200",green:"bg-green-50 text-green-600 border-green-200",purple:"bg-purple-50 text-purple-600 border-purple-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},cL=({transaction:a,onView:t})=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-all group",children:[e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Hn,{size:14,className:"text-slate-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:a.user_name}),e.jsx("p",{className:"text-[10px] text-slate-400",children:a.user_email})]})]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"px-3 py-1 rounded-full text-xs font-bold bg-blue-50 text-blue-600 border border-blue-100",children:a.package_name})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"text-sm font-bold text-green-600",children:["â¹",a.price_paid]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("div",{className:"text-xs font-mono text-slate-600",children:a.payment_id})}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-sm text-slate-600",children:[e.jsx(Fa,{size:12}),new Date(a.created_at).toLocaleDateString()]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${a.is_active?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:a.is_active?"Active":"Inactive"})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:t,className:"p-2 bg-slate-100 text-slate-400 hover:bg-blue-100 hover:text-blue-600 rounded-xl transition-all",children:e.jsx(Xa,{size:18})})})]}),dL=({transaction:a,onClose:t})=>e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md animate-in fade-in duration-300",onClick:t,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-2xl w-full overflow-hidden flex flex-col max-h-[90vh] animate-in zoom-in duration-300",onClick:n=>n.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex justify-between items-center bg-slate-50/50",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-blue-600 rounded-2xl flex items-center justify-center text-white shadow-lg shadow-blue-100",children:e.jsx(a4,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-black text-slate-900 tracking-tight",children:"Transaction Details"}),e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:"Digital Receipt & Ledger"})]})]}),e.jsx("button",{onClick:t,className:"p-3 hover:bg-slate-200 rounded-full transition-all text-slate-400",children:e.jsx(ls,{size:24})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto space-y-8 custom-scrollbar",children:[e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Er,{size:18,className:"text-blue-600"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800",children:"Company & User Profile"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 bg-slate-50 p-6 rounded-[32px] border border-slate-100",children:[e.jsx(Oa,{label:"Company Name",value:a.user_company,className:"col-span-2 text-blue-600 font-black"}),e.jsx(Oa,{label:"User name",value:a.user_name}),e.jsx(Oa,{label:"Contact phone",value:a.user_phone}),e.jsx(Oa,{label:"Email address",value:a.user_email,className:"col-span-2"})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Ha,{size:18,className:"text-orange-500"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800",children:"Package & Usage Details"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 bg-orange-50/30 p-6 rounded-[32px] border border-orange-100/50",children:[e.jsx(Oa,{label:"Package name",value:a.package_name,className:"col-span-2 font-bold text-orange-700"}),e.jsx(Oa,{label:"Total allocated minutes",value:`${a.total_allocated_minutes} Min`}),e.jsx(Oa,{label:"Available minutes",value:`${a.available_minutes} Min`}),e.jsx(Oa,{label:"Subscription status",value:a.is_active?"Active":"Inactive",customValueClass:a.is_active?"text-green-600":"text-red-500"})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(l4,{size:18,className:"text-slate-500"}),e.jsx("h3",{className:"text-sm font-bold text-slate-800",children:"Payment & System Audit"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4 bg-slate-900 p-6 rounded-[32px] text-white",children:[e.jsx(Oa,{label:"Price paid",value:`â¹${a.price_paid}`,dark:!0}),e.jsx(Oa,{label:"Payment ID",value:a.payment_id,dark:!0}),e.jsx(Oa,{label:"Order ID",value:a.order_id,dark:!0}),e.jsx(Oa,{label:"Start date",value:new Date(a.start_date).toLocaleDateString(),dark:!0}),e.jsx(Oa,{label:"Created at",value:new Date(a.created_at).toLocaleStr
245ing(),dark:!0,className:"col-span-2"})]})]})]}),e.jsx("div",{className:"p-8 border-t border-slate-100 bg-white",children:e.jsx("button",{onClick:t,className:"w-full py-4 bg-slate-900 text-white rounded-2xl font-bold hover:bg-blue-600 transition-all shadow-xl shadow-slate-200",children:"Dismiss Details"})})]})}),Oa=({label:a,value:t,dark:n=!1,className:l="",customValueClass:i=""})=>e.jsxs("div",{className:`space-y-1 ${l}`,children:[e.jsx("p",{className:`text-[10px] font-bold uppercase tracking-wider ${n?"text-slate-500":"text-slate-400"}`,children:a}),e.jsx("p",{className:`text-sm font-semibold truncate ${n?"text-white":"text-slate-800"} ${i}`,children:t||"Not available"})]}),uL=()=>{const[a,t]=y.useState(!0),[n,l]=y.useState("30d"),[i,c]=y.useState(null),[u,h]=y.useState(null);y.useEffect(()=>{f()},[n]);const f=async()=>{try{t(!0);const[x,b]=await Promise.all([V4.getRevenue(n),oc.getStats()]);c(x.data),h(b.data)}catch(x){console.error("Error:",x)}finally{t(!1)}};if(a)return e.jsx("div",{className:"flex items-center justify-center h-screen",children:e.jsx(Ge,{size:48,className:"animate-spin text-blue-600"})});const p=["#0ea5e9","#8b5cf6","#ec4899","#f59e0b","#10b981"];return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-purple-600 rounded-2xl flex items-center justify-center shadow-lg shadow-purple-200",children:e.jsx(Tn,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Revenue Reports"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Analytics and revenue insights"})]})]}),e.jsxs("select",{value:n,onChange:x=>l(x.target.value),className:"px-4 py-3 bg-white border border-slate-200 rounded-2xl outline-none font-bold text-sm",children:[e.jsx("option",{value:"7d",children:"Last 7 Days"}),e.jsx("option",{value:"30d",children:"Last 30 Days"}),e.jsx("option",{value:"90d",children:"Last 90 Days"}),e.jsx("option",{value:"1y",children:"Last Year"})]})]}),u&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(bf,{title:"Total Revenue",value:`â¹${(u.total_revenue||0).toLocaleString()}`,color:"purple",icon:e.jsx(Tr,{size:20})}),e.jsx(bf,{title:"This Month",value:`â¹${(u.monthly_revenue||0).toLocaleString()}`,color:"blue",icon:e.jsx(Vi,{size:20})}),e.jsx(bf,{title:"Total Transactions",value:u.total_transactions||0,color:"green",icon:e.jsx(Ha,{size:20})}),e.jsx(bf,{title:"Active Subscriptions",value:u.active_subscriptions||0,color:"orange",icon:e.jsx(Ha,{size:20})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Revenue Trend"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Kg,{data:i?.revenue_by_date||[],children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(Xg,{type:"monotone",dataKey:"revenue",stroke:"#8b5cf6",strokeWidth:2,name:"Revenue (â¹)"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Transaction Volume"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(jw,{data:i?.revenue_by_date||[],children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(Jx,{dataKey:"transactions",fill:"#0ea5e9",name:"Transactions"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Top Packages by Revenue"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Qg,{children:[e.jsx(Zg,{data:i?.top_packages||[],cx:"50%",cy:"50%",labelLine:!1,label:
245x=>`${x.package}: â¹${x.revenue}`,outerRadius:80,fill:"#8884d8",dataKey:"revenue",children:(i?.top_packages||[]).map((x,b)=>e.jsx(Jg,{fill:p[b%p.length]},`cell-${b}`))}),e.jsx(Dl,{})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Package Distribution"}),e.jsx("div",{className:"space-y-3",children:u?.package_distribution?.map((x,b)=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-2xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:p[b%p.length]}}),e.jsx("span",{className:"text-sm font-bold text-slate-700",children:x.package})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"text-sm font-bold text-slate-900",children:["â¹",x.revenue.toLocaleString()]}),e.jsxs("div",{className:"text-xs text-slate-500",children:[x.count," subscriptions"]})]})]},b))})]})]})]})})},bf=({title:a,value:t,color:n,icon:l})=>{const i={purple:"bg-purple-50 text-purple-600 border-purple-200",blue:"bg-blue-50 text-blue-600 border-blue-200",green:"bg-green-50 text-green-600 border-green-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},hL=()=>{const[a,t]=y.useState(!0),[n,l]=y.useState(null);y.useEffect(()=>{i()},[]);const i=async()=>{try{t(!0);const u=await V4.getUsers();l(u.data)}catch(u){console.error("Error:",u)}finally{t(!1)}};if(a)return e.jsx("div",{className:"flex items-center justify-center h-screen",children:e.jsx(Ge,{size:48,className:"animate-spin text-blue-600"})});const c=["#0ea5e9","#8b5cf6","#ec4899","#f59e0b","#10b981"];return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsx("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-blue-600 rounded-2xl flex items-center justify-center shadow-lg shadow-blue-200",children:e.jsx(Tn,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"User Reports"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"User analytics and growth metrics"})]})]})}),n&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(qx,{title:"Total Users",value:n.total_users||0,color:"blue",icon:e.jsx(qa,{size:20})}),e.jsx(qx,{title:"Active Users",value:n.active_users||0,color:"green",icon:e.jsx(qa,{size:20})}),e.jsx(qx,{title:"Inactive Users",value:n.inactive_users||0,color:"orange",icon:e.jsx(qa,{size:20})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"User Growth (Last 30 Days)"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Kg,{data:n?.user_growth||[],children:[e.jsx(Io,{strokeDasharray:"3 3"}),e.jsx(Vo,{dataKey:"date",fontSize:12}),e.jsx(Fo,{fontSize:12}),e.jsx(Dl,{}),e.jsx(Ho,{}),e.jsx(Xg,{type:"monotone",dataKey:"users",stroke:"#0ea5e9",strokeWidth:2,name:"New Users"})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Users by Package"}),e.jsx(Ll,{width:"100%",height:300,children:e.jsxs(Qg,{children:[e.jsx(Zg,{data:n?.users_by_package||[],cx:"50%",cy:"50%",labelLine:!1,label:u=>`${u.package}: ${u.count}`,outerRadius:80,fill:"#8884d8",dataKey:"count",children:(n?.users_by_package||[]).map((u,h)=>e.jsx(Jg,{fill:c[h%c.length]},`cell-${h}`))}),e.jsx(Dl,{})]})})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm lg:col-span-2",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Package Distribution"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:n?.users_by_package?.map((u,h)=>e.jsxs("div",{className:"p-4 bg-slate-50 rounded-2xl",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-4 h-4 rounded-full",style:{backgroundColor:c[h%c.length]}}),e.jsx("span",{className:"text-sm font-bold text-slate-700",children:u.package})]}),e.jsx("div",{className:"text-2xl font-black text-slate-900",children:u.count}),e.jsx("div",{className:"text-xs text-slate-500",children:"users"})]},h))})]})]})]})})},qx=({title:a,value:t,color:n,icon:l})=>{const i={blue:"bg-blue-50 text-blue-600 border-blue-200",green:"bg-green-50 text-green-600 border-green-200",orange:"bg-orange-50 text-orange-600 border-orange-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},fL=()=>{const[a,t]=y.useState(!0),[n,l]=y.useState(null);return y.useEffect(()=>{setTimeout(()=>{l({api_status:"healthy",database_status:"healthy",uptime:"99.9%",response_time:"45ms",active_connections:127,total_requests:15420,error_rate:"0.02%",last_backup:"2 hours ago"}),t(!1)},500)},[]),a?e.jsx("div",{className:"flex items-center justify-center h-screen",children:e.jsx(Ge,{size:48,className:"animate-spin text-blue-600"})}):e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-green-600 rounded-2xl flex items-center justify-center shadow-lg shadow-green-200",children:e.jsx(Bt,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"System Health"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Monitor system performance and status"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-green-50 border border-green-200 rounded-2xl",children:[e.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),e.jsx("span",{className:"text-sm font-bold text-green-700",children:"All Systems Operational"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsx(yf,{title:"API Server",status:n.api_status,icon:e.jsx(J9,{size:20}),color:"green"}),e.jsx(yf,{title:"Database",status:n.database_status,icon:e.jsx(Ti,{size:20}),color:"green"}),e.jsx(yf,{title:"Uptime",status:n.uptime,icon:e.jsx(Kb,{size:20}),color:"blue"}),e.jsx(yf,{title:"Response Time",status:n.response_time,icon:e.jsx(Bt,{size:20}),color:"purple"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsx(vf,{title:"Active Connections",value:n.active_connections}),e.jsx(vf,{title:"Total Requests",value:n.total_requests.toLocaleString()}),e.jsx(vf,{title:"Error Rate",value:n.error_rate}),e.jsx(vf,{title:"Last Backup",value:n.last_backup})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-6",children:"Service Status"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(To,{name:"Admin Panel API",status:"operational",uptime:"99.9%"}),e.jsx(To,{name:"MongoDB Database",status:"operational",uptime:"100%"}),e.jsx(To,{name:"Authentication Service",status:"operational",uptime:"99.8%"}),e.jsx(To,{name:"File Storage",status:"operational",uptime:"99.9%"}),e.jsx(To,{name:"Email Service",status:"operational",uptime:"98.5%"}),e.jsx(To,{name:"SMS Gateway",status:"operational",uptime:"99.2%"})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-6",children:"Recent System Events"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(jf,{type:"success",message:"Database backup completed successfully",time:"2 hours ago"}),e.jsx(jf,{type:"info",message:"System update deployed",time:"5 hours ago"}),e.jsx(jf,{type:"success",message:"SSL certificate renewed",time:"1 day ago"}),e.jsx(jf,{type:"info",message:"Scheduled maintenance completed",time:"2 days ago"})]})]})]})})},yf=({title:a,status:t,icon:n,color:l})=>{const i={green:"bg-green-50 text-green-600 border-green-200",blue:"bg-blue-50 text-blue-600 border-blue-200",purple:"bg-purple-50 text-purple-600 border-purple-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl border ${i[l]}`,children:n})]}),e.jsx("p",{className:"text-2xl font-black text-slate-900 capitalize",children:t})]})},vf=({title:a,value:t})=>e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest mb-2",children:a}),e.jsx("p",{className:"text-2xl font-black text-slate-900",children:t})]}),To=({name:a,status:t,uptime:n})=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-2xl",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Bi,{size:20,className:"text-green-500"}),e.jsx("span",{className:"text-sm font-bold text-slate-700",children:a})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("span",{className:"text-xs text-slate-500",children:["Uptime: ",n]}),e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-700 rounded-full text-xs font-bold uppercase",children:t})]})]}),jf=({type:a,message:t,time:n})=>{const l={success:"bg-green-500",info:"bg-blue-500",warning:"bg-yellow-500",error:"bg-red-500"};return e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-slate-50 rounded-2xl",children:[e.jsx("div",{className:`w-2 h-2 rounded-full mt-2 ${l[a]}`}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-semibold text-slate-800",children:t}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:n})]})]})},mL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(!1),[u,h]=y.useState(null),[f,p]=y.useState({name:"",slug:"",subject:"",html_content:"",variables:"",active:!0});y.useEffect(()=>{x()},[]);const x=async()=>{try{l(!0);const N=await Px.getTemplates();t(N.data.templates||[])}catch(N){console.error("Fetch failed",N)}finally{l(!1)}},b=N=>{h(N._id),p({name:N.name,slug:N.slug,subject:N.subject,html_content:N.html_content,variables:N.variables.join(", "),active:N.active}),c(!0)},v=()=>{c(!1),h(null),p({name:"",slug:"",subject:"",html_content:"",variables:"",active:!0})},w=async N=>{N.preventDefault();const A={...f,variables:f.variables.split(",").map(S=>S.trim()).filter(S=>S!=="")};try{u?await Px.updateTemplate(u,A):await Px.createTemplate(A),v(),x()}catch{alert("Save failed")}},j=()=>{let N=f.html_content;return f.variables.split(",").map(S=>
245S.trim()).forEach(S=>{if(S){const C=new RegExp(`{{${S}}}`,"g");N=N.replace(C,`<span style="background:#fef08a; color:#854d0e; padding:2px 4px; border-radius:4px; border:1px dashed #ca8a04;">[${S}]</span>`)}}),N};return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:[e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-indigo-600 rounded-2xl flex items-center justify-center shadow-lg shadow-indigo-200",children:e.jsx(Hr,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Email Templates"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"Manage system transactional emails"})]})]}),e.jsxs("button",{onClick:()=>c(!0),className:"flex items-center gap-2 px-6 py-3 bg-indigo-600 text-white rounded-2xl font-bold shadow-lg shadow-indigo-100 hover:bg-indigo-700 transition-all",children:[e.jsx(ji,{size:20})," Create New Template"]})]}),n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-indigo-600",size:40})}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(N=>e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-slate-200 hover:shadow-xl transition-all group",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("span",{className:`px-3 py-1 rounded-full text-[10px] font-bold uppercase ${N.active?"bg-green-100 text-green-700":"bg-slate-100 text-slate-500"}`,children:N.active?"Active":"Draft"}),e.jsx("p",{className:"text-[10px] font-mono text-slate-400 bg-slate-50 px-2 py-1 rounded-lg",children:N.slug})]}),e.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-1",children:N.name}),e.jsxs("p",{className:"text-xs text-slate-500 mb-6 truncate italic",children:["Subject: ",N.subject]}),e.jsxs("button",{onClick:()=>b(N),className:"w-full py-3 bg-slate-50 text-slate-600 rounded-2xl text-sm font-bold border border-slate-100 hover:bg-indigo-600 hover:text-white hover:border-indigo-600 transition-all flex items-center justify-center gap-2",children:[e.jsx(Xa,{size:16})," View & Edit Template"]})]},N._id))})]}),i&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-slate-900/60 backdrop-blur-sm",children:e.jsxs("div",{className:"bg-white w-full max-w-7xl h-[90vh] rounded-[40px] shadow-2xl overflow-hidden flex flex-col animate-in fade-in zoom-in duration-200",children:[e.jsxs("div",{className:"p-6 border-b flex items-center justify-between bg-slate-50/50",children:[e.jsx("h2",{className:"text-xl font-bold text-slate-900",children:u?"Edit Email Template":"Create New Email Template"}),e.jsx("button",{onClick:v,className:"p-2 hover:bg-slate-200 rounded-full transition-colors",children:e.jsx(ls,{size:24})})]}),e.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[e.jsxs("div",{className:"flex-1 overflow-y-auto p-8 space-y-6 border-r custom-scrollbar",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Display Name"}),e.jsx("input",{type:"text",className:"w-full px-5 py-3 bg-slate-50 border rounded-xl outline-none focus:border-indigo-500 font-bold",value:f.name,onChange:N=>p({...f,name:N.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"System Slug (Unique)"}),e.jsx("input",{disabled:u,type:"text",className:"w-full px-5 py-3 bg-slate-50 border rounded-xl font-mono text-sm",value:f.slug,onChange:N=>p({...f,slug:N.target.value})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Email Subject"}),e.jsx("input",{type:"text",className:"w-full px-5 py-3 bg-slate-50 border rounded-xl outline-none focus:border-indigo-500 font-bold",value:f.subject,onChange:N=>p({...f,subject:N.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"HTML Content"}),e.jsx("textarea",{rows:"12",className:"w-full px-5 py-4 bg-slate-900 text-indigo-300 border rounded-2xl font-mono text-sm outline-none focus:ring-2 ring-indigo-500/20",value:f.html_content,onChange:N=>p({...f,html_content:N.target.value}),placeholder:"<html>...</html>"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest block mb-1",children:"Dynamic Variables (Comma separated)"}),e.jsx("input",{type:"text",placeholder:"user_name, plan_name, tokens",className:"w-full px-5 py-3 bg-slate-50 border rounded-xl",value:f.variables,onChange:N=>p({...f,variables:N.target.value})})]})]}),e.jsxs("div",{className:"flex-1 bg-slate-100 p-8 flex flex-col",children:[e.jsxs("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-4 flex items-center gap-2",children:[e.jsx(Xa,{size:14})," Real-time Desktop Preview"]}),e.jsxs("div",{className:"flex-1 bg-white rounded-3xl shadow-2xl border border-slate-200 overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"bg-slate-50 p-4 border-b text-xs text-slate-400 font-mono",children:["To: [email protected] ",e.jsx("br",{}),"Subject: ",f.subject||"(No Subject)"]}),e.jsx("iframe",{title:"preview",className:"flex-1 w-full border-none",srcDoc:`<html><body style="font-family:sans-serif; padding:20px;">${j()}</body></html>`})]})]})]}),e.jsxs("div",{className:"p-6 border-t bg-white flex justify-end gap-3",children:[e.jsx("button",{onClick:v,className:"px-8 py-3 bg-slate-100 text-slate-600 font-bold rounded-2xl hover:bg-slate-200 transition-all",children:"Cancel"}),e.jsxs("button",{onClick:w,className:"px-8 py-3 bg-indigo-600 text-white font-bold rounded-2xl shadow-lg shadow-indigo-100 hover:bg-indigo-700 transition-all flex items-center gap-2",children:[e.jsx(qb,{size:18})," Save Template"]})]})]})})]})},pL={approved:"bg-green-100 text-green-700",pending_review:"bg-yellow-100 text-yellow-700",rejected:"bg-red-100 text-red-700",cancelled:"bg-gray-100 text-gray-600",revoked:"bg-orange-100 text-orange-700","n/a":"bg-slate-100 text-slate-500"},xL={approved:"Approved",pending_review:"Pending",rejected:"Rejected",cancelled:"Cancelled",revoked:"Revoked","n/a":"N/A"},vd=({title:a,value:t,icon:n,color:l})=>{const i={blue:"bg-blue-50 text-blue-600",green:"bg-green-50 text-green-600",yellow:"bg-yellow-50 text-yellow-600",red:"bg-red-50 text-red-600",purple:"bg-purple-50 text-purple-600"};return e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:`p-2 rounded-lg ${i[l]}`,children:e.jsx(n,{size:18})}),e.jsx("span",{className:"text-sm text-slate-500",children:a})]}),e.jsx("p",{className:"text-2xl font-bold text-slate-800",children:t??"-"})]})},gL=()=>{const a=gt(),[t,n]=y.useState([]),[l,i]=y.useState(null),[c,u]=y.useState(!0),[h,f]=y.useState(null),[p,x]=y.useState(""),[b,v]=y.useState(""),[w,j]=y.useState(1),[N,A]=y.useState(null),S=20;y.useEffect(()=>{C()},[w,p,b]),y.useEffect(()=>{T()},[]);const C=async()=>{try{u(!0);const E=await Ys.getAll({page:w,limit:S,search:p,kyc_status:b});n(E.data.companies),i(E.data.default_company),A(E.data.pagination)}catch(E){console.error("Error fetching companies:",E)}finally{u(!1)}},T=async()=>{try{const E=await Ys.getStats();f(E.data)}catch(E){console.error("Error fetching stats:",E)}},L=E=>{x(E.target.value),j(1)},O=E=>{v(E.target.value),j(1)},R=N?.pages??1,k=()=>{const E=[],D=Math.max(2,w-2),q=Math.min(R-1,w+2);E.push(1),D>2&&E.push("...");for(let V=D;V<=q;V++)E.push(V);return q<R-1&&E.push("..."),R>1&&E.push(R),E};return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-blue-100 rounded-xl",children:e.jsx(Er,{className:"text-blue-600",size:24})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Companies"}),e.jsx("p",{className:"text-sm text-slate-500",children:"Manage registered companies and their members"})]})]}),h&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:[e.jsx(vd,{title:"Total Companies",value:h.total_companies,icon:Er,color:"blue"}),e.jsx(vd,{title:"Approved",value:h.approved,icon:Ax,color:"green"}),e.jsx(vd,{title:"Pending",value:h.pending,icon:Ax,color:"yellow"}),e.jsx(vd,{title:"Rejected",value:h.rejected,icon:Ax,color:"red"}),e.jsx(vd,{title:"Unregistered Users",value:h.default_users,icon:kA,color:"purple"})]}),e.jsxs("div",{className:"bg-white p-4 rounded-2xl border border-slate-200 shadow-sm flex flex-wrap items-center gap-4",children:[e.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[e.jsx(Gs,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400",size:18}),e.jsx("input",{type:"text",placeholder:"Search companies...",value:p,onChange:L,className:"w-full pl-10 pr-4 py-2 border border-slate-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 text-sm"})]}),e.jsxs("select",{value:b,onChange:O,className:"px-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500",children:[e.jsx("option",{value:"",children:"All KYC Status"}),e.jsx("option",{value:"approved",children:"Approved"}),e.jsx("option",{value:"pending_review",children:"Pending Review"}),e.jsx("option",{value:"rejected",children:"Rejected"}),e.jsx("option",{value:"cancelled",children:"Cancelled"}),e.jsx("option",{value:"revoked",children:"Revoked"})]}),e.jsx("button",{onClick:()=>{C(),T()},className:"p-2 text-slate-500 hover:text-primary-600 hover:bg-primary-50 rounded-lg transition-colors",children:e.jsx(g0,{size:18})})]}),c?e.jsx("div",{className:"flex justify-center items-center py-20",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:32})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden",children:[e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Company"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Email"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Country"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Phone"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Website"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"Members"}),e.jsx("th",{className:"text-left px-5 py-3 font-semibold text-slate-600",children:"KYC Status"})]})}),e.jsxs("tbody",{children:[l&&e.jsxs("tr",{onClick:()=>a("/companies/default"),className:"border-b border-slate-100 cursor-pointer hover:bg-purple-50 transition-colors",children:[e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-purple-100 rounded-lg",children:e.jsx(kA,{size:15,className:"text-purple-600"})}),e.jsx("span",{className:"font-medium text-slate-700",children:"Default Company"})]})}),e.jsx("td",{className:"px-5 py-3 text-slate-400",children:"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-400",children:"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-400",children:"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-400",children:"â"}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-purple-600",children:[e.jsx(qa,{size:14}),e.jsx("span",{className:"font-semibold",children:l.member_count})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:"text-xs px-2 py-1 rounded-full font-medium bg-slate-100 text-slate-500",children:"N/A"})})]}),t.map((E,z)=>e.jsxs("tr",{onClick:()=>a(`/companies/${E.id}`),className:`border-b border-slate-100 cursor-pointer hover:bg-blue-50 transition-colors ${z%2===0?"":"bg-slate-50/40"}`,children:[e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-blue-50 rounded-lg",children:e.jsx(Er,{size:15,className:"text-blue-600"})}),e.jsx("span",{className:"font-medium text-slate-800",children:E.company_name})]})}),e.jsx("td",{className:"px-5 py-3 text-slate-500",children:E.business_mail&&E.business_mail!=="-"?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Hr,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"truncate max-w-[180px]",children:E.business_mail})]}):"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-500",children:E.country&&E.country!=="-"?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(rc,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:E.country})]}):"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-500",children:E.phone_number&&E.phone_number!=="-"?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(At,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{children:E.phone_number})]}):"â"}),e.jsx("td",{className:"px-5 py-3 text-slate-500",children:E.website_url&&E.website_url!=="-"?e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(Ri,{size:13,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"truncate max-w-[150px]",children:E.website_url})]}):"â"}),e.jsx("td",{className:"px-5 py-3",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-slate-600",children:[e.jsx(qa,{size:14,className:"text-primary-500"}),e.jsx("span",{className:"font-semibold",children:E.member_count})]})}),e.jsx("td",{className:"px-5 py-3",children:e.jsx("span",{className:`text-xs px-2 py-1 rounded-full font-medium ${pL[E.kyc_status]||"bg-gray-100 text-gray-600"}`,children:xL[E.kyc_status]||E.kyc_status})})]},E.id))]})]}),t.length===0&&!l&&e.jsxs("div",{className:"text-center py-16 text-slate-400",children:[e.jsx(Er,{size:48,className:"mx-auto mb-3 opacity-50"}),e.jsx("p",{className:"text-lg",children:"No companies found"}),e.jsx("p",{className:"text-sm",children:"Try adjusting your search or filters"})]})]}),N&&R>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(w-1)*S+1,"â",Math.min(w*S,N.total)," of ",N.total," companies"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>
245j(1),disabled:w<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>j(w-1),disabled:w<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),k().map((E,z)=>E==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${z}`):e.jsx("button",{onClick:()=>j(E),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${E===w?"bg-primary-600 text-white border border-primary-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:E},E)),e.jsx("button",{onClick:()=>j(w+1),disabled:w>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>j(R),disabled:w>=R,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]})]})})},bL={approved:"bg-green-100 text-green-700 border-green-200",pending_review:"bg-yellow-100 text-yellow-700 border-yellow-200",rejected:"bg-red-100 text-red-700 border-red-200",cancelled:"bg-gray-100 text-gray-600 border-gray-200",revoked:"bg-orange-100 text-orange-700 border-orange-200","n/a":"bg-slate-100 text-slate-500 border-slate-200"},yL={approved:"Approved",pending_review:"Pending Review",rejected:"Rejected",cancelled:"Cancelled",revoked:"Revoked","n/a":"N/A"},sw={owner:"bg-purple-100 text-purple-700",admin:"bg-blue-100 text-blue-700",member:"bg-slate-100 text-slate-600"},vL={active:"bg-green-100 text-green-700",suspended:"bg-red-100 text-red-700",pending:"bg-yellow-100 text-yellow-700",inactive:"bg-gray-100 text-gray-600"},Af=({title:a,value:t,icon:n,color:l,subtitle:i})=>{const c={blue:"bg-blue-50 text-blue-600",green:"bg-green-50 text-green-600",purple:"bg-purple-50 text-purple-600",orange:"bg-orange-50 text-orange-600",red:"bg-red-50 text-red-600",cyan:"bg-cyan-50 text-cyan-600"};return e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:`p-2.5 rounded-xl ${c[l]}`,children:e.jsx(n,{size:20})}),e.jsx("span",{className:"text-sm text-slate-500",children:a})]}),e.jsx("p",{className:"text-2xl font-bold text-slate-800",children:t??"-"}),i&&e.jsx("p",{className:"text-xs text-slate-400 mt-1",children:i})]})},jL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState(null),[c,u]=y.useState(!0),[h,f]=y.useState(""),[p,x]=y.useState(null),[b,v]=y.useState(!1),w=a==="default";y.useEffect(()=>{j(),N()},[a]);const j=async()=>{try{u(!0);const R=await Ys.getById(a);i(R.data);const k=R.data?.company?.company_name;k&&n(a,k)}catch(R){console.error("Error fetching company details:",R)}finally{u(!1)}},N=async()=>{try{v(!0);const R=await Ys.getResources(a);x(R.data)}catch(R){console.error("Error fetching resources:",R)}finally{v(!1)}},A=l?.members?.filter(R=>{if(!h)return!0;const k=h.toLowerCase();return(R.full_name||"").toLowerCase().includes(k)||(R.email||"").toLowerCase().includes(k)})||[],S=R=>{if(!R||R===0)return"0 min";if(R<60)return`${Math.round(R)} min`;const k=Math.floor(R/60),E=Math.round(R%60);return E>0?`${k}h ${E}m`:`${k}h`},C=()=>{if(!l?.subscription||l.subscription.summary)return 0;const R=l.subscription.total_allocated_minutes||0,k=l.subscription.available_minutes||0;return R===0?0:Math.min(100,Math.round(k/R*100))};if(c)return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})});if(!l)return e.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] flex flex-col justify-center items-center gap-4",children:[e.jsx(aa,{size:48,className:"text-slate-300"}),e.jsx("p",{className:"text-slate-500",children:"Failed to load company details"}),e.jsx("button",{onClick:()=>t("/companies"),className:"text-primary-600 hover:underline text-sm",children:"Back to Companies"})]});const T=l.company,L=l.stats,O=l.subscription;return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto
245space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t("/companies"),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[e.jsx("div",{className:`p-3 rounded-xl ${w?"bg-slate-200":"bg-blue-100"}`,children:e.jsx(Er,{size:24,className:w?"text-slate-500":"text-blue-600"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:T.company_name}),T.kyc_status&&T.kyc_status!=="n/a"&&e.jsxs("span",{className:`text-xs px-3 py-1 rounded-full font-medium border ${bL[T.kyc_status]||"bg-gray-100 text-gray-600 border-gray-200"}`,children:["KYC: ",yL[T.kyc_status]||T.kyc_status]})]}),e.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:w?"Users who have not completed KYC verification":"Company Dashboard"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsx(Af,{title:"Total Members",value:L.total_members,icon:qa,color:"blue"}),e.jsx(Af,{title:"Total Calls",value:L.total_calls,icon:ic,color:"green"}),e.jsx(Af,{title:"Call Duration",value:S(L.total_duration_minutes),icon:Ka,color:"purple"}),e.jsx(Af,{title:"Completed Calls",value:L.calls_by_status?.completed||0,icon:Bi,color:"orange"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"space-y-6",children:[!w&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"Company Information"}),e.jsx("div",{className:"space-y-4",children:[{icon:Hr,label:"Business Email",value:T.business_mail},{icon:At,label:"Phone",value:T.phone_number},{icon:Ri,label:"Website",value:T.website_url,isLink:!0},{icon:rc,label:"Country",value:T.country},{icon:rc,label:"Address",value:T.address},{icon:qa,label:"Team Size",value:T.team_size},{icon:Fa,label:"Established",value:T.established_year}].map(({icon:R,label:k,value:E,isLink:z})=>E&&E!=="-"?e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-1.5 bg-slate-100 rounded-lg mt-0.5",children:e.jsx(R,{size:14,className:"text-slate-400"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-xs text-slate-400",children:k}),z?e.jsx("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-600 hover:underline break-all",children:E}):e.jsx("p",{className:"text-sm text-slate-700 break-words",children:E})]})]},k):null)})]}),!w&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"KYC Documents"}),e.jsx("div",{className:"space-y-3",children:[{label:"Personal Document",url:T.personal_doc_url},{label:"Company Document",url:T.company_doc_url},{label:"Address Proof",url:T.address_proof_url}].map(({label:R,url:k})=>e.jsxs("a",{href:k&&k!=="pending"?k:"#",target:k&&k!=="pending"?"_blank":void 0,rel:"noopener noreferrer",className:`flex items-center gap-3 p-3 rounded-xl border transition-colors ${k&&k!=="pending"?"border-slate-200 bg-slate-50 hover:bg-primary-50 hover:border-primary-200 cursor-pointer":"border-dashed border-slate-200 bg-slate-50/50 cursor-not-allowed opacity-50"}`,children:[e.jsx(Cn,{size:18,className:"text-slate-400"}),e.jsx("span",{className:"flex-1 text-sm text-slate-700",children:R}),k&&k!=="pending"?e.jsx(Kl,{size:16,className:"text-primary-500"}):e.jsx("span",{className:"text-xs text-slate-400",children:"Pending"})]},R))})]}),l.owner&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"Company Owner"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-primary-100 rounded-xl flex items-center justify-center text-primary-600 font-bold text-lg",children:(l.owner.full_name||l.owner.email||"?")[0].toUpperCase()}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-slate-800",children:l.owner.full_name||"-"}),e.jsx("p",{className:"text-sm text-slate-400",children:l.owner.email})]}),e.jsx("span",{className:`text-xs px-2.5 py-1 rounded-full font-medium ${sw[l.owner.role]||"bg-slate-100 text-slate-600"}`,children:l.owner.role||"owner"})]})]}),w&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2.5 bg-purple-50 rounded-xl",children:e.jsx(d4,{size:20,className:"text-purple-600"})}),e.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"About"})]}),e.jsx("p",{className:"text-sm text-slate-500 leading-relaxed",children:"This is a virtual group for all users who have not yet completed the KYC verification process. These users are not associated with any registered company."})]})]}),e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[Object.keys(L.
245calls_by_status||{}).length>0&&e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Tn,{size:18,className:"text-slate-500"}),e.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"Calls Breakdown"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Object.entries(L.calls_by_status).map(([R,k])=>{const z={completed:{icon:Bi,color:"text-green-500",bg:"bg-green-50"},failed:{icon:Fb,color:"text-red-500",bg:"bg-red-50"},"no-answer":{icon:aa,color:"text-yellow-500",bg:"bg-yellow-50"},busy:{icon:At,color:"text-orange-500",bg:"bg-orange-50"}}[R]||{icon:ic,color:"text-slate-500",bg:"bg-slate-50"},D=z.icon;return e.jsxs("div",{className:`${z.bg} rounded-xl p-4`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(D,{size:14,className:z.color}),e.jsx("span",{className:"text-xs text-slate-500 capitalize",children:R})]}),e.jsx("p",{className:"text-xl font-bold text-slate-800",children:k})]},R)})})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsx("h3",{className:"text-base font-semibold text-slate-800 mb-4",children:"Company Resources"}),b?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx(Ge,{className:"animate-spin text-slate-300",size:24})}):p?e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[{key:"integrations",label:"Integrations",icon:zr,color:"bg-indigo-50 text-indigo-600",hoverBorder:"hover:border-indigo-300",route:"integrations"},{key:"agents",label:"Agents",icon:Pl,color:"bg-emerald-50 text-emerald-600",hoverBorder:"hover:border-emerald-300",route:"agents"},{key:"knowledge_bases",label:"Knowledge Bases",icon:Dg,color:"bg-amber-50 text-amber-600",hoverBorder:"hover:border-amber-300",route:"knowledge-bases"},{key:"campaigns",label:"Campaigns",icon:Bg,color:"bg-pink-50 text-pink-600",hoverBorder:"hover:border-pink-300",route:"campaigns"},{key:"callbacks",label:"Callbacks",icon:c4,color:"bg-cyan-50 text-cyan-600",hoverBorder:"hover:border-cyan-300",route:"callbacks"},{key:"human_transfers",label:"Human Transfers",icon:r4,color:"bg-orange-50 text-orange-600",hoverBorder:"hover:border-orange-300",route:"human-transfers"}].map(({key:R,label:k,icon:E,color:z,hoverBorder:D,route:q})=>{const V=p[R]?.count??0;return e.jsxs("button",{onClick:()=>V>0&&t(`/companies/${a}/${q}`),className:`p-4 rounded-xl border text-left transition-all group ${V>0?`border-slate-200 ${D} hover:shadow-md cursor-pointer`:"border-slate-100 opacity-50 cursor-default"}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("div",{className:`p-2 rounded-lg ${z}`,children:e.jsx(E,{size:18})}),V>0&&e.jsx(Vb,{size:16,className:"text-slate-300 group-hover:text-slate-500 transition-colors"})]}),e.jsx("p",{className:"text-2xl font-bold text-slate-800",children:V}),e.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:k})]},R)})}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx(zr,{size:36,className:"mx-auto text-slate-200 mb-2"}),e.jsx("p",{className:"text-sm text-slate-400",children:"No resources data available"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(Ha,{size:18,className:"text-slate-500"}),e.jsx("h3",{className:"text-base font-semibold text-slate-800",children:"Subscription & Plan"})]}),O?O.summary?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-blue-50 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs text-blue-500 mb-1",children:"Active Subscriptions"}),e.jsx("p",{className:"text-2xl font-bold text-blue-700",children:O.active_subscriptions})]}),e.jsxs("div",{className:"bg-green-50 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs text-green-500 mb-1",children:"Available Minutes"}),e.jsx("p",{className:"text-2xl font-bold text-green-700",children:Math.round(O.total_available_minutes)}),e.jsxs("p",{className:"text-xs text-green-400 mt-1",children:["of ",Math.round(O.total_allocated_minutes||0)," total"]})]}),O.total_monthly_limit>0&&e.jsxs("div",{className:"bg-orange-50 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs text-orange-500 mb-1",children:"Tokens (Wallet)"}),e.jsx("p",{className:"text-2xl font-bold text-orange-700",children:Math.round(O.total_wallet_balance).toLocaleStr
245ing()}),e.jsxs("p",{className:"text-xs text-orange-400 mt-1",children:["of ",Math.round(O.total_monthly_limit).toLocaleString()," limit"]})]}),O.total_revenue>0&&e.jsxs("div",{className:"bg-purple-50 rounded-xl p-4",children:[e.jsx("p",{className:"text-xs text-purple-500 mb-1",children:"Total Revenue"}),e.jsx("p",{className:"text-2xl font-bold text-purple-700",children:O.total_revenue})]})]}),O.total_allocated_minutes>0&&e.jsxs("div",{className:"bg-slate-50 rounded-xl p-4",children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{className:"text-slate-500",children:"Overall Minutes Usage"}),e.jsxs("span",{className:"font-semibold text-slate-700",children:[Math.round(O.total_available_minutes)," / ",Math.round(O.total_allocated_minutes)," remaining"]})]}),e.jsx("div",{className:"w-full bg-slate-200 rounded-full h-3",children:e.jsx("div",{className:`h-3 rounded-full transition-all ${O.total_available_minutes/O.total_allocated_minutes>.5?"bg-green-500":O.total_available_minutes/O.total_allocated_minutes>.2?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(100,Math.round(O.total_available_minutes/O.total_allocated_minutes*100))}%`}})})]})]}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-primary-50 rounded-lg",children:e.jsx(Ha,{size:18,className:"text-primary-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-800",children:O.package_name||"N/A"}),O.start_date&&e.jsxs("p",{className:"text-xs text-slate-400",children:["Since ",new Date(O.start_date).toLocaleDateString()]})]})]}),e.jsx("span",{className:`text-xs px-3 py-1 rounded-full font-medium ${O.is_active?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:O.is_active?"Active":"Inactive"})]}),e.jsxs("div",{className:"bg-slate-50 rounded-xl p-4",children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{className:"text-slate-500",children:"Minutes Remaining"}),e.jsxs("span",{className:"font-semibold text-slate-700",children:[O.available_minutes||0," / ",O.total_allocated_minutes||0]})]}),e.jsx("div",{className:"w-full bg-slate-200 rounded-full h-3",children:e.jsx("div",{className:`h-3 rounded-full transition-all ${C()>50?"bg-green-500":C()>20?"bg-yellow-500":"bg-red-500"}`,style:{width:`${C()}%`}})}),e.jsxs("p",{className:"text-xs text-slate-400 mt-1",children:[C(),"% remaining"]})]}),(O.monthly_limit>0||O.tokens_consumed>0)&&e.jsxs("div",{className:"bg-orange-50 rounded-xl p-4",children:[e.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[e.jsx("span",{className:"text-orange-500",children:"Tokens"}),e.jsxs("span",{className:"font-semibold text-orange-700",children:[Number(O.wallet_balance||0).toLocaleString()," remaining"]})]}),O.monthly_limit>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-full bg-orange-200 rounded-full h-2.5 mb-1",children:e.jsx("div",{className:`h-2.5 rounded-full transition-all ${O.wallet_balance/O.monthly_limit>.5?"bg-green-500":O.wallet_balance/O.monthly_limit>.2?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(100,Math.round(O.wallet_balance/O.monthly_limit*100))}%`}})}),e.jsxs("div",{className:"flex justify-between text-xs text-orange-400 mt-1",children:[e.jsxs("span",{children:["Consumed: ",Number(O.tokens_consumed||0).toLocaleString()]}),e.jsxs("span",{children:["Limit: ",Number(O.monthly_limit).toLocaleString()]})]})]}),!O.monthly_limit&&O.tokens_consumed>0&&e.jsxs("p",{className:"text-xs text-orange-400",children:["Consumed: ",Number(O.tokens_consumed).toLocaleString()]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[O.price_paid&&e.jsxs("div",{className:"flex items-center gap-3 bg-slate-50 rounded-xl p-3",children:[e.jsx(a4,{size:16,className:"text-slate-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-slate-400",children:"Price Paid"}),e.jsx("p",{className:"text-sm font-semibold text-slate-700",children:O.price_paid})]})]}),O.order_id&&e.jsxs("div",{className:"flex items-center gap-3 bg-slate-50 rounded-xl p-3",children:[e.jsx(Cn,{size:16,className:"text-slate-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-slate-400",children:"Order ID"}),e.jsx("p",{className:"text-sm font-medium text-slate-700 truncate",children:O.order_id})]})]})]})]}):e.jsxs("div",{className:"text-center py-8",children:[e.jsx(Ha,{size:36,className:"mx-auto text-slate-200 mb-2"}),e.jsx("p",{className:"text-sm text-slate-400",children:"No active subscription"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(qa,{size:18,className:"text-slate-500"}),e.jsxs("h3",{className:"text-base font-semibold text-slate-800",children:["Members (",L.total_members,")"]})]}),e.jsxs("div",{className:"relative w-64",children:[e.jsx(Gs,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400",size:16}),e.jsx("input",{type:"text",placeholder:"Search members...",value:h,onChange:R=>f(R.target.value),className:"w-full pl-9 pr-4 py-2 border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"})]})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-slate-100",children:[e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"User"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Role"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Plan"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Minutes"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Tokens"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Status"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-4",children:"Joined"})]})}),e.jsx("tbody",{children:A.length>0?A.map(R=>{const k=Number(R.total_allocated_minutes)||0,E=Number(R.available_minutes)||0,z=k>0?Math.round(E/k*100):0;return e.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50/50 transition-colors",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-primary-100 rounded-full flex items-center justify-center text-primary-600 text-sm font-bold shrink-0",children:(R.full_name||R.email||"?")[0].toUpperCase()}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700 truncate",children:R.full_name||"-"}),e.jsx("p",{className:"text-xs text-slate-400 truncate",children:R.email})]})]})}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${sw[R.role]||"bg-slate-100 text-slate-600"}`,children:R.role||"member"})}),e.jsxs("td",{className:"py-3 px-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-slate-700",children:R.package_name||"Free"}),R.is_active_plan?e.jsx("span",{className:"w-2 h-2 bg-green-500 rounded-full",title:"Active"}):e.jsx("span",{className:"w-2 h-2 bg-slate-300 rounded-full",title:"Inactive"})]}),R.price_paid&&e.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:R.price_paid})]}),e.jsx("td",{className:"py-3 px-4",children:k>0?e.jsxs("div",{className:"min-w-[120px]",children:[e.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[e.jsxs("span",{className:"text-slate-500",children:[Math.round(E)," left"]}),e.jsxs("span",{className:"text-slate-400",children:["/ ",Math.round(k)]})]}),e.jsx("div",{className:"w-full bg-slate-200 rounded-full h-1.5",children:e.jsx("div",{className:`h-1.5 rounded-full ${z>50?"bg-green-500":z>20?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(100,z)}%`}})})]}):e.jsx("span",{className:"text-xs text-slate-400",children:"-"})}),e.jsx("td",{className:"py-3 px-4",children:(()=>{const D=Number(R.monthly_limit)||0,q=Number(R.wallet_balance)||0,V=Number(R.tokens_consumed)||0,Z=D>0?Math.round(q/D*100):0;return D>0?e.jsxs("div",{className:"min-w-[120px]",children:[e.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[e.jsxs("span",{className:"text-slate-500",children:[Math.round(q).toLocaleStr
245ing()," left"]}),e.jsxs("span",{className:"text-slate-400",children:["/ ",Math.round(D).toLocaleString()]})]}),e.jsx("div",{className:"w-full bg-slate-200 rounded-full h-1.5",children:e.jsx("div",{className:`h-1.5 rounded-full ${Z>50?"bg-green-500":Z>20?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(100,Z)}%`}})})]}):V>0?e.jsx("span",{className:"text-sm text-slate-500",children:V.toLocaleString()}):e.jsx("span",{className:"text-xs text-slate-400",children:"-"})})()}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${vL[R.status]||"bg-gray-100 text-gray-600"}`,children:R.status||"active"})}),e.jsx("td",{className:"py-3 px-4 text-sm text-slate-400 whitespace-nowrap",children:R.created_at?new Date(R.created_at).toLocaleDateString():"-"})]},R._id)}):e.jsx("tr",{children:e.jsx("td",{colSpan:"7",className:"text-center py-8 text-sm text-slate-400",children:"No members found"})})})]})})]})]})]})]})})},AL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState(""),[p,x]=y.useState(null),[b,v]=y.useState(null),[w,j]=y.useState(null);y.useEffect(()=>{(async()=>{try{u(!0);const[S,C]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(S.data.integrations?.items||[]);const T=C.data.company?.company_name;f(T||"Company"),T&&n(a,T)}catch(S){console.error("Error fetching integrations:",S)}finally{u(!1)}})()},[a]);const N=async A=>{x(A),v(null);try{const S=await Gd.getUsage(A.integration_id);v(S.data)}catch(S){console.error("Error fetching usage:",S)}};return c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-indigo-100",children:e.jsx(zr,{size:24,className:"text-indigo-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Integrations"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," integration",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No integrations found for this company"})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map((A,S)=>e.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 p-5 space-y-3 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`h-10 w-10 rounded-lg flex items-center justify-center border shrink-0 ${A.is_active?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:A.provider?.includes("email")?e.jsx(Hr,{size:20}):e.jsx(At,{size:20})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h3",{className:"text-sm font-bold text-slate-800 uppercase tracking-tight",children:A.provider||"Unknown"}),A.indian===!0&&e.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"})]}),A.label&&e.jsx("p",{className:"text-xs font-semibold text-indigo-600",children:A.label})]}),e.jsx("span",{className:`text-xs px-2.5 py-1 rounded-full font-medium shrink-0 ${A.is_active?"bg-green-100 text-green-700":"bg-red-100 text-red-700"}`,children:A.is_active?"Active":"Inactive"})]}),e.jsxs("div",{className:"space-y-1.5 text-sm border-t border-slate-50 pt-3",children:[A.phoneNumber&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Phone"}),e.jsx("span",{className:"text-slate-700 font-mono text-xs font-semibold",children:A.phoneNumber})]}),A.senderEmail&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Email"}),e.jsx("span",{className:"text-slate-700 text-xs font-semibold",children:A.senderEmail})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Integration ID"}),e.jsx("span",{className:"text-slate-500 font-mono text-[10px]",children:A.integration_id})]}),A.user_name&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Owner"}),e.jsx("span",{className:"text-slate-700 font-medium text-xs",children:A.user_name})]}),A.user_email&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Owner Email"}),e.jsx("span",{className:"text-slate-600 text-xs",children:A.user_email})]}),A.created_at&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Created"}),e.jsx("span",{className:"text-slate-600 text-xs",children:new Date(A.created_at).toLocaleDateString()})]}),A.updated_at&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400 text-xs",children:"Updated"}),e.jsx("span",{className:"text-slate-600 text-xs",children:new Date(A.updated_at).toLocaleDateString()})]})]}),e.jsxs("div",{className:"pt-1 border-t border-slate-100 flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase",children:"Total Calls"}),e.jsx("span",{className:"text-xs font-bold text-slate-700",children:A.total_calls??0})]}),e.jsx("button",{onClick:()=>N(A),className:"w-full py-2 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-xs font-bold transition-colors",children:"View Analytics"})]},S))})]})}),p&&e.jsx(wL,{integration:p,usage:b,onClose:()=>{x(null),v(null)},onViewCall:A=>j(A)}),w&&e.jsx(Yr,{call:w,onClose:()=>j(null)})]})},wL=({integration:a,usage:t,onClose:n,onViewCall:l})=>e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-400/50 backdrop-blur-sm",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-xl max-w-6xl w-full h-[85vh] overflow-hidden flex flex-col border border-slate-200",onClick:i=>i.stopPropagation(),children:[e.jsxs("div",{className:"p-6 border-b border-slate-100 flex items-center justify-between bg-slate-50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 bg-indigo-500 rounded-lg flex items-center justify-center text-white",children:e.jsx(Tn,{size:20})}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-lg font-bold text-slate-800 uppercase tracking-tight",children:[a.provider," Analysis"]}),e.jsx("p",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-widest",children:"Usage & Activity L
245ogs"})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-200 text-slate-400 rounded-lg transition-colors",children:e.jsx(ls,{size:24})})]}),t?e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 flex flex-col lg:flex-row gap-8",children:[e.jsxs("div",{className:"lg:w-1/3 space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(wf,{label:"Total Volume",value:t.total_calls}),e.jsx(wf,{label:"Success %",value:`${t.success_rate}%`}),e.jsx(wf,{label:"Completed",value:t.completed_calls}),e.jsx(wf,{label:"Failed",value:t.failed_calls})]}),e.jsxs("div",{className:"bg-slate-50 p-6 rounded-xl border border-slate-100 space-y-4",children:[e.jsx("h3",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:"Monthly Trend"}),e.jsx("div",{className:"space-y-2",children:Object.entries(t.calls_by_month||{}).map(([i,c])=>e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-slate-200 last:border-0",children:[e.jsx("span",{className:"text-xs font-bold text-slate-600",children:i}),e.jsxs("span",{className:"text-xs font-bold text-slate-800",children:[c," calls"]})]},i))})]})]}),e.jsxs("div",{className:"lg:w-2/3 flex flex-col space-y-4",children:[e.jsxs("h3",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Bt,{size:14})," Recent Call Infrastructure Logs"]}),e.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-hidden flex-1 flex flex-col shadow-inner",children:e.jsx("div",{className:"overflow-y-auto h-full",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-200 sticky top-0",children:e.jsxs("tr",{className:"text-[10px] font-bold text-slate-400 uppercase",children:[e.jsx("th",{className:"px-5 py-3",children:"Identifier / Date"}),e.jsx("th",{className:"px-5 py-3",children:"Duration"}),e.jsx("th",{className:"px-5 py-3",children:"Status"}),e.jsx("th",{className:"px-5 py-3 text-right",children:"Review"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100 text-xs",children:t.calls?.length>0?t.calls.map(i=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-colors",children:[e.jsxs("td",{className:"px-5 py-4 font-bold text-slate-700",children:[i.phone," ",e.jsx("br",{}),e.jsx("span",{className:"text-[9px] font-normal text-slate-400",children:new Date(i.date).toLocaleString()})]}),e.jsxs("td",{className:"px-5 py-4 text-slate-600 font-medium",children:[i.duration,"s"]}),e.jsx("td",{className:"px-5 py-4",children:e.jsx("span",{className:`px-2 py-0.5 rounded text-[9px] font-bold uppercase border ${i.status==="completed"?"text-green-600 border-green-100 bg-green-50":"text-red-600 border-red-100 bg-red-50"}`,children:i.status})}),e.jsx("td",{className:"px-5 py-4 text-right",children:e.jsx("button",{onClick:()=>l(i),className:"p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg",children:e.jsx(Ms,{size:18})})})]},i.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"p-20 text-center text-slate-400 italic",children:"No logs available for this provider."})})})]})})})]})]}):e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(Ge,{className:"animate-spin text-indigo-500",size:36})}),e.jsx("div",{className:"p-6 border-t border-slate-100 flex justify-end bg-white",children:e.jsx("button",{onClick:n,className:"px-8 py-2.5 bg-slate-100 text-slate-700 font-bold rounded-lg text-xs uppercase tracking-widest transition-colors",children:"Close Report"})})]})}),wf=({label:a,value:t})=>e.jsxs("div",{className:"p-4 bg-slate-50 border border-slate-200 rounded-xl text-center",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase mb-1",children:a}),e.jsx("p",{className:"text-lg font-bold text-slate-800",children:t||0})]}),NL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState(""),[p,x]=y.useState(null),[b,v]=y.useState(null),[w,j]=y.useState(null);y.useEffect(()=>{(async()=>{try{u(!0);
245const[S,C]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(S.data.agents?.items||[]);const T=C.data.company?.company_name;f(T||"Company"),T&&n(a,T)}catch(S){console.error("Error fetching agents:",S)}finally{u(!1)}})()},[a]);const N=async A=>{x(A),v(null);try{const S=await Zf.getPerformance(A.agent_id);v(S.data)}catch(S){console.error("Error fetching performance:",S)}};return c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-emerald-100",children:e.jsx(Pl,{size:24,className:"text-emerald-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Agents"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," agent",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No agents found for this company"})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map((A,S)=>e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-5 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-emerald-50 rounded-lg",children:e.jsx(Pl,{size:18,className:"text-emerald-500"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-semibold text-slate-800",children:A.name||"Unnamed Agent"}),e.jsx("p",{className:"text-xs text-slate-400 font-mono truncate max-w-[160px]",children:A.agent_id||"-"})]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-1 shrink-0",children:[e.jsx("span",{className:`text-xs px-2.5 py-1 rounded-full font-medium ${A.is_active!==!1?"bg-green-100 text-green-700":"bg-slate-100 text-slate-600"}`,children:A.is_active!==!1?"Active":"Inactive"}),A.indian===!0&&e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"})]})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400",children:"Total Calls"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(ic,{size:14,className:"text-slate-400"}),e.jsx("span",{className:"text-slate-700 font-semibold",children:A.total_calls||0})]})]}),A.user_name&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Owner"}),e.jsx("span",{className:"text-slate-700 font-medium",children:A.user_name})]}),A.user_email&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Email"}),e.jsx("span",{className:"text-slate-600 text-xs",children:A.user_email})]}),A.created_at&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Created"}),e.jsx("span",{className:"text-slate-600",children:new Date(A.created_at).toLocaleDateString()})]})]}),e.jsxs("button",{onClick:()=>N(A),className:"mt-4 w-full flex items-center justify-center gap-2 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-xl text-xs font-semibold transition-colors",children:[e.jsx(Bt,{size:14})," View Performance"]})]},S))})]})}),p&&e.jsx(_L,{agent:p,performance:b,onClose:()=>{x(null),v(null)},onViewCall:A=>j(A)}),w&&e.jsx(Yr,{call:w,onClose:()=>j(null)})]})},_L=({agent:a,performance:t,onClose:n,onViewCall:l})=>{const[i,c]=y.useState("all"),u=t?i==="all"?t.calls||[]:(t.calls||[]).filter(h=>h.type===i):[];return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-6xl w-full max-h-[90vh] overflow-hidden flex flex-col",onClick:h=>h.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex items-center justify-between sticky top-0 bg-white z-10",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-emerald-600 rounded-xl flex items-center justify-center text-white",children:e.jsx(Tn,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:a.name||"Unnamed Agent"}),e.jsx("p",{className:"text-xs font-mono text-slate-400 mt-1 uppercase tracking-widest",children:a.agent_id})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-100 rounded-full transition-all",children:e.jsx(ls,{size:24,className:"text-slate-400"})})]}),e.jsx("div",{className:"p-8 overflow-y-auto flex-1 space-y-8",children:t?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsx(Nf,{label:"Total Calls",value:t.total_calls}),e.jsx(Nf,{label:"Success Rate",value:`${t.success_rate}%`}),e.jsx(Nf,{label:"Avg Duration",value:`${Math.floor(t.avg_duration_seconds/60)}m ${Math.floor(t.avg_duration_seconds%60)}s`}),e.jsx(Nf,{label:"Avg Sentiment",value:t.avg_sentiment_score})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-4",children:[e.jsx("h3",{className:"text-sm font-bold text-slate-400 uppercase tracking-widest",children:"Outcomes Distribution"}),e.jsx("div",{className:"space-y-2",children:Object.entries(t.outcomes_distribution||{}).map(([h,f])=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-2xl border border-slate-100",children:[e.jsx("span",{className:"text-sm font-semibold text-slate-700 capitalize",children:h.replace("_"," ")}),e.jsx("span",{className:"text-sm font-black text-slate-900",children:f})]},h))})]}),e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-bold text-slate-400 uppercase tracking-widest",children:"Recent
245Calls"}),e.jsxs("select",{value:i,onChange:h=>c(h.target.value),className:"px-3 py-1.5 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-emerald-400 font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]}),e.jsx("div",{className:"bg-white border border-slate-100 rounded-2xl overflow-hidden shadow-sm",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4",children:"Customer"}),e.jsx("th",{className:"px-6 py-4",children:"Date & Time"}),e.jsx("th",{className:"px-6 py-4",children:"Duration"}),e.jsx("th",{className:"px-6 py-4",children:"Type"}),e.jsx("th",{className:"px-6 py-4",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"View"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:u.length>0?u.map(h=>e.jsxs("tr",{className:"hover:bg-slate-50 transition-all",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:h.phone||"N/A"}),e.jsx("p",{className:"text-[10px] text-slate-400 truncate w-32",children:h.call_id})]}),e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm text-slate-600 font-medium",children:new Date(h.date).toLocaleDateString()}),e.jsx("p",{className:"text-[10px] text-slate-400 uppercase tracking-tighter",children:new Date(h.date).toLocaleTimeString()})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsxs("div",{className:"flex items-center gap-1 text-slate-600 font-bold text-xs",children:[e.jsx(Ka,{size:12})," ",h.duration,"s"]})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"text-xs font-medium text-slate-500 capitalize",children:h.type||"â"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${h.status==="completed"?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:h.status})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:()=>l(h),className:"p-2 bg-slate-100 text-slate-400 hover:bg-emerald-100 hover:text-emerald-600 rounded-xl transition-all",children:e.jsx(Xa,{size:18})})})]},h.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"6",className:"px-6 py-12 text-center text-slate-400 italic",children:"No calls found."})})})]})})]})]})]}):e.jsx("div",{className:"flex justify-center py-20",children:e.jsx(Ge,{className:"animate-spin text-emerald-500",size:36})})}),e.jsx("div",{className:"p-8 border-t border-slate-100 sticky bottom-0 bg-white",children:e.jsx("button",{onClick:n,className:"w-full py-4 bg-slate-900 text-white rounded-3xl font-bold shadow-xl shadow-slate-200 hover:bg-slate-800 transition-all",children:"Close Analysis"})})]})})},Nf=({label:a,value:t})=>e.jsxs("div",{className:"p-5 bg-slate-50 rounded-3xl border border-slate-100",children:[e.jsx("p",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em] mb-1",children:a}),e.jsx("p",{className:"text-2xl font-black text-slate-900",children:t})]}),SL=a=>a?a.includes("cloudinary.com")?a.replace("/upload/","/upload/fl_attachment/"):a:"#",kL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState(""),[p,x]=y.useState(null),[b,v]=y.useState(null),[w,j]=y.useState(null);y.useEffect(()=>{(async()=>{try{u(!0);const[S,C]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(S.data.knowledge_bases?.items||[]);const T=C.data.company?.company_name;f(T||"Company"),T&&n(a,T)}catch(S){console.error("Error fetching knowledge bases:",S)}finally{u(!1)}})()},[a]);const N=async A=>{x(A),v({calls:[]});try{const S=await Jf.getDetails(A.knowledge_base_id);v(S.data)}catch(S){console.error("Error fetching KB details:",S)}};return c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto
245space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-amber-100",children:e.jsx(Dg,{size:24,className:"text-amber-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Knowledge Bases"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," knowledge base",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No knowledge bases found for this company"})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map((A,S)=>e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-5 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-amber-50 rounded-lg",children:e.jsx(Dg,{size:18,className:"text-amber-500"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"font-semibold text-slate-800 truncate",children:A.name||"Untitled"}),A.indian===!0&&e.jsx("span",{className:"shrink-0 text-xs px-2 py-0.5 rounded-full font-medium bg-orange-100 text-orange-700 whitespace-nowrap",children:"ð®ð³ Indian"})]}),e.jsx("p",{className:"text-xs text-slate-400 font-mono truncate",children:A.knowledge_base_id||"-"})]})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[A.filename&&e.jsxs("div",{className:"flex items-center gap-2 bg-slate-50 rounded-lg p-2.5",children:[e.jsx(Cn,{size:14,className:"text-slate-400 shrink-0"}),e.jsx("span",{className:"text-slate-600 text-xs truncate",children:A.filename}),A.size&&e.jsx("span",{className:"text-xs text-slate-400 shrink-0 ml-auto",children:A.size})]}),A.linked_agent_id&&e.jsxs("div",{className:"flex items-center gap-2 bg-emerald-50 rounded-lg p-2.5",children:[e.jsx(y9,{size:14,className:"text-emerald-500 shrink-0"}),e.jsxs("span",{className:"text-xs text-emerald-700",children:["Linked to Agent: ",e.jsx("span",{className:"font-mono",children:A.linked_agent_id})]})]}),A.created_at&&e.jsxs("div",{className:"flex justify-between pt-1",children:[e.jsx("span",{className:"text-slate-400",children:"Created"}),e.jsx("span",{className:"text-slate-600",children:new Date(A.created_at).toLocaleDateString()})]})]}),e.jsxs("button",{onClick:()=>N(A),className:"mt-4 w-full flex items-center justify-center gap-2 py-2 bg-amber-600 hover:bg-amber-700 text-white rounded-xl text-xs font-semibold transition-colors",children:[e.jsx(Xa,{size:14})," View Details"]})]},S))})]})}),p&&b&&e.jsx(CL,{kb:p,details:b,onClose:()=>{x(null),v(null)},onViewCall:A=>j(A)}),w&&e.jsx(Yr,{call:w,onClose:()=>j(null)})]})},CL=({kb:a,details:t,onClose:n,onViewCall:l})=>{const[i,c]=y.useState(""),[u,h]=y.useState(!1),[f,p]=y.useState("all"),x=f==="all"?t?.calls||[]:(t?.calls||[]).filter(v=>v.type===f),b=t?.cloudinary_url||a?.cloudinary_url;return y.useEffect(()=>{(async()=>{if(b){h(!0);try{const j=await(await fetch(b)).text();c(j)}catch{c("Error: Could not load the content of this text file.")}finally{h(!1)}}})()},[b]),e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-900/80 backdrop-blur-md",onClick:n,children:e.jsxs("div",{className:"bg-white rounded-[40px] shadow-2xl max-w-6xl w-full max-h-[90vh] overflow-hidden flex flex-col",onClick:v=>v.stopPropagation(),children:[e.jsxs("div",{className:"p-8 border-b border-slate-100 flex items-center justify-between sticky top-0 bg-white z-10",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"h-12 w-12 bg-amber-600 rounded-xl flex items-center justify-center text-white",children:e.jsx(Ti,{size:24})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:a.name}),e.jsxs("p",{className:"text-xs font-mono text-slate-400 mt-1 uppercase tracking-widest break-all",children:["ID: ",a.knowledge_base_id]})]})]}),e.jsx("button",{onClick:n,className:"p-2 hover:bg-slate-100 rounded-full transition-all",children:e.jsx(ls,{size:24,className:"text-slate-400"})})]}),e.jsxs("div",{className:"p-8 overflow-y-auto flex-1 space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsx(Yx,{label:"Associated File",value:a.filename||"â",icon:e.jsx(n4,{size:16})}),e.jsx(Yx,{label:"Upload Date",value:a.created_at?new Date(a.created_at).toLocaleStr
245ing():"â",icon:e.jsx(Fa,{size:16})}),e.jsx(Yx,{label:"Total Calls Linked",value:t.calls?.length||0,icon:e.jsx(At,{size:16})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-sm font-black text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Hb,{size:14})," Training Content"]}),b&&e.jsxs("a",{href:SL(b),download:t?.filename||a.filename,target:"_blank",rel:"noreferrer",className:"text-[10px] font-bold text-amber-600 hover:underline flex items-center gap-1",children:[e.jsx(Kl,{size:12})," Download TXT"]})]}),e.jsx("div",{className:"bg-slate-50 text-slate-600 p-6 rounded-3xl h-[400px] overflow-y-auto font-mono text-xs leading-relaxed border border-slate-200 shadow-inner",children:u?e.jsx("div",{className:"flex items-center justify-center h-full",children:e.jsx(Ge,{className:"animate-spin text-amber-400",size:24})}):e.jsx("pre",{className:"whitespace-pre-wrap",children:i||"No content found in file."})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-sm font-black text-slate-400 uppercase tracking-widest flex items-center gap-2",children:[e.jsx(Bt,{size:14})," Related Calls"]}),e.jsxs("select",{value:f,onChange:v=>p(v.target.value),className:"px-3 py-1.5 text-xs bg-white border border-slate-200 rounded-lg outline-none focus:border-amber-400 font-medium",children:[e.jsx("option",{value:"all",children:"All Types"}),e.jsx("option",{value:"outbound-twilio",children:"Outbound Twilio"}),e.jsx("option",{value:"web_test",children:"Web Test"})]})]}),e.jsx("div",{className:"bg-white border border-slate-100 rounded-3xl overflow-hidden shadow-sm h-[400px] overflow-y-auto",children:e.jsxs("table",{className:"w-full text-left",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100 sticky top-0",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-6 py-4",children:"Customer"}),e.jsx("th",{className:"px-6 py-4",children:"Type"}),e.jsx("th",{className:"px-6 py-4",children:"Status"}),e.jsx("th",{className:"px-6 py-4 text-right",children:"Action"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:x.length>0?x.map(v=>e.jsxs("tr",{className:"hover:bg-amber-50/30 transition-all",children:[e.jsxs("td",{className:"px-6 py-4",children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:v.phone}),e.jsx("p",{className:"text-[10px] text-slate-400 truncate w-32 font-mono",children:v.call_id})]}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:"text-xs font-medium text-slate-500 capitalize",children:v.type||"â"})}),e.jsx("td",{className:"px-6 py-4",children:e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-black uppercase border ${v.status==="completed"?"bg-green-50 text-green-600 border-green-100":"bg-red-50 text-red-600 border-red-100"}`,children:v.status})}),e.jsx("td",{className:"px-6 py-4 text-right",children:e.jsx("button",{onClick:()=>l(v),className:"p-2 bg-slate-100 text-amber-600 hover:bg-amber-600 hover:text-white rounded-xl transition-all",children:e.jsx(Ms,{size:18})})})]},v.call_id)):e.jsx("tr",{children:e.jsx("td",{colSpan:"4",className:"px-6 py-20 text-center text-slate-400 italic text-sm",children:"No calls linked yet."})})})]})})]})]})]}),e.jsx("div",{className:"p-8 border-t border-slate-100 sticky bottom-0 bg-white",children:e.jsx("button",{onClick:n,className:"w-full py-4 bg-slate-900 text-white rounded-[24px] font-bold shadow-xl hover:bg-slate-800 transition-all uppercase tracking-widest text-xs",children:"Close Knowledge Overview"})})]})})},Yx=({label:a,value:t,icon:n})=>e.jsxs("div",{className:"p-5 bg-slate-50 rounded-3xl border border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-400 mb-1",children:[n,e.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest",children:a})]}),e.jsx("p",{className:"text-sm font-black text-slate-900 break-all",children:t})]}),EL={completed:"bg-green-100 text-green-700",running:"bg-blue-100 text-blue-700",paused:"bg-yellow-100 text-yellow-700",scheduled:"bg-purple-100 text-purple-700",failed:"bg-red-100 text-red-700",draft:"bg-slate-100 text-slate-600"},jd=10,TL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState(""),[p,x]=y.useState(1);y.useEffect(()=>{(async()=>{try{u(!0);const[j,N]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(j.data.campaigns?.items||[]);const A=N.data.company?.company_name;f(A||"Company"),A&&n(a,A)}catch(j){console.error("Error fetching campaigns:",j)}finally{u(!1)}})()},[a]);const b=Math.ceil(l.length/jd),v=l.slice((p-1)*jd,p*jd);return c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto
245space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-pink-100",children:e.jsx(Bg,{size:24,className:"text-pink-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Campaigns"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," campaign",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No campaigns found for this company"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-slate-100 bg-slate-50",children:[e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Campaign"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Status"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Mode"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Contacts"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Progress"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Scheduled"}),e.jsx("th",{className:"text-left text-xs font-medium text-slate-400 uppercase tracking-wider py-3 px-5",children:"Created"})]})}),e.jsx("tbody",{children:v.map((w,j)=>{const N=w.total_contacts||0,A=w.completed_contacts||0,S=N>0?Math.round(A/N*100):0;return e.jsxs("tr",{className:"border-b border-slate-50 hover:bg-slate-50/50 transition-colors",children:[e.jsx("td",{className:"py-3 px-5",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-1.5 bg-pink-50 rounded-lg",children:e.jsx(Bg,{size:14,className:"text-pink-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-slate-700",children:w.campaign_name||"Unnamed"}),e.jsx("p",{className:"text-xs text-slate-400 font-mono",children:w.campaign_id||"-"})]})]})}),e.jsx("td",{className:"py-3 px-5",children:e.jsx("span",{className:`text-xs px-2.5 py-1 rounded-full font-medium ${EL[w.status]||"bg-slate-100 text-slate-600"}`,children:w.status||"unknown"})}),e.jsx("td",{className:"py-3 px-5",children:w.indian===!0?e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700",children:"ð®ð³ Indian"}):e.jsx("span",{className:"text-xs text-slate-300",children:"â"})}),e.jsx("td",{className:"py-3 px-5",children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(qa,{size:14,className:"text-slate-400"}),e.jsx("span",{className:"text-sm text-slate-700 font-medium",children:N})]})}),e.jsx("td",{className:"py-3 px-5",children:e.jsxs("div",{className:"min-w-[100px]",children:[e.jsxs("div",{className:"flex justify-between text-xs mb-1",children:[e.jsxs("span",{className:"text-slate-500",children:[A,"/",N]}),e.jsxs("span",{className:"text-slate-400",children:[S,"%"]})]}),e.jsx("div",{className:"w-full bg-slate-200 rounded-full h-1.5",children:e.jsx("div",{className:`h-1.5 rounded-full ${S===100?"bg-green-500":S>0?"bg-blue-500":"bg-slate-300"}`,style:{width:`${Math.min(100,S)}%`}})})]})}),e.jsx("td",{className:"py-3 px-5 text-sm text-slate-500",children:w.scheduled_time?new Date(w.scheduled_time).toLocaleStr
245ing():"-"}),e.jsx("td",{className:"py-3 px-5 text-sm text-slate-400",children:w.created_at?new Date(w.created_at).toLocaleDateString():"-"})]},j)})})]})}),b>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white rounded-2xl border border-slate-200 shadow-sm px-5 py-3",children:[e.jsxs("p",{className:"text-sm text-slate-500",children:["Showing ",(p-1)*jd+1,"-",Math.min(p*jd,l.length)," of ",l.length]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>x(w=>Math.max(1,w-1)),disabled:p===1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:e.jsx(Fn,{size:18})}),Array.from({length:b},(w,j)=>j+1).map(w=>e.jsx("button",{onClick:()=>x(w),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${w===p?"bg-primary-600 text-white":"text-slate-500 hover:bg-slate-100"}`,children:w},w)),e.jsx("button",{onClick:()=>x(w=>Math.min(b,w+1)),disabled:p===b,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:e.jsx(Ms,{size:18})})]})]})]})]})})},RL={scheduled:"bg-blue-100 text-blue-700",initiated:"bg-purple-100 text-purple-700",completed:"bg-green-100 text-green-700",pending:"bg-yellow-100 text-yellow-700",executed:"bg-teal-100 text-teal-700",answered:"bg-green-100 text-green-700",unanswered:"bg-orange-100 text-orange-700",failed:"bg-red-100 text-red-700",failed_no_answer:"bg-red-100 text-red-700",failed_busy:"bg-orange-100 text-orange-700",failed_no_active_integration:"bg-red-100 text-red-700",failed_exception:"bg-red-100 text-red-700"},OL=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState("");return y.useEffect(()=>{(async()=>{try{u(!0);const[x,b]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(x.data.callbacks?.items||[]);const v=b.data.company?.company_name;f(v||"Company"),v&&n(a,v)}catch(x){console.error("Error fetching callbacks:",x)}finally{u(!1)}})()},[a]),c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-cyan-100",children:e.jsx(c4,{size:24,className:"text-cyan-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Callbacks"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," callback",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No callbacks found for this company"})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map((p,x)=>e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-5 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-cyan-50 rounded-xl flex items-center justify-center",children:e.jsx(Hn,{size:18,className:"text-cyan-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-800",children:p.fullName||"-"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(At,{size:12,className:"text-slate-400"}),e.jsx("span",{className:"text-xs text-slate-500 font-mono",children:p.phoneNumber||"-"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[p.indian===!0&&e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium bg-orange-100 text-orange-700",children:"ð®ð³ Indian"}),e.jsx("span",{className:`text-xs px-2.5 py-1 rounded-full font-medium ${RL[p.status]||"bg-slate-100 text-slate-600"}`,children:(p.status||"unknown").replace(/_/g," ")})]})]}),e.jsxs("div",{className:"space-y-2.5 text-sm",children:[p.slotTime&&e.jsxs("div",{className:"flex items-center gap-2 bg-blue-50 rounded-lg p-2.5",children:[e.jsx(Ka,{size:14,className:"text-blue-500 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-blue-400",children:"Scheduled Slot"}),e.jsx("p",{className:"text-sm font-medium text-blue-700",children:new Date(p.slotTime).toLocaleStr
245ing()})]})]}),p.completed_at&&e.jsxs("div",{className:"flex items-center gap-2 bg-green-50 rounded-lg p-2.5",children:[e.jsx(Bi,{size:14,className:"text-green-500 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-green-400",children:"Completed At"}),e.jsx("p",{className:"text-sm font-medium text-green-700",children:new Date(p.completed_at).toLocaleString()})]})]}),p.executed_at&&!p.completed_at&&e.jsxs("div",{className:"flex items-center gap-2 bg-teal-50 rounded-lg p-2.5",children:[e.jsx(Bi,{size:14,className:"text-teal-500 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-teal-400",children:"Executed At"}),e.jsx("p",{className:"text-sm font-medium text-teal-700",children:new Date(p.executed_at).toLocaleString()})]})]}),p.user_name&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Owner"}),e.jsx("span",{className:"text-slate-700 font-medium",children:p.user_name})]}),p.user_email&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-slate-400",children:"Email"}),e.jsx("span",{className:"text-slate-600 text-xs",children:p.user_email})]}),p.original_call_id&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400",children:"Call ID"}),e.jsx("span",{className:"text-xs text-slate-500 font-mono truncate max-w-[200px]",children:p.original_call_id})]}),p.callback_id&&e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-slate-400",children:"Callback ID"}),e.jsx("span",{className:"text-xs text-slate-500 font-mono truncate max-w-[200px]",children:p.callback_id})]}),e.jsxs("div",{className:"flex justify-between pt-1 border-t border-slate-100",children:[e.jsx("span",{className:"text-slate-400",children:"Created"}),e.jsx("span",{className:"text-slate-500",children:p.created_at?new Date(p.created_at).toLocaleString():"-"})]})]})]},x))})]})})},ML=()=>{const{companyId:a}=Ui(),t=gt(),{setLabel:n}=qr(),[l,i]=y.useState([]),[c,u]=y.useState(!0),[h,f]=y.useState("");return y.useEffect(()=>{(async()=>{try{u(!0);const[x,b]=await Promise.all([Ys.getResources(a),Ys.getById(a)]);i(x.data.human_transfers?.items||[]);const v=b.data.company?.company_name;f(v||"Company"),v&&n(a,v)}catch(x){console.error("Error fetching human transfers:",x)}finally{u(!1)}})()},[a]),c?e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] flex justify-center items-center",children:e.jsx(Ge,{className:"animate-spin text-primary-500",size:36})}):e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:()=>t(`/companies/${a}`),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-primary-600 hover:border-primary-300 transition-colors shadow-sm",children:e.jsx(Fr,{size:20})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 rounded-xl bg-orange-100",children:e.jsx(r4,{size:24,className:"text-orange-600"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"Human Transfers"}),e.jsxs("p",{className:"text-sm text-slate-400",children:[h," - ",l.length," transfer config",l.length!==1?"s":""]})]})]})]}),l.length===0?e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-12 text-center",children:[e.jsx(aa,{size:48,className:"mx-auto text-slate-200 mb-3"}),e.jsx("p",{className:"text-slate-500",children:"No human transfer configurations found for this company"})]}):e.jsx("div",{className:"space-y-4",children:l.map((p,x)=>e.jsxs("div",{className:"bg-white rounded-2xl border border-slate-200 shadow-sm p-5 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 pb-3 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 bg-orange-50 rounded-xl flex items-center justify-center",children:e.jsx(Hn,{size:18,className:"text-orange-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-800",children:p.user_name||"Unknown User"}),e.jsx("p",{className:"text-xs text-slate-400",children:p.user_email||"-"})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-2xl font-bold text-slate-800",children:p.total_numbers||0}),e.jsx("p",{className:"text-xs text-slate-400",children:"Transfer Numbers"})]})]}),p.transfer_list&&p.transfer_list.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:p.transfer_list.map((b,v)=>e.jsxs("div",{className:"flex items-center gap-3 bg-slate-50 rounded-xl p-3",children:[e.jsx("div",{className:"p-1.5 bg-orange-50 rounded-lg",children:e.jsx(At,{size:14,className:"text-orange-500"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700 truncate",children:b.name||"Unnamed"}),e.jsx("p",{className:"text-xs text-slate-400 font-mono",children:b.number||"-"})]})]},v))}):e.jsx("p",{className:"text-sm text-slate-400 text-center py-3",children:"No transfer numbers configured"}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-slate-400 mt-3 pt-3 border-t border-slate-100",children:[p.updated_at&&e.jsxs("span",{children:["Updated: ",new Date(p.updated_at).toLocaleStr
245ing()]}),p.created_at&&e.jsxs("span",{children:["Created: ",new Date(p.created_at).toLocaleDateString()]})]})]},x))})]})})},zL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(""),[u,h]=y.useState("all"),[f,p]=y.useState(1),[x,b]=y.useState(null),[v,w]=y.useState(null),[j,N]=y.useState(null),A=10,S=x?.pages??1,C=()=>{const k=[],z=Math.max(2,f-2),D=Math.min(S-1,f+2);k.push(1),z>2&&k.push("...");for(let q=z;q<=D;q++)k.push(q);return D<S-1&&k.push("..."),S>1&&k.push(S),k};y.useEffect(()=>{T()},[i,u,f]);const T=async()=>{try{l(!0);const k=await Ez.getAll({search:i,status:u,page:f,limit:A});t(k?.data?.calls||[]),b(k?.data?.pagination||null),N(k?.data?.stats||null)}catch(k){console.error("Error fetching web calls:",k),t([])}finally{l(!1)}},L=k=>{switch(k){case"completed":return"bg-green-50 text-green-600 border-green-100";case"failed":return"bg-red-50 text-red-600 border-red-100";case"no-answer":return"bg-yellow-50 text-yellow-600 border-yellow-100";case"busy":return"bg-orange-50 text-orange-600 border-orange-100";case"in-progress":return"bg-blue-50 text-blue-600 border-blue-100";default:return"bg-slate-50 text-slate-600 border-slate-100"}},O=k=>k?new Date(k).toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"}):"N/A",R=k=>k?new Date(k).toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit"}):"";return e.jsx("div",{className:"min-h-screen bg-[#F8FAFC] p-8 font-sans",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white p-6 rounded-3xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"h-14 w-14 bg-violet-600 rounded-2xl flex items-center justify-center shadow-lg shadow-violet-200",children:e.jsx(Ri,{className:"text-white",size:28})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-extrabold text-slate-900 tracking-tight",children:"Web Calls"}),e.jsx("p",{className:"text-slate-500 text-sm font-medium",children:"All web widget call history and details"})]})]}),j&&e.jsxs("div",{className:"hidden lg:flex items-center gap-2 text-sm text-slate-500",children:[e.jsx("span",{className:"font-bold text-slate-800",children:j.total_calls})," total web calls"]})]}),j&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsx(_f,{title:"Total Web Calls",value:j.total_calls||0,color:"violet",icon:e.jsx(Ri,{size:20})}),e.jsx(_f,{title:"Completed",value:j.completed_calls||0,color:"green",icon:e.jsx(Vi,{size:20})}),e.jsx(_f,{title:"Failed",value:j.failed_calls||0,color:"red",icon:e.jsx(At,{size:20})}),e.jsx(_f,{title:"Avg Duration",value:`${j.avg_duration||0}s`,color:"purple",icon:e.jsx(Ka,{size:20})})]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Gs,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400"}),e.jsx("input",{type:"text",placeholder:"Search by phone, customer name, or call ID...",className:"w-full pl-11 pr-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-violet-500/5 focus:border-violet-500 transition-all shadow-sm",value:i,onChange:k=>{c(k.target.value),p(1)}})]}),e.jsxs("select",{value:u,onChange:k=>{h(k.target.value),p(1)},className:"px-4 py-4 bg-white border border-slate-200 rounded-2xl outline-none focus:ring-4 focus:ring-violet-500/5 focus:border-violet-500 transition-all shadow-sm font-medium",children:[e.jsx("option",{value:"all",children:"All Status"}),e.jsx("option",{value:"completed",children:"Completed"}),e.jsx("option",{value:"failed",children:"Failed"}),e.jsx("option",{value:"in-progress",children:"In Progress"}),e.jsx("option",{value:"no-answer",children:"No Answer"}),e.jsx("option",{value:"busy",children:"Busy"})]})]}),e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:`transition-all duration-300 ${v?"w-[55%]":"w-full"}`,children:[n?e.jsx("div",{className:"flex justify-center py-32",children:e.jsx(Ge,{className:"animate-spin text-violet-600",size:40})}):a.length===0?e.jsxs("div",{className:"text-center py-24 bg-white rounded-3xl border border-slate-200",children:[e.jsx(Ri,{size:48,className:"mx-auto text-slate-200 mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"No Web Calls Found"}),e.jsx("p",{className:"text-slate-500",children:"Try adjusting your filters"})]}):e.jsx("div",{className:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-slate-50 border-b border-slate-100",children:e.jsxs("tr",{className:"text-[10px] font-black text-slate-400 uppercase tracking-wider",children:[e.jsx("th",{className:"px-5 py-4 text-left",children:"Customer"}),e.jsx("th",{className:"px-5 py-4 text-left",children:"Phone"}),e.jsx("th",{className:"px-5 py-4 text-left",children:"Date"}),e.jsx("th",{className:"px-5 py-4 text-left",children:"Status"}),e.jsx("th",{className:"px-5 py-4 text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-slate-100",children:a.map(k=>e.jsxs("tr",{onClick:()=>w(k),className:`hover:bg-slate-50 transition-all cursor-pointer ${v?.call_id===k.call_id?"bg-violet-50 border-l-4 border-violet-500":""}`,children:[e.jsx("td",{className:"px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-8 w-8 bg-violet-100 text-violet-600 rounded-full flex items-center justify-center text-xs font-bold",children:(k.customer_name||"U")[0].toUpperCase()}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-800",children:k.customer_name||"Unknown"}),e.jsx("p",{className:"text-[10px] text-slate-400 font-mono truncate max-w-[120px]",children:k.call_id})]})]})}),e.jsx("td",{className:"px-5 py-4",children:e.jsx("span",{className:"text-sm text-slate-600 font-medium",children:k.phone||"N/A"})}),e.jsxs("td",{className:"px-5 py-4",children:[e.jsx("p",{className:"text-sm text-slate-600 font-medium",children:O(k.created_at||k.date_time)}),e.jsx("p",{className:"text-[10px] text-slate-400",children:R(k.created_at||k.date_time)})]}),e.jsx("td",{className:"px-5 py-4",children:e.jsx("span",{className:`px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest border ${L(k.status)}`,children:k.status})}),e.jsx("td",{className:"px-5 py-4 text-right",children:e.jsx("button",{onClick:E=>{E.stopPropagation(),w(k)},className:"p-2 bg-slate-100 text-slate-400 hover:bg-violet-100 hover:text-violet-600 rounded-xl transition-all",children:e.jsx(Xa,{size:16})})})]},k.call_id||k.id))})]})}),x&&S>1&&e.jsxs("div",{className:"flex items-center justify-between bg-white px-5 py-3 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("span",{className:"text-sm text-slate-500",children:["Showing ",(f-1)*A+1,"â",Math.min(f*A,x.total)," of ",x.total," calls"]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>p(1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Gl,{size:16})}),e.jsx("button",{onClick:()=>p(k=>k-1),disabled:f<=1,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Fn,{size:16})}),C().map((k,E)=>k==="..."?e.jsx("span",{className:"px-2 text-slate-400 text-sm",children:"..."},`dots-${E}`):e.jsx("button",{onClick:()=>p(k),className:`w-8 h-8 rounded-lg text-sm font-medium transition-colors ${k===f?"bg-violet-600 text-white border border-violet-600":"border border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:k},k)),e.jsx("button",{onClick:()=>p(k=>k+1),disabled:f>=S,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Ms,{size:16})}),e.jsx("button",{onClick:()=>p(S),disabled:f>=S,className:"p-1.5 rounded-lg border border-slate-200 text-slate-500 hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed",children:e.jsx(Wl,{size:16})})]})]})]}),v&&e.jsx(LL,{call:v,onClose:()=>w(null)})]})]})})},LL=({call:a,onClose:t})=>{const n=u=>{if(!u)return"";const h="http://localhost:5002/api",f=localStorage.getItem("admin_token")||"";if(u.includes("elevenlabs.io")){const p=u.match(/conversations\/([^/]+)\/audio/),x=p?p[1]:null;return x?`${h}/admin/elevenlabs-audio-proxy?conversation_id=${x}&token=${f}`:`${h}/admin/elevenlabs-audio-proxy?url=${encodeURIComponent(u)}&token=${f}`}return`${h}/admin/recording-proxy?url=${encodeURIComponent(u)}&token=${f}`},l=u=>`${n(u)}&download=true`,i=u=>u==null?"N/A":Array.isArray(u)?u.join(", "):typeof u=="object"?JSON.stringify(u):u,c=u
245=>{switch(u){case"completed":return"bg-green-50 text-green-600 border-green-200";case"failed":return"bg-red-50 text-red-600 border-red-200";default:return"bg-slate-50 text-slate-600 border-slate-200"}};return e.jsxs("div",{className:"w-[45%] bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden flex flex-col max-h-[calc(100vh-280px)] sticky top-8 animate-in slide-in-from-right duration-300",children:[e.jsxs("div",{className:"bg-white border-b border-slate-100 px-6 py-5 flex items-center justify-between shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 bg-violet-600 rounded-xl flex items-center justify-center text-white shadow-lg shadow-violet-200",children:e.jsx(Ri,{size:20})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-bold text-slate-900 tracking-tight",children:a.customer_name||"Unknown"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 rounded-md border ${c(a.status)}`,children:a.status}),e.jsx("span",{className:"text-[10px] text-slate-400 font-mono",children:a.call_id?.substring(0,16)})]})]})]}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-slate-100 text-slate-400 rounded-full transition-all",children:e.jsx(ls,{size:20})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5 custom-scrollbar",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(Sf,{icon:e.jsx(At,{size:14}),label:"Phone",value:a.phone||"N/A"}),e.jsx(Sf,{icon:e.jsx(Ka,{size:14}),label:"Duration",value:`${a.duration||0}s`}),e.jsx(Sf,{icon:e.jsx(Fa,{size:14}),label:"Created",value:a.created_at?new Date(a.created_at).toLocaleString("en-IN"):"N/A"}),e.jsx(Sf,{icon:e.jsx(l4,{size:14}),label:"Conversation",value:a.conversation_id?.substring(0,16)||"N/A"})]}),a.recording_url&&e.jsxs("div",{className:"bg-slate-50 rounded-2xl p-5 border border-slate-200",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-3",children:"Call Recording"}),e.jsxs("div",{className:"flex items-center gap-3 w-full",children:[e.jsx("audio",{controls:!0,className:"w-full h-10 rounded-xl",style:{filter:"brightness(0.95) contrast(1.1)"},preload:"metadata",children:e.jsx("source",{src:n(a.recording_url),type:"audio/mpeg"})}),e.jsx("a",{href:l(a.recording_url),className:"p-2.5 bg-white border border-gray-200 rounded-full hover:bg-gray-50 text-gray-600 shadow-sm transition-colors",title:"Download Recording",children:e.jsx(Kl,{size:16})})]})]}),a.analysis&&Object.keys(a.analysis).length>0&&e.jsxs("div",{className:"bg-white border border-slate-100 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 border-b border-slate-50 pb-3",children:[e.jsx(Tn,{size:14,className:"text-violet-600"}),e.jsx("h3",{className:"text-xs font-black text-slate-800 uppercase tracking-wider",children:"AI Analysis"})]}),e.jsxs("div",{className:"space-y-3",children:[a.analysis.summary&&e.jsx(kf,{label:"Summary",value:i(a.analysis.summary),isLongText:!0}),a.analysis.sentiment_score!==void 0&&e.jsx(kf,{label:"Sentiment Score",value:`${a.analysis.sentiment_score}/100`}),a.analysis.outcome&&e.jsx(kf,{label:"Outcome",value:i(a.analysis.outcome)}),a.analysis.next_steps&&e.jsx(kf,{label:"Next Steps",value:i(a.analysis.next_steps)})]})]}),e.jsxs("div",{className:"bg-white border border-slate-100 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 border-b border-slate-50 pb-3",children:[e.jsx(o4,{size:14,className:"text-violet-600"}),e.jsx("h3",{className:"text-xs font-black text-slate-800 uppercase tracking-wider",children:"Conversation Transcript"})]}),e.jsx("div",{className:"space-y-3 max-h-[400px] overflow-y-auto pr-1 custom-scrollbar",children:Array.isArray(a.transcript_entries)&&a.transcript_entries.length>0?a.transcript_entries.map((u,h)=>e.jsx("div",{className:`flex flex-col ${u.speaker==="agent"?"items-start":"items-end"}`,children:e.jsxs("div",{className:`max-w-[90%] px-4 py-3 rounded-2xl text-sm ${u.speaker==="agent"?"bg-violet-50 text-violet-900 rounded-tl-none border border-violet-100":"bg-slate-50 text-slate-800 rounded-tr-none border border-slate-100"}`,children:[e.jsx("p",{className:"text-[9px] font-black uppercase opacity-40 mb-1",children:u.speaker==="agent"?"Agent":"Customer"}),e.jsx("p",{className:"font-medium leading-relaxed",children:i(u.text)})]})},h)):e.jsx("p",{className:"text-center text-slate-400 py-8 italic text-sm",children:"No transcript available"})})]})]})]})},_f=({title:a,value:t,color:n,icon:l})=>{const i={violet:"bg-violet-50 text-violet-600 border-violet-200",green:"bg-green-50 text-green-600 border-green-200",red:"bg-red-50 text-red-600 border-red-200",purple:"bg-purple-50 text-purple-600 border-purple-200"};return e.jsxs("div",{className:"bg-white p-6 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("div",{className:`p-2 rounded-xl ${i[n]}`,children:l})]}),e.jsx("p",{className:"text-3xl font-black text-slate-900",children:t})]})},Sf=({icon:a,label:t,value:n})=>e.jsxs("div",{className:"bg-slate-50/70 border border-slate-100 p-3 rounded-xl",children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[e.jsx("span",{className:"text-slate-400",children:a}),e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:t})]}),e.jsx("p",{className:"text-sm font-bold text-slate-800 truncate",children:n})]}),kf=({label:a,value:t,isLongText:n})=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:a}),e.jsx("p",{className:`text-sm text-slate-700 font-semibold leading-relaxed ${n?"italic font-medium":""}`,children:t})]}),DL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!1),i=(h,f,p,x)=>{t(b=>[...b,{name:h,success:f,data:p,error:x,timestamp:new Date().toISOString()}])},c=async(h,f)=>{try{const p=await f();return i(h,!0,p.data,null),!0}catch(p){return i(h,!1,null,p.response?.data||p.message),!1}},u=async()=>{t([]),l(!0),await c("Auth Verify",()=>Rd.verify()),await c("Dashboard Stats",()=>An.getStats()),await c("User Growth",()=>An.getUserGrowth(30)),await c("Call Volume",()=>An.getCallVolume(30)),await c("Revenue",()=>An.getRevenue(30)),await c("Provider Usage",()=>An.getProviderUsage()),await c("Recent Activity",()=>An.getRecentActivity(10)),l(!1)};return e.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6 mb-6",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Admin API Test Page"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"This page tests all the API endpoints used by the admin dashboard."}),e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-4",children:[e.jsxs("p",{className:"text-sm text-blue-900",children:[e.jsx("strong",{children:"API Base URL:"})," ","https://backend.voicerix.ai"]}),e.jsxs("p",{className:"text-sm text-blue-900",children:[e.jsx("strong",{children:"Admin Token:"})," ",localStorage.getItem("admin_token")?"â Present":"â Missing"]})]}),e.jsx("button",{onClick:u,disabled:n,className:"px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 disabled:opacity-50 font-semibold",children:n?"Testing...":"Run API Tests"})]}),a.length>0&&e.jsx("div",{className:"space-y-4",children:a.map((h,f)=>e.jsxs("div",{className:`bg-white rounded-lg shadow p-6 border-l-4 ${h.success?"border-green-500":"border-red-500"}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:h.name}),e.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${h.success?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:h.success?"â Success":"â Failed"})]}),h.success?e.jsx("div",{className:"bg-gray-50 rounded p-4 overflow-auto",children:e.jsx("pre",{className:"text-xs text-gray-700",children:JSON.stringify(h.data,null,2)})}):e.jsxs("div",{className:"bg-red-50 rounded p-4",children:[e.jsx("p",{className:"text-sm text-red-800 font-semibold mb-2",children:"Error:"}),e.jsx("pre",{className:"text-xs text-red-700 whitespace-pre-wrap",children:JSON.stringify(h.error,null,2)})]}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:new Date(h.timestamp).toLocaleStr
245ing()})]},f))}),a.length>0&&e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow p-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Summary"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-green-50 rounded-lg p-4 text-center",children:[e.jsx("p",{className:"text-3xl font-bold text-green-600",children:a.filter(h=>h.success).length}),e.jsx("p",{className:"text-sm text-green-800",children:"Passed"})]}),e.jsxs("div",{className:"bg-red-50 rounded-lg p-4 text-center",children:[e.jsx("p",{className:"text-3xl font-bold text-red-600",children:a.filter(h=>!h.success).length}),e.jsx("p",{className:"text-sm text-red-800",children:"Failed"})]})]})]})]})})},BL=()=>{const[a,t]=y.useState([]),[n,l]=y.useState(!0),[i,c]=y.useState(!1),[u,h]=y.useState({name:"",category:"General",content:"",variables:"",isActive:!0}),[f,p]=y.useState(!1),[x,b]=y.useState(""),[v,w]=y.useState(null);y.useEffect(()=>{j()},[]);const j=async()=>{try{l(!0);const T=await xe.get("/admin/system-prompts");t(T.data.prompts||[]),w(null)}catch(T){console.error("Error fetching prompts:",T),w("Failed to load system prompts. The backend endpoint might be missing.")}finally{l(!1)}},N=async T=>{T.preventDefault();try{const L={...u,variables:typeof u.variables=="string"?u.variables.split(",").map(O=>O.trim()).filter(O=>O!==""):u.variables};f?await xe.patch(`/admin/system-prompts/${u._id}`,L):await xe.post("/admin/system-prompts",L),c(!1),j(),h({name:"",category:"General",content:"",variables:"",isActive:!0})}catch(L){console.error("Error saving prompt:",L),alert("Failed to save prompt template.")}},A=async T=>{if(window.confirm("Are you sure you want to delete this template?"))try{await xe.delete(`/admin/system-prompts/${T}`),j()}catch(L){console.error("Error deleting prompt:",L),alert("Failed to delete prompt template.")}},S=(T=null)=>{T?(h({...T,variables:Array.isArray(T.variables)?T.variables.join(", "):T.variables||"",isActive:T.isActive!==void 0?T.isActive:!0}),p(!0)):(h({name:"",category:"General",content:"",variables:"",isActive:!0}),p(!1)),c(!0)},C=a.filter(T=>T.name.toLowerCase().includes(x.toLowerCase())||T.category.toLowerCase().includes(x.toLowerCase()));return e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"System Prompt Templates"}),e.jsx("p",{className:"text-gray-500 text-sm",children:"Create and manage predefined prompts for agents"})]}),e.jsxs("button",{onClick:()=>S(),className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 transition-colors font-semibold",children:[e.jsx(ji,{size:18}),"Create Template"]})]}),e.jsxs("div",{className:"bg-white p-4 rounded-xl border border-gray-200 mb-6 flex items-center gap-3",children:[e.jsx(Gs,{className:"text-gray-400",size:20}),e.jsx("input",{type:"text",placeholder:"Search templates by name or category...",className:"flex-1 outline-none text-sm font-medium",value:x,onChange:T=>b(T.target.value)})]}),v&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 rounded-xl flex items-center gap-3 text-red-600",children:[e.jsx(aa,{size:20}),e.jsx("p",{className:"text-sm font-bold",children:v})]}),n?e.jsxs("div",{className:"flex flex-col items-center justify-center py-20 bg-white rounded-2xl border border-gray-100 shadow-sm",children:[e.jsx(Ge,{className:"animate-spin text-blue-600 mb-4",size:40}),e.jsx("p",{className:"text-gray-500 font-medium",children:"Loading templates..."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:C.length>0?C.map(T=>e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-gray-200 hover:border-blue-400 transition-all group shadow-sm",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx("div",{className:"p-2.5 bg-blue-50 text-blue-600 rounded-xl",children:e.jsx(Cn,{size:24})}),e.jsx("span",{className:`px-2 py-1 rounded-full text-[10px] font-bold uppercase ${T.isActive?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500"}`,children:T.isActive?"Active":"Disabled"})]}),e.jsxs("div",{className:"flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.jsx("button",{onClick:()=>S(T),className:"p-2 text-gray-400 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-all",children:e.jsx(z9,{size:16})}),e.jsx("button",{onClick:()=>A(T._id),className:"p-2 text-gray-400 hover:text-red-600 hover:bg-red-50 rounded-lg transition-all",children:e.jsx(Wb,{size:16})})]})]}),e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:T.name}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("span",{className:"inline-block px-2.5 py-0.5 bg-slate-100 text-slate-600 text-[10px] font-bold uppercase tracking-wider rounded-full",children:T.category}),T.variables&&T.variables.length>0&&e.jsxs("span",{className:"inline-block px-2.5 py-0.5 bg-purple-50 text-purple-600 text-[10px] font-bold uppercase tracking-wider rounded-full",children:[T.variables.length," Variables"]})]}),e.jsxs("p",{className:"text-gray-500 text-sm line-clamp-3 italic",children:['"',T.content,'"']})]},T._id)):e.jsxs("div",{className:"col-span-full py-20 bg-white rounded-2xl border border-dashed border-gray-300 flex flex-col items-center justify-center",children:[e.jsx("div",{className:"p-4 bg-gray-50 rounded-full mb-4",children:e.jsx(Cn,{size:40,className:"text-gray-300"})}),e.jsx("p",{className:"text-gray-500 font-bold text-lg",children:"No templates found"}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Create your first system prompt template to get started"})]})}),i&&e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:()=>c(!1)}),e.jsxs("div",{className:"relative bg-white w-full max-w-2xl rounded-3xl shadow-2xl overflow-hidden animate-in fade-in zoom-in duration-200",children:[e.jsxs("div",{className:"p-6 border-b border-gray-100 flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:f?"Edit Template":"Create New Template"}),e.jsx("button",{onClick:()=>c(!1),className:"text-gray-400 hover:text-gray-600",children:e.jsx(ls,{size:24})})]}),e.jsxs("form",{onSubmit:N,className:"p-6 space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Template Name"}),e.jsx("input",{type:"text",required:!0,value:u.name,onChange:T=>h({...u,name:T.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",placeholder:"e.g., E-commerce Sales Bot"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Category"}),e.jsxs("select",{value:u.category,onChange:T=>h({...u,category:T.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",children:[e.jsx("option",{children:"General"}),e.jsx("option",{children:"E-commerce"}),e.jsx("option",{children:"Healthcare"}),e.jsx("option",{children:"Real Estate"}),e.jsx("option",{children:"Education"}),e.jsx("option",{children:"Customer Support"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-xl border border-gray-100",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"text-sm font-bold text-gray-900",children:"Enable Prompt"}),e.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"If disabled, this prompt will not be available for selection by users."})]}),e.jsx("button",{type:"button",onClick:()=>h({...u,isActive:!u.isActive}),className:`w-12 h-6 rounded-full transition-all relative ${u.isActive?"bg-blue-600":"bg-gray-300"}`,children:e.jsx("div",{className:`absolute top-1 w-4 h-4 bg-white rounded-full transition-all ${u.isActive?"right-1":"left-1"}`})})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Dynamic Variables (Comma separated)"}),e.jsx("input",{type:"text",value:u.variables,onChange:T=>h({...u,variables:T.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",placeholder:"e.g., user_name, order_id, product_name"}),e.jsx("p",{className:"text-[10px] text-gray-400 ml-1",children:"Define placeholders used in the content (e.g., Hello {{user_name}})."})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Prompt Content"}),e.jsx("textarea",{required:!0,rows:6,value:u.content,onChange:T=>h({...u,content:T.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium resize-none",placeholder:"Enter the system instructions for this template..."}),e.jsx("p",{className:"text-[10px] text-gray-400 ml-1",children:"Tip: Be specific about the bot's tone, personality, and constraints."})]}),e.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[e.jsx("button",{type:"button",onClick:()=>c(!1),className:"px-6 py-3 text-gray-600 font-bold hover:bg-gray-100 rounded-xl transition-all",children:"Cancel"}),e.jsxs("button",{type:"submit",className:"px-8 py-3 bg-blue-600 text-white font-bold rounded-xl hover:bg-blue-700 shadow-lg shadow-blue-500/20 active:scale-[0.98] transition-all flex items-center gap-2",children:[e.jsx(qb,{size:18}),f?"Update Template":"Save Template"]})]})]})]})]})]})},PL="/assets/twilio-CZp8YKx8.webp",UL="/assets/telnyx-C5PmngDi.webp",IL="data:image/webp;base64,UklGRvoJAABXRUJQVlA4WAoAAAAgAAAAqQAAkwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl
245kZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDggDAgAAJArAJ0BKqoAlAA+GQqEQSEFt10UBABhLS3cLjwjfmx+Ef6v2a/2X8oP2H6eP2L3XDMd9IPpX5Xf2X/a/9bnB4AX4j/Lf9Z+O35Jcg7lPmBd5e7U/YPR36vf0T7VfsA/hX8c/vX5nf3HnTPFvYA/in9H/1P9k/KX6NP2v/O/4j92P8n7Mvx/+vf7X++/kh9gf8X/mH+Z/uP7p/4r/9/937ZvVl+1vsM/q79/4iuxjLQUS51Ee9j5IhxqNSiPYszDiLzv1L3dLG/tYjP2ay7XB6HSFVKhAWqah4NiipdTwCCnNtSnRyuVvTr4HtaKdpoGuXAMPc9iHwHbzB8IIOlhwR7WepvobgvxVFyFAUz8GJpUchVVdOUh8HzPAa/cvjOgUE6VVmFdaOMsQLhG8LUUnjm510ySwNxwQ344uAZbo8kiY+mAeSgyaFooVGImXu1nKGefG4aGIPdysWskZQVoGw0u6rzygAD+5j+UH7xQVbndPo3JsCi0+v6eES7sRFHi8/nizwhrs42RTHj3/w7RGQk361PvnggIp8hPb75bnRqZzQT7DHs6r/wazDeCRCblwoYDFvAS2/lmU2RaB6FfY6aKuXQILP7pTKXmrFlTefkkXnFr5J/1UXE/bfrStFdCnRer7LOqX12TU8Q4E8AHsH+ajL+wfK+I2SlCCc8o7WUJL6kl1AP3DTJdwuCip7/5EH75nACgMT5VD+3T7tReF4aBW3PGMwlLv5xFoX9lfk9fVlPb1jlJwFdUmcVyBp4gL9njYU7C+I6xlcchj2yMoNbwLrhLmedvPQuq6SWZONXOnVGmQanj20WRN3oAbNMj8sP39o01cfmzmE0Nc17jrFObKkYE1nb3gmJRCzEGJd6YQRhT63uMUpdW513d7QnO1oDxisr4qfEHQ99Okq+jH3qJ8Wot3XGXav9xZrln0re0jdNJBEWFxp388Tpr1DVHavfDNERVd+OJnIE6TK7xVyokZ5lgewhYtPRgHc5fiZeAPRWs8kAp7mQWf7ZybSoE+F/1KLt/I+jwJ17Pg++aT/5w3mc81d395oyqMyluwcDkyFxjd+R/af6mWOg1g6Fllj8VErEaqt/yiY3+JDhW7rQL6rMna/M7okDhziis42x361SzH1G1uyQFFol3m21h+c9sYhh1aRjaEUdCPf82O6qpsvV6rKhAOw91qIur+zZsGognW+3Baf8YK1MxeshmCzXS3By6CV4oNjUV25fLXLsO8Trb5fMwQoFishDZV+VnwxNi/6mqfSiYSkpML54Ord2mLyW6ue+Vl35MWnCrbUCPQPndN5KGD4Mgm3yFt0LiUFPs5/YDjosWl+3tRwrABTVkaG4XD1d3pMbxvwnYcW+6VLrzkMfszt53/rr1c4Eg35mVdFA82E+fKcZ/PlsK8GNQr4v2kQa1N1AEXEXEFQ/vRb5emu6uOQ61/9ygXkS88es8cKhlHevzv78zWtqxC7/6jPib8TvYFyDsPqx9wnaua1heOKW/Bye4u0Sgs7Y7+/aY+BA7BQVYqt3V+EdUuH0vlWK2AJBbwCdx0SzsU5FHZNnPLwL/TXCn/9fDCT1kVeHBEZMLBZdliu1MGV44J1AsIlt6k7mXMl3WiPQOxZ5c64Bcb4mrPV8btfprlBgG6JiW+E5wOUjfZPwezJc/e1MU/nfmH8dzgPRT2ocOwscXmndO40j2h0zSe5eAQ6XOKWICrfF0zFbuE/D9NRuHqdSC9FEmQVg/JVvR+u23pCHf3Kdfj+ZgDSb194D2u//FJLl9ipnYRfRIAShne3HiS218nIeMor6J+8pirEWma+5N1JVOv+PIRhPTK4CZdsAF1hJlNxnEJiQThJ8dfWd9Adw13qj6MY2B9/PW5IM3n1B3iJD3GRaiIVozGRKS6ti5/+djzwjJ2M20btdM2BfsjPcpA4zEBMqebqUSoRTzQ3utPDQN83gkERHWQh/uABaiztv7phlUiRIfIo2hRm6uAjTd5ATkC2wam637kmMy4TP5hMmvLqUoXKAjaiS9kPmGRFs3RrWDi7qSVtts+6/kyPGK/HcbgguDJJxeqjrWlMU3kCgUiOnjM8ZjlHwXODdCpZC/hy5e2/Hg9j/yxflF/+V/lh1NZttkFhftzDSbe6sXczzxC88rwpbYTia6m36pxWQaeiIb4pur1O2Vun+agPzuGeajxesBKPACb19PWsKk3jiumy5VpxgvwhJAgT1FpJ4G/GKR/t3huk3pI4lNFi7KawZvA4f7qh2rt3IwciehXqBixRJnoKfht5bPMvH1uuuUGuJ+CbX4O8PG0SgUiLB15fTAwPuV0MnLFd3ONZRSluiYLJwy90Qr1qziXdaR5xdHBurNzt/SoP4cVZA/C+AtgTYRJsR3baKqT/E81uf8L2Rq/l9W3q/vpyaL0cO6+S/8cNsTf/fhS0g+iipY36FnAIS4BZp3fxw3ByOeBRRqfkUymUnbC3aA2syFPBWSyPup36XXS4iJwe10ZzjYphomZOo/4FSVshWiu0gH5yEAxhegN0AHbBGOmzmsaCq8KnXBepNtueRNY90L+47M0ubvLbPXCjccUWQ/qly/s24q+6lTbI1g7EM8eh4xf37rJDhEXR/GCmRgpv4wEYySzlfvYokGd7jRHSjllXYdH7d/bPAH7PNn/XGFatPsXf+nfYsrPUvs2NUOImjSu2zy+mjf7p4c03V1tQG5L/4IK0pi/znUJRsGXKE/V4iEJ7a205QjNRGZDSeEAAAA",VL="data:image/webp;base64,UklGRuQMAABXRUJQVlA4WAoAAAAgAAAAywAAvwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDgg9goAABA4AJ0BKswAwAA+GQqDQaEGEhIEAGEsTdwt+hlKs/nn4GeNBoPmP4pf1n/M/5XqGNjO4P6sdGt4fkp+I/jP9V/qf7Df27///978Jc4B+kX9a/sH7U/0///963zAfqP/u/8B7y/9Z/u/8A9yf45e4B/Jf5J9//eZegB+tvpFf8r/O/v/9GH7D/9P+4/v/9DX8v/sn+//P/ZlvL/947Vf7Jyp8pCin+4fl36095u8P/kn+R3osAH5l/WOKD5ivRE/vv5Z+qr4p9AD+T/1X/Pfk771P+x/lPyS9x/5l/b/9//ifgR/kn9K/3vX0/bT2RP2AKf7r2ez2ez2W09aCh5NsHUupXcRTsXVTv5GZBJmAfd+CDyeB9fhOdE8uTXlvsjrqfJDR/J4XrlXYd5sa+4ACr7hkQ6raohav0gIq6poVbZWgB3pbmOc0etwbYI3b+kOfA/mGE++DQyDdDKBFIfjtKNoczpetwbYI4sFE3l/ARZMv9XKaaMOKWv4I7PLF3OnSoxtVJ7R10XHhG+GYYe4CTnO2BYO8e5dpYHCnmzqR7EtxaL1LS3RMmi/mhuwUkHz1jUq3/LuV9R4fWZi5FC++BV+Emwws1tONQAA/vx9VZ0Dv3Nr1YlytAow4R2cAADzltYmflfOPgZTHGkQCFkloH9F962B+7QW+uY+HFPGkHwDN2NBun4ASUvc89Hxl1a3
245KDgAcbjnZnz/bJUfc+gSA8wFDRglHgX+ndRnPkQww2orZ6Fm/xew/ccgWdjR0NejUFJlbodH6C0eJNQ81RLWR7z+OZVLzhK/nDpckV/q8FgxvKF/19VxPyzE2QWCM825G+h+JsVykXyzAiE1P2qL486CoQ23Xu7omOrgkhaYpddAFiivuPcob2wRoeqpEQk1p0VzgWiOpuVOpCeAkBf6avLDAbvS5jJdyu+x2wwgu9o5bNQ7/PwNIGly2D1pjHwt+i/C140S52Y8fm54T6+CKltpE6pmYS6q33y1Wvwt7oc/cT/dpZxM6hgEvpyn4y5KpMxvEA0s5zmfvd1WLilpKF9F5e7uu/W3Utpb3tLPF2Pl39O6tejO02IRg/52oOdX5hMML5s199s9TK3lBTge9UKV4Jfs/mnJnT9r4e2o6VdiK3y+V86q1S4eUi4jO8q4TNv4pVE0GCkIxcLvoyWhjNHq/jlJPzTqqw2vv0JZJDS8nwxbnVrxk2PwZkr40GuchWkzE2m8aR/Gd4QpLOM6gMPClNyRR+CD16H1PVtbfPTYm51+wEECi5LmAyDSQ5GYTzcmBxPHohokBeZJlC8PZWV4ByrkLHVmT1Tk4OUHlujpptvZi9Toal4GphlTQMht4GGVdhe+d5PFeXFVHuNDrGn4FMkMccwnR5lyV90DQjFF28oJjS/LHqIwjmx0yH7qBiYBTTIUd9gKfvAPVT6XASeEF2wqJO/cmHoFUQBNXTGQgt0ZsoLiEqYwnz+OkHypQz7Lkl4BVwSN6QLGVjK7ugEn26TOuD7VjwmfkMU1Fx9GOiHLv6n26DoQOP4WrDHn9dHPxZmNbfd2RrBEd/Z5Hn22hfP+Se1PXjGYTh7a53v1z1YYvx0vFzNBXCQdtbwbMAARNHa7Ki/rEsqXfxI449O0lw+ic3rLrvMSvDkREDm21cwH5nHuMguSSi4v3/c7/0QXyhD+o54xN/ZEYH+MctoW6rrqQavb2zFz5tZVJzjzPiAXAuEg0dr6Ko3E8R7xCkbxK5uD1TK1WezI+XM7Gw6tvVwu3txRGkbeo6mAB5cmb/5p//0Dl2+DlJ2Pu+uGQ75O7j4ivJqqjUl7ZAGkZTJ50aOp+uJafB0m79veOLiirbnVNMAUKvZK8KaWdzpvQ+l+F7K4OUtC2qf0pRBMf64aKMwyCPPsoiER6DjrgsR9Bajj8Yr7qm66Ocsu/bwYW9WdwZqJ9f1yVqxFEApc7KXwqp8+evJARECIFNMTpKtumV74Nz7up292BZbf/HS4exlPaMikYyvn4yQNvQTUTdmgZNTc+pP+hrF2WBGoHWZIyXzjEvxptTTn/U5tJ9Epr93PVUEm4h5bJzf/YGQKG+x3w+D0etOqcy51kfXM+t3C63zITeOR6TpZq00dBrdrkrMdBxRhWJNn9++B1viNFl44c8gzasgx7ntnaYj684/UuH/+B1tRWZBQWlvHuaq50NYt5LdeqNrQknumKUUNkQQ06qXs+PwU11uFm5aL1Wa9WuaO4D/ygM4wgLWeGYYe28obyA9xMgfwCbP77o/7yvV2EUoRqZyJDDmMOEqf64qnuQuvRSTwkY9fiBZc4WMMkylKgNONFjYPr8u7xDvropJzOnGOSdhdyE8Udf6eOb4dg+KhKyBaXvNGou/Exz+0+fgQhpZysbc9HAYe3+7jmPGXTs1MYW4m/qoBi9StXBAZf+bngoh/2v2+LnZeba35Pt/eNgkesiEKunj3432kR9hHBXLYtR27vyUvGM0QYAXIAz4/lnkRAAfloqLeiDyDHcOROo5+mfYI2CiAwGCEtf4c4umua3fxLPS12KLqfSOMDdjsJiI/0UcGgHsEuEIFXvCesgMBUVW30DPhUqJRgs6jbFrtxXCQJGLbfdyrjTSY8YiudFUqI3v1/dHV6qASmUKe6Bek6yFkSDbM3en+b14RQHv7pykhkw6rQMBWPRxbdKz/moktTbSmrDHpVAmo/1bA0wfx9eDd7/HW5dlOBHQXqoz8USN3f1JhV5dnEZcDpffuT9yaDCRHMQv/lppqUB2YOppYG6PRWzrbiAFGxaYcVKAtJB5PCpPuEhtX6LTacGiK1SukLGQsC97yKXxXBSxXKuVjJl64/BBa9YUOd0Go63RxLnE19Y+Rux4ihm95M464FXRySarVkL7x566YVIXH8LfSd3k7CsWSqQ7s4aprf83ig4w9hMUKC25KvlAKjsEZ3fWEZ2F1fi2OUZtR2b3MqrHANSn6baWr3JsXpX/fgn2HDhVOMTtIWuJ1+FBA//+WqycSTIS8xof5kL611AvO//1Oq/VqZLhwqhGQjSRcnKilsj6CvamDNTN7dSuMaH/WFoWHiRo/E7Q7H4YRV4KkuFAYc6WYe5hlZ03SoTzzHm+ae2TYJFy0ItnpIjqx/vTLW3vMgu5GMgrkA9GXGTYrvv85TPwAezMMsR+pppat6OLVP//OWpN7UN8Kvrc99XwQ9zh8WP7yRScz1d3/L45/sgiApkONJW0q9B2LQGRHeCjOqF85xrddcLFMoTeznS8XyxrLIR6Jr/I/2jaqWd4vw7T/Yio8w2gwjonsHLdSbel3iuJ4sc1vgxfe/KbLzkOL6fYCtJ5Q05BMVA1bICS/J0K6ivc05zCXqEMXNewjYwCqFf49FPiSNMrbMby7DnXZD+iHhLVKa8dZnxdcFMOY0Mkq9Fvb3WUDCdQTx53LDPV652JEvONQYxUrY3+hut/z0P1ol6nyVfybO87jcF/9l8iatvO58ZbgBiJBOQe/699gnCu2RTF4JJ7rIkKwRBUbVHqwtfCVAZvtkQwATSnGCa7okKFPbcgHjlN4esPsVYXTEys293F8ttWc+PGQHpsn00Z4LDOTN+h9AR/u7LK/RwsLGi7qD/n/yT/SxZHiHflbv0fAMbnQ8zQnklZDLS/Q+ixW5L/Fy+RGrZwXjZM1Kr3SWugF2Gf2lCmxa2FrUAquOdwdu1GOqRv5P8ENf9C/gPzSBtS/1HQdIHQNL8CfpBY+WWYexWcAERULzBCVAAAAAAA=",FL="/assets/sinch-BfaoJ_5b.webp",HL="data:image/webp;base64,UklGRiAOAABXRUJQVlA4WAoAAAAgAAAA4AAA4AAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDggMgwAABA6AJ0BKuEA4QA+GQyFQaEEts0HBABhLK3cLtV7XfTfyS79KPPNfxD/cD/Ec/TqJ2v/ar/C8bAdT0a9XPtn9a/Z3++///ud/bp7gH8A/hn9J/qP7E/3L//95fzAfxX+Xf5D+4/vJ803om/wnqAf1X+r9YB6AH7R+kn/4P8t8EH7K/9X/AfAf/If6Z/rfzX7gD0APVn6P/13s8/qv5Mf0npJUin1u/Kf1H9uuQHgBfif8m/rX4/fmFxpma+YF6rfQ/79+a3+E539Ijjw9U7+I/7H9+84/5j/e/+H/h/gF/lH9D/1v9v/eX/BfMr7D/Q1/WoYDPV/6v/V/6v/V/6v/V/6v/V/6v/V/6v/V/6v/V/vi/MgQuw0XDk66Ohi
245pdWFbiHr1l5e+ha+EaXo+rMBG/8PQSF1JsmsF/mYo970vNfouC9qKN5gKU1tP+/5I0ATfWg8G21FLXPyESdjrzkBS28PBnVt+OJAAOuYTGD3cZmfAKSMhIKZcaE64UQhm2DT9+B9oCJj3Nlu6Rrysenh0xZx/LzuMdaNs2/QjnzeFGNX/q/30m633cOVrhXlqXxPVcMxPHcY7jHcY7jHcY7jHcY7jHcY7jHcY7jHcY7jHcY7jHcY7jHcY7fAAP7/MjeeNOh6hrr9tbdrnnUonCAAAAStNenSfZMD4P/tXnknmZKyr6zvswkPrFtEbsTfbojP5OvVJUznaXPFGk+ynIBfYq5z+ZzQIx9RTDzpMAEUN4eGY/6ug4n6wTD1AYc7UqQHDJ5p6hVbi1tfBfcUKHxpyeSv1txm/E5/gcyj5E7MK9LT9nT1+sdcCAv3xkauZO89L/ZeGPNMTyg+RYMGqdIucXxJi+dgB766EuaSAfiyLeRCXRuY3aUySI7I5f8TZz+Zn+YKhVbdvJ23FrmOMJpJjz0M/HbWH7wA8bRGu+l1qd7QUyq5jaxSEJWZlqj0damb1R0vmNYRyXwEjpsD0lcI1rw2ctm7prJeBbKEtq9jX0qAWNqx/BhIJx+2xqPZsqRx+p2lARbnP8OT3p4pSpyotI4qvBzGvQs+XJipnMqOPpr3vsknl+Zy/XAa8ge7hwHraG0yYlouwAbe/jIjLsdiy0KW2VMHfl2//TJTDI3yPn//yWExwlX04/mwY8W6s3aHilBwjoXxqI8o5MuRzL47PqPixH3mV5ZyULC5gLufs8GVsSUaXa0YzPoDiUwEDzXfIxVhHy6kaV4LqOc5mdmD/Z03al8gSGnrO9dsAOttwVjImbzTEB1JRcG1SdXGrOo61Ma+6gh3PRp/11BIb6QnPx0oXPz/1ViVBbEke3Sadl0N8vF3Um/NYdTAJdNhyqHIcT1jyNrxSBDMZYIVVj5q6B1T893GocslBZnaIstcpq1XIs3XUC6/3SOUnX4QjNmp6liMph9xFnB/AEpQgrsV+dzHi+v26MyfFFylw//X0zlX5GTftkzLNrdSftMrYkWDcVTCOhU7PkWtWmjE/e0iCC4le5NKuJCcVvpI6BD2wgAyxUo8HhNYZhq60b4mPP0RpO9u//xdqNwz7/zb4QzSnYZ6SEJczMd8uKrjIyJprh+PnodGOn07rYG4vZx1iVXufWNaLWbUjCFGCFmglus/kpsN/pcrMgTyMakkDJnB24zzF5EwPAOdZdD+Oimrujxd/RgP/75ligTAkZIrvR+Ty0wYyMDHqQBVrj3gUeZKbdk8oiMSbeE2T5v/8eUAAVP6VBVByJgQCeftHUY5KZ/1p0YCz41OaV9mFsUZISccOgbF17olUBT//lKqE1Y+Sl/6CWqDskBm+fxX1k5in+5QZFwb5+8eEkCb1SPcjqHxFKoRqpKyFLY2cqXp43KG0yP243BqcVTMDOayLuzxAbWPDD8jIJv/StY+FmLrKYxJ3jxi5SztNBGGkBx/hWG5X0PViy2Dv4dr7aco8K1EAvy7Ys5L1dbuFsBufTPtAv89Uf6cCJA63akKzW7zd88xxx1ksCkBX7GV/1HsqTYbAnQz9Usf5vLu88hPpfKw8uROZ9areVfaA+cFM+kOjjZrpSsCAlx4sjEYhyKJotwop45z69dYWKVgBYYcbyo8MjfyS/GskgaMIFuPeHN4x9QXzM59RhrcGl1USIAZ4D+ZQwzy+ZI3huXNcNTAmvU7VuKJFiAEBW2OD40IWFdfYW74cnmSQPBvKIG8c7UFmdfJqmVH7L6V9AWZxVFj/fAR1hpgWxGvilk7yNtR5xEv3gxhUwSBJlT1cILq+zWBgxfNPSCanP8N/7zbli1S0Lp8/nYlNzDp6/wxk7JN2RcSVNK7+IvRiNp3G6Ju/Kq2W4MC3swnWnkpkEKBUln8jOgrZuDZaqsJWfhI6y0IzaRE5qt1kc6JWXrZ/NgmEZiDsHM8gaW3Bl/wJ3qD/JEMvOuL3wOK2XaPUM+mB1sxjlzO4T6k38uPM6I8bHVSOhemiPFcgIWJTXjjCdq1OmLEyD9/yGGHqz2Hj8DsdR/Rkt6Opg3BHTgCUKmnP7YgVs2goEegoB7DJf5pykCKnfhmETA5MmHvHie8fNZuyZdE2CWJcUBFQse0ILT67QarsgSR+ZYOiQLNU+4/73Z/DFEqsQdfmpQpvGbeq9u8QwYpupfyY8CGZ58QKEYUBiXApy5UdwJd7z6ML9dYaGA+Y53nhyZrI//Gjs4phIgAv/9iqxc2HJwIjdxmJpG2y9DDITParDLpAxjf1nkp/WqiKHi/y7Dc9AyAD8Qu5qr8ZlZC9AMzxM6FvE2d86HvS5YqamquvN7ct+blWeGMpMHYv99Obw6HS/wly1K5acypH38rfs4MXqLfa4ZFDtUG08OG0yaSpyJrbLL9uPtA7GRwfGKRvLKfGpNE4VK2CSHNSJFun+sI2gEFceFP3KujBKKXLpoq2MQe+ty2QtAQcqSdN37fJOusxclr6fMR17WWnNxiG4lTqSRPAXNDW3TEIPAQfDWUTjPoAHTimD+BpY/3N428IxnHgDe+n4oxECwfdt71FQzlI7UJAZ2AJYCI8pGkII8gmfoHUMHZIAUccH+KUBnoRtUBQ1K60VYfoBubzLkPjniNOmCdLiQVRpOCqNXlbMbCZCc+NoT6tCMaCp9xWaPSaZXs+DlMj9Gyfy4TfxHpgeRRRhB7CpCs3PA9nS7YfuctUMNZOFRu96T912/ZnhGLUE0sUPoShBw/XxrZQ/qNzepF/gWZRbgzvfR9MbcSQHeSMSMbUz0UftILmf3ZV5hFfPvpExYqGYTn98WjY6vmfouN+rhJOXRdp9c96fRES3QW//+hVSbk7OTFI/4b/4Xc0k1MM37k16x8/1RnyJ2Dvqw/MdPz9/EuTl7mxr/BtxtO+mqgsmZIzP6o21VJe2SUUQBzY73zqxRiTVXnz8KE3ZEnMc+d16w58nYBeMrAmMBiQxqKPNivBBhwZDpTRTRYyLpEBmonzWYOoOfduvtq0Fb3ZQLTlPzyh10ma3gy3bNp7ynyveeMHRMKjKIVCsgioYmBZc6SLkFTWWLbXhgVRL7iG+7MNGv+Mg7eAEJxCoIuhzaCwgGj7R3Tc3/9FRnSEFfKr+bi0owIg1PHxqLnG4cCiXxb1JrSaUQSeVRhWULoSt5YVV7tCumGpe/xVKHwH/GcriEp5vmgKW58SId1DNZIpDfjcdmODczcZZHcA6o5ARc9ql3Lor4AABk3DsVZUur5M4oUg6JL9Z3Cr/0o3pq8ixIAqThJlvz9CN5ON+OC2DdmJOjHYlfPFJh7Pi0mklbAQ9ONGfm65B2/lC+1p0MsZXbXfgZPryUR/fwLFLfoISuWlfI7LIjotF+GHpc46OuDEoIaH3HsiF7bSZ54xpHEFyzz1gBz5/dbI0ye053Jl8DSTELB6jMY6+JBE2UMdiQS3/D7Cj1dOPaFNZCn6Q7Qm2gDHYbQCHEJlTAtN9WpayeeENTzzgS4vy+qIVPwfEGb4+6SXj6P7PCqkB1pYNiL/c02r6WAOMLwkfAvPZqR8X+Q/WrePRxy/Fq+FZtZ35JHqsdePsiHNqwf1ETpZR5R725d/+aQppoC38OZoiA6BDIJN9EUlCLZjCN900tFoD7Wn+BL3kdRXfW6h8Iowv+lZyiRAT1nHdQC4w90grmjBIzS+TEHWZdurhugyaLnVNVweWWGj4ajYe3NZUzn2LrKEAAAAAAAAAAA",qL="data:image/webp;base64,UklGRqQHAABXRUJQVlA4IJgHAAAwMgCdASrhAOEAPpFIn0qlpSMhpnd4oLASCWVu4XVREZjdfRc/wHImcmQ3Hf3L/kK9SP54/Un4AOc15gPNO9J/oAf0DqbPRL6X3Ic/I/+A7c/9dkOHBX7L1+/bl4byzOC+lcmreVF9kOIfbvk2FlVYoVMM1lSDyWhUwzWVIPJaFRrI7MIFFKF1XseuKm3Ixim/8S5SEk5gassrKkCPAPya4No1zpEVxQRFkfX0Cs3CIK3+w8loFhdpr8JU/Jd7ECECl/AWHpnyx9WncFe+647VgV/TaFTDNg7LTTS9++Oadb3CpB0ZJILwfyUAOX+C/o2Y845A8LJnkOUA+WCuReZd+67F+KQmkU3kI24qv0KK6JsrELT9CPBUSTbK9m1UVtdhRHMUsezgRBTzkhBNLLn4o6da5x4rlwS+fBmYRhbhScl66yqvOv6nu/1CHLtfnqVic51XB01rsN1g+QqjmGp6W1MIxguCNKUX/L2z4NEUK6A6292EOGN8FVPAqYqAbASFYoVTDNZUg8loVMM1lSDyWhUwzWVIPJaAgAD+/40AAAHPb9C7hp9F8IykBdTjBXdXUDkndXO8ufaE3/uTM8bdHuYf4B0sBdi+cVYa2EQZp460JC8VHIgRYvE6kPELjFMVx/QEAKHE5g1FSDK0+/yYbSFnAw21rTFpryf+8QNYjYGh7T/yJVDNdXGP3ROu3PD7F0Vs6DOEcklRpy9IYYYTfz0oERqs1aYERiPoP7tZEzeKQSytgweil+sTHAd01SLd2N6QyXM/u1JRlftN5itCWeBM8u5L7oVH+C7U3pYU38mGC2xJPpvJ06WZ1Fs90aKEZ+NqFGzzdEzEUJ7p51p0NyjHsEVB+K9sMsZkbHq81A5qVag4RSF9Oja1xRh8NMMJIzNNtsoy4jqo/xGNV4Xeblnyw4/4sSLmajR8alz4RRloO3egBoeXRI+HNDxEVJ7xIPdD3SYXxdcytzQChkslBi1IrRH06eaKTeNovxeFnKuEXaB33vk0FFfgDXJZHdpyOcCxrV0LaMepu6YWGc+JII+6BM7JIWQWCSrrrG1VcCM4lGDxFagihelL7Bt0UyZurQNnaJhVuv9LdVPn4yrszrwSUd5oWJ9Mb3lzNW0CTyE8mF/TzmPAEz7aN+WIQIIRRfQ5djgyPd2pm2lCbW+VCGf+5/KB2lxaMGK9+af9znCVBz0E8p5VolzMxxwFpqzQpJit/WLsW1qyo3xsfAuczQIGunz6cLQ8KEaaS3mQDr7jIBf9+RLh8G+yAixvgPwhO+utmjXMyCfHu/3SrDhUG23hSqbkLZyjsSERYOvrYNrNfVKjwglw1+TfhB+BJhLmpcjtSd/+A51H1zCcGF7Lb7tyEnIKRmnXSUptoVMUeb14H/fiuGdQ3fRI4qEopmJl/pPHJDTM1DJsKiKVRoW8sX/318vxcTsjzv/9zfyxPJtwQVFvyYmVtn/bt28MOOac5WggPvqt/UDPZq8u10Ur+fT8Nnev5DYY9WM9mgrM98Xgao+2cgi7ZAwm65jcEFEWkYM3P1fOb1RkFw5NLJmnrhsrPlF6oW7PZkLfVvGkBdfy5uiSw+BCYTT0l
245KrFjxY/8EmOsmbILaCuBc5E8L5TxpQlkF2iWuJ8dF2lqSUKstfg9Tt/Va6iPt5BWhZ7Q/Ci2n0EIOgfVWRR+yonue5a14gRgQxBZY3fhYFmw+rUWiPcfCXdxd0xomWRWRh5AmtjA1Zth6BxtOzb5tEo5z1GPc+BenM1jqWXM+IK/I8olVYR6evb73i0T54szwfyDgJaxhWj/hXdqIXbor+6Ejg35ZkFilbm6aiy+rC1x0bhiW4Rfkyh0BhhxeDN8caO1kuEchDmOfmMEttfQMea1cUx7eASHwOhv9NsFU/fW4+8f82Czv5g7cBGm6aEkEffa8dm0Pbnj4eZm5/+l4vDlCz8z+0XGVzkFKfCi0Ce8vYjxxr7h+aOMuibgwszI8NoIiDHYdwB5wWyUHLNrQQTK0ksPXSs5G06ng69QGTsrxe2OrLKUG+urVz+dXetjm6+VuhQ/oq2rSp1BsDkhaJRmEOSBzgBvql32DpEcohorT8cM0LA5Mmub6B19uOoYxBwouG4FZeUUxpZ9jMvtVmbv/ELoPzI8TunWAWib2amYIRAqXoRhiZgZWu3Da7bNmuL4LS5ZSWgbyKDW2Qn7c3fHvoX5M1Uunc7igAtDMqKFh5xbnsBbsXLoHxOlPRpl8qLbZ7dB35ZT7E4V8MIv7d/O3UGWWywS6VEnDl9Qelnyq572M0nB/W2I/R2NvSJDwitIXjzkvnbIhYzc6U5RA0s/L8wUFvbrtnrmZt/W4SMJvZ/maU+/bJmTSGb8ogjfT+pJhWGw4pbS29xq/AM01xTLz2+4Z0MSwINl1ssh6cUca10hqtOVv8YBAngy6jPcAFVX8B2sb1qbyeNZK0M0ls9AH4o/3IY92M+mLMI6/y5bdacAwMl5OK3SBADwjM6QUG2/OQoY8TfVrT8O4VPylIHodtpgbCOMseyWaCOemb68fY+BtYVNnUV4HRmP7z8kphQRsr3t/ah1pNa5wKs6VSsIlqrvwAAAAAAAAA=",YL="data:image/webp;base64,UklGRhIMAABXRUJQVlA4IAYMAACQPACdASrhAOEAPpFEnUulo6KhpJSJSLASCWVu4XShELwvzP5Ae0Xc/8Bu5JRO0b9p7APTF91XuAfqj07fMB0O9439C39mfTW9ob9ov2ZzFdRbw78xXq/3I5W8Sntb86+4n+d7z+AF63/0n5bcHiAD6xed39v5q+IBwWshnor6CXqj2FPK39lP7l+0L+wA4mH5Z2VEw/LOyomH5Z2VEw/LOyomH5Z2RstBCIH7LLeHIw6U71QIFAYdDsqJhVyB9EXpW8go6nzfMQRaVipR/bT0k4gSJh9NTGsEwLgaxx2tbHryJsTg0sXhW4am/oEiYfHAcXLM5Qc1LxQxYt1BEjgmY9hKY2mCx9jGHyMO2jsyrfhli7594p3SNyTGqJgvSOymOzNefwVp37uMgRWNPDcWCAaLBwjCFS2vEyU+l/bv8+LZy9mbR1pjNkKkC2ytM+4EPOsClT3Jdp/2iZYKXrFNyPXmdCXs40MiHk8nqPWHervrqospK2JNByDOV5Ko3dmicoRwVthVxYEAUnMVmS+bu7g2GC/QXN4PbNieRGVtGzF0EJZ0cLZB3rpc4BV4vJiupcEid7fUZnIf9078L4o0a4JA47TPPEll6X58obJB+fKKT8s7KiYflnZUTD8s7KiYflnZUTD8s7KiYe0AAP7/gCAAASPwHtNbuLVr/hv1v0QtrW9dMJHZtHrZf/5n/pYUG4ndcjpmRWRySIXr1pU6Ufaqd2zo41BoGhjLACEu07LhIwq6oEgv22WMj5EIHabu0TMBFcfvOJGXYxeq7oPmcO0ADAT1QOu6hNUCrGFHrNgT5ycpWNuEZ+6wdqvZsmQkhqT2DpbUhznAZkK3gPZB2Z0fyyq5J9thdcmJ4oTqiZrHHNKE1gFWiP2daNKwdiCG2StIg8fskoZjnmaJf4OTJTY3UtRqd05i08Owmlrbx7SQo6e6TQw5/SGESZR30w+I6+UUPJRkVNImyQwvre5PCmz5msgsMDEd4/+lrS26Q/WJCp3NMwslJZae0/1LTpP/9GC0xF62yVTRz5i5IzfYBzqibk0GyJpUXUv1TcXAwZXgLa059Ef9FA0o4IV4Ye5k2VRvj+OiZ6R3arf3TAvL89D58jQbEM1ukD/LtFcZjUA94mO+NnnR5EIfahfArNNYdHtRkDVDw5lfkVd3VFZc9ZZ3wdqhEhu+UxgZhTuVWfNiKSOaIf4hPRKKGV5DejXRaQNMpYkomP4lLGu3pCID+/lMoy8dgK3lR9AHvkv4DRPMeijMR5Oqdk0spi6wNBJNEtr2aUQrP9GpH6PYiuybKBLVhB+zilL7dLjZsLchtCG0kwYHbL+uhUA6YseEbMU45DiuJms56YtHihJ/N6X+SXtrzCC5+OO6LAPY0ZMZo4Cv7ob/iDRiFZ8g+frmDVac+idTqaOGL4fEStGIljHmOM294koxYmzV+DhOcP7GO5oJu0rQcAp1yionUUB0SKVCI6u7cTJ32DdhJ8AY7KneumcIt5rc0hLfPKb5VS/WnbmrzU9jnqYY/pIbRQ5diPuw0hJyov/u451xfoE8vI+dYsgiD5uby5pKD+fpXV3Pygt/jbTBA7pmUda2N7qbJ22Na5OOHCZymtspIfvR67CEAIRSk2hI+bzUbcaZ/Z1vPIa4aSARqdN7Lg8EApeOIBv0dFJrvNm9KbJsZmbXkG7O9c5VQXxiimAlGgmmXY2deTVk85uAt6NqXcn+7v5ikE+PimEIoG4N3rVDLe7T0lS3sPlxQr0FUA/zWK4HTjjjPHps+iDOk0sicsPCzqNRD6uevckrOOASfCl8gmZL0fyzto6NfUs/pMVYD88WC+jd0u3QVvfm+2mc0tb6hj88lJernK0mH38fKpaj8egSxJnarOw9scQucWRJ0LlFMaFArmXjULu6qWOCzsR+V979/rJmOKBAxHABEDaCL3GQ2Jvc8B3Ss8gxaS2lZB3J2EF0d5IroSqBkQ3zKPINnk4mHP6NOeqfFDWmbLejTH7+GxlTSFfeWfgFlTrzAxfE09NZSxfbb/07XzuBv35e+/v4LYnH3nvlXPr0uA8CIzUK4HcoBZ6NKc4GGkT9G7B2EFeFkkMet3maKN73qph6o/Bv8kFYM/7mUOLHutZRD/WudwczvpjExa4ZM0bLV+sjW5eROlD5HawoUO4NhTQeDk+rcqiKiVCXqOSf4nZ/6aBzHbjdbm9mvph7qfEUyukPIlG5T7aaqd8TPJf0G69REUgHuoaMZld4X1AQt+t6pj6caJcryB+Q3zHoljy5CeAPgjCK+HrmUp0pcNUdAoJ022MNBl6M7PLe8+Fa8OTus45J0Nm4QLuIWapL0TDJr8bP8CBuyI7zGNquzZLpUjdJV7T/Jr77GG7EPwJmtYBmy9sF96YDTINvtWfEBRSMhPv9OxX1ToZLloNa43jJdXnL88WHpdxkUQQ535q0gtSYhX0IvI2zWCqQRvadTgb6+Pryez20aokpeFD27jKV+OhDObZfGJ8TwoePTzk0GHnN+rHtr623A8UUhWNe+QZiNcM4S2ZT4LPpD3u7namayFb9nznlB815hjw+ClrSK7aAi+QZg72fFND6i5FLOeF/rArtxBWtIiFUhb+dLBBz64vlAsbP+PEDWb4YB0GUPLTShGIjma9wPQbWBb5SMakMJvQFv2eyStXtH7tWviuPkkj70SG70DejhYHsimxKj58anH525qdZHWuWmv2onm17GmL10pyAfzkHivhGmgs0FNQc7+q3AHzCtJClCeZxW7ua+GURRoJzCp1sEFlXeumpJFWYtkv5tVL8xowwoS/RmPXlh50TjGztl3wE+Nuf+3W2M65HgQbgy1fk12USnPgG7FQJ637FngwBlyaVLQlCQWq3XO0xBPT/UOkR/SDuLOcANIlNYA1WtmTRJ2fsz1eUjGfpMavP6ZjuZ9f5Gf9/3dnqyOsXtBXhdvQa6mdmG6KvrcKo5E3JebOxGazCf7xTkeGiT2nxoBryd0oGA5o27HnmEJxX/zUb8Bj8X/bgBxi2TBBJMkNQgP//7Hu3NGnxu8chG8tZfaXWgGc60DdzrWVW6fv/uMuxLvVzRl6yjxptcvmU5l4xTvkuVDMRyof7BEa0Ky7JkI2N22AAObZBC8DgOKML990cVP85h2UvKTNwYSNC9hRK+hgeQlYMfDEJysVrhtXAbWJhbDvg34cQeR2pw9t0Cq8UWpniL5NxFzMf2z8ux/ttyTWQKRv9urwbfekwtbJa9LRae8Y4szBPeyatGVo+B/Ba8y+PupMWyN3+p+eggRCL0jXRI5uUQXhPND6v/Djo+YWji4ZxRJ32MQhP6V89B4/CZPox+2juAf8xKtNFOpTB7DOMHJWa+4pWR1qsceb8k2jd2I29dTZbM6/2L65wZKlwInaXKTd++AmkqzCAVw7j9gJWuIfN2yOUjKkLlFRVCykSP5w5yS+Fr6rlmPSAzffAfCr99qK4mJQpuBt1OtBk1KB5rf5yNUdm9rzt57mXGxCtjYYRwnX2lmA0zJoeFb5Fs2GspHXHClpCYZwTDPPY//Pwn2a++WD+9BKxeUHcc1KG15wkkPHj43xu4MuxtxaFio17KqLrJkKswnuULmXeZoYts3m3UET/dm4jr2uvO7PZf8ut7oJLmHXVmK+nThIL3RChRJF/Mu1GrizP
245Shrfd1GRoj55nCcY0NHpxzVM92D51t2nH9+A23lPEafO8KuIVIkWr02LAiIOYfntbotr9Rg5+JrZ020CM5yzTw+5GqO0BnyNy8PaHX8j2tdrfhleTfNPYGSBRvjQrWe1tSXsodyss6Jx7KJvNdikpEzbGeOyHJ5O7IVrcy8b76kGdHmYf+V33X/4lrD/xPdFQBw/KKyO5YfsehNSmgO84TQ9n9VyTjzezLX63UvJNRAfOFHIdYjOfD1lLCzl+zRJ8oopCAaMSSsJu+ynZhsud62QmBLcjBbIJruLBRlpoynkGiME/omGl8qzMPbgIgygL7YdVUIqF4dxnglOLEQIvlJ3DBZLAz9cgI65GlPrueWTEiI/jG6AKSUd+njvxp4Z0dvc0eMdUBsenJyQpn8cLZb5gM++GjiPaH6L4WyS0eHWOIkgwAAAAAA=",GL="data:image/webp;base64,UklGRjAMAABXRUJQVlA4WAoAAAAgAAAAxwAAxwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDggQgoAADAyAJ0BKsgAyAA+GQyFQaEEkkEvBABhLS3cLsAfOu+xBnvy3SPq4jeW/PRZ+afRY6W/mS86D04/730gOpc3oHInfAH9J7Vf7z+TH6zdSf7I/sVpDfx36rfh/x7/JT8FfaN4H+jz1AvxD+Q/138mf2P/zPqq9oVW7/AeoF6m/E/7d+Yn+G/W72gtSy6n/K/4f7wagB+ev+B7MH8X/tP8x+UPsm+cv9t+aX9q+wL+Pfzv/Gf2D/H/9P/If//6wPXD+3Hsc/sEO73B/nI90mW+EDVqXftk8p3PJmwxqz5V4s9PVqYdT9A99ndIs2LlTzm8DWmGpd4EM3IVuEFnqmBXefPXBWyEw6ccqEnIsuTeV99XAbx2sEjh10NMFVs6Qdw1n0yUuNzvnZowliD+SCoTl6t3DmPv+mstBx+MNsowtJUUUvqbf/tuBOPfRo7wgvt6icTDqaHLkVu192Kcv/7ax//1X1hAvRLR/6D+5tp7NiN8ICSudPV21MyXDkpK509XbUzJcOSkrcpaZF83gZcmGN4amHZUclJYgYgAAP7/+DGhVDTTxlzCiP0cTogXC+dUhEkogZ2n/tV5CV/9XnUYgeYBK/tSniGwrDiUhhXTnZ6sZJ5LnsqsSY/ca9+oDJz/fltoEJVk+90JU7lQSk3Vv9Me2mNHR3juFndfL75PrBi7j8YOYIVhLAcujrvsp0ywfvjE3h/OEzKlVk9fRVaMhqWWWW+O892M4Ki24TGsAVMFgcsmJzA97Eapx1zUZziFZEOsnnPAFCr5GQqXvmxv6N3TWTqRPRrIj6dj7XEpERYsrTx6/VpIivB0UQ1JzHWwfIndpcWdOLyXuzkpoLbGDogbTh8AG1ByyqOP1zT/FzxyFgMk7uFNXKeMF7V0JNLQ5CXla3WIjpNlsawV5iqlt7ZFQtr/zeeSbXCP8U8fZQJzJ88y31RB1wADdedcYjaO+clSbmpbH5IywsltMXEUcYGybpXArAiSDkk/yN7VjYs2ebFucsPzDenONrS//itGJnEul9oKnF0eDbcDZwoJYUIG0TJ3utF0mIO/AsYobsO95g46KMZRWU/JQbRkW0G+KLdDe6y+omAy5Up2QxRalYtrKJN8d4+b+Ypdn2El7L16T4SBEK1Fz+j9pOYLnVuh1Whu3Lo5gpOAyWrzDEuQj88E1QTU6VsRydhVmr0Vv0vcOiHEYoj4VNgb3G/qEHNj4tBr5AVy+IrSbPCMCTu/ACrTYKji2rK8v2WDhnIW3op3a5yCq1nHsQzxB8O+cmYpJbq7ocWa1/SdJ4WNt3Dq3zCHQAi3ndrru86chY+CNou1ZbhbvyV0CgLYrP0/UDGIw6JTdPzbHruO5dNcLYP3SxbEFwT/yndlBvh4S3qLWx1L9zQPl39e1YrwMilNDNqlwGQ8CHA/96gwFFj7MVQPi8BiXM5FEUVyAgOKERXm//bkX9t4vVe3/apYAjSLSBx1sGGVrf0VGDJIkYKjkhboQOwDRjVCfO0q7V96jddM0sp36vVwk+R6uobS4rneFEQJCuHnjttZ6tsfb/MR+PoHdsNaiX1YLITcNM/N68iFy9WUZqn8/OMefLaqy8bFHg/HRbK4uS0IawIBKnjT7SHSWEZc574BRfSj2WbJFz/Rf91rzg3uDdpgGY/V5lrDLbdvtQhwllSAjCC6jQTWiegUO+wQULtSYv3te4YL6UKYsvTg4ks/9F5kOEvnneONa5OkbY1wxJ1Vt1+B3KcRsPRaSM14esY833DKoBmcwc5nm8cIsmaBNM7gjfbaB1Z2z53nL8pgBX0bCv8h9QilT44CPhwfin7Pznf9yz/mVW/uj5ieRJL1n6aXEV/6gBNz7TsT4ccABVMbMsTyJyrZJJXQWLV89HA2a9UX2TCn0+LO00vQANxQr8Vu+vc1LGND+NQK20RtMEMV7fZSSPzqbOFagw6z/YXZ9EN0+T6nwhLB+pIfp5akfNzT9hYKntWnll0izk2AwzYVUs+O7iqyyJm8v0SdWBU1n+/uzK1WcB5Xa5WvXGD/fL7FA8Hj899YF+jTUTpV27Hq3UC5mfzGyM11O+uY2Ucxmchn5dcsv9yso8F+N9LaLoOrQAyHPCegzMpp48Uv3fnVOzFMDXkgqLFlXWX8fETyQ34L/0B7/yrOP9apHyNFAAQGljh//Je7MaMmml+KnPMisSHDdG51u/lvYmgRqYdljamr5BkbUd277XptuYqI7Eytk99lqQ6gvFYp0PXfyrNVfrhewFsA9pDqeXA7iIVvxgC/PxwOvzToOzgqpmMw1OmMW1KL6PADlua58n0CnqDTd7olyK/bHWjndx0t7w1nnwadnpGfBFPCyQkyWWJPPOilXGkPUXG6UkPdrwWM9N6tYxlPdaKQ9D6DuSMuDXxICDCOQSBcsW6geTZMRF70XuHZmqti1Z3m0wENX+x12Q7ZVlb7Up3QSvAm7z0PmcpGykbL+/FJboJP2T9TVe92Xkg/i5QWf9zQrhBIqDRomDRtLhLI4ymPcZKe7pvl2ydGiYvltBsvxJ8+tE3gMwfdQOG4kSyC92y4BPqkENtzda4Yf8pen878VJkFJ/C8HQXvazRqYxsPqyyg7AemJbpKQ2C4jn+0ftQoPVf3roKaLAMqzjvef0mVgy+CTeZLX+sJ1y0KdmrO6I4b5LsKiics6UPRPbT/PKZ1Uz3tQlMQKNferu92jEEJcNOa7txOQ8E/DMIwAptnfe7bMfdi0RiNJCw8UQ8XgANstwFkcgBbvhL69RYiMe/VVatyAIANKL/T2uS/TyuOqBw0JiHOgX22eGdr0AWHbxxeDhfUVU//En5PlM32cPwSUTOjVmSfjwqSK6D7LY7Z9QuPAu4ZbgptSQbyUuz+6qXTob/iLtqPv7TMozojRA+EZCFLyOAJI7jH+EZdza016FRTIXPVUfxr/cWPkoCfwXqRJuEnZ7DLjXR6XpyVq+Yb7zrzYSEMXYHSN6xHr8GriosX1Zuc4hdEyb6eipQ/OXBZ7Qc6HrnYt9Ivy+uqHsMcRjwoRQLXtwABDJW6dEgpPyDAjFoFSE9AfMe65xRN/7ann9h2NkMlSHqTzLagzgESYjFA3KEPokabdWL8YjevoOpRWNOS735H6sliT+XTbRK9BfU2H4rz8aT/CpECGs17ieCg/5sXnQ0AH04kGAQmGipZxYz0rbtTh3XfSeODs0Qx2KYkJjNqRX5OHio5mb5bcOC+3lygGyxu49UXh/q+cEkKrzi27m3bn2OzFPd9UpriNUbjmfS7lGYJI/aWp4qtiTE8/kR72OU8JpaNsX/+Jz9VWjrTU90v9yY3vQAC914osuMHwfBuTj2ZQAM5trE7V02Qv0eMgbla3pXvcQBT2x6NvXDy4L+U+fqBpj1cuu/fyG5hNbf8L7vlMc5CwddNy4/mt93mkS20EMllIDJUDryfgFwfpN/mg9UjXpt8exOvfXhqUoy2C68MC53Wsqm51wftm2Uc6PxwI+fGx/JcgEQsAAAAAAA=",WL="data:image/webp;base64,UklGRqYEAABXRUJQVlA4IJoEAAAQKACdASrgAOAAPpFIm0olpKMhqVeYkLASCWVu3rvOSCsMm8uC/9/aMP/AF+jEMHTchTMzMzMzMzNIoMNdC9/Q2VKBXcqbIsTK5yGmX89epqylr/Ti9EJmK3iZSfoz8+mGk8ee536OJf2bFO5JVXK44Rclvn1TAlvNkCgFdpFV2JUPVfiW+LLaHAfp1DfV3pjl098DwicexCD59l9gHjNSbWb4IU2UsimBhqkZRgrX7cGvHl4Bd1Dlwoa0dR7BbJHd402qZAPcKUvYceDjDUGiMsnduVyJG3Cfh+cMpMU+gblwkJua0E5I83O1T1aE+tHPqNsuXm5unLL7/lrH1WHVq9zYrBS4sNUZPK3+EneDgocdocgInwF7QvIggxCu/byjgtXbO08AT2wWFIy7so8rZfe3T2afdJz9Mp06bjs4P1EuFDa2v5ZnAAD++uKAArcuC8tmE/9uri36eOsWSs/cHLPl6jytbZSQRBdkSt6V/MItVi0OIaNEpJoK52fSeKXzSeVQdYcj+5Iv5DqISCX7q2R3CskppUNiGwZtlleRu3w2gRmEMSgcKBny4tPKSGcaAmrx57LIsQGt1vGykcIdbYb8+CQt0I
245auGL/LGauX+cGNplDlSqXNbS1BI8AilbTUnA0VAN4ZMoPeQmi7wh2hlRZeQMbULX7GRaPyC8mkGLiP+xng+dx2LKXJ/w+ofT2OkUqMlGIbe0ioGtQwNPx6WuIs3DW6vYPnWwebwNCtg51wNiT8X/rdmu4egc7w8QTNKblNXuSwROTRWGyEkeBdOzrpHJbwlsAFFVuOAnKHR3CcsXML118+6lYJt7x6vXbMsp7zDJqYs6BoMUY6xpO1yV6RuKyirU27KsYAi4iMyG59PoCidehRsTnTMZ7Ncnid4m1CT08B2+/hOnuOIQZtT8G2Fa9niz5BruZmZ48A8pN4dzIlKuyuAa8S5ooL6oKEVp1jQ8IihFnjCHO9FIeGJAnvWjvhQhSYFA2JqKHFWbyKkaymAmNcBfcmClKO2fYlEKw30BQfPSncdPsAiALH+74M9GADkUO9ewZOfBiU6Xjw5Dh3GGyfxCNOuR/h+VbBP9Mbc38yQvrnXZ3dPFaFFrWWyzr1pqsoJVrLddwmVeF/1fOpv5H4tkciWGwkIppj5NR6R6zxx8Qje0c3WJNwE+q42gYR2zVAW9YZMTy7f8fpS0ZQ77cDuFmhRJfJYenc37ypNdV1oNWMPlcYwM0DuU03FDrukkzYe6I2nPorGbWF4CcQMNViaDDMBhi9Hq5fxxdXbV7rn6T//oZnOtoWApZdiPAGfL/tKy88vlSBw7hsgGXDpbw6cniIkZZoMWIIjWjvdJ77GuchDGT44xPovON54fguQn1HYplqFSr8ARO/Z8ELGfJv1SE8eLyuLr/qlnMrEwsXLP/oHlG8gW7OafgKKm0AXVkjES14vs0Y7b27S1MNRCyBNkfOVLwvmQsO17mX+iiY6mWTy5XR8Gz+1T5VTsZIHTUbKX4LKcmL+Y7Fy/K7K1YYJQJAYn0LSDb3NczCNeowFl5txlFqI4lL4B6kwLkAAAAAAA==",KL="/assets/whatsapp-R_XqF565.webp",XL="data:image/webp;base64,UklGRuINAABXRUJQVlA4WAoAAAAgAAAA4AAA4AAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDgg9AsAAJA+AJ0BKuEA4QA+GQyFQiEEKnMcBABhLK3cLZPBf/6UAvkxSfwA28nnX4lfuB/qPmkrr8p+0f7Xf2nM2vFPxH+dflL/eP//9lvQB5gH8F/gH9N/sf6o/3r//977zAfxr+S/4P+kfvB3G/xA9wD+i/1vrAPQA/XL1VP8l/0/7b8D37E/8n/C/v/9An8f/n/+r/PjuAPQA9Vfq//Le37+Mfj70UHsPnCPrR9R/KDkB3iX8O/rv5Hfi5xhWG+YF7K/MP8T/U/3I/vfOB8u3nZ+qveDUAP5R/ff7N+TP+O+k/+G/2P3CezL82/u3+q/vHwC/x7+ff53+y/u1/hv/////uV9ZH7Zexp+r61CwM3fBrJEdDOVBafGG/bXEQc+HDDftriIQQ+OMN+2uIhBEl6/LDOCX3/6OMUaQV/4A7fp+AFpsLcznP5apb1xr/+rFJgEMOWtKtR0PnWXWxZMr//Qf4qUxgniXOvW5/aQmjAY38UQPfVvX34p7BJKTcRFrrjpbSKCO27CnVboQOtljAPgrRbsc91TsbyAyhyiau1Ba30oUMfFsb/1HCU/JwDbhzfXGL3XeUqOms7gUPhVJ8TzFaXwGdyohDPSU3AVRiPPI4Nod1BZDEPYfTWUm4EPYflqux0WSLTIy2h94dmtxD2H5arsdFmCZtQ+8OqwrWoAAP75rIOvNp3fi2bzb8xfuk2djg8ABXggAUkF7zCHPz+FVws7tVcLO7VXCzu1VwtCXatTTtDqta/Dx8U2RZS7hk1fkANVWJXNyiaPR4T9FtuPY8/JG/VeNO087lb7N7arldDwkcsn3w+LaXyRZj52DFn/NyOsofbJy9GzwhOPgspIXwYfKkn5QmocwHoMqzBsYiYLaVzzsC4RrrW4sSxEOkgc4TeG7mEsAzVf2V1iRdjYmozGPROIJ0+6V//zqj3yIJLw8EDOrKMtdArQJQEwp47JEm5zSwbP/pW2gtnPbeObNmuJM+PtbClA3nmZzX/+0GTYJahaNXDrwHtSeNPsLyfn+291lVWHWRO+nFXMvWmeyigTP+j+FLUtddjQOQ0aKKYbs/uctjzia1ShrjOquna1eTnd/8c5GiaBgdBxvtarPw0Gc4UTs+G3P1aspjwMX0mljy7qPRSP5fTKMIvZ3PuC9x64Shm/ZRkxnFm7yZO5EkGHwdcR/JepTfEaOw205WCqcpjfjolz5IkBVBPDsLqQiqv/+O7MtwMKo+n8k3sINWJcoMUS6NzXyLSpWESykbEBmEtxtIGMVYOhXni8n6MPo1gE74vydzuNKqDeIwx+f84eb7VUUG50CA/gfiLYikxru3HqbEdj2YggYlV4xt/PV/A/4pOAooafE/vZrDBaiO0UcpxWmQ4NE2k8SUkAl8P5XT0hQuoa/g1eIujtLgYYOKE7W7vVmYvHB+Q76YHeMV2IECoU71WGU8V//Fe3Xa3/60DfQvpjHxC46G+rr7piBDEyLK4npTTdNFUpbclcAJmKDALldNl7n+rqBM/yLXl4wGkIIBbapumFsEoQYLk1iiszdnBh9dk4PW9P/9aMsMnF1A0D44k/bjfFjN12adexFoLpuYW1GgTYe189iTn9hJMu/cFS42VnighYc6wFlKr/3lJgBrHvIERyTDiTx4khV6+T4fpLvvoHFqa+zO5X378G0p3C0XV/C7mdatbZYM3WeezsvGWWnDk5lnyWPJoo2cUjhgp+G2LS8MQWZVUK78OfuDMAmOKIun5fMIfcil3co+vw5idIx4JazEQHE8g/GnbIKsfnV6kRzrDxwWeIZRy9VYytpz8237uiqhw+GQFvMB2XvrpVHNBthEgQfT5VlyFmvM9rDXrwGlb/1xPMi1vCmwsRztYh8QgBpdoT2pgSnSM8EVhwYdhdFIiVi4r9yaWJTrhfxDnzbwdHs38msVPl8T9nDbTD1By8AUeytSeDjSnF0h2r4WKOGCcXG5Z+aagEnwhTLdQ4mOiVdrI+ni5YI0kb5GdHhNybFL1CpeKELoYhk++Z1Jv5niD+gyP8+5QXQT796+j0XLpj0kTtBaAn0NvNH7q9eWlm3PTZlnjjPzF43Vve5BWc1pbvs2GIn+ViKsoUGwwmGHVi8C/uOvcQB4X0Nbw/lrpqTKApZ7kXvd6kvzX9VAl9AlqCL0SSqw7glEDEMjUUN/Ka/TnSZNZyPAVNSZnkfR1iXhZ1lbMHWHEZWC9kHVIy50vqpVB77cYc0xVlsCzMU3ZcJmB9Qb9OzfzY2JfaU+nW7JoVY1jn8HPCCj7IATBdS9j0qQX1v4ZIK1pZxI/EZ7i5lHtquRq73es3EPNM1kWUiAPY9m1qZnLkE2GZOYk20AUZkz7d3EV3WJl0/QfuQRkxC2cMduy/jL9YfFIIv8WKWWwWxOiOhtvUoj9BP4Z2rLV+zUBMjelcwtu0Bf3FL5cfkmt+PniJLcrN/hy36k8A/Bu+XKW5gngC7LFa1ed8qsq9GiyR/hs9pxAbiCfvP14HdRFebemiJfllcEWID/n+dpG46+lw+lYbMRpT6kZRndXudVDKUml22PDMiEs7tQkc6H0G1ua4IQ0YnlgzltvmTsADjR17BRLGHgHhIYLQ6b
245kHoYmKkXBbSKlYR+0u80T2meGsremGHvDvb29VP7zPxLuIDwXSefw+t9XYUXsq2VZoJRG8vXhlncbAUEuJh+3KzYsC094cTdX2+r62GVNmaWXOc9Qv/FEmrApPj55HG4rIiiqLKmc1nQbN9pXer+taS7rS9ctnF+lh5UuNyWfN6y+cVW+PyJ9LGtO1PGri6/5gbkGDQ5WaNyykWvgP8ETTzaWk4hgJSjbF1u3OPCU23n4EVhaq5ng7tjHZjzN9kjh6p89KL1VewlCKVEkVmU6rBZdHrW5QfxfGtFXVsKKbaK67vVyolEnzpXxoUJGHnsfuLUr+AvI/12u+BarnHtEOnJ12bn6kLHgMN3fWB57ND1RKDeITrKRKXPhyAEwCYTo85eY4aTIAI4Gz55+0GIB23/DTCyeOa0fyFJ3mqHcrtY7QoL0coaFwrq5o0CEU1TA2wDYHb8Dpb7e2BsrY7NzXGcqOe6bYCC6SJcMChBSRZcynF2VEi1spFbAqZkLk9pHgq0QwD6OtRbtvmDYX1jPzpAcQisBZnOW6b+AGE55Dy5cNpMN9lHE7sDwNQ03aZ6cQeQ8BtC60F1rBjM+yHUipM6daOTxyes9B8ftnA292bnoPzi+Xqbir/f1+3WjBSKEOdqrMYF27RyfvesEVHyWzE6hZI2318LnNMAvvfshWgugzboU+LjNgPSthe5Wrcq0nZ51lpvxhqwgKQmnBuIFF18d1eerZN2Piwjqny45e4NX8GQuYUAJjR25cvyp3LD9VGXG/faxNp3pQYxAF5v1Tov4YzENUVx8u43xDsARc5FPcHpL1eBz5gDNmezNbu4+7QzRYnmk9aRGpv8iUt7kDmgdwGHMDYYzopDYkJ1O/THaBGHlNbN6+kAEUZj43rmwAQiaxNGlNyFmfxld+wSqotr0S40cIBLjY50J0TlM+h99LVkjJCi3OkgmTI8GpmOM3buRfqk6JRYwRrrf76Z30DQZvdOSQ/BTznja+MlRO2GOFm/z9HKfL+p/YDI1d7Ma1R5Aq/+gKMyT6N8GVoErqKk9h14J+dSt3quXg0Y+X8E42pk5cGHr3gx6+e/5mg+svBtjJtDkSj2kLqzi2DKP1o9UAi6sac/5GQ2Jyvdk3b99TDiJNMe92nYCfqxfFb8z30QVtOjcDId96WsmF6KY31WA+g/oPcezG5tsJhIyPwxpjuVsz8nx0eowVTjgXao+R51tMSfDpiop6wjFtsuuGHGx0yIkS3DOfWULL7tlu6tbmDo3EMwtZEd4tr/LNKc6mSeGKYdubMXhH9wyqfOtU8vfiBOia7ZCdxM5rG7e9sR0yGHIUvQVi0GXrZCTaxuen5fkWEfWGve7aEoOclubi7//nXq9I+M+mPn0ycgNv0f//Vs1F8g/vn2yHkI8ZYzTXEKf2r3UiJy6vaoMwtfuX3ty+9n5JId35fe3L73CpvwABj0Os+qg4Cw7T94PUy2ijRSgAAAAAAA==",QL="data:image/webp;base64,UklGRogHAABXRUJQVlA4IHwHAABwKwCdASqiAKIAPo08mEelI6KhMxg4qKARiWJu3V3OQV9A10ju/2pdE1wD4n/mfVAo07AZwHmC/qb0h/MB+xnrVfjN7gP7b6gH916g70APLn9lP90MpC8ndl9kf/HsUE58cdqsZpHkhfWJAigqcNUYUf/4Zlgfc1Ut3RbY5oKwWnksmZyD+vzra56PkhPhDI3gPCR9lECZkdsB5Wm86aZnOyFFNEh/c0bFzBeU4f0dU9zpxp0+KR6ADGnz5L3aKjtcY5nY0y+WBpB0E/AUuZybL5Wf9KAu7oEaCM13WHVbL3fISSAW7fQmnZCXy//BO+mLtLPPRVjGaD9mMjTrd4OfTL0CCKX5zJ2N4IsM3+Jp8KcDKRiOhJpTVwC/IzthwbpdNP1hKNWae5yjUUKKUAKoerc2LmhuDZNUoNVz2yj9co/TLiVkUl8QQUSMMbgGyrfcBhZT5a0tfL1GEaUaXbDJ1fAIYAD++/YLCAVQn49250ujEQVkJkNkMakFkT6k34x5O53ZD2Z98zVxoHeyBBilA7kFFcW7GiChrKP7CH4U0lFm76OBveUCWlQzDqMu5dfvxE7K3orSK+E7PGO9XNnAAfPfpLcWfP9FKEnaBIbAgPQ3zcVffOSyNR524T2VUsmRTy3HaI9mOu4BlAKlJb11R3+8fJmudHYzWtabN7d4HgH+MHSkK8eW4ysCPwo5QnsuN1URBmnGuZqDIfR+frt2pk6FH47vU/qcqITMP6PtWSBhDK9du2BK5rw9gutfqlkstESYZipGuHi7ngF+O0XC63NBRRsrrKQce/KkrkXB7tKQB68rKMDJ7YtCZFoSm7WonNSl9+MXBXJeUrGD2nGgRqB7Yibf2b0XlvX1FhpL9r7UKv+XDFWHari+OrUZUk+/zjO/pSEzrpZSiXqfzpZyZHXtEGIl6C3pfMeoj/0Ued9NSNq75xpjAnK2BYWJm80e6YXnLiKYvTSZg4TmXoKfxgeNP9UuWR4Sp2tRz7y5HzY9Cnn3B85WpQ0BFtf6z9hMFWPP174GSjAzCZ3fdsV71/UbSaVRHn/BJTeYUtklKcyJqseo64+LdUmiPsl9xiOXmGPIgypbNFcis3LOKuuhB1KFw3IYSwtJFz2k5h7Juq56kTA7mS6LkaAUI/xkrWvdU5g3It3Lqb9LuA4+iwjbQlSoRsnt7LVNvR3zGlpgN1O9kuFGDjrVkiKjxj/NT78LJAZl/rKdDUVnyZkd7mmIa3mXvlgH2stSYdq6b6WC5A2MB81FkXz++7YL/QYFIhLqK7gcFadpMiJuZ00tuv5csYU6dNESXvksdoaiuKUWoBZtAhyy50xcZBpToyB7C8eFFfj/6GawyVoDLf7K7E3BaRVvLoxa1HLhgCi8Bgrk9tp1aen0ZhPTPWEo763pQ6sSVQEUuKyEL+1GuZvynHDMXp0GFye/MK3/558YDVT+rmgbdUr7Lcz1gETiOJApnCae5RcMKbEuAN50yvz7zJh/P869cBprtIvHaexIFAf0qzvOs8Pgt0rEhdurUPzctw7FrNdApXB58py6bgkCEQ6swqznER0PY3sAOiUdXRDrdhcs4PmK0dVtFLDD2S4s7QEeyNPwFFrIoLdn9SeTcao+e79WhDTMU0j/gsQ7PjM6LvAoDQUmKyV4scYT6xudCIoHHWNMdLSWazha+pTHSPGDZKZMRiNCKK9KkRFr6q/ob11wy3xCB9oBJ36HwjM0KaYivU4JG7h7+Ehg32vJBdBuSvYZw/eBMsXLiuSg/NApwdew75JgapHzKxdNmij80kSuJ++39P5507oH3GtyaNAl9/BmiKy7S7494/yRC0G+UTbiHq39fL6Fx5zulsxJFGS01R/nH6HHTwqJok7gvvzb11WfVCBp/5CYe25Cst+4wWB4xj1u27SqualJOmCVHOz8te252tMpzai2CUzLsWJzh+rTRZCFBShykEjjgKG8VKJxt23eP/MPBo0fzwc+XqEutfvY0AsmGT4itTmYzyvVS7E4NLHfGBZo1g7msg7oGhR/bRQQSJ9a5S/M1zmWyZYFP1tJ9bQSTq9sW/9XlNTdXtKJdlhPvWRpqw+fZIr9s0Bu2zUfcm9HBwRNq6Vxr/lvu74TTtUJfanz/mX/HbGAZZW2vuUBshg8N9Ld7Cp0rN0Km/ti2gY57RyRJ+x92aWxrLIeRDXllWKp2e9k/DUKwO2wzp6s/rqBun2AzyJ4Z1Owv+kwuvFKEA7x4XlCGPs9pZLXDJD2OFR3EmtHdfGSeWNMsepiOLuPw2IIVqW05u7h+AbsxGqepPjST6MVvYIQsFfEJ9hamuyeXocMh2nyyUAtc+kbRJgpAEvLyCbhyL+JHDTzW1Th2vXgu2Xys2jWmgtlrjLX/JWZCORK+Ql34xN23zFzBYkM8fN/ZP/TBi9jyAvyOVdruev4Q1o1EEsYrj1j0xpZq1uoYvd5albIooz8HhfHiK55KxFaUnylm9+6/Hl9s/L7St2Dm+nkcjy5PjoZcrkqJNr9u2DFZHvUZreksemfIrsTpwBW/kIh86Hu/WUMAAAAAAAAAA==",ZL="data:image/webp;base64,UklGRtIEAABXRUJQVlA4WAoAAAAgAAAA4AAA4AAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl
245kZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDgg5AIAAHAgAJ0BKuEA4QA+GQyFQaEEts0MBABhLO3fC/e+9/oVjyalu3knjv6x+PP5M8kH2A+cNMB/LfyA+SH85/kv5K9dV9IHAA/gH8n/vH9g93T+j/0/pIOAa/gH9H9Hr9QOsrKSAEwPdWs88sg2/f8L6rmtK3jj0/KtU3UlEA3PbeNUm6kogG57bxqk3UkuoEzjC549L+5i+X/8VNldHwTkWecC1pnndXkOCAcSFaPx8daQ4IB1LhFK3jnEWyTCzePjrKXgbpl3IvP8dBs+KzncC2hDL4bDp1XbNH9elzxc2iPCxzlrvOgUoWDeLhn3rPt6R8fHWkOCAb1I+PjrSHBXjPvOghbhn3nQKULBugAA/v/zJvt+Vr/1+O/+tP//Dm+M977xK/2vwhryp2cyv9A9pbAVMGge0tgJMqURYB8i4/8Ty26OOjiQ2asMHEfPu51v+dByN2lTnOWAAlotMJGhadxn9jPgWCNalnI9iyySkE2bmTuhMY7flEEtn0rb1O43zjqJ9ltrAafD2ujYHvL3NyBJvD1+t2N68AFEQb13V89dKC2pyPwvtt+zXUfpAXtGU93tgoxxgy5m3oxWSDJX+kzY+m+ldYyq9KcrIFYAxsosrAI4TgfGCARwnA+JcXwElAP2UT5nKgmK6peCWls5tYaSTqTVs7PzcLni9hglsQMUsEc+jkycZqEAZHpz//vX/S/lyn7/eRDErfTggHI5DkdOH+TZcmy+zf1dO9nayk3DP3k4GGpEI0a+KQzef+tPqSf+ceR9+gen/pd79/0B9/wpW8l51ETadfpwYf+u99HUp5GbQwHTd/8X/mjeFk6AOkoXThAAhmf9Cjti3NWhO1T1F5HNe1/k8MVuGcK7ju1lBpA5NNgJxd/Dt1Uvc1nf/b7umF8deN0l/rQcVTJkiNxgYKGC2JkqvzYa11OTA7aaV+++cCIdt2H6nMSAQdIOHXjdopHoA5zdpdbVxGiFEPieiAAA",JL="/assets/smtp-KOTXbZrP.webp",$L="/assets/mailgun-BbAtKZiU.webp",eD="data:image/webp;base64,UklGRkgPAABXRUJQVlA4WAoAAAAgAAAA4AAA4AAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDggWg0AAHBBAJ0BKuEA4QA+GQyFQiEEKqshBABhLO3fj5M5HOZWHzP8YNcw6r+Mv5S9Dxpl34/a7p3ycemvqz9U/MH+59qDzAP0O/q/5J/zn//94D+Af3f+wewD+Vfyr/Jf1D2Vf5X7EfQA/nX9j6xn0AP5b/SvVf/yH+7/5f7//RD+sv/M/v3wF/yT+i/6386+MA7BX+cdn38+/JnxG/Lfzv8hf3f0iv4h9Pvp39Z/ab+0ftpzo+oD1Avw7+Jf1T8aP3i/znH+AA/L/5b/ev7N+1P+D9D3+A9Bvq17AH8v/n3+W/Lvmb/IvYA/mP9q/1H9j91j+J/6n+Y/KT2v/n/99/5n+P+AT+Q/0T/U/3X90v7x///rD9jvotfst//w7B6mLXdDTPhmLXdDTPhmLXdDTPhmLXdDTPhmLXdDTPhmLXc7jA///TSfvNcOs9yuq4aXwj/WJ7HX+cSt0jxkBgCslDLtq3lm/0INQQo3tiAZkB15TzdBplcLPwRRlillUTe+ja3yQMYmFX8HQCTJXBgmRsGxib2NnjOkglh2zm727pQt8f/QBmdHrbkN4mMmyFXzQsH+ymxQSc5T4Iq8otGuDyYWbsM3CO4j/t/4ISD135j/rq7lWn/TrBsdwARQ7Phk8z/NekYKYNeRupWm3c3EvocgrquGmfDMWu6GmfDMWu6GmfDMWu6GmfDMWu6GmfDMWu6GmfDMUgAA/v/5k2AAAAAABtS+Q22QIifHyl6sWFlWgjSzCMvh3DANFiXv9LAI09l2GM92SAR5ymVEmAkMjlLUm1guOcyxd42DeA8qLitrDmy5LnOiMqQqhrJHjs5qTTCx/TCcUFMTUVMbT/0HZ8e14pq9eP8zGK9F4c+i039xvbZ3OZh2Sz/krPRCP8Bjam7VisURXndm0WO5vJuUlxZYTTDC4cZxbvQPKlaII13hbRinn3qL3Uw5fJtGYxVSXitkzcqqGmAnC41uTed/SVRVzVQgJzHKYDXICujLZmgGbStipxGAEG384OLSrAKtFEkSD1y6cc4Lab/R/oyIGE622y3L1qySKeS8O/7D6r3EwA61oFPWNUcSloZPyDk4hVF79Mpqbi12c2ZWmB+Jyalewnha3snGNzLxiIjJxdQE5ChsKR99tX0uHKI3Pfz6LhoFB8zUYbIvw52PErQH6S3PCtysDtDyrHonvEMld6WOlTOkMZ7lz+xOfzgSvwz/UDYzl8vbDirGukUxM9cg1JnJjg9Z+MomUjd74lvcj3WBUiZdbm8HgnnNBjrHHbnrEwAd++PLZc8akeTo7PZVjlWqzk1WIEhov3N6yV7L4O6Obl8DeBfCoRIBfZnkD+a38eOh4GfeLKd+6TvuBZiihzw3wCrk/GDG2Blw0VIa7bv8Ep36YxHxdA//wQq3kdO1NDeOtnHVVMJKGOWdGHBlpKoIhRopZBO7uan3MlOUa7bCT0tB2FVQR/00hEbahI/9oMYdrDl5mG0SW9Jbl47K9DSSZb6K2Vd4G6Lv0ANHRH4MfDKM5pdgW2A4Td+8fshdGsfUlwDAN9c+Ku8wH1Etjz7we5IKYyFkb/B7rJUaAnrz9IhQ/Ufqs5apfsgkJX1vlGMIOJrkRedVYz9S4HvlIUxqER6JPAQA9JQYS0wHq4cnmPrQGGc8OAZtNfsdS+eou13ThEodukZ+u3AZKs3mzyCuRIaW1ZgsT+HOJAz58zeyMhAX7MHe4KGsp0r/l9EJv2zYH1HEvPs+S84vpIEJkhhx+wRFn6e1x3vTOosqamCKGU8EMSabcMNr2O9WD9DKn60sfv7S8ndKyYDDj1UmOTkkrt/B7R7FgfcYo2TOFSFloAM8UZ/TlPw38r0VzEP/+vxSE62Mi3iJKjIsP/nbwVz6lra26ZqjULmjJ4GxyryUgtFPhtjJA+ecTDa9l38wNd8YE49ayNlv/OkD57vitkI+8gzeuadwkVwuJa5PN/8qRRcGwHLOQkKHTDhwpw3Uy4rA8HQAGFNPEFzRI+uNo4jWa7JgYB9iJYbo5PlPGGoIQV907qtfHBN7NP//s1nXVD0DryEFjHMtS+Y+StD6sCi8HN6vq8M/eSdsEmPAXDo/5NkbSkQqldeo2fE51asSOPG9mVVns5vy9z4OJ+sAsyQkQCaPu9t+G58Q9A1CVQDdz7jrg5BG45AG+wSvf0LtwZ6VMcKFXBWHWRuKfmHXwqbgykQ6t1pBMlZqz1wGaMUWeZodfbnti4ndNDGkSTFn5dRcCwGjUNXMoNtGp0ssIs4+FYe6lC0ak0j6Zfi1ubYai5ZroIzfU9g+QYcX7YFby/m7jSx1Xq/l64Ohf//tfkQrMSqc7kpWD7jAJJ/49llSijf2BwoZwZ9Ue4tsmqkpTLcke3Pif3FpkM+h/Dwiyom+G/1tcq1QJix4hJjQwWselJYeeoYOV58kYHfRiuNo04CAr0LR3KxWNKQz4Y+R0ECjuwX/3K+DK46ALF5Xoo3KXDRuP1Hn/eAgaH9vdkr63PmlOocr3/UUWaV0BXY9P3Futo3Wq4WUIiSyh/24Dkh5z5M4mLDt/0dDfaSOZSvf83rjn3T8NTbvF0bA5df6v3rjuMyUd7sTA9vTKpNtpIHzxoRx4MMjnpkCqfergzXtOoCxkaewjZPMLXApSUAJhsbf8/Gg4UBAA7fJWzvtG+hcG+VvRG6f3YkETGV3oeI7z/ROszaDf/7yrNijG8TRIbWeXVr+fUHVMwQe0M59wUy7n4K6OsvriZgOLHtaRQ85l48LR3b6uVzRWgOnBJV6aUhEG24H1v1ifLZqavV3q5UmvlpmMM2pqY1R4DOvncPnQ8EPE/N8h/GQbo33Z9t+OVaR+LO7wSIaWAw8sdQLq0gfjy9aS3/6zck/kRByKWE7urteybsKuLCZx1AKsQQPo3XflMhdIi/Ac4NUIQ0qz6SUDLtiB4+QerwfljNnOhBWn7OmzhISmHyXyKa6oi0gpd6jy91SERk/Ew8KxUxGlKJG/R0kAQ08aCdisXzD3L8222eOD0C/BvXn88M3n1SI1+4kEzNvi3t3fqJpxtW/udVMcpvjLz8WT0iNuK9W7y3/H25GL6Jn5LVHIu1Up7B4Ui8sJAt3mf9dmyssD/o4Q+LvZfo+sXO9ppPRQkf0uLTDpg3c7zX+ivO9i2mghzuD9O7dyLwCJmjcQAbCW86QLjnQNrpZ5pC1agEEJo1+1LW6HClIVyKeQDpy4IaztTS0874ELb9cIHOwXoccI4SrOYc8wAFSk10FqvASUIs1A6fB5cZfQq20bOoshPq6HUgKfat2OVhX//ZCREsaIC2QJMHUcNLGOWMc//sx4ihievsRwd1AJqchgWAE1qxa
245BU2kzTm1FYBUE9ADuD5OZg+GJUeiv108ezm5v/gHQk06/1EakUCkW2am5pDXlbWmyF2Q4q0M4y+TG39FH8yGp9usbhoN6HJg8njsgL7jQRv+0gTV9R54kiB6cED2UXu+DP9o90fC4J5/kHmEe2/pMPvrl/zSWksBERbv4D0MKLLRY+HEPsyNjnkJTt9V+AvlUsYgauLmQv08iFQGynBX6+RDLh31dCE8nFEaK3FO4ceBP99HyU/pWOpjrcqLxGijk2qB1b/CmRprUL1qLryXhP7m07gUZEfUtve4N7C0T+/vc+vNe0XPBzS8hceggZLNyPQTypmlbIf8uaGCIeSxkP3//bQjb+qDwouUb/P/wrT/7RYz79fdSzMFWTswXWHDb4Vw56pqgytQt7dtir0n/U4ZJEIIt8BgGqB3YygeLFLWTbKUDlh7J/nEtbMdRlaE6UlnjJwb24IhU/ygANkdroH7vH9gwOVfBm0/vpxX+hm6+pg/OWn/TTZxv4KXPDOypvV/1ZPk+MgY3PeEQcDdQY4mRFbb1Pz6pbHp2f3WXAaGIbGyjw4HMhb2uMxNpfb3zooI0V/4naLuFO6AHr4rRruQqhFjTG+lcDKunIACfjihrTY9/RXqwoD5PPIUlxegZJ8f/CjHicwqHb15rS5WNIzba/IS5Z60g2rN78nVyua8lWUZopUBdwFWv3LOXZ6/pm1dlZ0+e7UoxhEWCE5iOEU7x2zbMnpI+iEKnxsoT2YbJ3OPeLhBJkO4e6g2vnRwq744qWpMZo//tNKJTbFAXm3IUiSNM+shl8oq1CbmkwoytFnf/jSdELDhAi1tOpAVcN/rSwTthe/MBd4qbjDvYrxfa33A6hyLgm3YL3XOP3xAOSv6XbD9deO/PwnMcQOyR4kG3/c6jfzuQIMq8kcv2DbW475mfs12dZE0TRwcCfqZOPngePuC6XyDAeC/TuRnPc1xa2LTxylkZ0pKpsW0UK8pKNTQ8y04mLTTqaSo90uEB4CPj8GSzeBZy/nUBFiXfWc8E/0dB4VTR/5suW82v8cqLTA7uBmg/P4aRlAcHuJ3jEFUXldYTEDxP9JxU2DZVHJIP3ZBG3nmTehkqW2a5uKZNsjwYSiZOPf/LaMCofJF6Pih9yCzJqOm/RvjmAgQraiNbGiwU6jfBP232nGUTMfXS2iA3bgAZN5vMBo882U9yfZeEFXYo+BKPFyLzwfQAAA=",tD="data:image/webp;base64,UklGRo4GAABXRUJQVlA4IIIGAACwKgCdASrhAOEAPpFInkslpKKhpdZIULASCWNu4XX78CiSHJ9w/qv7j8vbxv4g5Po83YV/W9dH9s9Qv6H9gD9UekL5gP3L9YL0c/5/1AP8J/pOtG9CLpXP3Y9KSLaOheyeVoEDZTCvoeaEmazbUUqjNtRSqM21FKozbUxYADoIVJ+Gb9TAR/MX+PgCe3bj/ITPKoBkWhlsyE2kPVgIybnedmzG3B+eTQBKVSPt+VQclANKAOuj0NyXuT88bxmKseySjHA0n/OpzakYcb1IBYM1SgGBNqtf3IfPgUiD25H4jnLrduepK6ZbNtPWr7Hk6wn8UJrTzN2TPIQsGapPy9f+7vZgsCS+2IeJXxBew7svz4NxJKAGvvMVB2MVvKKYEdyh8cSa9QSkXZmcd862opTV7E10+aRvtmWhXDrZ8DNURNn4E5jUUqjNtRSqM21FKozbUUqjNtRSqM21FKougAD++xD//j5tdtnk//7Af9Af9AfbkAAGyHBBd4ROCSpNwbEiLx1vh1gYa8q8k2/iOPxdpp/HV9VGopj9TDrjOAEob9m4nZrtb9HmuIyBDvig4d/lYEOU/CrFtVJYO4lVL+4ZQwa2YVKo9qnfjclQ3hkT3uJjx18XPVK7tEJze/ccjM9lP5czDS8kQJSfFXkn/qWsEogXVOYdyjwTy4iena+N0Vf+4mrJ//0ViA0ay6Fhie9lx3aTy5w5ojZaEZNAkmgfYNHwB2DUw5kIvFABXzU+TTlbV+MjltFgXs1M99CYN/59TDPHt9ySp5WFRlKgeZPvXHYZSiKgOAL+woBHAt5MttQitlCOPl9LfsL3s2RouUaCV19MNx/z7ZlmxSX9M5ZOtQRzUszeuoFUKcBbXMrQSJy8HXAbQOCH5WN2ePew16KBtEG3YKKdZV9wjFjQZsC5CIyon9HJMxBZBHPs/LPszEbgNgeg1p3gUJhMqA3bTcRKRO5oJIDxFVgvbJdi+CeJM7w6xAAFWi6ewvKBm8KmZhN/W8qKdjnr3q1pbUUuhjX7HJqjbIuBswKRKUw0bY4LojS8GRfubbKx/xlWD9BMObF5/C87YSFIvrkoTV5TdqbDzkOUQGJ/LdsBl9OZl03493qc9vI7pI18jPOmHKPovT6Oo0ixR2eDMAlY0jxtHtmnjI3jVVlm8k1C2nh/NDCMFkz7x4dMdao9kFle+361gWe+M17N1Jl3FGCNu83hA+LksIz43MHXOXRp7AgOIODa2xxl7IcMuXsoG01bOtavakWgGww9bnFgAuoDn7myhMBZmfvlKPaOv6AgcR7BaBR7jZjSqXdiPxOs3Fj9z7jOQIB3mk5s3bI+xjtlC8MFWIMj7LpbQcjypkDnmDBjepF6i451eBW+YD/ZJMyOSrJ6lZnEf6jyo/RLenWLaEZtg2NZMxf3D50ko+JSD5ovi24ztImS0tM6m6L++usqN7ivmzBjFDaZyg27+K7mvoDFz4qTR5w3Frqxe7F2o6u8C6tOa2fJB6RHaqcAQFnrYjun1ORf1DnuEnBjqrFX+s2rHhKUPyLhzMEVAjkyEbvQdYaFkDJ+PieY/EfUIuy20B23nrxDPscwFuDzOn3AqCDTrrjhM+Qel+xzdeko0LbkEyPQaaesCZ0b52d/9AuIIFaTFtoLuYr0O7br2Igp9O/sJ4eqKW6y6ylccz+hjDuTz7cmP5KoGnm9XcN03puPcYC+nDWH4Qz1mMOlyWrnU7cUDhbx3zztMstIitnRnagv16kFvCKO3cEjcDOUAhaZ/GxUMOqybjJ94G0gKcbozeVlRD05T5FK4tUUffx/nPEjEBVDdXPO1KTX1z52Fard98In5rpVhzsLW7Oug4Mvvwulx+3gV/eVIBQCHII+AYYqOj/ITDxMpD7QSMQX4cDETtoksmUxvbs/CrOjsI9aIXcaL6/4rOw2HnZDID9zRm7+P7vp93DZx00RRc4eFJ8mItBK6Rr78cn103rbEFh9JVyN+tPSIuanSz706wFR6qJTIP5MeaGDflN26SLd3fMKi5ZHOnVnqtR5TjzuYhCmAiVItq56nUr/gC7qsXgAEorbXvMnL1uNdJf7OihYVachj2/6MuNad3JY6HyqYLLdidZIJwHgVQxzG/OyARJsltPJfDCzhuAO36uD6u6/0NoyqN11ShQcpFUThw+EUIESStdG9mNpOsJOT+6uSEaH6BJgcgdQvguNUjfEEhw7g8oAAAAAAAAA",sD="/assets/zoho-pG2EtvCH.webp",aD="/assets/salesforce-DolF1S8p.webp",nD="data:image/webp;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAk1BMVEXr8hIAAADw9xLx+BLZ3xG9ww4aGgLh6BHt9RIzNQTq8RI2OASZngzm7RKXmwyanwzT2RCHiwrFyw/c4xG4vQ6OkguorQ3N0xCDhwpucQh5fQlNTwZXWgessQ0tLwRjZggjJAM/QQUJCQApKgN3ewkUFAFhZAdSVAZHSQWhpgyyuA4VFQEbHAI7PQViZQhydQklJgMSuwyFAAAMaElEQVR4nO2daXuiPBSG9QRLaktFEbdqXdpatc7b+f+/7nWFLOcEFBsYr9wf5sNcVnmEJM9ZEms1h8PhcDgcDofD4XA4HA6Hw+FwOBwOx93BBcq+ltvCOTDGuO+FO/r9/b+RX4OyL+tG7MSB19nEw/Hq7aGesH37M7kPiUGntXyvozyzsi/uFsAIV7endR8Ku/eusOZv710hG967Qtjcu0Iefd+5whos717h5N4Vcu/hzhXW+JhQmO1pmv+GQYf1tQpZ663/L9xnHl6pkPuzer0d/AP+HFbXKYR4/6p5p/q3EV6uUsijxfF1ceVHI/euUsiSsGTsVf1JZY9XKBSH73tpTyrP992y+BqFP8JLF71y7iJEk1wjhPcvV8g78osHZQxGCGf1ONcrm0+X38Op8upp07pE6OyD20EtxwezwaUKoaG9fOxblsgax7DoI8d3qz5y2Qoxq7eyK5ElX/I0yP7g4O0yhXh6549NieJT9JUtkf0gF2xQ2MRtkEWJ0BEj9+zHB70ntEJGxZSvtiRCKGfQ/kRZy1WwuERhMCcU1sd2ZlQezZQPnoUZpoP9d4FCRsVbO5Y3V4PAfX2UfGYEclgug1ToY/PSmZENd4OlQBcNs0Q/v0JGxCJHGr//mLI2/tEbo0SmL3CUQv/TILD7+x6c9agPX5ueHySXQSikvsEDFipyECKz4okXwwOE5DJwhXRuLut
245LvBEBkZI40DYFAF/5FOIe9vQVWhAIhs/f8UP7cH3+QBWSeasdAxsCdcsvMyQdnB4kogpRf3fkw8Y6gTpoiSXpqzSv+YIoNNzCqQ03YxojZ74oidociSlkauCb8GojyMfDPJVHwqRqjymikMh37AVaMaSwIboqFIkhMWCUlBuikCzFzSM7QQUELya/cWaGm1Sm9GXoCsmJbGYvY8p8k+NIQPObXLl+5B5qa+aRBfVU/AaceSPa1SSg9lGZiTWFVM3/u2M3W8qhT69ZCT1EotI+pN9DNOlYX3Stp4M571BVzxRkPVfukaqQ8vSl9L8Bb7xmSdRNKveluVhRyInAd11SzQJqG5MH3zPSljCpFqEqJIpwcXl1Jwh6GR5OM6lyLkNWyCP03dql1g4heKa71vYsFYk8EmM/WSGgBaqPsoujLIiNGr8UKwKi7ZQUcg/zEtMKVLiZNzAtjyvZjIA4XUoKVcNzYGm/3oTAwfswSJRNKo8IhWjUtMpREbECZyEZ89Tr274oEYSFVFQIiIl4q4rA2l5jn+zPqy9Ekyqm3ASFWFz211I4kRPODDZHSBaLT6OoUE8yb2267VwA7/6hJIo+PA0fUoWA3ELLbjsXwCe4dRbbEOEZUcj0qCmjSFAWELQIm5N4LyFPkShEqovmEkGZQERYgLRbZK4p5JrDtZHbvhYOEb6J5Oe0eqfu7KxQD3xt5LYLsFseUQswPaYZU1vTOulozpVXtqstsHbIAmAWYHxIM7JE/uYoBNTAd1SpdZAAzwKsIsZY+kj2j0qaSpJxeIkZ5cCi5i+JyABYV4+Q3wet9Oa+Ha+MteTXXOC2OXBvMrVRFcYBvlEHmET7NNHI//ua14zu5IW95T7kKnGXHzR7eGfpnkV4kKIU3Z7yNczs5a3Hp4hyWebaCQHZOHL0ANyXNg2953HbnEH4IgyBx3KnXlaL0ar18jgKQUqhzzI7j3bymv1YNoenp6E80ELAqX1LyV1khRPAgs5A9/edspeXfSFAvYOn4SZnwc1uG1iz8YGO6035DoGDlAVYrE8mVc5dGNz2btkLNkOq7hVXwabvbM7HMeH9sHr2z9+5lHrDKh3Hv2U86tE5hJ1HKKiQF0J4G78zWfe6XhPO/ylVfJ+JyjHjYSujSvJVTGHQKEDHAyaIhB3CrCBOpKjb3q0L/ZfMAkl9Xsi35avd0zzGIVBTndBGirhtgGYnppIGEm9+EYWmDfU5GfnEA+glq73mtgH8xoA2RDIPhbJyWmxzBU99VGL6eLzJXm0nrzvKK29PoSWfPWd/QCZ4mTp9PH6EvCIwfzPM1fNxK4X4nqUL2WLXkHYunKf7Qzj0X552D5l++QrrY+St03F48KPHcMjQevlbCnN1l2SDOasgsZhjD2C37F1+944UMqZ5Wtny8IpchOhKV5fMLCqNIsa0yD1ctQUriYzEomttQqE8xtXj8GsdcsY6SQ4cS/ICsgvjGoo9pVcpXPY8frAy6eYQrMHX1BB8CcVmGuPmB4yH4cRP7Ge6y3mKvfst/ES94HpInoiA8/ix8UV3nYYP+HYeaie7TYXk0SQ6T4Ouz2WfDUmG+we/ikven2LhFVGYe777M+gEoI41YY8WFYhDSJ+zlJNZIeedazJYvMb9GtM/RtxHSDYYchbG4/eH6/lcBQUE7qaKrG7Sz3ErbCLydgKFyOtBiOEOZwyKg5XxyCtAVERgrRb9NerbrQvY3dsjbTQdJeVQ1uyv40H7ueGLf3eTTMmV0C2I2+HGZ2QED31xH+Z5ugP/5Ry3b0d0+G8TagfE06gRMIMfBE8M8s7rPe9Jod/Iq4BG1HrP2x2jvH1BQrTS36f5vKmmhrexX3qyU1/y5y8hNfQSuLwH6NSKAUj5+6HFS9YoL4iLr7XPsuTtkTK421MJH/e4216z1LS8cGjebDqJ6JlFBORV/NgwRJuHp0mpB9KyYyQ+G3YjyDkvKM2ii+NfIVuBE1YbzQ/ZY78j8H3U8PPKU4uC54oEvWvrqLGR5+H/FaA7ypo4lT9QhtvTqSUh/e9lr9HWrdK4U9rScdkHaycinHaEpM2zoxoD1kXOxBz2S7uPF8DUHq7VqW6SVikOM+v5fBuZH6/yGvU6xzmPmFiAxXH9Y320j7ESNscAaHfm9TyCU5NzMjgQzusID3FUYY2y2z7Q0BWejyaDCHf1b8/lWzkC8LRQa5xca6pwnLTTBsSWysd1Nc+k55Fe0ExTmanChySvwtFzUvY8bcq1cijc1wvSw/QyhWAj3VHIOVk1eG1U7kRI7AQyIVcrKJwKt8eQcl5WbHnEQuUPYcYQFErJMbX9UmQaVkgj9hsBUiJTDImlxBt94s2On8poRGtUA3HSFxXKPT7k4WUHRtWwOWh5YyvlokWFWznDybqmlOV3uwLLI37+mLypQErcKDVN1tGcgkRMNKxYAy8+PMrJdknhh3JXADepCe+tUu8jw7uKlJqopPBRTcRDmNH+9FRiNod10FH0pIiQFOqld/Cydr/PNzlP9b010MdbKNSjEGSFekkY/MyDGlaNMuwqhHgXxVx9oaxwrteLeNOw2fbE0r6V494cvxatmiYrxLoLeNO0Z/rEsG83euTU+W16E5SiED0NQs3SoXzYLOjwgBo7eq+eohBve83XGNHO3rVwM6iRM9UvQVFItIiYzi5N2caWdrIzctwg3RGqQuwwsxqSq8P5LtQXnBe65w3rnlcVrqjjS7PO9TswsmFxDM21WPuHqpDsgskyqXvebWw6NIR16BesKSQPD8oyqXVDZ8cNMYwXvINHUzgmr5JyEelXaEOgoYe/jd4cTeE33cpEZVJPzC3MpNg5D2eIFiVNYd3woxU8MplUvPf/pkDf0GVD9HfpCk3ndXKfNqkWfgoLQsNUsCV6sHSFxp0gvEade2fhpFbumaJV6hvWFWZsHCSSxTl+qKAwgWmzlRr4JiAKf8yPG9q78Vio1TIn3NQZTU4fvn7jPzM+CDOpFmaZmsmPJhVfHURh5sKtL7q2zq2ho3F6aGEKM90la8g5oImtjBuZcPiiBwmm8G/mmJLTXORO2tvDa/jGXMPuFUxhjp0STPi1EKvHYHLkeK56fWkYV6jCQfY1Q3jeHmX5nE/eRFZk0y1BFWoZOQTwjquT9V8m4zWtnjY0PXOowlxbJbi/L/dbm2QE1Irawrg7B1eY67QAHkw/yzneDOTyrTlqwxViu/Z0eFDWCXzQEBMOZj+FK6zn3A1SWpEUwjRUxQPfBEJhlY9mO8Cb58H4kHE8EKHwtfz6bhbQPW4wyDpGjlBYL7Slxw4Q7f1N5tENlMKSfoDzIjhMZtkXSik0+aDqwII4M0VLKfys1lmzJNk3glJYhUOQbgOpcHj3CnMd0vYvQCq0UoSwAa3Qyk9VWYBWWOwUpOpAKyx2ckd1MCi0UtD9fQwK3/8Bb5oDUuF2PryPgYj8UM7f1XSw7kfsPh7SWrO7jgejA4NBO153+17U3J88cCfrfe10lEICwA3OCnA4HA6Hw+FwOBwOh8PhcDgcDofD4XBUi/8BcoCwZINNZD8AAAAASUVORK5CYII=",lD="/assets/shopify-BHandBQv.webp",rD="data:image/webp;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ8NDQ0NFREWFhURFRYYKCggGCYoHRUVIjYiKCk3LzAuFys4RD8tPCgtLisBCgoKBw0NGgcNDisZHxkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKys3Kys3KysrKysrK//AABEIAOAA4AMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAAAgQBAwgHBgX/xABCEAABAwECBg8HAwQCAwAAAAAAAQIDBAURBgcxVLHREhMVFyEyNEFRYXJzkZOyCBQicXSBlDVVoSRiksFDUiMzQv/EABUBAQEAAAAAAAAAAAAAAAAAAAAB/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A8XtTlNR38vrUqlq1OU1Hfy+tSqAAAAyYMgZQleQQzeBMyQJASMkTN4EkUyRMoBMyQvMoBMyRQyBIyRM3gSQkQMlEzJB
245FJIBJDKEUUyBI2Q8ZvabpNV5sh4ze03SB+banKajv5fWpVLVqcpqO/l9alUgAAAZMAAZMACSGbyJm8CRlCKGQJoZQgZQCd5kiZQCV5kiZQCaGUIGUUCd5kjeZAkZQiZQokSIGQJoTh4ze03SakNkPGb2m6QKFqcpqO/l9alUtWpymo7+X1qVSAAAAAAA9sxP4urKtOzFq66KSaV1RIxLppI2sY1ERERGql/Op9xvOYO5nJ+VUawOWzJ1HvOYO5nJ+VPrG85g7mcn5VRrA5dRTN51DvOYO5nJ+VPrM7zmD2ZyflT6wOXkUydQbzuD2ZyflT6xvO4PZm/8AJn1gcwISOnFxOYPZpInyqp0/2fl2liLsmRFWnnrKZ3DsfjbNGi9aOS9fEDngyeqWtiKtKK9aWqpqpvMj2upnr9viT+Tzu27BrrOftdbSy0zlW5qyN/8AG/svT4XfZQKCGSJkCRlCKGUAmhlCF5kCd5lCCKSQokhsh4ze03SajZDxm9pukClanKajv5fWpVLVqcpqO/l9alUgAAAAAOmfZ/8A0JPqqjSh6Uea+z/+hJ9VUaUPSgAAAAAAAAAAAGqpp45mOjlYySN6XOY9qOY5OhUU2gDyHDPEnTTI6ayX+6zX3rTSKq0z+pq5WL4p8jw61bNqKKd9NVROhnjX4435U6FTpTrQ7PPwMMcEaO2afaKplzm3rDOy5JYHqmVq+F6ZFuA5GMoft4Y4KVdi1Xu1UjXbJFfDMy/a5o77r0vyL0pzH4QEzJEyBJDKEUMgSRTZCvxN7TdJqNkPGb2m6SiranKajv5fWpVLVqcpqO/l9alUgAAAAAOmfZ+/Qk+qqNKHpR5r7P8A+hJ9VUaUPSgAAAAAAAAAAAAAAAAPxML8GKW2KR9JVIty/FFK27bIZUyPav8ArnOUsIrEqLMq5aOqbsZYlypxZGLxXt6lOyDzfHXgdujQ++QMvrKFrnpdllp8r2L03XbJPl1gc3GSKKZQCaGSBkCZsh47e03SaicPHb2m6QNFqcpqO/l9alUtWpymo7+X1qVQAAAAADpn2f8A9CT6qo0oelHmvs//AKEn1VRpQ9KAAAAebY18YtTYM1JFBTwTpURSPcsyvRWq1yJwbFes9JPAvaV5XZv08/raBo3/AG0cwov8ptY3/bRzCi/ym1nkAA9jhx/1qL8dnUrk50ZLKxfFbz7LBnHXZVYqMq2vs6Vbv/au2wKvDkkREu+6JlOagB3BFI17WvY5r2ORHNc1Uc1zVyKiplJnK+LTGNU2JKkT9lPQSObtkCuW+G93DJF0Lwqt2RerKdQ0NZFUwxzwPbLDKxskcjVva5i5FQDeAAAAA5Pxn4NpZVrVEDEugl/qadES5GxvVV2Cdlb0+SHyqHvvtE2FttFS2izj0kqwy5PihlVLlVep6Jd21PAEAmZvImUAkbIeOztN0mpDZDx29pukDVanKajv5fWpVLVqcpqO/l9alUAAAAAA6Z9n/wDQk+qqNKHpR5n7Pr0Ww7kVFVtXOjkReFF+Fbl+yp4npgAAADwL2leV2b9PP62nvp4D7Srk98s1L0vSmmVU50RZEu0L4AeNAAAAAB7x7OuE0kjKmypnorYWpUUt6/EjFW6RnWl6tVPmp4OfY4oa51Pb9nqiqiSyOgfdzte1Uu8bvADrIAAAAB8tjPofebDtKO69UpnyNT+5nxf6OS0U7QtqLbKSqjXI+mnYv3jVDi1oE7zN5EzeBMnDx29puk1GyHjs7TdIEbU5TUd/L61KpatTlNR38vrUqgAAAAAFilrZ4b9pmli2V2y2qR0eyuyX3Zcqm/dqtzyq/Il1lAAX92q3PKr8iXWN2q3PKr8iXWUABf3arc8qvyJdZUnnfK5XyPfI9cr3uV7l+6msAAAAAAA+uxTUTp7es5qIqoybbnKiX7FrGq69fuieJ8ie4+zng29FqbVlYiMc33alVU4XLsr5XJ1cDW+PQB7kAAAAAp2xKjKSpeuRlPM5fkjFU4rQ66xlV3u1iWlKi3L7rJG3rV6bG7+TkRAJmbyJlAJIbIeOztN0mo2Qr8bO03SAtTlNR38vrUqlq1OU1Hfy+tSqAAAAAAAAAAAAA+1waxX2xadM2rgiijhet0a1Em1LI3/s1LlvTrA+KB6VvIW90Uf5C6hvIW90Uf5C6gPNQep0eIq2XrdLLRwp/wBtsfJ/CIfaYL4i6Knekto1Dq5yXK2FjFggav8Adwq5/wDCdSgeU4u8Aaq3J7m3w0cSpt9UrVuy8RnM52jn6+qLLs+GjgipqdiRwwsRkbEvW5qaTZR0sUEbIYY2RRRtRrI42o1jWpzIiG4AAAAAA8l9om3Ehs6noG8etm2x/wDbDEqL9r3K3wU53PtMbmEqWpa8741vgpv6WFb70c1jl2T06lcqr8j4oCV5m8iZQCRshX42dtuk1XmyHjs7bdIE7U5TUd/L61KpatTlNR38vrUqgAAAAAAAAAD1bFHivdaKstC0GK2gat8UDr0dVqnOvQzTd0AZxQ4sVtFzbQtCNW0DVvhhciotW7p6mJ/PyOi2NRqI1qIjURERES5ERMiIhhjUaiNaiNa1ERERLkREyIiEgAAAAAAAAAAAHnuObDPcqz1hgfsa2tR0cOxX4oosj5erLcnWvUp9ZhRhFS2VSSVlW/Yxs4Gtbcsksi5GMTnVTkrCvCKotatlralU2ci3MYnFiiRV2MafK8D8cAADJgASNkHHZ2m6TUbIOOztN0gbbU5TUd/L61KpatTlNR38vrUqgAAAAAAA9VxRYsd0lbaFoNVtA1y7VDwtdVvTnXoYn8gMUeLBbSVloWg1W0DXXxQrejqtyc69DL/G46MY1GojWojWtRERES5ERMiIgjY1rUa1Ea1qI1rWoiNa1OBEROYkAAAAAAAAAAIySNY1XPcjWtRXOc5Ua1qJlVVXIBI/Ewtwpo7HplqayTYoqq2KNtyyzPu4rE5/nkQ+Dw2x1UVIj4bMRK2pv2O3LelLHwZb8r/knB18x4Jb1t1Vo1D6qsmdNM/nXisbzNamRqJ0IB+ph1hlVW5VJPUIkccaObT07FVWQsVb14edVuS9ee5Og+aAAAAAAABsg47O03SazZBx2dpukDdanKajv5fWpVLVqcpqO/l9alUADJgAAAP38BmWa60adLWc5tFeqvuv2KuRPhR13DdflOlo8Y2DzWo1tpUrWtRGta29GtRMiIl3AclADrffKsD90pvF2ob5VgfulN4u1HJAA633yrA/dKbxdqG+VYH7pTeLtRyQAOt98qwP3Sm8XahvlWB+6U3i7UckADrSXGdYDUv3SgXs7Ny6D8mvx02DE1VZLUVDk/8AiGncir8lfcn8nMIA9ntvH5UvvbQUEUKcKJJUyLM9ehdi25E+V6nmmEuF1pWq/ZVtVJK2+9sKLsIGfJicH3yn4YAAAAAAAAAAAAbIOOztN0ms2QcdnabpA3Wpymo7+X1qVS1anKajv5fWpVAAAAAAAAAAAAAAABkDAAAAAAAAAAAAAAAABsg47O03SazZBx2dpukDdanKajv5fWpVP1rTsmrWonVKWpVFmlVFSCTh+NeorbkVma1PkSagKQLu5FZmlT5EmobkVma1PkSagKQLu5FZmtT5EmobkVma1PkSagKQLu5FZmlT5EmobkVma1PkSagKQLu5FZmtT5EmobkVma1PkSagKQLu5FZmtT5EmobkVma1PkSagKQLu5FZmlT5EmobkVma1PkSagKQLu5FZmtT5EmobkVmaVPkSagKQLu5FZmtT5EmobkVmaVPkSagKQLu5FZmtT5EmobkVma1PkSagKQLu5FZmtT5EmobkVma1PkSagKQLu5FZmtT5EmobkVmaVPkSagKQLu5FZmtT5EmobkVma1PkSagKRsg47O03SWdyKzNanyJNROGyavZN/panjN/4JOn5Af/2Q==",iD="data:image/webp;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAElBMVEX///8AAACIiIhSUlJ9fX09PT300hEyAAAArUlEQVR4nO3csQ2AQBAEMeCh/5YJ0ZMixAjZ6SY3DdyyAAAAAAAAAAAAAAAAAAAAAMBlXyfHbT7mef/kxme2OWHc5jHP2yc3PqNQYZ9ChX0KFfYpVNinUGGfQoV9ChX2KVTYp1Bhn0KFfQoV9ilU2KdQYZ9ChX0KFfYpVNinUGGfQoV9ChX2KVTYp1Bhn0KFfQoV9ilU2Pf/nwoAAAAAAAAAAAAAAAAAAAAAvOcE6JwLM1sFTXYAAAAASUVORK5CYII=",oD="/assets/sarvam-BpdHdsw0.webp",Cf=Object.freeze(Object.defineProperty({__proto__:null,apollo:nD,brevo:QL,callerdesk:YL,deepgram:rD,elevenlabs:iD,exotel:WL,frejun:qL,hubspot:tD,mailgun:$L,msg91:eD,plivo:GL,ringcentral:VL,salesforce:aD,sarvam:oD,sendgrid:ZL,shopify:lD,sinch:FL,smtp:JL,telecmi:HL,telegram:XL,telnyx:UL,twilio:PL,vonage:IL,whatsapp_meta:KL,zoho:sD},Symbol.toStringTag,{value:"Module"})),Gx=[{id:"sarvam",name:"Sarvam",logo_key:"sarvam",tag:"STT / TTS",isActive:!0,category:"services",languages:[{code:"hi-IN",name:"Hindi"},{code:"en-IN",name:"English (India)"},{code:"bn-IN",name:"Bengali"},{code:"gu-IN",name:"Gujarati"},{code:"kn-IN",name:"Kannada"},{code:"ml-IN",name:"Malayalam"},{code:"mr-IN",name:"Marathi"},{code:"od-IN",name:"Odia"},{code:"pa-IN",name:"Punjabi"},{code:"ta-IN",name:"Tamil"}
245,{code:"te-IN",name:"Telugu"}],voices:[{id:"aditya",name:"Aditya"},{id:"ritu",name:"Ritu"},{id:"ashutosh",name:"Ashutosh"},{id:"priya",name:"Priya"},{id:"neha",name:"Neha"},{id:"rahul",name:"Rahul"},{id:"pooja",name:"Pooja"},{id:"rohan",name:"Rohan"},{id:"simran",name:"Simran"},{id:"kavya",name:"Kavya"},{id:"amit",name:"Amit"},{id:"dev",name:"Dev"},{id:"ishita",name:"Ishita"},{id:"shreya",name:"Shreya"},{id:"ratan",name:"Ratan"},{id:"varun",name:"Varun"},{id:"manan",name:"Manan"},{id:"sumit",name:"Sumit"},{id:"roopa",name:"Roopa"},{id:"kabir",name:"Kabir"},{id:"aayan",name:"Aayan"},{id:"shubh",name:"Shubh"},{id:"advait",name:"Advait"},{id:"anand",name:"Anand"},{id:"tanya",name:"Tanya"},{id:"tarun",name:"Tarun"},{id:"sunny",name:"Sunny"},{id:"mani",name:"Mani"},{id:"gokul",name:"Gokul"},{id:"vijay",name:"Vijay"},{id:"shruti",name:"Shruti"},{id:"suhani",name:"Suhani"},{id:"mohit",name:"Mohit"},{id:"kavitha",name:"Kavitha"},{id:"rehan",name:"Rehan"},{id:"soham",name:"Soham"},{id:"rupali",name:"Rupali"},{id:"niharika",name:"Niharika"}]},{id:"deepgram",name:"Deepgram",logo_key:"deepgram",tag:"STT",isActive:!0,category:"services",languages:[{code:"en",name:"English"},{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"en-AU",name:"English (Australia)"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"es",name:"Spanish"},{code:"it",name:"Italian"},{code:"pt",name:"Portuguese"},{code:"nl",name:"Dutch"},{code:"hi",name:"Hindi"},{code:"ja",name:"Japanese"},{code:"ko",name:"Korean"},{code:"zh",name:"Chinese"},{code:"ru",name:"Russian"},{code:"ar",name:"Arabic"}],voices:[]},{id:"elevenlabs",name:"ElevenLabs",logo_key:"elevenlabs",tag:"TTS",isActive:!0,category:"services",languages:[{code:"en",name:"English"},{code:"hi",name:"Hindi"},{code:"fr",name:"French"},{code:"de",name:"German"},{code:"es",name:"Spanish"},{code:"it",name:"Italian"},{code:"pt",name:"Portuguese"},{code:"pl",name:"Polish"},{code:"ar",name:"Arabic"},{code:"zh",name:"Chinese"},{code:"ja",name:"Japanese"},{code:"ko",name:"Korean"}],voices:[{id:"21m00Tcm4TlvDq8ikWAM",name:"Rachel"},{id:"AZnzlk1XvdvUeBnXmlld",name:"Domi"},{id:"EXAVITQu4vr4xnSDxMaL",name:"Bella"},{id:"ErXwobaYiN019PkySvjV",name:"Antoni"},{id:"MF3mGyEYCl7XYWbV9V6O",name:"Elli"},{id:"TxGEqnHWrfWFTfGW9XjX",name:"Josh"},{id:"VR6AewLTigWG4xSOukaG",name:"Arnold"},{id:"pNInz6obpgDQGcFmaJgB",name:"Adam"},{id:"yoZ06aMxZJJ28mfd3POQ",name:"Sam"},{id:"onwK4e9ZLuTAKqWW03F9",name:"Daniel"},{id:"N2lVS1w4EtoT3dr4eOWO",name:"Callum"},{id:"CwhRBWXzGAHq8TQ4Fs17",name:"Roger"},{id:"IKne3meq5aSn9XLyUdCD",name:"Charlie"},{id:"XB0fDUnXU5powFXDhCwa",name:"Charlotte"},{id:"Xb7hH8MSUJpSbSDYk0k2",name:"Alice"}]}],Wx={id:"",name:"",logo_key:"",tag:"",isActive:!0,category:"sip",languages:[],voices:[]},cD=()=>{const[a,t]=y.useState({}),[n,l]=y.useState(!0),[i,c]=y.useState("sip"),[u,h]=y.useState(""),[f,p]=y.useState(null),[x,b]=y.useState(!1),[v,w]=y.useState(!1),[j,N]=y.useState(Wx),[A,S]=y.useState(!1);y.useEffect(()=>{C()},[]);const C=async()=>{try{l(!0);const Y=await xe.get("/admin/integrations/providers"),oe=Y.data.providers||Y.data.providers_data||Y.data||[];if(Array.isArray(oe)){const ue=oe.reduce((me,ke)=>{const Ve={...ke,id:ke._id||ke.id},tt=Ve.category||"sip";return me[tt]||(me[tt]=[]),me[tt].push(Ve),me},{});t(ue)}else t(oe);p(null)}catch(Y){console.error("Error fetching providers:",Y),p("Failed to load integration providers. Ensure the backend endpoint is active.")}finally{l(!1)}},T=async Y=>{if(window.confirm("Are you sure you want to delete this integration provider?"))try{await xe.delete(`/admin/integrations/providers/${Y}`),C()}catch(oe){console.error("Error deleting provider:",oe),alert("Failed to delete provider.")}},L=async(Y,oe,ue)=>{try{const me=!ue,ke={...a},Ve=ke[Y].findIndex(tt=>tt._id===oe||tt.id===oe);Ve!==-1&&(ke[Y][Ve].isActive=me,t(ke)),await xe.patch(`/admin/integrations/providers/${oe}/status`,{category:Y,isActive:me})}catch(me){console.error("Error toggling status:",me),alert("Failed to update status."),C()}},O=async()=>{S(!0);try{for(const Y of Gx)await xe.post("/admin/integrations/providers",Y);C()}catch(Y){console.error("Error seeding services:",Y),alert("Failed to seed default services.")}finally{S(!1)}},R=async Y=>{const oe=Gx.find(ue=>ue.id==="sarvam");try{await xe.patch(`/admin/integrations/providers/${Y}`,{languages:oe.languages,voices:oe.voices}),C()}catch(ue){console.error("Error syncing Sarvam data:",ue),alert("Failed to sync Sarvam languages & voices.")}},k=()=>{N({...Wx,category:i}),w(!1),b(!0)},E=(Y,oe)=>{N({...Wx,...Y,category:oe,languages:Y.languages||[],voices:Y.voices||[]}),w(!0),b(!0)},z=async Y=>{if(Y.preventDefault(),!j.logo_key&&j.category!=="services"){alert("Please select a logo for the provider.");return}S(!0);try{v?await xe.patch(`/admin/integrations/providers/${j.id}`,j):await xe.post("/admin/integrations/providers",j),b(!1),C()}catch(oe){console.error("Error saving provider:",oe),alert("Failed to save provider settings.")}finally{S(!1)}},D=()=>N(Y=>({...Y,languages:[...Y.languages||[],{code:"",name:""}]})),q=Y=>N(oe=>({...oe,languages:oe.languages.filter((ue,me)=>me!==Y)})),V=(Y,oe,ue)=>N(me=>({...me,languages:me.languages.map((ke,Ve)=>
245Ve===Y?{...ke,[oe]:ue}:ke)})),Z=()=>N(Y=>({...Y,voices:[...Y.voices||[],{id:"",name:""}]})),ae=Y=>N(oe=>({...oe,voices:oe.voices.filter((ue,me)=>me!==Y)})),ee=(Y,oe,ue)=>N(me=>({...me,voices:me.voices.map((ke,Ve)=>Ve===Y?{...ke,[oe]:ue}:ke)})),U=[{id:"sip",label:"SIP"},{id:"social",label:"Social"},{id:"sms",label:"SMS"},{id:"email",label:"Email"},{id:"crm",label:"CRM"},{id:"ecommerce",label:"eCommerce"},{id:"services",label:"Services"}],B=Object.keys(Cf).filter(Y=>Y!=="default"),X=(a[i]||[]).filter(Y=>Y.name.toLowerCase().includes(u.toLowerCase())),re=i==="services",P=j.category==="services";return e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Integrations Management"}),e.jsx("p",{className:"text-gray-500 text-sm",children:"Enable or disable integrations globally for all users"})]}),e.jsxs("button",{onClick:k,className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 transition-colors font-semibold shadow-lg shadow-blue-500/20",children:[e.jsx(ji,{size:18})," Add Provider"]})]}),e.jsx("div",{className:"flex gap-4 border-b border-gray-200 mb-6 overflow-x-auto",children:U.map(Y=>e.jsx("button",{onClick:()=>c(Y.id),className:`px-4 py-2 font-bold text-sm transition-all border-b-2 whitespace-nowrap ${i===Y.id?"text-blue-600 border-blue-600":"text-gray-500 border-transparent hover:text-gray-700"}`,children:Y.label},Y.id))}),e.jsxs("div",{className:"bg-white p-4 rounded-xl border border-gray-200 mb-6 flex items-center gap-3",children:[e.jsx(Gs,{className:"text-gray-400",size:20}),e.jsx("input",{type:"text",placeholder:`Search ${i} providers...`,className:"flex-1 outline-none text-sm font-medium",value:u,onChange:Y=>h(Y.target.value)})]}),f&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 rounded-xl flex items-center gap-3 text-red-600",children:[e.jsx(aa,{size:20}),e.jsx("p",{className:"text-sm font-bold",children:f})]}),n?e.jsxs("div",{className:"flex flex-col items-center justify-center py-20 bg-white rounded-2xl border border-gray-100 shadow-sm",children:[e.jsx(Ge,{className:"animate-spin text-blue-600 mb-4",size:40}),e.jsx("p",{className:"text-gray-500 font-medium",children:"Loading providers..."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:X.length>0?X.map(Y=>e.jsxs("div",{className:"bg-white p-5 rounded-2xl border border-gray-200 hover:border-blue-400 transition-all group shadow-sm flex flex-col",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsx("div",{className:"p-3 bg-gray-50 rounded-xl border border-gray-100",children:Cf[Y.logo_key]?e.jsx("img",{src:Cf[Y.logo_key],alt:Y.name,className:"w-10 h-10 object-contain"}):e.jsx("div",{className:"w-10 h-10 flex items-center justify-center rounded-lg bg-gradient-to-br from-blue-500 to-violet-600 text-white font-bold text-lg",children:Y.name?.charAt(0)?.toUpperCase()})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{onClick:()=>E(Y,i),className:"p-2 text-gray-400 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-all",children:e.jsx(Yb,{size:18})}),e.jsx("button",{onClick:()=>T(Y.id),className:"p-2 text-gray-400 hover:text-red-600 hover:bg-red-50 rounded-lg transition-all",children:e.jsx(Wb,{size:18})})]})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1 capitalize",children:Y.name}),e.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold uppercase ${Y.isActive!==!1?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500"}`,children:Y.isActive!==!1?"Enabled":"Disabled"})]}),re&&e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[Y.languages?.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-[11px] font-semibold text-violet-700 bg-violet-50 border border-violet-100 px-2 py-0.5 rounded-full",children:[e.jsx(Pg,{size:11})," ",Y.languages.length," lang"]}),Y.voices?.length>0&&e.jsxs("span",{className:"flex items-center gap-1 text-[11px] font-semibold text-blue-700 bg-blue-50 border border-blue-100 px-2 py-0.5 rounded-full",children:[e.jsx(b0,{size:11})," ",Y.voices.length," voices"]}),(Y.id==="sarvam"||Y.name?.toLowerCase()==="sarvam")&&e.jsxs("button",{onClick:()=>R(Y.id),className:"flex items-center gap-1 text-[11px] font-semibold text-green-700 bg-green-50 border border-green-200 px-2 py-0.5 rounded-full hover:bg-green-100 transition-colors",title:"Sync all Sarvam languages & voices",children:[e.jsx(g0,{size:11})," Sync"]})]}),e.jsxs("div",{className:"mt-auto pt-4 border-t border-gray-50 flex items-center justify-between",children:[e.jsx("span",{className:"text-xs font-bold text-gray-400 uppercase tracking-widest",children:"Visibility"}),e.jsx("button",{onClick:()=>L(i,Y.id,Y.isActive!==!1),className:`w-12 h-6 rounded-full transition-all relative ${Y.isActive!==!1?"bg-blue-600":"bg-gray-300"}`,children:e.jsx("div",{className:`absolute top-1 w-4 h-4 bg-white rounded-full transition-all ${Y.isActive!==!1?"right-1":"left-1"}`})})]})]},Y.id)):e.jsxs("div",{className:"col-span-full py-16 bg-white rounded-2xl border border-dashed border-gray-300 flex flex-col items-center justify-center gap-4",children:[e.jsx("div",{className:"p-4 bg-gray-50 rounded-full",children:e.jsx(i9,{size:40,className:"text-gray-300"})}),e.jsx("p",{className:"text-gray-500 font-bold text-lg",children:"No providers found"}),re&&!u&&e.jsxs("button",{onClick:O,disabled:A,className:"mt-2 px-6 py-3 bg-violet-600 hover:bg-violet-700 disabled:opacity-60 text-white font-bold rounded-xl transition-colors shadow-lg shadow-violet-500/20 flex items-center gap-2",children:[A?e.jsx(Ge,{className:"animate-spin",size:16}):e.jsx(ji,{size:18}),"Add Default Services (Sarvam, Deepgram, ElevenLabs)"]})]})}),x&&j&&e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:()=>b(!1)}),e.jsxs("div",{className:"relative bg-white w-full max-w-2xl rounded-3xl shadow-2xl overflow-hidden",children:[e.jsxs("div",{className:"p-6 border-b border-gray-100 flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:v?`Edit: ${j.name}`:"Add New Provider"}),e.jsx("button",{onClick:()=>b(!1),className:"text-gray-400 hover:text-gray-600",children:e.jsx(ls,{size:24})})]}),e.jsxs("form",{onSubmit:z,className:"p-6 space-y-5 max-h-[78vh] overflow-y-auto",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Display Name"}),e.jsx("input",{type:"text",required:!0,value:j.name,onChange:Y=>N({...j,name:Y.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",placeholder:"e.g., Twilio Premium"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Category"}),e.jsx("select",{value:j.category,onChange:Y=>N({...j,category:Y.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",children:U.map(Y=>e.jsx("option",{value:Y.id,children:Y.label},Y.id))})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:"Tag"}),e.jsx("input",{type:"text",required:!0,value:j.tag||"",onChange:Y=>N({...j,tag:Y.target.value}),className:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none transition-all font-medium",placeholder:"e.g., Beta, STT, TTS"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("label",{className:"text-xs font-bold text-gray-700 uppercase tracking-wider ml-1",children:["Select Logo ",P?"(Optional â initials used if blank)":"(Required)"]}),e.jsx("div",{className:"grid grid-cols-6 gap-2 p-3 bg-gray-50 border border-gray-200 rounded-xl max-h-36 overflow-y-auto",children:B.map(Y=>e.jsx("button",{type:"button",onClick:()=>N({...j,logo_key:Y}),className:`p-2 rounded-lg border-2 transition-all flex items-center justify-center bg-white ${j.logo_key===Y?"border-blue-500 bg-blue-50":"border-transparent hover:border-gray-200"}`,title:Y,children:e.jsx("img",{src:Cf[Y],alt:Y,className:"w-8 h-8 object-contain"})},Y))})]}),P&&e.jsxs("div",{className:"space-y-5 pt-2 border-t border-gray-100",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"text-[11px] font-bold text-gray-400 uppercase tracking-widest",children:"Languages & Voices"}),j.name?.toLowerCase()==="sarvam"&&e.jsxs("button",{type:"button",onClick:()=>{const Y=Gx.find(oe=>oe.id==="sarvam");N(oe=>({...oe,languages:Y.languages,voices:Y.voices}))},className:"flex items-center gap-1.5 text-[11px] font-bold text-white bg-violet-600 hover:bg-violet-700 px-3 py-1.5 rounded-lg transition-colors shadow-sm shadow-violet-400/30",children:[e.jsx(g0,{size:11})," Load All Sarvam Data"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-bold text-gray-700 uppercase tracking-wider",children:[e.jsx(Pg,{size:13,className:"text-violet-500"})," Languages"]}),e.jsxs("button",{type:"button",onClick:D,className:"text-xs font-bold text-violet-600 hover:text-violet-800 flex items-center gap-1 px-2 py-1 rounded-lg hover:bg-violet-50 transition-all",children:[e.jsx(ji,{size:13})," Add"]})]}),(j.languages||[]).length===0?e.jsx("p",{className:"text-xs text-gray-400 italic px-1",children:"No languages added yet."}):e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto pr-1",children:(j.languages||[]).map((Y,oe)=>e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx("input",{type:"text",value:Y.code,onChange:ue=>V(oe,"code",ue.target.value),placeholder:"Code (e.g. hi-IN)",className:"w-36 px-3 py-2 text-sm bg-gray-50 border border-gray-200 rounded-lg focus:ring-2 focus:ring-violet-400/20 focus:border-violet-400 outline-none font-mono"}),e.jsx("input",{type:"text",value:Y.name,onChange:ue=>V(oe,"name",ue.target.value),placeholder:"Display name (e.g. Hindi)",className:"flex-1 px-3 py-2 text-sm bg-gray-50 border border-gray-200 rounded-lg focus:ring-2 focus:ring-violet-400/20 focus:border-violet-400 outline-none font-medium"}),e.jsx("button",{type:"button",onClick:()=>q(oe),className:"p-1.5 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-all shrink-0",children:e.jsx(ls,{size:14})})]},oe))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-bold text-gray-700 uppercase tracking-wider",children:[e.jsx(b0,{size:13,className:"text-blue-500"})," Voices"]}),e.jsxs("button",{type:"button",onClick:Z,className:"text-xs font-bold text-blue-600 hover:text-blue-800 flex items-center gap-1 px-2 py-1 rounded-lg hover:bg-blue-50 transition-all",children:[e.jsx(ji,{size:13})," Add"]})]}),(j.voices||[]).length===0?e.jsx("p",{className:"text-xs text-gray-400 italic px-1",children:"No voices added yet."}):e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto pr-1",children:(j.voices||[]).map((Y,oe)=>e.jsxs("div",{className:"flex gap-2 items-center",children:[e.jsx("input",{type:"text",value:Y.id,onChange:ue=>ee(oe,"id",ue.target.value),placeholder:"Voice ID",className:"flex-1 px-3 py-2 text-sm bg-gray-50 border border-gray-200 rounded-lg focus:ring-2 focus:ring-blue-400/20 focus:border-blue-400 outline-none font-mono"}),e.jsx("input",{type:"text",value:Y.name,onChange:ue=>ee(oe,"name",ue.target.value),placeholder:"Display name",className:"flex-1 px-3 py-2 text-sm bg-gray-50 border border-gray-200 rounded-lg focus:ring-2 focus:ring-blue-400/20 focus:border-blue-400 outline-none font-medium"}),e.jsx("button",{type:"button",onClick:()=>ae(oe),className:"p-1.5 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-all shrink-0",children:e.jsx(ls,{size:14})})]},oe))})]})]}),e.jsxs("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-xl border border-gray-100",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"text-sm font-bold text-gray-900",children:"Global Visibility"}),e.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"If disabled, users cannot see or connect this integration."})]}),e.jsx("button",{type:"button",onClick:()=>N({...j,isActive:!j.isActive}),className:`w-12 h-6 rounded-full transition-all relative ${j.isActive!==!1?"bg-blue-600":"bg-gray-300"}`,children:e.jsx("div",{className:`absolute top-1 w-4 h-4 bg-white rounded-full transition-all ${j.isActive!==!1?"right-1":"left-1"}`})})]}),e.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-6 py-3 text-gray-600 font-bold hover:bg-gray-100 rounded-xl transition-all",children:"Cancel"}),e.jsxs("button",{type:"submit",disabled:A,className:"px-8 py-3 bg-blue-600 text-white font-bold rounded-xl hover:bg-blue-700 shadow-lg shadow-blue-500/20 active:scale-[0.98] transition-all flex items-center gap-2 disabled:opacity-60",children:[A?e.jsx(Ge,{className:"animate-spin",size:18}):e.jsx(qb,{size:18}),v?"Save Changes":"Create Provider"]})]})]})]})]})]})};function dD(){const{user:a}=U0();return e.jsxs(rN,{children:[e.jsx(K,{path:"login",element:a?e.jsx(bn,{to:"/admin/dashboard",replace:!0}):e.jsx(Dz,{})}),e.jsxs(K,{path:"/",element:e.jsx(Oz,{children:e.jsx(Lz,{})}),children:[e.jsx(K,{index:!0,element:e.jsx(bn,{to:"dashboard",replace:!0})}),e.jsx(K,{path:"dashboard",element:e.jsx(Bz,{})}),e.jsx(K,{path:"companies",element:e.jsx(gL,{})}),e.jsx(K,{path:"companies/:companyId",element:e.jsx(jL,{})}),e.jsx(K,{path:"companies/:companyId/integrations",element:e.jsx(AL,{})}),e.jsx(K,{path:"companies/:companyId/agents",element:e.jsx(NL,{})}),e.jsx(K,{path:"companies/:companyId/knowledge-bases",element:e.jsx(kL,{})}),e.jsx(K,{path:"companies/:companyId/campaigns",element:e.jsx(TL,{})}),e.jsx(K,{path:"companies/:companyId/callbacks",element:e.jsx(OL,{})}),e.jsx(K,{path:"companies/:companyId/human-transfers",element:e.jsx(ML,{})}),e.jsx(K,{path:"users",element:e.jsx(Uz,{})}),e.jsx(K,{path:"kyc-management",element:e.jsx(Vz,{})}),e.jsx(K,{path:"packages/templates",element:e.jsx(qz,{})}),e.jsx(K,{path:"packages/subscriptions",element:e.jsx(lL,{})}),e.jsx(K,{path:"packages/transactions",element:e.jsx(oL,{})}),e.jsx(K,{path:"calls/live",element:e.jsx(tL,{})}),e.jsx(K,{path:"calls",element:e.jsx(aL,{})}),e.jsx(K,{path:"calls/web",element:e.jsx(zL,{})}
245),e.jsx(K,{path:"calls/analytics",element:e.jsx(mi,{title:"Call Analytics"})}),e.jsx(K,{path:"agents",element:e.jsx(Wz,{})}),e.jsx(K,{path:"agents/prompts",element:e.jsx(BL,{})}),e.jsx(K,{path:"knowledge-bases",element:e.jsx(Qz,{})}),e.jsx(K,{path:"agents/performance",element:e.jsx(mi,{title:"Agent Performance"})}),e.jsx(K,{path:"integrations/status",element:e.jsx(Jz,{})}),e.jsx(K,{path:"integrations/stats",element:e.jsx(eL,{})}),e.jsx(K,{path:"integrations/manage",element:e.jsx(cD,{})}),e.jsx(K,{path:"reports/revenue",element:e.jsx(uL,{})}),e.jsx(K,{path:"reports/users",element:e.jsx(hL,{})}),e.jsx(K,{path:"reports/calls",element:e.jsx(mi,{title:"Call Reports"})}),e.jsx(K,{path:"reports/system",element:e.jsx(fL,{})}),e.jsx(K,{path:"settings/roles",element:e.jsx(mi,{title:"Roles & Permissions"})}),e.jsx(K,{path:"settings/email",element:e.jsx(mL,{})}),e.jsx(K,{path:"settings/config",element:e.jsx(mi,{title:"Platform Configuration"})}),e.jsx(K,{path:"settings/audit",element:e.jsx(mi,{title:"Audit Logs"})}),e.jsx(K,{path:"support",element:e.jsx(mi,{title:"Support (Coming Soon)"})}),e.jsx(K,{path:"api-test",element:e.jsx(DL,{})})]}),e.jsx(K,{path:"*",element:e.jsx(bn,{to:"/admin/dashboard",replace:!0})})]})}function uD(){return e.jsx(Tz,{children:e.jsx(Rz,{children:e.jsx(dD,{})})})}const hD=y.lazy(()=>fe(()=>import("./helthcare-CTS7GivC.js"),__vite__mapDeps([0,1,2,3]))),fD=y.lazy(()=>fe(()=>import("./Platform-BsySYxKb.js"),__vite__mapDeps([4,1,2,3]))),mD=y.lazy(()=>fe(()=>import("./Ecommerce-BM62AZYA.js"),__vite__mapDeps([5,1,2,3,6]))),pD=y.lazy(()=>fe(()=>import("./about-CcwCBSsP.js"),__vite__mapDeps([7,1,2,3]))),aw=y.lazy(()=>fe(()=>import("./PartnersPage-3rM7WUW3.js"),__vite__mapDeps([8,1,2,3]))),xD=y.lazy(()=>fe(()=>import("./CaseStudie-CCFWhAmR.js"),__vite__mapDeps([9,1,2]))),Kx=y.lazy(()=>fe(()=>import("./Lead Qualification _ Screening-DO5uCRn4.js"),__vite__mapDeps([10,1,2,3]))),nw=y.lazy(()=>fe(()=>import("./EmiPaymentReminders-DUe3qTx-.js"),__vite__mapDeps([11,1,2,3]))),gD=y.lazy(()=>fe(()=>import("./MarketingCampaignCalls-Dp9PsVk3.js"),__vite__mapDeps([12,1,2,3]))),lw=y.lazy(()=>fe(()=>import("./Banking_Finance-DE5gwgVu.js"),__vite__mapDeps([13,1,2,3]))),bD=y.lazy(()=>fe(()=>import("./Insurance-LZdtLneE.js"),__vite__mapDeps([14,1,2,3]))),yD=y.lazy(()=>fe(()=>import("./CustomerFeedbackSurveys-CfCeYUmf.js"),__vite__mapDeps([15,1,2,3]))),vD=y.lazy(()=>fe(()=>import("./Travelhospitality-Bln1GARA.js"),__vite__mapDeps([16,1,2,3]))),jD=y.lazy(()=>fe(()=>import("./Telecom-DjxirOlT.js"),__vite__mapDeps([17,1,2,3]))),AD=y.lazy(()=>fe(()=>import("./Logistics-Dl6Y2HP7.js"),__vite__mapDeps([18,1,2,3]))),rw=y.lazy(()=>fe(()=>import("./CustomerSupport-DC7_M2oQ.js"),__vite__mapDeps([19,1,2,3]))),wD=y.lazy(()=>fe(()=>import("./OrderConfirmations-Du1H6HV7.js"),__vite__mapDeps([20,1,2,3]))),ND=y.lazy(()=>fe(()=>import("./TransactionConfirmation-D1JY-mv6.js"),__vite__mapDeps([21,1,2,3]))),_D=y.lazy(()=>fe(()=>import("./Stocks_ForexMarket-D4ug1Q0E.js"),__vite__mapDeps([22,1,2,3]))),SD=y.lazy(()=>fe(()=>import("./AiCustomerSupportCalls-DWoW4pow.js"),__vite__mapDeps([23,1,2,3]))),iw=y.lazy(()=>fe(()=>import("./Appointmentbooking-D-tsUd-o.js"),__vite__mapDeps([24,1,2,3]))),kD=y.lazy(()=>fe(()=>import("./Callrouting-C8YbbHE4.js"),__vite__mapDeps([25,1,2,3]))),CD=y.lazy(()=>fe(()=>import("./Comparisons-Drkj5eNC.js"),__vite__mapDeps([26,1,2,3]))),ow=y.lazy(()=>fe(()=>import("./ai-voice-agent-vs-ivr-CigyC4vU.js"),__vite__mapDeps([27,1,2,28,3]))),cw=y.lazy(()=>fe(()=>import("./ai-voice-bots-vs-call-centers-BcTuWDbJ.js"),__vite__mapDeps([29,1,2,28,3]))),dw=y.lazy(()=>fe(()=>import("./conversational-ai-vs-chatbots-ChhprNeq.js"),__vite__mapDeps([30,1,2,28,3]))),uw=y.lazy(()=>fe(()=>import("./voice-ai-vs-chatbots-for-customer-support-Ds9PWCGN.js"),__vite__mapDeps([31,1,2,28,3]))),hw=y.lazy(()=>fe(()=>import("./ai-voice-automation-vs-traditional-phone-systems-BL6deu63.js"),__vite__mapDeps([32,1,2,28,3]))),fw=y.lazy(()=>fe(()=>import("./ai-voice-agents-vs-human-call-agents-d_gt2w9C.js"),__vite__mapDeps([33,1,2,28,3]))),mw=y.lazy(()=>fe(()=>import("./ai-voice-automation-vs-contact-center-software-CBZZXubn.js"),__vite__mapDeps([34,1,2,28,3]))),pw=y.lazy(()=>fe(()=>import("./ai-call-automation-vs-manual-call-handling-CA_2qUUI.js"),__vite__mapDeps([35,1,2,28,3]))),ED=y.lazy(()=>fe(()=>import("./Aiguide-C8RqTPWo.js"),__vite__mapDeps([36,1,2,3]))),Xx=y.lazy(()=>fe(()=>import("./complete-guide-to-ai-voice-agents-DPl7tFqb.js"),__vite__mapDeps([37,1,2,3]))),Qx=y.lazy(()=>fe(()=>import("./ai-voice-automation-beginner-guide-D7_D3lNv.js"),__vite__mapDeps([38,1,2,3]))),TD=y.lazy(()=>fe(()=>import("./voice-ai-technology-C0KMbC8P.js"),__vite__mapDeps([39,1,2,3]))),xw=y.lazy(()=>fe(()=>import("./what-is-conversational-ai-CarNbgG4.js"),__vite__mapDeps([40,1,2,3]))),gw=y.lazy(()=>fe(()=>import("./ai-call-automation-explained-for-businesses-C7kCbdCe.js"),__vite__mapDeps([41,1,2,3]))),RD=y.lazy(()=>fe(()=>
245import("./how-ai-voice-assistants-work-DkDMxwD9.js"),__vite__mapDeps([42,1,2,3]))),OD=y.lazy(()=>fe(()=>import("./how-ai-voice-agents-work-HQvGkMKb.js"),__vite__mapDeps([43,1,2,3]))),MD=y.lazy(()=>fe(()=>import("./understanding-ai-phone-agents-YyyprLAu.js"),__vite__mapDeps([44,1,2,3]))),zD=y.lazy(()=>fe(()=>import("./how-businesses-use-ai-voice-automation-for-customer-support-DFpnZHvb.js"),__vite__mapDeps([45,1,2,3]))),LD=y.lazy(()=>fe(()=>import("./implementing-ai-voice-automation-in-your-business-BiRvXaFg.js"),__vite__mapDeps([46,1,2,3]))),Zx=y.lazy(()=>fe(()=>import("./voice-ai-agents-versus-ivr-menus-BPVYGrzd.js"),__vite__mapDeps([47,1,2,28,3]))),DD=y.lazy(()=>fe(()=>import("./Blog-B7ucPG5v.js"),__vite__mapDeps([48,1,2,3]))),BD=y.lazy(()=>fe(()=>import("./realestate-D7sjul8o.js"),__vite__mapDeps([49,1,2,3]))),PD=y.lazy(()=>fe(()=>import("./what-is-an-ai-voice-agent-B08qobaE.js"),__vite__mapDeps([50,1,2,3]))),UD=y.lazy(()=>fe(()=>import("./what-is-an-ai-call-assistant-BLiyk5S1.js"),__vite__mapDeps([51,1,2,3]))),ID=y.lazy(()=>fe(()=>import("./ai-voice-automation-D_sBs6iQ.js"),__vite__mapDeps([52,1,2,3]))),VD=y.lazy(()=>fe(()=>import("./ai-voice-automation-explained-in-simple-terms-BNI-76ed.js"),__vite__mapDeps([53,1,2,3]))),bw=y.lazy(()=>fe(()=>import("./how-ai-voice-technology-works-in-business-calls-BvgIaNrq.js"),__vite__mapDeps([54,1,2,3]))),FD=y.lazy(()=>fe(()=>import("./rise-of-ai-phone-agents-in-modern-businesses-Ui0vWcAZ.js"),__vite__mapDeps([55,1,2,3]))),HD=y.lazy(()=>fe(()=>import("./conversational-ai-vs-voice-ai-C5DuuPrJ.js"),__vite__mapDeps([56,1,2,3]))),yw=y.lazy(()=>fe(()=>import("./ai-voice-technology-benefits-and-challenges-CEjq9o_R.js"),__vite__mapDeps([57,1,2,3]))),qD=y.lazy(()=>fe(()=>import("./why-ai-voice-assistants-are-the-future-of-customer-support-C-JLoK9v.js"),__vite__mapDeps([58,1,2,3]))),YD=y.lazy(()=>fe(()=>import("./how-businesses-use-ai-to-answer-customer-calls-automatically-MpxQp4hN.js"),__vite__mapDeps([59,1,2,3]))),GD=y.lazy(()=>fe(()=>import("./why-businesses-lose-leads-due-to-missed-calls-ROSTULgk.js"),__vite__mapDeps([60,1,2,3]))),WD=y.lazy(()=>fe(()=>import("./how-to-reduce-missed-customer-calls-using-ai-s6M_XKxy.js"),__vite__mapDeps([61,1,2,3]))),KD=y.lazy(()=>fe(()=>import("./how-to-automate-customer-calls-without-hiring-more-staff-CX0iTsr0.js"),__vite__mapDeps([62,1,2,3]))),XD=y.lazy(()=>fe(()=>import("./the-hidden-cost-of-missed-calls-for-businesses-DfmrWDTl.js"),__vite__mapDeps([63,1,2,3]))),QD=y.lazy(()=>fe(()=>import("./how-ai-voice-automation-improves-customer-response-time-CNHaruu0.js"),__vite__mapDeps([64,1,2,3]))),ZD=y.lazy(()=>fe(()=>import("./solving-customer-call-overload-with-ai-voice-technology-DO-wseF1.js"),__vite__mapDeps([65,1,2,3])));y.lazy(()=>fe(()=>import("./page-1nY57Hik.js"),__vite__mapDeps([66,1,2,3])));const JD=y.lazy(()=>fe(()=>import("./OnboardingPage-C2Mp6bUg.js"),__vite__mapDeps([67,1,2,28,3]))),$D=y.lazy(()=>fe(()=>import("./OnboardingQuestions-DtFIlZU3.js"),__vite__mapDeps([68,1,2,3]))),eB=y.lazy(()=>fe(()=>import("./Dashboard-BVxggEUE.js"),__vite__mapDeps([69,1,2,3,70]))),tB=y.lazy(()=>fe(()=>import("./BulkCalls-Bbt_YzEH.js"),__vite__mapDeps([71,1,2,3,70]))),sB=y.lazy(()=>fe(()=>import("./Calendar-BsG7KSpJ.js"),__vite__mapDeps([72,1,2,3,73]))),aB=y.lazy(()=>fe(()=>import("./CallHistory-nowqUm9n.js"),__vite__mapDeps([74,1,2,75,3,70]))),nB=y.lazy(()=>fe(()=>import("./Integrations-pj6nVuJz.js"),__vite__mapDeps([76,1,2,3]))),lB=y.lazy(()=>fe(()=>import("./CallOutcome-DXl9KLoE.js"),__vite__mapDeps([77,1,2,75,3,70]))),rB=y.lazy(()=>fe(()=>import("./AgentsPage-B32e5dVp.js"),__vite__mapDeps([78,1,2,79,3]))),iB=y.lazy(()=>fe(()=>import("./CreateAgent-BlxKlzoq.js"),__vite__mapDeps([80,1,2,3]))),oB=y.lazy(()=>fe(()=>import("./SettingsPage-DtcNtGYs.js"),__vite__mapDeps([81,1,2,3]))),cB=y.lazy(()=>fe(()=>import("./ShopifyAnalytics-FNdJGafv.js"),__vite__mapDeps([82,1,2,3]))),dB=y.lazy(()=>fe(()=>import("./CrmAnalytics-Bbr-px25.js"),__vite__mapDeps([83,1,2,3]))),uB=kn;function hB(){const[a,t]=y.useState(!1),[n,l]=y.useState(!1),[i,c]=y.useState(!1);y.useEffect(()=>{const f=()=>l(!0),p=()=>l(!1),x=async b=>{if(b?.detail?.force){c(!0);return}try{const v=localStorage.getItem("authToken");(await Me.get(`${kn}/api/user/profile`,{headers:{Authorization:`Bearer ${v}`}})).data?.user?.has_seen_platform_tour!==!0&&c(!0)}catch{}};return window.addEventListener("tour-open-sidebar",f),window.addEventListener("tour-close-sidebar",p),window.addEventListener("start-platform-tour",x),()=>{window.removeEventListener("tour-open-sidebar",f),window.removeEventListener("tour-close-sidebar",p),window.removeEventListener("start-platform-tour",x)}},[]);const u=async()=>{c(!1);try{const f=localStorage.getItem("authToken");await Me.post(`${kn}
245/api/user/complete-tour`,{},{headers:{Authorization:`Bearer ${f}`}})}catch{}},h=document.body.classList.contains("tour-steps-running");return e.jsxs("div",{className:`relative flex w-full min-h-screen font-sans bg-white max-lg:flex-col ${n||h?"mobile-menu-open":""}`,children:[e.jsx("div",{className:"lg:hidden",children:e.jsx(bO,{onMenuClick:()=>l(!0)})}),e.jsx(x7,{onCollapse:t,isMobileOpen:n||h,onMobileNavClick:()=>l(!1)}),n&&!h&&e.jsx("div",{className:"fixed inset-0 bg-[#0f172a]/40 z-[9998] backdrop-blur-[1px] lg:hidden",onClick:()=>l(!1)}),e.jsx("div",{className:`flex-1 p-6 bg-white min-h-screen transition-all duration-300 ${a?"ml-[100px]":"ml-[280px]"} max-lg:ml-0 max-lg:p-4`,children:e.jsx(mu,{})}),e.jsx(Sz,{run:i,onComplete:u})]})}function vw({isAuthenticated:a}){return a?e.jsx(mu,{}):e.jsx(bn,{to:"/auth/login",replace:!0})}function fB(){const{pathname:a}=Os();return y.useEffect(()=>{window.scrollTo(0,0),!a.startsWith("/app")&&!a.startsWith("/auth")&&!a.startsWith("/onboarding")&&!a.startsWith("/admin")?document.documentElement.classList.add("public-website"):document.documentElement.classList.remove("public-website")},[a]),null}const mB=a=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:a.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:t.url}))});function pB(){const t=Os().pathname;if(t==="/"||t.startsWith("/app")||t.startsWith("/auth")||t.startsWith("/onboarding-questions")||t.startsWith("/admin"))return null;const n=t.split("/").filter(Boolean),l=[{name:"Home",url:"https://www.voicerix.ai/"}];let i="https://www.voicerix.ai";return n.forEach(c=>{i+=`/${c}`;const u=c.split("-").map(h=>h.charAt(0).toUpperCase()+h.slice(1)).join(" ");l.push({name:u,url:i})}),e.jsx(pu,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify(mB(l))})})}function xB(){const[a,t]=y.useState(()=>{if(window.location.pathname.startsWith("/admin"))return!1;const u=localStorage.getItem("authToken");return!u||Yd(u)?(u&&(localStorage.removeItem("authToken"),localStorage.removeItem("userId"),localStorage.removeItem("loginExpiry")),!1):!0}),[n,l]=y.useState(()=>window.location.pathname.startsWith("/admin")?!1:localStorage.getItem("needsOnboarding")==="true");y.useEffect(()=>{const u=setTimeout(()=>{Me.get(`${uB}/api/health`)},3e3);return()=>clearTimeout(u)},[]);const i=(u=!1)=>{t(!0),l(u),localStorage.setItem("needsOnboarding",u?"true":"false")},c=()=>{l(!1),localStorage.setItem("needsOnboarding","false")};return e.jsx(y.Suspense,{children:e.jsxs(uC,{children:[e.jsx(fB,{}),e.jsx(pB,{}),e.jsx(pu,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"VoiceRix AI",url:"https://www.voicerix.ai",logo:"https://www.voicerix.ai/Voicerix_logo.png"})})}),e.jsxs(rN,{children:[e.jsx(K,{path:"/",element:a?n?e.jsx(bn,{to:"/onboarding-questions",replace:!0}):e.jsx(bn,{to:"/app/dashboard",replace:!0}):e.jsx(YR,{})}),e.jsx(K,{path:"/privacy-policy",element:e.jsx(GR,{})}),e.jsx(K,{path:"/terms-of-service",element:e.jsx(WR,{})}),e.jsx(K,{path:"/contact-us",element:e.jsx(XR,{})}),e.jsx(K,{path:"account-deletion",element:e.jsx(JR,{})}),e.jsxs(K,{element:e.jsx($R,{}),children:[e.jsx(K,{path:"/blog/what-is-an-ai-voice-agent",element:e.jsx(PD,{})}),e.jsx(K,{path:"/blog/what-is-an-ai-call-assistant",element:e.jsx(UD,{})}),e.jsx(K,{path:"/blog/ai-voice-automation",element:e.jsx(ID,{})}),e.jsx(K,{path:"/blog/ai-voice-automation-explained-in-simple-terms",element:e.jsx(VD,{})}),e.jsx(K,{path:"/blog/how-ai-voice-technology-works-in-business-calls",element:e.jsx(bw,{})}),e.jsx(K,{path:"/blog/rise-of-ai-phone-agents-in-modern-businesses",element:e.jsx(FD,{})}),e.jsx(K,{path:"/blog/conversational-ai-vs-voice-ai",element:e.jsx(HD,{})}),e.jsx(K,{path:"/blog/ai-voice-technology-benefits-and-challenges",element:e.jsx(yw,{})}),e.jsx(K,{path:"/blog/why-ai-voice-assistants-are-the-future-of-customer-support",element:e.jsx(qD,{})}),e.jsx(K,{path:"/blog/how-businesses-use-ai-to-answer-customer-calls-automatically",element:e.jsx(YD,{})}),e.jsx(K,{path:"/blog/why-businesses-lose-leads-due-to-missed-calls",element:e.jsx(GD,{})}),e.jsx(K,{path:"/blog/how-to-reduce-missed-customer-calls-using-ai",element:e.jsx(WD,{})}),e.jsx(K,{path:"/blog/how-to-automate-customer-calls-without-hiring-more-staff",element:e.jsx(KD,{})}),e.jsx(K,{path:"/blog/the-hidden-cost-of-missed-calls-for-businesses",element:e.jsx(XD,{})}),e.jsx(K,{path:"/blog/how-ai-voice-automation-improves-customer-response-time",element:e.jsx(QD,{})}),e.jsx(K,{path:"/blog/solving-customer-call-overload-with-ai-voice-technology",element:e.jsx(ZD,{})}),e.jsx(K,{path:"/solutions/healthcare",element:e.jsx(hD,{})}),e.jsx(K,{path:"/solutions/ecommerce",element:e.jsx(mD,{})}),e.jsx(K,{path:"/platform",element:e.jsx(fD,{})}),e.jsx(K,{path:"/about-us",element:e.jsx(pD,{})}),e.jsx(K,{path:"/partners",element:e.jsx(aw,{})}),e.jsx(K,{path:"/partner-program",element:e.jsx(aw,{})}),e.jsx(K,{path:"/case-studies",element:e.jsx(xD,{})}),e.jsx(K,{path:"/use-cases/lead-qualification-&-screening",element:e.jsx(Kx,{})}),e.jsx(K,{path:"/use-cases/emi-&-payment-reminders",element:e.jsx(nw,{})}),e.jsx(K,{path:"/use-cases/marketing-campaign-calls",element:e.jsx(gD,{})}),e.jsx(K,{path:"/solutions/banking-&-finance",element:e.jsx(lw,{})}),e.jsx(K,{path:"/solutions/insurance",element:e.jsx(bD,{})}),e.jsx(K,{path:"/use-cases/customer-feedback-&-surveys",element:e.jsx(yD,{})}),e.jsx(K,{path:"/solutions/travel-&-hospitality",element:e.jsx(vD,{})}),e.jsx(K,{path:"/solutions/telecom",element:e.jsx(jD,{})}),e.jsx(K,{path:"/solutions/logistics",element:e.jsx(AD,{})}),e.jsx(K,{path:"/solutions/customer-support",element:e.jsx(rw,{})}),e.jsx(K,{path:"/solutions/real-estate",element:e.jsx(BD,{})}),e.jsx(K,{path:"/solutions/stocks-&-forex-market",element:e.jsx(_D,{})}),e.jsx(K,{path:"/use-cases/order-confirmations",element:e.jsx(wD,{})}),e.jsx(K,{path:"/use-cases/transaction-confirmations",element:e.jsx(ND,{})}),e.jsx(K,{path:"/use-cases/ai-customer-support-calls",element:e.jsx(SD,{})}),e.jsx(K,{path:"/use-cases/appointment-booking-&-reminders",element:e.jsx(iw,{})}),e.jsx(K,{path:"/use-cases/call-routing",element:e.jsx(kD,{})}),e.jsx(K,{path:"/comparisons",element:e.jsx(CD,{})}),e.jsx(K,{path:"/comparisons/ai-voice-agent-vs-ivr",element:e.jsx(ow,{})}),e.jsx(K,{path:"/comparisons/ai-voice-bots-vs-call-centers",element:e.jsx(cw,{})}),e.jsx(K,{path:"/comparisons/conversational-ai-vs-chatbots",element:e.jsx(dw,{})}),e.jsx(K,{path:"/comparisons/voice-ai-vs-chatbots-for-customer-support",element:e.jsx(uw,{})}),e.jsx(K,{path:"/comparisons/ai-voice-automation-vs-traditional-phone-systems",element:e.jsx(hw,{})}),e.jsx(K,{path:"/comparisons/ai-voice-agents-vs-human-call-agents",element:e.jsx(fw,{})}),e.jsx(K,{path:"/comparisons/ai-voice-automation-vs-contact-center-software",element:e.jsx(mw,{})}),e.jsx(K,{path:"/comparisons/ai-call-automation-vs-manual-call-handling",element:e.jsx(pw,{})}),e.jsx(K,{path:"/ai-call-automation-vs-manual-call-handling",element:e.jsx(pw,{})}),e.jsx(K,{path:"/ai-voice-automation-vs-contact-center-software",element:e.jsx(mw,{})}),e.jsx(K,{path:"/ai-voice-agent-vs-ivr",element:e.jsx(ow,{})}),e.jsx(K,{path:"/ai-voice-agents-vs-human-call-agents",element:e.jsx(fw,{})}),e.jsx(K,{path:"/ai-voice-automation-vs-traditional-phone-systems",element:e.jsx(hw,{})}),e.jsx(K,{path:"/conversational-ai-vs-chatbots",element:e.jsx(dw,{})}),e.jsx(K,{path:"/voice-ai-vs-chatbots-for-customer-support",element:e.jsx(uw,{})}),e.jsx(K,{path:"/ai-voice-bots-vs-call-centers",element:e.jsx(cw,{})}),e.jsx(K,{path:"/ai-voice-automation",element:e.jsx(Qx,{})}),e.jsx(K,{path:"/ai-voice-agents",element:e.jsx(Xx,{})}),e.jsx(K,{path:"/customer-support-automation",element:e.jsx(rw,{})}),e.jsx(K,{path:"/ai-call-automation",element:e.jsx(gw,{})}),e.jsx(K,{path:"/lead-qualification",element:e.jsx(Kx,{})}),e.jsx(K,{path:"/conversational-ai",element:e.jsx(xw,{})}),e.jsx(K,{path:"/blog/how-ai-voice-automation-works",element:e.jsx(bw,{})}),e.jsx(K,{path:"/blog/benefits-of-ai-voice-agents",element:e.jsx(yw,{})}),e.jsx(K,{path:"/ai-guides",element:e.jsx(ED,{})}),e.jsx(K,{path:"/ai-guides/complete-guide-to-ai-voice-agents",element:e.jsx(Xx,{})}),e.jsx(K,{path:"/ai-guides/ai-voice-automation-beginner-guide",element:e.jsx(Qx,{})}),e.jsx(K,{path:"/ai-guides/voice-ai-technology",element:e.jsx(TD,{})}),e.jsx(K,{path:"/ai-guides/what-is-conversational-ai",element:e.jsx(xw,{})}),e.jsx(K,{path:"/ai-guides/ai-call-automation-explained-for-businesses",element:e.jsx(gw,{})}),e.jsx(K,{path:"/ai-guides/how-ai-voice-assistants-work",element:e.jsx(RD,{})}),e.jsx(K,{path:"/ai-guides/how-ai-voice-agents-work",element:e.jsx(OD,{})}),e.jsx(K,{path:"/ai-guides/complete-guide-to-ai-voice-agents-for-businesses",element:e.jsx(Xx,{})}),e.jsx(K,{path:"/ai-guides/understanding-ai-phone-agents-in-business-communication",element:e.jsx(MD,{})}),e.jsx(K,{path:"/ai-guides/how-businesses-use-ai-voice-automation-for-customer-support",element:e.jsx(zD,{})}),e.jsx(K,{path:"/ai-guides/implementing-ai-voice-automation-in-your-business",element:e.jsx(LD,{})}),e.jsx(K,{path:"/ai-guides/ai-voice-automation-the-ultimate-beginner-guide",element:e.jsx(Qx,{})}),e.jsx(K,{path:"/ai-guides/voice-ai-agents-versus-ivr-menus",element:e.jsx(Zx,{})}),e.jsx(K,{path:"/comparisons/voice-ai-agents-versus-ivr-menus",element:e.jsx(Zx,{})}),e.jsx(K,{path:"/voice-ai-agents-versus-ivr-menus",element:e.jsx(Zx,{})}),e.jsx(K,{path:"/solutions/banking-finance",element:e.jsx(lw,{})}),e.jsx(K,{path:"/use-cases/appointment-booking-reminders",element:e.jsx(iw,{})}),e.jsx(K,{path:"/use-cases/emi-payment-reminders",element:e.jsx(nw,{})}),e.jsx(K,{path:"/use-cases/lead-qualification-screening",element:e.jsx(Kx,{})}),e.jsx(K,{path:"/blog",element:e.jsx(DD,{})}),e.jsx(K,{path:"/request-submitted",element:e.jsx(ZR,{})})]}),e.jsxs(K,{path:"/auth",element:a?n?e.jsx(bn,{to:"/onboarding-questions",replace:!0}):e.jsx(bn,{to:"/app/dashboard",replace:!0}):e.jsx(gO,{}),children:[e.jsx(K,{path:"login",element:e.jsx(nO,{onLoginSuccess:i})}),e.jsx(K,{path:"signup",element:e.jsx(pO,{onLoginSuccess:i})}),e.jsx(K,{path:"signup/set-password",element:e.jsx(u4,{onLoginSuccess:i})}),e.jsx(K,{path:"forgot-password",element:e.jsx(xO,{})}),e.jsx(K,{index:!0,element:e.jsx(bn,{to:"login",replace:!0})})]}),e.jsx(K,{element:e.jsx(vw,{isAuthenticated:a}),children:e.jsx(K,{path:"/onboarding-questions",element:e.jsx($D,{onComplete:c})})}),e.jsx(K,{element:e.jsx(vw,{isAuthenticated:a}),children:e.jsxs(K,{path:"/app",element:e.jsx(hB,{}),children:[e.jsx(K,{path:"onboarding",element:e.jsx(JD,{})}),e.jsx(K,{path:"dashboard",element:e.jsx(eB,{})}),e.jsx(K,{path:"agents",element:e.jsx(rB,{})}),e.jsx(K,{path:"create-agent",element:e.jsx(iB,{})}),e.jsx(K,{path:"bulk-calls",element:e.jsx(tB,{})}),e.jsx(K,{path:"calendar",element:e.jsx(sB,{})}),e.jsx(K,{path:"call-history",element:e.jsx(aB,{})}),e.jsx(K,{path:"integrations",element:e.jsx(nB,{})}),e.jsx(K,{path:"call-outcome",element:e.jsx(lB,{})}
245),e.jsx(K,{path:"/app/settings",element:e.jsx(oB,{})}),e.jsx(K,{path:"/app/integrations/shopify/analytics",element:e.jsx(cB,{})}),e.jsx(K,{path:"/app/integrations/crm/analytics",element:e.jsx(dB,{})}),e.jsx(K,{index:!0,element:e.jsx(bn,{to:"dashboard",replace:!0})})]})}),e.jsx(K,{path:"/admin/*",element:e.jsx(uD,{})}),e.jsx(K,{path:"*",element:e.jsx(bn,{to:"/",replace:!0})})]})]})})}fS.createRoot(document.getElementById("root")).render(e.jsx(gN,{children:e.jsx(xB,{})}));export{GB as $,cT as A,yP as B,dT as C,EP as D,Y5 as E,gP as F,W8 as G,pu as H,Di as I,lP as J,SP as K,ru as L,as as M,oT as N,CP as O,p0 as P,bA as Q,q5 as R,rT as S,cO as T,Ts as U,Yl as V,rP as W,aT as X,dl as Y,kn as Z,jr as _,gu as a,Bt as a$,$5 as a0,Ed as a1,cP as a2,qB as a3,OP as a4,kP as a5,zP as a6,wP as a7,oP as a8,TP as a9,vP as aA,AP as aB,ce as aC,mP as aD,DP as aE,BP as aF,sT as aG,Fa as aH,At as aI,Ge as aJ,Cn as aK,Bi as aL,UT as aM,ZB as aN,IB as aO,HB as aP,XB as aQ,Os as aR,Cf as aS,$B as aT,NP as aU,sP as aV,WB as aW,nu as aX,ji as aY,Kl as aZ,g0 as a_,LP as aa,xP as ab,pP as ac,FB as ad,Z5 as ae,ie as af,Er as ag,KB as ah,jP as ai,Ui as aj,Me as ak,gt as al,K5 as am,m0 as an,RP as ao,Bo as ap,G5 as aq,Xb as ar,PP as as,tP as at,e4 as au,MP as av,dP as aw,lu as ax,JB as ay,hT as az,UB as b,ls as b0,Ms as b1,Vi as b2,fP as b3,bP as b4,iP as b5,eP as b6,_P as b7,Fb as b8,VB as b9,mc as c,hP as d,Bb as e,pT as f,x0 as g,X8 as h,yA as i,Pb as j,QB as k,G8 as l,$8 as m,Q5 as n,uT as o,iT as p,J5 as q,mT as r,X5 as s,fT as t,nP as u,YB as v,aP as w,uP as x,Z8 as y,Ib as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.