/*! For license information please see track.js.LICENSE.txt */ (()=>{"use strict";var t={endpoint:"universe.send.microad.jp/tr"},e={endpoint:"track.u.send.microad.jp/ar/trigger"},r={endpoint:"track.u.send.microad.jp/trig"},n="universe.send.microad.jp/uid",o="_unv_aid",i=2,u=6,a={customerId:1011503,url:"https://dmp.im-apps.net/sdk/im-uid.js"},c=21,l="cdn.microad.jp/tm/{SERVICE_ID}/tc.js",f="cdn.microad.jp/tm/{SERVICE_ID}/tc.{DEBUGFLAG}.js",s="universe.send.microad.jp/event";function h(t){return h="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},h(t)}function y(t,e){for(var r=0;r0;)this.triggerSync(this.queue.shift())}}])&&y(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function m(t){return m="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},m(t)}function d(t,e){for(var r=0;r0&&!!this.id&&this.id.length>0}}])&&k(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function E(t){return E="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},E(t)}function O(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:window.document,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.document.body;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=x(e),function(t,e){if(e&&("object"==E(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)}(t,_()?Reflect.construct(e,r||[],x(t).constructor):e.apply(t,r))}(this,e,[u]))._scriptSrc=a.url,r._customerId=a.customerId,r._timeout=t,r._document=n,r._body=o,r}return 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&&T(t,e)}(e,t),r=e,(n=[{key:"track",value:function(t){this._appendScriptTag(this._scriptSrc,this._document,this._body),window.IMUIDRequest=window.IMUIDRequest||[],window.IMUIDRequest.push({customerId:this._customerId,callback:function(e){t(new j(this.audienceType,e.uid))}.bind(this),callbackTimeout:this._timeout})}}])&&O(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(g);function A(t){return A="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},A(t)}function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(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 V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:document.domain,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=F(e),function(t,e){if(e&&("object"==A(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)}(t,U()?Reflect.construct(e,r||[],F(t).constructor):e.apply(t,r))}(this,e,[i])).key=o,t.expireSeconds=7776e3,t.domain=r,t.cookieHolder=n,t}return 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&&G(t,e)}(e,t),r=e,(n=[{key:"track",value:function(t){var e=this.getAidFrom1stCookie(this.key,this.cookieHolder.cookie)||this.createRandomAid();this.setAidInto1stCookie(this.key,e,this.getEtldPlusOneDomain(),this.expireSeconds),t(new j(this.audienceType,e))}},{key:"createRandomAid",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map((function(t){switch(t){case"x":return Math.floor(16*Math.random()).toString(16);case"y":return(Math.floor(4*Math.random())+8).toString(16);default:return t}})).join("")}},{key:"getEtldPlusOneDomain",value:function(){for(var t=document.domain.split("."),e="mtcn",r="mtcnv",n=-2;n>=-t.length;n--){var o=t.slice(n).join(".");if(this.setAidInto1stCookie(e,r,o,10),null!=this.getAidFrom1stCookie(e,this.cookieHolder.cookie))return this.setAidInto1stCookie(e,r,o,0),o}}},{key:"getAidFrom1stCookie",value:function(t,e){for(var r=e.split("; "),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],u=i[4],a=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function L(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function $(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){L(i,n,o,u,a,"next",t)}function a(t){L(i,n,o,u,a,"throw",t)}u(void 0)}))}}function Y(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:window.document.domain,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.key="_unv_id",this.expireSeconds=3600,this.domain=o,this.cookieHolder=i,this.requestUrl="https://".concat(n),this.clientHintValue=r,this.timeout=e},e=[{key:"getValue",value:(o=$(q().mark((function t(){var e;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==(e=this.getAidFrom1stCookie(this.key,this.cookieHolder.cookie))){t.next=3;break}return t.abrupt("return",e);case 3:return t.next=5,this.fetchUniverseId();case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"getUniverseIdApiParams",value:function(){var t=window.location.href,e=this.getAidFrom1stCookie("_unv_aid",this.cookieHolder.cookie),r={url:t,ch:null==this.clientHintValue?void 0:{browsers:this.clientHintValue.fullVersionList,platform:{brand:this.clientHintValue.platform,version:this.clientHintValue.platformVersion},mobile:this.clientHintValue.mobile,architecture:this.clientHintValue.architecture,model:this.clientHintValue.model},aids:null==e?void 0:[{type:2,id:"".concat(e)}]};return JSON.stringify(r)}},{key:"fetchUniverseId",value:function(){var t=this,e=new Promise((function(e,r){return setTimeout((function(){return r(void 0)}),t.timeout)})),r=this.getUniverseIdApiParams();return Promise.race([this.getUnvId(r),e]).then((function(t){return Promise.resolve(t)})).catch((function(){return Promise.resolve(void 0)}))}},{key:"getUnvId",value:(r=$(q().mark((function t(e){var r=this;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(this.requestUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:e}).then((function(t){return t.json()})).then((function(t){var e=t[r.key];return null!=e&&r.setUnvIdInto1stCookie(r.key,e,r.getEtldPlusOneDomain(),r.expireSeconds),e})).catch((function(){}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"getEtldPlusOneDomain",value:function(){for(var t=document.domain.split("."),e="mtcn",r="mtcnv",n=-2;n>=-t.length;n--){var o=t.slice(n).join(".");if(this.setUnvIdInto1stCookie(e,r,o,10),null!=this.getAidFrom1stCookie(e,this.cookieHolder.cookie))return this.setUnvIdInto1stCookie(e,r,o,0),o}}},{key:"getAidFrom1stCookie",value:function(t,e){for(var r=e.split("; "),n=0;n=1?this.tags.normal[0].content:null!=this.tags.og&&this.tags.og.length>=1?this.tags.og[0].content:null!=this.tags.twitter&&this.tags.twitter.length>=1?this.tags.twitter[0].content:void 0}}])&&nt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function at(t){return at="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},at(t)}function ct(t,e,r){return e=ft(e),function(t,e){if(e&&("object"==at(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)}(t,lt()?Reflect.construct(e,r||[],ft(t).constructor):e.apply(t,r))}function lt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lt=function(){return!!t})()}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}function st(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&&ht(t,e)}function ht(t,e){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ht(t,e)}function yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pt(t){for(var e=1;e=0;--o){var i=this.tryEntries[o],u=i[4],a=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function It(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function Vt(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],u=i[4],a=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function ve(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function me(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){ve(i,n,o,u,a,"next",t)}function a(t){ve(i,n,o,u,a,"throw",t)}u(void 0)}))}}function de(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=1e4&&(r.hasTrackedActiveTime10s=!0,r.trackEvent(_e,"active_tab_10s",r.getCurrentActiveTime()),clearInterval(r.activeTimeCheckInterval),r.activeTimeCheckInterval=null)}),100)}),[{key:"getCurrentActiveTime",value:function(){return this.totalActiveTime+(this.isActiveTab?Date.now()-this.lastActiveStartTime:0)}},{key:"watchVisibility",value:function(){var t=this;document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?(t.isActiveTab&&(t.totalActiveTime+=Date.now()-t.lastActiveStartTime),t.isActiveTab=!1):"visible"===document.visibilityState&&(t.isActiveTab=!0,t.lastActiveStartTime=Date.now())}))}},{key:"trackOnScroll",value:function(){var t=this;window.addEventListener("scroll",(function(){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ke(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(t.scrollTrackers);try{for(r.s();!(e=r.n()).done;){var n=e.value;n.checkReached()&&t.trackEvent(_e,n.eventName,t.getCurrentActiveTime())}}catch(t){r.e(t)}finally{r.f()}}))}},{key:"trackOnPageView",value:function(){var t=this;document.addEventListener("click",(function(e){!t.hasTrackedPageView&&e.target.closest("a")&&(t.hasTrackedPageView=!0,t.trackEvent(_e,"page_view",t.getCurrentActiveTime()))}))}},{key:"trackBeforeUnload",value:function(){var t=this;window.addEventListener("beforeunload",(function(){t.isActiveTab?t.trackEvent(_e,"delete_active_tab",t.getCurrentActiveTime()):t.trackEvent(_e,"delete_unactive_tab",t.getCurrentActiveTime()),t.activeTimeCheckInterval&&(clearInterval(t.activeTimeCheckInterval),t.activeTimeCheckInterval=null)}))}},{key:"watchEngagementEvents",value:function(){this.watchVisibility(),this.trackOnScroll(),this.trackOnPageView(),this.trackBeforeUnload()}}])}(),Ce=function(){return Oe((function t(e){je(this,t),this.endpoint=e}),[{key:"post",value:function(t,e,r,n){try{var o=this.endpoint,i={service_id:t,track_code:e,track_event:r,active_time_msec:n},u=JSON.stringify(i);if(navigator.sendBeacon){var a=new Blob([u],{type:"application/json"});navigator.sendBeacon(o,a)}else fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:u,keepalive:!0}).catch((function(t){return console.error(t)}))}catch(t){console.error(t)}}}])}();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 Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ve(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ve(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 Ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r2&&void 0!==arguments[2]?arguments[2]:document.domain,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:location.search.substring(1),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.key=e,this.expireSeconds=r,this.domain=n,this.query=o,this.cookieHolder=i},(e=[{key:"track",value:function(){var t=this.getAidFromQuery(this.query),e=this.getAidFrom1stCookie(this.cookieHolder.cookie);return t?(this.setAidInto1stCookie(t),t):e?(this.setAidInto1stCookie(e),e):null}},{key:"getAidFromQuery",value:function(t){for(var e=t.split("&"),r=0;r1&&void 0!==arguments[1]?arguments[1]:function(){return new Image};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.endpoint=e,this.imageFactory=r},(e=[{key:"notify",value:function(t,e){var r="".concat(this.endpoint,"?").concat(this.createQuery(t)),n=this.imageFactory();return n.src=r,n.onload=e(),n}},{key:"createQuery",value:function(t){return Object.keys(t).filter((function(e){return null!==t[e]&&void 0!==t[e]})).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&")}}])&&Ge(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function He(t){return He="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},He(t)}function Be(t,e){for(var r=0;r7&&void 0!==arguments[7]?arguments[7]:location.href,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:document.referrer;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.serviceId=e.service_id,this.urlMacro="${URL_MACRO}"===e.url_macro?null:e.url_macro,this.referrerMacro="${REFERRER_MACRO}"===e.referrer_macro?null:e.referrer_macro,this.propertyId=this._propertyId(e.property_id),this.keyValueSet=r||[],this.isEnableAR=o,this.contentValues=i,this.clientHintValue=u,this.audiences=a,this.url=c,this.referrer=l,this.cacheBuster=n},(e=[{key:"_propertyId",value:function(t){return null==t||t.includes("${PROPERTY_ID}")?null:this._toArrayString(t)}},{key:"_toArrayString",value:function(t){var e=this._toArray(t);return e?"[".concat(e,"]"):null}},{key:"_toArray",value:function(t){try{return Array.prototype.concat.apply([],JSON.parse("[".concat(t,"]")))}catch(t){return null}}},{key:"collect",value:function(t,e){return{service_id:this.serviceId,url:this.url?encodeURIComponent(this.url):null,url_macro:this.urlMacro?encodeURIComponent(this.urlMacro):null,referrer:this.referrer?encodeURIComponent(this.referrer):null,referrer_macro:this.referrerMacro?encodeURIComponent(this.referrerMacro):null,property_id:this.propertyId?encodeURIComponent(this.propertyId):null,enc_aid:t||null,cbt:this.cacheBuster.generate(),kv_set:encodeURIComponent(JSON.stringify(this.keyValueSet)),track_code:encodeURIComponent(e),title:this.contentValues.title?encodeURIComponent(this.contentValues.title):null,description:this.contentValues.description?encodeURIComponent(this.contentValues.description):null,keywords:this.contentValues.keywords?encodeURIComponent(this.contentValues.keywords):null,ch:this.clientHintValue&&Object.keys(this.clientHintValue).length>0?encodeURIComponent(JSON.stringify(this.clientHintValue)):null,aids:this.audiences&&this.audiences.length>0?encodeURIComponent(JSON.stringify(this.audiences)):null,ar:this.isEnableAR?encodeURIComponent(this.isEnableAR):null,ver:encodeURIComponent('["track.js.v'.concat("1.4.0",'"]'))}}}])&&Be(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function $e(t){return $e="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},$e(t)}function Ye(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r2&&void 0!==arguments[2]?arguments[2]:function(){},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._doneComplete=!1,this._trackers=e,this._timeoutMs=r,this._onProcess=n,this._onComplete=o},(e=[{key:"track",value:function(){if(this._trackers&&this._trackers.length>0){var t,e=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Xe(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(this._trackers);try{for(e.s();!(t=e.n()).done;){var r=t.value;this._addTracker(r)}}catch(t){e.e(t)}finally{e.f()}setTimeout(this._onceComplete.bind(this),this._timeoutMs)}else this._onceComplete()}},{key:"_onceComplete",value:function(){this._doneComplete||(this._doneComplete=!0,this._onComplete())}},{key:"_done",value:function(t){this._removeTracker(t.type),t.isValid()&&this._onProcess(t),this._trackers.length<=0&&this._onceComplete()}},{key:"_addTracker",value:function(t){t.track(this._done.bind(this))}},{key:"_removeTracker",value:function(t){this._trackers=this._trackers.filter((function(e){return e.audienceType!==t}))}}])&&ze(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();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 er(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],u=i[4],a=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function pr(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function vr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){pr(i,n,o,u,a,"next",t)}function a(t){pr(i,n,o,u,a,"throw",t)}u(void 0)}))}}function mr(t,e){for(var r=0;r=0&&br.audiences.splice(e,1),br.audiences.push(t)}),(function(){var t,e=new wt,r=c.createContentTrackers(e.headElement),a=e.collect(r),m=new Ue(h,y).track(),b=!(null===(t=document.featurePolicy)||void 0===t||!t.allowsFeature("attribution-reporting")),g=new Le(n,o,p,b,a,d,br.audiences),w={};u.isEngagementTrack?(delete(w=g.collect(m,i)).property_id,delete w.title,delete w.description,delete w.keywords,delete w.ar):w=g.collect(m,i),new De(l).notify(w,(function(){br.iframe.triggerSync(v)})),w.ch=null,c.targetConfigValues.trig.isAllowed()&&new ar(s).render(new nr(w)),c.targetConfigValues.ar.isAllowed()&&new De(f,(function(){var t=new Image;return t.setAttribute("attributionsrc",""),t})).notify(w,(function(){}))})).track();case 13:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}();this.controllerConfigRepository.fetchConfigBy(n.service_id,this.timeout).catch((function(){return re()})).then((function(t){return new Tt(t)})).then(function(){var t=vr(yr().mark((function t(e){return yr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(e);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}],o&&mr(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}();function wr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],u=i[4],a=this.prev,c=i[1],l=i[2];if(-1===i[0])return n("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),j(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:O(e),r,n},"next"===this.method&&(this.arg=t),s}},e}function jr(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function Er(t,e){for(var r=0;r