PageSourceSearch

https://timex.ca/cdn/shop/t/495/assets/-component-mini-cart.min.js?v=133275045654231738781790831495

js timex.ca collected 2026-10-03 21:10:06 UTC 30,134 bytes, 65 lines download raw bytes

1var ie=Object.defineProperty;var oe=(o,t,e)=>t in o?ie(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var Y=(o,t,e)=>(oe(o,typeof t!="symbol"?t+"":t,e),e);import{LitElement as Se,html as be,css as we}from"@hh/global.js";function St(o,t=[]){t.forEach(e=>{o.classList.toggle(e)})}var V=()=>document.querySelector(".js-section-header-v2")===null?"header":"header-v2";var bt=async()=>{let o=V();return await(await fetch(`${window.Shopify.routes.root}?sections=mini-cart,${o}`)).json()},wt=async(o,t=null,e=window.routes.cart_change_url)=>(t===null&&(t=V()==="header"?"mini-cart,header":"mini-cart,header-v2"),await(await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({...o,sections:t})})).json()),Ct=async(o,t=null,e=window.routes.cart_add_url)=>{t===null&&(t=V()==="header"?"mini-cart,header":"mini-cart,header-v2");let{gwp_id:s=null,form_type:i,utf8:n,...r}=o,c=[{...r}];s&&(c=[...c,{id:s,quantity:"1"}]);let a=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({items:c,sections:t})});return ne(),await a.json()},ne=async()=>{let t=await(await fetch(`${window.location.origin}/cart.js`)).json(),e={total_price:t.total_price/100,$value:t.total_price/100,total_discount:t.total_discount,original_total_price:t.original_total_price/100,items:t.items};window._learnq?.push(["track","Added to Cart",e])};var W=(o,t="[data-rerender]")=>Object.keys(o.sections??[]).forEach(e=>{let s=document.createElement("div");s.appendChild(new DOMParser().parseFromString(o.sections[e],"text/html").querySelector(t)),document.querySelector(`[id^="shopify-section-"][id*="${e}"]`).querySelector(t).parentNode.innerHTML=s.innerHTML});var G=globalThis,J=G.ShadowRoot&&(G.ShadyCSS===void 0||G.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol(),xt=new WeakMap,U=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==tt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(J&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=xt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&xt.set(e,t))}return t}toString(){return this.cssText}},Tt=o=>new U(typeof o=="string"?o:o+"",void 0,tt),et=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,n)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new U(e,o,tt)},Nt=(o,t)=>{if(J)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=G.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},st=J?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Tt(e)})(o):o;var{is:re,defineProperty:ae,getOwnPropertyDescriptor:he,getOwnPropertyNames:ce,getOwnPropertySymbols:le,getPrototypeOf:de}=Object,K=globalThis,Pt=K.trustedTypes,pe=Pt?Pt.emptyScript:"",ue=K.reactiveElementPolyfillSupport,D=(o,t)=>o,it={toAttribute(o,t){switch(t){case Boolean:o=o?pe:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Rt=(o,t)=>!re(o,t),Ht={attribute:!0,type:String,converter:it,reflect:!1,useDefault:!1,hasChanged:Rt};Symbol.metadata??=Symbol("metadata"),K.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ae(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){let{get:i,set:n}=he(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:i,set(r){let c=i?.call(this);n?.call(this,r),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(D("elementProperties")))return;let t=de(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(D("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(D("properties"))){let e=this.properties,s=[...ce(e),...le(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];
vendor: 4,316 bytes, lines 1-3
1if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(st(i))}else t!==void 0&&e.push(st(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:it).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let n=s.getPropertyOptions(i),r=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:it;this._$Em=i;let c=r.fromAttribute(e,n.type);this[i]=c??this._$Ej?.get(i)??c,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(t!==void 0){let r=this.constructor;if(i===!1&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??Rt)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),n!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,n]of s){let{wrapped:r}=n,c=this[i];r!==!0||this._$AL.has(i)||c===void 0||this.C(i,void 0,n,c)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[D("elementProperties")]=new Map,_[D("finalized")]=new Map,ue?.({ReactiveElement:_}),(K.reactiveElementVersions??=[]).push("2.1.2");var lt=globalThis,Ot=o=>o,Q=lt.trustedTypes,Lt=Q?Q.createPolicy("lit-html",{createHTML:o=>o}):void 0,jt="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,Ft="?"+g,fe=`<${Ft}>`,E=document,Z=()=>E.createComment(""),I=o=>o===null||typeof o!="object"&&typeof o!="function",dt=Array.isArray,me=o=>dt(o)||typeof o?.[Symbol.iterator]=="function",ot=`[ 	
2\f\r]`,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mt=/-->/g,Ut=/>/g,y=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^ 	
3\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,kt=/"/g,Bt=/^(?:script|style|textarea|title)$/i,pt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}
vendor: 6,847 bytes, lines 3-5
3),Ie=pt(1),je=pt(2),Fe=pt(3),j=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),It=new WeakMap,v=E.createTreeWalker(E,129);function qt(o,t){if(!dt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}var $e=(o,t)=>{let e=o.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",r=k;for(let c=0;c<e;c++){let a=o[c],l,d,h=-1,p=0;for(;p<a.length&&(r.lastIndex=p,d=r.exec(a),d!==null);)p=r.lastIndex,r===k?d[1]==="!--"?r=Mt:d[1]!==void 0?r=Ut:d[2]!==void 0?(Bt.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=y):d[3]!==void 0&&(r=y):r===y?d[0]===">"?(r=i??k,h=-1):d[1]===void 0?h=-2:(h=r.lastIndex-d[2].length,l=d[1],r=d[3]===void 0?y:d[3]==='"'?kt:Dt):r===kt||r===Dt?r=y:r===Mt||r===Ut?r=k:(r=y,i=void 0);let m=r===y&&o[c+1].startsWith("/>")?" ":"";n+=r===k?a+fe:h>=0?(s.push(l),a.slice(0,h)+jt+a.slice(h)+g+m):a+g+(h===-2?c:m)}return[qt(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},S=class{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0,c=t.length-1,a=this.parts,[l,d]=$e(t,e);if(this.el=S.createElement(l,s),v.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=v.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(jt)){let p=d[r++],m=i.getAttribute(h).split(g),$=/([.?@])?(.*)/.exec(p);a.push({type:1,index:n,name:$[2],strings:m,ctor:$[1]==="."?rt:$[1]==="?"?at:$[1]==="@"?ht:R}),i.removeAttribute(h)}else h.startsWith(g)&&(a.push({type:6,index:n}),i.removeAttribute(h));if(Bt.test(i.tagName)){let h=i.textContent.split(g),p=h.length-1;if(p>0){i.textContent=Q?Q.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],Z()),v.nextNode(),a.push({type:2,index:++n});i.append(h[p],Z())}}}else if(i.nodeType===8)if(i.data===Ft)a.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(g,h+1))!==-1;)a.push({type:7,index:n}),h+=g.length-1}n++}}static createElement(t,e){let s=E.createElement("template");return s.innerHTML=t,s}};function P(o,t,e=o,s){if(t===j)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,n=I(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=P(o,i._$AS(o,t.values),i,s)),t}var nt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??E).importNode(e,!0);v.currentNode=i;let n=v.nextNode(),r=0,c=0,a=s[0];for(;a!==void 0;){if(r===a.index){let l;a.type===2?l=new H(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ct(n,this,t)),this._$AV.push(l),a=s[++c]}r!==a?.index&&(n=v.nextNode(),r++)}return v.currentNode=E,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},H=class{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),I(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==j&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(E.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=S.createElement(qt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{let n=new nt(i,this),r=n.u(this.options);n.p(e),this.T(r),this._$AH=n}}_$AC(t){let e=It.get(t.strings);return e===void 0&&It.set(t.strings,e=new S(t)),e}k(t){dt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let n of t)i===e.length?e.push(s=new H(this.O(Z()),this.O(Z()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Ot(t).nextSibling;Ot(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(t,e=this,s,i){let n=this.strings,r=!1;if(n===void 0)t=P(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==j,r&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=P(this,c[s+a],e,a),l===j&&(l=this._$AH[a]),r||=!I(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}r&&!i&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},at=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ht=class extends R{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??u)===j)return;let s=this._$AH,i=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==u&&(s===u||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}};var _e=lt.litHtmlPolyfillSupport;_e?.(S,H),(lt.litHtmlVersions??=[]).push("3.3.2");var At=globalThis,zt=o=>o,X=At.trustedTypes,Vt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,Zt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Xt="?"+A,ge=`<${Xt}>`,C=document,B=()=>C.createComment(""),q=o=>o===null||typeof o!="object"&&typeof o!="function",yt=Array.isArray,Ae=o=>yt(o)||typeof o?.[Symbol.iterator]=="function",ut=`[ 	
4\f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Gt=/>/g,b=RegExp(`>|${ut}(?:([^\\s"'>=/]+)(${ut}*=${ut}*(?:[^ 	
5\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,vt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}
vendor: 4,212 bytes, line 5
5),qe=vt(1),ze=vt(2),Ve=vt(3),x=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),Qt=new WeakMap,w=C.createTreeWalker(C,129);function te(o,t){if(!yt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var ye=(o,t)=>{let e=o.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",r=F;for(let c=0;c<e;c++){let a=o[c],l,d,h=-1,p=0;for(;p<a.length&&(r.lastIndex=p,d=r.exec(a),d!==null);)p=r.lastIndex,r===F?d[1]==="!--"?r=Wt:d[1]!==void 0?r=Gt:d[2]!==void 0?(Yt.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=b):d[3]!==void 0&&(r=b):r===b?d[0]===">"?(r=i??F,h=-1):d[1]===void 0?h=-2:(h=r.lastIndex-d[2].length,l=d[1],r=d[3]===void 0?b:d[3]==='"'?Kt:Jt):r===Kt||r===Jt?r=b:r===Wt||r===Gt?r=F:(r=b,i=void 0);let m=r===b&&o[c+1].startsWith("/>")?" ":"";n+=r===F?a+ge:h>=0?(s.push(l),a.slice(0,h)+Zt+a.slice(h)+A+m):a+A+(h===-2?c:m)}return[te(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},T=class{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0,c=t.length-1,a=this.parts,[l,d]=ye(t,e);if(this.el=T.createElement(l,s),w.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=w.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Zt)){let p=d[r++],m=i.getAttribute(h).split(A),$=/([.?@])?(.*)/.exec(p);a.push({type:1,index:n,name:$[2],strings:m,ctor:$[1]==="."?mt:$[1]==="?"?$t:$[1]==="@"?_t:L}),i.removeAttribute(h)}else h.startsWith(A)&&(a.push({type:6,index:n}),i.removeAttribute(h));if(Yt.test(i.tagName)){let h=i.textContent.split(A),p=h.length-1;if(p>0){i.textContent=X?X.emptyScript:"";for(let m=0;m<p;m++)i.append(h[m],B()),w.nextNode(),a.push({type:2,index:++n});i.append(h[p],B())}}}else if(i.nodeType===8)if(i.data===Xt)a.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(A,h+1))!==-1;)a.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let s=C.createElement("template");return s.innerHTML=t,s}};function O(o,t,e=o,s){if(t===x)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,n=q(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=O(o,i._$AS(o,t.values),i,s)),t}var ft=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??C).importNode(e,!0);w.currentNode=i;let n=w.nextNode(),r=0,c=0,a=s[0];for(;a!==void 0;){if(r===a.index){let l;a.type===2?l=new N(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new gt(n,this,t)),this._$AV.push(l),a=s[++c]}r!==a?.index&&(n=w.nextNode(),r++)}return w.currentNode=C,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},N=class{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=O(this,t,e),q(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==x&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ae(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==f&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=T.createElement(te(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{let n=new ft(i,this),r=n.u(this.options);n.p(e),this.T(r),this._$AH=n}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new T(t)),e}k(t){yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;
5for(let n of t)i===e.length?e.push(s=new N(this.O(B()),this.O(B()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=zt(t).nextSibling;zt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},L=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}_$AI(t,e=this,s,i){let n=this.strings,r=!1;if(n===void 0)t=O(this,t,e,0),r=!q(t)||t!==this._$AH&&t!==x,r&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=O(this,c[s+a],e,a),l===x&&(l=this._$AH[a]),r||=!q(l)||l!==this._$AH[a],l===f?t=f:t!==f&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}r&&!i&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mt=class extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},$t=class extends L{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},_t=class extends L{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??f)===x)return;let s=this._$AH,i=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==f&&(s===f||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}};var ve=At.litHtmlPolyfillSupport;ve?.(T,N),(At.litHtmlVersions??=[]).push("3.3.2");var ee=(o,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let n=e?.renderBefore??null;s._$litPart$=i=new N(t.insertBefore(B(),n),n,void 0,e??{})}return i._$AI(o),i};var Et=globalThis,M=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ee(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return x}};M._$litElement$=!0,M.finalized=!0,Et.litElementHydrateSupport?.({LitElement:M});var Ee=Et.litElementPolyfillSupport;Ee?.({LitElement:M});(Et.litElementVersions??=[]).push("4.2.2");var se=et`
6  .visually-hidden {
7    position: absolute !important;
8    overflow: hidden;
9    width: 1px;
10    height: 1px;
11    margin: -1px;
12    padding: 0;
13    border: 0;
14    clip: rect(0 0 0 0);
15    word-wrap: normal !important;
16  }
17`;var z=class extends Se{constructor(){super(),this._trapFocus=!1,this.locales={isLoading(){return window?.HH?.i18n?.isLoading||"Is Loading"}},this.handleBodyClick=this.handleBodyClick.bind(this),this.addEventListener("transitionend",()=>{this._trapFocus=!0},{once:!0})}_updateTrapFocusElements(){this._trapFocusElements=this.querySelectorAll('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'),this._trapFocusElements.length>0&&(this.firstFocusableElement=this._trapFocusElements[0],this.lastFocusableElement=this._trapFocusElements[this._trapFocusElements.length-1])}_refreshFocusTrap(){this._trapFocus&&(this._updateTrapFocusElements(),this.firstFocusableElement&&this.firstFocusableElement.focus())}_onKeyDown(t){!this._trapFocus||!(t.key==="Tab"||t.keyCode===9)||(t.shiftKey?document.activeElement===this.firstFocusableElement&&(this.lastFocusableElement.focus(),t.preventDefault()):document.activeElement===this.lastFocusableElement&&(this.firstFocusableElement.focus(),t.preventDefault()))}getLocation(){let t=()=>{!(this.querySelector("[data-mini-cart-error-nouns]")?.dataset.crossborder??null)||orbito?.getRemoteCountryCode().then(n=>{let r=n;if(r!=="US"&&r!=="CA"){let c=this.querySelector("[data-checkout-btn]"),a=this.querySelector("[data-mini-cart-error-nouns]");c&&(c.disabled=!0,c.classList.add("disabled")),a&&(a.style.display="flex")}}).catch(n=>{console.error("Error fetching remote country code:",n)})},e=()=>this.querySelector("[data-mini-cart-error-nouns]")?(t(),!0):!1;if(e())return;let s=new MutationObserver(()=>{e()&&s.disconnect()});s.observe(this,{childList:!0,subtree:!0})}openByHash(){window.location.hash=="#mini-cart-is-active"&&(this.toggle(),history.replaceState("",document.title,window.location.pathname+window.location.search))}async getCart(){return(await fetch("/cart.js",{method:"GET",headers:{"Content-Type":"application/json"}})).json()}async cartNotification(){let t=document.cookie.match(/^(.*;)?\s*cart\s*=\s*[^;]+(.*)?$/),s=((await this.getCart())?.items?.length??0)>0;if(window.sessionStorage.getItem("cart_notified")||!t||!s)return;let i=this.popupDelay*6e4;this.cartNotificationTimer=setTimeout(()=>{window.sessionStorage.setItem("cart_notified",!0),!this.isOpen()&&document.body.setAttribute("modal",JSON.stringify({id:"cart-notification-reminder"}))},i)}connectedCallback(){super.connectedCallback(),document.body.addEventListener("click",this.handleBodyClick),this.openByH
17ash(),this.cartNotification(),this.handelMiniCartExtend(),this.forceRefreshCart(),this.addEventListener("keydown",this._onKeyDown.bind(this)),this._refreshFocusTrap(),this.getLocation(),document.addEventListener("LDT_CP_HANDLE_RERENDER_CART_ITEMS_SECTIONS",this.reRenderCart.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.body.addEventListener("click",this.handleBodyClick),clearTimeout(this.cartNotificationTimer),this.removeEventListener("keydown",this._onKeyDown),document.removeEventListener("LDT_CP_HANDLE_RERENDER_CART_ITEMS_SECTIONS",this.reRenderCart.bind(this))}handleBodyClick(t){var e=t.composedPath&&t.composedPath()||t.path;if(e.some(s=>s.matches&&s.matches("hh-mini-cart")))return!0;!t.defaultPrevented&&this.isOpen()&&this.toggle(),this.getLocation()}isOpen(){return this.getLocation(),!!document.body.classList.contains("mini-cart-is-active")}toggle(){St(document.body,["mini-cart-is-active"]),this.getLocation()}async onChange(t){this.loading=!0,document.activeElement.blur();let e={id:t.detail.key,quantity:t.detail.value||0};t.detail.note&&(e.properties={"Gift Note":t.detail.note});let s=await wt(e);s.sections?(W(s),this.loading=!1,this.initExtendNormalizeCart(),this.getLocation()):this.forceRefreshCart()}onAddGiftItem(t){this.onAddToCart(t,!0)}onUpdateGiftItem(t){this.onChange(t)}async onAddToCart(t,e=!1){this.loading=!0,document.activeElement.blur();let s={id:t.detail.key};e&&(s.properties={"Gift Note":t.detail.value});let i=await Ct(s);i.sections?(W(i),this.loading=!1,this.initExtendNormalizeCart(),setTimeout(()=>this.getLocation(),100)):this.forceRefreshCart()}async onRemove(t){t?.detail?.event?.preventDefault(),await this.onChange(t)}async forceRefreshCart(){this.loading=!0;let t=await bt();W({sections:t}),this.loading=!1,setTimeout(()=>this.getLocation(),100)}get cartObject(){let t=this.querySelector("#mini-cart-json");return JSON.parse(t?.textContent)}handelMiniCartExtend(){!(window.Extend&&window.ExtendShopify&&window.Shopify.currency.active==="USD")||(document.addEventListener("cart-item:warranty-added",()=>{this.forceRefreshCart()}),this.initExtendNormalizeCart(),this.getLocation())}initExtendNormalizeCart(){!(window.Extend&&window.ExtendShopify&&window.Shopify.currency.active==="USD")||ExtendShopify.normalizeCart({cart:this.cartObject,balance:!0},(e,s)=>{s&&s.updates&&this.forceRefreshCart()})}async reRenderCart(){this.isOpen()||this.toggle(),this.forceRefreshCart()}render(){return be`
18      <div class="wrapper">
19        <hh-focus-trap active="${this._trapFocus}">
20          <slot name="close" @click="${this.toggle}"></slot>
21          <slot name="error"></slot>
22          <slot
23            name="body"
24            @changeQuantity="${this.onChange}"
25            @removeItem="${this.onRemove}"
26            @addToCart="${this.onAddToCart}"
27            @addGiftItem="${this.onAddGiftItem}"
28            @updateGiftItem="${this.onUpdateGiftItem}"
29          ></slot>
30          <div>
31            <p
32              class="visually-hidden"
33              aria-live="polite"
34              aria-hidden="${!this.loading}"
35              role="status"
36            >
37              ${this.locales.isLoading()}
38            </p>
39          </div>
40        </hh-focus-trap>
41      </div>
42    `}};Y(z,"properties",{loading:{reflect:!0},_trapFocus:{state:!0},popupDelay:{attribute:"popup-delay"},_trapFocusElements:{type:Array}}),Y(z,"styles",[se,we`
43      .wrapper {
44        height: 100%;
45      }
46
47      hh-focus-trap {
48        height: 100%;
49      }
50    `]);window.addEventListener("load",()=>{customElements.define("hh-mini-cart",z)});
51/**
52 * @license
53 * Copyright 2017 Google LLC
54 * SPDX-License-Identifier: BSD-3-Clause
55 */
56/**
57 * @license
58 * Copyright 2019 Google LLC
59 * SPDX-License-Identifier: BSD-3-Clause
60 */
61/**
62 * @license
63 * Copyright 2022 Google LLC
64 * SPDX-License-Identifier: BSD-3-Clause
65 */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.