PageSourceSearch

https://bwing3.com/tcc/tcc_l.combined.1.0.6.min.js

js bwing3.com collected 2026-09-24 13:38:38 UTC 105,517 bytes, 1 lines download raw bytes

1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("scc-c2",[],e):"object"==typeof exports?exports["scc-c2"]=e():t["scc-c2"]=e()}(self,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e);var n={};t.r(n),t.d(n,{_isDebug:()=>d,debug:()=>O,error:()=>g,info:()=>m,log:()=>m,setDebug:()=>b,warn:()=>w});var r={};t.r(r),t.d(r,{cmdLogEvent:()=>Fo,cmdLogPerf:()=>qo});var o,i,a,c,u,f=(o="",a={document:i=Object.create({get cookie(){return o},set cookie(t){o=t}})},c={},"undefined"==typeof window?{window:a,document:i,navigator:c}:{window:window||a,document:window.document||i,navigator:navigator||c}),s=function(){return f.window},l=function(){return f.document},p=function(){return f.navigator},y=function(){var t=s().location;return t&&t.hostname?t.hostname:""},v=function(){var t=y(),e=t.split(".");return e.length>=2&&"co.uk"===(t=e.splice(e.length-2).join("."))&&(t="".concat(e.pop(),".").concat(t)),t},d=!1,b=function(t){d=!0===t||"true"===t},h=function(t){return s().console,function(){}},m=h(),g=h(),w=h(),O=function(){if(d){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];m.apply(null,e)}},j=function(t){if(s()[u])return s()[u][t]},S=function(t,e){s()[u]&&(s()[u][t]=e)},_=function(t,e){s()[t]=e,S(t,e)};function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==k(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===k(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return k="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},k(t)}var T=function(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];try{if(e(n,r))return t}catch(t){}}return t},C=function(){for(var t={},e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];"object"===k(n)&&T(n,(function(e,n){t[e]=n}))}return t},x=function t(e){for(var n in e)void 0===e[n]?delete e[n]:"object"===k(e[n])&&(t(e[n]),0===Object.keys(e[n]).length&&delete e[n]);return e},R=function(t){if(2===t.length)return t[1]},I=function(t,e,n){if("string"!=typeof t)return{};for(var r={},o=t.split(e),i=0;i<o.length;i++){var a=o[i].split(n);r[a[0]]=R(a)}return r},L=function(t,e,n){var r=[];return T(t,(function(t,e){r.push("".concat(t).concat(n).concat(e))})),0===r.length?"":r.join(e)},D=function t(e,n){return n&&(e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e)),Object.keys(e).forEach((function(r){if("object"===k(e[r])){var o=t(e[r],n);n&&(e[r]=o)}})),Object.freeze(e)},A=function(t,e){if(void 0===t)return t;void 0===e&&(e=2);for(var n=String(t);n.length<e;)n="0"+n;return n},M=function(t){if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||void 0!==t)return!0===t||1===t||"string"==typeof t&&("true"===t.toLowerCase()||"1"===t)},B=function(t){var e=parseInt(t,10);if(!isNaN(e))return e},F=function(t){return/^-?\d+$/.test(t)},q=function(){return function(t){var e=t.getUTCFullYear()+"-"+A(t.getUTCMonth()+1);if(e+="-"+A(t.getUTCDate())+"T"+A(t.getUTCHours())+":",e+=A(t.getUTCMinutes())+":"+A(t.getUTCSeconds()),t.getUTCMilliseconds){var n=t.getUTCMilliseconds();F(n)&&(e+="."+String((n/1e3).toFixed(3)).slice(2,5))}return e+"Z"}(new Date)},U=function(t){return"[object Array]"===Object.prototype.toString.call(t)},V=function(t,e){U(t)&&t.push({timestamp:q(),data:e})};function N(t){return 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},N(t)}function K(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!==N(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===N(e)?e:String(e)}const W=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.properties=e?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?K(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=z(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e):{}}var e,n;return e=t,(n=[{key:"clear",value:function(){this.properties={}}},{key:"get",value:function(t){if(this.properties.hasOwnProperty(t))return this.properties[t]}},{key:"set",value:function(t,e){this.properties[t]=e}},{key:"isSet",value:function(t){if(this.properties.hasOwnProperty(t))return!0}},{key:"delete",value:function(t){delete this.properties[t]}},{key:"getProperties",value:function(t){var e={},n=function(){return!1};return t||"function"!=typeof t||(n=t),T(this.properties,(function(t,r){n(t)||(e[t]=r)})),e}},{key:"merge",value:function(e){var n=this,r=e;r instanceof t&&(r=e.getProperties()),T(r,(function(t,e){n.set(t,e)}))}}])&&G(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();var $,H={},Q={"first-paint":"fp","first-contentful-paint":"fcp"},J=["connectEnd","connectStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domainLookupEnd","domainLookupStart","fetchStart","navigationStart","requestStart","responseEnd","responseStart","loadEventStart","loadEventEnd"],Z=["transferSize","encodedBodySize","decodedBodySize"],X=function(t,e){for(var n={},r=0;r<e.length;r++){var o=e[r],i=t[o];void 0!==i&&(n[o]=Math.round(i))}return n},Y=function(t){return X(t,J)},tt=function(t){return X(t,Z)},et=function(t,e){var n=new W;"tcc"===t&&n.set("tccin",e||"na");try{($=s().performance)&&$.timing?(function(t){if(t.merge(Y($.timing)),$.getEntriesByName){var e=$.getEntriesByName(l().location.href)[0];if(!e&&$.getEntriesByType){var n=$.getEntriesByType("navigation");e=n[n.length-1]}e&&(t.merge(tt(e)),t.set("navigationType",e.type))}}(n),"tcc"===t&&(function(t){if($.getEntriesByType){var e=$.getEntriesByType("mark");if(U(e)){t.set("marks",e.slice(0,10).map((function(t){return{name:t.name,startTime:Math.round(t.startTime)}})));var n=$.getEntriesByType("measure");U(n)&&t.set("measures",n.slice(0,10).map((function(t){return{name:t.name,duration:Math.round(t.duration)}})))}}}(n),function(t){if($.getEntriesByType){var e=$.getEntriesByType("paint");e&&e.forEach((function(e){t.set(Q[e.name],Math.round(e.startTime))}))}}(n))):("tcc"===t&&n.set("tccperfapi","not supported"),g("Error loading performance lib"))}catch(t){g("_collect unable to get performance data",t)}return n.getProperties()},nt=function(t,e,n){setTimeout((function(){s()._expDataLayer=s()._expDataLayer||[],s()._expDataLayer.push({schema:"add_perf",version:"v1",data:"tcc"===t?{type:"pageperf",properties:C(e,H,{nav_type:"hard"}),custom_properties:n}:{timing_object:C(e,H),is_hard_navigation:!0,custom_properties:n}})}),0)},rt=function(){return!($=s().performance)||!$.timing||$.timing.loadEventStart>0},ot=!1;function it(t){return it="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},it(t)}function at(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==it(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===it(o)?o:String(o)),r)}var o}var ct,ut=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._loaded=!1,this._onLoadFns=[],e?this._loaded=!0:n(this._triggerOnLoad.bind(this))}var e,n;return e=t,(n=[{key:"_executeFn",value:function(t){try{t()}catch(e){g("Exception while executing onLoad callback",t,e)}}},{key:"_triggerOnLoad",value:function(){this._loaded=!0;for(var t=0;t<this._onLoadFns.length;t++)this._executeFn(this._onLoadFns[t])}},{key:"registerOnLoadFn",value:function(t){(function(t){return t&&"[object Function]"==={}.toString.call(t)})(t)&&(this._loaded?this._executeFn(t):this._onLoadFns.push(t))}}])&&at(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ft=s().Request,st=ft&&"keepalive"in new ft(""),lt=void 0!==p().sendBeacon,pt=function(t,e,n,r,o,i,a){var c,u=C({},i),f=r?JSON.stringify(r):null;if("POST"===n&&(u["Content-Type"]="application/json"),lt&&!u.Authorization&&"POST"===n)try{var l=s().Blob;c=p().sendBeacon(t,new l([f],u))}catch(t){c=!1}c||function(t,e,n,r,o){var i=s().fetch;st&&i?i(t,{keepalive:!0,method:e,headers:r,body:n,credentials:o}).catch((function(t){})):function(t,e,n,r){var o=s().XMLHttpRequest;if(o){var i=new o;i.open(e,t,!0),T(r,(function(t,e){i.setRequestHeader(t,e)})),i.send(n)}}(t,e,n,r)}(t,n,f,u,a),function(t,e,n,r,o){var i={endpoint:e,queryParams:n,method:r,payload:o};V(j(t),i)}(o,t,e,n,r)},yt=function(t,e){var n=j("config")[t];if(n&&e)return n[e]},vt=[{name:"EMAIL",regex:/[^@^=]+@[^@]+\.[^@^&]+/}],dt=function(t,e){if("string"!=typeof t)return t;for(var n=t,r=0;r<vt.length;r++)for(var o=vt[r].regex,i=n.match(o);i&&i[0];)i=(n=n.replace(i[0],"REDACTED")).match(o);return n},bt=function(t){return""===(t=t||s().location.search)?[]:("?","?"===t.substr(0,1)&&(t=t.substring(1)),t.split("&"))},ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"https://".concat(t?t+".":"").concat(function(){if(ct)return ct;var t=v();if("secureserver.net"===(t=function(t){var e=t||v();return e.indexOf("godaddy.com")>=0||e.indexOf("secureserver.net")>=0}(t)?t:"secureserver.net")){var e=yt("build","env");t="prod"===e?t:"".concat(e,"-").concat(t)}return ct=t}())};function mt(t){return mt="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},mt(t)}function gt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(t,e)||wt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){if(t){if("string"==typeof t)return Ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(t,e):void 0}}function Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==mt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===mt(o)?o:String(o)),r)}var o}const St=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._eventQueue=[],this._sendBatchCallback=e,this._maxEvents=r,this._bindUnload(),this._processInterval=setInterval((function(){n._sendBatch()}),250)}var e,n;return e=t,(n=[{key:"_bindUnload",value:function(){var t=this,e=this.flush.bind(this),n=s().attachEvent,r=s().addEventListener,o=l().addEventListener;r?(r("beforeunload",e,!1),r("pagehide",e,!1)):n&&n("beforeunload",e),o&&o("visibilitychange",function(){"hidden"===l().visibilityState&&t.flush()}.bind(this))}},{key:"_sendRequests",value:function(t){var e=this;Object.entries(t).forEach((function(t){var n=gt(t,2),r=n[0],o=n[1];try{var i=gt(r.split("|"),2),a=i[0],c={schemaId:i[1],data:[]};Object.values(o).forEach((function(t){if(t.events.length>10)for(var e=t.events.length/10,n=0;n<e;n++)c.data.push(C(t,{events:t.events.slice(10*n,10*n+10)}));else c.data.push(t)})),e._sendBatchCallback(c,a)}catch(t){g("Failed to send request: ".concat(t))}}))}},{key:"pushEvent",value:function(t,e){e||!st&&!lt?this._sendBatch(t):this._eventQueue.push(t)}},{key:"_getRequestBatch",value:function(t,e,n){var r=n.apiKey,o=n.schemaId,i=n.global,a=n.contextVersion,c=n.businessContext,u="".concat(r,"|").concat(o),f=t[u]||{};t[u]=f;var s=0;c&&(e.push(c),s=e.length);var l="".concat(a,"|").concat(s);return{batch:f[l]||{global:i,businessContext:c,events:[]},batchKey:l,request:f}}},{key:"_processEvent",value:function(t,e,n){var r,o,i=this._getRequestBatch(t,e,n),a=i.batch,c=i.batchKey,u=i.request;return(r=a.events).push.apply(r,function(t){if(Array.isArray(t))return Ot(t)}(o=n.events.slice(0,this._maxEvents))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||wt(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n.events.length>this._maxEvents&&this.pushEvent(C(n,{events:n.events.slice(this._maxEvents)})),u[c]=a,Math.min(n.events.length,this._maxEvents)}},{key:"_sendBatch",value:function(t){var e=0,n={},r=[];for(t&&(e+=this._processEvent(n,r,t));this._eventQueue.length>0&&e<this._maxEvents;)e+=this._processEvent(n,r,this._eventQueue.shift());this._sendRequests(n)}},{key:"flush",value:function(){for(;this._eventQueue.length>0;)this._sendBatch()}}])&&jt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();var _t,Pt="_eventBusSendLog",Et=function(t,e){pt("".concat(ht("csp"),"/eventbus"),null,"POST",t,Pt,{Authorization:"api-key ".concat(e)})};function kt(t){return kt="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},kt(t)}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==kt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===kt(o)?o:String(o)),r)}var o}function Ct(){return Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Rt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Ct.apply(this,arguments)}function xt(t,e){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xt(t,e)}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}var It=function(t){try{return JSON.parse(t)}catch(t){return{}}};const Lt=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xt(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rt(r);if(o){var n=Rt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t))._updateWindow(),e}return e=a,(n=[{key:"_updateWindow",value:function(){S("config",D(this.properties,!0))}},{key:"set",value:function(t,e){Ct(Rt(a.prototype),"set",this).call(this,t,e),this._updateWindow()}},{key:"merge",value:function(t){Ct(Rt(a.prototype),"merge",this).call(this,t),this._updateWindow()}}])&&Tt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(W))({build:{env:"prod",date:"2024-03-22T13:06:03.768Z"},client:{name:"scc-c2",version:"0.2.5"}
1,cookie:{sameSite:"none"},site:{privateLabelId:""},sGtm:{enabled:M(""),whitelist:It(""),account:"",host:""},ga:{account:""},wGtm:{enabled:M(""),whitelist:It(""),account:""},eventBus:{enabled:M("true"),sccApiKey:"b18ef4f046435b64a469b32c3c1c20a3",rigorApiKey:"8da2217409854bee82e12dc4ca0b39fb"},clickListener:{enabled:!0,navDelayMs:75},timing:{auto:!0},webVitals:{enabled:!0,url:""},consent:{delayMs:500}});var Dt,At,Mt,Bt=function(t,e){var n=Lt.get(t);if(n&&e)return n[e]},Ft=function(t,e,n){var r=Lt.get(t),o=r||{};r||Lt.set(t,o),o[e]=n};function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ut,Vt,Nt=[],Kt={},Gt=0,zt=function(t){var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(Ut);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(t.startsWith("".concat(r,".")))return!1}}catch(t){n.e(t)}finally{n.f()}return!0},Wt=function(t,e){"debug"===t&&b(e)},$t=function(){var t,e,n=function(){for(var t={},e=0;e<At.length;e++){var n=At[e];T(n,(function(e,n){-1===Vt.indexOf(e.toLowerCase())&&(Wt(e,n),zt(e)||(t[e]=n))}))}return t}();e={identity:{realm:(t=n)["".concat(Dt,".realm")]},site:{privateLabelId:t["".concat(Dt,".privateLabelId")]},timing:{auto:!M(t["".concat(Dt,".manualPagePerf")],!1)},page:{spa:t["".concat(Dt,".spa")],id:t["".concat(Dt,".pageId")],contentGroup:t["".concat(Dt,".gaContentGroup")]||t["".concat(Dt,".contentGroup")],referrerExclusion:t["".concat(Dt,".referrerExclusion")]},cookie:{sameSite:t["".concat(Dt,".cookies.sameSite")]},wGtm:{enabled:M(t["".concat(Dt,".webGtmEnabled")],!1)},clickListener:{enabled:!M(t["".concat(Dt,".listenerDisabled")],!1),navDelayMs:t["".concat(Dt,".eventDelayMs")]}},Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(n){var r=e[t][n];void 0!==r&&Ft(t,n,r)}))})),Lt.merge(n),V(Nt,n)};const Ht={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Qt;const Jt=new Uint8Array(16);function Zt(){if(!Qt&&(Qt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qt(Jt)}const Xt=[];for(let t=0;t<256;++t)Xt.push((t+256).toString(16).slice(1));const Yt=function(t,e,n){if(Ht.randomUUID&&!e&&!t)return Ht.randomUUID();const r=(t=t||{}).random||(t.rng||Zt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t,e=0){return Xt[t[e+0]]+Xt[t[e+1]]+Xt[t[e+2]]+Xt[t[e+3]]+"-"+Xt[t[e+4]]+Xt[t[e+5]]+"-"+Xt[t[e+6]]+Xt[t[e+7]]+"-"+Xt[t[e+8]]+Xt[t[e+9]]+"-"+Xt[t[e+10]]+Xt[t[e+11]]+Xt[t[e+12]]+Xt[t[e+13]]+Xt[t[e+14]]+Xt[t[e+15]]}(r)};var te=function(){return Yt()};function ee(t){return ee="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},ee(t)}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===ee(o)?o:String(o)),r)}var o}var oe=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dataLayerNames=e,this.dataLayerLog=[],this.asyncCommands=[],this.loaded=!1,this.dataLayers=[],this.dataLayerNames.forEac
1h((function(t){var e,r,o=s()[t];U(o)&&(e=n.asyncCommands).push.apply(e,function(t){if(Array.isArray(t))return ne(t)}(r=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_(t,n),n.dataLayers.push(o)}))}var e,n;return e=t,(n=[{key:"start",value:function(){this.loadAsyncCommands()}},{key:"pushLog",value:function(t){V(this.dataLayerLog,t)}},{key:"process",value:function(){}},{key:"push",value:function(t){this.loaded?this.process(t):this.asyncCommands.push(t)}},{key:"loadAsyncCommands",value:function(){for(;this.asyncCommands.length>0;)this.process(this.asyncCommands.shift());this.loaded=!0}}])&&re(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ae(t){return ae="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},ae(t)}function ce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==ae(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===ae(o)?o:String(o)),r)}var o}function fe(t,e,n){return e&&ue(t.prototype,e),n&&ue(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var se=function(){function t(e,n){if(ce(this,t),!e)throw"Missing version definitions";this._versionedDefinitions=e,this._interfaceType=n}return fe(t,[{key:"getInterface",value:function(t,e){var n=this._versionedDefinitions[e];if(n)return n}}]),t}(),le=function(){function t(e){if(ce(this,t),!e)throw"Missing type definitions";this._typeVersionDefinitionMap=e}return fe(t,[{key:"getInterface",value:function(t,e,n){var r=this._typeVersionDefinitionMap[n];if(r)return r.getInterface(t,e)}}]),t}(),pe={},ye=function(t){for(var e=function(){var t,e,o=(t=r[n],e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(U(a)){var c={};a.forEach((function(t){var e={};Object.keys(t).forEach((function(n){"type"!==n&&(e[n]=t[n])})),c[t.type]=new se(e,t.type)})),pe[i]=new le(c)}else pe[i]=new se(a)},n=0,r=Object.entries(t);n<r.length;n++)e()},ve="string",de="OPTIONAL",be="REQUIRED",he="map";function me(){return me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=je(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},me.apply(this,arguments)}function ge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&we(t,e)}function we(t,e){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},we(t,e)}function Oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=je(t);if(e){var o=je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function je(t){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},je(t)}function Se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Ee(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ee(o)?o:String(o)),r)}var o}function Pe(t,e,n){return e&&_e(t.prototype,e),n&&_e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ee(t){return Ee="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},Ee(t)}var ke=function(t,e,n){var r;if("CALCULATED"!==e._fieldType){var o=t[e.name];"sub"===e._resolutionType&&(o=t),r=e.parse(o)}var i=Ee(e.transformFn);if("undefined"!==i){var a=U(e.transformFn);if("function"===i||a)for(var c=a?e.transformFn:[e.transformFn],u=0;u<c.length;u++)r=c[u](r,n);else r=e.transformFn}return e._outputType&&e._outputType===ve&&(r=r.toString()),r},Te=function(){function t(e){Se(this,t),this.name=e,this.properties=[],this.definitionType="",this._outputType,this._resolutionType=he,this._fieldType=de,this.outputKey,this.allowedValuesList=[]}return Pe(t,[{key:"parse",value:function(t){if(this.validate(t),this._fieldType!==de||t){for(var e=new W,n=0;n<this.properties.length;n++){var r=this.properties[n],o=ke(t,r,e.getProperties());r._resolutionType===he?e.set(r.outputKey||r.name,o):e.merge(o)}return e.getProperties()}}},{key:"validate",value:function(t){if(this._fieldType===be&&!t)throw"Missing required property '".concat(this.name,"'");if(this.allowedValuesList.length>0&&!this.allowedValuesList.includes(t))throw"Input '".concat(t,"' for property '").concat(this.name,"' is not one of the allowed values (").concat(this.allowedValuesList,").")}},{key:"optional",value:function(){return this._fieldType=de,this}},{key:"required",value:function(){return this._fieldType=be,this}},{key:"load",value:function(){for(var t=0;t<this.properties.length;t++)this.properties[t].load()}},{key:"stringify",value:function(){for(var t=new W,e=0;e<this.properties.length;e++){var n=this.properties[e];t.merge(n.stringify())}return t.getProperties()}},{key:"clean",value:function(){for(var t=0;t<this.properties.length;t++)this.properties[t].clean();this.properties=[]}},{key:"transform",value:function(t){return this.transformFn=t,this}},{key:"transformKey",value:function(t){return this.outputKey=t,this}},{key:"allowedValues",value:function(t){return this.allowedValuesList=t,this}},{key:"outputType",value:function(t){return this._outputType=t,this}}]),t}(),Ce=function(t){ge(n,t);var e=Oe(n);function n(t,r){var o;return Se(this,n),(o=e.call(this,t)).definitionType="Schema",o.properties=r,o}return Pe(n,[{key:"parse",value:function(t){var e;if(this.properties&&this.properties.length>0)try{this.load(),e=me(je(n.prototype),"parse",this).call(this,t||{}),this.clean()}catch(t){throw""}return Object.freeze(e)}}]),n}(Te),xe=function(t){ge(n,t);var e=Oe(n);function n(t){return Se(this,n),e.call(this,t)}return Pe(n,[{key:"parse",value:function(t){return this.validate(t),t}},{key:"stringify",value:function(){var t={};return t[this.name]=this._fieldType,t}}]),n}(Te),Re=function(t){ge(n,t);var e=Oe(n);function n(){var t;return Se(this,n),(t=e.call(this)).objDefinitions=[],t.definitionType="Object",t}return Pe(n,[{key:"load",value:function(){this.properties=this.properties.concat(this.objDefinitions),this.extraDef
1initions&&(this.properties=this.properties.concat(this.extraDefinitions)),me(je(n.prototype),"load",this).call(this)}},{key:"stringify",value:function(){if(this._resolutionType===he){var t={};return t["".concat(this.name," (").concat(this._fieldType,")")]=me(je(n.prototype),"stringify",this).call(this),t}return me(je(n.prototype),"stringify",this).call(this)}},{key:"substitute",value:function(t){return this.objDefinitions=t,this._resolutionType="sub",this}},{key:"map",value:function(t,e){return this.name=t,this.objDefinitions=e,this._resolutionType=he,this}},{key:"extend",value:function(t){return this.extraDefinitions=t,this}}]),n}(Te),Ie=function(t){ge(n,t);var e=Oe(n);function n(){var t;return Se(this,n),(t=e.call(this)).definitionType="Collection",t.minElements=0,t}return Pe(n,[{key:"parse",value:function(t){if(this.minElements&&(!t||t.length<this.minElements))throw"";if(void 0!==t){if(!U(t))throw"";return t.map(me(je(n.prototype),"parse",this).bind(this))}}},{key:"stringify",value:function(){if(this._resolutionType===he){var t={};t["".concat(this.minElements,"...n")]=me(je(n.prototype),"stringify",this).call(this)["".concat(this.name," (").concat(this._fieldType,")")];var e={};return e["".concat(this.name," (").concat(this._fieldType,")")]=t,e}return me(je(n.prototype),"stringify",this).call(this)}},{key:"withMinElements",value:function(t){return this.minElements=t,this._fieldType=t>0?be:de,this}}]),n}(Re);function Le(t){return Le="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},Le(t)}function De(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Le(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Le(o)?o:String(o)),r)}var o}function Be(){return Be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qe(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Be.apply(this,arguments)}function Fe(t,e){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fe(t,e)}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qe(t)}var Ue=["_expDataLayer","_signalsDataLayer"],Ve=["add_virtual_page_view","set_config","subscribe"],Ne=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fe(t,e)}(c,t);var e,r,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=qe(o);if(i){var n=qe(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Le(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(t){var e,n=t.pageViewSchema,r=t.autoPageViewDisabled,o=t.beforeEvent,i=t.immediateSchemas,u=void 0===i?[]:i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,Ue)).pageViewSchema=n,e.autoPageViewDisabled=r,e.beforeEvent=o,e.immediateSchemas=[Ve].concat(De(u)),e._initEvents(),e}return e=c,(r=[{key:"push",value:function(t){return this.immediateSchemas.includes(t.schema)?this.process(t):Be(qe(c.prototype),"push",this).call(this,t)}},{key:"_initEvents",value:function(){for(var t=!this.autoPageViewDisabled,e=this.asyncCommands.length-1;e>=0;e--){var n=this.asyncCommands[e];n.schema!==this.pageViewSchema||n.data&&n.data.virtual_path||(t=!1),"set_config"===n.schema&&this.process.apply(this,De(this.asyncCommands.splice(e,1)))}t&&this.process({schema:this.pageViewSchema})}},{key:"process",value:function(t){Be(qe(c.prototype),"pushLog",this).call(this,t);try{var e=t.data,r=t.schema||t.interface,o=t.type,i=t.version||"v1",a={eventId:te()};this.beforeEvent&&this.beforeEvent(),function(){for(;Gt<At.length;){var t=At[Gt];T(t,(function(t,e){-1===Vt.indexOf(t.toLowerCase())&&zt(t)&&(Wt(t,e),Kt[t]=e)})),Gt++}}(),function(t,e,n,r,o){var i=function(t,e,n){var r=pe[t];if(r)return r.getInterface(t,n,e)}(t,e,n),a=new Ce(t,i.properties).parse(r)||{},c=new i.handler(a,e,n,o);c.preProcess(a),c.process(a)}(r,o,i,e,a)}catch(e){var u=["Unable to process",t,"\n\n"];g.apply(n,u.concat(e))}}}])&&Me(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(oe);function Ke(t){return Ke="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},Ke(t)}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Ke(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ke(o)?o:String(o)),r)}var o}function ze(){return ze="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$e(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},ze.apply(this,arguments)}function We(t,e){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},We(t,e)}function $e(t){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$e(t)}var He=["_trfq"],Qe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&We(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=$e(r);if(o){var n=$e(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ke(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,He)).handlers=t,e.start(),e}return e=a,(n=[{key:"process",value:function(t){ze($e(a.prototype),"pushLog",this).call(this,t);try{var e=Array.prototype.slice.call(t,1),n=t[0];this.handlers[n]?this.handlers[n].apply(null,e):g("Invalid command sent to data layer",this.dataLayerName,t)}catch(e){g("Unable to process",t,e)}}}])&&Ge(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(oe);const Je=new W;var Ze,Xe,Ye,tn=function(t,e,n,r){var o=yt("cookie","sameSite")||"",i=new Date;i.setTime(i.getTime()+60*n*1e3),l().cookie="".concat(t,"=").concat(encodeURI(e),"; domain=").concat(v(),"; ")+(n?"expires=".concat(i.toGMTString(),"; "):"")+(r?"path=".concat(r,"; "):"")+(o?"SameSite=".concat(o,"; "):"")+("NONE"===o.toUpperCase()?" Secure;":"")},en=function(t){var e=l().cookie;return Xe!==e&&(Ye=function(t){for(var e=t.split(";"),n=Object.create(null),r=0;r<e.length;r++){var o=/([^=]*)*=([\s\S]*)/.exec(e[r]);if(o&&o[2]){var i=o[1].trim(),a=decodeURIComponent(o[2].trim());n[i]=a}}return n}(e),Xe=e),Ye[t]},nn=function(t){var e=en(t);return I(e,"&","=")},rn=function(){var t,e=l().querySelector("meta[name='gd:traceId']");return e&&(t=e.getAttribute("content")),t&&!Lt.get("tcc.disablePageTracing")?{trace_id:t,traced:1}:{trace_id:te().replace(/-/g,"")}};function on(t){return on="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},on(t)}function an(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return cn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?un(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=ln(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ln(r.key),r)}}function ln(t){var e=function(t,e){if("object"!==on(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===on(e)?e:String(e)}var pn=function(){function t(e){var n=e.contextFnMap,r=e.paramsFnMap,o=void 0===r?{}:r,i=e.windowName;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contextFnMap=n,this._paramsFnMap=o,this._windowName=i}var e,n;return e=t,(n=[{key:"init",value:function(t){var e=t.context,n=void 0===e?{}:e,r=t.contextFnMap,o=void 0===r?{}:r,i=t.paramsFnMap,a=void 0===i?{}:i;this.version=0,this.context=n,this._initialContext=fn({},n),this._contextMap={},this._contextFnMap=C(this._contextFnMap,o),this._paramsFnMap=C(this._paramsFnMap,a)}},{key:"_buildContext",value:function(t){var e=fn({},this._initialContext);return Object.entries(t).forEach((function(t){var n,r=an(t,2),o=r[0],i=r[1],a=o.split("."),c=e;a.forEach((function(t,e){e<a.length-1?(c[t]=c[t]||{},c=c[t]):n=t})),c[n]=i})),e}},{key:"updateContext",value:function(){var t=this;if(this._contextFnMap){var e=!1,n={},r={};Object.entries(this._paramsFnMap).forEach((function(t){var e=an(t,2),n=e[0],o=e[1];try{r[n]=o()}catch(t){g("Error executing paramsFnMap for key: ".concat(n),t)}})),Object.entries(this._contextFnMap).forEach((function(o){var i=an(o,2),a=i[0],c=(0,i[1])(r);t._contextMap[a]!==c&&(e=!0),void 0!==c&&(n[a]=c)})),e&&(this.version++,this.context=D(this._buildContext(n)),this._contextMap=n,this._windowName&&S(this._windowName,this.context))}}}])&&sn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const yn=new pn({});var vn={"godaddy.com":1,"mediatemple.net":4500,"afternic.com":497036},dn=[function(){return Bt("site","privateLabelId")},function(){return function(t,e,n){for(var r=bt(n),o=r.length-1;o>=0;o--){var i=r[o].split("=");if(e){if((i[0]+"").toLowerCase()===(t+"").toLowerCase())return i[1]}else if(i[0]===t)return i[1]}}("plid")},function(){var t=v().replace("dev-","").replace("test-","").replace("stg-","");if(vn.hasOwnProperty(t))return vn[t]}],bn=function(){for(var t=0;t<dn.length;t++){var e=dn[t]();if(e&&F(e))return B(e)}};function hn(t){return hn="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},hn(t)}function mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==hn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===hn(o)?o:String(o)),r)}var o}function gn(){return gn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=On(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},gn.apply(this,arguments)}
1function wn(t,e){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wn(t,e)}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},On(t)}var jn={"client.userAgent":function(){return p().userAgent},"client.sdk.name":function(){return Bt("client","name")},"client.sdk.version":function(){return Bt("client","version")},"client.device.viewportWidth":function(t){var e=t.win,n=t.doc;return B(e.innerWidth?e.innerWidth:n.body.offsetWidth)},"client.device.viewportHeight":function(t){var e=t.win,n=t.doc;return B(e.innerHeight?e.innerHeight:n.body.offsetHeight)},"client.device.screenResolutionWidth":function(t){var e=t.win;return B(e.screen.width)},"client.device.screenResolutionHeight":function(t){var e=t.win;return B(e.screen.height)},"page.id":function(){return Bt("page","id")},"page.traceId":function(){return Je.get("trace_id")},"page.contentGroup":function(){return function(){var t=Bt("page","contentGroup");if("string"!=typeof t)return t;for(var e=t.split("/"),n=e.length-1;n>=0;n--)e[n]=e[n].trim(),e[n]||e.splice(n,1);if(e.length>0)for(;e.length<3;)e.push("Other");return e.join(" / ")}()},"page.host":function(){return y()},"page.path":function(t){return t.win.location.pathname},"page.virtualPath":function(){return Je.get("virtual_path")},"page.location":function(){return n=(t=bt()).length?(function(t){for(var e=0;e<t.length;e++){var n=t[e].split("="),r=!1,o=n[1];o!==decodeURIComponent(n[1])&&(o=decodeURIComponent(n[1]),r=!0);var i=dt(o);r&&(i=encodeURIComponent(i)),t[e]="".concat(n[0],"=").concat(i)}}(t),"?"+t.join("&")):"",(r=s().location)&&(e="".concat(r.protocol,"//").concat(r.hostname).concat(r.pathname)),n&&(e="".concat(e).concat(n)),e;var t,e,n,r},"page.referrer":function(t){return t.doc.referrer},"site.privateLabelId":function(){return bn()}},Sn={win:s,doc:l};const _n=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wn(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=On(r);if(o){var n=On(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===hn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"init",value:function(t){var e=t.traceId,n=t.contextFnMap,r=t.paramsFnMap;gn(On(a.prototype),"init",this).call(this,{context:{traceId:e},contextFnMap:n,paramsFnMap:r})}}])&&mn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(pn))({contextFnMap:jn,paramsFnMap:Sn,windowName:"globalContext"});var Pn=["events"];function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var kn={},Tn=["routing","webContext"],Cn=function(t,e,n){var r=e.callback;try{r(n)}catch(e){g("Failed to push datalayer event to subscriber (".concat(t,") callback"),e)}},xn=function(t,e,n){var r=e.schemaIds,o=function(t,e){e.events;var n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Pn),r=t.fields||[];
1return Tn.forEach((function(t){r.includes(t)||delete n[t]})),n}(e,n);e.batch?(o.events=r?n.events.filter((function(t){return r.includes(t.schemaId)})):n.events,o.events.length>0&&Cn(t,e,o)):n.events.forEach((function(n){r&&!r.includes(n.schemaId)||Cn(t,e,C(o,{event:n}))}))},Rn=[];function In(t){return In="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},In(t)}function Ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==In(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==In(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===In(o)?o:String(o)),r)}var o}var Dn=function(){function t(e,n,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.input=e,this.interfaceType=n,this.interfaceVersion=r,this.internal=o}var e,n;return e=t,(n=[{key:"preProcess",value:function(t){}},{key:"process",value:function(t){}}])&&Ln(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function An(t){return An="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},An(t)}function Mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==An(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===An(o)?o:String(o)),r)}var o}function Bn(t,e){return Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bn(t,e)}function Fn(t){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fn(t)}var qn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bn(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Fn(r);if(o){var n=Fn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===An(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"process",value:function(t){this._pushToQueue(t)}},{key:"_pushToQueue",value:function(t){if(!this.internal.hasFired){var e=this._getEvents(t);if(e&&0!==e.length){for(var n=q(),r=0;r<e.length;r++)e[r].data=C({eventCreationTimestamp:n},e[r].data);var o=this._getGlobalSchemaId(),i=this._getBusinessContext();
1_n.updateContext(),yn.updateContext(),a={schemaId:o,global:_n.context,businessContext:i,events:e,webContext:C(yn.context,this._getWebContext(t)),routing:{eventBusApiKey:this._getApiKey(),globalContextVersion:_n.version,hasConversion:this._hasConversion()}},D(a),Rn.push(a),function(t){for(var e=0,n=Object.entries(kn);e<n.length;e++){var r=(c=2,function(t){if(Array.isArray(t))return t}(a=n[e])||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(a,c)||function(t,e){if(t){if("string"==typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}(a,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];try{xn(o,i,t)}catch(t){g("Failed to push datalayer event batch to subscriber (".concat(o,")"),t)}}var a,c}(a),Rn.length>2e3&&Rn.shift(),this.internal.hasFired=!0}}var a}},{key:"_getSchemaId",value:function(){}},{key:"_getEvents",value:function(t){return[{schemaId:this._getSchemaId(),data:t}]}},{key:"_getGlobalSchemaId",value:function(){return bn()?"urn:shared:user:events:/v2":"urn:shared:user:events:/v1"}},{key:"_getBusinessContext",value:function(){}},{key:"_getApiKey",value:function(){return Bt("eventBus","sccApiKey")}},{key:"_hasConversion",value:function(){}},{key:"_getWebContext",value:function(t){}}])&&Mn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Dn);function Un(t){return Un="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},Un(t)}function Vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Un(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Un(o)?o:String(o)),r)}var o}function Nn(t,e){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nn(t,e)}function Kn(t){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kn(t)}const Gn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nn(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Kn(r);if(o){var n=Kn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Un(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getBusinessContext",value:function(){return this.input.businessContext}},{key:"_getEvents",value:function(){return this.input.events}},{key:"_getApiKey",value:function(){return this.input.apiKey}},{key:"_getGlobalSchemaId",value:function(){return this.input.schemaId}}])&&Vn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(qn);var zn="urn:shared:user:event:/data-platform/signals/click/v1",Wn="urn:shared:user:event:/data-platform/signals/impression/v1",$n="urn:shared:user:event:/data-platform/signals/element-action/v1",Hn="urn:shared:user:event:/data-platform/signals/traffic-event/v1",Qn="urn:shared:user:event:/data-platform/signals/page-view/v1",Jn="urn:shared:user:event:/data-platform/signals/ecommerce/add-to-cart/v1",Zn="urn:shared:user:event:/data-platform/signals/ecommerce/checkout-progress/v1",Xn="urn:shared:user:event:/data-platform/signals/ecommerce/remove-from-cart/v1",Yn="urn:shared:user:event:/data-platform/signals/ecommerce/transaction/v2",tr="urn:shared:user:event:/data-platform/signals/experiment-assignment/v1",er="urn:shared:user:event:/rigor/page-navigation/v1",nr="urn:shared:user:event:/rigor/page-navigation-delayed/v1",rr="urn:shared:user:event:/data-platform/signals/conversion/v1",or=/[^a-z0-9\_\/\.\-]/g,ir=/^([a-z0-9_\-]+)\.([a-z0-9_\-]+)\.(([a-z0-9_\/\-]+)\.)?([a-z0-9_\/\-]+)\.([a-z0-9_\-]+)\.([a-z0-9_\-]+)$/g,ar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.eid,n=t.customProperties,r=t.eventCategory;return C({pageLevelProperties:C(Kt),identityRealm:Bt("identity","realm")},e&&{eid:e},n&&{customProperties:n},r&&{eventCategory:r})},cr=function(t,e,n,r){var o={traffic:ar({eid:e,customProperties:r}),producerEventId:t};
1if(e){var i=function(t){return t.split(".")}(e),a=function(t){return t[t.length-1]}(i);(function(t){return!!(t.match(ir)&&t.length<=500)})(e)&&function(t,e,n){return e===n&&t.length>=5&&t.length<=6}(i,a,n)&&(o.element=function(t,e){var n=6===t.length?1:0,r={area:t[0],product:t[1],section:t[2+n],widget:t[3+n]};return["impression","click"].includes(e)||(r.action=e),r}(i,a))}return o},ur=function(t,e,n,r){null!=r&&null!=n&&0!==r&&0!==n&&n>r&&(t[e]=Math.round(n-r))},fr=function(t,e,n,r){var o=Y(e);!function(t,e){ur(t,"pageLoadTime",e.loadEventStart,e.navigationStart),ur(t,"domContentLoadedTime",e.domContentLoadedEventStart,e.navigationStart),ur(t,"domInteractiveTime",e.domInteractive,e.navigationStart),ur(t,"pageDownloadTime",e.responseEnd,e.responseStart),ur(t,"domainLookupTime",e.domainLookupEnd,e.domainLookupStart),ur(t,"serverResponseTime",e.responseStart,e.requestStart),ur(t,"serverConnectionTime",e.connectEnd,e.connectStart),ur(t,"redirectionTime",e.fetchStart,e.navigationStart)}(o,e);var i={navigationType:e.navigationType,timing:{navigation:o},traffic:ar({customProperties:n}),producerEventId:t,contentLoadType:r};return"hard"===r&&(i.response=tt(e),i.timing.marks=e.marks,i.timing.measures=e.measures,i.timing.paint={firstPaint:e.fp,firstContentfulPaint:e.fcp,largestContentfulPaint:e.lcp}),i},sr=function(t,e){return{timing:{paint:{largestContentfulPaint:e.LCP},vitals:{cumulativeLayoutShift:e.CLS,firstInputDelay:e.FID,timeToInteractive:e.timeToInteractive}},traffic:ar(),producerEventId:t}};function lr(t){return lr="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},lr(t)}function pr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==lr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===lr(o)?o:String(o)),r)}var o}function yr(t,e){return yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yr(t,e)}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}const dr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=vr(r);if(o){var n=vr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===lr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,n=[{key:"_getSchemaId",value:function(){return $n}},{key:"_getActionType",value:function(t){return t.element.action}},{key:"_getEvents",value:function(t,e){var n=t.traffic||{};return n.eid=this._buildLegacyEid(this._getActionType(t),t.element,n.eid),[{schemaId:this._getSchemaId(),data:C(t,{producerEventId:e||this.internal.eventId,element:t.element,traffic:ar(n)})}]}},{key:"_buildLegacyEid",value:function(t,e){return arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(e.area,".").concat(e.product,".").concat(e.section,".").concat(e.widget,".").concat(t)}},{key:"_transformLegacyPromo",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.eid,o=n.customProperties,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{id:i.id,name:i.name,creative_name:i.creative,creative_slot:i.position,type:t,properties:o,eid:this._buildLegacyEid(t,e,r)}}},{key:"_isPromo",value:function(t){return t.promotion&&Object.keys(t.promotion).length>0}}],n&&pr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(qn);function br(t){return br="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},br(t)}function hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==br(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===br(o)?o:String(o)),r)}var o}function mr(t,e){return mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mr(t,e)}function gr(t){return gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gr(t)}const wr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=gr(r);
1if(o){var n=gr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===br(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getSchemaId",value:function(){return zn}},{key:"_getActionType",value:function(){return"click"}}])&&hr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(dr);function Or(t){return Or="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},Or(t)}function jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Or(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Or(o)?o:String(o)),r)}var o}function _r(){return _r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Er(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},_r.apply(this,arguments)}function Pr(t,e){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pr(t,e)}function Er(t){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Er(t)}const kr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Er(r);if(o){var n=Er(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getSchemaId",value:function(){return Wn}},{key:"_getActionType",value:function(){return"impression"}},{key:"_getEvents",value:function(t){var e=this,n=[];return t.impressions.forEach((function(t){var r;n.push.apply(n,function(t){if(Array.isArray(t))return jr(t)}(r=_r(Er(a.prototype),"_getEvents",e).call(e,t,te()))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return jr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})),n}}])&&Sr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(dr);function Tr(t){return Tr="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},Tr(t)}function Cr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Tr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Tr(o)?o:String(o)),r)}var o}function xr(t,e){return xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xr(t,e)}function Rr(t){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rr(t)}var Ir=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Rr(r);if(o){var n=Rr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Tr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"process",value:function(t){x(t.config),T(t.config,(function(e,n){if(!t.overwrite){var r=Lt.get(e);U(r)?n=[].concat(r,n):"object"===Tr(r)&&(n=C(r,n))}Lt.set(e,n)}))}}])&&Cr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Dn);function Lr(t){return Lr="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},Lr(t)}function Dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Lr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Lr(o)?o:String(o)),r)}var o}function Ar(t,e){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ar(t,e)}function Mr(t){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mr(t)}var Br=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ar(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Mr(r);if(o){var n=Mr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Lr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"process",value:function(t){var e,n,r;
1e=t.name,n={callback:t.callback,schemaIds:t.schemaIds,batch:t.batch,fields:t.fields},(r=[].concat(Rn)).length>=2e3&&w("".concat(e," subscribed to SCC after the eventQueue was full. Some events may have been lost.")),r.forEach((function(t){return xn(e,n,t)})),kn[e]=n}}])&&Dr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Dn);function Fr(t){return Fr="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},Fr(t)}function qr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Fr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Fr(o)?o:String(o)),r)}var o}function Ur(){return Ur="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Nr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Ur.apply(this,arguments)}function Vr(t,e){return Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vr(t,e)}function Nr(t){return Nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nr(t)}var Kr,Gr,zr=function(t){var e={};if(U(t))for(var n=0;n<t.length;n++){var r=t[n];U(r)&&(e[r[0]]=R(r))}return e},Wr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Nr(r);if(o){var n=Nr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"setTDataString",value:function(t){Ur(Nr(a.prototype),"merge",this).call(this,function(t){return I(t,"^",",")}(t))}},{key:"stringify",value:function(){var t,e=x(this.getProperties());(t=e)&&T(t,(function(e,n){var r=(e+"").split(".").join("_");delete t[e],t[r]=n}));var n=L(e,"^",",");if(n)return n}},{key:"set",value:function(t,e){"object"!==Fr(e)&&"[object Function]"!=={}.toString.call(e)?Ur(Nr(a.prototype),"set",this).call(this,t,e):g("Invalid key/value pair found in Traffic's custom properties (tData). Objects, arrays, and functions are not supported.\n\nKey: '".concat(t,"' Value: '").concat(e,"' Type: '").concat(Fr(e),"'."))}}])&&qr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(W),$r=function(t){var e=new Wr;return e.merge(t.custom_properties),t.traffic&&e.merge(t.traffic.customProperties),e},Hr=function(t){var e=t.traffic;return e&&function(t,e){var n=t.eid||e&&e();if(!n)throw"";if(t.eid=n.toLowerCase(),function(t){return t.match(or)}(t.eid))throw t.eid,""}(e),t},Qr=function(){return Math.floor(2147483647*Math.random())};function Jr(t){return Jr="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},Jr(t)}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Jr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Jr(o)?o:String(o)),r)}var o}function Xr(t,e){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xr(t,e)}function Yr(t){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yr(t)}var to=0,eo=function(){var t=Lt.get("components");if(Gr!==t)return Gr=t},no=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xr(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Yr(r);if(o){var n=Yr(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Jr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getWebContext",value:function(){return{pageViewCount:to}}},{key:"_getEvents",value:function(t){var e=$r(t);return[{schemaId:Qn,data:{forensics:{traceIdAdopted:M(Je.get("traced")),components:eo()},traffic:ar({customProperties:e.getProperties()}),producerEventId:this.internal.eventId}}]}},{key:"preProcess",value:function(t){var e=t.path||t.virtual_path||t.virtualPath,n=void 0!==e;
1if(n||(e=s().location.pathname),Kr===e)throw"cmd: LogPageRequest duplicate page request detected, ignoring duplicate path";Kr=e,Je.set("corrid",Qr()),n&&($t(),Je.set("virtual_path",e)),Ze.incrementPageCount(),to+=1,Je.get("trace_id")||Je.merge(rn())}}])&&Zr(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(qn),ro=function(t){return[(new Re).map("element",[new xe("area").required(),new xe("product").required(),new xe("section").required(),new xe("widget").required()]).required().extend(t)]},oo=function(t){return[(new Re).map("traffic",[new xe("customProperties")]).extend(t)]},io=function(){return[(new Re).substitute(oo([new xe("eid")]))]},ao=function(){return[(new Re).substitute(ro()),(new Re).substitute(io()),(new Re).map("promotion",[new xe("id").required(),new xe("name"),new xe("creative"),new xe("position")]),(new Re).map("product",[new xe("actionCode").required().allowedValues(["add_to_cart","product_detail"]),(new Re).map("basket",[new xe("couponCode"),new xe("currencyCode"),new xe("itemTrackingCode")]),(new Ie).map("products",[new xe("productId").required(),new xe("productName"),new xe("productInstanceId"),new xe("priceUsd"),new xe("quantity").required(),new xe("couponCode"),new xe("itemTrackingCode")]),(new Ie).map("packages",[new xe("id"),new xe("priceUsd"),new xe("quantity"),new xe("category")])])]};const co={add_click:{v1:{handler:wr,properties:[(new Re).substitute(ao()).transform(Hr)]}},add_element_action:{v1:{handler:dr,properties:[(new Re).substitute([(new Re).substitute(ro([new xe("action").required().allowedValues(["blur","drag","focus","hover","load","scroll"])])),(new Re).substitute(io())]).transform(Hr)]}},add_impressions:{v1:{handler:kr,properties:[(new Ie).map("impressions",[(new Re).substitute(ao()).transform(Hr)]).withMinElements(1)]}},add_virtual_page_view:{v1:{handler:no,properties:[new xe("virtualPath").required(),(new Re).substitute(oo())]}},add_micro_events:{v1:{handler:Gn,properties:[new xe("apiKey").required(),new xe("schemaId").required(),(new Ie).map("events",[new xe("schemaId").required(),new xe("data").required()]).withMinElements(1),(new Re).map("businessContext",[new xe("schemaId").required(),new xe("data").required()])]}},subscribe:{v1:{handler:Br,properties:[new xe("name").required(),new xe("callback").required(),new xe("schemaIds"),new xe("fields"),new xe("batch")]}},set_config:{v1:{handler:Ir,properties:[(new Re).map("config",[(new Ie).map("components",[new xe("name").required(),new xe("version").required().outputType(ve)]),(new Re).map("cookie",[new xe("sameSite")]),(new Re).map("page",[new xe("spa"),new xe("id"),new xe("contentGroup"),new xe("referrerExclusion")]),(new Re).map("identity",[new xe("realm")]),(new Re).map("site",[new xe("privateLabelId")]),(new Re).map("timing",[new xe("auto")])]).required(),new xe("overwrite")]}}};function uo(t){return uo="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},uo(t)}function fo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function so(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t,e){if("object"!==uo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===uo(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lo=!1,po=function(t){var e=t.trfqMethods,n=t.legacyName,r=t.dataLayerConfig,o=t.globalContextConfig,i=t.hooks,a=i.onLoad,c=i.beforeLoad,u=i.beforeEvent,f=i.getEnvironment;if(!lo){lo=!0,Ft("build","env",f&&f()||Bt("build","env")),Je.merge(rn()),_n.init(so({traceId:Je.get("trace_id")},o)),ye(co),function(){var t=s();if(t.PerformanceObserver){var e=new t.PerformanceObserver((function(t){var e=t.getEntries(),n=e[e.length-1];n.renderTime&&(H.lcp=Math.round(n.startTime))}));try{e.observe({type:"largest-contentful-paint",buffered:!0})}catch(t){}}}();
1var p=new ut("complete"===l().readyState,(function(t){s().addEventListener("load",t)}));Ze.getSession(),c&&c();var y=new Ne(so({autoPageViewDisabled:Lt.get("".concat(n,".manualPageRequest")),beforeEvent:u},r));p.registerOnLoadFn((function(){a&&a(),y.start(),new Qe(e),Bt("timing","auto")&&function(t,e,n){if(!ot)if(ot=!0,rt())nt(t,et(t,e),n);else var r=setInterval((function(){rt()&&(clearInterval(r),nt(t,et(t,e),n))}),250)}(n,"auto"),Bt("eventBus","enabled")&&(S(Pt,[]),_t=new St(Et),s()._signalsDataLayer=s()._signalsDataLayer||[],s()._signalsDataLayer.push({schema:"subscribe",data:{name:"scc-plugin-sink-event-bus",batch:!0,fields:["routing"],callback:function(t){var e=t.schemaId,n=t.global,r=t.businessContext,o=t.events,i=t.routing,a=i.eventBusApiKey,c=i.hasConversion,u=i.globalContextVersion;_t.pushEvent({apiKey:a,businessContext:r,contextVersion:u,schemaId:e,global:n,events:o},c)}}}))})),m("SCC STARTED",Lt.getProperties())}};function yo(t){return yo="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},yo(t)}function vo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,bo(r.key),r)}}function bo(t){var e=function(t,e){if("object"!==yo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===yo(e)?e:String(e)}function ho(t){return ho="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},ho(t)}function mo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jo(r.key),r)}}function go(t,e){return go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},go(t,e)}function wo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oo(t){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oo(t)}function jo(t){var e=function(t,e){if("object"!==ho(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ho(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ho(e)?e:String(e)}var So="_tccl_visitor",_o="_tccl_visit",Po=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&go(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Oo(r);if(o){var n=Oo(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ho(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wo(t)}(this,t)});function a(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];return e=wo(t=i.call.apply(i,[this].concat(c))),r="_scc_session",(n=jo(n="_sessionCookieName"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=a,(n=[{key:"getSession",value:function(){var t=en(So),e=en(_o);t||e?(t||(t=te()),e||(e=te())):t=e=te(),tn(So,t,525600,"/"),tn(_o,e,30,"/");var n=nn(this._sessionCookieName);return{visitorGuid:t,visitGuid:e,pageCount:B(n.pc)||0}}}])&&mo(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(function(){function t(){var e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=void 0,(n=bo(n="_sessionCookieName"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}var e,n;return e=t,(n=[{key:"getSession",value:function(){}},{key:"saveSessionCookie",value:function(t){var e=L(t,"&","=");tn(this._sessionCookieName,e,20,"/")}},{key:"incrementPageCount",value:function(){var t=nn(this._sessionCookieName),e=B(t.pc)||0;
1t.pc=e+1,t.C_TOUCH=q(),this.saveSessionCookie(t)}}])&&vo(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function Eo(t){return Eo="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},Eo(t)}function ko(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Eo(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Eo(o)?o:String(o)),r)}var o}function To(t,e){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},To(t,e)}function Co(t){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Co(t)}var xo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&To(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Co(r);if(o){var n=Co(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Eo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getEvents",value:function(t){var e=t.eid,n=t.type.toLowerCase(),r=function(t){return"click"===t?zn:"impression"===t?Wn:["blur","drag","focus","hover","load","scroll"].includes(t)?$n:Hn}(n),o=$r(t).getProperties();return[{schemaId:r,data:r!==Hn?cr(this.internal.eventId,e,n,o):{traffic:ar({customProperties:o,eid:e,eventCategory:n}),producerEventId:this.internal.eventId}}]}}])&&ko(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(qn);function Ro(t){return Ro="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},Ro(t)}function Io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Ro(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ro(o)?o:String(o)),r)}var o}function Lo(t,e){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lo(t,e)}function Do(t){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Do(t)}var Ao=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lo(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Do(r);if(o){var n=Do(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ro(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"_getApiKey",value:function(){return yt("eventBus","rigorApiKey")}},{key:"_getEvents",value:function(t){var e=t.is_hard_navigation?"hard":"soft",n=t.timing_object;if(n){if(n.navigationStart)return[{schemaId:er,data:fr(this.internal.eventId,n,t.custom_properties,e)}];if(n.timeToInteractive)return[{schemaId:nr,data:sr(this.internal.eventId,n)}]}}}])&&Io(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(qn),Mo=function(){return[new xe("custom_properties").optional()]};const Bo={add_event:{v1:{handler:xo,properties:[new xe("type").required(),(new Re).substitute([new xe("eid").optional()]),(new Re).substitute(Mo())]}},add_page_view:{v1:{handler:no,properties:[new xe("path").optional(),(new Re).substitute(Mo())]}},add_perf:{v1:{handler:Ao,properties:[new xe("timing_object").required(),new xe("is_hard_navigation").optional(),(new Re).substitute(Mo())]}}},Fo=function(t,e,n){s()._expDataLayer.push({schema:"add_event",version:"v1",data:{type:t,eid:e,custom_properties:zr(n)}})},qo=function(t,e){s()._expDataLayer.push({schema:"add_perf",version:"v1",data:{timing_object:t,custom_properties:zr(e)}})};var Uo="traffic.tcc.instrumentation.navigation.timing",Vo="click",No="impression",Ko=function(t,e){var n=e.data,r=n.traffic.eid,o=n.element,i=void 0===o?{}
1:o,a=i.area,c=i.product,u=i.section,f=i.widget;return null!=r?r:"".concat(a,".").concat(c,".").concat(u,".").concat(f,".").concat(t)},Go=function(t){var e=t.data,n=e.element,r=e.traffic.eid;return n?n.action:r.split(".").pop()},zo=function(t){var e,n;switch(t.schemaId){case Yn:return function(t,e,n){var r=n.newCustomerFlag,o=n.newVsRenewal;t=t||"modular-cart";var i=e?"payment-pending_":"payment-processed_";return"ecomm.payments.transaction.".concat(r?"new-customer_":"existing-customer_").concat(i).concat(o,".").concat(t,".success")}(null===(e=t.data.cart)||void 0===e?void 0:e.type,null===(n=t.data.payment)||void 0===n?void 0:n.pendingFlag,t.data.order);case Jn:return"gpd.exp.tcc.add-to-cart.success";case Xn:return"gpd.exp.tcc.remove-from-cart.success";case Zn:return 1===t.data.checkout.step?"gpd.exp.tcc.begin-checkout.success":"gpd.exp.tcc.checkout-progress.success";case tr:return"traffic.tcc.instrumentation.experiment.add_experiment";case rr:return"".concat("tcc.conversion.").concat(t.data.conversion.area,".").concat(t.data.conversion.product,".").concat(t.data.conversion.revenue,".").concat(t.data.conversion.action);case Hn:return t.data.traffic.eid;case $n:return Ko(Go(t),t);case zn:return Ko(Vo,t);case Wn:return Ko(No,t);case er:case nr:return Uo}},Wo=function(t){switch(t.schemaId){case er:case nr:return"pageperf";case Hn:return t.data.traffic.eventCategory;case rr:return"genConv";case Yn:case Jn:case Xn:case Zn:return"ecommerce";case tr:return"experiment";case $n:return Go(t);case zn:return Vo;case Wn:return No}},$o="perf",Ho="pageevent",Qo=function(t){var e=t.schemaId,n=t.data;switch(e){case Qn:return"pageview";case er:case nr:return $o;case Hn:return n.traffic.eid===Uo?$o:Ho;default:return Ho}};function Jo(t){return Jo="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},Jo(t)}var Zo,Xo="_trfqSendLog",Yo=[Qn,zn,Wn,Hn,$n,nr,er],ti=function(t){var e=t.events,n=t.global,r=t.webContext,o=function(t){var e,n,r=t.traceId,o=t.context,i=t.client,a=t.page;return{dh:a.host,dr:(n=a.referrer,void 0!==n?n.substring(0,1e3):void 0),ua:i.userAgent,client_name:i.sdk.name,cv:i.sdk.version,vg:o.sessionId,vtg:o.visitorId,dp:(e=a.path,e?(/\/$/.test(e)&&(e=e.substring(0,e.length-1)),"/"!==e[0]&&(e="/".concat(e)),e):"notspecified"),trace_id:r}}(n);e.forEach((function(t){var e=t.schemaId,i=t.data,a=C(o,function(t){var e=t.schemaId,n=t.webContext,r=t.data,o=r.eventCreationTimestamp,i=r.producerEventId,a=r.traffic,c=a.customProperties,u=a.pageLevelProperties,f=void 0===u?{}:u,s=new Wr(c),l=new W({cts:o,hit_id:i,ea:Wo(t),ht:Qo(t),eid:zo(t),trfd:JSON.stringify(f),usrin:s.stringify(),ap:f.ap?f.ap:"not_set",vci:n.pageCorrelationId,z:Qr()});return e!==er&&e!==nr||function(t,e){var n=e.schemaId,r=e.data,o=r.navigationType,i=r.contentLoadType,a=r.timing,c=a.navigation,u=a.vitals,f=void 0===u?{}:u,s=a.paint,l=void 0===s?{}:s;n===er?t.merge({tce:c.connectEnd,tcs:c.connectStart,tdc:c.domComplete,tdclee:c.domContentLoadedEventEnd,tdcles:c.domContentLoadedEventStart,tdi:c.domInteractive,tdl:c.domLoading,tdle:c.domainLookupEnd,tdls:c.domainLookupStart,tfs:c.fetchStart,tns:c.navigationStart,trqs:c.requestStart,tre:c.responseEnd,trps:c.responseStart,tles:c.loadEventStart,tlee:c.loadEventEnd,nt:o,LCP:l.largestContentfulPaint}):n===nr&&(i="hard",t.merge({LCP:l.largestContentfulPaint,CLS:f.cumulativeLayoutShift,FID:f.firstInputDelay,timeToInteractive:f.timeToInteractive})),t.set("nav_type",i)}(l,t),l.getProperties()}({schemaId:e,data:i,webContext:r,global:n}));!function(t,e){var n,r,o=ht("events.api")+e,i=(r={},T(t,(function(t,e){void 0!==e&&"object"!==Jo(e)&&"[object Function]"!=={}.toString.call(e)&&(r[t]=e)})),n={},T(r,(function(t,e){void 0!==e&&(n[t]=encodeURIComponent(e))})),n),a=function(t,e){var n=-1===e.indexOf("?")?"?":"&",r=L(t,"&","=");return"".concat(e).concat(n).concat(r)}(i,o);pt(a,L(i,"&","="),"GET",null,Xo)}(a,"/t/1/tl/event")}))},ei={session:function(){return Ze.getSession()}},ni={pageCorrelationId:function(){return Je.get("corrid")}},ri="tccl";return Zo=new Po,Ze=Zo,ye(Bo),function(t){var e=t.legacyName,n=t.configManagerProps,r=t.hooks.beforeInit;!function(o){try{var i,a=l().cookie;Object.defineProperty(document,"cookie",{get:function(){return a}
1,set:function(t){(i=i||Object.getOwnPropertyDescriptor(Document.prototype,"cookie")).set.call(document,t),a=i.get.call(document)},configurable:!0,enumerable:!0}),function(){if(a=p().userAgent.toLowerCase(),!/msie [1-8]\./.test(a))if(i="_".concat(e,"Internal"),u=i,void 0!==s()[u]||(s()[u]={},0))g("SCC Library has already been loaded on page");else if(function(t){var e=t.dataLayerName,n=t.clientConfigPrefixes,r=t.ignoredProperties,o=t.legacyName;Dt=o,Vt=r||[],Mt=e,Ut=n,At=s()[Mt]||[],_(Mt,At),S("".concat(Mt,"Log"),Nt),$t()}(n),r&&r(),"off"!==Lt.get("".concat(e,".status"))){var o=l();"prerender"!==o.visibilityState?po(t):o.addEventListener("visibilitychange",(function(){"prerender"!==o.visibilityState&&"unloaded"!==o.visibilityState&&po(t)}))}var i,a}()}finally{delete l().cookie}}()}({legacyName:ri,trfqMethods:r,configManagerProps:{legacyName:ri,dataLayerName:"_trfd",clientConfigPrefixes:[ri]},dataLayerConfig:{pageViewSchema:"add_page_view",autoPageViewDisabled:!1,immediateSchemas:["add_page_view"]},globalContextConfig:{contextFnMap:{"context.userType":function(){return"c2"},"context.visitorId":function(t){return t.session.visitorGuid},"context.sessionId":function(t){return t.session.visitGuid},"page.sessionPageViewCount":function(t){return t.session.pageCount}},paramsFnMap:ei},hooks:{getEnvironment:function(){var t=Lt.get("".concat(ri,".baseHost"));if(t)return"secureserver.net"===t?"prod":"test-secureserver.net"===t?"test":"dev"},onLoad:function(){S(Xo,[]),s()._signalsDataLayer=s()._signalsDataLayer||[],s()._signalsDataLayer.push({schema:"subscribe",data:{name:"scc-plugin-sink-event-service",batch:!0,callback:ti,schemaIds:Yo,fields:["webContext"]}})},beforeLoad:function(){yn.init({contextFnMap:ni})}}}),e})()));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.