PageSourceSearch

https://cloversgarden.com/cdn/shop/t/20/assets/vendors-DynamicFeat…?v=93738230588053085511721959897

js cloversgarden.com collected 2026-10-10 01:10:10 UTC 54,507 bytes, 5 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{26:(function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var moneyFormats={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"&euro;{{amount}}",money_with_currency_format:"&euro;{{amount}} EUR"},GBP:{money_format:"&pound;{{amount}}",money_with_currency_format:"&pound;{{amount}} GBP"},CAD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} CAD"},ALL:{money_format:"Lek {{amount}}",money_with_currency_format:"Lek {{amount}} ALL"},DZD:{money_format:"DA {{amount}}",money_with_currency_format:"DA {{amount}} DZD"},AOA:{money_format:"Kz{{amount}}",money_with_currency_format:"Kz{{amount}} AOA"},ARS:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} ARS"},AMD:{money_format:"{{amount}} AMD",money_with_currency_format:"{{amount}} AMD"},AWG:{money_format:"Afl{{amount}}",money_with_currency_format:"Afl{{amount}} AWG"},AUD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} AUD"},BBD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} Bds"},AZN:{money_format:"m.{{amount}}",money_with_currency_format:"m.{{amount}} AZN"},BDT:{money_format:"Tk {{amount}}",money_with_currency_format:"Tk {{amount}} BDT"},BSD:{money_format:"BS${{amount}}",money_with_currency_format:"BS${{amount}} BSD"},BHD:{money_format:"{{amount}}0 BD",money_with_currency_format:"{{amount}}0 BHD"},BYR:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYR"},BZD:{money_format:"BZ${{amount}}",money_with_currency_format:"BZ${{amount}} BZD"},BTN:{money_format:"Nu {{amount}}",money_with_currency_format:"Nu {{amount}} BTN"},BAM:{money_format:"KM {{amount_with_comma_separator}}",money_with_currency_format:"KM {{amount_with_comma_separator}} BAM"},BRL:{money_format:"R$ {{amount_with_comma_separator}}",money_with_currency_format:"R$ {{amount_with_comma_separator}} BRL"},BOB:{money_format:"Bs{{amount_with_comma_separator}}",money_with_currency_format:"Bs{{amount_with_comma_separator}} BOB"},BWP:{money_format:"P{{amount}}",money_with_currency_format:"P{{amount}} BWP"},BND:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} BND"},BGN:{money_format:"{{amount}} \u043B\u0432",money_with_currency_format:"{{amount}} \u043B\u0432 BGN"},MMK:{money_format:"K{{amount}}",money_with_currency_format:"K{{amount}} MMK"},KHR:{money_format:"KHR{{amount}}",money_with_currency_format:"KHR{{amount}}"},KYD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} KYD"},XAF:{money_format:"FCFA{{amount}}",money_with_currency_format:"FCFA{{amount}} XAF"},CLP:{money_format:"${{amount_no_decimals}}",money_with_currency_format:"${{amount_no_decimals}} CLP"},CNY:{money_format:"&#165;{{amount}}",money_with_currency_format:"&#165;{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"&#8353; {{amount_with_comma_separator}}",money_with_currency_format:"&#8353; {{amount_with_comma_separator}} CRC"},HRK:{money_format:"{{amount_with_comma_separator}} kn",money_with_currency_format:"{{amount_with_comma_separator}} kn HRK"},CZK:{money_format:"{{amount_with_comma_separator}} K&#269;",money_with_currency_format:"{{amount_with_comma_separator}} K&#269;"},DKK:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"kr.{{amount_with_comma_separator}}"},DOP:{money_format:"RD$ {{amount}}",money_with_currency_format:"RD$ {{amount}}"},XCD:{money_format:"${{amount}}",money_with_currency_format:"EC${{amount}}"},EGP:{money_format:"LE {{amount}}",money_with_currency_format:"LE {{amount}} EGP"},ETB:{money_format:"Br{{amount}}",money_with_currency_format:"Br{{amount}} ETB"},XPF:{money_format:"{{amount_no_decimals_with_comma_separator}} XPF",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} XPF"},FJD:{money_format:"${{amount}}",money_with_currency_format:"FJ${{amount}}"},GMD:{money_format:"D {{amount}}",money_with_currency_format:"D {{amount}} GMD"},GHS:{money_format:"GH&#8373;{{amount}}",money_with_currency_format:"GH&#8373;{{amount}}"},GTQ:{money_format:"Q{{amount}}",money_with_currency_format:"{{amount}} GTQ"},GYD:{money_format:"G${{amount}}",money_with_currency_format:"${{amount}} GYD"},GEL:{money_format:"{{amount}} GEL",money_with_currency_format:"{{amount}} GEL"},HNL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} HNL"},HKD:{money_format:"${{amount}}",money_with_currency_format:"HK${{amount}}"},HUF:{money_format:"{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} Ft"},ISK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr ISK"},INR:{money_format:"Rs. {{amount}}",money_with_currency_format:"Rs. {{amount}}"},IDR:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"Rp {{amount_with_comma_separator}}"},ILS:{money_format:"{{amount}} NIS",money_with_currency_format:"{{amount}} NIS"},JMD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} JMD"},JPY:{money_format:"&#165;{{amount_no_decimals}}",money_with_currency_format:"&#165;{{amount_no_decimals}} JPY"},JEP:{money_format:"&pound;{{amount}}",money_with_currency_format:"&pound;{{amount}} JEP"},JOD:{money_format:"{{amount}}0 JD",money_with_currency_format:"{{amount}}0 JOD"},KZT:{money_format:"{{amount}} KZT",money_with_currency_format:"{{amount}} KZT"},KES:{money_format:"KSh{{amount}}",money_with_currency_format:"KSh{{amount}}"},KWD:{money_format:"{{amount}}0 KD",money_with_currency_format:"{{amount}}0 KWD"},KGS:{money_format:"\u043B\u0432{{amount}}",money_with_currency_format:"\u043B\u0432{{amount}}"},LVL:{money_format:"Ls {{amount}}",money_with_currency_format:"Ls {{amount}} LVL"},LBP:{money_format:"L&pound;{{amount}}",money_with_currency_format:"L&pound;{{amount}} LBP"},LTL:{money_format:"{{amount}} Lt",money_with_currency_format:"{{amount}} Lt"},MGA:{money_format:"Ar {{amount}}",money_with_currency_format:"Ar {{amount}} MGA"},MKD:{money_format:"\u0434\u0435\u043D {{amount}}",money_with_currency_format:"\u0434\u0435\u043D {{amount}} MKD"},MOP:{money_format:"MOP${{amount}}",money_with_currency_format:"MOP${{amount}}"},MVR:{money_format:"Rf{{amount}}",money_with_currency_format:"Rf{{amount}} MRf"},MXN:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} MXN"},MYR:{money_format:"RM{{amount}} MYR",money_with_currency_format:"RM{{amount}} MYR"},MUR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} MUR"},MDL:{money_format:"{{amount}} MDL",money_with_currency_format:"{{amount}} MDL"},MAD:{money_format:"{{amount}} dh",money_with_currency_format:"Dh {{amount}} MAD"},MNT:{money_format:"{{amount_no_decimals}} &#8366",money_with_currency_format:"{{amount_no_decimals}} MNT"},MZN:{money_format:"{{amount}} Mt",money_with_currency_format:"Mt {{amount}} MZN"},NAD:{money_format:"N${{amount}}",money_with_currency_format:"N${{amount}} NAD"},NPR:{money_format:"Rs{{amount}}",money_with_currency_format:"Rs{{amount}} NPR"},ANG:{money_format:"&fnof;{{amount}}",money_with_currency_format:"{{amount}} NA&fnof;"},NZD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} NZD"},NIO:{money_format:"C${{amount}}",money_with_currency_format:"C${{amount}} NIO"},NGN:{money_format:"&#8358;{{amount}}",money_with_currency_format:"&#8358;{{amount}} NGN"},NOK:{money_format:"kr {{amount_with_comma_separator}}",money_with_currency_format:"kr {{amount_with_comma_separator}} NOK"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PKR:{money_format:"Rs.{{amount}}",money_with_currency_format:"Rs.{{amount}} PKR"},PGK:{money_format:"K {{amount}}",money_with_currency_format:"K {{amount}} PGK"},PYG:{money_format:"Gs. {{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"Gs. {{amount_no_decimals_with_comma_separator}} PYG"},PEN:{money_format:"S/. {{amount}}",money_with_currency_format:"S/. {{amount}} PEN"},PHP:{money_format:"&#8369;{{amount}}",money_with_currency_format:"&#8369;{{amount}} PHP"},PLN:{money_format:"{{amount_with_comma_separator}} zl",money_with_currency_format:"{{amount_with_comma_separator}} zl PLN"},QAR:{money_format:"QAR {{amount_with_comma_separator}}",money_with_currency_format:"QAR {{amount_with_comma_separator}}"},RON:{money_format:"{{amount_with_comma_separator}} lei",money_with_currency_format:"{{amount_with_comma_separator}} lei RON"},RUB:{money_format:"&#1088;&#1091;&#1073;{{amount_with_comma_separator}}",money_with_currency_format:"&#1088;&#1091;&#1073;{{amount_with_comma_separator}} RUB"},RWF:{money_format:"{{amount_no_decimals}} RF",money_with_currency_format:"{{amount_no_decimals}} RWF"},WST:{money_format:"WS$ {{amount}}",money_with_currency_format:"WS$ {{amount}} WST"},SAR:{money_format:"{{amount}} SR",money_with_currency_format:"{{amount}} SAR"},STD:{money_format:"Db {{amount}}",money_with_currency_format:"Db {{amount}} STD"},RSD:{money_format:"{{amount}} RSD",money_with_currency_format:"{{amount}} RSD"},SCR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} SCR"},SGD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} SGD"},SYP:{money_format:"S&pound;{{amount}}",money_with_currency_format:"S&pound;{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"&#8361;{{amount_no_decimals}}",money_with_currency_format:"&#8361;{{amount_no_decimals}} KRW"},LKR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} LKR"},SEK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr SEK"},CHF:{money_format:"SFr. {{amount}}",money_with_currency_format:"SFr. {{amount}} CHF"},TWD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TWD"},THB:{money_format:"{{amount}} &#xe3f;",money_with_currency_format:"{{amount}} &#xe3f; THB"},TZS:{money_format:"{{amount}} TZS",money_with_currency_format:"{{amount}} TZS"},TTD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TTD"},TND:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} DT"},TRY:{money_format:"{{amount}}TL",money_with_currency_format:"{{amount}}TL"},UGX:{money_format:"Ush {{amount_no_decimals}}",money_with_currency_format:"Ush {{amount_no_decimals}} UGX"},UAH:{money_format:"\u20B4{{amount}}",money_with_currency_format:"\u20B4{{amount}} UAH"},AED:{money_format:"Dhs. {{amount}}",money_with_currency_format:"Dhs. {{amount}} AED"},UYU:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} UYU"},VUV:{money_format:"${{amount}}",money_with_currency_format:"${{amount}}VT"},VEF:{money_format:"Bs. {{amount_with_comma_separator}}",money_with_currency_format:"Bs. {{amount_with_comma_separator}} VEF"},VND:{money_format:"{{amount_no_decimals_with_comma_separator}}&#8363;",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} VND"},XBT:{money_format:"{{amount_no_decimals}} BTC",money_with_currency_format:"{{amount_no_decimals}} BTC"},XOF:{money_format:"CFA{{amount}}",money_with_currency_format:"CFA{{amount}} XOF"},ZMW:{money_format:"K{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"ZMW{{amount_no_decimals_with_comma_separator}}"}};function formatWithDelimiters(number){var precision=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,thousands=arguments.length>2&&arguments[2]!==void 0?arguments[2]:",",decimal=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";if(isNaN(number)||!number)return 0;var preciseNumber=(number/100).toFixed(precision),parts=preciseNumber.split(thousands),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/;switch(format.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2,",",".");break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'",".");break;case"amount_no_decimals":value=formatWithDelimiters(cents,0,",",".");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,",",".");break}return format.replace(placeholderRegex,value)}function getCentsValue(moneyAmount,format,currency){var cents=0;return format.indexOf("amount_no_decimals")!==-1?cents=moneyAmount*100:currency==="JOD"||currency==="KWD"||currency==="BHD"?cents=moneyAmount/10:cents=moneyAmount,cents}function getMoneyValue(priceEl){var price=priceEl.getAttribute("data-currency-original")||priceEl.textContent,value=parseInt(price.replace(/[^0-9]/g,""),10);return isNaN(value)?"":value}var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}})(),CurrencyConverter=(function(){function CurrencyConverter2(){classCallCheck(this,CurrencyConverter2),this.defaults={switcherSelector:"[data-currency-converter]",priceSelector:".money",shopCurrency:"",defaultCurrency:"",displayFormat:"",moneyFormat:"",moneyFormatNoCurrency:"",moneyFormatCurrency:""},this.options={},this.moneyFormats=moneyFormats,this.storage="currency",this.currentCurrency=null,this.isInitialised=!1}return createClass(CurrencyConverter2,[{key:"init",value:function(settings){var _this=this;!window.Currency||this.isInitialised||(Object.keys(this.defaults).forEac
1h(function(key){_this.options[key]=settings[key]||_this.defaults[key]}),this.currentCurrency=this._getStoredCurrency()||this.options.defaultCurrency,this.moneyFormats[this.options.shopCurrency].money_with_currency_format=this.options.moneyFormatCurrency,this.moneyFormats[this.options.shopCurrency].money_format=this.options.moneyFormatNoCurrency,this.isInitialised=!0,this._current())}},{key:"setCurrency",value:function(newCurrency){this.isInitialised&&this._convertAll(newCurrency)}},{key:"update",value:function(priceEl){if(this.isInitialised){for(var attributes=priceEl.attributes,attr=0;attr<attributes.length;attr++){var attribute=attributes[attr];attribute.name.indexOf("data-currency")===0&&priceEl.setAttribute(attribute.name,"")}this._convertEl(priceEl,this.currentCurrency)}}},{key:"_getStoredCurrency",value:function(){try{return localStorage.getItem(this.storage)}catch(error){return console.warn(error),this.options.defaultCurrency}}},{key:"_setStoredCurrency",value:function(currency){try{localStorage.setItem(this.storage,currency)}catch(error){console.warn(error)}}},{key:"_current",value:function(){for(var switchers=document.querySelectorAll(this.options.switcherSelector),i=0;i<switchers.length;i+=1)for(var switcher=switchers[i],childrenEls=switcher.querySelectorAll("option"),j=0;j<childrenEls.length;j+=1){var optionEl=childrenEls[j];optionEl.selected&&optionEl.value!==this.currentCurrency&&(optionEl.selected=!1),optionEl.value===this.currentCurrency&&(optionEl.selected=!0)}this._convertAll(this.currentCurrency)}},{key:"_convertEl",value:function(priceEl,newCurrency){var oldCurrency=this.options.shopCurrency;if(priceEl.getAttribute("data-currency")!==newCurrency){if(priceEl.getAttribute("data-currency-"+newCurrency))priceEl.innerHTML=priceEl.getAttribute("data-currency-"+newCurrency);
1else{var oldFormat=this.moneyFormats[oldCurrency][this.options.displayFormat],newFormat=this.moneyFormats[newCurrency][this.options.displayFormat],moneyValue=getMoneyValue(priceEl),centsValue=getCentsValue(moneyValue,oldFormat,oldCurrency);if(centsValue==="")return;var cents=window.Currency.convert(centsValue,oldCurrency,newCurrency),oldPriceFormatted=formatMoney(centsValue,oldFormat),priceFormatted=formatMoney(cents,newFormat);priceEl.getAttribute("data-currency-original")||priceEl.setAttribute("data-currency-original",oldPriceFormatted),priceEl.setAttribute("data-currency-"+oldCurrency,oldPriceFormatted),priceEl.setAttribute("data-currency-"+newCurrency,priceFormatted),priceEl.innerHTML=priceFormatted}priceEl.setAttribute("data-currency",newCurrency)}}},{key:"_convertAll",value:function(newCurrency){var priceEls=document.querySelectorAll(this.options.priceSelector);if(priceEls){this.currentCurrency=newCurrency,this._setStoredCurrency(newCurrency);for(var i=0;i<priceEls.length;i+=1)this._convertEl(priceEls[i],newCurrency)}}}]),CurrencyConverter2})(),singletonInstance=new CurrencyConverter;exports.default=singletonInstance,exports.CurrencyConverter=CurrencyConverter}),28:(function(module,exports,__webpack_require__){"use strict";var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object"],css=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";module.exports=function(parentSelector,opts){parentSelector=parentSelector||"body",opts=opts||{},isObject(parentSelector)&&(opts=parentSelector,parentSelector="body"),opts.ignore=opts.ignore||"",opts.players=opts.players||"";var containers=queryAll(parentSelector);if(hasLength(containers)){if(!document.getElementById("fit-vids-style")){var head=document.head||document.getElementsByTagName("head")[0];head.appendChild(styles())}var custom=toSelectorArray(opts.players)||[],ignored=toSelectorArray(opts.ignore)||[],selector=selectors.filter(notIgnored(ignored)).concat(custom).join();hasLength(selector)&&containers.forEach(function(container){var videos=queryAll(container,selector);
1videos.forEach(function(video){wrap(video)})})}};function queryAll(el,selector){return typeof el=="string"&&(selector=el,el=document),Array.prototype.slice.call(el.querySelectorAll(selector))}function toSelectorArray(input){return typeof input=="string"?input.split(",").map(trim).filter(hasLength):isArray(input)?flatten(input.map(toSelectorArray).filter(hasLength)):input||[]}function wrap(el){if(!/fluid-width-video-wrapper/.test(el.parentNode.className)){var widthAttr=parseInt(el.getAttribute("width"),10),heightAttr=parseInt(el.getAttribute("height"),10),width=isNaN(widthAttr)?el.clientWidth:widthAttr,height=isNaN(heightAttr)?el.clientHeight:heightAttr,aspect=height/width;el.removeAttribute("width"),el.removeAttribute("height");var wrapper=document.createElement("div");el.parentNode.insertBefore(wrapper,el),wrapper.className="fluid-width-video-wrapper",wrapper.style.paddingTop=aspect*100+"%",wrapper.appendChild(el)}}function styles(){var div=document.createElement("div");return div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+"</style>",div.childNodes[1]}function notIgnored(ignored){return ignored.length<1?function(){return!0}:function(selector){return ignored.indexOf(selector)===-1}}function hasLength(input){return input.length>0}function trim(str){return str.replace(/^\s+|\s+$/g,"")}function flatten(input){return[].concat.apply([],input)}function isObject(input){return Object.prototype.toString.call(input)==="[object Object]"}function isArray(input){return Object.prototype.toString.call(input)==="[object Array]"}}),29:(function(module,exports,__webpack_require__){"use strict";function forEach(array,callback,scope){var index=0;for(index=0;index<array.length;index+=1)callback.call(scope,array[index],index)}function hasClass(el,className){var regex=new RegExp("^"+className+"| +"+className,"g");return el.className.match(regex)}function addClass(el,className){hasClass(el,className)||(el.className+=" "+className)}function removeClass(el,className){if(hasClass(el,className)){var regex=new RegExp("^"+className+"| +"+className,"g");el.className=el.className.replace(regex,"")}}function toggleClass(el,className){hasClass(el,className)?removeClass(el,className):addClass(el,className)}function findPairingFromPairingTrigger(pairings,pairingTrigger){var foundPairing=null;return forEach(pairings,function(pairing){pairing.trigger===pairingTrigger&&(foundPairing=pairing)}),foundPairing}function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=Math.random()*16|0,v=c==="x"?r:r&3|8;return v.toString(16)})}function init(groupedContent){var triggers=groupedContent.triggers,pairings=groupedContent.pairings;triggers.setAttribute("role","tablist"),forEach(pairings,function(pairing,index){pairing.trigger.setAttribute("role","tab"),pairing.trigger.setAttribute("aria-controls",groupedContent.namespace+"-"+groupedContent.id+"-"+index+"-content"),pairing.trigger.children.length>0&&forEach(pairing.trigger.children,function(child){child.setAttribute("tabIndex","-1")}),hasClass(pairing.trigger,"active")?(pairing.trigger.setAttribute("aria-selected","true"),pairing.trigger.setAttribute("tabIndex","0")):pairing.trigger.setAttribute("tabIndex","-1"),pairing.content.id=groupedContent.namespace+"-"+groupedContent.id+"-"+index+"-content",pairing.content.setAttribute("role","tabpanel"),hasClass(pairing.content,"active")||pairing.content.setAttribute("aria-hidden","true")})}function update(groupedContent){var pairings=groupedContent.pairings;forEach(pairings,function(pairing){pairing.trigger.removeAttribute("aria-selected"),pairing.content.removeAttribute("aria-hidden"),hasClass(pairing.trigger,"active")?(pairing.trigger.setAttribute("aria-selected","true"),pairing.trigger.setAttribute("tabIndex","0")):pairing.trigger.setAttribute("tabIndex","-1"),hasClass(pairing.content,"active")||pairing.content.setAttribute("aria-hidden","true")})}var a11y={init:init,update:update},asyncGenerator=(function(){function AwaitValue(value){this.value=value}function AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise(function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};back?back=back.next=request:(front=back=request,resume(key,arg))})}function resume(key,arg){try{var result=gen[key](arg),value=result.value;value instanceof AwaitValue?Promise.resolve(value.value).then(function(arg2){resume("next",arg2)},function(arg2){resume("throw",arg2)}):settle(result.done?"return":"normal",result.value)}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:!0});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:!1});break}front=front.next,front?resume(front.key,front.arg):back=null}
1this._invoke=send,typeof gen.return!="function"&&(this.return=void 0)}return typeof Symbol=="function"&&Symbol.asyncIterator&&(AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}),AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)},AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)},AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)},{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments))}},await:function(value){return new AwaitValue(value)}}})(),classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}})(),TabsLayout=(function(){function TabsLayout2(groupedContent){classCallCheck(this,TabsLayout2),this.groupedContent=groupedContent,this.pairings=groupedContent.pairings,this.events=[],this._handleKeydown=this._handleKeydown.bind(this),this._handleClick=this._handleClick.bind(this),this._init(),a11y.init(this.groupedContent)}return createClass(TabsLayout2,[{key:"unload",value:function(){forEach(this.events,function(event2){event2.trigger.removeEventListener(event2.type,event2.fn)})}},{key:"_init",value:function(){var _this=this,existingActive=!1;forEach(this.pairings,function(pairing){var trigger=pairing.trigger;hasClass(trigger,"active")&&(existingActive=!0),trigger.addEventListener("keydown",_this._handleKeydown),trigger.addEventListener("click",_this._handleClick),_this.events.push({trigger:trigger,type:"keydown",fn:_this._handleKeydown}),_this.events.push({trigger:trigger,type:"click",fn:_this._handleClick})}),existingActive||(addClass(this.pairings[0].trigger,"active"),addClass(this.pairings[0].content,"active"))}},{key:"_handleKeydown",value:function(event2){var trigger=event2.currentTarget,pairing=findPairingFromPairingTrigger(this.pairings,trigger),pairingIndex=this.pairings.indexOf(pairing),prevIndex=pairingIndex-1<0?this.pairings.length-1:pairingIndex-1,nextIndex=pairingIndex+1>=this.pairings.length?0:pairingIndex+1,nextPairing=null;switch(event2.key){case"ArrowLeft":nextPairing=this.pairings[prevIndex];break;case"ArrowRight":nextPairing=this.pairings[nextIndex];break;default:nextPairing=null;break}nextPairing!==null&&(event2.preventDefault(),forEach(this.pairings,function(inactivePairing){removeClass(inactivePairing.trigger,"active"),removeClass(inactivePairing.content,"active")}),addClass(nextPairing.trigger,"active"),addClass(nextPairing.content,"active"),nextPairing.trigger.focus(),a11y.update(this.groupedContent))}},{key:"_handleClick",value:function(event2){var trigger=event2.currentTarget,pairing=findPairingFromPairingTrigger(this.pairings,trigger);pairing!==null&&(event2.preventDefault(),forEach(this.pairings,function(inactivePairing){removeClass(inactivePairing.trigger,"active"),removeClass(inactivePairing.content,"active")}),addClass(pairing.trigger,"active"),addClass(pairing.content,"active"),a11y.update(this.groupedContent))}}]),TabsLayout2})();function init$1(groupedContent){var pairings=groupedContent.pairings;forEach(pairings,function(pairing,index){pairing.trigger.setAttribute("role","button"),pairing.trigger.setAttribute("aria-controls",groupedContent.namespace+"-"+groupedContent.id+"-"+index+"-content"),pairing.trigger.setAttribute("tabIndex","0"),pairing.trigger.children.length>0&&forEach(pairing.trigger.children,function(child){child.setAttribute("tabIndex","-1")}),hasClass(pairing.trigger,"active")?pairing.trigger.setAttribute("aria-expanded","true"):pairing.trigger.setAttribute("aria-expanded","fal
1se"),pairing.content.id=groupedContent.namespace+"-"+groupedContent.id+"-"+index+"-content",hasClass(pairing.content,"active")||pairing.content.setAttribute("aria-hidden","true")})}function update$1(groupedContent){var pairings=groupedContent.pairings;forEach(pairings,function(pairing){pairing.content.removeAttribute("aria-hidden"),hasClass(pairing.trigger,"active")?pairing.trigger.setAttribute("aria-expanded","true"):pairing.trigger.setAttribute("aria-expanded","false"),hasClass(pairing.content,"active")||pairing.content.setAttribute("aria-hidden","true")})}var a11y$1={init:init$1,update:update$1},AccordionLayout=(function(){function AccordionLayout2(groupedContent){classCallCheck(this,AccordionLayout2),this.groupedContent=groupedContent,this.pairings=groupedContent.pairings,this.events=[],this._handleKeydown=this._handleKeydown.bind(this),this._handleClick=this._handleClick.bind(this),this._init(this.pairings),a11y$1.init(this.groupedContent)}return createClass(AccordionLayout2,[{key:"unload",value:function(){forEach(this.events,function(event2){event2.trigger.removeEventListener(event2.type,event2.fn)})}},{key:"_init",value:function(){var _this=this;forEach(this.pairings,function(pairing){var trigger=pairing.trigger,content=pairing.content;trigger.parentNode.insertBefore(content,trigger.nextSibling),trigger.addEventListener("keydown",_this._handleKeydown),trigger.addEventListener("click",_this._handleClick),_this.events.push({trigger:trigger,type:"keydown",fn:_this._handleKeydown}),_this.events.push({trigger:trigger,type:"click",fn:_this._handleClick})}),this.groupedContent.contents.remove()}},{key:"_handleKeydown",value:function(event2){var trigger=event2.currentTarget,pairing=findPairingFromPairingTrigger(this.pairings,trigger);event2.key!=="Enter"||pairing===null||(event2.preventDefault(),toggleClass(pairing.trigger,"active"),toggleClass(pairing.content,"active"),a11y$1.update(this.groupedContent))}},{key:"_handleClick",value:function(event2){var trigger=event2.currentTarget,pairing=findPairingFromPairingTrigger(this.pairings,trigger);pairing!==null&&(event2.preventDefault(),toggleClass(pairing.trigger,"active"),toggleClass(pairing.content,"active"),a11y$1.update(this.groupedContent))}}]),AccordionLayout2})();function getHeadingContent(heading){for(var headingTagNames=["H1","H2","H3","H4","H5","H6"],tagNameIndex=headingTagNames.indexOf(heading.tagName),content=[],sibling=heading.nextElementSibling;sibling!==null&&(headingTagNames.indexOf(sibling.tagName)===-1||headingTagNames.indexOf(sibling.tagName)>tagNameIndex);)content.push(sibling),sibling=sibling.nextElementSibling;return content}function getHeadingTree(el,children){for(var evaluatingRoot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,headingTagNames=["H1","H2","H3","H4","H5","H6"],tagNameIndex=headingTagNames.indexOf(el.tagName),headings=[],currentLowestTagNameIndex=5,i=0;i<children.length;i+=1){var child=children[i],childTagNameIndex=headingTagNames.indexOf(child.tagName);if(childTagNameIndex!==-1&&childTagNameIndex<currentLowestTagNameIndex&&(currentLowestTagNameIndex=childTagNameIndex),evaluatingRoot&&childTagNameIndex!==-1&&childTagNameIndex<=currentLowestTagNameIndex||!evaluatingRoot&&childTagNameIndex!==-1&&childTagNameIndex===tagNameIndex+1){var siblings=getHeadingContent(child),childNode={el:child,content:siblings,children:getHeadingTree(child,siblings)};headings.push(childNode)}}return headings}function getHeadingGroupsInSequence(headings,invalidHeadings,minInSequence){for(var headingGroupsInSequence=[],currentHeadingGroupInSequence=[],currentSequence=0,i=0;i<headings.length;i+=1)invalidHeadings.indexOf(i)===-1&&(currentHeadingGroupInSequence.push(headings[i]),currentSequence+=1,i!==headings.length-1&&headings[i].el.tagName!==headings[i+1].el.tagName&&invalidHeadings.indexOf(i+1)?(currentHeadingGroupInSequence=[],currentSequence=0):i!==0&&headings[i].el.tagName!==headings[i-1].el.tagName&&(currentHeadingGroupInSequence.pop(),currentSequence-=1,currentSequence>=minInSequence&&headingGroupsInSequence.push(currentHeadingGroupInSequence),currentHeadingGroupInSequence=[headings[i]],currentSequence=1));return currentSequence>=minInSequence&&headingGroupsInSequence.push(currentHeadingGroupInSequence),headingGroupsInSequence}function createGroupedContent(children){var pairings=[],firstChild=children[0].el,triggers=document.createElement("div"),contents=document.createElement("div");contents=firstChild.parentNode.insertBefore(contents,firstChild.nextSibling),triggers=firstChild.parentNode.insertBefore(triggers,firstChild.nextSibling);for(var i=0;i<children.length;i+=1){var child=children[i],trigger=child.el,content=document.createElement("div");trigger=triggers.appendChild(trigger),content=contents.appendChild(content);for(var j=0;j<child.content.length;j+=1)content.appendChild(child.content[j]);pairings.push({trigger:trigger,content:content})}return{triggers:triggers,contents:contents,pairings:pairings}}function getGroupedContentSet(node){var children=node.children,childrenWithGroupableContent=[],groupedContentSet=[];if(children.length===0)return[];for(var i=0;i<children.length;i+=1){var childGroupableContent=getGroupedContentSet(children[i]);childGroupableContent.length>0&&(childrenWithGroupableContent.push(i),groupedContentSet=groupedContentSet.concat(childGroupableContent))}for(var headingGroupsInSequence=getHeadingGroupsInSequence(children,childrenWithGroupableContent,3),_i=0;_i<headingGroupsInSequence.length;_i+=1)groupedContentSet.push(createGroupedContent(headingGroupsInSequence[_i]));return groupedContentSet}function intelliParse(el){var children=el.children,heading=el.querySelector("h1, h2, h3, h4, h5, h6");if(children.length===0)return[];var rootNode={el:el,content:null,children:getHeadingTree(heading,children,!0)};return getGroupedContentSet(rootNode)}function staticParse(el){for(var groupedContentSet=[],tabs=el.querySelectorAll(".tabs"),i=0;i<tabs.length;i+=1){var triggers=tabs[i].children,contents=tabs[i].nextElementSibling.children;if(triggers.length===contents.length)for(var length=groupedContentSet.push({triggers:tabs[i],contents:tabs[i].nextElementSibling,pairings:[]}),index=length-1,j=0;j<triggers.length;j+=1){var trigger=triggers[j],content=contents[j],pairing={trigger:trigger,content:content};groupedContentSet[index].pairings.push(pairing)}}return groupedContentSet}function parse(content){var intelliparse=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,groupedContentSet=intelliparse?intelliParse(content):staticParse(content);return groupedContentSet}var GroupedContent=(function(){function GroupedContent2(el){var _this=this,options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,GroupedContent2),this.namespace="grouped-content",this.el=el,this.groupedContentInstances=[];var layout=options.layout||"tabs",intelliparse=!!options.intelliparse;forEach(parse(el,intelliparse),function(groupedContent){var id=uuidv4(),instance=null,groupedContentWrapper=document.createElement("div");groupedContentWrapper=groupedContent.triggers.parentNode.insertBefore(groupedContentWrapper,groupedContent.triggers.nextSibling),addClass(groupedContentWrapper,_this.namespace),addClass(groupedContentWrapper,_this.namespace+"-layout-"+layout),groupedContentWrapper.appendChild(groupedContent.triggers),groupedContentWrapper.appendChild(groupedContent.contents),groupedContent.namespace=_this.namespace,groupedContent.id=id,groupedContent.triggers.id=_this.namespace+"-"+id+"-triggers",groupedContent.contents.id=_this.namespace+"-"+id+"-contents",addClass(groupedContent.triggers,_this.namespace+"-triggers"),addClass(groupedContent.contents,_this.namespace+"-contents"),forEach(groupedContent.pairings,function(pairing){addClass(pairing.trigger,_this.namespace+"-trigger"),addClass(pairing.content,_this.namespace+"-content")}),layout==="accordion"?instance=new AccordionLayout(groupedContent):instance=new TabsLayout(groupedContent),_this.groupedContentInstances.push({groupedContent:groupedContent,instance:instance})})}return createClass(GroupedContent2,[{key:"unload",value:function(){forEach(this.groupedContentInstances,function(groupedContentInstance){groupedContentInstance.instance.unload()})}}]),GroupedContent2})();module.exports=GroupedContent}),34:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",function(){return trapFocus}),__webpack_require__.d(__webpack_exports__,"a",function(){return removeTrapFocus});function forceFocus(element,options){options=options||{};var savedTabIndex=element.tabIndex;element.tabIndex=-1,element.dataset.tabIndex=savedTabIndex,element.focus(),typeof options.className!="undefined"&&element.classList.add(options.className),element.addEventListener("blur",callback);function callback(event2){event2.target.removeEventListener(event2.type,callback),element.tabIndex=savedTabIndex,delete element.dataset.tabIndex,typeof options.className!="undefined"&&element.classList.remove(options.className)}}function focusHash(options){options=options||{};var hash=window.location.hash,element=document.getElementById(hash.slice(1));if(element&&options.ignore&&element.matches(options.ignore))return!1;hash&&element&&forceFocus(element,options)}function bindInPageLinks(options){options=options||{};var links=Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]'));return links.filter(function(link){if(link.hash==="#"||link.hash===""||options.ignore&&link.matches(options.ignore))return!1;var element=document.querySelector(link.hash);return element?(link.addEventListener("click",function(){forceFocus(element,options)}),!0):!1})}function focusable(container){var elements=Array.prototype.slice.call(container.querySelectorAll("[tabindex],[draggable],a[href],area,button:enabled,input:not([type=hidden]):enabled,object,select:enabled,textarea:enabled"));return elements.filter(function(element){return!!(element.offsetWidth||element.offsetHeight||element.getClientRects().length)})}var trapFocusHandlers={};function trapFocus(container,options){options=options||{};var elements=focusable(container),elementToFocus=options.elementToFocus||container,first=elements[0],last=elements[elements.length-1];removeTrapFocus(),trapFocusHandlers.focusin=function(event2){container!==event2.target&&!container.contains(event2.target)&&first.focus(),!(event2.target!==container&&event2.target!==last&&event2.target!==first)&&document.addEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.focusout=function(){document.removeEventListener("keydown",trapFocusHandlers.keydown)},trapFocusHandlers.keydown=function(event2){event2.keyCode===9&&(event2.target===last&&!event2.shiftKey&&(event2.preventDefault(),first.focus()),(event2.target===container||event2.target===first)&&event2.shiftKey&&(event2.preventDefault(),last.focus()))},document.addEventListener("focusout",trapFocusHandlers.focusout),document.addEventListener("focusin",trapFocusHandlers.focusin),forceFocus(elementToFocus,options)}function removeTrapFocus(){document.removeEventListener("focusin",trapFocusHandlers.focusin),document.removeEventListener("focusout",trapFocusHandlers.focusout),document.removeEventListener("keydown",trapFocusHandlers.keydown)}function accessibleLinks(elements,options){if(typeof elements!="str
1ing")throw new TypeError(elements+" is not a String.");if(elements=document.querySelectorAll(elements),elements.length===0)return;options=options||{},options.messages=options.messages||{};var messages={newWindow:options.messages.newWindow||"Opens in a new window.",external:options.messages.external||"Opens external website.",newWindowExternal:options.messages.newWindowExternal||"Opens external website in a new window."},prefix=options.prefix||"a11y",messageSelectors={newWindow:prefix+"-new-window-message",external:prefix+"-external-message",newWindowExternal:prefix+"-new-window-external-message"};function generateHTML(messages2){var container=document.createElement("ul"),htmlMessages=Object.keys(messages2).reduce(function(html,key){return html+="<li id="+messageSelectors[key]+">"+messages2[key]+"</li>"},"");container.setAttribute("hidden",!0),container.innerHTML=htmlMessages,document.body.appendChild(container)}function externalSite(link){return link.hostname!==window.location.hostname}elements.forEach(function(link){var target=link.getAttribute("target"),rel=link.getAttribute("rel"),isExternal=externalSite(link),isTargetBlank=target==="_blank",isRelNoopenerEmpty=rel===null||rel.indexOf("noopener")===-1;isTargetBlank&&isRelNoopenerEmpty&&link.setAttribute("rel","noopener"),isExternal&&isTargetBlank?link.setAttribute("aria-describedby",messageSelectors.newWindowExternal):isExternal?link.setAttribute("aria-describedby",messageSelectors.external):isTargetBlank&&link.setAttribute("aria-describedby",messageSelectors.newWindow)}),generateHTML(messages)}}),48:(function(module,__webpack_exports__,__webpack_require__){"use strict";/*!
2 * pixelzoom v1.0.1
3 * (c) 2018 Pixel Union
4 */(function(){if(typeof window!="undefined")try{var ce=new window.CustomEvent("test",{cancelable:!0});if(ce.preventDefault(),ce.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch(e){var CustomEvent2=function(event2,params){var evt,origPrevent;return params=params||{bubbles:!1,cancelable:!1,detail:void 0},evt=document.createEvent("CustomEvent"),evt.initCustomEvent(event2,params.bubbles,params.cancelable,params.detail),origPrevent=evt.preventDefault,evt.preventDefault=function(){origPrevent.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e2){this.defaultPrevented=!0}},evt};CustomEvent2.prototype=window.Event.prototype,window.CustomEvent=CustomEvent2}})();var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}})(),_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},Pixelzoom=(function(){function Pixelzoom2(container,options){classCallCheck(this,Pixelzoom2),this.options=_extends({imageClass:"pixelzoom--image",imageSource:options.imageSource||container.querySelector("img").src,initialZoom:1,dragPan:!1,naturalPan:!1,maxZoom:9999,zoomSensitivity:1,zoomSteps:1,overflowContainer:null},options),this.overflowContainer=this.options.overflowContainer,this.container=container,this.container.style.cursor=this.options.maxZoom>this.options.initialZoom?"zoom-in":"zoom-out",this.containerWidth=null,this.containerHeight=null,this.image=new Image,this.imageSrc=this.options.imageSource,this.imageWidth=null,this.imageHeight=null,this.x=0,this.y=0,this.lastX=0,this.lastY=0,this.dragX=null,this.dragY=null,this.lastDragX=null,this.lastDragY=null,this.zoom=Math.min(this.options.maxZoom,this.options.initialZoom),this.zoomMax=this.options.maxZoom,this.zoomMin=1,this.zoomSensitivity=this.options.zoomSensitivity,this.zoomSteps=Math.min(this.options.maxZoom,this.options.zoomSteps),this.distance=0,this.cursor=this.container.style.cursor,this.panning=!1,this.mouseDown=!1,this.dragging=!1,this.touched=!1,this._triggerEvent("loading"),this._loadImage()}return createClass(Pixelzoom2,[{key:"_loadImage",value:function(){var _this=this;this.image.addEventListener("load",function(){_this._appendImage()}),this.image.classList.add(this.options.imageClass),this.image.src=this.imageSrc,this.image.style.position="absolute",this.image.style.top="100%",this.image.style.left="100%",this.image.style.maxWidth="100%",this.image.style.maxHeight="100%",this.image.style.transformOrigin="top left"}},{key:"_appendImage",value:function(){if(this._triggerEvent("loaded"),this.container.appendChild(this.image),this.refresh(),this._bindEvents(),this.zoom>this.zoomMin){if(this.x=-(this.imageWidth*this.zoom)+(this.imageWidth*this.zoom-this.imageWidth)/2,this.y=-(this.imageHeight*this.zoom)+(this.imageHeight*this.zoom-this.imageHeight)/2,this.lastDragX===null&&this.lastDragY==null){var offset=this.container.getBoundingClientRect(),dragX=this.overflowContainer&&this.overflowContainer.offsetWidth>=this.imageWidth*this.zoom?this.overflowContainer.offsetWidth:this.containerWidth,dragY=this.overflowContainer&&this.overflowContainer.offsetWidth>=this.imageHeight*this.zoom?this.overflowContainer.offsetHeight:this.containerHeight,scrollLeft=window.pageXOffset?window.pageXOffset:document.body.scrollLeft,scrollTop=window.pageYOffset?window.pageYOffset:document.body.scrollTop;this.lastDragX=dragX/2+offset.left+scrollLeft,this.lastDragY=dragY/2+offset.top+scrollTop}}else this.x=-this.imageWidth,this.y=-this.imageHeight;this.lastX=this.x,this.lastY=this.y,this._update()}},{key:"_bindEvents",value:function(){var _this2=this;this.container.addEventListener("mousedown",function(event2){event2.stopPropagation();var pointer=_this2._getPointerBounds(event2);_this2._initializeDrag(pointer[0])}),this.container.addEventListener("mouseenter",function(){event.stopPropagation(),_this2._initializeMouse()}),this.container.addEventListener("touchstart",function(event2){event2.stopPropagation();var pointers=_this2._getPointerBounds(event2);_this2._initializeTouch(pointers[0],pointers[1])}),this.container.addEventListener("dragstart",function(event2){event2.stopPropagation(),_this2._preventDrag(event2)}),["mousemove","touchmove"].forEach(function(eventType){_this2.container.addEventListener(eventType,function(event2){var pointers=_this2._getPointerBounds(event2);_this2._pan(eventType,pointers[0],pointers[1])})}),this.container.addEventListener("mouseup",function(event2){event2.stopPropagation(),_this2._tap({x:event2.pageX,y:event2.pageY})}),["mouseleave","touchend"].forEach(function(eventType){_this2.container.addEventListener(eventType,function(event2){event2.stopPropagation(),_this2._release()})}),this.container.addEventListener("wheel",function(event2){event2.stopPropagation(),_this2._scroll(event2.deltaY,{x:event2.pageX,y:event2.pageY})}),document.body.addEventListener("touchmove",function(event2){_this2._preventScroll(event2)})}},{key:"_setZoom",value:function(adjustment){this._triggerEvent("zoom");var zoom=this.zoom+adjustment;zoom=Math.min(this.zoomMax,zoom),zoom=Math.max(this.zoomMin,zoom),this.zoom=zoom,this.zoom===this.zoomMax?(this.container.style.cursor="zoom-out",this.cursor="zoom-out",this._triggerEvent("zoomMax")):(this.container.style.cursor="zoom-in",this.cursor="zoom-in"),this.zoom===this.zoomMin&&(this.lastDragX=null,this.lastDragY=null,this._triggerEvent("zoomMin"))}},{key:"_setCenter",value:function(pointer,event2){if(this.zoom!==this.zoomMin){var offset=this.container.getBoundingClientRect(),zoomWidth=this.imageWidth*this.zoom-this.containerWidth,zoomHeight=this.imageHeight*this.zoom-this.containerHeight,scrollLeft=window.pageXOffset?window.pageXOffset:document.body.scrollLeft,scrollTop=window.pageYOffset?window.pageYOffset:document.body.scrollTop;(!(this.zoom-1>this.zoomMin&&event2==="tap")||event2==="tap"&&this.zoomSteps>=this.zoomMax)&&(this.lastX=pointer.x,this.lastY=pointer.y);var currentX=(offset.left-this.lastX)*(zoomWidth/this.containerWidth)-this.containerWidth+scrollLeft*this.zoom-scrollLeft,currentY=(offset.top-this.lastY)*(zoomHeight/this.containerHeight)-this.containerHeight+scrollTop*this.zoom-scrollTop;currentX=Math.max(-this.imageWidth*this.zoom,currentX),currentY=Math.max(-this.imageHeight*this.zoom,currentY),this.overflowContainer&&(currentX=Math.max(-this.imageWidth*this.zoom+offset.left,currentX),currentY=Math.max(-this.imageHeight*this.zoom+offset.top,currentY),currentX=Math.min(-this.imageWidth-offset.left,currentX),currentY=Math.min(-this.imageHeight-offset.top,currentY)),this.overflowContainer&&this.overflowContainer.offsetWidth>=this.imageWidth*this.zoom?this.x=-(this.imageWidth*this.zoom)+(this.imageWidth*this.zoom-this.imageWidth)/2:this.x=Math.min(-this.imageWidth,currentX),this.overflowContainer&&this.overflowContainer.offsetHeight>=this.imageHeight*this.zoom?this.y=-(this.imageHeight*this.zoom)+(this.imageHeight*this.zoom-this.imageHeight)/2:this.y=Math.min(-this.imageHeight,currentY)}else this.x=-this.imageWidth,this.y=-this.imageHeight,this.lastX=0,this.lastY=0,this.lastDragX=null,this.lastDragY=null}},{key:"_initializeMouse",value:function(){this._triggerEvent("touch"),this.refresh()}},{key:"_initializeDrag",value:function(pointer){this.options.dragPan&&(this.mouseDown=!0,this.lastDragX===null&&this.lastDragY===null&&(this.lastDragX=pointer.x,this.lastDragY=pointer.y))}},{key:"_initializeTouch",value:function(pointerOne,pointerTwo){this._triggerEvent("touch"),this.touched=!0,this.lastDragX===null&&this.lastDragY==null&&(this.lastDragX=pointerOne.x,this.lastDragY=pointerOne.y),pointerTwo&&pointerTwo.x&&pointerTwo.y&&(this.distance=Math.hypot(pointerOne.x-pointerTwo.x,pointerOne.y-pointerTwo.y))}},{key:"_pan",value:function(eventType,pointerOne,pointerTwo){if(pointerTwo&&pointerTwo.x&&pointerTwo.y)(this.panning||!this.touched)&&this._pinch({x:pointerOne.x,y:pointerOne.y},{x:pointerTwo.x,y:pointerTwo.y});else{if(this.options.dragPan&&this.mouseDown===!1&&eventType!=="touchmove")return;(this.options.dragPan&&this.mouseDown||eventType==="touchmove")&&(this.dragging=!0,this.container.style.cursor="move"),this.panning||!this.touched?this.dragging?this._drag({x:pointerOne.x,y:pointerOne.y}):(this._setCenter({x:pointerOne.x,y:pointerOne.y}),this._update()):this.dragging||(this._setCenter({x:this.lastX,y:this.lastY}),this._update())}eventType==="touchmove"&&!this.panning&&(this.panning=!0,this._triggerEvent("pan"))}},{key:"_pinch",value:function(touchOne,touchTwo){this._triggerEvent("pinch");var distance=Math.hypot(touchOne.x-touchTwo.x,touchOne.y-touchTwo.y),zoomAdjustment=this.zoom/(this.zoomSensitivity*2),difference=Math.abs(distance)-Math.abs(this.distance);(difference>.5||difference<-.5)&&this._setZoom(distance>this.distance?+zoomAdjustment:-zoomAdjustment),this.refresh(),this.zoom<this.zoomMax&&(distance>this.distance?(touchOne.x-=(touchOne.x-touchTwo.x)/2,touchOne.y-=(touchOne.y-touchTwo.y)/2):(touchOne.x=this.lastDragX,touchOne.y=this.lastDragY),this.lastDragX=touchOne.x,this.lastDragY=touchOne.y,this.dragX=0,this.dragY=0,this._setCenter({x:touchOne.x,y:touchOne.y}),this.distance=distance,this._update())}},{key:"_drag",value:function(pointer){if(this.dragX&&this.dragY&&this.lastDragX!==null&&this.lastDragY!==null){var differenceX=(this.dragX-pointer.x)/(this.zoom/2),differenceY=(this.dragY-pointer.y)/(this.zoom/2),dragX=this.lastDragX,dragY=this.lastDragY;this.options.naturalPan?(dragX+=differenceX,dragY+=differenceY):(dragX-=differenceX,dragY-=differenceY),dragX=Math.min(this.imageWidth*this.zoom,dragX),this.lastDragX=Math.max(0,dragX),dragY=Math.min(this.imageHeight*this.zoom,dragY),this.lastDragY=Math.max(0,dragY),this.lastX=this.lastDragX,this.lastY=this.lastDragY,this._setCenter({x:this.lastDragX,y:this.lastDragY}),this._update()}this.dragX=pointer.x,this.dragY=pointer.y}},{key:"_tap",value:function(pointer){this._triggerEvent("tap"),!this.panning&&!this.dragging&&(this._setZoom(this.zoomMax>this.zoom?+this.zoomSteps:-this.zoomMax),this.refresh(),this._setCenter(pointer,"tap"),this.lastDragX=this.lastX,this.lastDragY=this.lastY,this._update()),this.panning=!1,this.mouseDown=!1,this.dragging=!1,this.touched=!1,this.distance=0,this.dragX=0,this.dragY=0,this.container.style.cursor=this.cursor}},{key:"_scroll",value:function(scale,pointer){if(!this.dragging){this._triggerEvent("scroll");var zoomAdjustment=this.zoom/this.zoomSensitivity;this.options.dragPan&&this.zoom>this.zoomMin&&(pointer.x=this.lastDragX,pointer.y=this.lastDragY),this.lastDragX=pointer.x,this.lastDragY=pointer.y,this.dragX=0,this.dragY=0,this._setZoom(scale<0?+zoomAdjustment:-zoomAdjustment),this.refresh(),this._setCenter(pointer),this._update()}}},{key:"_release",value:function(){this._triggerEvent("release"),this.panning=!1,this.mouseDown=!1,this.dragging=!1,this.dragX=0,this.dragY=0,this.container.style.cursor=this.cursor}},{key:"_preventDrag",value:function(event2){event2.preventDefault()}},{key:"_preventScroll",value:function(event2){this.panning&&event2.preventDefault()}},{key:"_getPointerBounds",value:function(event2){var pointers=[{x:event2.pageX?event2.pageX:event2.touches[0].clientX,y:event2.pageY?event2.pageY:event2.touches[0].clientY},{x:event2.targetTouches&&event2.targetTouches.length>1?event2.touches[1].clientX:null,y:event2.targetTouches&&event2.targetTouches.length>1?event2.touches[1].clientY:null}];return pointers}},{key:"_triggerEvent",value:function(name){var event2=new CustomEvent("pixelzoom:"+name,{bubbles:!0,cancelable:!1});
4this.container.dispatchEvent(event2)}},{key:"_update",value:function(){var _this3=this;requestAnimationFrame(function(){_this3.image.style.transform="translate("+_this3.x+"px, "+_this3.y+"px) scale("+_this3.zoom+")"})}},{key:"refresh",value:function(){this.containerWidth=this.container.offsetWidth,this.containerHeight=this.container.offsetHeight,this.imageWidth=Math.min(this.containerWidth,this.image.naturalWidth),this.imageHeight=Math.min(this.containerHeight,this.image.naturalHeight);var maxZoom=Math.floor(this.image.naturalWidth/this.containerWidth);this.zoomMax=this.options.maxZoom<maxZoom?this.options.maxZoom:maxZoom,this.zoom=Math.min(this.zoomMax,this.zoom),this.zoomSteps=Math.min(this.zoomMax,this.zoomSteps),this.zoomMax<=1&&(this.container.style.cursor="default",this.cursor="default")}},{key:"unload",value:function(){var _this4=this;this.image.removeEventListener("load",this._appendImage),document.body.removeEventListener("touchmove",this._preventScroll),[["mouseenter",this._initializeMouse],["touchstart",this._initializeTouch],["mousedown",this._initializeDrag],["dragstart",this._preventDrag],["mousemove",this._pan],["touchmove",this._pan],["mouseup",this._tap],["touchend",this._release],["mouseleave",this._release],["wheel",this._scroll]].forEach(function(eventType){_this4.container.removeEventListener(eventType[0],eventType[1])}),this.image.parentNode&&this.image.parentNode.removeChild(this.image)}}]),Pixelzoom2})();__webpack_exports__.a=Pixelzoom})}]);
5//# sourceMappingURL=/cdn/shop/t/20/assets/vendors-DynamicFeaturedCollection-StaticCollection-StaticProduct-StaticProductRecommendations-StaticSearch.bundle.js.map?v=93738230588053085511721959897

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.