text: !function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(t,e,r){"use strict";function n(){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(n){var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r}},t}(),i=new o;e.virtualDocument=n},function(t,e,r){"use strict";function n(){return h.virtualWindow().location().hash}function o(){return h.virtualWindow().location().host}function i(){return h.virtualWindow().location().hostname}function a(){return h.virtualWindow().location().href}function c(t){h.virtualWindow().location().href=t}function u(){var t=h.virtualWindow().location();return t.origin?t.origin:t.protocol+"//"+t.hostname+(t.port?":"+t.port:"")}function s(){return h.virtualWindow().location().pathname}function p(){return h.virtualWindow().location().port}function d(){return h.virtualWindow().location().protocol}function f(){return h.virtualWindow().location().search}function l(t){return t=t||i(),null!==t.match(/(^|\.)shopify\.com$/)}Object.defineProperty(e,"__esModule",{value:!0});var h=r(5);e.hash=n,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,r){"use strict";var n=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.options={},this.options=n({},t,e)}return t.flatten=function(t){var e=n({},t);return e.properties={},n({},e,t.properties)},t.isEqual=function(t,e){for(var r in t)if(t[r]!==e[r])return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0},t}();e.Integration=o},function(t,e,r){"use strict";function n(t,r,n,o){return o=o||e.requestImpl.base(),"/"!==o[o.length-1]&&(o+="/"),e.requestImpl.img(o+t+"/"+r+"?"+e.requestImpl.queryString(n))}function o(t){c=t}function i(t,e){return n("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=r(1);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 r in t)("number"==typeof t[r]||t[r])&&("object"==typeof t[r]&&0===Object.keys(t[r]).length||e.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r])));if(function(t){for(var e=t.length;e>0;--e){var r=Math.floor(Math.random()*e),n=t[r];t[r]=t[e-1],t[e-1]=n}}(e),e.length>1&&0===e[0].indexOf("event=")){var n=e[0];e[0]=e[1],e[1]=n}return e.join("&")}},e.load=n;var c=void 0;e.setGlobalSerializedAppConfig=o,e.internalError=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),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,r){var n=t.call(this,e,r)||this;return n.wrapTrack(),n}return n(e,t),e.prototype.wrapTrack=function(){var t=this.track;this.track=function(e){var r=e.event,n=!1;for(var o in i){var a=i[o];if(this[o]&&a.test(r)){this[o].apply(this,[e]),n=!0;break}}n||t.apply(this,Array.prototype.slice.call(arguments))}},e}(o.Integration);e.EcommerceIntegration=a},function(t,e,r){"use strict";function n(){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,r){this.nativeWindow.postMessage(t,e,r)},t.prototype.addEventListener=function(t,e,r){this.nativeWindow.addEventListener(t,e,r)},t.prototype.performance=function(){return this.nativeWindow.performance},t.prototype.onload=function(){throw new Error("Do not use window.onload due to compatibility reasons. Use addEventListener instead of window.onload")},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=n},function(t,e,r){"use strict";function n(){return!!p.read(e.shortTermKey)||!!p.read(e.deprecatedShortTermKey)}function o(){return!!p.read(e.longTermKey)||!!p.read(e.deprecatedLongTermKey)}function i(){return h.fetchOrSet(!1,e.deprecatedShortTermKey,e.shortTermKey)}function a(){return h.fetchOrSet(!0,e.deprecatedLongTermKey,e.longTermKey)}function c(){return h.build()}function u(){return m.fetchOrSet(e.firstSeenKey)}function s(){return h.hexTime()}Object.defineProperty(e,"__esModule",{value:!0});var p=r(7),d=r(5);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",h={fetch:function(t){return p.read(t)},fetchOrSet:function(t,e,r){if(!p.enabled())return"00000000-0000-0000-4000-000000000000";var n=h.fetch(r)||h.fetch(e);n||(n=h.build());var o={permanent:t};return p.write(e,n,o),p.write(r,n,o),n},build:function(){var t="";try{var e=d.virtualWindow().crypto(),r=new Uint16Array(31);e.getRandomValues(r);var n=0;t=l.replace(/[x]/g,function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];var i=r[n]%16,a="x"===t?i:3&i|8;return n++,a.toString(16)}).toUpperCase()}catch(e){t=l.replace(/[x]/g,function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)}).toUpperCase()}return h.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 r=Math.abs(t+e).toString(16).toLowerCase();return f.substr(0,8-r.length)+r}},m={fetch:function(t){return p.read(t)},fetchOrSet:function(t){var e=m.fetch(t)||(new Date).toJSON(),r={permanent:!0};return p.write(t,e,r),e}};e.hasShortTerm=n,e.hasLongTerm=o,e.shortTerm=i,e.longTerm=a,e.buildToken=c,e.firstSeen=u,e.hexTime=s},function(t,e,r){"use strict";function n(){return e.cookieImpl.enabled()}function o(t){return e.cookieImpl.read(t)}function i(t,r,n){void 0===n&&(n={}),a(t,r,n.permanent,e.shopifyCookie.domain(u.hostname())),a(t,r,n.permanent,d),a(t,r,n.permanent,f),a(t,r,n.permanent,n.domain),a(t,r,n.permanent,"")}function a(t,r,n,o){var i={maxage:n?p:s,domain:o,path:"/"};e.cookieImpl.write(t,r,i)}Object.defineProperty(e,"__esModule",{value:!0});var c=r(0),u=r(1),s=18e5,p=62208e6,d=".myshopify.com",f=".oberlo.com";e.cookieImpl={parse:function(t){for(var e={},r=0,n=t.split(/ *; */);r<n.length;r++){var o=n[r],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,r,n){if(void 0===n&&(n={}),e.cookieImpl.enabled()){var o=encodeURIComponent(t)+"="+encodeURIComponent(r);n.maxage&&(n.expires=new Date(Date.now()+n.maxage)),n.path&&(o+="; path="+n.path),n.domain&&(o+="; domain="+n.domain),n.expires&&(o+="; expires="+n.expires.toUTCString()),n.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=n,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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exportVar="trekkie",e.enabledIntegrations=[];var n=r(14);e.enabledIntegrations.push(["Performance",n.Performance]);var o=r(16);e.enabledIntegrations.push(["Facebook Pixel",o.FacebookPixel]);var i=r(17);e.enabledIntegrations.push(["Google Analytics",i.GoogleAnalytics]);var a=r(18);e.enabledIntegrations.push(["Clickstream",a.Clickstream]);var c=r(21);e.enabledIntegrations.push(["Pinterest Pixel",c.Pinterest]);var u=r(22);e.enabledIntegrations.push(["Session Attribution",u.SessionAttribution]);var s=r(23);e.enabledIntegrations.push(["Google Gtag Pixel",s.GoogleGtag])},function(t,e,r){"use strict";function n(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r],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=r(10),i=r(8),a=r(3);e.replayAnalyticsQueue=n;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}}}},n(s,u)})}}catch(t){a.internalError(t)}},function(t,e,r){"use strict";var n=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=r(11),i=r(8),a=r(3),c=r(0),u=r(1),s=/^https?:\/\//,p=function(){function t(t,e){var r=this;this.integrations=[],this.trekkie=new o.Trekkie(t.Trekkie,function(){setTimeout(function(){r.loadIntegrations(i.enabledIntegrations,t,r.trekkie,e)},0)}),this.integrations[0]!==this.trekkie&&this.integrations.unshift(this.trekkie)}return t.prototype.loadIntegrations=function(t,e,r,n){for(var o=this.waitFor(t.length,function(){try{n()}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,r,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 r=0,n=this.integrations;r<n.length;r++){n[r].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 r=this.pageDefaults();r.name=t,r.properties=n({},r.properties,e);for(var o=0,i=this.integrations;o<i.length;o++){i[o].page(r)}}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 r=0,n=this.integrations;r<n.length;r++){n[r].track({event:t,properties:e})}}catch(t){a.internalError(t)}},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 r=t[e];if("canonical"===r.getAttribute("rel")){var n=r.getAttribute("href");if(!s.test(n))continue;if(n.replace(s,"").length<=5)continue;return n}}return""},t.prototype.url=function(){var t=this.canonical();if(t)return t.indexOf("?")>0?t:t+u.search();var e=u.href(),r=e.indexOf("#");return-1===r?e:e.slice(0,r)},t}();e.Tricorder=p},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),a=r(3),c=r(12),u=r(6),s=r(13),p=function(t){function e(e,r){var n=t.call(this,{},e)||this;return n.init(e,r),n}return n(e,t),e.prototype.init=function(t,e){this.defaultAttributes={appName:t.appName,uniqToken:u.longTerm(),visitToken:u.shortTerm(),microSessionId:u.buildToken(),microSessionCount:0,firstSeen:u.firstSeen()},t.defaultAttributes&&(this.defaultAttributes=o({},t.defaultAttributes,this.defaultAttributes)),this.monorailEndpoint=s.endpoints.global,t.monorailEndpoint&&(this.monorailEndpoint={url:t.monorailEndpoint}),t.development&&(this.monorailEndpoint=s.endpoints.staging),e()},e.prototype.identify=function(t){},e.prototype.page=function(t){var e=c.appNameToPageViewSchemaId[this.defaultAttributes.appName];this.emit("page",t,e)},e.prototype.track=function(t){var e=c.extractSchemaIdFromEventName(t.event);this.emit("track",t,e,void 0!==e)},e.prototype.emit=function(t,e,r,n){++this.defaultAttributes.microSessionCount,e=i.Integration.flatten(e);var c=o({},e,this.defaultAttributes);c.eventType=t;var u=this.options,p=u.development?"testing":u.appName;n||a.load(p,t,c,u.endpointBase),r&&s.produce(this.monorailEndpoint,r,c)},e}(i.Integration);e.Trekkie=p},function(t,e,r){"use strict";function n(t){var e=t.toLowerCase();if(0===e.lastIndexOf("monorail://")&&e.length>"monorail://".length)return e.substr("monorail://".length)}Object.defineProperty(e,"__esModule",{value:!0}),e.appNameToPageViewSchemaId={development:"edge_test/1.0",testing:"edge_test/1.0",brochure:"trekkie_brochure_page_view/1.0",checkout:"trekkie_checkout_page_view/1.1",docs:"trekkie_docs_page_view/1.0",storefront:"trekkie_storefront_page_view/1.1","oberlo-home":"trekkie_oberlo_home_page_view/1.0",opinions:"trekkie_opinions_page_view/1.0",oberlo:"trekkie_oberlo_app_page_view/1.0",blog:"trekkie_blog_page_view/1.0",exchange:"trekkie_exchange_page_view/1.0",appstore:"trekkie_appstore_page_view/1.0","marketing-misc":"trekkie_marketing_misc_page_view/1.0",smiley:"trekkie_smiley_page_view/1.0",themestore:"trekkie_themestore_page_view/1.0",partners:"trekkie_partners_page_view/1.0"},e.extractSchemaIdFromEventName=n},function(t,e,r){"use strict";function n(t,e,r){var n=(new Date).getTime(),i={schema_id:e,payload:r,metadata:{event_created_at_ms:n,event_sent_at_ms:n}};if(window&&window.navigator&&"function"==typeof window.navigator.sendBeacon&&"function"==typeof window.Blob&&!o()){var a=new window.Blob([JSON.stringify(i)],{type:"text/plain"});if(window.navigator.sendBeacon(t.url,a))return!0}var c=new XMLHttpRequest;try{c.open("POST",t.url),c.setRequestHeader("Content-Type","text/plain"),c.send(JSON.stringify(i))}catch(t){console.log(t)}return!1}function o(){return-1!==window.navigator.userAgent.lastIndexOf("iPhone; CPU iPhone OS 12_")||-1!==window.navigator.userAgent.lastIndexOf("iPad; CPU OS 12_")}Object.defineProperty(e,"__esModule",{value:!0}),e.endpoints={global:{url:"https://monorail-edge.shopifysvc.com/v1/produce"},staging:{url:"https://monorail-edge-staging.shopifycloud.com/v1/produce"},canada:{url:"https://monorail-edge-ca.shopifycloud.com/v1/produce"}},e.produce=n},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),a=r(15),c=function(t){function e(r,n,o){var i=t.call(this,e.defaultOptions,r)||this;return i.trekkie=n,o(),i}return n(e,t),e.prototype.identify=function(t){},e.prototype.page=function(t){var e={event:"navigation_performance_metrics",properties:i.Integration.flatten(t)},r=this.options;r.navigationTimingApiMeasurementsEnabled&&r.navigationTimingApiMeasurementsSampleRate>=Math.random()&&(e.properties=o({},this.pagePerformance(),e.properties),this.trekkie.track(e))},e.prototype.track=function(t){},e.prototype.pagePerformance=function(){return(new a.PagePerformance).collect()},e.defaultOptions={navigationTimingApiMeasurementsEnabled:!0,trekkieTrackSampleRate:0,navigationTimingApiMeasurementsSampleRate:.001},e}(i.Integration);e.Performance=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5);e.upperCaseRegex=/([A-Z])/g;var o=function(){function t(){}return t.prototype.timing=function(){return!(!n.virtualWindow().performance()||!n.virtualWindow().performance().timing)&&n.virtualWindow().performance().timing},t.prototype.getEntry=function(t,e){var r=n.virtualWindow().performance().getEntriesByType(t);return e?r.find(function(t){return t.name===e})||!1:r[0]},t.prototype.collect=function(){var e={};if(n.virtualWindow().supportsNavigationTiming()&&!i())try{if(n.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[t.paintMetricPrefix+a]=c.startTime)}e[t.paintMetricPrefix+"source"]="PerformancePaintTiming",e[t.paintMetricPrefix+"valid"]=!0}for(var u=this.getEntry("navigation"),s=0,p=t.navigationAttrs;s<p.length;s++){var a=p[s];a in u&&(e[t.navigationMetricPrefix+a]=u[a])}e[t.navigationMetricPrefix+"timeOrigin"]=n.virtualWindow().performance().timeOrigin,e[t.navigationMetricPrefix+"source"]="PerformanceNavigationTiming",e[t.navigationMetricPrefix+"valid"]=!0}catch(t){return this.invalidPerfObj()}else{if(!this.timing()||i())return this.invalidPerfObj();try{for(var d=this.timing(),f=0,l=t.timingAttrs;f<l.length;f++){var a=l[f];e[t.navigationMetricPrefix+a]=d[a]}e[t.navigationMetricPrefix+"source"]="PerformanceTiming",e[t.navigationMetricPrefix+"valid"]=!0}catch(t){return this.invalidPerfObj()}}return e},t.prototype.invalidPerfObj=function(){for(var e={},r=0,n=t.perfAttrs;r<n.length;r++){var o=n[r];e[t.navigationMetricPrefix+o]=0}return e[t.navigationMetricPrefix+"source"]="None",e[t.navigationMetricPrefix+"valid"]=!1,e},t.prototype.toEntryName=function(t){return t.replace(e.upperCaseRegex,function(t){return"-"+t[0].toLowerCase()})},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.navigationMetricPrefix="nt:",t.paintMetricPrefix="pt:",t.performancePrefixes=[t.navigationMetricPrefix,t.paintMetricPrefix],t.prefixRegex=new RegExp(t.performancePrefixes.join("|")),t}();e.PagePerformance=o;var i=function(){return new RegExp("MSIE 9.0|Firefox/7.0|Firefox/8.0").test(n.virtualWindow().userAgent())}},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(4),i=r(0),a=function(t){function e(r,n,o){var i=t.call(this,e.defaultOptions,r)||this;return i.initialize(o),i}return n(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 r in t.properties)"revenue"===r?e.value=this.formatRevenue(t.properties.revenue):e[r]=t.properties[r]},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,r=e.pixelIds.concat([e.pixelId]),n=0,o=r;n<o.length;n++){var i=o[n];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=[],r=t.products||[],n=0,o=r;n<o.length;n++){var i=o[n],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||[],r=0,n=e;r<n.length;r++){if(n[r].productId)return"product_group"}return"product"},e.prototype.getOrderNumItems=function(t){for(var e=0,r=t.products||[],n=0,o=r;n<o.length;n++){var i=o[n];this.getProductKey(i)&&(e+=i.quantity||1)}return e},e.defaultOptions={pixelId:"",pixelIds:[],agent:""},e}(o.EcommerceIntegration);e.FacebookPixel=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};Object.defineProperty(e,"__esModule",{value:!0});var i=r(4),a=r(1),c=r(0),u=function(t){function e(r,n,o){var i=t.call(this,e.defaultOptions,r)||this;return i.pageCalled=!1,i.ecommerce=!1,i.enhancedEcommerceLoaded=!1,i.initialize(o),i}return n(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,r=this.path(t),n=t.name||t.title,o={page:r,title:n};window.ga("set",o);var i={page:r,title:n,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,r=t.properties,n={eventAction:t.event,eventCategory:r.category||"All",eventLabel:r.label,eventValue:this.formatValue(r.value||r.revenue),nonInteraction:!!(r.hasOwnProperty("nonInteraction")?r.nonInteraction:e.nonInteraction)};window.ga("send","event",n)},e.prototype.completedOrder=function(t){var e=t.properties,r=e.total||e.revenue||0,n=e.orderId,o=e.products||[];if(n){this.ecommerce||(window.ga("require","ecommerce"),this.ecommerce=!0),window.ga("ecommerce:addTransaction",{affiliation:e.affiliation,shipping:e.shipping,revenue:r,tax:e.tax,id:n,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:n,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,r=e.products||[];this.loadEnhancedEcommerce(t);for(var n=0,o=r;n<o.length;n++){var i=o[n],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,r=e.total||e.revenue||0,n=e.orderId,o=e.products||[];if(n){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:n,affiliation:e.affiliation,revenue:r,tax:e.tax,shipping:e.shipping,coupon:e.coupon}),this.pushEnhancedEcommerce(t)}},e.prototype.initialize=function(t){this.pageCalled=!1,this.loadGAScript();var r=this.options;"localhost"===a.hostname()&&(r.domain="none"),r.enhancedEcommerce&&this.enhancedEcommerce(),window.ga("create",r.trackingId,{cookieDomain:r.domain||e.defaultOptions.domain,siteSpeedSampleRate:r.siteSpeedSampleRate,sampleRate:r.sampleRate,allowLinker:!0}),r.doubleClick&&window.ga("require","displayfeatures"),r.enhancedLinkAttribution&&window.ga("require","linkid"),r.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 r=o({},e);return r.currency=e.currency||this.getCurrency(t.currency),r},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,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(2),i=r(19),a=r(3),c=r(0),u=r(1),s=function(t){function e(e,r,n){var o=t.call(this,{},e)||this;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=r,o.config.appName=r.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),o.config.instantFlush?o.clickQueue=o.createInstantQueue():o.clickQueue=o.createPersistedQueue(),o.flushClickEvents(),o.setClickListener(),o.setFlushInterval(),n(),o}return n(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("clickstream",t)},0)},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 r=e[t];this.track({event:this.config.eventName,properties:r})}this.clickQueue.clear()},e.prototype.setClickListener=function(){var t=this;c.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{c.virtualDocument().dispatchEvent(new CustomEvent(this.config.customEventName,{detail:e}))}catch(t){}}catch(t){a.internalError(t)}},e.prototype.preparePayload=function(t){if(!t.resolved)return null;var e=t.clicked;return{app_name:this.config.appName,url:u.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,r={clicked:e,resolved:void 0,data:{}};e;){!r.resolved&&this.shouldTrack(e)&&(r.resolved=e);for(var n=0,o=Array.prototype.slice.call(e.attributes);n<o.length;n++){var i=o[n];i&&i.value&&!r.data[i.name]&&i.name.match(/^data-trekkie-.*/)&&(r.data[i.name]=i.value)}e=this.parentElement(e)}return r},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 r=0;r<t.attributes.length;r++){var n=t.attributes.item(r);if("data-trekkie-id"===n.name&&n.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=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(20),o=function(){function t(t){this.queue=[],this.storage=new n.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,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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=n},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(4),i=r(3),a=function(t){function e(r,n,o){var i=t.call(this,e.defaultOptions,r)||this;return i.initialize(o),i}return n(e,t),e.prototype.identify=function(t){},e.prototype.track=function(t){},e.prototype.page=function(t){var e=this.options,r=t.properties;"3.0"!==e.pixelVersion||r&&"product"===r.pageType||this.forwardToPinterest("PageVisit")},e.prototype.viewedProduct=function(t){if("3.0"===this.options.pixelVersion){var e=t.properties;this.forwardToPinterest("PageVisit",{currency:e.currency,line_items:[{product_id:e.productId,product_variant_id:e.variantId,product_name:e.name,product_price:e.price,product_quantity:e.quantity}]})}},e.prototype.viewedProductCategory=function(t){"3.0"===this.options.pixelVersion&&this.forwardToPinterest("ViewCategory")},e.prototype.addedProduct=function(t){if("3.0"===this.options.pixelVersion){var e=t.properties;this.forwardToPinterest("AddToCart",{currency:e.currency,line_items:[{product_id:e.productId,product_variant_id:e.variantId,product_name:e.name,product_price:e.price,product_quantity:e.quantity}]})}},e.prototype.completedOrder=function(t){var e=this.options;if("3.0"===e.pixelVersion){var r=t.properties,n={value:r.revenue,currency:r.currency,order_quantity:this.getOrderNumItems(r),line_items:r.products.map(function(t,e){return{product_id:t.productId,product_variant_id:t.variantId,product_name:t.name,product_price:t.price,product_quantity:t.quantity}})};r.emailSHA256&&(n.em=r.emailSHA256),this.forwardToPinterest("Checkout",n)}else i.requestImpl.img("https://ct.pinterest.com/v2.5/?tid="+e.pixelId+"&event=checkout&value=0.00&quantity=1")},e.prototype.performedSearch=function(t){if("3.0"===this.options.pixelVersion){var e=t.properties;this.forwardToPinterest("Search",{search_query:e.query})}},e.prototype.forwardToPinterest=function(t,e){window.pintrk("track",t,Object.assign({np:"shopify"},e))},e.prototype.getOrderNumItems=function(t){for(var e=0,r=t.products||[],n=0,o=r;n<o.length;n++){var i=o[n];this.getProductKey(i)&&(e+=i.quantity||1)}return e},e.prototype.getProductKey=function(t){return t.productId||t.variantId||t.sku},e.prototype.initialize=function(t){var e=this.options;"3.0"===e.pixelVersion&&(this.loadPinterestScript(),window.pintrk("load",e.pixelId,{np:"shopify"}),window.pintrk("page")),t()},e.prototype.loadPinterestScript=function(){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))},window.pintrk.queue=[],window.pintrk.version="3.0";var t=document.createElement("script");t.async=!0,t.src="https://s.pinimg.com/ct/core.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}},e.defaultOptions={pixelId:"",pixelVersion:"2.5"},e}(o.EcommerceIntegration);e.Pinterest=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=r(6),a=r(2),c=r(1),u=r(0);e.sessionAttributionEventKey="session-attribution",e.sessionAttributionMonorailSchema="trekkie_session_attribution/1.0",e.sessionAttributionParamsKey="_shopify_sa_p",e.sessionAttributionTimestampKey="_shopify_sa_t";var s=function(t){function r(e,r,n){var o=t.call(this,{},e)||this;return o.trekkie=r,o.timestampManager=new p,o.campaignManager=new d,setTimeout(function(){o.attributeSession()},0),n(),o}return n(r,t),r.prototype.identify=function(t){},r.prototype.page=function(t){},r.prototype.track=function(t){var r=this;t.event===e.sessionAttributionEventKey&&setTimeout(function(){r.trekkie.emit(e.sessionAttributionEventKey,t,e.sessionAttributionMonorailSchema)},0)},r.prototype.attributeSession=function(){var t=new Date,r=c.search(),n=this.campaignManager.constructCanonicalUtmString(r);if(this.timestampManager.isValid(t)&&this.campaignManager.isValid(n));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:n,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(n),prev_campaign_params:this.campaignManager.fetch(),last_extended:this.timestampManager.fetch(),local_now:o}})}this.timestampManager.extend(t.toJSON()),this.campaignManager.extend(n)},r}(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 r=this.fetch();if(!r)return!1;try{return t(new Date(r),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 r={},n=0,o=e.split("&");n<o.length;n++){var i=o[n],a=i.split("=");if(!(a.length<2)){var c=this.decodeReplacingPlus(a[0]),u=this.decodeReplacingPlus(a[1]);u&&c&&(r[c]=u)}}return t.acceptedQueryStringParams.filter(function(t){return r[t]}).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(r[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,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(4),i=r(24),a=function(t){function e(e,r,n){var o=t.call(this,{},e)||this;return o.initialize(n),o}return n(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,r=0,n=t;r<n.length;r++){var o=n[r],i="shopify_"+this.targetCountry(),a=i+"_"+o.productId+"_"+o.variantId;e.push(a)}return e},e.prototype.cartTotalValue=function(t){for(var e=0,r=0,n=t;r<n.length;r++){var o=n[r];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,r=0,n=e.eventLabels;r<n.length;r++){var o=n[r];if(o.type===t)return o.action_label}},e}(o.EcommerceIntegration);e.GoogleGtag=a},function(t,e,r){"use strict";function n(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=r(0);e.script=n,e.iframe=o}]);