1(()=>{"use strict";const t=t=>{if("ESCAPE"!==t.code.toUpperCase())return;const e=t.target.closest("details[open]");if(!e)return;const i=e.querySelector("summary");i&&(e.removeAttribute("open"),i.focus())};class e extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details");const t=this.querySelectorAll("summary");this.addAccessibilityAttributes(t),"iPhone"===navigator.platform&&document.documentElement.style.setProperty("--viewport-height",`${window.innerHeight}px`),this.addEventListener("keyup",this.onKeyUp.bind(this)),this.addEventListener("focusout",this.onFocusOut.bind(this)),this.bindEvents()}bindEvents(){this.querySelectorAll("summary").forEach(t=>t.addEventListener("click",this.onSummaryClick.bind(this))),this.querySelectorAll("button").forEach(t=>t.addEventListener("click",this.onCloseButtonClick.bind(this)))}addAccessibilityAttributes(t){t.forEach(t=>{t.setAttribute("role","button"),t.setAttribute("aria-expanded",!1),t.setAttribute("aria-controls",t.nextElementSibling.id)})}onKeyUp(t){if("ESCAPE"!==t.code.toUpperCase())return;const e=t.target.closest("details[open]");if(e)if(this.mainDetailsToggle){const t=this.mainDetailsToggle.querySelector("summary");this.closeMenuDrawer(t)}else this.closeSubmenu(e)}onSummaryClick(t){const e=t.currentTarget,i=e.parentNode,o=i.hasAttribute("open");i===this.mainDetailsToggle?o?(t.preventDefault(),this.closeMenuDrawer(e)):this.openMenuDrawer(e):(window.trapFocus.trapFocus(e.nextElementSibling,i.querySelector("button")),setTimeout(()=>{i.classList.add("menu-opening")}))}openMenuDrawer(t){setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening")}),t.setAttribute("aria-expanded",!0),window.trapFocus.trapFocus(this.mainDetailsToggle,t),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`)}closeMenuDrawer(t,e=!1){void 0!==t&&(this.mainDetailsToggle.classList.remove("menu-opening"),this.mainDetailsToggle.querySelectorAll("details").forEach(t=>{t.removeAttribute("open"),t.classList.remove("menu-opening")}),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1),document.body.classList.remove(`overflow-hidden-${this.dataset.breakpoint}`),window.trapFocus.removeTrapFocus(e),this.closeAnimation(this.mainDetailsToggle))}onFocusOut(){setTimeout(()=>{this.mainDetailsToggle.hasAttribute("open")&&!this.mainDetailsToggle.contains(document.activeElement)&&this.closeMenuDrawer()})}onCloseButtonClick(t){const e=t.currentTarget.closest("details");this.closeSubmenu(e)}closeSubmenu(t){t.classList.remove("menu-opening"),window.trapFocus.removeTrapFocus(),this.closeAnimation(t)}closeAnimation(t){let e;const i=o=>{void 0===e&&(e=o),o-e<400?window.requestAnimationFrame(i):(t.removeAttribute("open"),t.closest("details[open]")&&window.trapFocus.trapFocus(t.closest("details[open]"),t.querySelector("summary")))};window.requestAnimationFrame(i)}}class i extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details"),this.mainDetailsToggle.addEventListener("focusout",this.onFocusOut.bind(this))}onFocusOut(){setTimeout(()=>{this.contains(document.activeElement)||this.close()})}close(){this.mainDetailsToggle.removeAttribute("open"),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1)}}const o=i;class a extends HTMLElement{constructor(){super(),this.detailsContainer=this.querySelector("details"),this.summaryToggle=this.querySelector("summary"),this.modalCloseButton=this.querySelector('button[type="button"]'),this.detailsContainer&&this.detailsContainer.addEventListener("keyup",t=>"ESCAPE"===t.code.toUpperCase()&&this.close()),this.summaryToggle&&this.summaryToggle.addEventListener("click",this.onSummaryClick.bind(this)),this.modalCloseButton&&this.modalCloseButton.addEventListener("click",this.close.bind(this)),this.summaryToggle&&this.summaryToggle.setAttribute("role","button")}isOpen(){return this.detailsContainer.hasAttribute("open")}onSummaryClick(t){t.preventDefault(),t.target.closest("details").hasAttribute("open")?this.close():this.open(t)}onBodyClick(t){this.contains(t.target)&&!t.target.classList.contains("modal-overlay")||this.close(!1)}open(t){this.onBodyClickEvent=this.onBodyClickEvent||this.onBodyClick.bind(this),t.target.closest("details").setAttribute("open",!0),document.body.addEventListener("click",this.onBodyClickEvent),document.body.classList.add("overflow-hidden");const e=this.detailsContainer.querySelector('input:not([type="hidden"])');window.trapFocus.trapFocus(this.detailsContainer.querySelector('[tabindex="-1"]'),e||void 0)}close(t=!0){window.trapFocus.removeTrapFocus(t?this.summaryToggle:null),this.detailsContainer.removeAttribute("open"),document.body.removeEventListener("click",this.onBodyClickEvent),document.body.classList.remove("overflow-hidden")}}const r=a;
1class n extends HTMLElement{constructor(){super(),this.slider=this.querySelector('[id^="Slider-"]'),this.sliderItems=this.querySelectorAll('[id^="Slide-"]'),this.enableSliderLooping=!1,this.currentPageElement=this.querySelector(".slider-counter--current"),this.pageTotalElement=this.querySelector(".slider-counter--total"),this.prevButton=this.querySelector('button[name="previous"]'),this.nextButton=this.querySelector('button[name="next"]'),this.slider&&this.nextButton&&(this.initPages(),new ResizeObserver(t=>this.initPages()).observe(this.slider),this.slider.addEventListener("scroll",this.update.bind(this)),this.prevButton.addEventListener("click",this.onButtonClick.bind(this)),this.nextButton.addEventListener("click",this.onButtonClick.bind(this)))}initPages(){this.sliderItemsToShow=Array.from(this.sliderItems).filter(t=>t.clientWidth>0),this.sliderItemsToShow.length<2||(this.sliderItemOffset=this.sliderItemsToShow[1].offsetLeft-this.sliderItemsToShow[0].offsetLeft,this.slidesPerPage=Math.floor((this.slider.clientWidth-this.sliderItemsToShow[0].offsetLeft)/this.sliderItemOffset),this.totalPages=this.sliderItemsToShow.length-this.slidesPerPage+1,this.update())}resetPages(){this.sliderItems=this.querySelectorAll('[id^="Slide-"]'),this.currentPage=1,this.currentPageElement&&(this.currentPageElement.textContent=1),this.slider&&this.slider.scrollTo({left:0,behavior:"auto"}),this.initPages()}update(){const t=this.currentPage;this.currentPage=Math.round(this.slider.scrollLeft/this.sliderItemOffset)+1,this.currentPageElement&&this.pageTotalElement&&(this.currentPageElement.textContent=this.currentPage,this.pageTotalElement.textContent=this.totalPages),this.currentPage!==t&&this.dispatchEvent(new CustomEvent("slideChanged",{detail:{currentPage:this.currentPage,currentElement:this.sliderItemsToShow[this.currentPage-1]}})),this.enableSliderLooping||(this.isSlideVisible(this.sliderItemsToShow[0])&&0===this.slider.scrollLeft?this.prevButton.setAttribute("disabled","disabled"):this.prevButton.removeAttribute("disabled"),this.isSlideVisible(this.sliderItemsToShow[this.sliderItemsToShow.length-1])?this.nextButton.setAttribute("disabled","disabled"):this.nextButton.removeAttribute("disabled"))}isSlideVisible(t,e=0){const i=this.slider.clientWidth+this.slider.scrollLeft-e;return t.offsetLeft+t.clientWidth<=i&&t.offsetLeft>=this.slider.scrollLeft}onButtonClick(t){t.preventDefault();const e=t.currentTarget.dataset.step||1;this.slideScrollPosition="next"===t.currentTarget.name?this.slider.scrollLeft+e*this.sliderItemOffset:this.slider.scrollLeft-e*this.sliderItemOffset,this.slider.scrollTo({left:this.slideScrollPosition})}}class s extends HTMLElement{constructor(){super(),this.loadMoreButton=this.querySelector("[data-more-button]"),this.loadMoreButton&&this.initialise()}initialise(){this.postContainer=this.querySelector("[data-paged]"),this.postContainerId=this.postContainer.getAttribute("data-id"),this.totalPages=this.loadMoreButton.getAttribute("data-totalpages"),this.currentPage=1,this.url=document.location.href,this.fetchUrl=this.url.match(/[?]/)?this.url+"&paged=":this.url+"?paged=",this.parser=new DOMParser,this.currentPage==this.totalPages?(this.loadMoreButton.classList.add("last-page"),this.loadMoreButton.disabled=!0,this.loadMoreButton.innerHTML="No more posts"):this.currentPage<this.totalPages&&(this.loadMoreButton.disabled=!1,this.loadMoreButton.addEventListener("click",this.loadMorePosts.bind(this)))}async loadMorePosts(){this.currentPage++,this.loadMoreButton.innerHTML="Loading...";const t=await(await fetch(this.fetchUrl+this.currentPage).catch(this.errorHandle)).text(),e=this.parser.parseFromString(t,"text/html").querySelector(`[data-id="${this.postContainerId}"]`).querySelectorAll("[data-paged-article]");for(let t=0;t<e.length;t++)e[t].classList.add("hide"),this.postContainer.append(e[t]);const i=this.postContainer.querySelectorAll(".hide");setTimeout(function(){Array.prototype.map.call(i,function(t){t.classList.remove("hide"),t.classList.add("show")})},300),this.currentPage==this.totalPages?(this.loadMoreButton.parentNode.classList.add("end-page"),this.loadMoreButton.classList.add("end-page"),this.loadMoreButton.disabled=!0,this.loadMoreButton.innerHTML="No more posts"):this.loadMoreButton.innerHTML="Load More";let o=new Event("articles-loaded");this.dispatchEvent(o)}errorHandle(t){console.warn(t)}}const l=s;var u="/store.",c="/austore.",d="/castore.",h="/ukstore.",m="/eustore.",g="/iestore.",p=document.referrer,y=new CustomEvent("geoFinished"),b=ej_geo.active_geo_sites,f=ej_geo.active_geo_sites_available,S=ej_geo.geo_sites.US,A=ej_geo.geo_sites.JP,v=ej_geo.geo_sites.FR,w=ej_geo.geo_sites.DE;const E=everythingJazzConfig.enabledRegions||[],L=everythingJazzConfig.europeRegionCountryCodes,C=E.includes("EU"),T=E.includes("GB"),B=E.includes("IE"),_={US:"US/ROW",GB:"United Kingdom",IE:"Ireland",EU:"Europe",AU:"Australia",CA:"Canada"},P={US:["US","GB","EU","IE"],AU:["AU","GB","EU","IE"],CA:["CA","GB","EU","IE"],GB:["GB","EU","IE","US"],EU:["EU","IE","GB","US"],IE:["IE","EU","GB","US"]},I={USA:"US/ROW","US/ROW":"US/ROW",Australia:"Australia",Canada:"Canada","United Kingdom":"United Kingdom",Europe:"Europe",Ireland:"Ireland"};var k={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AD:"Andorra",AO:"Angola",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CO:"Colombia",KM:"Comoros",CG:"Congo",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",EU:"Europe",FJ:"Fiji",FI:"Finland",FR:"France",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GR:"Greece",GD:"Grenada",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea (North)",KR:"Korea (South)",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MK:"Macedonia",MG:"Mad
1agascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",QA:"Qatar",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"USA",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},U={AU:"$AUD",CA:"$CAD",US:"$USD",JP:"¥YEN",DE:"€EUR",FR:"€EUR",EU:"€EUR",GB:"£GBP",IE:"€EUR"};function M(t,e=!1){const i={CA:{name:"Canada",territory:S},AU:{name:"Australia",territory:S},...B&&{IE:{name:"Ireland",territory:S}},...T&&{GB:{name:"United Kingdom",territory:S}},...C&&{EU:{name:"Europe",territory:S}}},o={JP:{name:"Japan",territory:A},FR:{name:"France",territory:v},DE:{name:"Germany",territory:w}};C&&L.includes(t)?F("Europe","type_1",S,"EU",k[t]):i[t]?F(i[t].name,"type_1",i[t].territory,t):o[t]&&"yes"===b&&f.includes(t)?F(o[t].name,"type_1",o[t].territory,t):e?F("USA","type_1",S,"US"):(O("USA"),document.dispatchEvent(y)),W()}function q(t){return new URL(t).hostname}function F(t,e,i="",o="",a=""){var r=localStorage.getItem("userCountry");null==r&&(r="USA");var n=R(t),s="US"===n?"Global":k[""+n],l=D(n),u=R(r),c="US"===u?"Global":k[""+u],d=D(u);if("type_1"==e){var h="It looks like you're in "+(""!==a?a:t)+". What would you like to do?";if(""!==i){"Ireland"===t&&window.location.href===i&&(i="");var m='<button data-url="'+i+'" class="button button-country" data-country="'+t+'">Switch to Everything Jazz '+s+"<br/>& shop in "+l+"</button>"}else m='<button class="button button-country" data-country="'+t+'">Switch to Everything Jazz '+s+"<br/>& shop in "+l+"</button>";var g='<button class="button button--secondary close-modal">Stay on Everything Jazz '+c+"<br/>& shop in "+d+"</button>"}else"type_2"==e&&(h="We noticed you came from the "+t+" store",m='<a class="button button-country" data-country="'+t+'">Change location to '+t+"</a>",g='<a class="button button--secondary close-modal">Stay on the '+r+" Store</a>");document.querySelector(".region-modal__message").innerHTML=h,document.querySelector(".region-modal__button_1_container").innerHTML=m,document.querySelector(".region-modal__button_2_container").innerHTML=g,document.querySelector(".region-modal").classList.add("isActive"),O("USA"),document.querySelectorAll(".button-country").forEach(t=>t.addEventListener("click",e=>{var i=t.getAttribute("data-country");O(i),document.querySelector(".region-modal").classList.remove("isActive"),document.dispatchEvent(y),localStorage.setItem("detectedUserCountry",R(i)),V(localStorage.getItem("userCountry"));var o=t.getAttribute("data-url");if(o&&"null"!==o)if(o===S){let t=window.location.pathname,e=window.location.search,a=window.location.hash,r=new URL(t,o).href,n=new URLSearchParams(e);n.set("country",i),location.href=r+"?"+n.toString()+a}else{let t=new URLSearchParams;t.set("country",i),location.href=o+"?"+t.toString()}})),document.querySelectorAll(".close-modal").forEach(t=>t.addEventListener("click",t=>{document.querySelector(".region-modal").classList.remove("isActive"),document.dispatchEvent(y),localStorage.setItem("detectedUserCountry",R(r)),O(r),V(localStorage.getItem("userCountry"))}))}function D(t){var e=U[""+t];return void 0!==e?e:"$USD"}function R(t){for(const e in k)if(k.hasOwnProperty(e)&&k[e]===t)return e;return"Key not found"}function G(t){document.querySelectorAll(".region-selector__button").forEach(t=>t.parentNode.classList.remove("isActive")),document.querySelector('[data-country="'+t+'"]').parentNode.classList.add("isActive")}function O(t){localStorage.setItem("userCountry",t),G(localStorage.getItem("userCountry")),W(),H()}function H(){if(!function(){const t=function(){try{return new URL(S).hostname}catch(t){return""}}();return!!t&&window.location.hostname===t}())return;const t=function(){const t=localStorage.getItem("userCountry");return I[t]||null}();
1document.querySelectorAll("slideshow-component").forEach(e=>{const i=e.querySelectorAll(".slideshow__slide[data-slide-regions]");let o=0;i.forEach(e=>{const i=function(t){try{const e=t.getAttribute("data-slide-regions");if(!e)return[];const i=JSON.parse(e);return Array.isArray(i)?i:[]}catch(t){return[]}}(e),a=0===i.length||i.includes("All regions"),r=t&&i.includes(t),n=a||r;e.style.display=n?"":"none",n&&o++}),function(t,e){const i=t.closest("section.section");i?i.style.display=e?"":"none":t.style.display=e?"":"none"}(e,o>0),0!==o&&(function(t,e){t.querySelectorAll(".slider-buttons").forEach(t=>{const i=e>1;t.style.display=i?"":"none",t.querySelectorAll(".slider-counter__link").forEach((t,i)=>{t.style.display=i<e?"":"none"})})}(e,o),"function"==typeof e.resetPages&&e.resetPages())})}function x(t){return"string"==typeof t?""!==t.trim():!!t}function N(t){return"sold_out"===("string"==typeof t?t.trim().toLowerCase():"")?"sold_out":"available"}function K(t,e,i,o){const{linksByRegion:a,regionOrder:r}=function(t,e,i){const o={},a=[],r=function(t,e){return x(e)?{region_code:"US",custom_store_link:e,region_price_formatted:t.getAttribute("data-price")||"",region_compare_at_price_formatted:t.getAttribute("data-compare-at-price")||"",region_availability_status:t.getAttribute("data-availability-status")||"available"}:null}(t,e);return r&&(o.US=r,a.push("US")),Array.isArray(i)&&i.forEach(t=>{const e=t?.region_code;x(e)&&x(t.custom_store_link)&&(o[e]=t,a.includes(e)||a.push(e))}),{linksByRegion:o,regionOrder:a}}(t,e,i),n=P[o]||P.US,s=[...n,...r.filter(t=>!n.includes(t))];for(const t of s){const e=a[t];if(e&&x(e.custom_store_link))return{regionCode:t,region:e,url:e.custom_store_link,isFallback:t!==o}}return null}function z(t,e,i){t&&(i?(t.textContent=e,t.classList.remove("hidden")):t.classList.add("hidden"))}function W(){let t="";const e=localStorage.getItem("userCountry"),i=Object.keys(k).find(t=>k[t]===e);switch(e){case"Canada":t=d;break;case"Australia":t=c;break;case"United Kingdom":t=h;break;case"Ireland":t=g;break;case"Europe":t=m;break;default:t=u}let o=[d,c,h,g,m,u],a=new RegExp(o.join("|"),"g");switch(document.querySelectorAll("a").forEach(e=>{if(!function(t){return t.hasAttribute("data-regions")||t.hasAttribute("data-default-link")||t.hasAttribute("data-price")||t.hasAttribute("data-availability-status")}(e))return void(o.some(t=>e.href.includes(t))&&(e.href=e.href.replace(a,t)));let r=[];try{const t=e.getAttribute("data-regions");if(t&&"null"!==t&&"1"!==t){const e=JSON.parse(t);r=Array.isArray(e)?e:[]}}catch(t){r=[]}const n=e.getAttribute("data-default-link")||"",s=K(e,n,r,i),l=function(t,e){const i={priceFormatted:t.getAttribute("data-price")||"",compareAtPriceFormatted:t.getAttribute("data-compare-at-price")||"",availabilityStatus:N(t.getAttribute("data-availability-status")),linkAvailable:!0,showAvailabilityMessage:!1,availabilityMessage:t.getAttribute("data-availability-message")||"Only available in selected regional stores."};return e?(x(e.region_price_formatted)&&(i.priceFormatted=e.region_price_formatted),Object.prototype.hasOwnProperty.call(e,"region_compare_at_price_formatted")&&(i.compareAtPriceFormatted=e.region_compare_at_price_formatted||""),x(e.region_availability_status)&&(i.availabilityStatus=N(e.region_availability_status)),i):i}(e,s?.region||null);s?(e.href=s.url,l.linkAvailable=!0,l.showAvailabilityMessage=s.isFallback,l.availabilityMessage=s.isFallback?"Available on our "+function(t){return _[t]||t}(s.regionCode)+" store.":e.getAttribute("data-availability-message")||""):(e.removeAttribute("href"),l.linkAvailable=!1,l.showAvailabilityMessage=!0,l.availabilityMessage="Not available for your selected region."),function(t,e){const i=t.closest(".card");if(!i)return;const o=i.querySelector("[data-card-pricing]"),a=i.querySelector("[data-card-price-current]"),r=i.querySelector("[data-card-price-compare]"),n=i.querySelector("[data-card-sale-label]"),s=i.querySelector("[data-card-sold-out-label]"),l=i.querySelector("[data-card-cta]"),u=i.querySelector(".card__availability"),c=x(e.priceFormatted),d=function(t){if(!x(t))return!1;const e=function(t){if("string"!=typeof t)return null;
1const e=t.replace(/[^0-9.-]/g,"");if(""===e)return null;const i=Number.parseFloat(e);return Number.isFinite(i)?i:null}(t);return null===e||e>0}(e.compareAtPriceFormatted),h="sold_out"===e.availabilityStatus,m=!h&&c&&d&&e.priceFormatted!==e.compareAtPriceFormatted;var g,p;if(o&&(c||m||h?o.classList.remove("hidden"):o.classList.add("hidden")),z(a,e.priceFormatted,c),g=r,p=e.compareAtPriceFormatted,g&&(m?(g.innerHTML=`<s>${p}</s>`,g.classList.remove("hidden")):g.classList.add("hidden")),z(n,"Sale",m),z(s,"Sold Out",h),u&&(u.textContent=e.availabilityMessage,e.showAvailabilityMessage||!e.linkAvailable?u.classList.add("card__availability--show"):u.classList.remove("card__availability--show")),l){if(!e.linkAvailable)return void l.classList.add("hidden");l.classList.remove("hidden");const t=l.getAttribute("data-default-link-label")||l.textContent.trim(),i=l.getAttribute("data-notify-me-label")||"Notify Me";l.textContent=h?i:t}}(e,l)}),localStorage.getItem("userCountry")){case"Japan":document.querySelectorAll(".menu-utility__link").forEach(function(t){switch(t.getAttribute("data-icon-type")){case"customer-account":t.setAttribute("href","https://store.universal-music.co.jp/account/login?return_url=%2Faccount");break;case"customer-cart":t.setAttribute("href","https://store.universal-music.co.jp/cart")}});break;case"France":document.querySelectorAll(".menu-utility__link").forEach(function(t){switch(t.getAttribute("data-icon-type")){case"customer-account":t.setAttribute("href","https://store.everythingjazz.fr/account");break;case"customer-cart":t.setAttribute("href","https://store.everythingjazz.fr/cart")}})}!function(t){const e=document.querySelectorAll(".menu-social__list[data-region], .menu-footer__list[data-region]"),i=[...new Set(Array.from(e).map(t=>t.getAttribute("data-region")?.toUpperCase()).filter(Boolean))].includes(t)?t:"DEFAULT";e.forEach(t=>{const e=t.getAttribute("data-region")?.toUpperCase();t.style.display=e===i?"":"none"})}(i)}function J(t){const e=t.match(/^(?:https?:\/\/)?([^./]+)\.[^./]+\.[^./]+/);return e?e[1]:null}function j(t){var e=t.split(".");return e[e.length-1]}function V(t){document.querySelectorAll(".region-selector__button").forEach(e=>{if(e.getAttribute("data-country")===t){const t=e.querySelector("svg.icon-header-bar-active");if(t){const e=document.getElementById("region-icon");e&&(e.innerHTML="",e.appendChild(t.cloneNode(!0)))}return}})}function Z(){const t=new URL(window.location);t.searchParams.delete("country"),window.history.replaceState({},"",t)}function Y(t){return t.toLowerCase().trim().replace(/\s+/g,"-").replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-")}function $(){const t=window.location.hostname.split(".");return t.length>2?t[0]:""}function Q(t){const e=t.match(/^(?:https?:\/\/)?([^./]+)\.[^./]+\.[^./]+/);return e?e[1]:null}function X(t){var e=t.split(".");return e[e.length-1]}function tt(t){console.log(t),console.log("User signed up")}function et(){const t=document.querySelector(".signup-modal");t&&0!==t.getElementsByTagName("input").length&&t.classList.add("isActive")}function it(){localStorage.setItem("shownSignup",(new Date).toString())}function ot(t){var e=t.split(".");return e[e.length-1]}var at;(function(){const t=document.getElementById("search-store");t.addEventListener("click",function(t){t.preventDefault();const e=document.querySelector(".search-input__field").value,i=t.currentTarget.getAttribute("href");var o="",a=$(),r=document.querySelector('button[data-country="Japan"]'),n=Q(r.getAttribute("data-url"));"www"===a?(o=X(window.location.hostname),n=X(r.getAttribute("data-url"))):o=a,window.location.href=o===n?i.replace("?keyword=","?keyword="+Y(e)):i.replace("?q=","?q="+Y(e))});var e="",i=$(),o=document.querySelector('button[data-country="Japan"]'),a=Q(o.getAttribute("data-url")),r=document.querySelector('button[data-country="France"]'),n=Q(r.getAttribute("data-url"));switch("www"===i?(e=X(window.location.hostname),a=X(o.getAttribute("data-url")),n=X(r.getAttribute("data-url"))):e=i,e){case a:t.href="https://store.universal-music.co.jp/search?q=",document.querySelectorAll(".ae-cform-input-country").forEach(function(t){for(var e=t.options,i=0;i<e.length;i++)if("Select..."===e[i].text){e[i].text="鏿...";break}});break;case n:t.href="https://store.everythingjazz.fr/search?q=",document.querySelectorAll(".ae-cform-input-country").forEach(function(t){for(var e=t.options,i=0;i<e.length;i++)if("Select..."===e[i].text){e[i].text="Choisir...";break}});break;default:document.querySelector(".search-input__field").addEventListener("keyup",function(e){13===e.keyCode&&t.click()}),t.href="https://store.everythingjazz.com/search?q="}})(),function(){var t="",e=function(){const t=window.location.hostname.split(".");return t.length>2?t[0]:""}(),i=document.querySelector('button[data-country="Japan"]'),o=function(t){const e=t.match(/^(?:https?:\/\/)?([^./]+)\.[^./]+\.[^./]+/);return e?e[1]:null}(i.getAttribute("data-url"));
1"www"===e?(t=ot(window.location.hostname),o=ot(i.getAttribute("data-url"))):t=e,t===o&&document.querySelectorAll(".ae-cform-input-country").forEach(function(t){t.value="JP"});let a=localStorage.getItem("shownSignup");if(a){if(!function(t){const e=new Date(Date.now()-2592e6);return new Date(t)<e}(a))return;localStorage.removeItem("shownSignup")}document.addEventListener("geoFinished",function(){let t=function(){let t=parseInt(sessionStorage.getItem("pageViews")??0)+1;return sessionStorage.setItem("pageViews",t.toString()),t}();2===t&&setTimeout(et,3e4),t>=3&&et()}),document.addEventListener("ae_social_signin_user_optins",tt),document.querySelectorAll(".close-signup-modal").forEach(t=>t.addEventListener("click",t=>{!function(){const t=document.querySelector(".signup-modal");t&&(t.classList.remove("isActive"),it())}()})),document.querySelectorAll(".signup-modal__inner form .ae-cform-item-submit-button").forEach(t=>t.addEventListener("click",t=>{it()}))}(),function(){document.addEventListener("geoFinished",H),function(){if(null==localStorage.getItem("detectedUserCountry")){var t="";"undefined"!=typeof PUSH_GLOBAL&&(t=PUSH_GLOBAL.geo_ip_country),localStorage.setItem("detectedUserCountry",t)}}(),function(){var t=new URLSearchParams(window.location.search).get("country");t&&/^[A-Za-z]+(?:\s[A-Za-z]+)*$/.test(t)&&O(t);var e="",i=function(){const t=window.location.hostname.split(".");return t.length>2?t[0]:""}(),o=document.querySelector('button[data-country="Japan"]'),a=J(o.getAttribute("data-url")),r=document.querySelector('button[data-country="Germany"]'),n=J(r.getAttribute("data-url")),s=document.querySelector('button[data-country="France"]'),l=J(s.getAttribute("data-url"));switch("www"===i?(e=j(window.location.hostname),a=j(o.getAttribute("data-url")),n=j(r.getAttribute("data-url")),l=j(s.getAttribute("data-url"))):e=i,e){case a:O("Japan");break;case n:O("Germany");break;case l:O("France")}}(),Z();let t=!1;const e={[d]:"Canada",[c]:"Australia",[h]:"United Kingdom",[g]:"Ireland",[m]:"Europe",[u]:"USA"};for(const[i,o]of Object.entries(e))if(p.includes(i)){t=o;break}null==localStorage.getItem("userCountry")?t?(O(t),W(),document.dispatchEvent(y)):"undefined"!=typeof PUSH_GLOBAL?M(PUSH_GLOBAL.geo_ip_country):async function(){try{const t=await fetch("https://ipapi.co/json/");return(await t.json()).country}catch(t){throw console.error("Error:",t),t}}().then(t=>M(t)):(t!=localStorage.getItem("userCountry")&&t?F(t,"type_2"):(G(localStorage.getItem("userCountry")),document.dispatchEvent(y)),W()),document.querySelectorAll(".region-selector__button").forEach(t=>t.addEventListener("click",e=>{O(t.getAttribute("data-country"));var i=document.getElementById("region-selector");if(i){i.removeAttribute("open"),document.body.classList.remove("overflow-hidden");var o=new URL(t.getAttribute("data-url")).origin;window.location.origin!==o?window.location.href=t.getAttribute("data-url"):(Z(),V(t.getAttribute("data-country")))}})),function(){var t=k[localStorage.getItem("detectedUserCountry")],e=localStorage.getItem("userCountry");const i=["Australia","Canada","USA",...T?["United Kingdom"]:[],...C?["Europe"]:[],...B?["Ireland"]:[]];if(void 0!==t)t===e||i.includes(e)||M(localStorage.getItem("detectedUserCountry"),!0);else{var o=q(window.location.href);if(q(S)!==o){var a=k[localStorage.getItem("detectedUserCountry")];F("USA","type_1",S,"US",a)}else localStorage.setItem("detectedUserCountry","US"),O("USA")}}(),V(localStorage.getItem("userCountry"))}(),(()=>{document.querySelectorAll('[id^="Details-"] summary').forEach(e=>{e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),e.nextElementSibling.getAttribute("id")&&e.setAttribute("aria-controls",e.nextElementSibling.id),e.addEventListener("click",t=>{t.currentTarget.setAttribute("aria-expanded",!t.currentTarget.closest("details").hasAttribute("open"))}),e.closest("header-drawer")||e.parentElement.addEventListener("keyup",t)}),window.trapFocus={trapFocusHandlers:{},removeTrapFocus:(t=null)=>{document.removeEventListener("focusin",window.trapFocus.trapFocusHandlers.focusin),document.removeEventListener("focusout",window.trapFocus.trapFocusHandlers.focusout),document.removeEventListener("keydown",window.trapFocus.trapFocusHandlers.keydown),t&&t.focus()},trapFocus:(t,e=t)=>{const i=(t=>Array.from(t.querySelectorAll("summary, a[href], button:enabled, [tabindex]:not
1([tabindex^='-']), [draggable], area, input:not([type=hidden]):enabled, select:enabled, textarea:enabled, object, iframe")))(t),o=i[0],a=i[i.length-1];window.trapFocus.removeTrapFocus(),window.trapFocus.trapFocusHandlers.focusin=e=>{e.target!==t&&e.target!==a&&e.target!==o||document.addEventListener("keydown",window.trapFocus.trapFocusHandlers.keydown)},window.trapFocus.trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",window.trapFocus.trapFocusHandlers.keydown)},window.trapFocus.trapFocusHandlers.keydown=function(e){"TAB"===e.code.toUpperCase()&&(e.target!==a||e.shiftKey||(e.preventDefault(),o.focus()),e.target!==t&&e.target!==o||!e.shiftKey||(e.preventDefault(),a.focus()))},document.addEventListener("focusout",window.trapFocus.trapFocusHandlers.focusout),document.addEventListener("focusin",window.trapFocus.trapFocusHandlers.focusin),e.focus()}};try{document.querySelector(":focus-visible")}catch{!function(){const t=["ARROWUP","ARROWDOWN","ARROWLEFT","ARROWRIGHT","TAB","ENTER","SPACE","ESCAPE","HOME","END","PAGEUP","PAGEDOWN"];let e=null,i=null;window.addEventListener("keydown",e=>{t.includes(e.code.toUpperCase())&&(i=!1)}),window.addEventListener("mousedown",()=>{i=!0}),window.addEventListener("focus",()=>{e&&e.classList.remove("focused"),i||(e=document.activeElement,e.classList.add("focused"))},!0)}()}})(),(at=document.querySelector(".cookie-choices-footer-link a"))&&at.addEventListener("click",t=>{t.preventDefault(),"undefined"!=typeof transcend&&transcend.showConsentManager({viewState:"CompleteOptions"})}),customElements.get("menu-drawer")||customElements.define("menu-drawer",e),customElements.get("header-drawer")||customElements.define("header-drawer",class extends e{openMenuDrawer(t){this.header=this.header||document.getElementById("main-header"),this.borderOffset=1,document.documentElement.style.setProperty("--header-bottom-position",`${parseInt(this.header.getBoundingClientRect().bottom-this.borderOffset,10)}px`),setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening")}),t.setAttribute("aria-expanded",!0),window.trapFocus.trapFocus(this.mainDetailsToggle,t),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`)}}),customElements.get("article-pagination")||customElements.define("article-pagination",l),customElements.get("slider-component")||customElements.define("slider-component",n),customElements.get("slideshow-component")||customElements.define("slideshow-component",class extends n{constructor(){super(),this.sliderControlWrapper=this.querySelector(".slider-buttons"),this.enableSliderLooping=!0,this.sliderControlWrapper&&(this.sliderFirstItemNode=this.slider.querySelector(".slideshow__slide"),this.sliderItemsToShow.length>0&&(this.currentPage=1),this.sliderControlLinksArray=Array.from(this.sliderControlWrapper.querySelectorAll(".slider-counter__link")),this.sliderControlLinksArray.forEach(t=>t.addEventListener("click",this.linkToSlide.bind(this))),this.slider.addEventListener("scroll",this.setSlideVisibility.bind(this)),this.setSlideVisibility(),"true"===this.slider.getAttribute("data-autoplay")&&this.setAutoPlay())}setAutoPlay(){this.sliderAutoplayButton=this.querySelector(".slideshow__autoplay"),this.autoplaySpeed=1e3*this.slider.dataset.speed,this.sliderAutoplayButton.addEventListener("click",this.autoPlayToggle.bind(this)),this.addEventListener("mouseover",this.focusInHandling.bind(this)),this.addEventListener("mouseleave",this.focusOutHandling.bind(this)),this.addEventListener("focusin",this.focusInHandling.bind(this)),this.addEventListener("focusout",this.focusOutHandling.bind(this)),this.play(),this.autoplayButtonIsSetToPlay=!0}onButtonClick(t){super.onButtonClick(t);const e=1===this.currentPage,i=this.currentPage===this.sliderItemsToShow.length;(e||i)&&(e&&"previous"===t.currentTarget.name?this.slideScrollPosition=this.slider.scrollLeft+this.sliderFirstItemNode.clientWidth*this.sliderItemsToShow.length:i&&"next"===t.currentTarget.name&&(this.slideScrollPosition=0),this.slider.scrollTo({left:this.slideScrollPosition}))}update(){super.update(),this.sliderControlButtons=this.querySelectorAll(".slider-counter__link"),this.prevButton.removeAttribute("disabled"),this.sliderControlButtons.length&&(this.sliderControlButtons.forEach(t=>{t.classList.remove("slider-counter__link--active"),t.removeAttribute("aria-current")}),this.sliderControlButtons[this.currentPage-1].classList.add("slider-counter__link--active"),this.sliderControlButtons[this.currentPage-1].setAttribute("aria-current",!0),this.prevButton.removeAttribute("disabled"))}
1autoPlayToggle(){this.togglePlayButtonState(this.autoplayButtonIsSetToPlay),this.autoplayButtonIsSetToPlay?this.pause():this.play(),this.autoplayButtonIsSetToPlay=!this.autoplayButtonIsSetToPlay}focusOutHandling(t){const e=t.target===this.sliderAutoplayButton||this.sliderAutoplayButton.contains(t.target);this.autoplayButtonIsSetToPlay&&!e&&this.play()}focusInHandling(t){(t.target===this.sliderAutoplayButton||this.sliderAutoplayButton.contains(t.target))&&this.autoplayButtonIsSetToPlay?this.play():this.autoplayButtonIsSetToPlay&&this.pause()}play(){this.slider.setAttribute("aria-live","off"),clearInterval(this.autoplay),this.autoplay=setInterval(this.autoRotateSlides.bind(this),this.autoplaySpeed)}pause(){this.slider.setAttribute("aria-live","polite"),clearInterval(this.autoplay)}togglePlayButtonState(t){t?(this.sliderAutoplayButton.classList.add("slideshow__autoplay--paused"),this.sliderAutoplayButton.setAttribute("aria-label","Play slideshow")):(this.sliderAutoplayButton.classList.remove("slideshow__autoplay--paused"),this.sliderAutoplayButton.setAttribute("aria-label","Pause slideshow"))}autoRotateSlides(){const t=this.currentPage===this.sliderItems.length?0:this.slider.scrollLeft+this.slider.querySelector(".slideshow__slide").clientWidth;this.slider.scrollTo({left:t})}setSlideVisibility(){this.sliderItemsToShow.forEach((t,e)=>{const i=t.querySelector("a");e===this.currentPage-1?(i&&i.removeAttribute("tabindex"),t.setAttribute("aria-hidden","false"),t.removeAttribute("tabindex")):(i&&i.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"))})}linkToSlide(t){t.preventDefault();const e=this.slider.scrollLeft+this.sliderFirstItemNode.clientWidth*(this.sliderControlLinksArray.indexOf(t.currentTarget)+1-this.currentPage);this.slider.scrollTo({left:e})}}),customElements.get("details-disclosure")||customElements.define("details-disclosure",o),customElements.get("details-modal")||customElements.define("details-modal",r)})();
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.