text: !function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=10)}([function(t,e,n){"use strict";function r(){return i}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){}return t.prototype.cookie=function(){return document.cookie},t.prototype.setCookie=function(t){document.cookie=t},t.prototype.body=function(){return document.body},t.prototype.referrer=function(){return document.referrer},t.prototype.title=function(){return document.title},t.prototype.createElement=function(t){return document.createElement(t)},t.prototype.dispatchEvent=function(t){return document.dispatchEvent(t)},t.prototype.querySelector=function(t){return document.querySelector(t)},t.prototype.querySelectorAll=function(t){return document.querySelectorAll(t)},t.prototype.documentElement=function(){return document.documentElement},t.prototype.getElementsByTagName=function(t){return document.getElementsByTagName(t)},t.prototype.createCustomEvent=function(t,e){try{return new CustomEvent(t,e)}catch(r){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}},t}(),i=new o;e.virtualDocument=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(e,n){this.options={},this.options=t.merge(e,n)}return t.merge=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n},t.flatten=function(e){var n=t.merge(e,{});return n.properties={},t.merge(n,e.properties)},t.isEqual=function(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},t}();e.Integration=r},function(t,e,n){"use strict";function r(){return m.virtualWindow().location().hash}function o(){return m.virtualWindow().location().host}function i(){return m.virtualWindow().location().hostname}function a(){return m.virtualWindow().location().href}function c(t){m.virtualWindow().location().href=t}function u(){var t=m.virtualWindow().location();return t.origin?t.origin:t.protocol+"//"+t.hostname+(t.port?":"+t.port:"")}function s(){return m.virtualWindow().location().pathname}function p(){return m.virtualWindow().location().port}function d(){return m.virtualWindow().location().protocol}function f(){return m.virtualWindow().location().search}function l(t){return t=t||i(),null!==t.match(/(^|\.)shopify\.com$/)}Object.defineProperty(e,"__esModule",{value:!0});var m=n(3);e.hash=r,e.host=o,e.hostname=i,e.href=a,e.setHref=c,e.origin=u,e.pathname=s,e.port=p,e.protocol=d,e.search=f,e.isShopifyDotCom=l},function(t,e,n){"use strict";function r(){return i}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.nativeWindow=t}return t.prototype.location=function(){return this.nativeWindow.location},t.prototype.userAgent=function(){return this.nativeWindow.navigator.userAgent},t.prototype.crypto=function(){return this.nativeWindow.crypto||this.nativeWindow.msCrypto},t.prototype.top=function(){return this.nativeWindow.top?new t(this.nativeWindow.top):void 0},t.prototype.parent=function(){return this.nativeWindow.parent?new t(this.nativeWindow.parent):void 0},t.prototype.postMessage=function(t,e,n){this.nativeWindow.postMessage(t,e,n)},t.prototype.addEventListener=function(t,e,n){this.nativeWindow.addEventListener(t,e,n)},t.prototype.performance=function(){return this.nativeWindow.performance},t.prototype.supportsNavigationTiming=function(){return"PerformanceNavigationTiming"in this.nativeWindow},t.prototype.supportsPaintTiming=function(){return"PerformancePaintTiming"in this.nativeWindow},t}(),i=new o(window);e.virtualWindow=r},function(t,e,n){"use strict";function r(t,n,r,o){return o=o||e.requestImpl.base(),"/"!==o[o.length-1]&&(o+="/"),e.requestImpl.img(o+t+"/"+n+"?"+e.requestImpl.queryString(r))}function o(t){c=t}function i(t,e){return r("internal_errors","page",{name:t.name,line:t.lineNumber||t.line,script:t.fileName||t.sourceURL||t.script,stack:t.stackTrace||t.stack||t.description,message:t.message,url:a.href(),context:void 0!==e?e:null,appConfig:c||null})}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2);e.requestImpl={base:function(){return"https://v.shopify.com/"},img:function(t){var e=new Image(1,1);return e.src=t,e.style.display="none",e},queryString:function(t){var e=[];for(var n in t)("number"==typeof t[n]||t[n])&&("object"==typeof t[n]&&0===Object.keys(t[n]).length||e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n])));if(function(t){for(var e=t.length;e>0;--e){var n=Math.floor(Math.random()*e),r=t[n];t[n]=t[e-1],t[e-1]=r}}(e),e.length>1&&0===e[0].indexOf("event=")){var r=e[0];e[0]=e[1],e[1]=r}return e.join("&")}},e.load=r;var c=void 0;e.setGlobalSerializedAppConfig=o,e.internalError=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i={viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductVariant:/^[ _]?viewed[ _]?product[ _]?variant[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,performedSearch:/^[ _]?performed[ _]?search[ _]?$/i,addedPayment:/^[ _]?added[ _]?payment[ _]?$/i},a=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.wrapTrack(),r}return r(e,t),e.prototype.wrapTrack=function(){var t=this.track;this.track=function(e){var n=e.event,r=!1;for(var o in i){var a=i[o];if(this[o]&&a.test(n)){this[o].apply(this,[e]),r=!0;break}}r||t.apply(this,Array.prototype.slice.call(arguments))}},e}(o.Integration);e.EcommerceIntegration=a},function(t,e,n){"use strict";function r(){return e.cookieImpl.enabled()}function o(t){return e.cookieImpl.read(t)}function i(t,n,r){void 0===r&&(r={}),a(t,n,r.permanent,e.shopifyCookie.domain(u.hostname())),a(t,n,r.permanent,d),a(t,n,r.permanent,r.domain),a(t,n,r.permanent,"")}function a(t,n,r,o){var i={maxage:r?p:s,domain:o,path:"/"};e.cookieImpl.write(t,n,i)}Object.defineProperty(e,"__esModule",{value:!0});var c=n(0),u=n(2),s=18e5,p=62208e6,d=".myshopify.com";e.cookieImpl={parse:function(t){for(var e={},n=0,r=t.split(/ *; */);n<r.length;n++){var o=r[n],i=o.split("=");try{e[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}catch(t){}}return e},read:function(t){if(e.cookieImpl.enabled())return e.cookieImpl.parse(c.virtualDocument().cookie())[t]},write:function(t,n,r){if(void 0===r&&(r={}),e.cookieImpl.enabled()){var o=encodeURIComponent(t)+"="+encodeURIComponent(n);r.maxage&&(r.expires=new Date(Date.now()+r.maxage)),r.path&&(o+="; path="+r.path),r.domain&&(o+="; domain="+r.domain),r.expires&&(o+="; expires="+r.expires.toUTCString()),r.secure&&(o+="; secure"),c.virtualDocument().setCookie(o)}},enabled:function(){try{if(void 0===c.virtualDocument().cookie())return!1;c.virtualDocument().setCookie("cookietest=1");var t=-1!==c.virtualDocument().cookie().indexOf("cookietest=");return c.virtualDocument().setCookie("cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT"),t}catch(t){return!1}}},e.enabled=r,e.read=o,e.write=i,e.shopifyCookie={domain:function(t){var e=t.indexOf("shopify");return 0===e?"."+t:e>0?t.slice(e-1):".shopify.com"}}},function(t,e,n){"use strict";function r(){return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.exportVar="trekkie",e.shouldPerformXtldExchange=r,e.enabledIntegrations=[];var o=n(14);e.enabledIntegrations.push(["Performance",o.Performance]);var i=n(15);e.enabledIntegrations.push(["Facebook Pixel",i.FacebookPixel]);var a=n(16);e.enabledIntegrations.push(["Google Analytics",a.GoogleAnalytics]);var c=n(17);e.enabledIntegrations.push(["Clickstream",c.Clickstream]);var u=n(21);e.enabledIntegrations.push(["Pinterest Pixel",u.Pinterest]);var s=n(22);e.enabledIntegrations.push(["Session Attribution",s.SessionAttribution]);var p=n(23);e.enabledIntegrations.push(["Google Gtag Pixel",p.GoogleGtag]);var d=n(24);e.enabledIntegrations.push(["Add To Cart",d.AddToCart])},function(t,e,n){"use strict";function r(){return!!p.read(e.shortTermKey)||!!p.read(e.deprecatedShortTermKey)}function o(){return!!p.read(e.longTermKey)||!!p.read(e.deprecatedLongTermKey)}function i(){return m.fetchOrSet(!1,e.deprecatedShortTermKey,e.shortTermKey)[0]}function a(){return m.fetchOrSet(!0,e.deprecatedLongTermKey,e.longTermKey)}function c(){return m.build()}function u(){return h.fetchOrSet(e.firstSeenKey)}function s(){return m.hexTime()}Object.defineProperty(e,"__esModule",{value:!0});var p=n(6),d=n(3);e.deprecatedShortTermKey="_s",e.shortTermKey="_shopify_s",e.deprecatedLongTermKey="_y",e.longTermKey="_shopify_y",e.firstSeenKey="_shopify_fs";var f="00000000",l="xxxx-4xxx-xxxx-xxxxxxxxxxxx",m={fetch:function(t){return p.read(t)},fetchOrSet:function(t,e,n){if(!p.enabled())return["00000000-0000-0000-4000-000000000000",!1];var r=m.fetch(n)||m.fetch(e),o=!1;r||(r=m.build(),o=!0);var i={permanent:t};return p.write(e,r,i),p.write(n,r,i),[r,o]},build:function(){var t="";try{var e=d.virtualWindow().crypto(),n=new Uint16Array(31);e.getRandomValues(n);var r=0;t=l.replace(/[x]/g,function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];var i=n[r]%16,a="x"===t?i:3&i|8;return r++,a.toString(16)}).toUpperCase()}catch(e){t=l.replace(/[x]/g,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=16*Math.random()|0;return("x"===t?r:3&r|8).toString(16)}).toUpperCase()}return m.hexTime()+"-"+t},hexTime:function(){var t=0,e=0;try{t=Date.now()>>>0}catch(e){t=(new Date).getTime()>>>0}try{e=performance.now()>>>0}catch(t){e=0}var n=Math.abs(t+e).toString(16).toLowerCase();return f.substr(0,8-n.length)+n}},h={fetch:function(t){return p.read(t)},fetchOrSet:function(t){var e=h.fetch(t)||(new Date).toJSON(),n={permanent:!0};return p.write(t,e,n),e}};e.hasShortTerm=r,e.hasLongTerm=o,e.shortTerm=i,e.longTerm=a,e.buildToken=c,e.firstSeen=u,e.hexTime=s},function(t,e,n){"use strict";function r(t){var e=a.virtualDocument().createElement("script");return e.src=t.src,e.async=!0,i(e,t),a.virtualDocument().body().appendChild(e),e}function o(t){var e=a.virtualDocument().createElement("iframe");return e.src=t.src,e.style.display="none",i(e,t),a.virtualDocument().body().appendChild(e),e}function i(t,e){if(e.onLoad&&t.addEventListener("load",e.onLoad,!1),e.className){if(/^\d/.test(e.className))throw new Error("Invalid className: "+e.className+" starts with a digit");t.className=e.className}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0);e.script=r,e.iframe=o},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n],i=o[0];t[i]===t.ready&&t[i].apply(t,o.slice(1))}for(var a=0,c=e;a<c.length;a++){var o=c[a],i=o[0];t[i]&&t[i]!==t.ready&&t[i].apply(t,o.slice(1))}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(7),a=n(4);e.replayAnalyticsQueue=r;try{var c=window[i.exportVar].config;if(c){a.setGlobalSerializedAppConfig(JSON.stringify(c));var u=window[i.exportVar],s=window.trekkie=new o.Tricorder(c,function(){window[i.exportVar]=s,window._visit={tag:function(){},multitrackToken:function(){return s.trekkie.defaultAttributes.uniqToken}},s.user=function(){return{traits:function(){return{uniqToken:s.trekkie.defaultAttributes.uniqToken}}}},r(s,u)})}}catch(t){a.internalError(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(12),i=n(7),a=n(4),c=n(0),u=n(2),s=/^https?:\/\//,p=function(){function t(t,e){var n=this;this.integrations=[],this.trekkie=new o.Trekkie(t.Trekkie,function(){setTimeout(function(){n.loadIntegrations(i.enabledIntegrations,t,n.trekkie,e)},0)}),this.integrations[0]!==this.trekkie&&this.integrations.unshift(this.trekkie)}return t.prototype.loadIntegrations=function(t,e,n,r){for(var o=this.waitFor(t.length,function(){try{r()}catch(t){a.internalError(t)}}),i=0,c=t;i<c.length;i++){var u=c[i];try{var s=e[u[0]];if(s&&"object"==typeof s){var p=u[1];this.integrations.push(new p(s,n,o))}else o()}catch(t){o(),a.internalError(t)}}},t.prototype.identify=function(t,e){void 0===t&&(t=""),void 0===e&&(e={});try{t instanceof Object&&(e=t,t="");for(var n=0,r=this.integrations;n<r.length;n++){r[n].identify({id:t,properties:e})}}catch(t){a.internalError(t)}},t.prototype.page=function(t,e){void 0===t&&(t=""),void 0===e&&(e={});try{t instanceof Object&&(e=t,t="");var n=this.pageDefaults();n.name=t,n.properties=r.Integration.merge(n.properties,e);for(var o=0,i=this.integrations;o<i.length;o++){i[o].page(n)}}catch(t){a.internalError(t)}},t.prototype.track=function(t,e){void 0===t&&(t=""),void 0===e&&(e={});try{t instanceof Object&&(e=t,t="");for(var n=0,r=this.integrations;n<r.length;n++){r[n].track({event:t,properties:e})}}catch(t){a.internalError(t)}},t.prototype.trackForm=function(t,e,n){var r=this;void 0===e&&(e=""),void 0===n&&(n={});try{t.addEventListener("submit",function(o){o.preventDefault(),r.track(e,n),setTimeout(function(){try{t.submit()}catch(t){a.internalError(t)}},0)})}catch(t){a.internalError(t)}},t.prototype.trackLink=function(t,e,n){var r=this;void 0===e&&(e=""),void 0===n&&(n={});try{t.addEventListener("click",function(o){var i=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href");r.track(e,n),i&&"_blank"!==t.target&&!r.isMeta(o)&&(o.preventDefault(),setTimeout(function(){u.setHref(i)},0))})}catch(t){a.internalError(t)}},t.prototype.isMeta=function(t){if(t instanceof KeyboardEvent&&(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey))return!0;if(t instanceof MouseEvent){var e=t.which,n=t.button;if(!e&&void 0!==n)return 1===n||2===n;if(2===e)return!0}return!1},t.prototype.ready=function(t){try{t()}catch(t){a.internalError(t)}},t.prototype.waitFor=function(t,e){return 0===t?(setTimeout(e,0),function(){}):function(){0===--t&&setTimeout(e,0)}},t.prototype.pageDefaults=function(){var t=u.href(),e=t.indexOf("?");return t=-1===e?"":t.slice(e),e=t.indexOf("#"),t=-1===e?t:t.slice(0,e),t="?"===t?"":t,{referrer:c.virtualDocument().referrer(),path:u.pathname(),search:t,title:c.virtualDocument().title(),url:this.url(),properties:{}}},t.prototype.canonical=function(){for(var t=c.virtualDocument().getElementsByTagName("link"),e=0;e<t.length;e++){var n=t[e];if("canonical"===n.getAttribute("rel")){var r=n.getAttribute("href");if(!s.test(r))continue;if(r.replace(s,"").length<=5)continue;return r}}return""},t.prototype.url=function(){var t=this.canonical();if(t)return t.indexOf("?")>0?t:t+u.search();var e=u.href(),n=e.indexOf("#");return-1===n?e:e.slice(0,n)},t}();e.Tricorder=p},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(4),a=n(8),c=n(13),u=n(3),s=n(0),p=n(7),d=n(2),f=n(25),l=n(6),m=function(t){function e(e,n){var r=t.call(this,{},e)||this;return r.shouldPerformXtldExchange()?f.performXtldExchange(f.xtldImpl.frameSource(),function(t,o){t?(l.write(a.deprecatedLongTermKey,t,{permanent:!0}),l.write(a.longTermKey,t,{permanent:!0}),r.init(e,n)):i.internalError(o||"Cannot load xtld token")}):r.init(e,n),r}return r(e,t),e.prototype.shouldPerformXtldExchange=function(){return p.shouldPerformXtldExchange()&&!a.hasLongTerm()&&!d.isShopifyDotCom()},e.prototype.init=function(t,e){this.injectEmitFunc(t),this.initInstanceVars(t),"parent"===t.embedMode&&this.installFrameListener(),e()},e.prototype.injectEmitFunc=function(t){var e=t.development?"testing":t.appName;c.isBot()&&(e="bot-traffic"),this.emitEvent=function(n,r){t.endpointBase?i.load(e,n,r,t.endpointBase):i.load(e,n,r)}},e.prototype.initInstanceVars=function(t){var e="",n="",r="",i=!1;"iframe"!==t.embedMode&&(c=a.longTerm(),e=c[0],i=c[1],n=a.shortTerm(),r=a.firstSeen()),this.defaultAttributes={appName:t.appName,uniqToken:e,visitToken:n,microSessionId:a.buildToken(),microSessionCount:0,firstSeen:r},t.enableNewUserAttribute&&(this.defaultAttributes.newUser=i),t.defaultAttributes&&(this.defaultAttributes=o.Integration.merge(t.defaultAttributes,this.defaultAttributes));var c},e.prototype.identify=function(t){this.emit("identify",t)},e.prototype.page=function(t){e.isEqualPage(this.lastPage,t)||(this.lastPage=t,this.emit("page",t))},e.prototype.track=function(t){this.emit("track",t)},e.prototype.emit=function(t,e,n){void 0===n&&(n={});var r=this.options;n.microSessionCount||++this.defaultAttributes.microSessionCount,e=o.Integration.flatten(e);var a=o.Integration.merge(e,this.defaultAttributes);if(a.eventType=t,a=o.Integration.merge(a,n),"iframe"===r.embedMode&&r.embedParentOrigin)try{this.getEmbedParent().postMessage(JSON.stringify({event:"trekkie:emit:v1",payload:{requestType:t,args:a,overrideAttributes:{microSessionId:a.microSessionId,microSessionCount:a.microSessionCount}}}),r.embedParentOrigin)}catch(t){i.internalError(t)}else this.emitEvent(t,a)},e.prototype.installFrameListener=function(){var t=this;u.virtualWindow().addEventListener("message",function(e){t.handleEmbedEvent(e)})},e.prototype.handleEmbedEvent=function(t){function e(t){return null!==t.match(/(shopify.com|shopifyapps.com|myshopify.io|shopifycloud.com|oberlo.com)$/)}function n(t){try{return window.Shopify&&window.Shopify.EmbeddedApp&&window.Shopify.EmbeddedApp.instance()&&window.Shopify.EmbeddedApp.instance().origin===t}catch(t){return!1}}try{if(!t||!t.data)return;if(!e(t.origin)&&!n(t.origin))return;var r=JSON.parse(t.data);if(!r.event||!r.event.match(/^trekkie:/))return;if(!e(t.origin)&&n(t.origin)&&"trekkie:emit:v1"!==r.event)return;switch(r.event){case"trekkie:emit:v1":var o=r.payload;o&&o.requestType&&o.args&&this.emit(o.requestType,o.args,o.overrideAttributes);break;case"trekkie:customEvent:v1":var o=r.payload;o&&o.eventType&&s.virtualDocument().dispatchEvent(s.virtualDocument().createCustomEvent(o.eventType,o.data));break;case"trekkie:xtldToken:v1":case"trekkie:xtldLastShop:v1":break;default:!function(t,e){i.internalError(new Error,JSON.stringify(e))}(r.event,r)}}catch(e){"SyntaxError"!==e.name&&i.internalError(e,JSON.stringify(t))}},e.prototype.getEmbedParent=function(){return u.virtualWindow().top()||u.virtualWindow().parent()},e.isEqualPage=function(t,e){return t&&e&&t.path===e.path&&t.referrer===e.referrer&&t.search===e.search&&t.title===e.title&&t.url===e.url&&t.name===e.name&&o.Integration.isEqual(t.properties,e.properties)},e}(o.Integration);e.Trekkie=m},function(t,e,n){"use strict";function r(){for(var t=0,e=i;t<e.length;t++){if(e[t].test(o.virtualWindow().userAgent()))return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=[/googlebot/i,/AdsBot-Google/i,/APIs-Google/i,/Mediapartners-Google/i,/developers.google.com/i,/bingbot/i,/Slurp/i,/duckduckbot/i,/Baiduspider/i,/YandexBot/i,/Sogou/i,/Sogou.*spider/i,/Exabot/i,/facebot/i,/facebookexternalhit/i,/ia_archiver/i];e.isBot=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(3),a=function(t){function e(n,r,o){var i=t.call(this,e.defaultOptions,n)||this;return i.trekkie=r,o(),i}return r(e,t),e.prototype.identify=function(t){},e.prototype.page=function(t){var e={event:"navigation_performance_metrics",properties:o.Integration.flatten(t)},n=this.options;n.navigationTimingApiMeasurementsEnabled&&n.navigationTimingApiMeasurementsSampleRate>=Math.random()&&(e.properties=o.Integration.merge(this.pagePerformance(),e.properties),this.trekkie.track(e))},e.prototype.track=function(t){},e.prototype.pagePerformance=function(){return(new c).collect()},e.defaultOptions={navigationTimingApiMeasurementsEnabled:!0,navigationTimingApiMeasurementsSampleRate:.001},e}(o.Integration);e.Performance=a;var c=function(){function t(){}return t.prototype.timing=function(){return!(!i.virtualWindow().performance()||!i.virtualWindow().performance().timing)&&i.virtualWindow().performance().timing},t.prototype.getEntry=function(t,e){var n=i.virtualWindow().performance().getEntriesByType(t);return e?n.find(function(t){return t.name===e}):n[0]},t.prototype.collect=function(){var e={},n=function(){for(var n=0,r=t.perfAttrs;n<r.length;n++){var o=r[n];e["nt:"+o]=0}e["nt:source"]="None",e["nt:valid"]=!1};if(i.virtualWindow().supportsNavigationTiming()&&!u())try{if(i.virtualWindow().supportsPaintTiming()){for(var r=0,o=t.paintAttrs;r<o.length;r++){var a=o[r],c=this.getEntry("paint",this.toEntryName(a));c&&(e["pt:"+a]=c.startTime)}e["pt:source"]="PerformancePaintTiming",e["pt:valid"]=!0}for(var s=this.getEntry("navigation"),p=0,d=t.navigationAttrs;p<d.length;p++){var a=d[p];a in s&&(e["nt:"+a]=s[a])}e["nt:timeOrigin"]=i.virtualWindow().performance().timeOrigin,e["nt:source"]="PerformanceNavigationTiming",e["nt:valid"]=!0}catch(t){n()}else if(this.timing()&&!u())try{for(var f=this.timing(),l=0,m=t.timingAttrs;l<m.length;l++){var a=m[l];e["nt:"+a]=f[a]}e["nt:source"]="PerformanceTiming",e["nt:valid"]=!0}catch(t){n()}else n();return e},t.prototype.toEntryName=function(e){return e.replace(t.upperCaseRegex,function(t){return"-"+t[0].toLowerCase()})},t.upperCaseRegex=/([A-Z])/g,t.perfAttrs=["connectEnd","connectStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domainLookupEnd","domainLookupStart","fetchStart","loadEventEnd","loadEventStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","unloadEventEnd","unloadEventStart"],t.timingAttrs=t.perfAttrs.concat(["domLoading","navigationStart"]),t.navigationAttrs=t.perfAttrs.concat(["decodedBodySize","encodedBodySize","redirectCount"]),t.paintAttrs=["firstPaint","firstContentfulPaint"],t}();e.PagePerformance=c;var u=function(){return new RegExp("MSIE 9.0|Firefox/7.0|Firefox/8.0").test(i.virtualWindow().userAgent())}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(0),a=function(t){function e(n,r,o){var i=t.call(this,e.defaultOptions,n)||this;return i.initialize(o),i}return r(e,t),e.prototype.identify=function(t){throw new Error("identify is not supported")},e.prototype.page=function(t){window.fbq("track","PageView")},e.prototype.track=function(t){var e={};for(var n in t.properties)"revenue"===n?e.value=this.formatRevenue(t.properties.revenue):e[n]=t.properties[n]},e.prototype.viewedProductCategory=function(t){},e.prototype.viewedProductVariant=function(t){},e.prototype.viewedProduct=function(t){var e=t.properties;window.fbq("track","ViewContent",{content_ids:this.getProductContentIds(e),content_type:this.getProductContentType(e),content_name:e.name||"",content_category:e.category||"",currency:this.getCurrency(e.currency),value:this.formatRevenue(e.price)})},e.prototype.addedProduct=function(t){var e=t.properties;window.fbq("track","AddToCart",{content_ids:this.getProductContentIds(e),content_type:this.getProductContentType(e),content_name:e.name||"",content_category:e.category||"",currency:this.getCurrency(e.currency),value:this.formatRevenue(e.price),num_items:this.getProductNumItems(e)})},e.prototype.addedPayment=function(t){var e=t.properties;window.fbq("track","AddPaymentInfo",{currency:this.getCurrency(e.currency),value:this.formatRevenue(e.total)})},e.prototype.performedSearch=function(t){var e=t.properties;window.fbq("track","Search",{search_string:e.query||""})},e.prototype.startedOrder=function(t){var e=t.properties;window.fbq("track","InitiateCheckout",{content_ids:this.getOrderContentIds(e),content_type:this.getOrderContentType(e),currency:this.getCurrency(e.currency),value:this.formatRevenue(e.revenue),num_items:this.getOrderNumItems(e)})},e.prototype.completedOrder=function(t){var e=t.properties;window.fbq("track","Purchase",{content_ids:this.getOrderContentIds(e),content_type:this.getOrderContentType(e),currency:this.getCurrency(e.currency),value:this.formatRevenue(e.revenue),num_items:this.getOrderNumItems(e)})},e.prototype.initialize=function(t){this.loadFacebookScript();for(var e=this.options,n=e.pixelIds.concat([e.pixelId]),r=0,o=n;r<o.length;r++){var i=o[r];null!==i&&""!==i&&(window.fbq("init",i),""!==e.agent&&window.fbq("set","agent",e.agent,i))}t()},e.prototype.loadFacebookScript=function(){if(!window.fbq){window.fbq=function(){window.fbq.callMethod?window.fbq.callMethod.apply(window.fbq,arguments):window.fbq.queue.push(arguments)},window._fbq||(window._fbq=window.fbq),window.fbq.push=window.fbq,window.fbq.loaded=!0,window.fbq.version="2.0",window.fbq.queue=[];var t=i.virtualDocument().createElement("script");t.async=!0,t.src="https://connect.facebook.net/en_US/fbevents.js";var e=i.virtualDocument().getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}},e.prototype.formatRevenue=function(t){return Number(t||0).toFixed(2)},e.prototype.getCurrency=function(t){return t||"USD"},e.prototype.getProductContentIds=function(t){var e=t.productId||t.variantId||t.sku;return e?[e]:[]},e.prototype.getProductContentType=function(t){return t.productId?"product_group":"product"},e.prototype.getProductNumItems=function(t){return t.quantity||this.getProductContentIds(t).length},e.prototype.getProductKey=function(t){return t.productId||t.variantId||t.sku},e.prototype.getOrderContentIds=function(t){for(var e=[],n=t.products||[],r=0,o=n;r<o.length;r++){var i=o[r],a=this.getProductKey(i);if(a){-1===e.indexOf(a)&&e.push(a)}}return e},e.prototype.getOrderContentType=function(t){for(var e=t.products||[],n=0,r=e;n<r.length;n++){if(r[n].productId)return"product_group"}return"product"},e.prototype.getOrderNumItems=function(t){for(var e=0,n=t.products||[],r=0,o=n;r<o.length;r++){var i=o[r];this.getProductKey(i)&&(e+=i.quantity||1)}return e},e.defaultOptions={pixelId:"",pixelIds:[],agent:""},e}(o.EcommerceIntegration);e.FacebookPixel=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(5),a=n(2),c=n(0),u=function(t){function e(n,r,o){var i=t.call(this,e.defaultOptions,n)||this;return i.pageCalled=!1,i.ecommerce=!1,i.enhancedEcommerceLoaded=!1,i.initialize(o),i}return r(e,t),e.prototype.identify=function(t){throw new Error("identify is not supported")},e.prototype.page=function(t){this.overrideDefaultPageProperties(t);var e=this.options,n=this.path(t),r=t.name||t.title,o={page:n,title:r};window.ga("set",o);var i={page:n,title:r,location:t.url};if(this.pageCalled&&delete i.location,window.ga("send","pageview",i),t.name&&e.trackNamedPages){var a=this.convertPageToTrack(t);a.properties.nonInteraction=!0,this.trackInternal(a)}this.pageCalled=!0},e.prototype.track=function(t){},e.prototype.trackInternal=function(t){var e=this.options,n=t.properties,r={eventAction:t.event,eventCategory:n.category||"All",eventLabel:n.label,eventValue:this.formatValue(n.value||n.revenue),nonInteraction:!!(n.hasOwnProperty("nonInteraction")?n.nonInteraction:e.nonInteraction)};window.ga("send","event",r)},e.prototype.completedOrder=function(t){var e=t.properties,n=e.total||e.revenue||0,r=e.orderId,o=e.products||[];if(r){this.ecommerce||(window.ga("require","ecommerce"),this.ecommerce=!0),window.ga("ecommerce:addTransaction",{affiliation:e.affiliation,shipping:e.shipping,revenue:n,tax:e.tax,id:r,currency:this.getCurrency(e.currency)});for(var i=0,a=o;i<a.length;i++){var c=a[i],u=this.createProductTrack(e,c);window.ga("ecommerce:addItem",{category:u.category,quantity:this.getProductQuantity(u),price:u.price,name:u.name,sku:u.sku||u.variantId,id:r,currency:this.getCurrency(u.currency)})}window.ga("ecommerce:send")}},e.prototype.viewedProductVariant=function(t){},e.prototype.viewedProductEnhanced=function(t){var e=t.properties;this.loadEnhancedEcommerce(t),this.enhancedEcommerceProductAction(e,"detail"),this.pushEnhancedEcommerce(t)},e.prototype.addedProductEnhanced=function(t){var e=t.properties;this.loadEnhancedEcommerce(t),this.enhancedEcommerceProductAction(e,"add"),this.pushEnhancedEcommerce(t)},e.prototype.startedOrderEnhanced=function(t){var e=t.properties,n=e.products||[];this.loadEnhancedEcommerce(t);for(var r=0,o=n;r<o.length;r++){var i=o[r],a=this.createProductTrack(e,i);this.enhancedEcommerceTrackProduct(a)}window.ga("ec:setAction","checkout",{step:e.step||1}),this.pushEnhancedEcommerce(t)},e.prototype.completedOrderEnhanced=function(t){var e=t.properties,n=e.total||e.revenue||0,r=e.orderId,o=e.products||[];if(r){this.loadEnhancedEcommerce(t);for(var i=0,a=o;i<a.length;i++){var c=a[i],u=this.createProductTrack(e,c);this.enhancedEcommerceTrackProduct(u)}window.ga("ec:setAction","purchase",{id:r,affiliation:e.affiliation,revenue:n,tax:e.tax,shipping:e.shipping,coupon:e.coupon}),this.pushEnhancedEcommerce(t)}},e.prototype.initialize=function(t){this.pageCalled=!1,this.loadGAScript();var n=this.options;"localhost"===a.hostname()&&(n.domain="none"),n.enhancedEcommerce&&this.enhancedEcommerce(),window.ga("create",n.trackingId,{cookieDomain:n.domain||e.defaultOptions.domain,siteSpeedSampleRate:n.siteSpeedSampleRate,sampleRate:n.sampleRate,allowLinker:!0}),n.doubleClick&&window.ga("require","displayfeatures"),n.enhancedLinkAttribution&&window.ga("require","linkid"),n.anonymizeIp&&window.ga("set","anonymizeIp",!0),t()},e.prototype.loadGAScript=function(){window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=(new Date).getTime();var t=c.virtualDocument().createElement("script");t.async=!0,t.src="https://www.google-analytics.com/analytics.js";var e=c.virtualDocument().getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)},e.prototype.enhancedEcommerce=function(){this.viewedProduct=this.viewedProductEnhanced,this.addedProduct=this.addedProductEnhanced,this.startedOrder=this.startedOrderEnhanced,this.completedOrder=this.completedOrderEnhanced},e.prototype.path=function(t){var e=t.path;return this.options.includeSearch&&t.search&&(e+=t.search),e},e.prototype.formatValue=function(t){return!t||t<0?0:Math.round(t)},e.prototype.getProductQuantity=function(t){return t.quantity||1},e.prototype.getCurrency=function(t){return t||"USD"},e.prototype.createProductTrack=function(t,e){var n=o.Integration.merge(e,{});return n.currency=e.currency||this.getCurrency(t.currency),n},e.prototype.loadEnhancedEcommerce=function(t){this.enhancedEcommerceLoaded||(window.ga("require","ec"),this.enhancedEcommerceLoaded=!0);var e=t.properties;window.ga("set","&cu",this.getCurrency(e.currency))},e.prototype.enhancedEcommerceTrackProduct=function(t){var e={id:t.sku||t.variantId,name:t.name,category:t.category,quantity:this.getProductQuantity(t),price:t.price,brand:t.brand,variant:t.variant,currency:this.getCurrency(t.currency)};t.coupon&&(e.coupon=t.coupon),window.ga("ec:addProduct",e)},e.prototype.pushEnhancedEcommerce=function(t){var e=t.properties;window.ga("send","event",{eventCategory:e.category||"EnhancedEcommerce",eventAction:t.event||"Action not defined",eventLabel:e.label,nonInteraction:!0})},e.prototype.enhancedEcommerceProductAction=function(t,e){this.enhancedEcommerceTrackProduct(t),window.ga("ec:setAction",e)},e.prototype.convertPageToTrack=function(t){return{event:t.name?"Viewed "+t.name+" Page":"Loaded a Page",properties:t.properties}},e.prototype.overrideDefaultPageProperties=function(t){for(var e in t.properties)"properties"!==e&&"name"!==e&&e in t&&(t[e]=t.properties[e])},e.defaultOptions={anonymizeIp:!1,domain:"auto",doubleClick:!1,enhancedEcommerce:!1,enhancedLinkAttribution:!1,includeSearch:!1,nonInteraction:!1,siteSpeedSampleRate:1,sampleRate:100,trackNamedPages:!0,trackingId:""},e}(i.EcommerceIntegration);e.GoogleAnalytics=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=n(18),a=n(20),c=n(4),u=n(0),s=n(2),p=function(t){function e(e,n,r){var o=t.call(this,{},e)||this;o.requestType="clickstream",o.config={storageKey:"_trekkie_cs",eventName:"click",customEventName:"trekkie-clickstream",validTargets:["a","button","input","select","textarea"],validInputSubTypes:["submit","file","radio","checkbox","text","email","search","tel","url","password","number","range","button","reset"],safeInputSubTypes:["submit","radio","checkbox","button","reset"],appName:null,flushInterval:5,instantFlush:!1},o.trekkie=n,o.config.appName=n.options.appName;var i=e.flushInterval;void 0!==i&&"number"==typeof i&&(o.config.flushInterval=i);var a=e.instantFlush;return void 0!==a&&"boolean"==typeof a&&(o.config.instantFlush=a),"iframe"===n.options.embedMode?o.clickQueue=o.createPostingQueue():o.config.instantFlush?o.clickQueue=o.createInstantQueue():o.clickQueue=o.createPersistedQueue(),o.flushClickEvents(),o.setClickListener(),o.setFlushInterval(),r(),o}return r(e,t),e.prototype.identify=function(t){},e.prototype.page=function(t){this.flushClickEvents()},e.prototype.track=function(t){var e=this;t.event===this.config.eventName&&setTimeout(function(){e.trekkie.emit(e.requestType,t)},0)},e.prototype.createPostingQueue=function(){return new a.PostingQueue(this.trekkie,this.requestType,this.config.eventName)},e.prototype.createPersistedQueue=function(){return new i.PersistedQueue(this.config.storageKey)},e.prototype.createInstantQueue=function(){var t=this;return new(function(){function e(){}return e.prototype.push=function(e){t.track({event:t.config.eventName,properties:e})},e.prototype.all=function(){return[]},e.prototype.clear=function(){},e}())},e.prototype.setFlushInterval=function(){var t=this;this.config.flushInterval>0&&setInterval(function(){t.flushClickEvents()},1e3*this.config.flushInterval)},e.prototype.flushClickEvents=function(){for(var t=0,e=this.clickQueue.all();t<e.length;t++){var n=e[t];this.track({event:this.config.eventName,properties:n})}this.clickQueue.clear()},e.prototype.setClickListener=function(){var t=this;u.virtualDocument().documentElement().addEventListener("click",function(e){t.trackClick(e)},!0)},e.prototype.trackClick=function(t){try{var e=this.preparePayload(this.resolveRawClickEvent(t));if(!e)return;this.clickQueue.push(e);try{var n=this.trekkie.options,r={detail:e};"iframe"===n.embedMode&&n.embedParentOrigin?this.trekkie.getEmbedParent().postMessage(JSON.stringify({event:"trekkie:customEvent:v1",payload:{eventType:this.config.customEventName,data:r}}),n.embedParentOrigin):u.virtualDocument().dispatchEvent(new CustomEvent(this.config.customEventName,r))}catch(t){}}catch(t){c.internalError(t)}},e.prototype.preparePayload=function(t){if(!t.resolved)return null;var e=t.clicked;return{app_name:this.config.appName,url:s.href(),target_text:this.getTextLabelFromHTMLElement(e),target_tagname:e.tagName,target_classname:this.getClassName(e),target_id:e.id,target_trekkie_context:t.data&&Object.getOwnPropertyNames(t.data).length>0?JSON.stringify(t.data):null,target_url:e.getAttribute("href"),target_form_input_type:this.isHTMLFormInputSubType(e)?e.type:null,target_form_action:this.isHTMLFormInputSubType(e)?this.getHTMLFormAction(e):null,target_form_relative_position:this.isHTMLFormInputSubType(e)?this.getFormRelativePosition(e):null}},e.prototype.resolveRawClickEvent=function(t){for(var e=t.target,n={clicked:e,resolved:void 0,data:{}};e;){!n.resolved&&this.shouldTrack(e)&&(n.resolved=e);for(var r=0,o=Array.prototype.slice.call(e.attributes);r<o.length;r++){var i=o[r];i&&i.value&&!n.data[i.name]&&i.name.match(/^data-trekkie-.*/)&&(n.data[i.name]=i.value)}e=this.parentElement(e)}return n},e.prototype.parentElement=function(t){var e=t.parentNode;return e.parentNode?e:void 0},e.prototype.shouldTrack=function(t){var e=t.tagName?t.tagName.toLowerCase():"";if("input"===e)return this.config.validInputSubTypes.indexOf(t.type.toLowerCase())>=0;for(var n=0;n<t.attributes.length;n++){var r=t.attributes.item(n);if("data-trekkie-id"===r.name&&r.value)return!0}return this.config.validTargets.indexOf(e)>=0},e.prototype.getClassName=function(t){return"object"==typeof t.className?t.parentElement.getAttribute("class"):t.className},e.prototype.getTextLabelFromHTMLElement=function(t){switch(t.tagName.toLowerCase()){case"input":return this.config.safeInputSubTypes.indexOf(t.type)>-1?t.value:t.name;case"select":var e=t.options.selectedIndex;return e>-1?t.options[e].text:"No value chosen";case"textarea":return t.name||"";default:return this.getTargetText(t)||this.getTextLabelFromParentHTMLElement(t)}},e.prototype.getTextLabelFromParentHTMLElement=function(t){for(;t.parentNode;)if(t=t.parentNode,t.tagName&&-1!==this.config.validTargets.indexOf(t.tagName.toLowerCase()))return this.getTargetText(t)},e.prototype.getTargetText=function(t){var e=t.innerText||t.textContent;if(e)return this.dedupTargetText(e.replace(/\s+/g," ").trim())},e.prototype.dedupTargetText=function(t){if(-1===t.indexOf(" "))return t;var e={};return t.split(" ").filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)}).join(" ")},e.prototype.getHTMLFormAction=function(t){for(;t.parentNode;)if((t=t.parentNode)&&t.tagName&&"form"===t.tagName.toLowerCase()){var e=t.attributes.getNamedItem("action");if(e&&e.value)return e.value}return""},e.prototype.isHTMLFormInputSubType=function(t){return-1!==["input","select","textarea"].indexOf(t.tagName.toLowerCase())},e.prototype.getFormRelativePosition=function(t){switch(t.tagName.toLowerCase()){case"select":return t.options.selectedIndex;default:return null}},e}(o.Integration);e.Clickstream=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),o=function(){function t(t){this.queue=[],this.storage=new r.LocalStorage(t);var e=this.storage.get();null!==e&&(this.queue=JSON.parse(e))}return t.prototype.push=function(t){this.queue.push(t),this.persist()},t.prototype.all=function(){return this.queue},t.prototype.clear=function(){this.queue=[],this.persist()},t.prototype.persist=function(){this.storage.set(JSON.stringify(this.queue))},t}();e.PersistedQueue=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.storageName=t,this.storage=localStorage,this.storageEnabled=this.checkLocalStorageAvailability()}return t.prototype.get=function(){return this.storageEnabled?this.storage.getItem(this.storageName):null},t.prototype.set=function(t){this.storageEnabled&&this.storage.setItem(this.storageName,t)},t.prototype.checkLocalStorageAvailability=function(){try{return this.storage.setItem("test","ok"),this.storage.removeItem("test"),!0}catch(t){return(22===t.code||1014===t.code)&&(this.storage.clear(),!0)}},t}();e.LocalStorage=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n){this.trekkie=t,this.requestType=e,this.eventName=n}return t.prototype.push=function(t){this.trekkie.emit(this.requestType,{event:this.eventName,properties:t})},t.prototype.all=function(){return[]},t.prototype.clear=function(){},t}();e.PostingQueue=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(4),a=function(t){function e(n,r,o){var i=t.call(this,e.defaultOptions,n)||this;return o(),i}return r(e,t),e.prototype.identify=function(t){},e.prototype.page=function(t){},e.prototype.track=function(t){},e.prototype.completedOrder=function(t){var e=this.options;i.requestImpl.img("https://ct.pinterest.com/v2.5/?tid="+e.pixelId+"&event=checkout&value=0.00&quantity=1")},e.defaultOptions={pixelId:""},e}(o.EcommerceIntegration);e.Pinterest=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),i=n(8),a=n(1),c=n(2),u=n(0);e.sessionAttributionEventKey="session-attribution",e.sessionAttributionParamsKey="_shopify_sa_p",e.sessionAttributionTimestampKey="_shopify_sa_t";var s=function(t){function n(e,n,r){var o=t.call(this,{},e)||this;return o.trekkie=n,o.timestampManager=new p,o.campaignManager=new d,setTimeout(function(){o.attributeSession()},0),r(),o}return r(n,t),n.prototype.identify=function(t){},n.prototype.page=function(t){},n.prototype.track=function(t){var n=this;t.event===e.sessionAttributionEventKey&&setTimeout(function(){n.trekkie.emit(e.sessionAttributionEventKey,t)},0)},n.prototype.attributeSession=function(){var t=new Date,n=c.search(),r=this.campaignManager.constructCanonicalUtmString(n);if(this.timestampManager.isValid(t)&&this.campaignManager.isValid(r));else{var o="";try{o=t.toJSON()}catch(t){}this.track({event:e.sessionAttributionEventKey,properties:{sa_url:c.href(),sa_referrer:u.virtualDocument().referrer(),sa_utm_string:r,sa_token:i.buildToken(),over_30_minutes:!this.timestampManager.isWithin30MinuteCutOff(t),cross_utc_midnight:this.timestampManager.isWithin30MinuteCutOff(t)&&!this.timestampManager.isSameDayAs(t),new_campaign:!this.campaignManager.isValid(r),prev_campaign_params:this.campaignManager.fetch(),last_extended:this.timestampManager.fetch(),local_now:o}})}this.timestampManager.extend(t.toJSON()),this.campaignManager.extend(r)},n}(a.Integration);e.SessionAttribution=s;var p=function(){function t(){}return t.prototype.fetch=function(){return o.read(e.sessionAttributionTimestampKey)},t.prototype.extend=function(t){o.write(e.sessionAttributionTimestampKey,t,{permanent:!1})},t.prototype.isValid=function(t){return this.isWithin30MinuteCutOff(t)&&this.isSameDayAs(t)},t.prototype.isWithin30MinuteCutOff=function(t){return this.testStoredTimestamp(function(t,e){return e.getTime()-t.getTime()<=18e5},t)},t.prototype.isSameDayAs=function(t){return this.testStoredTimestamp(function(t,e){return t.getUTCDate()===e.getUTCDate()},t)},t.prototype.testStoredTimestamp=function(t,e){var n=this.fetch();if(!n)return!1;try{return t(new Date(n),e)}catch(t){return!1}},t}();e.TimestampManager=p;var d=function(){function t(){}return t.prototype.fetch=function(){return o.read(e.sessionAttributionParamsKey)},t.prototype.extend=function(t){""===t&&(t=this.fetch()||""),o.write(e.sessionAttributionParamsKey,t,{permanent:!1})},t.prototype.isValid=function(t){return""===t||this.fetch()===t},t.prototype.constructCanonicalUtmString=function(e){if(""===e||void 0===e||null===e||"?"===e)return"";e="?"===e[0]?e.slice(1):e;for(var n={},r=0,o=e.split("&");r<o.length;r++){var i=o[r],a=i.split("=");if(!(a.length<2)){var c=this.decodeReplacingPlus(a[0]),u=this.decodeReplacingPlus(a[1]);u&&c&&(n[c]=u)}}return t.acceptedQueryStringParams.filter(function(t){return n[t]}).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&")},t.prototype.decodeReplacingPlus=function(t){return decodeURIComponent(t.replace(/\+/g," "))},t.acceptedQueryStringParams=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref","gclid"],t}();e.CampaignManager=d},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(9),a=function(t){function e(e,n,r){var o=t.call(this,{},e)||this;return o.initialize(r),o}return r(e,t),e.prototype.identify=function(t){throw new Error("identify is not supported")},e.prototype.track=function(t){},e.prototype.initialize=function(t){var e=this.options;this.loadGtagScript(),window.gtag("config",e.conversionId,{send_page_view:!1}),t()},e.prototype.loadGtagScript=function(){var t=this.options;window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),i.script({src:"https://www.googletagmanager.com/gtag/js?id="+t.conversionId})},e.prototype.page=function(t){window.gtag("event","page_view",{send_to:this.gtagEventLabelFor("page_view"),page_path:t.path||"",page_title:t.name||t.title,page_location:t.url})},e.prototype.viewedProduct=function(t){var e=t.properties;window.gtag("event","view_item",{send_to:this.gtagEventLabelFor("view_item"),ecomm_prodid:this.generateProductIds([e]),ecomm_totalvalue:e.price*e.quantity,ecomm_pagetype:"product",items:[{id:e.productId||e.variantId,name:e.name,brand:e.brand,category:e.category,coupon:e.coupon,price:e.price.toString(),quantity:e.quantity,variant:e.variant}]})},e.prototype.addedProduct=function(t){var e=t.properties;window.gtag("event","add_to_cart",{send_to:this.gtagEventLabelFor("add_to_cart"),ecomm_prodid:this.generateProductIds([e]),ecomm_totalvalue:e.price*e.quantity,ecomm_pagetype:"cart",value:e.price*e.quantity,currency:e.currency||"USD",items:[{id:e.productId||e.variantId,name:e.name,brand:e.brand,category:e.category,coupon:e.coupon,price:e.price.toString(),quantity:e.quantity,variant:e.variant}]})},e.prototype.completedOrder=function(t){var e=t.properties;window.gtag("event","purchase",{send_to:this.gtagEventLabelFor("purchase"),transaction_id:e.orderId,value:e.revenue,currency:e.currency||"USD",tax:e.tax.toString(),shipping:e.shipping.toString(),items:e.products.map(function(t){return{id:t.productId||t.variantId,name:t.name,brand:t.brand,category:t.category,coupon:t.coupon,price:t.price.toString(),quantity:t.quantity,variant:t.variant}})})},e.prototype.startedOrder=function(t){var e=t.properties;window.gtag("event","begin_checkout",{send_to:this.gtagEventLabelFor("begin_checkout"),ecomm_prodid:this.generateProductIds(e.products),ecomm_totalvalue:this.cartTotalValue(e.products),ecomm_pagetype:"cart",value:e.revenue,currency:e.currency||"USD",items:e.products.map(function(t){return{id:t.productId||t.variantId,name:t.name,brand:t.brand,category:t.category,coupon:t.coupon,price:t.price.toString(),quantity:t.quantity,variant:t.variant}}),coupon:e.coupon})},e.prototype.performedSearch=function(t){var e=t.properties;window.gtag("event","search",{send_to:this.gtagEventLabelFor("search"),search_term:e.query})},e.prototype.addedPayment=function(t){var e=t.properties;window.gtag("event","add_payment_info",{send_to:this.gtagEventLabelFor("add_payment_info"),currency:e.currency,total:e.total})},e.prototype.generateProductIds=function(t){for(var e=new Array,n=0,r=t;n<r.length;n++){var o=r[n],i="shopify_"+this.targetCountry(),a=i+"_"+o.productId+"_"+o.variantId;e.push(a)}return e},e.prototype.cartTotalValue=function(t){for(var e=0,n=0,r=t;n<r.length;n++){var o=r[n];e+=o.price*o.quantity}return e},e.prototype.targetCountry=function(){return this.options.targetCountry||"US"},e.prototype.gtagEventLabelFor=function(t){for(var e=this.options,n=0,r=e.eventLabels;n<r.length;n++){var o=r[n];if(o.type===t)return o.action_label}},e}(o.EcommerceIntegration);e.GoogleGtag=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i="add to cart".toLowerCase(),a=function(t){function e(e,n,r){var o=t.call(this,{},e)||this;return o.trekkie=n,r(),o}return r(e,t),e.prototype.identify=function(t){},e.prototype.page=function(t){var e=this;setTimeout(function(){e.runExperiment()},0)},e.prototype.track=function(t){},e.prototype.runExperiment=function(){var t=this,e=this.addToCartInputs(this.allInputElements()),n=this.addToCartButtons(this.allButtonElements());e=e.filter(function(e){return t.isElementInViewport(e)}),n=n.filter(function(e){return t.isElementInViewport(e)}),e.length+n.length===0&&this.trekkie.track({event:"add-to-cart-not-visible",properties:{url:window.location.href}})},e.prototype.allInputElements=function(){for(var t=[],e=document.querySelectorAll("input"),n=0;n<e.length;n++)t.push(e[n]);return t},e.prototype.allButtonElements=function(){for(var t=[],e=document.querySelectorAll("button"),n=0;n<e.length;n++)t.push(e[n]);return t},e.prototype.addToCartInputs=function(t){return t.filter(function(t){return t.value.toLowerCase()===i})},e.prototype.addToCartButtons=function(t){return t.filter(function(t){return t.innerText.toLowerCase()===i})},e.prototype.isElementInViewport=function(t){return t.getBoundingClientRect().bottom<=window.innerHeight},e}(o.Integration);e.AddToCart=a},function(t,e,n){"use strict";function r(t,n,r){void 0===r&&(r=3e4),r>0&&(n=e.xtldImpl.handlerWithTimeout(n,r));var i="xtld-"+Math.random().toString(16).substring(2),a=function(){try{var r=e.xtldImpl.findFrame(i,t);r?e.xtldImpl.requestToken(r,"getLongTermCookie",n):n(void 0,new Error("Failed to load iFrame"))}catch(t){n(void 0,t)}};o.iframe({src:t,onLoad:a,className:i})}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=n(0),a=n(3);e.performXtldExchange=r,e.xtldImpl={requestToken:function(t,e,n){a.virtualWindow().addEventListener("message",function(e){try{e&&0===t.src.indexOf(e.origin)&&n(e.data)}catch(e){n(void 0,e)}}),t.contentWindow.postMessage(e,t.src)},handlerWithTimeout:function(t,e){var n=setTimeout(function(){t(void 0,new Error("Timed out, after "+e/1e3+" second(s)"))},e);return function(e,r){clearTimeout(n),t(e,r)}},frameSource:function(){return"https://cdn.shopify.com/s/javascripts/tricorder/xtld-frame.html"},findFrame:function(t,e){return i.virtualDocument().querySelector("iframe."+t+'[src="'+e+'"]')}}}]);