const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cart-drawer-BZDXJOVz.js","assets/jsx-runtime-B-hcVAMW.js","assets/link-3pG1Qaq7.js","assets/react-dom-sF8Euvcq.js","assets/useStore-MGSW8NGW.js","assets/useRouter-BGpAXxmD.js","assets/createLucideIcon-CLdWFMku.js","assets/arrow-right-D9dIjaq0.js","assets/truck-CSG_XpUA.js","assets/plus-qKI-KwZh.js","assets/trash-2-D9HI9O7Q.js","assets/catalog-D09J2EDp.js","assets/product-taxonomy-DaugGFK2.js","assets/pricing-DESEZYmu.js","assets/routes-Bb5z4ceH.js","assets/page-sections-C7eRmAKw.js","assets/chevron-right-CHJcvRU6.js","assets/map-pin-BupMBcH4.js","assets/types-B5Q2tyc0.js","assets/sections-1mkur10W.js","assets/accordion-B38eFSn8.js","assets/utils-DYLsJYUU.js","assets/dist-BjohMZT7.js","assets/dist-UKu6H-5S.js","assets/dist-D5UrcO62.js","assets/product-card-W9DlyfQV.js","assets/star-uDEKZL9z.js","assets/skeletons-CBNz2ZHE.js","assets/route-y3wRfjUw.js","assets/QueryClientProvider-BjElddVn.js","assets/client-hkSfcnbu.js","assets/tslib.es6-Tae09705.js","assets/about-BwbDqm7R.js","assets/auth-B6L5eGbm.js","assets/label-rlnt1j5T.js","assets/blog-CPJT84yY.js","assets/card-iCeQcnUe.js","assets/badge-sEfwlbbF.js","assets/brands-BhD78l7o.js","assets/checkout-BkuhV4dZ.js","assets/storefront.functions-DRBksYUy.js","assets/supabase-public-B-SdT9fc.js","assets/preload-helper-Czpn1I53.js","assets/textarea-B8zfRw_k.js","assets/contact-C3zN6nvy.js","assets/company-location-BPajGwOH.js","assets/faq-DTspmkYo.js","assets/useSuspenseQuery-CYa_TLTi.js","assets/useBaseQuery-C9nEXKk5.js","assets/industries-dHkLq28X.js","assets/products-ChUt5yer.js","assets/check-36OnHiEM.js","assets/select-DhyvEaCu.js","assets/es2015-B1PxsPqE.js","assets/products-sort-CYSkvxdQ.js","assets/return-policy-CDMWWxsY.js","assets/services-DsRSRuP8.js","assets/wishlist-B7TpNjMw.js","assets/admin-CsKnq2_n.js","assets/blog._slug-NG3n5Cu3.js","assets/category._slug-CvRoWHfb.js","assets/_city-CwWzABfm.js","assets/printers.index-D3HWnsXv.js","assets/printers-landing-CsQ0AeJp.js","assets/printers._group-CnEgTMYs.js","assets/product._slug-DG2QNSBH.js","assets/blog-DE_Fy6Q7.js","assets/blog-manager-CjEK9xyR.js","assets/alert-dialog-VdYDTIYl.js","assets/blog-comments-C3ZjV2GL.js"])))=>i.map(i=>d[i]); import{a as e,n as t,r as n,t as r}from"./jsx-runtime-B-hcVAMW.js";import{t as i}from"./react-dom-sF8Euvcq.js";import{A as a,C as o,D as s,E as c,M as l,O as u,S as d,T as f,_ as p,a as m,b as h,c as g,d as _,f as v,g as y,h as b,i as x,j as S,k as C,l as w,m as ee,n as te,o as ne,p as re,r as ie,s as ae,t as T,u as oe,v as se,w as ce,x as E,y as D}from"./link-3pG1Qaq7.js";import{n as le,t as ue}from"./not-found-i5RsCZif.js";import{n as de,r as fe,t as pe}from"./matchContext-B0YTMpvO.js";import{n as O,r as me,t as he}from"./useStore-MGSW8NGW.js";import{n as ge,t as k}from"./useRouter-BGpAXxmD.js";import{_ as _e,a as ve,c as A,d as ye,f as be,g as xe,h as Se,i as Ce,l as we,m as Te,o as Ee,p as De,r as Oe,s as ke,t as Ae,u as je,v as Me,y as Ne}from"./useBaseQuery-C9nEXKk5.js";import{t as Pe}from"./QueryClientProvider-BjElddVn.js";import{r as Fe,t as Ie}from"./supabase-public-B-SdT9fc.js";import{t as Le}from"./createLucideIcon-CLdWFMku.js";import{a as Re,i as ze,n as Be,r as Ve,t as He}from"./utils-DYLsJYUU.js";import{a as Ue,i as We,n as Ge,o as Ke,r as qe,t as Je}from"./dist-BjohMZT7.js";import{t as Ye}from"./dist-UKu6H-5S.js";import{a as Xe,i as Ze,n as Qe,o as $e,r as et,s as tt,t as nt}from"./es2015-B1PxsPqE.js";import{n as rt}from"./catalog-D09J2EDp.js";import{c as it,d as at,f as ot,l as st,p as ct,r as lt,u as ut}from"./product-taxonomy-DaugGFK2.js";import{a as dt,c as ft,i as pt,n as mt,o as j,r as ht,s as gt,t as _t}from"./types-B5Q2tyc0.js";import{t as vt}from"./client-hkSfcnbu.js";import{a as yt,i as bt,n as xt,r as St,t as Ct}from"./storefront.functions-DRBksYUy.js";import{t as M}from"./preload-helper-Czpn1I53.js";import{n as wt,r as Tt,t as Et}from"./company-location-BPajGwOH.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dt=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&T(x,t.startTime-e)}}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-eet&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&T(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(ne)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ne,re=function(){ae.postMessage(null)}}else re=function(){_(ne,0)};function T(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,T(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ot=n(((e,t)=>{t.exports=Dt()})),kt=n((e=>{var n=Ot(),r=t(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1de||(e.current=ue[de],ue[de]=null,de--)}function O(e,t){de++,ue[de]=e.current,e.current=t}var me=fe(null),he=fe(null),ge=fe(null),k=fe(null);function _e(e,t){switch(O(ge,t),O(he,e),O(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}pe(me),O(me,e)}function ve(){pe(me),pe(he),pe(ge)}function A(e){e.memoizedState!==null&&O(k,e);var t=me.current,n=Hd(t,e.type);t!==n&&(O(he,e),O(me,n))}function ye(e){he.current===e&&(pe(me),pe(he)),k.current===e&&(pe(k),Qf._currentValue=le)}var be,xe;function Se(e){if(be===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||``,xe=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Se(n):``}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se(`Lazy`);case 13:return e.child!==t&&t!==null?Se(`Suspense Fallback`):Se(`Suspense`);case 19:return Se(`SuspenseList`);case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return Se(`Activity`);default:return``}}function Ee(e){try{var t=``,n=null;do t+=Te(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var De=Object.prototype.hasOwnProperty,Oe=n.unstable_scheduleCallback,ke=n.unstable_cancelCallback,Ae=n.unstable_shouldYield,je=n.unstable_requestPaint,Me=n.unstable_now,Ne=n.unstable_getCurrentPriorityLevel,Pe=n.unstable_ImmediatePriority,Fe=n.unstable_UserBlockingPriority,Ie=n.unstable_NormalPriority,Le=n.unstable_LowPriority,Re=n.unstable_IdlePriority,ze=n.log,Be=n.unstable_setDisableYieldValue,Ve=null,He=null;function Ue(e){if(typeof ze==`function`&&Be(e),He&&typeof He.setStrictMode==`function`)try{He.setStrictMode(Ve,e)}catch{}}var We=Math.clz32?Math.clz32:qe,Ge=Math.log,Ke=Math.LN2;function qe(e){return e>>>=0,e===0?32:31-(Ge(e)/Ke|0)|0}var Je=256,Ye=262144,Xe=4194304;function Ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ze(n))):i=Ze(o):i=Ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ze(n))):i=Ze(o)):i=Ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function $e(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function et(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 tt(){var e=Xe;return Xe<<=1,!(Xe&62914560)&&(Xe=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function it(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=xn(),bn=yn=vn=null,or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ar(n)}}function P(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Nr=hn&&`documentMode`in document&&11>=document.documentMode,F=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||F==null||F!==Ht(r)||(r=F,`selectionStart`in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&kr(Fr,r)||(Fr=r,r=Ed(Pr,`onSelect`),0>=o,i-=o,Di=1<<32-We(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&ki(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),z&&ki(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&ki(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),z&&ki(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Oa(l)===r.type){n(e,r.sibling),c=i(r,a.props),Fa(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===v?(c=mi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=pi(a.type,a.key,a.props,null,e.mode,c),Fa(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=_i(a,e.mode,c),c.return=e,e=c}return s(e);case ne:return a=Oa(a),b(e,r,a,c)}if(ce(a))return h(e,r,a,c);if(T(a)){if(l=T(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Pa(a),c);if(a.$$typeof===S)return b(e,r,na(e,a),c);Ia(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=hi(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ba=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};E.T=s,Ps(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ga(c,r),pu(e)):Ns(e,t,r,pu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Ts(e).queue;Ss(e,i,t,le,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},pu())}function Ds(){return ta(Qf)}function Os(){return jo().memoizedState}function ks(){return jo().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(hu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=ai(e,t,n,r),n!==null&&(hu(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,pu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Or(s,o))return ii(e,t,i,0),q===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return hu(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(o(479))}else t=ai(e,n,r,2),t!==null&&hu(t,e,2)}function Fs(e){var t=e.alternate;return e===V||t!==null&&t===V}function Is(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ot(e,n)}}var Rs={readContext:ta,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};Rs.useEffectEvent=xo;var zs={readContext:ta,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){Ue(!0);try{e()}finally{Ue(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){Ue(!0);try{n(t)}finally{Ue(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ms.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Ss.bind(null,V,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,i=Ao();if(z){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),q===null)throw Error(o(349));Y&127||Vo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ls(Uo.bind(null,r,a,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),n},useId:function(){var e=Ao(),t=q.identifierPrefix;if(z){var n=Oi,r=Di;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[pt]=t,a[mt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return W(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=ge.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Pi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ri(t,!0)}else e=Bd(e).createTextNode(r),e[pt]=t,t.stateNode=e}return W(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[pt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(o(558))}return W(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[pt]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),i=!1}else i=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),W(t),null);case 4:return ve(),e===null&&Sd(t.stateNode.containerInfo),W(t),null;case 10:return Yi(t.type),W(t),null;case 19:if(pe(B),r=t.memoizedState,r===null)return W(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Lc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=uo(e),a!==null){for(t.flags|=128,Lc(r,!1),e=a.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return O(B,B.current&1|2),z&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Me()>tu&&(t.flags|=128,i=!0,Lc(r,!1),t.lanes=4194304)}}else{if(!i){if(e=uo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!z)return W(t),null}else 2*Me()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Lc(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(W(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Me(),e.sibling=null,n=B.current,O(B,i?n&1|2:n&1),z&&ki(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(W(t),t.subtreeFlags&6&&(t.flags|=8192)):W(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&pe(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),W(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function zc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(o(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(B),null;case 4:return ve(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&pe(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Bc(e,t){switch(Mi(t),t.tag){case 3:Yi(sa),ve();break;case 26:case 27:case 5:ye(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:pe(B);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&pe(va);break;case 24:Yi(sa)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Z(e,e.return,t)}}}function Wc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[mt]=t}catch(t){Z(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[pt]=e,t[mt]=n}catch(t){Z(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,Rd=sp,e=jr(e),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[pt]=e,wt(a),r=a;break a;case`link`:var s=Vf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=N(s,h),v=N(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=lu,lu=null;var a=au,s=su;if(iu=0,ou=au=null,su=0,K&6)throw Error(o(331));var c=K;if(K|=4,Pl(a.current),El(a,a.current,s,n),K=c,id(0,!1),He&&typeof He.onPostCommitFiberRoot==`function`)try{He.onPostCommitFiberRoot(Ve,a)}catch{}return!0}finally{D.p=i,E.T=r,Vu(e,t)}}function Wu(e,t,n){t=yi(n,t),t=Qs(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(rt(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=yi(n,e),n=$s(2),r=Wa(t,n,2),r!==null&&(ec(n,r,t,e),rt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>Me()-$l?!(K&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=tt()),e=oi(e,t),e!==null&&(rt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Oe(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-We(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=Qe(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||$e(r,a)||(n=!0,ld(r,a))}r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Me(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=M(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);wt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=M(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),wt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=M(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),wt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=M(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=M(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(jf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=M(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Af(e){return`href="`+Wt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),wt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Wt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,wt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),wt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,wt(i),i):(r=n,(i=mf.get(a))&&(r=m({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),wt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=kt()}));function jt(){try{return sessionStorage}catch{return}}var Mt=`tsr-scroll-restoration-v1_3`,Nt=jt();function Pt(){try{return JSON.parse(Nt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ft(){try{Nt?.setItem(Mt,JSON.stringify(It))}catch{}}var It=Pt(),Lt=`data-scroll-restoration-id`,Rt=e=>e.state.__TSR_key||e.href;function zt(e){let t=e.getAttribute(Lt);if(t)return`[${Lt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Bt=!1,Vt=`window`;function Ht(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ut(e){let t=new Set;for(let n of e){if(n===Vt)continue;let e=Ht(n);e&&t.add(e)}return t}function Wt(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Rt,a=new Set,o=e=>{let t=It[e]||={};for(let e of a)e===document?t[Vt]={scrollX,scrollY}:e.isConnected&&(t[zt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Bt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Bt||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ft()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=It[d];if(e){let t=It[u];for(let n in e){if(n===Vt){if(s)continue}else{let e=Ht(n);if(!e||s&&o&&(l??=Ut(o),l.has(e)))continue}t||=It[u]={},t[n]??=e[n]}}}Bt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ut(o));let t=e&&i&&c,s=r.restoring?It[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Vt){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ht(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Bt=!1}}))}function Gt(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Kt(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function qt(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Kt(r):Array.isArray(t)?t.push(Kt(r)):n[e]=[t,Kt(r)]}return n}var Jt=Xt(JSON.parse),Yt=Zt(JSON.stringify,JSON.parse);function Xt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=qt(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Zt(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Gt(e,r);return t?`?${t}`:``}}function Qt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function $t(e){return e instanceof Response&&!!e.options}function en(e){return{input:({url:t})=>{for(let n of e)t=nn(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=rn(e[n],t);return t}}}function tn(e){let t=ae(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=m([`/`,t,e.pathname]),e)}}function nn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function rn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function an(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{D(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var on=`__TSR_index`,sn=`popstate`,cn=`beforeunload`;function ln(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=pn(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[on];i=un(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[on];i=un(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[on]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function un(e,t){t||={};let n=mn();return{...t,key:n,__TSR_key:n,[on]:e}}function dn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>pn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=mn();t.history.replaceState({[on]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=pn(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[on]-l.state[on],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=ln({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(cn,x,{capture:!0}),t.removeEventListener(sn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(cn,x,{capture:!0}),t.addEventListener(sn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function fn(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function pn(e,t){let n=fn(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=mn();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[on]:0,key:a,__TSR_key:a}}}function mn(){return(Math.random()+1).toString(36).substring(7)}function hn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function gn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function _n({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function vn(e,t,n,r){for(let i of t){if(r?.()===!1)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r?.()===!1)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var yn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ie(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:dn()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=y(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=an(this.latestLocation,e),Wt(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=ae(a);t&&t!==`/`&&e.push(tn({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:en(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=b(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&ee(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:o})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),s=this.options.stringifySearch(i);return{href:e+s+r,publicHref:e+s+r,pathname:h(e).path,external:!1,searchStr:s,search:C(t?.search,i),hash:h(r.slice(1)).path,state:a(t?.state,o)}}let s=new URL(i,this.origin),c=nn(this.rewrite,s),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:h(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:C(t?.search,l),hash:h(c.hash.slice(1)).path,state:a(t?.state,o)}},r=n(e),{__tempLocation:i,__tempKey:o}=r.state;if(i&&(!o||o===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ne({base:e,to:t.includes(`//`)?te(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=v(w(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r[1],o=t.to?`${t.to}`:void 0,s=r[2],c=Object.assign(Object.create(null),r[3]),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=o?this.resolvePathWithBase(l,o):l,p=Tn(t.params,c),m=this.routesByPath[w(u)],g;if(m)g=this.getRouteBranch(m);else if(u.includes(`$`))g=[];else{let[e,t,n]=this.getMatchedRoutes(u);g=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&f(p))for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?u:h(x({path:u,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Sn(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Cn(v,t,g,e._includeValidateSearch),v=C(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?ce(t.hash,n.hash):void 0,S=b?`#${b}`:``,ee=t.state===!0?n.state:t.state?ce(t.state,n.state):{};ee=a(n.state,ee);let te=`${_}${y}${S}`,ne,re,ie=!1;if(this.rewrite){let e=new URL(te,this.origin),t=rn(this.rewrite,e);ne=e.href.replace(e.origin,``),t.origin===this.origin?re=t.pathname+t.search+t.hash:(re=t.href,ie=!0)}else ne=d(te),re=ne;return{publicHref:re,href:ne,pathname:_,search:v,searchStr:y,state:ee,hash:b??``,external:ie,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=_(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=Tn(s,n);r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=w(this.latestLocation.href)===w(n.href)&&E(_n(n.state),_n(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,i)this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,_redirects:a,href:o,...s}={})=>{if(o){let t=this.history.location.state.__TSR_index,n=pn(o,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);s.to=nn(this.rewrite,r).pathname,s.search=this.options.parseSearch(n.search),s.hash=n.hash.slice(1)}let c=this.buildLocation({...s,_includeValidateSearch:!0});a&&(c._redirects=a),this._pendingLocation=c;let l=this.commitLocation({...c,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===c&&(this._pendingLocation=void 0)}),l},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(c(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await xr(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(gn(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&hn(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=(e.options._builtLocation??this.buildLocation(e.options)).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&c(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=kn,this.preloadRoute=e=>Sr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=re(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!E(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?E(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Yt,parseSearch:e.parseSearch??Jt,protocolAllowlist:e.protocolAllowlist??se}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),o=n,s=!1;(i?i.path!==`/`&&r[`**`]:w(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let c=s?wn(this.options.notFoundMode,o):void 0,l=Array(o.length),u=this._committed,d=(e,t)=>{let n=u[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?u.find(t=>t.routeId===e.id):void 0},f;for(let n=0;n{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;n&&i.push(({search:e,next:t,meta:i})=>{let a=t(e);if(r)try{let e=Sn(n,a);if(i&&e)for(let t in e)t in a||(i.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=ce(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function wn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return fe}function Tn(e,t){return e===!1||e===null?Object.create(null):(e??!0)===!0?t:Object.assign(t,ce(e,t))}function En(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Dn(e,t){return e.options[t]?.preload?.()}function On(e,t){let n=Dn(e,`component`),r=Dn(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function kn(e,t,n){let r=()=>t===!1?void 0:t?Dn(e,t):On(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function An(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function zn(e,t){return e.routesById[t.routeId]}function Bn(e,t,n){return $t(e)?[Fn,e]:ue(e)?(e.routeId||=n,[Pn,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[Nn,e]:[Mn,e])}function Vn(e,t){let n=Bn(t,!0,e.id);if(n[0]!==Nn)return n;try{e.options.onError?.(n[1])}catch(t){n=Bn(t,!0,e.id)}return n}function Hn(e,t,n){return n[0].signal.aborted||!n[2]()?(n[0].abort(),[In]):Vn(e,t)}function Un(e,t){return n=>e.navigate({...n,_fromLocation:t})}async function Wn(e,t,n,r,i){let[a,o]=t,s=n[0].signal,c=!!n[4];for(let t=n[7]??0;te.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Kn(e,t){let n=t._flight;t._flight=void 0,Gn(e,t,n)?.abort()}function qn(e,t,n){let r=[];for(let i of t)if(!n?.includes(i)){let t=i._flight;i._flight=void 0;let n=Gn(e,i,t);n&&r.push(n)}for(let e of r)e.abort()}function Jn(e,t,n){let r=[];for(let i of t)if(!n.includes(i)){let t=i._flight;if(i._flight=void 0,t?.[2]===1&&e._flights?.get(i.id)===t&&n.some(e=>e.id===i.id))t[2]=0;else{let n=Gn(e,i,t);n&&r.push(n)}}for(let e of r)e.abort()}function Yn(e){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}function Xn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Zn(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Qn(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:Un(e,s),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function $n(e,t,n,r,i,a,o,s){let c=s.signal;if(c.aborted)return[In];if(!i)return[Mn,void 0];let l=n._flight;Zn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Qn(e,t,n,r,s,a,o))).then(e=>Bn(e,!1,r.id),e=>Bn(e,!0,r.id)).then(t=>(t[0]!==Mn&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Nn&&l[2]?Vn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],await Rn(l[0],c)}catch(t){if(t!==c)throw t;return Kn(e,n),[In]}finally{Zn(e,n,!1,s)}}function er(e,t,n){t[0]===Mn?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==Fn&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function tr(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Kn(e,r)}function nr(e,t){return t[0]===Nn||t[0]===Pn?{...e,status:t[0]===Nn?`error`:`notFound`,error:t[1],_flight:void 0}:e}function rr(e,t,n,r,i,a){let o=t[1][n],s=zn(e,o),c=!!a[4],l=c?e._cache.get(o.id):void 0,u,d=!1,f;try{if(o.status===`success`&&(u=s.options.shouldReload,typeof u==`function`&&(u=u(Qn(e,t,o,s,a[0],i,c))),a[2]()||(a[0].abort(),f=[In])),!f){if(o.status!==`success`)d=!0;else{let t=a[4]||o.preload?s.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:s.options.staleTime??e.options.defaultStaleTime??0;d=!!(o.invalid||u||u===void 0&&Date.now()-o.updatedAt>=t&&(a[6]||o.cause===`enter`||a[3].some(e=>e.routeId===o.routeId&&e.id!==o.id)))}}}catch(t){o.invalid=!0,Kn(e,o),f=Hn(s,t,a)}let p=s.options.loader,m=typeof p==`function`?p:p?.handler,h=(!c||s.options.preload!==!1)&&p?e._flights?.get(o.id):void 0;h===o._flight||f?h=void 0:h&&!d&&!c&&u===void 0?d=!0:d||(h=void 0);let g=!!(p&&d&&o.status===`success`&&!c&&!a[5]&&((typeof p==`function`?void 0:p?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),_=d&&(!c||s.options.preload!==!1),v=_&&!g&&(o.status!==`success`||!!p),y=s.lazyFn&&s._lazy!==!0?a[8]:void 0;if(_&&!p&&(o.invalid=!1,o.updatedAt=Date.now()),h&&h[2]++,v){let t=o._flight;o._flight=h,Gn(e,o,t)?.abort(),o.status===`success`&&(o.status=`pending`),a[8]?.()}_||(o.isFetching=!1);let b=(f?Promise.resolve(f):v?$n(e,t,o,s,m,i,c,a[0]):Promise.resolve([Mn,o.loaderData])).then(t=>(v&&(er(o,t,c),t[0]===Mn&&(c&&p&&!a[0].signal.aborted&&tr(e,o,l),o.status=`pending`)),t)),x=Rn(Promise.resolve().then(()=>kn(s,void 0,y)),a[0].signal).then(()=>void 0,e=>[n,Hn(s,e,a)]).then(e=>b.then(t=>(v&&!e&&t[0]===Mn&&o.status===`pending`&&a[2]()&&(o.status=`success`,a[8]?.()),e)));if(r.push([n,b,x]),!g)return b.then(e=>nr(o,e));let S={...o,status:`pending`,preload:!1,_flight:h};o.invalid=!1,o.isFetching=`loader`;let C=$n(e,t,S,s,m,i,!1,a[0]).then(e=>(o.isFetching=!1,er(S,e,!1),e));return(t[2]??=[]).push([n,C,x,S]),C.then(e=>nr(S,e))}async function ir(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=zn(e,t[n]),a=kn(i,!1);if(a)try{await Rn(a,r)}catch(e){if(e===r)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function ar(e,t){t[2]&&=(qn(e,t[2].map(e=>e[3])),void 0)}async function or(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=Fn)throw[a,t];!i&&t[0]!==Mn&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===Fn)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}async function sr(e,t,n,r,i,a,o){let s=t[1],c=await a,l=!1,u=s.findIndex(e=>e._notFound),d=t=>t[1][0]===Pn?ir(e,s,t,r.signal):t[0],f=u<0?s.length:u;if((c?.[1][0]??0)>=Fn)f=0;else if(c){f=c[2]??=await d(c);for(let e of n){if(e[0]>=f)break;let t=await e[1];if(t[0]!==Mn&&t[0]=f)break;let t=await e[2];if(t){c=t;break}}if((c?.[1][0]??0)>=Fn){let n=c[1];if(n[0]!==Fn||n[1].options.reloadDocument||i<20)return ar(e,t),n;l=!0,c=[0,[Nn,Error(`Too many redirects`)]]}let p=c?c[2]??await d(c):u;if(p>=0){let i=c?.[1],a=i?.[0],u=s[p],d=i?.[1],f=()=>{i&&(u._notFound=void 0,a===Nn?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};f();try{await Rn(i?Promise.resolve().then(()=>kn(zn(e,u),a===Nn?`errorComponent`:`notFoundComponent`)):Promise.all([kn(zn(e,u)),kn(zn(e,u),`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal)return ar(e,t),[In]}i?l&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),ar(e,t),qn(e,s),f()):(u.status=`success`,o?.())}return t}async function cr(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;te._notFound);if(e.options.notFoundMode!==`root`&&a>=0){let t=await ir(e,i[1],void 0,r[0].signal,a);t!==a&&(n[a]._notFound=void 0,n[t]._notFound=!0),a=t}let o=a<0?n.length:a+1,s=[],c=r[7]??0,l=c?Promise.resolve(i[1][c-1]):void 0,u=()=>{for(let t=c;t=Fn&&(o=0),u()),r[2]()&&!r[4]&&Yn(e);let f;try{let t=sr(e,i,s,r[0],r[1],or(s,d,i[2]),r[8]);i[2]?.length&&(i[3]=or(i[2],void 0,void 0,t.then(e=>Ln(e)?0:An(e[1]).length,()=>0))),f=await t}catch(t){throw ar(e,i),t}return Ln(f)?f:cr(e,f,r[0].signal,r[7]===f[1].length?r[7]:0)}function ur(e,t){let n=e.stores.matches.get();for(let r=0;r0){n[3]=setTimeout(()=>{dr(e,t)},r);return}n[2]=0}let d=t[3].map(e=>({...e,_flight:void 0}));d[s].status=`pending`;let f=e.startTransition(()=>e.stores.setMatches(d),d).then(t=>(t&&e._pending===n&&n[4]===f&&!n[2]&&(n[2]=Date.now()+c),t));n[4]=f}function fr(e,t){let n=e._pending;n?.[0]===t&&(clearTimeout(n[3]),e._pending=void 0)}function pr(e,t){e._committed=t,e.stores.setMatches(t)}function mr(e,t){qn(e,t[1]),ar(e,t)}function hr(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=An(n).length,s=new Map,c=Date.now();for(let t of[...i,...a.values()]){if(t.status!==`success`||n.some((e,n)=>e.id===t.id&&(n=(t.preload?r.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:r.options.gcTime??e.options.defaultGcTime??3e5)||s.set(t.id,a.get(t.id)===t?t:{...t,_flight:void 0,isFetching:!1,context:{}})}t[3]=[],e._cache=s,pr(e,n),qn(e,[...a.values(),...i],[...n,...s.values()]),vn(e,i,n,()=>e._tx===t)}async function gr(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function _r(e,t,n){await e.navigate({...n.options,replace:!0,ignoreBlocker:!0,_redirects:t[1]+1})}function vr(e,t){fr(e,t),t[0].abort(),qn(e,t[3]),t[3]=[],e._tx===t&&(e.batch(()=>{e.stores.status.set(`idle`),e.stores.setMatches(e._committed)}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0))}async function yr(e,t,n,r,i){let a=n.map(e=>({...e}));Xn(a);for(let t of r)Kn(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await sr(e,o,r,t[0],t[1],i)}catch(t){throw qn(e,a),t}if(Ln(s)){qn(e,a),s[0]===Fn&&e._tx===t&&e._committed===n&&await _r(e,t,s[1]);return}let c=await cr(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){qn(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Kn(e,n))}pr(e,c[1]),qn(e,n,c[1])}async function br(e,t,n,r,i,a){let o=[t[0],t[1],()=>e._tx===t&&!!t[3].length,e._committed,void 0,i,n,a,r],s=await lr(e,t[2],t[3],o);if(Ln(s)){s[0]===Fn&&e._tx===t?(fr(e,t),qn(e,t[3]),t[3]=[],e._tx===t&&await _r(e,t,s[1])):vr(e,t);return}let c=e._pending;if(c?.[0]===t&&(clearTimeout(c[3]),c[4])){let n=t[0].signal,r=!1;try{r=await Rn(c[4],n)}catch(e){if(e!==n)throw e}if(r&&e._pending===c&&c[0]===t){let e=c[2]-Date.now();if(e>0){try{await Rn(new Promise(t=>{c[3]=setTimeout(t,e)}),n)}catch{}clearTimeout(c[3])}}}if(e._tx!==t){fr(e,t),mr(e,s);return}let l=t[2],u=gn(l,e.stores.resolvedLocation.get()),d=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){mr(e,s);return}let n=await e.startTransition(()=>{fr(e,t),hr(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...u}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...u}))},s[1]);if(e._tx!==t){ar(e,s);return}d?.length&&yr(e,t,s[1],d,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(l),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...u}),n&&e._tx===t&&e.emit({type:`onRendered`,...u})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function xr(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await gr(e,n);return}let f=gn(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await gr(e,n);return}let p=i.href===a.href,m,h=u;try{m=e.matchRoutes(a,{_controller:u}),Xn(m)}catch(t){if(u.abort(),!$t(t)){await gr(e),e._commitPromise?.resolve(),e._commitPromise=void 0;return}await e.navigate({...t.options,replace:!0,ignoreBlocker:!0}),await gr(e,n);return}let g=l?c[1](m):void 0;if(g?h=l:l?.abort(),u.signal.aborted){qn(e,m),await gr(e,n);return}e._preflight=void 0;let _=[h,s,a,m,Date.now(),Promise.resolve().then(()=>br(e,_,p,()=>dr(e,_),t?.sync,g)).catch(()=>{e._tx===_&&vr(e,_)})];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&Zn(e,t,!1)}n[0].abort(),Jn(e,n[3],_[3])}if(e._tx!==_){qn(e,_[3]),_[3]=[],await gr(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),dr(e,_);try{await _[5]}finally{await gr(e,_)}}async function Sr(e,t,n=0){if(n>20)return;let r=t._builtLocation??e.buildLocation(t),i=e._committed,a=new AbortController,o;try{o=e.matchRoutes(r,{_controller:a}),Xn(o)}catch(e){a.abort(),ue(e)||console.error(e);return}(e._preloads??=new Map).set(a,o);let s;try{let t;try{t=await lr(e,r,o,[a,n,()=>!0,i,!0])}finally{s=e._preloads.delete(a),qn(e,o),a.abort()}if(!Ln(t))return t[1];if(s&&t[0]===Fn&&!t[1].options.reloadDocument)return Sr(e,{...t[1].options,_fromLocation:r},n+1)}catch(e){ue(e)||console.error(e)}}function Cr(e,t){if(e)return typeof e==`string`?e:e[t]}function wr(e){return e?.scriptFormat??`module`}function Tr(e,t,n){let r=Er(t),i=Cr(n,`script`)??r.crossOrigin;return{...wr(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Er(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Dr(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Or(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var kr=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||p();let r=n?fe:t?.path;r&&r!==`/`&&(r=g(r));let i=t?.id||r,a=n?fe:m([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=m([`/`,a]));let o=a===`__root__`?`/`:m([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Qt({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Ar=class extends kr{constructor(e){super(e)}},N=e(t(),1),P=r();function jr(e){return(0,P.jsx)(Mr,{...e})}var Mr=class extends N.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?N.createElement(this.props.errorComponent??Nr,{error:e,reset:this.reset}):this.props.children}};function Nr({error:e}){let[t,n]=N.useState(!1);return(0,P.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,P.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,P.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,P.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,P.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,P.jsx)(`div`,{children:(0,P.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,P.jsx)(`code`,{children:e.message}):null})}):null]})}var F=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(F||{});function Pr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Fr(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Ir=[],Lr=0,{link:Rr,unlink:zr,propagate:Br,checkDirty:Vr,shallowPropagate:Hr}=Pr({update(e){return e._update()},notify(e){Ir[Wr++]=e,e.flags&=~F.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=F.Mutable|F.Dirty,Jr(e))}}),Ur=0,Wr=0,Gr,Kr=0;function qr(e){try{++Kr,e()}finally{--Kr||Yr()}}function Jr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=zr(n,e)}function Yr(){if(!(Kr>0)){for(;Ur{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Gr,o=t?.compare??Object.is;if(n)Gr=i,++Lr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=F.Mutable|F.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Gr=a,n&&(i.flags&=~F.RecursedCheck),Jr(i)}}};return n?(i.flags=F.Mutable|F.Dirty,i.get=function(){let e=i.flags;if(e&F.Dirty||e&F.Pending&&Vr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Hr(e)}}else e&F.Pending&&(i.flags=e&~F.Pending);return Gr!==void 0&&Rr(i,Gr,Lr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Br(e),Hr(e),Yr())}},i}function Zr(e){let t=()=>{let t=Gr;Gr=n,++Lr,n.depsTail=void 0,n.flags=F.Watching|F.RecursedCheck;try{return e()}finally{Gr=t,n.flags&=~F.RecursedCheck,Jr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.Watching|F.RecursedCheck,notify(){let e=this.flags;e&F.Dirty||e&F.Pending&&Vr(this.deps,this)?t():this.flags=F.Watching},stop(){this.flags=F.None,this.depsTail=void 0,Jr(this)}};return t(),n}var Qr={};function $r(e,t){let n=N.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=a(n.current,i):i}}function ei(e){let t=k(),n=N.useContext(e.from?pe:de),r=e.from??n,i=t.stores.getMatchStore(r),a=$r(e,t),o=he(i,e=>e?a(e):Qr);if(o!==Qr)return o;(e.shouldThrow??!0)&&p()}function ti(e){return ei({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ni(e){let{select:t,...n}=e;return ei({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ri(e){return ei({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ii(e){return ei({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function ai(e){let t=k();return N.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function oi(e){return ei({...e,select:t=>e.select?e.select(t.context):t.context})}var si=class extends kr{constructor(e){super(e),this.useMatch=e=>ei({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>oi({...e,from:this.id}),this.useSearch=e=>ii({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ri({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ni({...e,from:this.id}),this.useLoaderData=e=>ti({...e,from:this.id}),this.useNavigate=()=>ai({from:this.fullPath}),this.Link=N.forwardRef((e,t)=>(0,P.jsx)(T,{ref:t,from:this.fullPath,...e}))}};function ci(e){return new si(e)}function li(){return e=>di(e)}var ui=class extends Ar{constructor(e){super(e),this.useMatch=e=>ei({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>oi({...e,from:this.id}),this.useSearch=e=>ii({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ri({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ni({...e,from:this.id}),this.useLoaderData=e=>ti({...e,from:this.id}),this.useNavigate=()=>ai({from:this.fullPath}),this.Link=N.forwardRef((e,t)=>(0,P.jsx)(T,{ref:t,from:this.fullPath,...e}))}};function di(e){return new ui(e)}function I(e){return e=>{let t=ci(e);return t.isRoot=!1,t}}function L(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(s(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(S)S(a());else throw a()}return N.createElement(r,e)};return o.preload=a,o}function fi(e){let t=k(),n=`not-found-${he(t.stores.location,e=>e.pathname)}-${he(t.stores.status,e=>e)}`;return(0,P.jsx)(jr,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function pi(){return(0,P.jsx)(`p`,{children:`Not Found`})}function mi(e){return(0,P.jsx)(P.Fragment,{children:e.children})}function hi(e,t,n){return t.options.notFoundComponent?(0,P.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,P.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,P.jsx)(pi,{})}function gi(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,P.jsx)(n,{}):null}var _i=(e,t)=>e[0]===t[0]&&e[1]===t[1],vi=N.memo(function({routeId:e}){let t=k();return(0,P.jsx)(yi,{router:t,match:he(t.stores.getMatchStore(e),e=>e)})});function yi({router:e,match:t}){let n=e.routesById[t.routeId],r=gi(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)?N.Suspense:mi,l=i?jr:mi,u=o?fi:mi;return(0,P.jsxs)(n.isRoot?n.options.shellComponent??mi:mi,{children:[(0,P.jsx)(de.Provider,{value:t.routeId,children:(0,P.jsx)(c,{fallback:r,children:(0,P.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(ue(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:(0,P.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return N.createElement(o,e)},children:s?(0,P.jsx)(O,{fallback:r,children:(0,P.jsx)(bi,{match:t})}):(0,P.jsx)(bi,{match:t})})})})}),null]})}var bi=N.memo(function({match:e}){let t=k(),n=e.routeId,r=t.routesById[n],i=N.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=N.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,P.jsx)(e,{},i):(0,P.jsx)(xi,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t._tx)throw t._tx[5];return gi(t,r)}if(e.status===`notFound`)return hi(t,r,e.error);if(e.status===`error`)throw e.error;return a}),xi=N.memo(function(){let e=k(),t=N.useContext(de),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=he(a,e=>[!!e._notFound,e.error],_i),i=he(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return hi(e,e.routesById[t],r);if(!i)return null;let a=(0,P.jsx)(vi,{routeId:i});return t===`__root__`?(0,P.jsx)(N.Suspense,{fallback:gi(e),children:a}):a});function Si(e,t){let n=e[1];e.length=0,n?.(t)}function Ci({t:e}){let t=k(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise((a,o)=>{Si(n,!1),n.push(i,a),e(t),N.startTransition(()=>{try{r()}catch(e){n[1]===a&&(n.length=0),o(e)}})}),l(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(w(r.publicHref)!==w(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...gn(a,a)})}):t._tx||t.load().catch(console.error),e},[t,t.history]),null}function wi(){let e=k(),t=e.routesById[fe],n=gi(e,t),r=e.ssr?mi:N.Suspense,i=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ci,{t:N.useState()[1]}),(0,P.jsx)(r,{fallback:n,children:(0,P.jsx)(Ti,{})})]});return e.options.InnerWrap?(0,P.jsx)(e.options.InnerWrap,{children:i}):i}function Ti(){let e=k(),t=e._rendered,n=he(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;l(()=>{t[0]===n&&Si(t,!0)},[t,n]);let a=i?(0,P.jsx)(vi,{routeId:i}):null;return(0,P.jsx)(de.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,P.jsx)(jr,{getResetKey:()=>r,onCatch:void 0,children:a})})}var Ei=e=>({createMutableStore:Xr,createReadonlyStore:Xr,batch:qr}),Di=e=>new Oi(e),Oi=class extends yn{constructor(e){super(e,Ei)}};function ki({router:e,children:t,...n}){f(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,P.jsx)(ge.Provider,{value:e,children:t});return e.options.Wrap?(0,P.jsx)(e.options.Wrap,{children:r}):r}function Ai({router:e,...t}){return(0,P.jsx)(ki,{router:e,...t,children:(0,P.jsx)(wi,{})})}function ji(e){let t=k({warn:e?.router===void 0}),n=e?.router||t;return he(n.stores.__store,$r(e,n))}function Mi(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ni(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,P.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,P.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,P.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,P.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,P.jsx)(Pi,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Pi({attrs:e,children:t,preventScriptHoist:n}){k();let r=me(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(N.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Mi(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Mi(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,P.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,P.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}function R(e,t,n,r){n=jn(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],s={},c;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)c||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:o(e)})}catch{}else{let e=r.name??r.property;if(e){if(s[e])continue;s[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}c&&a.push(c),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let l=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),u=e.ssr?.manifest,d=[];u&&(n.forEach(e=>{(u.routes[e.routeId]?.css)?.forEach(e=>{let n=Or(e);d.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Cr(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),u.inlineStyle&&d.push({tag:`style`,attrs:{...u.inlineStyle.attrs,nonce:t},children:u.inlineStyle.children,inlineCss:!0}));let f=[];u&&n.forEach(e=>{u.routes[e.routeId]?.preloads?.forEach(e=>{f.push({tag:`link`,attrs:{...Tr(u,e,r),nonce:t}})})});let p=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),m=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),h=[];return Dr(h,a),h.push(...f),Dr(h,l),h.push(...d),Dr(h,p),Dr(h,m),h}var z=e=>{let t=k(),n=t.options.ssr?.nonce,r=N.useCallback(r=>R(t,n,r,e),[e,n,t]);return he(t.stores.matches,r,E)};function Fi(e){let t=z(e.assetCrossOrigin),n=k().options.ssr?.nonce;return(0,P.jsx)(P.Fragment,{children:t.map(e=>(0,N.createElement)(Ni,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ii=At(),Li=class extends ve{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ri(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ee({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),A.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ri(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var zi=class extends Ne{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Li({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Bi(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Bi(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Bi(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Bi(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){A.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>be(t,e))}findAll(e={}){return this.getAll().filter(t=>be(e,t))}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return A.batch(()=>Promise.all(e.map(e=>e.continue().catch(Te))))}};function Bi(e){return e.options.scope?.id}var Vi=class extends Ne{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ye(r,t),a=this.get(i);return a||(a=new Ce({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>De(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>De(e,t)):t}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Hi=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Vi,this.#t=e.mutationCache||new zi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Me.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ke.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xe(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=we(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return A.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;A.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return A.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=A.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Te).catch(Te)}invalidateQueries(e,t={}){return A.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=A.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Te)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Te)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(xe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Te).catch(Te)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Te).catch(Te)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ke.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(je(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Se(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(je(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Se(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ye(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===_e&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function Ui(e,t){return Ae(e,Oe,t)}function Wi(e,t){try{console.error(`[Lovable Error Report]`,{message:e.message,stack:e.stack,...t}),typeof window<`u`&&window.__lovable_error_tracking&&window.__lovable_error_tracking(e,t)}catch(e){console.error(`Failed to report error:`,e)}}var Gi=(0,N.createContext)(null);function Ki(e,t,n){return e.productId===t&&(n===void 0||(e.variant??null)===n)}function qi({children:e}){let[t,n]=(0,N.useState)([]),[r,i]=(0,N.useState)([]),[a,o]=(0,N.useState)([]),[s,c]=(0,N.useState)(!1),l=(0,N.useCallback)((e,t=1,r=null)=>{n(n=>{let i=n.find(t=>t.productId===e.id&&t.variant===r);return i?n.map(e=>e===i?{...e,qty:Math.min(99,e.qty+t)}:e):[...n,{productId:e.id,slug:e.slug,title:e.title,brand:e.brand,price:e.price,image:e.image,qty:t,variant:r}]})},[]),u=(0,N.useCallback)((e,t,r)=>{n(n=>t<=0?n.filter(t=>!Ki(t,e,r)):n.map(n=>Ki(n,e,r)?{...n,qty:Math.min(99,t)}:n))},[]),d=(0,N.useCallback)((e,t)=>{n(n=>n.filter(n=>!Ki(n,e,t)))},[]),f=(0,N.useCallback)(()=>n([]),[]),p=(0,N.useCallback)(e=>{i(t=>t.includes(e)?t.filter(t=>t!==e):[e,...t])},[]),m=(0,N.useCallback)(e=>{o(t=>[e,...t.filter(t=>t!==e)].slice(0,8))},[]),h=(0,N.useMemo)(()=>{let e=t.reduce((e,t)=>e+t.qty,0),n=t.reduce((e,t)=>e+t.price*t.qty,0);return{items:t,count:e,subtotal:n,cartOpen:s,wishlist:r,recentlyViewed:a,setCartOpen:c,addToCart:l,setQty:u,removeFromCart:d,clearCart:f,toggleWishlist:p,isWishlisted:e=>r.includes(e),trackViewed:m}},[t,s,r,a,l,u,d,f,p,m]);return(0,P.jsx)(Gi.Provider,{value:h,children:e})}function Ji(){let e=(0,N.useContext)(Gi);if(!e)throw Error(`useShop must be used inside ShopProvider`);return e}var Yi=Le(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Xi=Le(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Zi=Le(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Qi=Le(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-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`}]]),$i=Le(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),ea=Le(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),ta=Le(`phone`,[[`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`}]]),na=Le(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ra=Le(`shopping-bag`,[[`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 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]),ia=Le(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),aa=Le(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),oa=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,sa=Be,ca=(e,t)=>n=>{if(t?.variants==null)return sa(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=oa(t)||oa(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return sa(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},la=ca(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),ua=N.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,P.jsx)(r?Ve:`button`,{className:He(la({variant:t,size:n,className:e})),ref:a,...i}));ua.displayName=`Button`;var da=N.forwardRef(({className:e,type:t,...n},r)=>(0,P.jsx)(`input`,{type:t,className:He(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));da.displayName=`Input`;var fa=Object.defineProperty,pa=(e,t)=>fa(e,`name`,{value:t,configurable:!0}),ma=`Dialog`,[ha,ga]=Ue(ma),[_a,va]=ha(ma),ya=pa(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=N.useRef(null),c=N.useRef(null),[l,u]=Ge({prop:r,defaultProp:i??!1,onChange:a,caller:ma}),[d,f]=N.useState(0),[p,m]=N.useState(0);return(0,P.jsx)(_a,{scope:t,triggerRef:s,contentRef:c,contentId:qe(),titleId:qe(),descriptionId:qe(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:N.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),ba=`DialogTrigger`,xa=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,...r}=e,i=va(ba,n),a=Re(t,i.triggerRef);return(0,P.jsx)(Ye.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Va(i.open),...r,ref:a,onClick:Ke(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Sa=`DialogPortal`,[Ca,wa]=ha(Sa,{forceMount:void 0}),Ta=pa(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=va(Sa,t);return(0,P.jsx)(Ca,{scope:t,forceMount:n,children:N.Children.map(r,e=>(0,P.jsx)(Je,{present:n||a.open,children:(0,P.jsx)(Ze,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Ea=`DialogOverlay`,Da=N.forwardRef(pa(function(e,t){let n=wa(Ea,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=va(Ea,e.__scopeDialog);return a.modal?(0,P.jsx)(Je,{present:r||a.open,children:(0,P.jsx)(ka,{...i,ref:t})}):null},`DialogOverlay`)),Oa=ze(`DialogOverlay.RemoveScroll`),ka=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,...r}=e,i=va(Ea,n),a=tt(),o=Re(t,a);return(0,P.jsx)(Qe,{as:Oa,allowPinchZoom:!0,shards:[i.contentRef],children:(0,P.jsx)(Ye.div,{"data-state":Va(i.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Aa=`DialogContent`,ja=N.forwardRef(pa(function(e,t){let n=wa(Aa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=va(Aa,e.__scopeDialog);return(0,P.jsx)(Je,{present:r||a.open,children:a.modal?(0,P.jsx)(Ma,{...i,ref:t}):(0,P.jsx)(Na,{...i,ref:t})})},`DialogContent`)),Ma=N.forwardRef(pa(function(e,t){let n=va(Aa,e.__scopeDialog),r=N.useRef(null),i=Re(t,n.contentRef,r);return N.useEffect(()=>{let e=r.current;if(e)return nt(e)},[]),(0,P.jsx)(Pa,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Ke(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ke(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Ke(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Na=N.forwardRef(pa(function(e,t){let n=va(Aa,e.__scopeDialog),r=N.useRef(!1),i=N.useRef(!1);return(0,P.jsx)(Pa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),Pa=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=va(Aa,n);return et(),(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(Xe,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,P.jsx)($e,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Va(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),Fa=`DialogTitle`,Ia=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,...r}=e,i=va(Fa,n),{setTitleCount:a}=i;return We(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,P.jsx)(Ye.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),La=`DialogDescription`,Ra=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,...r}=e,i=va(La,n),{setDescriptionCount:a}=i;return We(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,P.jsx)(Ye.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),za=`DialogClose`,Ba=N.forwardRef(pa(function(e,t){let{__scopeDialog:n,...r}=e,i=va(za,n);return(0,P.jsx)(Ye.button,{type:`button`,...r,ref:t,onClick:Ke(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Va(e){return e?`open`:`closed`}pa(Va,`getState`);var Ha=ya,Ua=xa,Wa=Ta,Ga=N.forwardRef(({className:e,...t},n)=>(0,P.jsx)(Da,{className:He(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));Ga.displayName=Da.displayName;var Ka=ca(`fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out`,{variants:{side:{top:`inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,bottom:`inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,left:`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,right:`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`}},defaultVariants:{side:`right`}}),qa=N.forwardRef(({side:e=`right`,className:t,children:n,...r},i)=>(0,P.jsxs)(Wa,{children:[(0,P.jsx)(Ga,{}),(0,P.jsxs)(ja,{ref:i,className:He(Ka({side:e}),t),...r,children:[(0,P.jsxs)(Ba,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,P.jsx)(aa,{className:`h-4 w-4`}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),n]})]}));qa.displayName=ja.displayName;var Ja=({className:e,...t})=>(0,P.jsx)(`div`,{className:He(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});Ja.displayName=`SheetHeader`;var Ya=N.forwardRef(({className:e,...t},n)=>(0,P.jsx)(Ia,{ref:n,className:He(`text-lg font-semibold text-foreground`,e),...t}));Ya.displayName=Ia.displayName;var Xa=N.forwardRef(({className:e,...t},n)=>(0,P.jsx)(Ra,{ref:n,className:He(`text-sm text-muted-foreground`,e),...t}));Xa.displayName=Ra.displayName;var Za=()=>Fe({queryKey:[`storefront-showcase`],queryFn:()=>bt(),staleTime:3e5}),Qa=()=>Fe({queryKey:[`storefront`],queryFn:()=>yt(),staleTime:3e5}),$a=()=>Fe({queryKey:[`content-pages`],queryFn:()=>Ct(),staleTime:3e5});function eo(e){let t=new Map;for(let n of e)t.set(n.id,{id:n.id,label:n.label,href:n.href,icon:n.icon,description:n.description,badge:n.badge,children:[]});let n=[];for(let r of e){let e=t.get(r.id);r.parent_id&&t.has(r.parent_id)?t.get(r.parent_id).children.push(e):n.push(e)}return n}var to=gt({method:`GET`}).handler(async()=>{let e=Ie(),[t,n,r,i,a,o,s]=await Promise.all([e.from(`site_settings`).select(`key,value`),e.from(`menus`).select(`id,slug`),e.from(`menu_items`).select(`id,menu_id,parent_id,label,href,icon,description,badge,position`).eq(`visible`,!0).order(`position`),e.from(`categories`).select(`id,name,slug,parent,parent_id,icon,image_url,is_featured,position,description`).order(`position`),e.from(`brands`).select(`id,name,slug,logo_url,is_featured,position`).eq(`active`,!0).order(`position`),e.from(`services`).select(`id,name,slug,icon,blurb,is_featured,position`).eq(`active`,!0).order(`position`),e.from(`industries`).select(`id,name,slug,icon,blurb,position`).eq(`active`,!0).order(`position`)]),c={};for(let e of t.data??[])c[e.key]=e.value??{};let l={};for(let e of n.data??[])l[e.slug]=eo((r.data??[]).filter(t=>t.menu_id===e.id));return{settings:c,menus:l,categories:i.data??[],brands:a.data??[],services:o.data??[],industries:s.data??[]}}),no=gt({method:`GET`}).inputValidator(e=>dt({slug:j().max(120)}).parse(e)).handler(async({data:e})=>{let t=Ie(),[n,r]=await Promise.all([t.from(`pages`).select(`*`).eq(`slug`,e.slug).maybeSingle(),t.from(`page_sections`).select(`*`).eq(`page_slug`,e.slug).order(`position`)]);return{page:n.data,sections:r.data??[]}}),ro=gt({method:`GET`}).handler(async()=>{let e=Ie(),[t,n,r,i,a]=await Promise.all([e.from(`promotions`).select(`*`).eq(`active`,!0).order(`position`),e.from(`partners`).select(`*`).eq(`active`,!0).order(`position`),e.from(`blog_posts`).select(`id,slug,title,excerpt,cover_url,author,category_slug,tags,is_featured,published_at`).eq(`status`,`published`).order(`published_at`,{ascending:!1}).limit(6),e.from(`faqs`).select(`*`).eq(`active`,!0).order(`position`),e.from(`testimonials`).select(`*`).eq(`active`,!0)]);return{promotions:t.data??[],partners:n.data??[],posts:r.data??[],faqs:i.data??[],testimonials:a.data??[]}});gt({method:`GET`}).handler(async()=>{let e=Ie(),[t,n]=await Promise.all([e.from(`blog_posts`).select(`id,slug,title,excerpt,cover_url,author,category_slug,tags,is_featured,published_at`).eq(`status`,`published`).order(`published_at`,{ascending:!1}),e.from(`blog_categories`).select(`*`).order(`position`)]);return{posts:t.data??[],categories:n.data??[]}}),gt({method:`GET`}).inputValidator(e=>dt({slug:j().max(160)}).parse(e)).handler(async({data:e})=>{let t=Ie(),{data:n}=await t.from(`blog_posts`).select(`*`).eq(`slug`,e.slug).eq(`status`,`published`).maybeSingle();if(!n)return null;let{data:r}=await t.from(`blog_posts`).select(`id,slug,title,excerpt,cover_url,published_at`).eq(`status`,`published`).neq(`slug`,e.slug).limit(3);return{post:n,related:r??[]}}),gt({method:`GET`}).handler(async()=>{let{data:e}=await Ie().from(`careers`).select(`*`).eq(`active`,!0).order(`created_at`);return e??[]}),gt({method:`GET`}).handler(async()=>{let{data:e}=await Ie().from(`brands`).select(`*`).eq(`active`,!0).order(`position`);return e??[]}),gt({method:`POST`}).inputValidator(e=>dt({productId:j().uuid(),author:j().trim().min(2).max(60),email:j().trim().email().max(255).optional().or(ht(``)),question:j().trim().min(10,`Add a bit more detail`).max(600)}).parse(e)).handler(async({data:e})=>{let{error:t}=await vt.from(`product_questions`).insert({product_id:e.productId,author:e.author,email:e.email||null,question:e.question,status:`pending`});if(t)throw Error(`We couldn't submit your question. Please try again.`);return{ok:!0}});var io=()=>Fe({queryKey:[`site`],queryFn:()=>to(),staleTime:6e4}),ao=e=>Fe({queryKey:[`page`,e],queryFn:()=>no({data:{slug:e}}),staleTime:6e4}),oo=()=>Fe({queryKey:[`marketing`],queryFn:()=>ro(),staleTime:6e4}),so={name:`AcetechIT`,tagline:`Enterprise ICT solutions for Kenyan business`,description:`AcetechIT supplies, deploys and supports enterprise IT for organisations across Kenya.`,email:`sales@acetechit.co.ke`,phone:`0792789878`,whatsapp:`0792789878`,address:`Moi Avenue, Rahimtullah Trust Building, 2nd Floor, Shop G11, Nairobi, Kenya`,hours:`Mon–Fri 8:30–17:30`,map_embed:wt};function co(e,t){return typeof e==`string`&&e.trim()?e:t}function lo(){let{data:e,isPending:t}=Ui(io()),n=e?.settings??{},r=e?.menus??{},i=n.company??{};return{isPending:t,company:{name:co(i.name,so.name),tagline:co(i.tagline,so.tagline),description:co(i.description,so.description),email:co(i.email,so.email),phone:co(i.phone,so.phone),whatsapp:co(i.whatsapp,so.whatsapp),address:co(i.address,so.address),hours:co(i.hours,so.hours),map_embed:co(i.map_embed,so.map_embed)},social:n.social??{},footer:n.footer??{},menu:e=>r[e]??[],categories:e?.categories??[],brands:e?.brands??[],services:e?.services??[],industries:e?.industries??[]}}function B(e,t=`Hello AcetechIT, I'd like a quote.`){let n=e.replace(/[^\d]/g,``);return`https://wa.me/${n.startsWith(`0`)&&n.length===10?`254${n.slice(1)}`:n}?text=${encodeURIComponent(t)}`}function uo(e){return`tel:${(e.split(/[/,|;]/)[0]?.trim()||e).replace(/[^\d+]/g,``)}`}var fo=[{label:`Services`,href:`/services`},{label:`Industries`,href:`/industries`},{label:`Blog`,href:`/blog`},{label:`Brands`,href:`/brands`},{label:`About`,href:`/about`},{label:`Contact`,href:`/contact`}],V=[`Laser printer`,`Business laptop`,`Toner`,`Portable SSD`,`Shredder`],H=`/assets/acetechit-logo-200x135-v1.png`;function po(){let{count:e,setCartOpen:t,wishlist:n}=Ji(),[r,i]=(0,N.useState)(``),{data:a}=Ui({...Qa(),enabled:r.trim().length>=2}),{company:o,categories:s,services:c,industries:l,menu:u}=lo(),d=(0,N.useMemo)(()=>a?.products??[],[a?.products]),[f,p]=(0,N.useState)(!1),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(!1),v=ai(),y=ji({select:e=>e.location.pathname}),b=it(s).map(e=>({name:e.name,label:at(e.name),slug:ct(e.name)})),x=u(`header`),S=x.length?x.map(e=>({label:e.label,href:e.href})):fo,C=(0,N.useMemo)(()=>{let e=r.trim().toLowerCase();return e.length<2?[]:d.filter(t=>t.title.toLowerCase().includes(e)||t.brand.toLowerCase().includes(e)||t.category.toLowerCase().includes(e)).slice(0,6)},[r,d]),w=(0,N.useMemo)(()=>{let e=r.trim().toLowerCase();return e.length<2?[]:[...new Set(d.map(e=>e.brand))].filter(t=>t.toLowerCase().includes(e)).slice(0,3)},[r,d]);if(y.startsWith(`/admin`))return null;let ee=e=>{v({to:`/products`,search:{q:e.trim()||void 0}}),p(!1)};return(0,P.jsxs)(`header`,{className:`sticky top-0 z-50 border-b border-border bg-background/95 backdrop-blur`,children:[(0,P.jsx)(`div`,{className:`hidden bg-brand-deep text-primary-foreground lg:block`,children:(0,P.jsxs)(`div`,{className:`container-shop flex items-center justify-between py-1.5 text-xs`,children:[(0,P.jsx)(`p`,{children:o.tagline}),(0,P.jsxs)(`div`,{className:`flex items-center gap-5`,children:[(0,P.jsx)(`span`,{children:o.hours}),(0,P.jsx)(`a`,{href:uo(o.phone),className:`hover:underline`,children:o.phone}),(0,P.jsx)(`a`,{href:`mailto:${o.email}`,className:`hover:underline`,children:o.email})]})]})}),(0,P.jsxs)(`div`,{className:`container-shop flex items-center gap-3 py-3`,children:[(0,P.jsxs)(Ha,{open:g,onOpenChange:_,children:[(0,P.jsx)(Ua,{asChild:!0,children:(0,P.jsx)(ua,{variant:`ghost`,size:`icon`,className:`lg:hidden`,"aria-label":`Open menu`,children:(0,P.jsx)($i,{})})}),(0,P.jsxs)(qa,{side:`left`,className:`w-80 overflow-y-auto`,children:[(0,P.jsx)(Ya,{className:`px-4 pt-4`,children:`Browse AcetechIT`}),(0,P.jsxs)(`nav`,{className:`mt-4 flex flex-col pb-8`,children:[(0,P.jsx)(`p`,{className:`px-4 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Categories`}),b.map(e=>(0,P.jsx)(T,{to:`/category/$slug`,params:{slug:e.slug},onClick:()=>_(!1),className:`px-4 py-3 text-sm transition-colors hover:bg-accent`,children:e.label},e.name)),(0,P.jsx)(`p`,{className:`mt-4 px-4 pb-1 text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Company`}),S.map(e=>(0,P.jsx)(`a`,{href:e.href,onClick:()=>_(!1),className:`px-4 py-3 text-sm transition-colors hover:bg-accent`,children:e.label},e.href))]})]})]}),(0,P.jsx)(T,{to:`/`,className:`flex shrink-0 items-center gap-2`,"aria-label":`Acetech Pro Limited home`,children:(0,P.jsx)(`img`,{src:H,alt:`Acetech Pro Limited — where technology meets excellence`,width:65,height:44,loading:`eager`,fetchPriority:`high`,decoding:`async`,className:`h-10 w-auto object-contain sm:h-11`})}),(0,P.jsxs)(`div`,{className:`relative hidden flex-1 md:block`,children:[(0,P.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),ee(r)},className:`flex items-center gap-2`,children:(0,P.jsxs)(`div`,{className:`flex flex-1 items-center rounded-full border border-input bg-surface pr-1 pl-2`,children:[(0,P.jsx)(da,{value:r,onChange:e=>i(e.target.value),onFocus:()=>p(!0),onBlur:()=>window.setTimeout(()=>p(!1),150),maxLength:80,placeholder:`Search products...`,"aria-label":`Search products`,className:`h-11 border-0 bg-transparent shadow-none focus-visible:ring-0`}),(0,P.jsx)(ua,{type:`submit`,size:`icon`,variant:`ghost`,className:`size-9 shrink-0 rounded-full text-muted-foreground hover:text-primary`,"aria-label":`Search`,children:(0,P.jsx)(na,{})})]})}),f&&(r.trim().length>=2?C.length>0||w.length>0:!0)&&(0,P.jsx)(`div`,{className:`absolute top-full right-0 left-0 z-50 mt-2 overflow-hidden rounded-md border border-border bg-popover shadow-mega`,children:r.trim().length<2?(0,P.jsxs)(`div`,{className:`p-4`,children:[(0,P.jsx)(`p`,{className:`text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Popular searches`}),(0,P.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-2`,children:V.map(e=>(0,P.jsx)(`button`,{type:`button`,onMouseDown:()=>ee(e),className:`rounded-full border border-border px-3 py-1 text-sm transition-colors hover:border-primary hover:text-primary`,children:e},e))})]}):(0,P.jsxs)(P.Fragment,{children:[w.length>0&&(0,P.jsx)(`div`,{className:`flex flex-wrap gap-2 border-b border-border p-3`,children:w.map(e=>(0,P.jsxs)(T,{to:`/products`,search:{brand:e},className:`rounded-full bg-brand-soft px-3 py-1 text-xs text-accent-foreground`,children:[`Brand · `,e]},e))}),(0,P.jsx)(`ul`,{children:C.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsxs)(T,{to:`/product/$slug`,params:{slug:e.slug},className:`flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent`,children:[(0,P.jsx)(`img`,{src:e.image,alt:``,width:40,height:40,className:`size-10 object-contain`}),(0,P.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:e.title}),(0,P.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:rt(e.price)})]})},e.id))})]})})]}),(0,P.jsxs)(`div`,{className:`ml-auto flex items-center gap-1.5`,children:[(0,P.jsx)(ua,{asChild:!0,variant:`ghost`,size:`icon`,className:`hidden size-11 rounded-full xl:inline-flex`,children:(0,P.jsx)(`a`,{href:uo(o.phone),"aria-label":`Call ${o.phone}`,children:(0,P.jsx)(ta,{})})}),(0,P.jsx)(ua,{asChild:!0,variant:`ghost`,size:`icon`,className:`hidden size-11 rounded-full xl:inline-flex`,children:(0,P.jsx)(`a`,{href:B(o.whatsapp),target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Chat on WhatsApp`,children:(0,P.jsx)(ea,{})})}),(0,P.jsx)(ua,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-11 rounded-full`,children:(0,P.jsx)(T,{to:`/wishlist`,"aria-label":`Wishlist (${n.length} saved)`,children:(0,P.jsx)(Zi,{})})}),(0,P.jsxs)(`button`,{type:`button`,onClick:()=>t(!0),"aria-label":`Cart (${e} items)`,className:`relative grid size-11 place-items-center rounded-full transition-colors hover:bg-accent`,children:[(0,P.jsx)(ra,{className:`size-5`}),e>0&&(0,P.jsx)(`span`,{className:`absolute top-1 right-0.5 grid size-5 place-items-center rounded-full bg-primary text-[11px] font-semibold text-primary-foreground`,children:e})]}),(0,P.jsxs)(T,{to:`/auth`,"aria-label":`My Account`,className:`flex items-center gap-2 rounded-full border border-border py-1 pr-3 pl-1 transition-colors hover:border-primary`,children:[(0,P.jsx)(`span`,{className:`grid size-8 place-items-center rounded-full bg-brand-soft text-accent-foreground`,children:(0,P.jsx)(ia,{className:`size-4`})}),(0,P.jsx)(`span`,{className:`hidden text-sm font-medium sm:inline`,children:`My Account`}),(0,P.jsx)(Yi,{className:`hidden size-4 text-muted-foreground sm:inline`})]})]})]}),(0,P.jsxs)(`div`,{className:`relative hidden border-t border-border lg:block`,onMouseLeave:()=>h(!1),children:[(0,P.jsxs)(`nav`,{className:`container-shop flex items-center gap-1 overflow-x-auto`,children:[(0,P.jsxs)(`button`,{type:`button`,onMouseEnter:()=>h(!0),onClick:()=>h(e=>!e),"aria-expanded":m,className:`flex shrink-0 items-center gap-2 bg-primary px-5 py-3.5 text-sm font-medium text-primary-foreground`,children:[(0,P.jsx)($i,{className:`size-4`,"aria-hidden":!0}),`All categories`,(0,P.jsx)(Yi,{className:`size-4 transition-transform ${m?`rotate-180`:``}`,"aria-hidden":!0})]}),b.map(e=>(0,P.jsx)(T,{to:`/category/$slug`,params:{slug:e.slug},onMouseEnter:()=>h(!1),className:`shrink-0 px-3 py-3.5 text-sm whitespace-nowrap transition-colors hover:text-primary xl:px-4`,children:e.label},e.name)),(0,P.jsx)(T,{to:`/products`,className:`ml-auto shrink-0 px-4 py-3.5 text-sm font-medium whitespace-nowrap text-primary`,children:`Deals & promotions`})]}),m&&(0,P.jsx)(`div`,{className:`absolute inset-x-0 top-full z-50 border-t border-border bg-popover shadow-mega`,children:(0,P.jsxs)(`div`,{className:`container-shop grid gap-8 py-8 lg:grid-cols-4`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Shop by category`}),(0,P.jsx)(`ul`,{className:`mt-3 space-y-2`,children:b.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/category/$slug`,params:{slug:e.slug},onClick:()=>h(!1),className:`text-sm transition-colors hover:text-primary`,children:e.label})},e.name))})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Services`}),(0,P.jsx)(`ul`,{className:`mt-3 space-y-2`,children:(c.length?c:[]).map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/services`,onClick:()=>h(!1),className:`text-sm transition-colors hover:text-primary`,children:e.name})},e.id))})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-xs font-semibold tracking-wide text-muted-foreground uppercase`,children:`Industries`}),(0,P.jsx)(`ul`,{className:`mt-3 space-y-2`,children:l.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/industries`,onClick:()=>h(!1),className:`text-sm transition-colors hover:text-primary`,children:e.name})},e.id))})]}),(0,P.jsxs)(`div`,{className:`rounded-lg bg-brand-soft p-6`,children:[(0,P.jsx)(`p`,{className:`font-display text-lg font-semibold`,children:`Need a corporate quote?`}),(0,P.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Volume pricing, leasing and framework supply for teams of any size.`}),(0,P.jsx)(T,{to:`/contact`,onClick:()=>h(!1),className:`mt-4 inline-block rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground`,children:`Request a quote`})]})]})})]})]})}var mo=e(i(),1);function ho(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var go=e=>{switch(e){case`success`:return yo;case`info`:return xo;case`warning`:return bo;case`error`:return So;default:return null}},_o=Array(12).fill(0),vo=({visible:e,className:t})=>N.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},N.createElement(`div`,{className:`sonner-spinner`},_o.map((e,t)=>N.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),yo=N.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},N.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),bo=N.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},N.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),xo=N.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},N.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),So=N.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},N.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Co=N.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},N.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),N.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),wo=()=>{let[e,t]=N.useState(document.hidden);return N.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},To=1,Eo=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:To++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],N.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Oo(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!N.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!N.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!N.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!N.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||To++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Do=(e,t)=>{let n=t?.id||To++;return Eo.addToast({title:e,...t,id:n}),n},Oo=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ko=Object.assign(Do,{success:Eo.success,info:Eo.info,warning:Eo.warning,error:Eo.error,custom:Eo.custom,message:Eo.message,promise:Eo.promise,dismiss:Eo.dismiss,loading:Eo.loading},{getHistory:()=>Eo.toasts,getToasts:()=>Eo.getActiveToasts()});ho(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Ao(e){return e.label!==void 0}var jo=3,Mo=`24px`,No=`16px`,Po=4e3,Fo=356,Io=14,Lo=45,Ro=200;function zo(...e){return e.filter(Boolean).join(` `)}function Bo(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Vo=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:ee=`Close toast`}=e,[te,ne]=N.useState(null),[re,ie]=N.useState(null),[ae,T]=N.useState(!1),[oe,se]=N.useState(!1),[ce,E]=N.useState(!1),[D,le]=N.useState(!1),[ue,de]=N.useState(!1),[fe,pe]=N.useState(0),[O,me]=N.useState(0),he=N.useRef(n.duration||y||Po),ge=N.useRef(null),k=N.useRef(null),_e=c===0,ve=c+1<=o,A=n.type,ye=n.dismissible!==!1,be=n.className||``,xe=n.descriptionClassName||``,Se=N.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Ce=N.useMemo(()=>n.closeButton??p,[n.closeButton,p]),we=N.useMemo(()=>n.duration||y||Po,[n.duration,y]),Te=N.useRef(0),Ee=N.useRef(0),De=N.useRef(0),Oe=N.useRef(null),[ke,Ae]=b.split(`-`),je=N.useMemo(()=>s.reduce((e,t,n)=>n>=Se?e:e+t.height,0),[s,Se]),Me=wo(),Ne=n.invert||t,Pe=A===`loading`;Ee.current=N.useMemo(()=>Se*x+je,[Se,je]),N.useEffect(()=>{he.current=we},[we]),N.useEffect(()=>{T(!0)},[]),N.useEffect(()=>{let e=k.current;if(e){let t=e.getBoundingClientRect().height;return me(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),N.useLayoutEffect(()=>{if(!ae)return;let e=k.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,me(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[ae,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Fe=N.useCallback(()=>{se(!0),pe(Ee.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Ro)},[n,d,a,Ee]);N.useEffect(()=>{if(n.promise&&A===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Me?(()=>{if(De.current{n.onAutoClose==null||n.onAutoClose.call(n,n),Fe()},he.current)),()=>clearTimeout(e)},[u,i,n,A,Me,Fe]),N.useEffect(()=>{n.delete&&(Fe(),n.onDismiss==null||n.onDismiss.call(n,n))},[Fe,n.delete]);function Ie(){return w?.loading?N.createElement(`div`,{className:zo(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":A===`loading`},w.loading):N.createElement(vo,{className:zo(C?.loader,n?.classNames?.loader),visible:A===`loading`})}let Le=n.icon||w?.[A]||go(A);return N.createElement(`li`,{tabIndex:0,ref:k,className:zo(_,be,C?.toast,n?.classNames?.toast,C?.default,C?.[A],n?.classNames?.[A]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":ae,"data-promise":!!n.promise,"data-swiped":ue,"data-removed":oe,"data-visible":ve,"data-y-position":ke,"data-x-position":Ae,"data-index":c,"data-front":_e,"data-swiping":ce,"data-dismissible":ye,"data-type":A,"data-invert":Ne,"data-swipe-out":D,"data-swipe-direction":re,"data-expanded":!!(u||S&&ae),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${oe?fe:Ee.current}px`,"--initial-height":S?`auto`:`${O}px`,...m,...n.style},onDragEnd:()=>{E(!1),ne(null),Oe.current=null},onPointerDown:e=>{e.button!==2&&(Pe||!ye||(ge.current=new Date,pe(Ee.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(E(!0),Oe.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(D||!ye)return;Oe.current=null;let e=Number(k.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(k.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ge.current?.getTime(),i=te===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Lo||a>.11){pe(Ee.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(te===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Fe(),le(!0);return}var o,s;(o=k.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=k.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),de(!1),E(!1),ne(null)},onPointerMove:t=>{var n,r;if(!Oe.current||!ye||window.getSelection()?.toString().length>0)return;let i=t.clientY-Oe.current.y,a=t.clientX-Oe.current.x,o=e.swipeDirections??Bo(b);!te&&(Math.abs(a)>1||Math.abs(i)>1)&&ne(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(te===`y`){if(o.includes(`top`)||o.includes(`bottom`)){if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&de(!0),(n=k.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=k.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Ce&&!n.jsx&&A!==`loading`?N.createElement(`button`,{"aria-label":ee,"data-disabled":Pe,"data-close-button":!0,onClick:Pe||!ye?()=>{}:()=>{Fe(),n.onDismiss==null||n.onDismiss.call(n,n)},className:zo(C?.closeButton,n?.classNames?.closeButton)},w?.close??Co):null,(A||n.icon||n.promise)&&n.icon!==null&&(w?.[A]!==null||n.icon)?N.createElement(`div`,{"data-icon":``,className:zo(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ie():null,n.type===`loading`?null:Le):null,N.createElement(`div`,{"data-content":``,className:zo(C?.content,n?.classNames?.content)},N.createElement(`div`,{"data-title":``,className:zo(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?N.createElement(`div`,{"data-description":``,className:zo(v,xe,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),N.isValidElement(n.cancel)?n.cancel:n.cancel&&Ao(n.cancel)?N.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Ao(n.cancel)&&ye&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Fe())},className:zo(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,N.isValidElement(n.action)?n.action:n.action&&Ao(n.action)?N.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Ao(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Fe())},className:zo(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Ho(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Uo(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?No:Mo;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Wo=N.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=jo,toastOptions:g,dir:_=Ho(),gap:v=Io,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=N.useState([]),C=N.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=N.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[ee,te]=N.useState([]),[ne,re]=N.useState(!1),[ie,ae]=N.useState(!1),[T,oe]=N.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),se=N.useRef(null),ce=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),E=N.useRef(null),D=N.useRef(!1),le=N.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Eo.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return N.useEffect(()=>Eo.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{mo.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),N.useEffect(()=>{if(d!==`system`){oe(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?oe(`dark`):oe(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{oe(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{oe(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),N.useEffect(()=>{x.length<=1&&re(!1)},[x]),N.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;re(!0),(t=se.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===se.current||se.current?.contains(document.activeElement))&&re(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),N.useEffect(()=>{if(se.current)return()=>{E.current&&(E.current.focus({preventScroll:!0}),E.current=null,D.current=!1)}},[se.current]),N.createElement(`section`,{ref:t,"aria-label":`${b} ${ce}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?N.createElement(`ol`,{key:t,dir:_===`auto`?Ho():_,tabIndex:-1,ref:se,className:c,"data-sonner-toaster":!0,"data-sonner-theme":T,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${ee[0]?.height||0}px`,"--width":`${Fo}px`,"--gap":`${v}px`,...m,...Uo(l,u)},onBlur:e=>{D.current&&!e.currentTarget.contains(e.relatedTarget)&&(D.current=!1,E.current&&=(E.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||D.current||(D.current=!0,E.current=e.relatedTarget)},onMouseEnter:()=>re(!0),onMouseMove:()=>re(!0),onMouseLeave:()=>{ie||re(!1)},onDragEnd:()=>re(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ae(!0)},onPointerUp:()=>ae(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>N.createElement(Vo,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ie,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:le,toasts:C.filter(e=>e.position==n.position),heights:ee.filter(e=>e.position==n.position),setHeights:te,expandByDefault:o,gap:v,expanded:ne,swipeDirections:e.swipeDirections}))):null}))}),Go=gt({method:`POST`}).inputValidator(e=>dt({productId:j().uuid(),author:j().trim().min(2,`Tell us your name`).max(60),email:j().trim().email(`Enter a valid email`).max(255).optional().or(ht(``)),rating:pt().int().min(1).max(5),title:j().trim().min(3,`Add a short headline`).max(90),body:j().trim().min(20,`Reviews need at least 20 characters`).max(1500)}).parse(e)).handler(async({data:e})=>{let{error:t}=await vt.from(`reviews`).insert({product_id:e.productId,author:e.author,email:e.email||null,rating:e.rating,title:e.title,body:e.body,status:`pending`,verified:!1});if(t)throw Error(`We couldn't save your review. Please try again.`);return{ok:!0}}),Ko=gt({method:`POST`}).inputValidator(e=>dt({email:j().trim().email().max(255)}).parse(e)).handler(async({data:e})=>{let{error:t}=await vt.from(`newsletter_subscribers`).insert({email:e.email.toLowerCase()});if(t&&t.code!==`23505`)throw Error(`We couldn't subscribe you right now. Please try again.`);return{ok:!0}}),qo=gt({method:`POST`}).inputValidator(e=>dt({name:j().trim().min(2).max(80),email:j().trim().email().max(255),subject:j().trim().min(3).max(120),message:j().trim().min(10).max(2e3)}).parse(e)).handler(async({data:e})=>{let{error:t}=await vt.from(`contact_messages`).insert(e);if(t)throw Error(`We couldn't send your message. Please try again.`);return{ok:!0}});function Jo(){let e=ft(Ko),[t,n]=(0,N.useState)(``),[r,i]=(0,N.useState)(null),[a,o]=(0,N.useState)(!1);return(0,P.jsxs)(`form`,{className:`mt-3 space-y-2`,noValidate:!0,onSubmit:async r=>{if(r.preventDefault(),i(null),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim())){i(`Enter a valid email address.`);return}o(!0);try{await e({data:{email:t.trim()}}),n(``),ko.success(`You're subscribed to AcetechIT deals.`)}catch{i(`Subscription failed. Please try again.`)}finally{o(!1)}},children:[(0,P.jsx)(`label`,{htmlFor:`newsletter-email`,className:`text-sm text-muted-foreground`,children:`Deals, stock alerts and price drops.`}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(da,{id:`newsletter-email`,type:`email`,value:t,maxLength:255,onChange:e=>n(e.target.value),placeholder:`you@company.co.ke`}),(0,P.jsx)(ua,{type:`submit`,disabled:a,children:a?`…`:`Join`})]}),r&&(0,P.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive`,children:r})]})}function Yo(){return(0,P.jsxs)(`footer`,{className:`mt-20 border-t border-border bg-surface text-surface-foreground`,children:[(0,P.jsxs)(`div`,{className:`container-shop grid gap-10 py-14 sm:grid-cols-2 lg:grid-cols-4`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`img`,{src:`/assets/acetechit-logo-200x135-v1.png`,alt:`Acetech Pro Limited`,width:65,height:44,loading:`lazy`,className:`h-11 w-auto object-contain`}),(0,P.jsx)(`p`,{className:`mt-3 max-w-xs text-sm text-muted-foreground`,children:`Genuine IT and office equipment for Kenyan businesses — printers, laptops, toners, shredders and storage, delivered nationwide.`})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-sm font-semibold`,children:`Shop`}),(0,P.jsx)(`ul`,{className:`mt-3 space-y-2 text-sm text-muted-foreground`,children:lt.map(e=>(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/category/$slug`,params:{slug:ct(e.name)},className:`transition-colors hover:text-primary`,children:at(e.name)})},e.name))})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-sm font-semibold`,children:`Support`}),(0,P.jsxs)(`ul`,{className:`mt-3 space-y-2 text-sm text-muted-foreground`,children:[(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/faq`,className:`transition-colors hover:text-primary`,children:`FAQ & delivery`})}),(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/return-policy`,className:`transition-colors hover:text-primary`,children:`Returns & refunds`})}),(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/contact`,className:`transition-colors hover:text-primary`,children:`Contact us`})}),(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/wishlist`,className:`transition-colors hover:text-primary`,children:`Your wishlist`})}),(0,P.jsx)(`li`,{children:(0,P.jsx)(T,{to:`/admin`,className:`transition-colors hover:text-primary`,children:`Admin dashboard`})})]})]}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`p`,{className:`text-sm font-semibold`,children:`Visit us`}),(0,P.jsxs)(`address`,{className:`mt-3 space-y-2 text-sm text-muted-foreground not-italic`,children:[(0,P.jsx)(`p`,{children:`Moi Avenue, Rahimtullah Trust Building`}),(0,P.jsx)(`p`,{children:`2nd Floor, Shop G11, Nairobi, Kenya`}),(0,P.jsx)(`p`,{children:`Mon–Fri 8:30am–6pm · Sat 9am–4pm`}),(0,P.jsx)(`p`,{children:`0712 016 568 / 0782 016 568 / 0792789878`}),(0,P.jsx)(`p`,{children:`sales@acetechit.co.ke`})]}),(0,P.jsx)(`a`,{href:Tt,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 inline-block text-sm text-primary underline`,children:`Get directions on Google Maps`}),(0,P.jsx)(Jo,{})]})]}),(0,P.jsxs)(`div`,{className:`border-t border-border py-6 text-center text-xs text-muted-foreground`,children:[`© `,new Date().getFullYear(),` AcetechIT Shop. Prices shown exclude 16% VAT. M-Pesa and card payments accepted.`]})]})}function Xo(){let{count:e,setCartOpen:t,wishlist:n}=Ji(),{company:r}=lo(),i=ji({select:e=>e.location.pathname});if(i.startsWith(`/admin`))return null;let a=e=>`flex min-h-14 flex-1 flex-col items-center justify-center gap-1 text-[11px] transition-colors ${e?`text-primary`:`text-muted-foreground`}`;return(0,P.jsx)(`nav`,{"aria-label":`Quick navigation`,className:`fixed inset-x-0 bottom-0 z-40 border-t border-border bg-background/95 backdrop-blur lg:hidden`,children:(0,P.jsxs)(`div`,{className:`flex`,children:[(0,P.jsxs)(T,{to:`/`,className:a(i===`/`),children:[(0,P.jsx)(Qi,{className:`size-5`,"aria-hidden":!0}),`Home`]}),(0,P.jsxs)(T,{to:`/products`,className:a(i.startsWith(`/products`)),children:[(0,P.jsx)(Xi,{className:`size-5`,"aria-hidden":!0}),`Shop`]}),(0,P.jsxs)(`a`,{href:B(r.whatsapp),target:`_blank`,rel:`noopener noreferrer`,className:a(!1),children:[(0,P.jsx)(ea,{className:`size-5`,"aria-hidden":!0}),`WhatsApp`]}),(0,P.jsxs)(T,{to:`/wishlist`,className:a(i.startsWith(`/wishlist`)),children:[(0,P.jsxs)(`span`,{className:`relative`,children:[(0,P.jsx)(Zi,{className:`size-5`,"aria-hidden":!0}),n.length>0&&(0,P.jsx)(`span`,{className:`absolute -top-1.5 -right-2 grid size-4 place-items-center rounded-full bg-primary text-[10px] text-primary-foreground`,children:n.length})]}),`Saved`]}),(0,P.jsxs)(`button`,{type:`button`,onClick:()=>t(!0),className:a(!1),children:[(0,P.jsxs)(`span`,{className:`relative`,children:[(0,P.jsx)(ra,{className:`size-5`,"aria-hidden":!0}),e>0&&(0,P.jsx)(`span`,{className:`absolute -top-1.5 -right-2 grid size-4 place-items-center rounded-full bg-primary text-[10px] text-primary-foreground`,children:e})]}),`Cart`]})]})})}function Zo(){let{company:e}=lo();return ji({select:e=>e.location.pathname}).startsWith(`/admin`)?null:(0,P.jsx)(`a`,{href:B(e.whatsapp),target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Chat with us on WhatsApp`,className:`fixed right-4 bottom-20 z-40 grid size-13 place-items-center rounded-full bg-primary text-primary-foreground shadow-lift transition-transform hover:scale-105 lg:bottom-6`,children:(0,P.jsx)(ea,{className:`size-6`,"aria-hidden":!0})})}var Qo=({...e})=>(0,P.jsx)(Wo,{className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e}),$o=`https://acetechit.co.ke`,es=`AcetechIT`,ts=`AcetechIT Shop`,ns=`Acetech Pro Limited`,rs=`Shop laptops, printers, toners, networking equipment, accessories and office technology in Kenya from AcetechIT.`,is=`/og-default.svg`;function U(e){return e.replace(/\s+/g,` `).trim()}function as(e){let t=(e||`https://acetechit.co.ke`).trim().replace(/\/+$/,``);try{return new URL(/^https?:\/\//i.test(t)?t:`https://${t}`).origin}catch{return $o}}var os=as({BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_CQ0IWC7a6YXikO3CmGBcww_T-uI9R1s`,VITE_SUPABASE_URL:`https://tkijujelrcaskibuamix.supabase.co`}.VITE_SITE_URL||{BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_SUPABASE_PUBLISHABLE_KEY:`sb_publishable_CQ0IWC7a6YXikO3CmGBcww_T-uI9R1s`,VITE_SUPABASE_URL:`https://tkijujelrcaskibuamix.supabase.co`}.VITE_PUBLIC_SITE_URL),ss=`${os}/#organization`,cs=`${os}/#website`;function ls(e=`/`){let t=e.trim();if(/^https?:\/\//i.test(t))return t;if(/^\/\//.test(t))return`https:${t}`;let[n,r=``]=t.split(`#`);return`${os}${n?.startsWith(`/`)?n:`/${n||``}`}${r?`#${r}`:``}`}function us(e){return ls(e||is)}function ds(e=`/`){return{rel:`canonical`,href:ls(e.split(`#`)[0]||`/`)}}function fs(e,t=155){let n=U(e);if(n.length<=t)return n;let r=n.slice(0,Math.max(0,t-3)),i=r.lastIndexOf(` `),a=i>Math.min(80,r.length/2)?i:r.length;return`${r.slice(0,a).trim()}...`}function ps(e){let t=U(e||`index,follow`);if(/\bnoindex\b/i.test(t))return t;let n=t.split(`,`).map(e=>e.trim()).filter(Boolean);for(let e of[`max-image-preview:large`,`max-snippet:-1`,`max-video-preview:-1`])n.some(t=>t.toLowerCase()===e)||n.push(e);return n.join(`,`)}function ms({title:e,description:t,path:n=`/`,type:r=`website`,image:i,imageAlt:a=`AcetechIT`,robots:o=`index,follow`}){let s=U(e),c=fs(t||`Shop laptops, printers, toners, networking equipment, accessories and office technology in Kenya from AcetechIT.`,160),l=ls(n.split(`#`)[0]||`/`),u=us(i),d=ps(o);return[{title:s},{name:`description`,content:c},{name:`author`,content:ns},{name:`robots`,content:d},{property:`og:title`,content:s},{property:`og:description`,content:c},{property:`og:type`,content:r},{property:`og:url`,content:l},{property:`og:site_name`,content:es},{property:`og:locale`,content:`en_KE`},{property:`og:image`,content:u},{property:`og:image:width`,content:`1200`},{property:`og:image:height`,content:`630`},{property:`og:image:alt`,content:U(a||s)},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:s},{name:`twitter:description`,content:c},{name:`twitter:image`,content:u},{name:`twitter:image:alt`,content:U(a||s)}]}function hs(e){return JSON.stringify(e).replace(/U(e.name).length>0).map((e,t)=>({"@type":`ListItem`,position:t+1,name:U(e.name),...e.path?{item:ls(e.path.split(`#`)[0]||`/`)}:{}}))}}function xs(e){let t=e?.replace(/\D/g,``)??``;return/^(?:\d{8}|\d{12}|\d{13}|\d{14})$/.test(t)?t:null}function Ss(e){let t=xs(e);return t?t.length===8?{gtin8:t}:t.length===12?{gtin12:t}:t.length===13?{gtin13:t}:{gtin14:t}:{}}function Cs(e,t){let n=new Set(t.map(e=>e.toLowerCase().trim()));return e.specs.find(e=>n.has(e.label.toLowerCase().replace(/[:\s]+$/g,``).trim()))?.value?.trim()||null}function ws(e){return Cs(e,[`mpn`,`manufacturer part number`,`part number`])}function Ts(e){let t=e.metaTitle?.trim();if(t)return U(t);let n=U(e.title);return/\bprice in kenya\b/i.test(n)?`${n} | ${es}`:`${n} Price in Kenya | ${es}`}function Es(e){let t=e.metaDescription?.trim();if(t)return fs(t,160);let n=U(e.brand||``),r=U(e.blurb||``),i=U(e.category||`IT products`);return fs([`${e.title} in Kenya from ${es}.`,`Buy ${e.title}${n?` by ${n}`:``} for ${rt(e.price)} ex VAT.`,`${r||`${i} product for office, business, and home use.`}`,`Fast delivery in Nairobi and countrywide shipping across Kenya.`].filter(Boolean).join(` `),160)}function Ds(e){let t=Math.min(5,Math.max(1,Number(e.rating)||1)),n=fs(e.author||`Customer`,99),r=U(e.title||``),i=U(e.body||``);return{"@type":`Review`,author:{"@type":`Person`,name:n},...e.created_at?{datePublished:e.created_at}:{},...r?{name:r}:{},...i?{reviewBody:i}:{},reviewRating:{"@type":`Rating`,ratingValue:t,bestRating:5,worstRating:1}}}function Os(e,t){let n=Number(e.price);return!Number.isFinite(n)||n<=0?null:{"@type":`Offer`,url:t,priceCurrency:`KES`,price:String(n),availability:e.stock>0?`https://schema.org/InStock`:`https://schema.org/OutOfStock`,seller:{"@type":`Organization`,"@id":ss,name:ns,url:os}}}function ks(e,t=[]){let n=ls(`/product/${e.slug}`),r=ws(e),i=[...new Set([e.image,...e.gallery].filter(Boolean))].map(e=>us(e)),a=t.map(Ds),o=Number(e.rating.average),s=Number(e.rating.count),c=Number.isFinite(o)&&Number.isFinite(s)&&o>=1&&o<=5&&s>0,l=U(e.blurb||Es(e));return{"@context":`https://schema.org`,"@type":`Product`,"@id":`${n}#product`,name:U(e.title),description:l,url:n,mainEntityOfPage:n,image:i,brand:{"@type":`Brand`,name:U(e.brand)},category:e.subcategory?`${U(e.category)} > ${U(e.subcategory)}`:U(e.category),...e.sku?.trim()?{sku:e.sku.trim()}:{},...r?{mpn:r}:{},...Ss(e.barcode),...e.color?.trim()?{color:e.color.trim()}:{},...e.size?.trim()?{size:e.size.trim()}:{},...e.specs.length?{additionalProperty:e.specs.slice(0,30).map(e=>({"@type":`PropertyValue`,name:U(e.label),value:U(e.value)}))}:{},...Os(e,n)?{offers:Os(e,n)}:{},...c?{aggregateRating:{"@type":`AggregateRating`,ratingValue:Number(o.toFixed(1)),reviewCount:s,bestRating:5,worstRating:1}}:{},...a.length?{review:a}:{}}}function As(e,t,n=`/products`){let r=[...new Map(e.map(e=>[e.slug,e])).values()];return{"@context":`https://schema.org`,"@type":`ItemList`,name:U(t),url:ls(n),numberOfItems:r.length,itemListOrder:`https://schema.org/ItemListOrderUnordered`,itemListElement:r.slice(0,50).map((e,t)=>{let n=ls(`/product/${e.slug}`),r=Os(e,n);return r?{"@type":`ListItem`,position:t+1,item:{"@type":`Product`,"@id":`${n}#product`,name:U(e.title),url:n,image:us(e.image),...e.brand?.trim()?{brand:{"@type":`Brand`,name:U(e.brand)}}:{},...e.sku?.trim()?{sku:e.sku.trim()}:{},offers:r}}:{"@type":`ListItem`,position:t+1,url:n,name:U(e.title)}})}}var js=`acetechit_campaign`,Ms=18e5,Ns=[`gclid`,`gbraid`,`wbraid`,`utm_source`,`utm_medium`,`utm_campaign`,`utm_term`,`utm_content`];function Ps(){try{let e=sessionStorage.getItem(js);if(!e)return null;let t=JSON.parse(e);return!t?.savedAt||Date.now()-t.savedAt>Ms?null:t}catch{return null}}function Fs(){let e=new URLSearchParams(window.location.search),t={savedAt:Date.now()};for(let n of Ns){let r=e.get(n);r&&(t[n]=r.slice(0,200))}if(!(!(t.gclid||t.gbraid||t.wbraid)&&!t.utm_source&&Ps()))try{sessionStorage.setItem(js,JSON.stringify(t))}catch{}}function Is(e){let t=Ps();if(!t)return e;try{let n=new URL(e,window.location.origin),r=new URLSearchParams(n.search),i=r.get(`text`);return i?r.set(`text`,`${i}\n\nRef: ${Ls(t)}`):r.set(`source`,Ls(t)),n.toString()}catch{return e}}function Ls(e){let t=e.utm_term?`${e.utm_term} (${e.utm_campaign??`ads`})`:e.utm_campaign??`google ads`;return e.gclid?`${t} gclid=${e.gclid}`:t}function Rs(){return(0,N.useEffect)(()=>{Fs()},[]),null}var zs=(0,N.lazy)(()=>M(()=>import(`./cart-drawer-BZDXJOVz.js`).then(e=>({default:e.CartDrawer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])));function Bs(){return(0,P.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,P.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,P.jsx)(`h1`,{className:`text-7xl font-bold text-foreground`,children:`404`}),(0,P.jsx)(`h2`,{className:`mt-4 text-xl font-semibold text-foreground`,children:`Page not found`}),(0,P.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,P.jsx)(`div`,{className:`mt-6`,children:(0,P.jsx)(T,{to:`/`,className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Go home`})})]})})}function Vs(){return(0,P.jsx)(`div`,{className:`flex min-h-[50vh] items-center justify-center px-4`,children:(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading AcetechIT...`})})}function Hs({error:e,reset:t}){console.error(e);let n=k();return(0,N.useEffect)(()=>{Wi(e,{boundary:`tanstack_root_error_component`})},[e]),(0,P.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background px-4`,children:(0,P.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,P.jsx)(`h1`,{className:`text-xl font-semibold tracking-tight text-foreground`,children:`This page didn't load`}),(0,P.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`Something went wrong on our end. You can try refreshing or head back home.`}),(0,P.jsxs)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2`,children:[(0,P.jsx)(`button`,{onClick:()=>{n.invalidate(),t()},className:`inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90`,children:`Try again`}),(0,P.jsx)(`a`,{href:`/`,className:`inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent`,children:`Go home`})]})]})})}var Us=li()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},...ms({title:`AcetechIT Shop | IT & Office Equipment in Kenya`,description:rs,path:`/`})],links:[{rel:`icon`,href:`/favicon.png`,type:`image/png`},{rel:`apple-touch-icon`,href:`/favicon.png`},{rel:`manifest`,href:`/site.webmanifest?v=2`}],scripts:[gs(vs())]}),component:Ws,pendingComponent:Vs,notFoundComponent:Bs,errorComponent:Hs});function Ws(){let{queryClient:e}=Us.useRouteContext();return(0,P.jsxs)(Pe,{client:e,children:[(0,P.jsx)(Fi,{}),(0,P.jsxs)(qi,{children:[(0,P.jsx)(Rs,{}),(0,P.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,P.jsx)(po,{}),(0,P.jsx)(`main`,{className:`flex-1`,children:(0,P.jsx)(xi,{})}),(0,P.jsx)(Yo,{}),(0,P.jsx)(`div`,{className:`h-14 lg:hidden`,"aria-hidden":!0})]}),(0,P.jsx)(Xo,{}),(0,P.jsx)(Zo,{}),(0,P.jsx)(Gs,{}),(0,P.jsx)(Qo,{})]})]})}function Gs(){let{cartOpen:e}=Ji(),[t,n]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{e&&n(!0)},[e]),e||t?(0,P.jsx)(N.Suspense,{fallback:null,children:(0,P.jsx)(zs,{})}):null}var Ks=()=>M(()=>import(`./routes-Bb5z4ceH.js`),__vite__mapDeps([14,1,2,3,4,5,15,6,16,17,12,18,19,20,21,22,23,24,25,26,11,27])),qs=`Laptops, Printers & IT Products in Kenya | AcetechIT`,Js=`Shop laptops, printers, printer supplies, networking, CCTV, storage, power and IT products in Kenya from AcetechIT. Genuine products, warranty and nationwide delivery.`,Ys=I(`/`)({head:()=>({meta:ms({title:qs,description:Js,path:`/`}),links:[ds(`/`)],scripts:[{type:`application/ld+json`,children:JSON.stringify(ys())}]}),loader:async({context:e})=>{Promise.allSettled([e.queryClient.ensureQueryData(ao(`home`)),e.queryClient.ensureQueryData(Za()),e.queryClient.ensureQueryData(io())]),e.queryClient.prefetchQuery(oo())},component:L(Ks,`component`)}),Xs=I(`/_authenticated`)({ssr:!1,beforeLoad:async()=>{let{data:e,error:t}=await vt.auth.getUser();if(t||!e.user)throw Qt({to:`/auth`});let{data:n,error:r}=await vt.rpc(`is_admin`);if(r)throw Error(`Unable to check dashboard access. Please try again.`);if(!n)throw Qt({to:`/auth`});return{user:e.user}},component:L(()=>M(()=>import(`./route-y3wRfjUw.js`),__vite__mapDeps([28,1,5,29,30,31])),`component`)}),Zs=I(`/about`)({head:()=>({meta:ms({title:`About AcetechIT | ICT Partner for Kenyan Organisations`,description:`Learn how AcetechIT supplies, deploys and supports enterprise technology for businesses, schools, NGOs and government across Kenya.`,path:`/about`}),links:[ds(`/about`)]}),loader:({context:e})=>{e.queryClient.ensureQueryData(ao(`about`)),e.queryClient.ensureQueryData(io()),e.queryClient.prefetchQuery(oo()),e.queryClient.prefetchQuery(Za())},component:L(()=>M(()=>import(`./about-BwbDqm7R.js`),__vite__mapDeps([32,1,15,2,3,4,5,6,16,17,12,18,19,20,21,22,23,24,25,26,11])),`component`)}),Qs=I(`/auth`)({ssr:!1,head:()=>({meta:[{title:`Sign in | AcetechIT Shop`},{name:`description`,content:`Sign in to manage AcetechIT orders, products and content.`},{property:`og:title`,content:`Sign in | AcetechIT Shop`},{property:`og:description`,content:`Account access for AcetechIT staff and customers.`},{property:`og:type`,content:`website`},{name:`robots`,content:`noindex`}]}),component:L(()=>M(()=>import(`./auth-B6L5eGbm.js`),__vite__mapDeps([33,1,2,3,4,5,29,30,31,34,21,23])),`component`)}),$s=vt,ec=dt({title:j().min(5,`Title must be at least 5 characters`).max(200),excerpt:j().min(10,`Excerpt must be at least 10 characters`).max(500),content:j().min(50,`Content must be at least 50 characters`),category:j().min(2).max(50),tags:_t(j()).default([]),status:mt([`draft`,`published`,`archived`]),publishDate:j().nullable().optional(),seoTitle:j().max(60).nullable().optional(),seoDescription:j().max(160).nullable().optional(),featuredImageUrl:j().url().nullable().optional(),featuredImageKey:j().nullable().optional()});function tc(e){return{id:String(e.id),slug:String(e.slug??``),title:String(e.title??``),excerpt:String(e.excerpt??``),content:String(e.content??e.body??``),featuredImageUrl:e.featured_image_url??null,featuredImageKey:e.featured_image_key??null,authorId:e.author_id??null,authorName:String(e.author_name??e.author??`AcetechIT`),category:String(e.category??e.category_slug??`General`),tags:Array.isArray(e.tags)?e.tags:[],status:e.status,publishDate:e.publish_date??e.published_at??null,seoTitle:e.seo_title??e.meta_title??null,seoDescription:e.seo_description??e.meta_description??null,viewCount:Number(e.view_count??0),likeCount:Number(e.like_count??0),shareCount:Number(e.share_count??0),createdAt:String(e.created_at??``),updatedAt:String(e.updated_at??``)}}var nc=gt({method:`POST`}).inputValidator(e=>ec.extend({slug:j().regex(/^[a-z0-9-]+$/,`Slug must be lowercase with hyphens`)}).parse(e)).handler(async({data:e})=>{let{error:t,data:n}=await $s.from(`blog_posts`).insert({slug:e.slug,title:e.title,excerpt:e.excerpt,content:e.content,category:e.category,tags:e.tags,status:e.status,publish_date:e.publishDate||null,seo_title:e.seoTitle||null,seo_description:e.seoDescription||null,featured_image_url:e.featuredImageUrl||null,featured_image_key:e.featuredImageKey||null,author_name:(await vt.auth.getUser()).data.user?.email||`Admin`,author_id:(await vt.auth.getUser()).data.user?.id}).select().single();if(t)throw Error(t.message);return n}),rc=gt({method:`POST`}).inputValidator(e=>dt({id:j().uuid()}).merge(ec.partial().extend({slug:j().optional()})).parse(e)).handler(async({data:e})=>{let{id:t,...n}=e,{error:r,data:i}=await $s.from(`blog_posts`).update({...n.title&&{title:n.title},...n.excerpt&&{excerpt:n.excerpt},...n.content&&{content:n.content},...n.category&&{category:n.category},...n.tags&&{tags:n.tags},...n.status&&{status:n.status},...n.publishDate!==void 0&&{publish_date:n.publishDate},...n.seoTitle!==void 0&&{seo_title:n.seoTitle},...n.seoDescription!==void 0&&{seo_description:n.seoDescription},...n.featuredImageUrl!==void 0&&{featured_image_url:n.featuredImageUrl},...n.featuredImageKey!==void 0&&{featured_image_key:n.featuredImageKey}}).eq(`id`,t).select().single();if(r)throw Error(r.message);return i}),ic=gt({method:`POST`}).inputValidator(e=>dt({id:j().uuid()}).parse(e)).handler(async({data:e})=>{let{error:t}=await $s.from(`blog_posts`).delete().eq(`id`,e.id);if(t)throw Error(t.message);return{ok:!0}}),ac=gt({method:`GET`}).inputValidator(e=>dt({slug:j()}).parse(e)).handler(async({data:e})=>{let{data:t,error:n}=await $s.from(`blog_posts`).select(`*`).eq(`slug`,e.slug).eq(`status`,`published`).single();if(n)throw Error(`Blog post not found`);let{data:r,error:i}=await $s.rpc(`increment_blog_engagement`,{post_id:t.id,metric:`view`});i&&console.warn(`Blog view count could not be recorded`,i.code);let a=t,o=r?.[0];return{...tc(a),viewCount:Number(o?.view_count??a.view_count??0),likeCount:Number(o?.like_count??a.like_count??0),shareCount:Number(o?.share_count??a.share_count??0)}}),oc=gt({method:`POST`}).inputValidator(e=>dt({postId:j().uuid(),metric:mt([`like`,`share`])}).parse(e)).handler(async({data:e})=>{let{data:t,error:n}=await $s.rpc(`increment_blog_engagement`,{post_id:e.postId,metric:e.metric});if(n)throw Error(n.message);return t?.[0]??null}),sc=gt({method:`GET`}).inputValidator(e=>dt({category:j().optional(),tag:j().optional(),limit:pt().default(10),offset:pt().default(0)}).parse(e)).handler(async({data:e})=>{let t=$s.from(`blog_posts`).select(`*`,{count:`exact`}).eq(`status`,`published`).order(`created_at`,{ascending:!1});e.category&&(t=t.eq(`category`,e.category)),e.tag&&(t=t.contains(`tags`,[e.tag]));let{data:n,count:r,error:i}=await t.range(e.offset,e.offset+e.limit-1);if(i)throw Error(i.message);return{posts:(n??[]).map(e=>tc(e)),total:r||0}}),cc=gt({method:`POST`}).inputValidator(e=>dt({postId:j().uuid(),authorName:j().min(2).max(100),authorEmail:j().email(),content:j().min(10).max(1e3)}).parse(e)).handler(async({data:e})=>{let{error:t}=await $s.from(`blog_comments`).insert({post_id:e.postId,author_name:e.authorName,author_email:e.authorEmail,content:e.content,status:`pending`});if(t)throw Error(t.message);return{ok:!0}}),lc=gt({method:`GET`}).inputValidator(e=>dt({postId:j().uuid()}).parse(e)).handler(async({data:e})=>{let{data:t,error:n}=await $s.from(`blog_comments`).select(`*`).eq(`post_id`,e.postId).eq(`status`,`approved`).order(`created_at`,{ascending:!1});if(n)throw Error(n.message);return t}),uc=gt({method:`POST`}).inputValidator(e=>dt({id:j().uuid(),status:mt([`pending`,`approved`,`rejected`])}).parse(e)).handler(async({data:e})=>{let{error:t}=await $s.from(`blog_comments`).update({status:e.status}).eq(`id`,e.id);if(t)throw Error(t.message);return{ok:!0}}),dc=gt({method:`POST`}).inputValidator(e=>dt({id:j().uuid()}).parse(e)).handler(async({data:e})=>{let{error:t}=await $s.from(`blog_comments`).delete().eq(`id`,e.id);if(t)throw Error(t.message);return{ok:!0}}),fc=I(`/blog`)({loader:async()=>sc({data:{limit:12}}),component:L(()=>M(()=>import(`./blog-CPJT84yY.js`),__vite__mapDeps([35,1,2,3,4,5,6,18,36,21,37])),`component`)}),pc=I(`/brands`)({head:()=>({meta:ms({title:`Technology Brands We Supply | AcetechIT Kenya`,description:`HP, Dell, Lenovo, Brother, Canon and more - genuine products from authorised channels, supplied and supported by AcetechIT.`,path:`/brands`}),links:[ds(`/brands`)]}),loader:({context:e})=>{e.queryClient.ensureQueryData(ao(`brands`)),e.queryClient.ensureQueryData(io()),e.queryClient.ensureQueryData(Qa()),e.queryClient.prefetchQuery(oo())},component:L(()=>M(()=>import(`./brands-BhD78l7o.js`),__vite__mapDeps([38,1,15,2,3,4,5,6,16,17,12,18,19,20,21,22,23,24,25,26,11])),`component`)}),mc=I(`/checkout`)({head:()=>({meta:[{title:`Secure Checkout | AcetechIT Shop`},{name:`description`,content:`Complete your AcetechIT order with guest checkout, promo codes, VAT breakdown and nationwide delivery.`},{property:`og:title`,content:`Secure Checkout | AcetechIT Shop`},{property:`og:description`,content:`Guest checkout with promo codes and M-Pesa.`},{property:`og:type`,content:`website`},{name:`robots`,content:`noindex`}]}),component:L(()=>M(()=>import(`./checkout-BkuhV4dZ.js`),__vite__mapDeps([39,1,2,3,4,5,6,7,8,17,11,12,18,40,41,30,31,42,34,21,23,43,13])),`component`)}),hc=I(`/contact`)({head:()=>({meta:ms({title:`Contact AcetechIT | Nairobi IT & Office Equipment`,description:`Talk to the AcetechIT team about quotes, bulk orders, service and delivery anywhere in Kenya.`,path:`/contact`}),links:[ds(`/contact`)]}),component:L(()=>M(()=>import(`./contact-C3zN6nvy.js`),__vite__mapDeps([44,1,18,45,34,21,23,3,43])),`component`)}),gc=I(`/faq`)({loader:({context:e})=>{e.queryClient.ensureQueryData($a())},head:()=>({meta:ms({title:`FAQ, Delivery & Warranty | AcetechIT Shop`,description:`Answers on delivery times, warranty, VAT, M-Pesa payments and bulk quotes for AcetechIT orders in Kenya.`,path:`/faq`}),links:[ds(`/faq`)]}),component:L(()=>M(()=>import(`./faq-DTspmkYo.js`),__vite__mapDeps([46,1,47,48,29,20,21,22,23,3,24])),`component`)}),_c=I(`/industries`)({head:()=>({meta:ms({title:`Industries We Serve | AcetechIT Kenya`,description:`Tailored ICT supply and support for education, healthcare, finance, government, hospitality and NGOs across Kenya.`,path:`/industries`}),links:[ds(`/industries`)]}),loader:({context:e})=>{e.queryClient.ensureQueryData(io())},component:L(()=>M(()=>import(`./industries-dHkLq28X.js`),__vite__mapDeps([49,1,2,3,4,5,7,6,27])),`component`)}),vc=()=>M(()=>import(`./products-ChUt5yer.js`),__vite__mapDeps([50,1,2,3,4,5,47,48,29,51,6,52,21,22,23,53,31,24,12,34,54,25,26,11])),yc=(e,t)=>typeof e==`string`&&e.trim()?e.trim().slice(0,t):void 0;function bc(e){if(typeof e==`number`&&Number.isFinite(e)&&e>0)return e;if(typeof e==`string`&&e.trim()){let t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}}var xc=I(`/products`)({validateSearch:e=>({category:yc(e.category,40),q:yc(e.q,80),brand:yc(e.brand,40),color:yc(e.color,30),size:yc(e.size,30),instock:e.instock===!0||e.instock===`true`||void 0,max:bc(e.max)}),loader:({context:e})=>e.queryClient.ensureQueryData(Qa()),head:({loaderData:e,match:t})=>{let n=t.search,r=ot(n.category),i=!!r,a=!!n.category&&!r,o=!!n.q||!!n.brand||!!n.color||!!n.size||!!n.instock||!!n.max,s=i&&!o,c=r?`/category/${ct(r.name)}`:`/products`,l=(e?.products??[]).filter(e=>!r||st(e.category,e.subcategory,r.name)),u=o||a||s&&l.length===0||!n.category&&!o&&l.length===0,d=s?r.title:n.q?`Search Results for ${n.q} | ${es}`:`IT Products in Kenya | Computers, Printers & More | ${es}`,f=s?r.description:`Shop IT products in Kenya from ${es}: laptops, printers, toners, networking, storage, power, phones, monitors and accessories with countrywide delivery.`,p=s?[{name:`Home`,path:`/`},{name:`Products`,path:`/products`},{name:r.navLabel,path:c}]:[{name:`Home`,path:`/`},{name:`Products`,path:`/products`}];return{meta:ms({title:d,description:f,path:c,robots:u?`noindex,follow`:`index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1`}),links:[ds(c)],scripts:u||l.length===0?[]:[gs(bs(p)),gs(As(l,d,c))]}},component:L(vc,`component`)}),Sc=I(`/return-policy`)({head:()=>({meta:ms({title:`Returns & Refunds Policy | AcetechIT`,description:`Learn how to report a damaged, faulty, or incorrect AcetechIT order within 7 days of delivery.`,path:`/return-policy`}),links:[ds(`/return-policy`)]}),component:L(()=>M(()=>import(`./return-policy-CDMWWxsY.js`),__vite__mapDeps([55,1,2,3,4,5])),`component`)}),Cc=I(`/services`)({head:()=>({meta:ms({title:`Managed ICT Services | AcetechIT Kenya`,description:`Procurement, deployment, managed support, networking and print management services for Kenyan enterprises from AcetechIT.`,path:`/services`}),links:[ds(`/services`)]}),loader:({context:e})=>{e.queryClient.ensureQueryData(io())},component:L(()=>M(()=>import(`./services-DsRSRuP8.js`),__vite__mapDeps([56,1,2,3,4,5,7,6,16,27])),`component`)}),wc=I(`/wishlist`)({loader:({context:e})=>{e.queryClient.ensureQueryData(Qa())},head:()=>({meta:[{title:`Your Wishlist | AcetechIT Shop`},{name:`description`,content:`Products you saved for later at AcetechIT Shop Kenya.`},{property:`og:title`,content:`Your Wishlist | AcetechIT Shop`},{property:`og:description`,content:`Saved products and recently viewed items.`},{property:`og:type`,content:`website`},{name:`robots`,content:`noindex`}]}),component:L(()=>M(()=>import(`./wishlist-B7TpNjMw.js`),__vite__mapDeps([57,1,2,3,4,5,47,48,29,25,26,6,21,11,12])),`component`)}),Tc=I(`/_authenticated/admin`)({head:()=>({meta:[{title:`Admin Dashboard | AcetechIT Shop`},{name:`description`,content:`Manage AcetechIT products, orders, reviews and marketing.`},{property:`og:title`,content:`Admin Dashboard | AcetechIT`},{property:`og:description`,content:`Sales, inventory, orders and content management.`},{property:`og:type`,content:`website`},{name:`robots`,content:`noindex`}]}),component:L(()=>M(()=>import(`./admin-CsKnq2_n.js`),__vite__mapDeps([58,1,29,6,52,3,51,21,22,23,53,31,24,26,11,12,30,42])),`component`)}),Ec=I(`/blog/$slug`)({loader:async({params:e})=>{try{let t=await ac({data:{slug:e.slug}});return{post:t,comments:await lc({data:{postId:t.id}})}}catch{throw le()}},head:({loaderData:e})=>{let t=e?.post;if(!t)return{};let n=`/blog/${t.slug}`,r={"@context":`https://schema.org`,"@type":`BlogPosting`,headline:t.seoTitle||t.title,description:t.seoDescription||t.excerpt,image:t.featuredImageUrl,datePublished:t.publishDate||t.createdAt,dateModified:t.updatedAt,author:{"@type":`Person`,name:t.authorName}};return{meta:[...ms({title:t.seoTitle||t.title,description:t.seoDescription||t.excerpt,path:n,type:`article`,image:t.featuredImageUrl,imageAlt:t.title}),{property:`article:published_time`,content:t.publishDate||t.createdAt},{property:`article:author`,content:t.authorName},{property:`article:section`,content:t.category},...t.tags.map(e=>({property:`article:tag`,content:e}))],links:[ds(n)],scripts:[gs(r)]}},component:L(()=>M(()=>import(`./blog._slug-NG3n5Cu3.js`),__vite__mapDeps([59,1,2,3,4,5,18,34,21,23,43,36,37])),`component`)}),Dc=I(`/category/$slug`)({loader:async({context:e,params:t})=>{let n=ut(t.slug);if(!n)throw le();return{category:n,products:(await e.queryClient.ensureQueryData(Qa())).products}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Category not found | AcetechIT`},{name:`robots`,content:`noindex`}]};let t=e.category,n=at(t.name),r=`/category/${ct(t.name)}`,i=`${n} in Kenya | AcetechIT Shop`,a=`${t.description} Browse genuine brands, current prices and Kenya-wide delivery from AcetechIT.`,o=(e.products??[]).filter(e=>st(e.category,e.subcategory,t.name));return{meta:ms({title:i,description:a,path:r}),links:[ds(r)],scripts:[gs(bs([{name:`Home`,path:`/`},{name:n,path:r}])),...o.length>0?[gs(As(o,i,r))]:[]]}},component:L(()=>M(()=>import(`./category._slug-CvRoWHfb.js`),__vite__mapDeps([60,1,2,3,4,5,47,48,29,12,42,25,26,6,21,11])),`component`)}),Oc=()=>M(()=>import(`./_city-CwWzABfm.js`),__vite__mapDeps([61,1,2,3,4,5])),kc={nairobi:{city:`Nairobi`,slug:`nairobi`,title:`Laptops in Nairobi | IT Products & Office Equipment | AcetechIT`,description:`Buy laptops in Nairobi, printers, networking equipment, CCTV systems and office tech from AcetechIT with fast delivery across Nairobi and Kenya.`,intro:`Find laptops, printers, office equipment and networking products in Nairobi from AcetechIT. We support homes, offices, schools and businesses across Nairobi County with fast delivery and expert guidance.`},mombasa:{city:`Mombasa`,slug:`mombasa`,title:`IT Products in Mombasa | Laptops, Printers & Networking | AcetechIT`,description:`Shop laptops in Mombasa, printers, CCTV, networking gear and office equipment from AcetechIT with delivery around Mombasa County and nationwide.`,intro:`Buy laptops, printers, CCTV systems and networking equipment in Mombasa from AcetechIT. We help businesses and households throughout Mombasa with reliable delivery and dependable support.`},kisumu:{city:`Kisumu`,slug:`kisumu`,title:`IT Products in Kisumu | Laptops, Printers & Office Equipment | AcetechIT`,description:`Buy laptops, printers and office equipment in Kisumu from AcetechIT with delivery across Kisumu and Western Kenya.`,intro:`Need laptops in Kisumu, office equipment, printers or networking products? AcetechIT supplies quality tech across Kisumu with reliable delivery and practical support.`},nakuru:{city:`Nakuru`,slug:`nakuru`,title:`IT Products in Nakuru | Laptops, Printers & Networking | AcetechIT`,description:`Find laptops in Nakuru, printers, networking systems and office technology from AcetechIT with delivery across Nakuru and Kenya.`,intro:`Shop laptops, printers, networking gear and office tech in Nakuru from AcetechIT. We deliver to homes, businesses and institutions across Nakuru County and beyond.`},eldoret:{city:`Eldoret`,slug:`eldoret`,title:`IT Products in Eldoret | Laptops, Printers & Office Tech | AcetechIT`,description:`Buy laptops, printers and computer accessories in Eldoret from AcetechIT with delivery across Eldoret and the wider region.`,intro:`From laptops and printers to office technology and networking gear, AcetechIT serves customers across Eldoret with fast delivery and dependable product support.`}},Ac=I(`/locations/$city`)({loader:({params:e})=>{let t=kc[e.city?.toLowerCase()??``];if(!t)throw le();return t},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Location not found | AcetechIT`},{name:`robots`,content:`noindex`}]};let t=`/locations/${e.slug}`;return{meta:ms({title:e.title,description:e.description,path:t}),links:[ds(t)]}},component:L(Oc,`component`)}),jc=/ink bottle|ink tank bottle|toner|cartridge|printhead|ribbon|drum|fuser|maintenance box|refill|waste/i,Mc=[{slug:`printers`,adGroup:`Printers | General`,label:`All printers`,heading:`Printers for Sale in Kenya`,title:`Printers for Sale in Kenya | Buy Online | AcetechIT`,description:`Buy printers online in Kenya - home, office, all-in-one, wireless, A3 and A4 printers at AcetechIT. Genuine brands, KES prices, Nairobi delivery and countrywide shipping.`,intro:`Printers for sale in Kenya for home and office use: all-in-one, wireless, colour, A3 and A4 models. Compare prices in Kenyan shillings and order online for delivery in Nairobi and across the country.`,category:`Printers & Office Solutions`,exclude:jc},{slug:`hp`,adGroup:`Printers | HP`,label:`HP printers`,heading:`HP Printers in Kenya`,title:`HP Printers in Kenya | Smart Tank & LaserJet Prices | AcetechIT`,description:`Shop HP printers in Kenya - HP Smart Tank 580/585 ink tank, HP LaserJet and LaserJet Pro, colour and all-in-one MFP printers with prices in KES and fast Nairobi delivery.`,intro:`Shop HP printers in Kenya: HP Smart Tank ink tank models, LaserJet and LaserJet Pro, colour and multifunction printers. We will confirm current HP stock and the best price on enquiry.`,category:`Printers & Office Solutions`,brand:`HP`,exclude:jc},{slug:`canon`,adGroup:`Printers | Canon`,label:`Canon printers`,heading:`Canon Printers in Kenya`,title:`Canon Printers in Kenya | PIXMA G3410 & G3430 Prices | AcetechIT`,description:`Buy Canon printers in Kenya - Canon PIXMA G3410, PIXMA G3430 ink tank printers and Canon multifunction printers at AcetechIT with KES prices and Nairobi delivery.`,intro:`Buy Canon printers in Kenya, including the Canon PIXMA G3410 and PIXMA G3430 refillable ink tank printers for low-cost home and small office printing. Prices are in KES and stock is updated from our catalogue.`,category:`Printers & Office Solutions`,brand:`Canon`,exclude:jc}],Nc=new Map;function Pc(e){let t=(e??``).trim().toLowerCase();if(!Nc.size)for(let e of Mc)Nc.set(e.slug,e);return Nc.get(t)??null}var Fc=Mc.map(({slug:e,label:t})=>({slug:e,label:t}));function Ic(e){return e===`printers`?`/printers`:`/printers/${e}`}function Lc(e,t){return e.filter(e=>{if(t.brand&&e.brand.trim().toLowerCase()!==t.brand.toLowerCase())return!1;let n=`${e.title} ${e.brand} ${e.subcategory??``} ${e.tags?.join(` `)??``}`;return t.exclude?.test(n)||t.require&&!t.require.test(n)||e.category!==t.category&&e.subcategory!==`Printers`?!1:/printer|mfp|all-in-one/i.test(n)})}var W=()=>M(()=>import(`./printers.index-D3HWnsXv.js`),__vite__mapDeps([62,1,63,2,3,4,5,47,48,29,12,42,25,26,6,21,11])),Rc=`Printers & Office Solutions`,zc=I(`/printers/`)({loader:({context:e})=>{if(!ut(Rc))throw le();return e.queryClient.ensureQueryData(Qa())},head:()=>{let e=Pc(`printers`)??Mc[0];return{meta:ms({title:e.title,description:e.description,path:`/printers`}),links:[ds(`/printers`)],scripts:[gs(bs([{name:`Home`,path:`/`},{name:Rc,path:`/category/${ct(Rc)}`},{name:e.heading,path:`/printers`}]))]}},component:L(W,`component`)}),Bc=I(`/printers/$group`)({loader:({params:e})=>{let t=Pc(e.group);if(!t||t.slug===`printers`)throw le();return{group:t}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Printers not found | AcetechIT`},{name:`robots`,content:`noindex`}]};let{group:t}=e,n=Ic(t.slug);return{meta:ms({title:t.title,description:t.description,path:n,robots:t.noindex?`noindex,follow`:void 0}),links:[ds(n)],scripts:[gs(bs([{name:`Home`,path:`/`},{name:`Printers & Office Solutions`,path:`/category/printers-and-office-solutions`},{name:t.heading,path:n}]))]}},component:L(()=>M(()=>import(`./printers._group-CnEgTMYs.js`),__vite__mapDeps([64,1,63,2,3,4,5,47,48,29,12,42,25,26,6,21,11])),`component`)}),Vc=I(`/product/$slug`)({loader:async({params:e})=>{let t=await xt({data:{slug:e.slug}});if(t)return{...t,requestedSlug:e.slug,fallback:null};let n=await St({data:{slug:e.slug}});if(!n)throw le();return{...n,requestedSlug:e.slug,fallback:e.slug}},head:({loaderData:e})=>{if(!e)return{meta:[{title:`Product not found | AcetechIT`},{name:`robots`,content:`noindex`}]};let t=e.product,n=Es(t),r=`/product/${t.slug}`;return{meta:[...ms({title:Ts(t),description:n,path:r,type:`product`,image:t.image,imageAlt:t.title,robots:e.fallback?`noindex,follow`:`index,follow`}),{property:`product:brand`,content:t.brand},{property:`product:price:amount`,content:String(t.price)},{property:`product:price:currency`,content:`KES`},{property:`product:availability`,content:t.stock>0?`in stock`:`out of stock`}],links:[ds(r)],scripts:[gs(ks(t,e.reviews)),gs(bs([{name:`Home`,path:`/`},{name:t.category,path:`/category/${ct(t.category)}`},{name:t.title,path:r}]))]}},component:L(()=>M(()=>import(`./product._slug-DG2QNSBH.js`),__vite__mapDeps([65,1,2,3,4,5,6,51,11,12,18,34,21,23,43,37,20,22,24,25,26])),`component`)}),Hc=I(`/_authenticated/admin/blog`)({component:L(()=>M(()=>import(`./blog-DE_Fy6Q7.js`),__vite__mapDeps([66,1,30,31,67,6,52,3,51,21,22,23,53,24,9,10,18,34,43,36,37,68])),`component`)}),Uc=I(`/_authenticated/admin/blog-comments`)({component:L(()=>M(()=>import(`./blog-comments-C3ZjV2GL.js`),__vite__mapDeps([69,1,51,6,10,18,30,31,36,21,37,68,22])),`component`)}),Wc=Ys.update({id:`/`,path:`/`,getParentRoute:()=>Us}),Gc=Xs.update({id:`/_authenticated`,getParentRoute:()=>Us}),Kc=Zs.update({id:`/about`,path:`/about`,getParentRoute:()=>Us}),qc=Qs.update({id:`/auth`,path:`/auth`,getParentRoute:()=>Us}),Jc=fc.update({id:`/blog`,path:`/blog`,getParentRoute:()=>Us}),Yc=pc.update({id:`/brands`,path:`/brands`,getParentRoute:()=>Us}),Xc=mc.update({id:`/checkout`,path:`/checkout`,getParentRoute:()=>Us}),Zc=hc.update({id:`/contact`,path:`/contact`,getParentRoute:()=>Us}),Qc=gc.update({id:`/faq`,path:`/faq`,getParentRoute:()=>Us}),$c=_c.update({id:`/industries`,path:`/industries`,getParentRoute:()=>Us}),el=xc.update({id:`/products`,path:`/products`,getParentRoute:()=>Us}),tl=Sc.update({id:`/return-policy`,path:`/return-policy`,getParentRoute:()=>Us}),nl=Cc.update({id:`/services`,path:`/services`,getParentRoute:()=>Us}),rl=wc.update({id:`/wishlist`,path:`/wishlist`,getParentRoute:()=>Us}),il=Tc.update({id:`/admin`,path:`/admin`,getParentRoute:()=>Gc}),al=Ec.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>Jc}),ol=Dc.update({id:`/category/$slug`,path:`/category/$slug`,getParentRoute:()=>Us}),sl=Ac.update({id:`/locations/$city`,path:`/locations/$city`,getParentRoute:()=>Us}),G=zc.update({id:`/printers/`,path:`/printers/`,getParentRoute:()=>Us}),cl=Bc.update({id:`/printers/$group`,path:`/printers/$group`,getParentRoute:()=>Us}),ll=Vc.update({id:`/product/$slug`,path:`/product/$slug`,getParentRoute:()=>Us}),ul={AuthenticatedAdminBlogRoute:Hc.update({id:`/blog`,path:`/blog`,getParentRoute:()=>il}),AuthenticatedAdminBlogCommentsRoute:Uc.update({id:`/blog-comments`,path:`/blog-comments`,getParentRoute:()=>il})},dl={AuthenticatedAdminRoute:il._addFileChildren(ul)},fl=Gc._addFileChildren(dl),pl={BlogSlugRoute:al},ml={IndexRoute:Wc,AuthenticatedRouteRoute:fl,AboutRoute:Kc,AuthRoute:qc,BlogRoute:Jc._addFileChildren(pl),BrandsRoute:Yc,CheckoutRoute:Xc,ContactRoute:Zc,FaqRoute:Qc,IndustriesRoute:$c,ProductsRoute:el,ReturnPolicyRoute:tl,ServicesRoute:nl,WishlistRoute:rl,CategorySlugRoute:ol,LocationsCityRoute:sl,PrintersGroupRoute:cl,ProductSlugRoute:ll,PrintersIndexRoute:G},hl=Di({routeTree:Us._addFileChildren(ml)._addFileTypes(),context:{queryClient:new Hi},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadDelay:100,defaultPreloadStaleTime:0}),gl=class extends N.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(`Frontend render error`,e,t.componentStack)}render(){return this.state.hasError?(0,P.jsx)(`main`,{style:{display:`grid`,minHeight:`100vh`,placeItems:`center`,padding:`24px`,fontFamily:`system-ui, sans-serif`,color:`#17251f`},children:(0,P.jsxs)(`section`,{style:{maxWidth:`480px`,textAlign:`center`},children:[(0,P.jsx)(`h1`,{children:`We couldn't load this page`}),(0,P.jsx)(`p`,{style:{color:`#52645b`},children:`The page encountered an unexpected error. Reload it or return to the home page.`}),(0,P.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`12px`},children:[(0,P.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),children:`Reload page`}),(0,P.jsx)(`a`,{href:`/`,children:`Go home`})]})]})}):this.props.children}},_l=document.getElementById(`root`);if(!_l)throw Error(`Application root element was not found`);(0,Ii.createRoot)(_l).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(gl,{children:(0,P.jsx)(Ai,{router:hl})})}));export{ca as $,oo as A,Ya as B,qo as C,uo as D,ko as E,Qa as F,Da as G,Ba as H,Ha as I,xa as J,Ta as K,qa as L,io as M,$a as N,lo as O,Za as P,la as Q,Xa as R,hs as S,Ko as T,ja as U,ya as V,Ra as W,da as X,ga as Y,ua as Z,uc as _,Lc as a,$i as at,es as b,Dc as c,Ji as ct,fc as d,ai as dt,aa as et,cc as f,oc as g,ic as h,Mc as i,ea as it,ao as j,B as k,Ec as l,Ui as lt,dc as m,Bc as n,na as nt,Pc as o,Zi as ot,nc as p,Ia as q,Fc as r,ta as rt,Ac as s,Yi as st,Vc as t,ra as tt,xc as u,xi as ut,rc as v,Go as w,bs as x,Is as y,Ja as z};