diff --git a/DOCS.md b/DOCS.md index 6eb73370..83e2e514 100644 --- a/DOCS.md +++ b/DOCS.md @@ -12,7 +12,6 @@ Here are the APIs that Taplytics.js exposes: | [runningExperiments](#runningexperiments) | Taplytics running experiments | | [variable](#variable) | Taplytics variable | | [codeBlock](#codeblock) | Taplytics code block | -| [startNewSession](#startNewSession) | Taplytics startNewSession | If you haven't already, check out our guide on how to get started with our Javascript SDK [here](https://taplytics.com/docs/javascript-sdk). @@ -64,7 +63,6 @@ Taplytics.init("js-sdk-token", { log_level: 1 }); - ``` @@ -119,7 +117,6 @@ Taplytics.identify({ friends_Count: 800 }); - ``` @@ -174,8 +171,6 @@ Taplytics.track("Purchased", 180.50, { Taplytics.track("Finished Tutorial", { time_on_tutorial: 100 }); - - ``` @@ -236,7 +231,6 @@ Taplytics.page("Product Listings", "Shirts", { products_count: 150 }); - ``` @@ -262,7 +256,6 @@ Resets the user object and assumes the visitor is now anonymous. This can be use Taplytics.reset(); - ``` --- @@ -286,7 +279,6 @@ Taplytics.propertiesLoaded(function() { // properties have loaded }); - ``` --- @@ -314,7 +306,6 @@ Taplytics.runningExperiments(function(expAndVars) { //}; }); - ``` --- @@ -376,23 +367,4 @@ Taplytics.codeBlock("JS CodeBlock", function() { // run your code here }); - -``` - ---- - -### startNewSession - -Usage: `Taplytics.startNewSession()` - -Creates a new session for the user and fetches the new config data. - -##### Example - -```javascript - -Taplytics.setUserAttributes({user_id: 'new_user!'}) -Taplytics.startNewSession() - - ``` diff --git a/START.md b/START.md index c35c3f34..a227b8b8 100644 --- a/START.md +++ b/START.md @@ -7,10 +7,6 @@ To fully utilize the power of Taplytics.js, you simply have to: | 2 | [Identify Users](#2-identify-users) | | 3 | [Track Events](#3-track-events) | | 4 | [Track Page Views](#4-track-page-views) | -| 5 | [Experiments](#5-experiments) | -| 6 | [Opt-In/Out](#6-opt-inout) | -| 7 | [Adobe Analytics Integration](#7-adobe-analytics-integration) | -| 8 | [CNAME Aliasing](#8-cname-aliasing) | ## 1A Synchronous script loading @@ -231,41 +227,3 @@ function hasOptedOut() { Adobe Analytics by default uses `s.t()` and `s.tl()` for tracking page views and link clicks. By setting `track_adobe_analytics` variable to true in `Taplytics.init` function, We inject our tracking code into the definitions of these functions. So whenever `s.t()` or `s.tl()` is called on the page, It first sends those events to Taplytics before sending them to Adobe Analytics. By default, Taplytics assumes adobe analytics tracking variable to be `s`. If you use a custom variable, then make sure to provide that during taplytics initialization with `adobe_obj_name` variable. - -### 8. CNAME Aliasing - -To prevent adblocks from blocking requests to our api servers, you can setup a CNAME on your domain that points to our API domains: - -`https://api.taplytics.com` -`https://ping.taplytics.com` - -Once you have your CNAME setup, you can pass in as options to the sync script URL or as options in `Taplytics.init`. - -```javascript - -Taplytics.init("TOKEN", { - alias_host: { - api_host: 'https://api-alias.your-domain.com', - ping_host: 'https://ping-alias.your-domain.com' - } -}); - -``` - -```HTML - - - - -``` \ No newline at end of file diff --git a/taplytics.min.js b/taplytics.min.js index 8c86b5db..86366104 100644 --- a/taplytics.min.js +++ b/taplytics.min.js @@ -1,2 +1,2 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=30)}([function(t,e,r){"use strict";var n=0;function i(t){return void 0!==t&&n>=t}e.LOUD=3,e.DEBUG=2,e.LOG=1,e.USER=0,e.setPriorityLevel=function(t){n=t},e.log=function(t,e,r){i(r)&&(console.log("[Taplytics]",t),e&&console.dir(e))},e.time=function(t,r,n,o){if(i(o)){if(n)t=t+", time: "+((new Date).getTime()-n.getTime())+"ms";e.log(t,r,o)}},e.error=function(t,e,r){i(r)&&(console.error("[Taplytics]",t),e&&console.dir(e))}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(4),o=r(75),s=r(0),a=r(5),u=r(27),c=r(78),l=r(8),f=r(79),p=r(80),h=r(9),d=r(26),v="_tl_csid",m="_tl_duuid",y="_tl_suuid",g="_tl_uid",_="_tl_sid",b="_tl_auid",w="_tl_config",x=function(t,e){return t&&e?"tl_sopts_"+t+"_"+e:null};e.config=null,e.hasLoadedData=!1,e.sessionExpirationMin=30,e.start=function(t){return e.updateCookieSession().setDeviceUUID(t)},e.get=function(t,r){if(t){e.tick();var o=e.getCookieSessionID(),a=x(o,t);if(a){if(!(r&&JSON&&JSON.parse))return i.get(a);var u=i.get(a);if(u&&"object"===(void 0===u?"undefined":n(u)))return u;try{return JSON.parse(u)}catch(e){return s.error("Session.get("+t+") failed to parse JSON.",e,s.DEBUG),u}}}},e.tick=function(){return e.updateCookieSession(),e},e.set=function(t,r,n){if(!t||void 0===r||0===(""+r).length)return!1;e.tick();var i=e.getCookieSessionID(),o=x(i,t),s=E(),a=r;return!!o&&(n&&JSON&&JSON.stringify&&(a=JSON.stringify(r)),O(o,a,{expires:s}),!0)},e.unset=function(t){if(!t)return!1;e.tick();var r=e.getCookieSessionID(),n=x(r,t);i.expire(n)},e.updateCookieSession=function(){var t=e.getCookieSessionID();t||(t=o.v4(),e.deleteSessionID());var r=E();return O(v,t,{expires:r}),s.log("Set cookieSessionID to: "+t,{expires:r},s.LOUD),e},e.setDeviceUUID=function(t){return(t=t||e.getDeviceUUID())||(t=o.v4()),O(m,t,{expires:new Date(2147483647e3)}),s.log("Set deviceUUID to: "+t,null,s.DEBUG),e},e.setSessionID=function(t){return O(_,t,{expires:E()}),s.log("Set sessionID to: "+t,null,s.DEBUG),e},e.deleteSessionID=function(){return i.expire(_),e},e.setAppUserID=function(t){return O(b,t,{expires:E()}),s.log("Set appUserID to: "+t,null,s.DEBUG),e},e.deleteAppUserID=function(){return i.expire(b),e},e.deleteSessionUUID=function(){i.expire(y)},e.setUserID=function(t){if(u.userBucketing&&!t){var r="TL_Anon_"+d();s.log("setting anon id",r),i.set(g,r)}else t&&i.set(g,t);return e},e.resetUserID=function(){return u.userBucketing?e.setUserID(null):i.expire(g),e},e.setCachedConfig=function(t){return function(t,e,r,n){if(h())return;i.setJSON(t,e,r,n)}(w,{expVarsNamesHistory:t?t.expVarsNamesHistory:{},expVarsNames:t?t.expVarsNames:{},expVarsIds:t?t.expVarsIds:{},dynamicVars:t?t.dynamicVars:{}},null,!0),e},e.getDeviceUUID=function(){var t=i.get(y);if(t)return t;var r=i.get(m);return t===r&&e.deleteSessionUUID(),r},e.getCookieSessionID=function(){return i.get(v)},e.getAppUserID=function(){return i.get(b)},e.getOrCreateUserID=function(){var t=e.getUserID();return t||(e.setUserID(null),e.getUserID())},e.getUserID=function(){return i.get(g)},e.getSessionID=function(){return i.get(_)},e.getCachedConfig=function(){return i.getJSON(w,!0)},e.getSessionAttributes=function(t){t=t||{};var e=l.toObject(),r=c();return t.sid=this.getSessionID(),t.ad=this.getDeviceUUID(),t.adt="browser",t.ct="browser",t.lv=a().production?"0":"1",t.sdk=a().sdkVersion,t.rfr=r.referrer,t.ub=u.userBucketing,t.exm=r.search.utm_medium,t.exs=r.search.utm_source,t.exc=r.search.utm_campaign,t.ext=r.search.utm_term,t.exct=r.search.utm_content,t.prms={search:r.search,location:e},navigator&&navigator.userAgent&&(t.prms.userAgent=navigator.userAgent),t},e.saveSessionConfig=function(t,r){r&&!t&&(s.log("Using cached config because of server error",null,s.DEBUG),t=e.getCachedConfig()),e.config=t,D=!0,t&&t.app_user_id&&t.session_id&&(e.hasLoadedData=!0,e.setAppUserID(t.app_user_id),e.setSessionID(t.session_id),e.tick()),t&&e.setCachedConfig(t),p.applyVisualEditsFromConfig(t),S.completePromises(!!t),(r||t&&t.app_user_id&&t.session_id)&&k.completePromises(!!t)};var k=new f({name:"sessionConfigPromises"});e.sessionConfigPromise=function(t){if(t)return e.hasLoadedData&&e.config?t(!0):void k.push(t)};var D=!1,S=new f({name:"configPromises"});function O(t,e,r){h()||(r?i.set(t,e,r):i.set(t,e))}function E(){return function(t,e,r){var n=new Date(t);switch(e.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+r);break;case"quarter":n.setMonth(n.getMonth()+3*r);break;case"month":n.setMonth(n.getMonth()+r);break;case"week":n.setDate(n.getDate()+7*r);break;case"day":n.setDate(n.getDate()+r);break;case"hour":n.setTime(n.getTime()+36e5*r);break;case"minute":n.setTime(n.getTime()+6e4*r);break;case"second":n.setTime(n.getTime()+1e3*r);break;default:n=void 0}return n}(new Date,"minute",e.sessionExpirationMin)}e.configPromise=function(t){if(t)return D&&e.config?t(!0):void S.push(t)},e.resetSession=function(){e.deleteSessionID(),e.deleteAppUserID(),e.resetUserID(),e.config=null,e.hasLoadedData=!1}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.isEqual=e.includes=e.values=e.isObjectLike=e.debounce=e.isString=e.isNumber=void 0;var n=f(r(39)),i=f(r(40)),o=f(r(60)),s=f(r(61)),a=f(r(7)),u=f(r(65)),c=f(r(66)),l=f(r(67));function f(t){return t&&t.__esModule?t:{default:t}}e.isNumber=c.default,e.isString=u.default,e.debounce=l.default,e.isObjectLike=a.default,e.values=s.default,e.includes=o.default,e.isEqual=i.default,e.forEach=n.default},function(t,e,r){"use strict";var n=r(31),i=r(5),o=r(0),s=r(16),a=r(17),u=r(9),c=new s,l=!1;e.publicToken=null,e.setPublicToken=function(t){this.publicToken=t},e.get=p(function(t,r,i){if(u())return;var s=v(r),a=d(t);o.log("GET request: "+a,s,o.LOUD),n.get(a).query(s.query).timeout(e.timeout).end(f(a,i))}),e.getJSON=p(function(t,r){if(u())return;var s=function(t){return i().cdnAPI+(t||"")}(t);o.log("GET JSON file request: "+s,null,o.LOUD),n.get(s).timeout(e.timeout).end(f(s,r))}),e.post=p(function(t,e,r,i){if(u())return;var s=v(e,r),a=d(t);o.log("POST request: "+a,s,o.LOUD),n.post(a).query(s.query).set("Content-Type","application/json").send(s.payload).end(f(a,i))}),e.del=p(function(t,r,i,s){if(u())return;var a=v(r,i),c=d(t);o.log("DELETE request: "+c,a,o.LOUD),n.del(c).query(a.query).set("Content-Type","application/json").timeout(e.timeout).send(a.payload).end(f(c,s))});function f(t,e){return function(r,n){r&&o.error("Error: "+t,r,o.DEBUG),e&&"function"==typeof e&&e(r,n),h()}}function p(t){return function(){c.enqueue({requestFunction:t,args:arguments}),l||h()}}function h(){if(!c.isEmpty()){l=!0;var t=c.dequeue();return o.log("Processing request",t,o.DEBUG),t&&t.requestFunction&&t.requestFunction.apply(e,t.args)}l=!1}function d(t,e){var r=i(),n=r.eventsAPI,o=r.baseAPI;return("events"===t&&n?n:o)+(t||"")+function(t){return t?"?"+a.stringify(t):""}(e)}function v(t,r){var n={},i={};return t&&"function"==typeof t?n=t():t&&(n=t),r&&"function"==typeof r?i=r():r&&(i=r),n.r_v="0",e.publicToken&&(n.public_token=e.publicToken),{query:n,payload:i}}e.timeout=4e3,e.setTimeout=function(t){var r=1e3*t;r>3e4?(o.error("Timeout is larger then max timeout! timeout: "+t+"s, max timeout: 30s. Using max timeout value.",null,o.USER),e.timeout=3e4):r<1e3?(o.error("Timeout is smaller then the min timeout! timeout: "+t+"s, min timeout: 1s. Using min timeout value.",null,o.USER),e.timeout=1e3):(o.log("Set timeout: "+t+"s",null,o.LOUD),e.timeout=r)}},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(5),s=r(74),a=r(11).CookieJar,u=r(11).Cookie,c=r(11).CookieAccessInfo,l=r(12).OPT_OUT_KEY;s.supported()||(n.log("Local Storage not supported",null,n.DEBUG),s=null);var f={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};e.getJSON=function(t,r){var o=e.get(t,r);if(!o||!i.isString(o))return o;try{return JSON.parse(o)}catch(t){return n.error("JSON parse cookie value",t,n.DEBUG),null}},e.getLS=function(t){if(!s)return null;var e=s.get(t);return n.log("Got local storage key: "+t+" with value: "+e,null,n.LOUD),e},e.get=function(t,r){if(e.getCookieSupport()&&!r){var n=h(),o=new c(e.getCookieDomain()),a=n.getCookie(t,o);return a&&!i.includes(i.values(f),t)&&(a.value=function(t){try{return decodeURIComponent(atob(t))}catch(e){return t}}(a.value)),a?a.value:void 0}return s?e.getLS(t):r?e.get(t):void 0},e.setJSON=function(t,r,o,s){var a=void 0;try{a=i.isString(r)?r:JSON.stringify(r)}catch(t){n.error("JSON stringify cookie value",t,n.DEBUG)}e.set(t,a,o,s)},e.set=function(t,r,o,a){if(t)if(e.getCookieSupport()&&!a){r=r||"",o=o||{};var c=h(),l=function(t,r,n){i.includes(i.values(f),t)||(o=r,r=btoa(encodeURIComponent(o)));var o;var s=new u(t+"="+r);n&&(s.expiration_date=n);return s.domain=e.getCookieDomain(),s}(t,r,o.expires).toString();document.cookie=l,c.setCookie(l),n.log("Setting cookies to:",l,n.LOUD)}else s?e.setLS(t,r,o):a&&e.set(t,r,o)},e.setLS=function(t,e,r){if(s){var i=r&&r.expires?30:null;s.set(t,e,i),n.log("Setting local storage key: "+t+" to value: "+e,null,n.LOUD)}},e.expire=function(t,r){e.getCookieSupport()&&!r?e.set(t,"-",{expires:new Date}):s?(n.log("Deleting local storage key: "+t,null,n.LOUD),s.remove(t)):r&&e.expire(t)};var p=void 0;function h(){return p||(p=new a,function(){if(p&&document.cookie&&document.cookie.length)for(var t=document.cookie.split(";"),e=0;e=3&&r[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?"."+r[2]+"."+r[1]+"."+r[0]:r&&r.length>1?"."+r[1]+"."+r[0]:null},e.hasUserOptedOutTracking=function(){var t=e.getLS(l);return null===t?null!=s&&(s.set(l,!1,null),n.log("Setting local storage key: "+l+" to value: "+!1,null,n.LOUD),!1):t},e.getCookies=function(){var t=h(),r=new c(e.getCookieDomain());return t.getCookies(r)},e.removeAllCookies=function(){var t=h(),r=new c(e.getCookieDomain());t.getCookies(r).forEach(function(t){n.log("expiring tl session cookie "+t.name,t,n.DEBUG),e.expire(t.name,!1)}),Object.keys(f).forEach(function(t){e.expire(f[t],!1)})};var d=void 0;e.getCookieSupport=function(){if(void 0!==d)return d;var t=!0;do{var e="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=t?e+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():e,-1!==document.cookie.indexOf(e))return document.cookie=e+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),d=t,t}while(!(t=!t));return d=null,null}},function(t,e,r){"use strict";t.exports=function(){var t=r(13),e={cdnAPI:"https://cdn-config.taplytics.com/js/"};if("production"===t.env?(e.baseAPI="https://api.taplytics.com/public_api/v1/",e.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===t.env||"development"===t.env?e.baseAPI="https://dev.taplytics.com/public_api/v1/":"stag"===t.env||"staging"===t.env?e.baseAPI="https://staging.taplytics.com/public_api/v1/":"local"===t.env&&(e.baseAPI="http://localhost:3002/public_api/v1/"),t&&t.api&&t.api.config){var n=t.api.config,i=n.apiAlias,o=n.pingAlias;i&&(e.baseAPI=i+"/public_api/v1/"),o&&(e.eventsAPI=o+"/public_api/v1/")}return e.eventsFlushQueueTimeout=4e3,e.functionFlushQueueTimeout=500,e.sdkVersion="2.12.0",e.cookieDomain=t&&t.api&&t.api.config&&t.api.config.cookieDomain?t.api.config.cookieDomain:null,e.production="production"===t.env,e}},function(t,e,r){var n=r(46);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";var n={};function i(t){return n[t]?n[t]:"title"===t?document.title:document.location?document.location[t]:null}e.toObject=function(){return{href:i("href"),hash:i("hash"),search:i("search"),host:i("host"),protocol:i("protocol"),pathname:i("pathname"),title:i("title")}},e.attr=function(t){return i(t)},e.listen=function(t){}},function(t,e,r){"use strict";var n=r(4);t.exports=function(){return n.hasUserOptedOutTracking()}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){!function(){"use strict";function t(e,r,n,i){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new t(e,r,n,i)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var t,e;return this instanceof i?(t=Object.create(null),this.setCookie=function(n,i,o){var s,a;if(s=(n=new r(n,i,o)).expiration_date<=Date.now(),void 0!==t[n.name]){for(e=t[n.name],a=0;a0?t[0]:void 0}}},function(t,e,r){"use strict";var n=r(37),i=r(38),o=r(19);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.arrayToObject=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},e.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n>>((3&e)<<3)&255;return i}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,r){var n=r(24),i=r(25);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||i(s)}},function(t,e,r){"use strict";var n=r(3),i=r(0),o=r(1),s=r(28),a=r(2);function u(t){if(!t||!t.winning_variation)return null;if("baseline"===t.winning_variation)return"b";var e=!0,r=!1,n=void 0;try{for(var i,o=t.variations[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;if(s&&t.winning_variation===s._id)return s}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}return null}function c(t){if(0===t.variations.length)return"baseline";var e=Math.random(),r=a.isNumber(t.baseline.distributionPercent)?t.baseline.distributionPercent:0;if(r&&e0){i.log("flushAppQueue: "+t.length,t,i.LOUD);for(var r=0;r=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||l.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=l.serialize["application/json"]),o&&(r=o(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&e.setRequestHeader(s,this.header[s]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){u.prototype[t.toLowerCase()]=function(e,r){var n=new l.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),u.prototype.del=u.prototype.delete,l.get=function(t,e,r){var n=l("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.head=function(t,e,r){var n=l("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.options=function(t,e,r){var n=l("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.del=g,l.delete=g,l.patch=function(t,e,r){var n=l("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.post=function(t,e,r){var n=l("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.put=function(t,e,r){var n=l("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~o.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){r.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(t)){for(var r in t)this.field(r,t[r]);return this}if(Array.isArray(e)){for(var i in e)this.field(t,e[i]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},i.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},i.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&n(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e,r){"use strict";var n=r(35);function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=n.type(e);var r=n.params(e);for(var i in r)this[i]=r[i];this.links={};try{t.link&&(this.links=n.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t}},function(t,e,r){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var r=e.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(t[n]=i),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){r.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),r.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},t.exports=r},function(t,e,r){"use strict";var n=r(18),i=r(19),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Date.prototype.toISOString,a={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,r,i,o,s,u,c,l,f,p,h,d){var v=e;if("function"==typeof c)v=c(r,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return u&&!d?u(r,a.encoder):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return u?[h(d?r:u(r,a.encoder))+"="+h(u(v,a.encoder))]:[h(r)+"="+h(String(v))];var m,y=[];if(void 0===v)return y;if(Array.isArray(c))m=c;else{var g=Object.keys(v);m=l?g.sort(l):g}for(var _=0;_0?E+O:""}},function(t,e,r){"use strict";var n=r(18),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(n),a=s?n.slice(0,s.index):n,u=[];if(a){if(!r.plainObjects&&i.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var c=0;null!==(s=o.exec(n))&&c=0;--i){var o,s=t[i];if("[]"===s)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=n:o[a]=n}n=o}return n}(u,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"==typeof r.depth?r.depth:o.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===1/0?void 0:e.parameterLimit,a=n.split(e.delimiter,s),u=0;u-1}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(51),i=r(52),o=r(53),s=1,a=2;t.exports=function(t,e,r,u,c,l){var f=r&s,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var v=-1,m=!0,y=r&a?new n:void 0;for(l.set(t,e),l.set(e,t);++v-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(56),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,s,a,u){var c=r&i,l=n(t),f=l.length;if(f!=n(e).length&&!c)return!1;for(var p=f;p--;){var h=l[p];if(!(c?h in e:o.call(e,h)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var v=!0;u.set(t,e),u.set(e,t);for(var m=c;++p-1}},function(t,e,r){var n=r(62),i=r(64);t.exports=function(t){return null==t?[]:n(t,i(t))}},function(t,e,r){var n=r(63);t.exports=function(t,e){return n(e,function(e){return t[e]})}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r=e||r<0||y&&t-v>=f}function w(){var t=i();if(b(t))return x(t);h=setTimeout(w,function(t){var r=e-(t-d);return y?u(r,f-(t-v)):r}(t))}function x(t){return h=void 0,g&&c?_(t):(c=l=void 0,p)}function k(){var t=i(),r=b(t);if(c=arguments,l=this,d=t,r){if(void 0===h)return function(t){return v=t,h=setTimeout(w,e),m?_(t):p}(d);if(y)return h=setTimeout(w,e),_(d)}return void 0===h&&(h=setTimeout(w,e)),p}return e=o(e)||0,n(r)&&(m=!!r.leading,f=(y="maxWait"in r)?a(o(r.maxWait)||0,e):f,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=d=l=h=void 0},k.flush=function(){return void 0===h?p:x(i())},k}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(70);t.exports=function(){return n.Date.now()}},function(t,e,r){var n=r(71),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(72))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t}},function(t,e){var r,n;r=this,n=function(){var t,e,r="lscache-",n="-cacheexpiration",i=10,o=6e4,s=Math.floor(864e13/o),a="",u=!1;function c(){var e="__lscachetest__";if(void 0!==t)return t;try{if(!localStorage)return!1}catch(t){return!1}try{v(e,"__lscachetest__"),m(e),t=!0}catch(e){t=!(!l(e)||!localStorage.length)}return t}function l(t){return!!(t&&"QUOTA_EXCEEDED_ERR"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||"QuotaExceededError"===t.name)}function f(){return void 0===e&&(e=null!=window.JSON),e}function p(t){return t+n}function h(){return Math.floor((new Date).getTime()/o)}function d(t){return localStorage.getItem(r+a+t)}function v(t,e){localStorage.removeItem(r+a+t),localStorage.setItem(r+a+t,e)}function m(t){localStorage.removeItem(r+a+t)}function y(t){for(var e=new RegExp("^"+r+a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),i=localStorage.length-1;i>=0;--i){var o=localStorage.key(i);(o=(o=o&&o.match(e))&&o[1])&&o.indexOf(n)<0&&t(o,p(o))}}function g(t){var e=p(t);m(t),m(e)}function _(t){var e=p(t),r=d(e);if(r){var n=parseInt(r,i);if(h()>=n)return m(t),m(e),!0}}function b(t,e){u&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e&&window.console.warn("lscache - The error was: "+e.message))}return{set:function(t,e,r){if(c()){if("string"!=typeof e){if(!f())return;try{e=JSON.stringify(e)}catch(t){return}}try{v(t,e)}catch(r){if(!l(r))return void b("Could not add item with key '"+t+"'",r);var n,o=[];y(function(t,e){var r=d(e);r=r?parseInt(r,i):s,o.push({key:t,size:(d(t)||"").length,expiration:r})}),o.sort(function(t,e){return e.expiration-t.expiration});for(var a=(e||"").length;o.length&&a>0;)n=o.pop(),b("Cache is full, removing item with key '"+t+"'"),g(n.key),a-=n.size;try{v(t,e)}catch(e){return void b("Could not add item with key '"+t+"', perhaps it's too big?",e)}}r?v(p(t),(h()+r).toString(i)):m(p(t))}},get:function(t){if(!c())return null;if(_(t))return null;var e=d(t);if(!e||!f())return e;try{return JSON.parse(e)}catch(t){return e}},remove:function(t){c()&&g(t)},supported:function(){return c()},flush:function(){c()&&y(function(t){g(t)})},flushExpired:function(){c()&&y(function(t){_(t)})},setBucket:function(t){a=t},resetBucket:function(){a=""},enableWarnings:function(t){u=t}}},void 0!==t&&t.exports?t.exports=n():r.lscache=n()},function(t,e,r){var n=r(76),i=r(26),o=i;o.v1=n,o.v4=i,t.exports=o},function(t,e,r){var n,i,o=r(24),s=r(25),a=0,u=0;t.exports=function(t,e,r){var c=e&&r||0,l=e||[],f=(t=t||{}).node||n,p=void 0!==t.clockseq?t.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==t.msecs?t.msecs:(new Date).getTime(),v=void 0!==t.nsecs?t.nsecs:u+1,m=d-a+(v-u)/1e4;if(m<0&&void 0===t.clockseq&&(p=p+1&16383),(m<0||d>a)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=v,i=p;var y=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var _=0;_<6;++_)l[c+_]=f[_];return e||s(l)}},function(t,e,r){"use strict";t.exports=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}},function(t,e,r){"use strict";var n=r(17);t.exports=function(){var t={},e=null;return location&&location.search&&location.search.length&&(t=n.parse(location.search.substr(1))),document&&document.referrer&&(e=document.referrer),{referrer:e,search:t}}},function(t,e,r){"use strict";var n=r(0),i=r(3);function o(t){this.promises=[],this.name=t?t.name:null}o.prototype.push=function(t){var e=!1,r=this;function o(r){e||t&&(e=!0,t(r))}this.promises.push(o),setTimeout(function(){e||(n.log(r.name+" promise timed out",null,n.LOG),o())},i.timeout)},o.prototype.completePromises=function(t){var e=!0,r=!1,n=void 0;try{for(var i,o=this.promises[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;s&&s(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this.promises=[]},t.exports=o},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(1),s=r(81),a=r(82),u=void 0,c=setInterval(function(){document.body&&(l(),clearInterval(c),c=null)},1);function l(){if("undefined"!=typeof MutationObserver&&!u&&document.body){i.log("start DOM Observer",null,i.DEBUG);var t=function(){i.log("DOM mutation observed",null,i.DEBUG),e.applyVisualEditsFromConfig(o.config)};(u=new MutationObserver(n.debounce(t,50,{leading:!0}))).observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeFilter:[],characterDataOldValue:!1,attributeOldValue:!1}),t()}}e.applyVisualEditsFromConfig=function(t){if(t&&t.webModifications&&t.webElements){l(),i.log("Apply visual edits from config",null,i.DEBUG);var e=s.buildUrlFromLocation(window.location);t.webModifications.forEach(function(r){if(r){var n=t.webElements.find(function(t){return t._id===r._element});if(!n)return i.error("No web element found for _id: "+r._element+", modification: "+r._id,null,i.DEBUG);t.urlRules&&s.matchUrlRules(t.urlRules,e)?a.applyModificationsToDOM({element:n,modification:r}):(n.hostnameMatch||s.matchUrlsByPath(n.url,e))&&a.applyModificationsToDOM({element:n,modification:r})}})}}},function(t,e,r){"use strict";var n=r(2);e.buildUrlFromLocation=function(t){return t&&t.origin?t.origin+(t.pathname?t.pathname:""):null},e.matchUrlsByPath=function(t,r){var n=e.getLocationFromUrl(t),i=e.getLocationFromUrl(r);return n&&i&&n.origin.length&&i.origin.length?n.pathname===i.pathname:(t=t.replace(/^(http(s?):\/\/)?((www\.)?)((.*\/)?)/,""))===(r=r.replace(/^(http(s?):\/\/)?((www\.)?)((.*\/)?)/,""))},e.matchUrlsByDomain=function(t,e){return t=t.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],e=e.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],t=t.split(".").slice(-2),e=e.split(".").slice(-2),n.isEqual(t,e)},e.getLocationFromUrl=function(t){var e=document.createElement("a");return e.href=t,e.origin.length?{origin:e.origin,hostname:e.hostname,pathname:e.pathname,href:e.href}:null},e.matchUrlRules=function(t,e){if(!t||!t.length||!e)return!1;var r=!1;return n.forEach(t,function(t){var n=t.comparator,i=t.value;if("is"===n)r=e===i;else if("is not"===n)r=e!==i;else if("contains"===n)r=e.includes(i);else if("does not contain"===n)r=!e.includes(i);else if("Matches Regex"===n){var o=new RegExp(i);r=o.test(e)}if(r)return!1}),r}},function(module,exports,__webpack_require__){"use strict";var log=__webpack_require__(0);exports.applyModificationsToDOM=function(_ref){var element=_ref.element,modification=_ref.modification;if(element&&modification){var htmlElements=exports.findElementsBySelector(element.selector),htmlElement=htmlElements&&htmlElements.length?htmlElements[0]:null;if(htmlElement){log.log("Apply modification for web element: "+htmlElement._id+", modification: "+modification._id,null,log.LOUD);var _modification$attribu=modification.attributes,outerHTML=_modification$attribu.outerHTML,script=_modification$attribu.script;if(outerHTML&&htmlElement.outerHTML!==outerHTML&&(htmlElement.outerHTML=outerHTML),script)try{eval(script)}catch(t){log.error("Error on modification script for web element: "+htmlElement._id+", modification: "+modification._id,t,log.DEBUG)}}}},exports.findElementsBySelector=function(t){return document.querySelectorAll(t)}},function(t,e,r){"use strict";var n=r(0),i=(r(8),r(1)),o=r(4),s=r(84),a=r(2),u=!0;t.exports=function(t,e){if(function(t){if(!t||"string"!=typeof t)return!1;return!!t.length}(t)){if(this.env="production",e){this.api.config.startOptions=e,a.isNumber(e.log_level)&&n.setPriorityLevel(e.log_level);try{if(e.alias_host){var r=a.isString(e.alias_host)?JSON.parse(e.alias_host):e.alias_host,c=r.api_host,l=r.ping_host;c&&(this.api.config.apiAlias=c),l&&(this.api.config.pingAlias=l)}}catch(t){n.error("Error trying to convert alias host to JSON",t)}!1===e.auto_page_view&&(u=!1),e.env&&(this.env=e.env),e.test_experiments&&(i.test_experiments=e.test_experiments),e.fast_mode&&(this.api.config.fastMode=e.fast_mode),e.cookie_domain&&(this.api.config.cookieDomain=e.cookie_domain),e.user_bucketing&&(this.api.config.userBucketing=e.user_bucketing),a.isNumber(e.timeout)&&this.api.request.setTimeout(e.timeout),e.anon_user&&!i.getUserID()&&i.setUserID(e.anon_user),e.track_adobe_analytics&&s(e.adobe_obj_name,this.api.events.trackAdobeAnalyticsEvents)}this._in={},this._in.token=t,this._in.logger=n,this._in.cookies=o,this.api.init(this);var f=e&&e.config?e.config:void 0,p=f?f.ad:void 0;i.start(p);var h=null;try{a.isString(e.user_attributes)?h=e&&e.user_attributes&&JSON.parse(e.user_attributes):a.isObjectLike(e.user_attributes)&&(h=e.user_attributes)}catch(t){n.error("Error trying to convert user attributes to JSON",t)}return this.api.config.get({dynamicConfig:f,user_attributes:h}),u&&this.page&&this.page(),this.api.events.scheduleTick(),this.api.events.watchLifecycleEvents(),this}n.error("An SDK token is required.",null,n.USER)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){return{name:t.split("=")[0],value:t.split("=")[1]||null}},o=function(t){return t.events&&"None"!==t.events?t.events.split(",").map(i):[]},s=function(t){var e={};return function(t){return Object.keys(t).filter(function(e){return"function"!=typeof t[e]&&"object"!==n(t[e])&&"events"!==e&&"linkTrackEvents"!==e})}(t).forEach(function(r){e[r]=t[r]}),e},a=0,u=function t(e,r){var n=e?window[e]:window.s;a<50&&void 0!==n?(function(t,e){var r=t.t,n=t.tl;t.t=function(){return o(t).forEach(function(r){e(r.name,r.value,s(t))}),r.bind(t)()},t.tl=function(r,i,a,u,c){return o(t).forEach(function(r){var n=Object.assign({},s(t),{linkType:i,linkName:a});t.linkTrackEvents&&t.linkTrackEvents.includes(r.name)&&e(r.name,r.value,n)}),n.bind(t)(r,i,a,u,c)}}(n,r),function(t,e){o(t).forEach(function(r){e(r.name,r.value,s(t))})}(n,r)):(a+=1,setTimeout(function(){t(e,r)},200))};t.exports=function(t,e){u(t,e)}},function(t,e,r){"use strict";r(14);t.exports=function(){return!(!this._in||!this._in.token)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(1);t.exports=function(t){if(!this.isReady())return i.error("Taplytics::identify: you have to call Taplytics.init first.",null,i.USER),this;if(!function(t){return!(!t||t&&"object"!==(void 0===t?"undefined":n(t)))}(t))return i.error("Taplytics::identify: you have to pass in an object with user attributes.",null,i.USER),this;var e=function(t){var e={customData:{}},r=!0,n=!1,i=void 0;try{for(var u,c=Object.keys(t)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=u.value,f=t[l],p=s[l];p?(a.includes(p)&&o.setUserID(f),e[p]=f):e.customData[l]=f}}catch(t){n=!0,i=t}finally{try{!r&&c.return&&c.return()}finally{if(n)throw i}}return e}(t);return this.api.users.post(e,"Taplytics::identify: failed to save the user attributes properly."),this};var s={user_id:"user_id",id:"user_id",userID:"user_id",userId:"user_id",customer_id:"user_id",member_id:"user_id",email:"email",email_address:"email",name:"name",fullName:"name",full_name:"name",firstName:"firstName",first_name:"firstName",lastName:"lastName",last_name:"lastName",avatar:"avatarUrl",avatarUrl:"avatarUrl",avatar_url:"avatarUrl",age:"age",gender:"gender"},a=["user_id","userID","userId"]},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(2);t.exports=function(t,e,r){if(!this.isReady())return n.error("track: you have to call Taplytics.init first.",null,n.USER),!1;if(!t)return n.error("track: you have to specify an event name.",null,n.USER),!1;var s=e,a=r;return o.isObjectLike(e)&&!r&&(s=void 0,a=e),s&&!o.isNumber(s)?(n.error("track: if you're passing a value, it has to be a number.",null,n.USER),!1):(i.tick(),this.api.events.goalAchieved(t,s,a),this)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(8),s=r(1),a={previous_page_href:"p_p_l_h",previous_page_title:"p_p_l_t",previous_page_location:"p_p_l",previous_page_name:"p_p_n",previous_page_category:"p_p_c",previous_page_view_date:"p_p_v_d"};t.exports=function(t,e,r){if(!this.isReady())return i.error("track: you have to call Taplytics.init first.",null,i.USER),this;var u=t,c=e,l=r;if("object"!==(void 0===e?"undefined":n(e))||r?t&&!e&&(u=void 0,c=t):(u=void 0,c=t,l=e),s.tick(),s.get(a.previous_page_href)){var f=function(){var t=s.get(a.previous_page_view_date);t&&(t=new Date(t));return{category:s.get(a.previous_page_category),name:s.get(a.previous_page_name),href:s.get(a.previous_page_href),title:s.get(a.previous_page_title),location:s.get(a.previous_page_location,JSON&&JSON.parse),view_date:t}}();this.api.events.pageClose(f.category,f.name,f.href,f.title,f.location),this.api.events.timeOnPage(f.category,f.name,f.href,f.title,f.location,f.view_date),s.unset(a.previous_page_category),s.unset(a.previous_page_name),s.unset(a.previous_page_href),s.unset(a.previous_page_title),s.unset(a.previous_page_location),s.unset(a.previous_page_view_date)}return this.api.events.pageView(u,c,l),function(t,e){s.set(a.previous_page_category,t),s.set(a.previous_page_name,e),s.set(a.previous_page_href,o.attr("href")),s.set(a.previous_page_title,o.attr("title")),s.set(a.previous_page_location,o.toObject(),JSON&&JSON.stringify),s.set(a.previous_page_view_date,(new Date).toISOString())}(u,c),this}},function(t,e,r){"use strict";var n=r(0),i=r(1);t.exports=function(){return this.isReady()?(i.tick(),this.api.users.del(),i.resetSession(),this.api.config.get({}),this):(n.error("Taplytics::reset: you have to call Taplytics.init first.",null,n.USER),!1)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n.configPromise(t)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n.configPromise(function(){var e=n.config&&n.config.expVarsNames?n.config.expVarsNames:{};return t&&t(e)})}},function(t,e,r){"use strict";r(1);var n=r(93);t.exports=function(t,e,r){var i=new n(t,e,r);return i&&i.init?i:null}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(1),s=r(29);function a(t,e,r){return this.init=!1,t?(this.name=t,this.defaultValue=e,this.value=e,this.updatedBlock=r,this.defaultType=this.getValueType(e),this.defaultType?(this.init=!0,void this.getValueFromConfig()):i.log("Error: Taplytics variables only support Strings, Numbers, and Booleans.",null,i.USER)):i.log("Error: Taplytics variable is missing a name",null,i.USER)}a.prototype.getValueType=function(t){return"string"==typeof t?"String":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"object"===(void 0===t?"undefined":n(t))?"JSON":null},a.prototype.stringifyValue=function(t){return"JSON"===this.defaultType?JSON.stringify(t):t},a.prototype.parseValue=function(t){if("JSON"===this.defaultType){if("object"===(void 0===t?"undefined":n(t)))return t;try{return JSON.parse(t)}catch(e){i.log("Error parsing JSON variable",t,i.LOG)}return null}return t},a.prototype.getValueFromConfig=function(){var t=this;function e(){t.updatedBlock&&t.updatedBlock(t.value)}o.configPromise(function(){var r=o.config,n=r&&r.dynamicVars?r.dynamicVars[t.name]:null;if(n){if(n.variableType!==t.defaultType)return e(),i.error("Taplytics variable "+t.name+" default type does not match server: "+n.variableType,null,i.LOG);t.value=t.parseValue(n.value)}else r&&(i.log("New Taplytics Variable: "+t.name,null,i.DEBUG),s.post(t));e()})},t.exports=a},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(29);t.exports=function(t,e){if(!t)return n.error("No name to run code block",null,n.USER);i.configPromise(function(){var r=i.config;if(r){var s=r.dynamicVars?r.dynamicVars[t]:null;if(s){if("Code Block"!==s.variableType)return n.error("Taplytics code block "+t+" default type does not match server: "+s.variableType,null,n.LOG);e&&s.value&&e()}else n.log("New Taplytics Code Block: "+t,null,n.DEBUG),o.post({name:t,defaultType:"Code Block",defaultValue:!1})}})}},function(t,e,r){"use strict";var n=r(0),i=r(1);t.exports=function(t){if(!t)return n.error("No key to return feature flag enabled",null,n.USER),!1;var e=i.config;if(!e||!e.ff)return!1;var r=e.ff[t];return r&&r.enabled}},function(t,e,r){"use strict";var n=r(1),i=r(2);t.exports=function(t){n.configPromise(function(){var e=n.config&&n.config.ff?n.config.ff:{},r={};return i.values(e).forEach(function(t){t.enabled&&(r[t.key]=t.name)}),t&&t(r)})}},function(t,e,r){"use strict";r(0);var n=r(4),i=r(12).OPT_OUT_KEY;t.exports=function(){return n.setLS(i,!0),n.removeAllCookies(),this}},function(t,e,r){"use strict";var n=r(4),i=r(12).OPT_OUT_KEY;t.exports=function(){return n.hasUserOptedOutTracking()&&(n.setLS(i,!1),this.init(this._in.token,this.api.config.startOptions)),this}},function(t,e,r){"use strict";var n=r(0),i=r(1);t.exports=function(){return this.isReady()?(i.tick(),i.resetSession(),this.api.config.get({}),this):(n.error("Taplytics::startNewSession: you have to call Taplytics.init first.",null,n.USER),this)}}]); +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}([function(e,t){var n=0;function r(e){return void 0!==e&&n>=e}t.LOUD=3,t.DEBUG=2,t.LOG=1,t.USER=0,t.setPriorityLevel=function(e){n=e},t.log=function(e,t,n){r(n)&&(console.log("[Taplytics]",e),t&&console.dir(t))},t.time=function(e,n,i,o){if(r(o)){if(i)e=e+", time: "+((new Date).getTime()-i.getTime())+"ms";t.log(e,n,o)}},t.error=function(e,t,n){r(n)&&(console.error("[Taplytics]",e),t&&console.dir(t))}},function(e,t,n){var r=n(4),i=n(75),o=n(0),s=n(5),a=n(27),u=n(78),c=n(8),l=n(79),f=n(80),p=n(10),h=n(26),d="_tl_csid",v="_tl_duuid",m="_tl_suuid",g="_tl_uid",y="_tl_sid",_="_tl_auid",b="_tl_config",w=function(e,t){return e&&t?`tl_sopts_${e}_${t}`:null};t.config=null,t.hasLoadedData=!1,t.sessionExpirationMin=30,t.start=function(e){return t.updateCookieSession().setDeviceUUID(e)},t.get=function(e,n){if(e){t.tick();var i=t.getCookieSessionID(),s=w(i,e);if(s){if(!(n&&JSON&&JSON.parse))return r.get(s);var a=r.get(s);if(a&&"object"==typeof a)return a;try{return JSON.parse(a)}catch(t){return o.error("Session.get("+e+") failed to parse JSON.",t,o.DEBUG),a}}}},t.tick=function(){return t.updateCookieSession(),t},t.set=function(e,n,r){if(!e||void 0===n||0===(""+n).length)return!1;t.tick();var i=t.getCookieSessionID(),o=w(i,e),s=E(),a=n;return!!o&&(r&&JSON&&JSON.stringify&&(a=JSON.stringify(n)),O(o,a,{expires:s}),!0)},t.unset=function(e){if(!e)return!1;t.tick();var n=t.getCookieSessionID(),i=w(n,e);r.expire(i)},t.updateCookieSession=function(){var e=t.getCookieSessionID();e||(e=i.v4(),t.deleteSessionID());var n=E();return O(d,e,{expires:n}),o.log("Set cookieSessionID to: "+e,{expires:n},o.LOUD),t},t.setDeviceUUID=function(e){return(e=e||t.getDeviceUUID())||(e=i.v4()),O(v,e,{expires:new Date(2147483647e3)}),o.log("Set deviceUUID to: "+e,null,o.DEBUG),t},t.setSessionID=function(e){return O(y,e,{expires:E()}),o.log("Set sessionID to: "+e,null,o.DEBUG),t},t.deleteSessionID=function(){return r.expire(y),t},t.setAppUserID=function(e){return O(_,e,{expires:E()}),o.log("Set appUserID to: "+e,null,o.DEBUG),t},t.deleteAppUserID=function(){return r.expire(_),t},t.deleteSessionUUID=function(){r.expire(m)},t.setUserID=function(e){if(a.userBucketing&&!e){var n="TL_Anon_"+h();o.log("setting anon id",n),r.set(g,n)}else e&&r.set(g,e);return t},t.resetUserID=function(){return a.userBucketing?t.setUserID(null):r.expire(g),t},t.setCachedConfig=function(e){return function(e,t,n,i){if(p())return;r.setJSON(e,t,n,i)}(b,{expVarsNamesHistory:e?e.expVarsNamesHistory:{},expVarsNames:e?e.expVarsNames:{},expVarsIds:e?e.expVarsIds:{},dynamicVars:e?e.dynamicVars:{}},null,!0),t},t.getDeviceUUID=function(){var e=r.get(m);if(e)return e;var n=r.get(v);return e===n&&t.deleteSessionUUID(),n},t.getCookieSessionID=function(){return r.get(d)},t.getAppUserID=function(){return r.get(_)},t.getOrCreateUserID=function(){var e=t.getUserID();return e||(t.setUserID(null),t.getUserID())},t.getUserID=function(){return r.get(g)},t.getSessionID=function(){return r.get(y)},t.getCachedConfig=function(){return r.getJSON(b,!0)},t.getSessionAttributes=function(e){e=e||{};var t=c.toObject(),n=u();return e.sid=this.getSessionID(),e.ad=this.getDeviceUUID(),e.adt="browser",e.ct="browser",e.lv=s().production?"0":"1",e.sdk=s().sdkVersion,e.rfr=n.referrer,e.ub=a.userBucketing,e.exm=n.search.utm_medium,e.exs=n.search.utm_source,e.exc=n.search.utm_campaign,e.ext=n.search.utm_term,e.exct=n.search.utm_content,e.prms={search:n.search,location:t},navigator&&navigator.userAgent&&(e.prms.userAgent=navigator.userAgent),e},t.saveSessionConfig=function(e,n){n&&!e&&(o.log("Using cached config because of server error",null,o.DEBUG),e=t.getCachedConfig()),t.config=e,k=!0,e&&e.app_user_id&&e.session_id&&(t.hasLoadedData=!0,t.setAppUserID(e.app_user_id),t.setSessionID(e.session_id),t.tick()),e&&t.setCachedConfig(e),f.applyVisualEditsFromConfig(e),D.completePromises(!!e),(n||e&&e.app_user_id&&e.session_id)&&x.completePromises(!!e)};var x=new l({name:"sessionConfigPromises"});t.sessionConfigPromise=function(e){if(e)return t.hasLoadedData&&t.config?e(!0):void x.push(e)};var k=!1,D=new l({name:"configPromises"});function O(e,t,n){p()||(n?r.set(e,t,n):r.set(e,t))}function E(){return function(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r}(new Date,"minute",t.sessionExpirationMin)}t.configPromise=function(e){if(e)return k&&t.config?e(!0):void D.push(e)},t.resetSession=function(){t.deleteSessionID(),t.deleteAppUserID(),t.resetUserID(),t.config=null,t.hasLoadedData=!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"isNumber",(function(){return _})),n.d(t,"isString",(function(){return b})),n.d(t,"debounce",(function(){return w})),n.d(t,"isObjectLike",(function(){return x})),n.d(t,"values",(function(){return k})),n.d(t,"includes",(function(){return D})),n.d(t,"isEqual",(function(){return O})),n.d(t,"forEach",(function(){return E}));var r=n(30),i=n.n(r),o=n(31),s=n.n(o),a=n(32),u=n.n(a),c=n(33),l=n.n(c),f=n(6),p=n.n(f),h=n(34),d=n.n(h),v=n(35),m=n.n(v),g=n(36),y=n.n(g),_=m.a,b=d.a,w=y.a,x=p.a,k=l.a,D=u.a,O=s.a,E=i.a},function(e,t,n){var r=n(38),i=n(5),o=n(0),s=n(17),a=n(18),u=n(10),c=new s,l=!1;t.publicToken=null,t.setPublicToken=function(e){this.publicToken=e},t.get=p((function(e,n,i){if(u())return;var s=v(n),a=d(e);o.log(`GET request: ${a}`,s,o.LOUD),r.get(a).query(s.query).timeout(t.timeout).end(f(a,i))})),t.getJSON=p((function(e,n){if(u())return;var s=function(e){return i().cdnAPI+(e||"")}(e);o.log(`GET JSON file request: ${s}`,null,o.LOUD),r.get(s).timeout(t.timeout).end(f(s,n))})),t.post=p((function(e,t,n,i){if(u())return;var s=v(t,n),a=d(e);o.log(`POST request: ${a}`,s,o.LOUD),r.post(a).query(s.query).set("Content-Type","application/json").send(s.payload).end(f(a,i))})),t.del=p((function(e,n,i,s){if(u())return;var a=v(n,i),c=d(e);o.log(`DELETE request: ${c}`,a,o.LOUD),r.del(c).query(a.query).set("Content-Type","application/json").timeout(t.timeout).send(a.payload).end(f(c,s))}));function f(e,t){return function(n,r){n&&o.error(`Error: ${e}`,n,o.DEBUG),t&&"function"==typeof t&&t(n,r),h()}}function p(e){return function(){c.enqueue({requestFunction:e,args:arguments}),l||h()}}function h(){if(!c.isEmpty()){l=!0;var e=c.dequeue();return o.log("Processing request",e,o.DEBUG),e&&e.requestFunction&&e.requestFunction.apply(t,e.args)}l=!1}function d(e,t){var n=i(),r=n.eventsAPI,o=n.baseAPI;return("events"===e&&r?r:o)+(e||"")+function(e){return e?`?${a.stringify(e)}`:""}(t)}function v(e,n){var r={},i={};return e&&"function"==typeof e?r=e():e&&(r=e),n&&"function"==typeof n?i=n():n&&(i=n),r.r_v="0",t.publicToken&&(r.public_token=t.publicToken),{query:r,payload:i}}t.timeout=4e3,t.setTimeout=function(e){var n=1e3*e;n>3e4?(o.error(`Timeout is larger then max timeout! timeout: ${e}s, max timeout: 30s. Using max timeout value.`,null,o.USER),t.timeout=3e4):n<1e3?(o.error(`Timeout is smaller then the min timeout! timeout: ${e}s, min timeout: 1s. Using min timeout value.`,null,o.USER),t.timeout=1e3):(o.log(`Set timeout: ${e}s`,null,o.LOUD),t.timeout=n)}},function(e,t,n){var r=n(0),i=n(2),o=n(5),s=n(74),a=n(12).CookieJar,u=n(12).Cookie,c=n(12).CookieAccessInfo,l=n(13).OPT_OUT_KEY;s.supported()||(r.log("Local Storage not supported",null,r.DEBUG),s=null);var f,p={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};function h(){return f||(f=new a,function(){if(f&&document.cookie&&document.cookie.length)for(var e=document.cookie.split(";"),t=0;t=3&&n[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?`.${n[2]}.${n[1]}.${n[0]}`:n&&n.length>1?`.${n[1]}.${n[0]}`:null},t.hasUserOptedOutTracking=function(){var e=t.getLS(l);return null===e?null!=s&&(s.set(l,!1,null),r.log(`Setting local storage key: ${l} to value: false`,null,r.LOUD),!1):e},t.getCookies=function(){var e=h(),n=new c(t.getCookieDomain());return e.getCookies(n)},t.removeAllCookies=function(){var e=h(),n=new c(t.getCookieDomain());e.getCookies(n).forEach((function(e){r.log(`expiring tl session cookie ${e.name}`,e,r.DEBUG),t.expire(e.name,!1)})),Object.keys(p).forEach((function(e){t.expire(p[e],!1)}))};var d=void 0;t.getCookieSupport=function(){if(void 0!==d)return d;var e=!0;do{var t="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=e?t+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():t,-1!==document.cookie.indexOf(t))return document.cookie=t+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),d=e,e}while(!(e=!e));return d=null,null}},function(e,t,n){e.exports=function(){var e=n(14),t={cdnAPI:"https://cdn-config.taplytics.com/js/"};if("production"===e.env?(t.baseAPI="https://api.taplytics.com/public_api/v1/",t.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===e.env||"development"===e.env?t.baseAPI="https://dev.taplytics.com/public_api/v1/":"stag"===e.env||"staging"===e.env?t.baseAPI="https://staging.taplytics.com/public_api/v1/":"local"===e.env&&(t.baseAPI="http://localhost:3002/public_api/v1/"),e&&e.api&&e.api.config){var r=e.api.config,i=r.apiAlias,o=r.pingAlias;i&&(t.baseAPI=i+"/public_api/v1/"),o&&(t.eventsAPI=o+"/public_api/v1/")}return t.eventsFlushQueueTimeout=4e3,t.functionFlushQueueTimeout=500,t.sdkVersion="2.13.0",t.cookieDomain=e&&e.api&&e.api.config&&e.api.config.cookieDomain?e.api.config.cookieDomain:null,t.production="production"===e.env,t}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(51);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){var n={};function r(e){return n[e]?n[e]:"title"===e?document.title:document.location?document.location[e]:null}t.toObject=function(){return{href:r("href"),hash:r("hash"),search:r("search"),host:r("host"),protocol:r("protocol"),pathname:r("pathname"),title:r("title")}},t.attr=function(e){return r(e)},t.listen=function(e){}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},function(e,t,n){var r=n(4);e.exports=function(){return r.hasUserOptedOutTracking()}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){!function(){"use strict";function e(t,n,r,i){return this instanceof e?(this.domain=t||void 0,this.path=n||"/",this.secure=!!r,this.script=!!i,this):new e(t,n,r,i)}function n(e,t,r){return e instanceof n?e:this instanceof n?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||"/"),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,r),this):new n(e,t,r)}e.All=Object.freeze(Object.create(null)),t.CookieAccessInfo=e,t.Cookie=n,n.prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},n.prototype.toValueString=function(){return this.name+"="+this.value};var r=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var e,t;return this instanceof i?(e=Object.create(null),this.setCookie=function(r,i,o){var s,a;if(s=(r=new n(r,i,o)).expiration_date<=Date.now(),void 0!==e[r.name]){for(t=e[r.name],a=0;a0?e[0]:void 0}}},function(e,t,n){"use strict";var r=n(44),i=n(45),o=n(19);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(9),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){var r=n(24),i=n(25);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},function(e,t,n){var r=n(3),i=n(0),o=n(1),s=n(28),a=n(2);function u(e){if(!e||!e.winning_variation)return null;if("baseline"===e.winning_variation)return"b";var t=!0,n=!1,r=void 0;try{for(var i,o=e.variations[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;if(s&&e.winning_variation===s._id)return s}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return null}function c(e){if(0===e.variations.length)return"baseline";var t=Math.random(),n=a.isNumber(e.baseline.distributionPercent)?e.baseline.distributionPercent:0;if(n&&t-1}},function(e,t,n){var r=n(65),i=n(67);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(22),i=n(11),o=n(6),s="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==s}},function(e,t,n){var r=n(22),i=n(6),o="[object Number]";e.exports=function(e){return"number"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(68),i=n(69),o=n(73),s="Expected a function",a=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,f,p,h,d,v=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError(s);function _(t){var n=c,r=l;return c=l=void 0,v=t,p=e.apply(r,n)}function b(e){var n=e-d;return void 0===d||n>=t||n<0||g&&e-v>=f}function w(){var e=i();if(b(e))return x(e);h=setTimeout(w,function(e){var n=t-(e-d);return g?u(n,f-(e-v)):n}(e))}function x(e){return h=void 0,y&&c?_(e):(c=l=void 0,p)}function k(){var e=i(),n=b(e);if(c=arguments,l=this,d=e,n){if(void 0===h)return function(e){return v=e,h=setTimeout(w,t),m?_(e):p}(d);if(g)return clearTimeout(h),h=setTimeout(w,t),_(d)}return void 0===h&&(h=setTimeout(w,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,f=(g="maxWait"in n)?a(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=d=l=h=void 0},k.flush=function(){return void 0===h?p:x(i())},k}},function(e,t,n){var r=n(14),i=n(0),o=n(5);t.Taplytics=window.Taplytics=e.exports=r,t.flushAppQueue=function(){if(i.log("flushAppQueue tick",window._tlq,i.LOUD),window._tlq&&window._tlq instanceof Array){var e=window._tlq.slice();if(window._tlq=[],Array.prototype.sort&&e.sort((function(e,t){if(e instanceof Array&&t instanceof Array){if("init"===e[0]&&"identify"===t[0])return-1;if("identify"===e[0]&&"init"===t[0])return 1;if("init"===e[0]||"identify"===e[0])return-1}return 2})),e.length>0){i.log("flushAppQueue: "+e.length,e,i.LOUD);for(var n=0;n=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||l.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=l.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=y,l.delete=y,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~o.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){n.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},i.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var i in e)this._data[i]=e[i];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(e,t,n){"use strict";var r=n(42);function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)this[i]=n[i];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,t.arguments)}))},e.exports=n},function(e,t,n){"use strict";var r=n(9),i=n(19),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},h=function e(t,n,i,o,s,u,l,f,h,d,v,m,g){var y,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=d(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!m?u(n,p.encoder,g,"key"):n;_=""}if("string"==typeof(y=_)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(_))return u?[v(m?n:u(n,p.encoder,g,"key"))+"="+v(u(_,p.encoder,g,"value"))]:[v(n)+"="+v(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var x=Object.keys(_);b=f?x.sort(f):x}for(var k=0;k0?y+g:""}},function(e,t,n){"use strict";var r=n(9),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,u=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;u.push(a)}for(var c=0;n.depth>0&&null!==(s=o.exec(r))&&c=0;--i){var o,s=e[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);n.parseArrays||""!==a?!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[a]=r:o={0:r}}r=o}return r}(u,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,c),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(d=d.split(",")),i.call(a,h)?a[h]=r.combine(a[h],d):a[h]=d}return a}(e,n):e,c=n.plainObjects?Object.create(null):{},l=Object.keys(u),f=0;f-1}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(56),i=n(57),o=n(58),s=1,a=2;e.exports=function(e,t,n,u,c,l){var f=n&s,p=e.length,h=t.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,g=n&a?new r:void 0;for(l.set(e,t),l.set(t,e);++v-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(61),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,a,u){var c=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var p=f;p--;){var h=l[p];if(!(c?h in t:o.call(t,h)))return!1}var d=u.get(e);if(d&&u.get(t))return d==t;var v=!0;u.set(e,t),u.set(t,e);for(var m=c;++p=0;--i){var o=localStorage.key(i);(o=(o=o&&o.match(t))&&o[1])&&o.indexOf(r)<0&&e(o,p(o))}}function y(e){var t=p(e);m(e),m(t)}function _(e){var t=p(e),n=d(t);if(n){var r=parseInt(n,i);if(h()>=r)return m(e),m(t),!0}}function b(e,t){u&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),t&&window.console.warn("lscache - The error was: "+t.message))}return{set:function(e,t,n){if(c()){if("string"!=typeof t){if(!f())return;try{t=JSON.stringify(t)}catch(e){return}}try{v(e,t)}catch(n){if(!l(n))return void b("Could not add item with key '"+e+"'",n);var r,o=[];g((function(e,t){var n=d(t);n=n?parseInt(n,i):s,o.push({key:e,size:(d(e)||"").length,expiration:n})})),o.sort((function(e,t){return t.expiration-e.expiration}));for(var a=(t||"").length;o.length&&a>0;)r=o.pop(),b("Cache is full, removing item with key '"+e+"'"),y(r.key),a-=r.size;try{v(e,t)}catch(t){return void b("Could not add item with key '"+e+"', perhaps it's too big?",t)}}n?v(p(e),(h()+n).toString(i)):m(p(e))}},get:function(e){if(!c())return null;if(_(e))return null;var t=d(e);if(!t||!f())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(e){c()&&y(e)},supported:function(){return c()},flush:function(){c()&&g((function(e){y(e)}))},flushExpired:function(){c()&&g((function(e){_(e)}))},setBucket:function(e){a=e},resetBucket:function(){a=""},enableWarnings:function(e){u=e}}},e.exports?e.exports=i():r.lscache=i()},function(e,t,n){var r=n(76),i=n(26),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){var r,i,o=n(24),s=n(25),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,m=d-a+(v-u)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=v,i=p;var g=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=d/4294967296*1e4&268435455;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var _=0;_<6;++_)l[c+_]=f[_];return t||s(l)}},function(e,t){e.exports=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},function(e,t,n){var r=n(18);e.exports=function(){var e={},t=null;return location&&location.search&&location.search.length&&(e=r.parse(location.search.substr(1))),document&&document.referrer&&(t=document.referrer),{referrer:t,search:e}}},function(e,t,n){var r=n(0),i=n(3);function o(e){this.promises=[],this.name=e?e.name:null}o.prototype.push=function(e){var t=!1,n=this;function o(n){t||e&&(t=!0,e(n))}this.promises.push(o),setTimeout((function(){t||(r.log(n.name+" promise timed out",null,r.LOG),o())}),i.timeout)},o.prototype.completePromises=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=this.promises[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;s&&s(e)}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}this.promises=[]},e.exports=o},function(e,t,n){var r,i=n(2),o=n(0),s=n(1),a=n(81),u=n(82),c=setInterval((function(){document.body&&(l(),clearInterval(c),c=null)}),1);function l(){if("undefined"!=typeof MutationObserver&&!r&&document.body){o.log("start DOM Observer",null,o.DEBUG);var e=function(){o.log("DOM mutation observed",null,o.DEBUG),t.applyVisualEditsFromConfig(s.config)};(r=new MutationObserver(i.debounce(e,50,{leading:!0}))).observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeFilter:[],characterDataOldValue:!1,attributeOldValue:!1}),e()}}t.applyVisualEditsFromConfig=function(e){if(e&&e.webModifications&&e.webElements){l(),o.log("Apply visual edits from config",null,o.DEBUG);var t=a.buildUrlFromLocation(window.location);e.webModifications.forEach((function(n){if(n){var r=e.webElements.find((function(e){return e._id===n._element}));if(!r)return o.error(`No web element found for _id: ${n._element}, modification: ${n._id}`,null,o.DEBUG);e.urlRules&&a.matchUrlRules(e.urlRules,t)?u.applyModificationsToDOM({element:r,modification:n}):(r.hostnameMatch||a.matchUrlsByPath(r.url,t))&&u.applyModificationsToDOM({element:r,modification:n})}}))}}},function(e,t,n){var r=n(2);t.buildUrlFromLocation=function(e){return e&&e.origin?e.origin+(e.pathname?e.pathname:""):null},t.matchUrlsByPath=function(e,n){var r=t.getLocationFromUrl(e),i=t.getLocationFromUrl(n);return r&&i&&r.origin.length&&i.origin.length?r.pathname===i.pathname:(e=e.replace(/^(http(s?):\/\/)?((www\.)?)((.*\/)?)/,""))===(n=n.replace(/^(http(s?):\/\/)?((www\.)?)((.*\/)?)/,""))},t.matchUrlsByDomain=function(e,t){return e=e.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],t=t.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],e=e.split(".").slice(-2),t=t.split(".").slice(-2),r.isEqual(e,t)},t.getLocationFromUrl=function(e){var t=document.createElement("a");return t.href=e,t.origin.length?{origin:t.origin,hostname:t.hostname,pathname:t.pathname,href:t.href}:null},t.matchUrlRules=function(e,t){if(!e||!e.length||!t)return!1;var n=!1;return r.forEach(e,(function(e){var r=e.comparator,i=e.value;if("is"===r)n=t===i;else if("is not"===r)n=t!==i;else if("contains"===r)n=t.includes(i);else if("does not contain"===r)n=!t.includes(i);else if("Matches Regex"===r){var o=new RegExp(i);n=o.test(t)}if(n)return!1})),n}},function(module,exports,__webpack_require__){var log=__webpack_require__(0),evaledModifications=[];exports.applyModificationsToDOM=function(_ref){var element=_ref.element,modification=_ref.modification;if(element&&modification){var htmlElements=exports.findElementsBySelector(element.selector),htmlElement=htmlElements&&htmlElements.length?htmlElements[0]:null;if(htmlElement){log.log(`Apply modification for web element: ${htmlElement._id}, modification: ${modification._id}`,null,log.LOUD);var _modification$attribu=modification.attributes,outerHTML=_modification$attribu.outerHTML,script=_modification$attribu.script;if(outerHTML&&htmlElement.outerHTML!==outerHTML&&(htmlElement.outerHTML=outerHTML),script)try{evaledModifications.includes(modification._id)||(evaledModifications.push(modification._id),eval(script))}catch(e){log.error(`Error on modification script for web element: ${htmlElement._id}, modification: ${modification._id}`,e,log.DEBUG)}}}},exports.findElementsBySelector=function(e){return document.querySelectorAll(e)}},function(e,t,n){var r=n(0),i=(n(8),n(1)),o=n(4),s=n(84),a=n(2),u=!0;e.exports=function(e,t){if(function(e){if(!e||"string"!=typeof e)return!1;return!!e.length}(e)){if(this.env="production",t){this.api.config.startOptions=t,a.isNumber(t.log_level)&&r.setPriorityLevel(t.log_level);try{if(t.alias_host){var n=a.isString(t.alias_host)?JSON.parse(t.alias_host):t.alias_host,c=n.api_host,l=n.ping_host;c&&(this.api.config.apiAlias=c),l&&(this.api.config.pingAlias=l)}}catch(e){r.error("Error trying to convert alias host to JSON",e)}!1===t.auto_page_view&&(u=!1),t.env&&(this.env=t.env),t.test_experiments&&(i.test_experiments=t.test_experiments),t.fast_mode&&(this.api.config.fastMode=t.fast_mode),t.cookie_domain&&(this.api.config.cookieDomain=t.cookie_domain),t.user_bucketing&&(this.api.config.userBucketing=t.user_bucketing),a.isNumber(t.timeout)&&this.api.request.setTimeout(t.timeout),t.anon_user&&!i.getUserID()&&i.setUserID(t.anon_user),t.track_adobe_analytics&&s(t.adobe_obj_name,this.api.events.trackAdobeAnalyticsEvents)}this._in={},this._in.token=e,this._in.logger=r,this._in.cookies=o,this.api.init(this);var f=t&&t.config?t.config:void 0,p=f?f.ad:void 0;i.start(p);var h=null;try{a.isString(t.user_attributes)?h=t&&t.user_attributes&&JSON.parse(t.user_attributes):a.isObjectLike(t.user_attributes)&&(h=t.user_attributes)}catch(e){r.error("Error trying to convert user attributes to JSON",e)}return this.api.config.get({dynamicConfig:f,user_attributes:h}),u&&this.page&&this.page(),this.api.events.scheduleTick(),this.api.events.watchLifecycleEvents(),this}r.error("An SDK token is required.",null,r.USER)}},function(e,t){var n=function(e){return{name:e.split("=")[0],value:e.split("=")[1]||null}},r=function(e){return e.events&&"None"!==e.events?e.events.split(",").map(n):[]},i=function(e){var t={};return function(e){return Object.keys(e).filter((function(t){return"function"!=typeof e[t]&&"object"!=typeof e[t]&&"events"!==t&&"linkTrackEvents"!==t}))}(e).forEach((function(n){t[n]=e[n]})),t},o=0,s=function e(t,n){var s=t?window[t]:window.s;o<50&&void 0!==s?(function(e,t){var n=e.t,o=e.tl;e.t=function(){return r(e).forEach((function(n){t(n.name,n.value,i(e))})),n.bind(e)()},e.tl=function(n,s,a,u,c){return r(e).forEach((function(n){var r=Object.assign({},i(e),{linkType:s,linkName:a});e.linkTrackEvents&&e.linkTrackEvents.includes(n.name)&&t(n.name,n.value,r)})),o.bind(e)(n,s,a,u,c)}}(s,n),function(e,t){r(e).forEach((function(n){t(n.name,n.value,i(e))}))}(s,n)):(o+=1,setTimeout((function(){e(t,n)}),200))};e.exports=function(e,t){s(e,t)}},function(e,t,n){n(15);e.exports=function(){return!(!this._in||!this._in.token)}},function(e,t,n){var r=n(0),i=n(1);e.exports=function(e){if(!this.isReady())return r.error("Taplytics::identify: you have to call Taplytics.init first.",null,r.USER),this;if(!function(e){return!(!e||e&&"object"!=typeof e)}(e))return r.error("Taplytics::identify: you have to pass in an object with user attributes.",null,r.USER),this;var t=function(e){for(var t={customData:{}},n=0,r=Object.keys(e);n