!function(){"use strict";var t,e,r,n,o,i,a,c,u,s={},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}};return s[t](r,r.exports,f),r.exports}f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.rv=function(){return"1.3.15"},f.ruid="bundler=rspack@1.3.15",(t=a||(a={})).WINDOWS_PHONE="Windows Phone",t.ANDROID="android",t.IOS="ios",t.PC="pc",(e=c||(c={})).MUSICAL_LY="musical_ly",e.MUSICALLY_GO="musically_go",e.TRILL="trill",e.ULTRALITE="ultralite",e.LEMON8="lemon8",e.TTLINK="ttlink",(i={})[c.LEMON8]={},i[c.TTLINK]={},i[c.MUSICAL_LY]=((n={})[a.IOS]="33.4.0",n[a.ANDROID]="23.1.0",n),i[c.TRILL]=((o={})[a.IOS]="33.4.0",o[a.ANDROID]="23.1.0",o);var p=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==f.g?f.g:Function("return this")()},h=function(){return p().TiktokAnalyticsObject||"ttq"},y=function(){return p()[h()]},d=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}};function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object.create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new E(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return N()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function y(){}var d={};u(d,i,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(T([])));g&&g!==e&&r.call(g,i)&&(d=g);var m=y.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r){return(v=!function(){if("undefined"==typeof Reflect||!Reflect.construct||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(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&g(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var m={error:[]};(r=u||(u={})).LOAD_START="load_start",r.LOAD_END="load_end",r.BEFORE_INIT="before_init",r.INIT_START="init_start",r.INIT_END="init_end",r.JSB_INIT_START="jsb_init_start",r.JSB_INIT_END="jsb_init_end",r.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",r.AD_INFO_INIT_START="ad_info_init_start",r.AD_INFO_INIT_END="ad_info_init_end",r.IDENTIFY_INIT_START="identify_init_start",r.IDENTIFY_INIT_END="identify_init_end",r.PLUGIN_INIT_START="_init_start",r.PLUGIN_INIT_END="_init_end",r.PIXEL_SEND="pixel_send",r.PIXEL_SEND_PCM="pixel_send_PCM",r.JSB_SEND="jsb_send",r.HTTP_SEND="http_send",r.HANDLE_CACHE="handle_cache",r.INIT_ERROR="init_error",r.PIXEL_EMPTY="pixel_empty",r.JSB_ERROR="jsb_error",r.API_ERROR="api_error",r.PLUGIN_ERROR="plugin_error",r.CUSTOM_INFO="custom_info",r.CUSTOM_ERROR="custom_error",r.CUSTOM_TIMER="custom_timer";try{(function(){if(/function bind\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Function.prototype.bind.toString()))return!0;function t(){}return new(t.bind.apply(t,[void 0,1])) instanceof t})()&&!Function.prototype._ttq_bind?Object.defineProperty(Function.prototype,"_ttq_bind",{value:Function.prototype.bind,enumerable:!1,writable:!1,configurable:!1}):Function.prototype._ttq_bind||Object.defineProperty(Function.prototype,"_ttq_bind",{value:function(t){if("function"!=typeof this)throw TypeError("What is being called by bind is not a function.");var e=t||window,r=Array.prototype.slice.call(arguments).slice(1),n=Symbol("key");return e[n]=this,function t(){return this instanceof t?v(e[n],r.concat(Array.prototype.slice.call(arguments))):e[n].apply(e,r.concat(Array.prototype.slice.call(arguments)))}},enumerable:!1,writable:!1,configurable:!1}),Object._ttq_keys||(Object._ttq_keys=function(t){try{if(Array.isArray(t))return Object.keys(t).filter(function(t){return -1===["each","eachSlice","all","any","collect","detect","findAll","grep","include","inGroupsOf","inject","invoke","max","min","partition","pluck","reject","sortBy","toArray","zip","size","inspect","select","member","_reverse","_each","clear","first","last","compact","flatten","without","uniq","intersect","clone","toJSON","remove","swap","putAll"].indexOf(t)});return Object.keys(t)}catch(e){return Object.keys(t)}});var b=h();function w(t){return null===t?"NULL":void 0===t?"UNDEFINED":"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(t):t.toString()}/function Map\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())?window[b]._ttq_map=Map:window[b]._ttq_map||(window[b]._ttq_map=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.set=function(t,e){return!this.has(t)&&(this.items[w(t)]=e,this.size++),this},window[b]._ttq_map.prototype.get=function(t){return this.items[w(t)]},window[b]._ttq_map.prototype.has=function(t){return void 0!==this.items[w(t)]},window[b]._ttq_map.prototype.delete=function(t){return this.has(t)&&(delete this.items[w(t)],this.size--),this},window[b]._ttq_map.prototype.clear=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.keys=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(r);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()},window[b]._ttq_map.prototype.values=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(this.items[r]);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()}),function(){if(/function create\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())){Object._ttq_create=Object.create;return}Object._ttq_create=function(){function t(){}var e=Object.prototype.hasOwnProperty;return function(r,n){if("object"!=typeof r&&"function"!=typeof r)throw TypeError("Object prototype may only be an Object or null");t.prototype=r;var o=new t;return t.prototype=null,null!=n&&Object.keys(n).forEach(function(t){var r=n[t];if("object"==typeof r&&null!==r)e.call(r,"value")?o[t]=r.value:("function"==typeof r.get||"function"==typeof r.set)&&Object.defineProperty(o,t,r);else throw TypeError("Property description must be an object: "+r)}),o}}()}()}catch(t){!function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=y(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):d("Monitor")&&m.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}(u.INIT_ERROR,t)}}();!function(){var t={616:function(){}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.rv=function(){return"1.3.15"},r.ruid="bundler=rspack@1.3.15",function(){"use strict";var t="tt_adInfo",e="tt_appInfo",n="_tt_enable_cookie",o="_ttp",i="tt_sessionId",a="tt_pixel_session_index",c="ttcsid";(nU=oy||(oy={})).WINDOWS_PHONE="Windows Phone",nU.ANDROID="android",nU.IOS="ios",nU.PC="pc",(nG=om||(om={})).MUSICAL_LY="musical_ly",nG.MUSICALLY_GO="musically_go",nG.TRILL="trill",nG.ULTRALITE="ultralite",nG.LEMON8="lemon8",nG.TTLINK="ttlink";var u=((og={})[om.LEMON8]={},og[om.TTLINK]={},og[om.MUSICAL_LY]=((od={})[oy.IOS]="33.4.0",od[oy.ANDROID]="23.1.0",od),og[om.TRILL]=((ov={})[oy.IOS]="33.4.0",ov[oy.ANDROID]="23.1.0",ov),og),s={expires:390},l="ttoclid",f={"www.agoda.com":"tag","www.tiket.com":"tag_ttoclid"},h={V1:"aam_v1",RM_KEYWORDS:"aam_rm_keywords",DATA_LAYER:"aam_data_layer",TEXT:"aam_text"},p=null,d=function(t){p=t},v=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:Function("return this")()},g=function(){return v().TiktokAnalyticsObject||"ttq"},y=function(){var t=v();return p||t[g()]},m=function(){var t=v();return void 0!==t.DedicatedWorkerGlobalScope?t instanceof t.DedicatedWorkerGlobalScope:"DedicatedWorkerGlobalScope"===t.constructor.name},_=function(){return!!y()._is_onsite},b=function(){var t=v();return("object"==typeof navigator&&navigator.userAgent?navigator.userAgent:"")||t._userAgent},E=function(t){try{var e=y();return e&&e._self_host_config&&e._self_host_config[t]||""}catch(t){return""}},I=function(t,e){void 0===e&&(e=[]);try{return e.includes(t)}catch(t){return!1}},O=function(t){var e=y(),r=e._i||{},n=t&&r[t];return t&&n&&n._partner?n._partner:e._partner?e._partner:""},T=function(t){var e=y(),r=e._i||{};return Object.keys(r).filter(function(e){return r[e]._partner===t}).length>0||e._partner===t},P=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},S=function(){try{var t=y()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}},w={info:[],error:[]};function L(t,e,r){void 0===e&&(e={}),void 0===r&&(r=!1);try{var n=y(),o=null==n.getPlugin?void 0:n.getPlugin("Monitor");o&&o.info&&"function"==typeof o.info?o.info.call(o,t,e,r):P("Monitor")&&w.info.push({event:t,detail:e,withoutJSB:r})}catch(t){}}function x(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=y(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):P("Monitor")&&w.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}function R(t,e){try{var r=y(),n=null==r.getPlugin?void 0:r.getPlugin("DiagnosticsConsole");n&&n.warn.apply(n,[t,e])}catch(t){}}function N(){var t={lib:"ttq",pixelCode:"MOCK_SHOP_ID"};try{var e=document&&document.currentScript,r=e&&e.getAttribute("data-id")||"",n=g()||"ttq";t={pixelCode:r,lib:n}}catch(e){t={lib:"ttq",pixelCode:""}}return t}function A(t){var e=Error(t);return e.source="ulid",e}(nH=o_||(o_={})).LOAD_START="load_start",nH.LOAD_END="load_end",nH.BEFORE_INIT="before_init",nH.INIT_START="init_start",nH.INIT_END="init_end",nH.JSB_INIT_START="jsb_init_start",nH.JSB_INIT_END="jsb_init_end",nH.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",nH.AD_INFO_INIT_START="ad_info_init_start",nH.AD_INFO_INIT_END="ad_info_init_end",nH.IDENTIFY_INIT_START="identify_init_start",nH.IDENTIFY_INIT_END="identify_init_end",nH.PLUGIN_INIT_START="_init_start",nH.PLUGIN_INIT_END="_init_end",nH.PIXEL_SEND="pixel_send",nH.PIXEL_SEND_PCM="pixel_send_PCM",nH.JSB_SEND="jsb_send",nH.HTTP_SEND="http_send",nH.HANDLE_CACHE="handle_cache",nH.INIT_ERROR="init_error",nH.PIXEL_EMPTY="pixel_empty",nH.JSB_ERROR="jsb_error",nH.API_ERROR="api_error",nH.PLUGIN_ERROR="plugin_error",nH.CUSTOM_INFO="custom_info",nH.CUSTOM_ERROR="custom_error",nH.CUSTOM_TIMER="custom_timer",(nV=ob||(ob={}))[nV.NOT_SURE=0]="NOT_SURE",nV[nV.INVOKE_METHOD_ENABLED=1]="INVOKE_METHOD_ENABLED",nV[nV.INVOKE_METHOD_NOT_ENABLED=2]="INVOKE_METHOD_NOT_ENABLED",(nB=oE||(oE={})).NORMAL="1",nB.NOT_CROSS_DOMAIN_IFRAME="2",nB.CROSS_DOMAIN_IFRAME="3",nB.WEB_WORKER="4",nB.SANDBOX_IFRAME="5",nB.GTM_IFRAME="6",nB.URL_IN_QUERY_IFRAME="7",nB.UNKNOWN_IFRAME="8";var C="0123456789ABCDEFGHJKMNPQRSTVWXYZ",k=C.length,j=(nK||(nK=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];e||(e="undefined"!=typeof window?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var t=new Uint8Array(1);return n.getRandomValues(t),t[0]/255};try{var o=r(616);return function(){return o.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw A("secure crypto unusable, insecure Math.random not allowed")}()),function(t){return isNaN(t)&&(t=Date.now()),function(t,e){if(isNaN(t))throw Error(t+" must be a number");if(t>0xffffffffffff)throw A("cannot encode time greater than 281474976710655");if(t<0)throw A("time must be positive");if(!1===Number.isInteger(t))throw A("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%k,n=C.charAt(r)+n,t=(t-r)/k;return n}(t,10)+function(t,e){for(var r="";t>0;t--)r=function(t){var e=Math.floor(t()*k);return e===k&&(e=k-1),C.charAt(e)}(e)+r;return r}(16,nK)});(nW=oI||(oI={})).EMPTY_VALUE="empty_value",nW.WRONG_FORMAT="wrong_format",nW.CORRECT_FORMAT="correct_format",nW.HASHED="hashed",nW.HASHED_ERR="hashed_err",nW.HASHED_CORRECT="hashed_correct",nW.PLAINTEXT_EMAIL="plaintext_email",nW.PLAINTEXT_PHONE="plaintext_phone",(nY=oO||(oO={})).EMPTY_VALUE="empty_value",nY.PLAIN_EMAIL="plain_email",nY.PLAIN_PHONE="plain_phone",nY.HASHED="hashed",nY.FILTER_EVENTS="filter_events",nY.UNKNOWN_INVALID="unknown_invalid",nY.BASE64_STRING_HASHED="base64_string_hashed",nY.BASE64_HEX_HASHED="base64_hex_hashed",nY.PLAIN_MDN_EMAIL="plain_mdn_email",nY.ZIP_CODE_IS_NOT_HASHED="zip_code_is_not_hashed",nY.ZIP_CODE_IS_NOT_US="zip_code_is_not_us",nY.ZIP_CODE_IS_HASHED="zip_code_is_hashed",nY.ZIP_CODE_IS_US="zip_code_is_us",(nJ=oT||(oT={})).Manual="manual",nJ.ManualV2="manual_v2",nJ.Auto="auto",nJ.EBManual="eb_manual",(nQ=oP||(oP={})).empty="empty",nQ.whitespace="whitespace",nQ.hardcode="hardcode",nQ.encode="encode",(nX=oS||(oS={})).letterCase="letter_case",nX.isNotValidEmail="is_not_valid_email",nX.isNotPossibleEmail="is_not_possible_email",nX.domainTypo="domain_typo",nX.addressFormat="address_format",(nq=ow||(ow={})).invalidCountry="invalid_country",nq.notANumber="not_a_number",nq.tooShort="too_short",nq.tooLong="too_long",nq.invalidLength="invalid_length",nq.emptyCountryCodeThroughIP="empty_country_code_through_ip",nq.invalidCountryAfterInjectPlus="invalid_country_after_inject_plus",nq.notANumberAfterInjectPlus="not_a_number_after_inject_plus",nq.tooShortAfterInjectPlus="too_short_after_inject_plus",nq.tooLongAfterInjectPlus="too_long_after_inject_plus",nq.invalidLengthAfterInjectPlus="invalid_length_after_inject_plus",nq.invalidCountryAfterInjectCountry="invalid_country_after_inject_country",nq.notANumberAfterInjectCountry="not_a_number_after_inject_country",nq.tooShortAfterInjectCountry="too_short_after_inject_country",nq.tooLongAfterInjectCountry="too_long_after_inject_country",nq.invalidLengthAfterInjectCountry="invalid_length_after_inject_country",(nz=oL||(oL={})).missing="missing",nz.valid="valid",nz.invalid="invalid";var D={raw_email:{label:oL.missing},raw_auto_email:{label:oL.missing},raw_phone:{label:oL.missing},raw_auto_phone:{label:oL.missing},hashed_email:{label:oL.missing},hashed_phone:{label:oL.missing},raw_eb_email:{label:oL.missing},raw_eb_phone:{label:oL.missing}};(nZ=ox||(ox={}))[nZ.UNKNOWN=0]="UNKNOWN",nZ[nZ.HOLD=1]="HOLD",nZ[nZ.REVOKE=2]="REVOKE",nZ[nZ.GRANT=3]="GRANT";var M=["phone_number","email","external_id"],F={EMAIL_IS_HASHED:"email_is_hashed",PHONE_IS_HASHED:"phone_is_hashed",SHA256_EMAIL:"sha256_email",SHA256_PHONE:"sha256_phone"},U="auto_trigger_type",G=function(t){return"[object Object]"===Object.prototype.toString.call(t)},H=function(t){return t+"-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},V=function(t,e,r){return void 0===r&&(r="-"),""+t+r+e};function B(t,e,r){void 0===e&&(e=500);var n=-1,o=r?t.bind(r):t;return function(){var t=Array.prototype.slice.apply(arguments);Date.now()-n>=e&&(o.apply(void 0,t),n=Date.now())}}var K=function(t){return/^(0|([1-9]\d*))$/.test(""+t)};function W(){W=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Y(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var J=function(t){},Q=function(t){return!!t},X=function(t){return void 0!==t.metric_name},q=function(t){var e;return Object.keys((null==t||null==(e=t.context)?void 0:e.user)||{}).some(function(t){return -1!==M.indexOf(t)})};function z(t,e){var r,n=t;return function(){if(n){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},$=function(){for(var t=j(Date.now());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},tt=function(t,e){if(0===Object.keys(t).length)return{};var r={identity_params:{}},n={email:["email_is_hashed","sha256_email"],phone_number:["phone_is_hashed","sha256_phone"],zip_code:["zip_code"]};return Object.entries(e).forEach(function(e){var o=e[0];e[1]&&n[o]&&n[o].forEach(function(e){if(r.identity_params[e]=[oI.EMPTY_VALUE],t[e]){var n=t[e]||[oI.EMPTY_VALUE];r.identity_params&&(r.identity_params[e]=[].concat(n))}})}),r},te=function(t,e){var r={identity_params:{}};return 0===Object.keys(t).length?{}:(Object.entries(e).forEach(function(e){var n=e[0];if(e[1])if(t[n]&&t[n].length){var o=t[n]||[oI.EMPTY_VALUE];r.identity_params[n]=[].concat(o)}else r.identity_params[n]=[oI.EMPTY_VALUE]}),r)};function tr(t,e){var r=Object.assign({},t);return e.forEach(function(t){null!==r[t]&&void 0!==r[t]&&delete r[t]}),r}var tn=function(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){e[n]&&(r[n]=t[n])}),r};function to(t,e,r){var n,o=r?t.bind(r):t;return function(){for(var t=arguments.length,r=Array(t),i=0;i-1){e=o;break}}return e},tl=function(t){var e="unknown";try{var r=t&&ts(t);r&&(tf(r)&&(e="isInHead"),tp(r)&&(e="isInBodyTop10"))}catch(t){}return e},tf=function t(e){var r=e.parentElement;return!!r&&("HEAD"===r.tagName||t(r))},th=function(t,e){for(var r=[document.body],n=0;n<=t&&r.length;){var o,i=r.pop();if(i===e)return!0;if(!((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null==(o=i.src)?void 0:o.indexOf("analytics.tiktok.com"))>-1)){if(n++,"object"==typeof i&&i.children)for(var a=i.children.length-1;a>=0;a--)r.push(i.children[a])}}return!1},tp=function(t){return th(10,t)},td=/function WeakSet\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakSet.toString()),tv=/function WeakMap\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakMap.toString()),tg=/function Date\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Date.toString());(n$=oR||(oR={})).EXTERNAL="external",n$.APP="app",n$.TIKTOK="tiktok";var ty={ID:Symbol.for("ID"),Type:Symbol.for("type"),Partner:Symbol.for("partner"),Options:Symbol.for("Options"),Plugins:Symbol.for("Plugins"),Rules:Symbol.for("Rules"),Info:Symbol.for("Info"),ExtraParams:Symbol.for("extraParams"),WebLibraryInfo:Symbol.for("WebLibraryInfo"),SignalType:Symbol.for("SignalType"),IsOnsitePage:Symbol.for("IsOnsitePage")};(n0=oN||(oN={}))[n0.OFFSITE=0]="OFFSITE",n0[n0.ONSITE=1]="ONSITE";var tm=function(){var t,e;return(null==(t=y())||null==(e=t._env)?void 0:e.env)||oR.EXTERNAL},t_=function(){var t,e;return null!=(t=null==(e=y())?void 0:e._is_onsite)?t:oN.OFFSITE},tb=function(t){return(t||tm())!==oR.EXTERNAL},tE=function(t){return(t||tm())===oR.TIKTOK},tI=function(){var t=b();return/windows phone/i.test(t)?oy.WINDOWS_PHONE:/android/i.test(t)?oy.ANDROID:/iPad|iPhone|iPod/.test(t)?oy.IOS:oy.PC},tO=function(){try{return navigator.userAgentData.getHighEntropyValues(["model","platformVersion"])}catch(t){return Promise.resolve({})}},tT=function(){return"android"===tI()},tP=function(){return"ios"===tI()},tS=function(){return!1},tw=function(){return window.top!==window},tL=z(function(){return/open_news/i.test(b())}),tx=z(function(){return/ultralite/i.test(b())}),tR=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},tN=function(){try{var t=new URL(decodeURIComponent(window.location.href)),e=/https?:\/\/[^\s/$.?#].[^\s]*/i;return e.test(t.search)||e.test(t.pathname)}catch(t){return!1}},tA=function(){try{if(!tR())return oE.NOT_CROSS_DOMAIN_IFRAME;if(tN())return oE.URL_IN_QUERY_IFRAME;if(window.google_tag_manager)return oE.GTM_IFRAME;if(window.name&&"web-pixel-sandbox"===window.name)return oE.SANDBOX_IFRAME;return oE.CROSS_DOMAIN_IFRAME}catch(t){return oE.UNKNOWN_IFRAME}},tC=function(){var t=b();if(t)for(var e=0,r=Object.values(om);ea)return!1}return!0},tU=function(t){var e=tC();return void 0!==e&&t.has(e)},tG=function(){var t=v();try{return!!(t.Shopify&&t.Shopify.shop&&t.Shopify.shop.indexOf(".myshopify.com")>0||t.name&&t.name.startsWith("web-pixel-sandbox-CUSTOM-shopify"))}catch(t){}return!1},tH=function(){var t=y();return"object"==typeof t&&t._i?t._i:{}},tV=function(t,e){var r=tH()||{};Object.keys(r).forEach(function(n){var o=r[n];o._init||o.push([t].concat(e))})},tB=function(t,e,r){var n=(tH()||{})[t];if(n){if(n._init)return;n.push([e].concat(r))}};(n1=oA||(oA={})).PIXEL_CODE="pixelCode",n1.EVENT_SOURCE_ID="eventSourceId",n1.SHOP_ID="shopId",(oC||(oC={})).CLICK="click",(n2=ok||(ok={})).BEFORE_REPORT="beforeReport",n2.QUEUE="queue",(oj||(oj={})).UPDATE_CONFIG="observer:updateConfig";var tK={TTQ:Symbol.for("TTQ"),GLOBAL_TTQ:Symbol.for("GLOBAL_TTQ"),SHOPIFY_TTQ:Symbol.for("SHOPIFY_TTQ"),ENV:Symbol.for("ENV"),CONTEXT:Symbol.for("CONTEXT"),REPORTER:Symbol.for("REPORTER"),REPORTERS:Symbol.for("REPORTERS"),PLUGIN:Symbol.for("PLUGIN"),PLUGINS:Symbol.for("PLUGINS"),TTQ_GLOBAL_OPTIONS:Symbol.for("TTQ_GLOBAL_OPTIONS"),EVENT_EMITTER:Symbol.for("EVENT_EMITTER"),PERFORMANCE_PLUGIN:Symbol.for("PERFORMANCE_PLUGIN"),INTERACTION_PLUGIN:Symbol.for("INTERACTION_PLUGIN"),INTERACTION_PLUGIN_MONITOR:Symbol.for("INTERACTION_PLUGIN_MONITOR"),PERFORMANCE_PLUGIN_MONITOR:Symbol.for("PERFORMANCE_PLUGIN_MONITOR"),ADVANCED_MATCHING_PLUGIN:Symbol.for("ADVANCED_MATCHING_PLUGIN"),AUTO_ADVANCED_MATCHING_PLUGIN:Symbol.for("AUTO_ADVANCED_MATCHING_PLUGIN"),CALLBACK_PLUGIN:Symbol.for("CALLBACK_PLUGIN"),IDENTIFY_PLUGIN:Symbol.for("IDENTIFY_PLUGIN"),MONITOR_PLUGIN:Symbol.for("MONITOR_PLUGIN"),WEB_FL_PLUGIN:Symbol.for("WEB_FL_PLUGIN"),SHOPIFY_PLUGIN:Symbol.for("SHOPIFY_PLUGIN"),AUTO_CONFIG_PLUGIN:Symbol.for("AUTO_CONFIG_PLUGIN"),DIAGNOSTICS_CONSOLE_PLUGIN:Symbol.for("DIAGNOSTICS_CONSOLE_PLUGIN"),COMPETITOR_INSIGHT_PLUGIN:Symbol.for("COMPETITOR_INSIGHT_PLUGIN"),EVENT_BUILDER_PLUGIN:Symbol.for("EVENT_BUILDER_PLUGIN"),ENRICH_IPV6_PLUGIN:Symbol.for("ENRICH_IPV6_PLUGIN"),LPV_PLUGIN:Symbol.for("LPV_PLUGIN"),RUNTIME_MEASUREMENT_PLUGIN:Symbol.for("RUNTIME_MEASUREMENT_PLUGIN"),TEXT_TREE_WALKER_PLUGIN:Symbol.for("TEXT_TREE_WALKER_PLUGIN"),PAGE_PERFORMANCE_MONITOR:Symbol.for("PAGE_PERFORMANCE_MONITOR"),PAGE_INTERACTION_MONITOR:Symbol.for("PAGE_INTERACTION_MONITOR"),PAGEDATA_PLUGIN:Symbol.for("PAGEDATA_PLUGIN"),CDP_VISITER_PLUGIN:Symbol.for("CDP_VISITER_PLUGIN"),HISTORY_OBSERVER:Symbol.for("HISTORY_OBSERVER"),INTERACTION_OBSERVER:Symbol.for("INTERACTION_OBSERVER"),BATCH_SERVICE:Symbol.for("BATCH_SERVICE"),REPORT_SERVICE:Symbol.for("REPORT_SERVICE"),AD_SERVICE:Symbol.for("AD_SERVICE"),APP_SERVICE:Symbol.for("APP_SERVICE"),BRIDGE_SERVICE:Symbol.for("BRIDGE"),HTTP_SERVICE:Symbol.for("HTTP_SERVICE"),COOKIE_SERVICE:Symbol.for("COOKIE_SERVICE"),CONSENT_SERVICE:Symbol.for("CONSENT_SERVICE"),CLICK_INTERACTION_ID_SERVICE:Symbol.for("CLICK_INTERACTION_ID_SERVICE"),JS_BRIDGE:Symbol.for("JS_BRIDGE"),TTQ_REPORTERS:Symbol.for("TTQ_REPORTERS"),INTERACTION_MONITOR:Symbol.for("INTERACTION_MONITOR"),PERFORMANCE_MONITOR:Symbol.for("PERFORMANCE_MONITOR"),SANDBOX_PIXEL_API:Symbol("SANDBOX_PIXEL_API")};(n3=oD||(oD={})).INIT_START="initStart",n3.INIT_END="initEnd",n3.PATCH_END="patchEnd",n3.CONTEXT_INIT_START="contextInitStart",n3.CONTEXT_INIT_END="contextInitEnd",n3.PAGE_URL_WILL_CHANGE="pageUrlWillChange",n3.PAGE_URL_DID_CHANGE="pageUrlDidChange",n3.PAGE_DID_LOAD="pageDidLoad",n3.PAGE_WILL_LEAVE="pageWillLeave",n3.PAGE_LCP="pageLcp",n3.AD_INFO_INIT_START="adInfoInitStart",n3.AD_INFO_INIT_END="adInfoInitEnd",n3.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",n3.PIXEL_SEND="pixelSend",n3.PIXEL_DID_MOUNT="pixelDidMount",(n6=oM||(oM={})).UNKNOWN="-1",n6.LOADING="0",n6.INTERACTIVE="1",n6.COMPLETE="2",(n5=oF||(oF={})).HISTORY_CHANGE="hc",n5.URL_CHANGE="uc";var tW=["page","track","identify"],tY=["holdConsent","revokeConsent","grantConsent"],tJ=["identify"],tQ=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(n4=oU||(oU={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",n4.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",n4.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",n4.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",n4.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",n4.MISSING_CONTENT_ID="MISSING_CONTENT_ID",n4.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",n4.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",n4.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",n4.INVALID_CONTENT_ID="INVALID_CONTENT_ID",n4.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",n4.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",n4.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",n4.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",n4.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",n4.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",n4.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",n4.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var tX=function(t,e,r){t.isBound(e)?t.rebind(e).toConstantValue(r):t.bind(e).toConstantValue(r)},tq=function(){var t=y();return t&&t._i||{}},tz=function(t,e){var r,n=e.id,o=e.type,i=void 0===o?oA.PIXEL_CODE:o,a=e.info,c=e.options,u=e.plugins,s=void 0===u?{}:u,l=e.rules,f=t.get(tK.TTQ),h=t.get(tK.TTQ_REPORTERS);if(!h.some(function(t){return t.getReporterId()===n})){tX(t,ty.ID,n),tX(t,ty.Type,i),tX(t,ty.Info,a||((r={})[i]=n,r)),tX(t,ty.Options,void 0===c?{}:c),tX(t,ty.Plugins,s),tX(t,ty.Rules,void 0===l?[]:l),f.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var p=t.get(tK.REPORTER);if(s){var d=s.AdvancedMatching,v=s.AutoAdvancedMatching,g={};d&&Object.assign(g,d),v&&Object.assign(g,v),p.setAdvancedMatchingAvailableProperties(g)}return p.on(ok.BEFORE_REPORT,function(t,e,r,n,o){f.dispatch(oD.PIXEL_SEND,t,e,r,n,o)},{}),h.push(p),t.rebind(tK.TTQ_REPORTERS).toConstantValue(h),f.dispatch(oD.PIXEL_DID_MOUNT,p),p}},tZ=function(t,e){var r=t||{},n=r._partner,o=r._ttp,i=r._self_host_config,a=r._usd_exchange_rate,c=r._legacy;return Object.assign(e,{partner:n,ttp:o,cc:r._cc,self_host_config:i,usd_exchange_rate:a,legacy:c,variation_id:r._variation_id,vids:r._vids,server_unqiue_id:r._server_unique_id,currency_list:r._currency_list,plugins:r._plugins,aam:r._aam,auto_config:r._auto_config,cde:r._cde,cookieBasedSessionConfig:r._csid_config}),e},t$=function(t,e){var r=t.get(tK.TTQ_GLOBAL_OPTIONS)||{};tZ(e,r),t.isBound(tK.TTQ_GLOBAL_OPTIONS)?t.rebind(tK.TTQ_GLOBAL_OPTIONS).toConstantValue(r):t.bind(tK.TTQ_GLOBAL_OPTIONS).toConstantValue(r)},t0=function(t){var e=v(),r=g(),n=y(),o=N().pixelCode,i=void 0===o?"":o;tQ.forEach(function(e){Object.defineProperty(n,e,{get:function(){return function(){try{var r=Array.prototype.slice.call(arguments);return tY.indexOf(e)>-1&&setTimeout(function(){L(o_.CUSTOM_INFO,{pixelCode:i,custom_name:e})}),t[e].apply(t,r)}catch(t){return x(o_.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),tW.forEach(function(e){Object.defineProperty(n,e,{get:function(){return function(){try{var r=1==arguments.length&&void 0===arguments[0]?[]:Array.prototype.slice.call(arguments);return tV(e,r),t[e].apply(t,r)}catch(t){return x(o_.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),e[r]._mounted=!0,e[r].initialize=!0,d(e[r])},t1=function(t,e,r){t2(e),Object.entries(tq()).forEach(function(n){var o=n[0],i=n[1];if(!i._init&&("Tealium"===O(o)||_()||i.info)&&(e.getReporter(o)?R(oU.DUPLICATE_PIXEL_CODE):(r||tz)(t,{id:o,type:oA.PIXEL_CODE,info:i.info,options:i.options,rules:i.rules,plugins:i.plugins}),i._init=!0,i.length>0))for(;i.length;){var a=i.shift();if(a){var c=a[0],u=a.slice(1),s=e.instance(o);if(s)switch(c){case"identify":s.identify(u[0],u[1]);break;case"page":e.page(u[0]);break;case"track":s.track(u[0],u[1],u[2]||{});break;default:s[c]?s[c](u[0],u[1],u[2]||{}):x(o_.CUSTOM_ERROR,Error("action not find: "+c))}}}}),t3(e)},t2=function(t){try{var e=y();[].concat(tY,tJ).forEach(function(r){e.find(function(n,o){var i=n[0],a=n.slice(1);if(i===r)return t[r].apply(t,a),e.splice(o,1),!0})})}catch(t){x(o_.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},t3=function(t){var e=y();if(e.length>0)for(;e.length;){var r=e.shift();if(r){var n=r[0],o=r.slice(1);switch(!T("Tealium")&&tV(n,o),n){case"identify":t.identify(o[0],o[1]);break;case"page":t.page(o[0]);break;case"track":t.track(o[0],o[1],o[2]||{});break;case"enableCookie":t.enableCookie();break;case"disableCookie":t.disableCookie();break;case"holdConsent":t.holdConsent();break;case"revokeConsent":t.revokeConsent();break;case"grantConsent":t.grantConsent()}}}};function t6(t,e,r){return(t6=!function(){if("undefined"==typeof Reflect||!Reflect.construct||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(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&t5(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function t5(t,e){return(t5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t4="_ttq_inject",t8=function(){function t(){this.bindings={},this.rebind=this.bind}var e=t.prototype;return e.bind=function(t){var e=this;return{to:function(r){return e.bindings[t.toString()]={constructor:r,singleton:!1},e},toConstantValue:function(r){return e.bindings[t.toString()]={value:r,singleton:!0},e}}},e.isBound=function(t){return!!this.bindings[t.toString()]},e.inSingletonScope=function(){var t=Object.keys(this.bindings),e=t[t.length-1];if(e){var r=this.bindings[e];r&&(this.bindings[e]=Object.assign(Object.assign({},r),{singleton:!0}))}return this},e.get=function(t){var e=this.bindings[t.toString()];if(!e)throw Error("No binding found for identifier: "+String(t));return void 0!==e.value?e.value:e.singleton?(e.instance||(e.instance=this.createInstance(e.constructor)),e.instance):this.createInstance(e.constructor)},e.createInstance=function(t){var e=this;if(!t)throw Error("Cannot create instance because constructor is not defined.");var r=(t[t4]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return t6(t,r)},t}();function t9(){return function(t){}}function t7(t){return function(e,r,n){e[t4]=e[t4]||[],e[t4][n]=Object.assign({},e[t4][n],{identifier:t})}}function et(){return function(t,e,r){t[t4]=t[t4]||[],t[t4][r]=Object.assign({},t[t4][r],{optional:!0})}}function ee(t,e){try{var r=new URL(t).searchParams.getAll(e);return r[r.length-1]||""}catch(t){return""}}(n8=oG||(oG={})).BIND="bind",n8.REBIND="rebind";var er=function(t,e,r){try{var n=ee(e,t);if(n)return n;return ee(r||"",t)}catch(t){}return""},en=function(){if(!tw())return{url:window.location.href,referrer:document.referrer,title:document.title};if(!tR()){var t,e,r,n,o,i;return{url:(null==(t=window)||null==(e=t.top)?void 0:e.location.href)||"",referrer:(null==(r=window)||null==(n=r.top)?void 0:n.document.referrer)||"",title:(null==(o=window)||null==(i=o.top)?void 0:i.document.title)||""}}var a=document.title,c=window.location.href,u=document.referrer;if(/doubleclick\.net/.test(window.location.hostname)){var s=window.location.pathname,l={};return s.split(";").forEach(function(t){var e=t.split("="),r=e[0],n=e[1];r&&n&&(l[r]=decodeURIComponent(n))}),{url:l["~oref"]||c,referrer:u,title:a}}return{url:c,referrer:u,title:a}},eo=function(t){var e=en().url;try{return new URL(t||e)}catch(t){}return null},ei=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},ea=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},ec=function(t,e){try{var r=JSON.stringify(e);window.sessionStorage.setItem(t,r)}catch(t){}},eu="https://analytics.tiktok.com/api/v2",es=eu+"/pixel",el=eu+"/performance",ef=eu+"/interaction",eh=eu+"/performance_interaction",ep=eu+"/pixel/perf",ed=eu+"/pixel/inter",ev=eu+"/pixel/act",eg="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",ey="ttclid",em="_toutiao_params",e_=function(t,e){try{var r=er(ey,t,e)||void 0,n=er("ext_params",t,e)||void 0,o=er(em,t,e)||void 0,i=parseInt(er("ttuts",t,e),10)||void 0,a=o?JSON.parse(o):{},c=a.log_extra,u=void 0===c?void 0:c,s=a.idc,l=void 0===s?void 0:s,f=a.cid,h=void 0===f?void 0:f;return{callback:r,ext_params:n,log_extra:u,creative_id:h,idc:l,ttuts:i,ad_info_from:(u||l||h)&&"url"}}catch(t){return{}}},eb=function(t,e){try{var r=t.log_extra,n=t.ttuts;if(!tP())return!0;if(!tE(e)){if(null!=n)return 1!==n;return!0}if(r){var o=JSON.parse(r);return 1!==o.user_tracking_status}if(null===t.ATTStatus||void 0===t.ATTStatus)return!0;return 3===t.ATTStatus}catch(t){return!1}},eE=function(t,e){var r={};try{var n=t.creative_id,o=(t.callback,t.idc),i=t.convert_id,a=t.ad_info_from,c=t.ad_info_status,u=t.log_extra,s=t.ext_params,l=t.ATTStatus;if(n&&(r.creative_id=n),o&&(r.idc=o),i&&(r.convert_id=i),a&&(r.ad_info_from=a),c&&(r.ad_info_status=c),s&&(r.ext_params=s),l&&(r.ATTStatus=l),u){var f=JSON.parse(u),h=f.ad_user_agent,p=f.ad_id,d=f.rit,v=f.ocbs,g=f.vid,y=f.idc,m=f.country_id;p&&(r.ad_id=p),d&&(r.rit=d),h&&(r.ad_user_agent=h),v&&(r.ocbs=v),g&&(r.vid=g),y&&(r.idc=y),m&&(r.country_id=m)}return r}catch(t){return e&&e(t),r}},eI=function(t){void 0===t&&(t={});var e=Object.assign({},{path:"/"},t);"number"==typeof e.expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires instanceof Date&&(e.expires=e.expires.toUTCString());var r="";for(var n in e)e[n]&&(r+="; "+n,!0!==e[n]&&(r+="="+e[n].split(";")[0]));return r},eO=function(t,e,r,n){void 0===r&&(r="/"),void 0===n&&(n=new Date(Date.now()+864e5).toUTCString()),eR(t,e,{path:r,expires:n})},eT=function(t){return t&&t.cde?Object.assign({},s,{expires:t.cde}):s},eP=function(){var t=ex(o);if(t&&eA(t)){var e=eC(),r=window.location.hostname.split("."),n="."+r.slice(r.length-e-1).join(".");return null!=n?n:void 0}},eS=0,ew=0,eL=function(t){var e={};return document.cookie.split(";").forEach(function(t){var r=t.split("=");e[r[0].trim()]=r.slice(1).join("=")}),e[t]||""},ex=function(t){if(0===document.cookie.length)return"";var e=eL(t);return e?unescape(e):""},eR=function(t,e,r){try{if(r){var n=window.location.hostname.split(".");if(ew=n.length,(eS=eC())&&eS=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},eC=function(){if(eS)return eS;var t=ex(o);return t&&eA(t)?Number(t.split(".")[2]):0},ek=function(t,e,r){var n;return t!==o||eA(e)||(e=(n=e)?n.split(".")[0]+".tt."+(tG()?0:eC()):""),document.cookie=t+"="+e+eI(r),e===ex(t)},ej=function(t,e,r){void 0===t&&(t=""),void 0===e&&(e="");try{var n=er("tt_test_id",t,r);return n&&n!==e&&eO("tt_test_id",n,void 0,"session"),n||e}catch(t){return""}};function eD(){return(eD=Object.assign?Object.assign.bind():function(t){for(var e=1;e18e5?{sessionId:n.toString()+"::"+Z(20),sessionCount:e+1,lastEventTS:n,isSessionStart:!0}:eD({},t,{lastEventTS:n,isSessionStart:!1})},eH=function(t){var e=t.sessionId,r=t.sessionCount,n=t.lastEventTS,o=t.hasReportedES;return e+"."+r+"."+n+"."+(null!=o?o:0)},eV=function(t,e,r){var n=t||{},o=n.sessionId,i=n.sessionCount,a=n.isSessionStart;return Object.assign({csid:void 0===o?"":o,page_csid:e?e.sessionId:"",csct:void 0===i?1:i},void 0!==a&&a?{css:1}:{},r?{pixel_code:r}:{})},eB=function(){function t(t){this.pixelCode="",this.loaded=!1,this.status=1,this.name="",this.advertiserID="",this.setupMode=0,this.partner="",this.reporterInfo={},this.plugins={},this.options={},this.rules=[],this.pixelCode=t}var e=t.prototype;return e.getParameterInfo=function(){return Promise.resolve({pixelCode:this.pixelCode,name:this.name,status:this.status,setupMode:this.setupMode,advertiserID:this.advertiserID,partner:this.partner,is_onsite:!1,advancedMatchingAvailableProperties:{}})},e.getReporterId=function(){return""},e.getReporterUniqueLoadId=function(){return""},e.getReporterPartner=function(){},e.getReporterInfo=function(){return{reporter:{}}},e.getReportResultSet=function(){return[]},e.isOnsite=function(){return!1},e.isPartnerReporter=function(){return!1},e.setAdvancedMatchingAvailableProperties=function(t){},e.clearHistory=function(){},e.page=function(t){},e.identify=function(t,e){},e.track=function(t,e,r){return Promise.resolve(null)},e.getUserInfo=function(t){return{}},e.getReporterMatchedUserFormatInfo=function(){return{}},e.getReporterMatchedUserFormatInfoV2=function(){return{}},e.assemblyData=function(){return{event:"",message_id:"",event_id:"",is_onsite:!1,properties:{},context:{ad:{},device:{},library:{name:"",version:""},page:{url:""},pageview_id:"",session_id:"",variation_id:"",user:{}},partner:"",timestamp:""}},e.assemblySelfHostData=function(){return this.assemblyData()},e.trackSync=function(){},e.getReportEventHistoryKey=function(t){return"tiktok"},e.hasReportEventHistory=function(t,e){return!1},e.getCookieBasedSession=function(){return eF()},e.setCookieBasedSession=function(t){},t}();new eB("empty");var eK=function(){function t(t,e,r){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e,r&&(this.emitter=r)}var e=t.prototype;return e.init=function(t,e){this.initContextInfo(t,e),this.initialize=!0},e.initContextInfo=function(t,e){var r=this;this.dispatch(oD.CONTEXT_INIT_START),this.initAdInfo(t,e),this.initAppInfo(t,e),this.initLocalServiceInfo(),this.reportService.pushPreposition(Promise.resolve().then(function(){return r.initUserInfo()})),this.initTestId(t,e),this.dispatch(oD.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var r=this.context.getPageInfo().url;if(r!==t){this.dispatch(oD.PAGE_URL_WILL_CHANGE,e||r,t);var n=this.context.setPageInfo(t,e||r);(null==n?void 0:n.pageIndex)&&this.setPageIndex(n.pageIndex),this.dispatch(oD.PAGE_URL_DID_CHANGE,t,r)}},e.initAdInfo=function(t,e){},e.initOffsiteAdInfo=function(t){},e.initAppInfo=function(t,e){},e.initUserInfo=function(){},e.initTestId=function(t,e){},e.usePlugin=function(t){try{if(!this.plugins.find(function(e){return e.name===t.name})){this.plugins.push(t);var e=t.name;e&&(this[e[0].toLowerCase()+e.slice(1)+"Plugin"]=t)}}catch(t){}},e.useObserver=function(t){try{if(!this.observers.find(function(e){return e.name===t.name})){this.observers.push(t);var e=t.name;e&&(this[""+(e[0].toLowerCase()+e.slice(1))]=t)}}catch(t){}},e.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})||null},e.getReporter=function(t){return this.reporters.find(function(e){return e.getReporterId()===t})},e.instance=function(t){var e=this.getReporter(t);return e||(x(o_.PIXEL_EMPTY,Error(""),{pixelCode:t}),new eB(t))},e.instances=function(){return this.reporters},e.identify=function(t,e){var r=tu(t,e);this.context.setUserInfo(r)},e.page=function(t){t.url!==this.context.getPageInfo().url&&(this.setPageInfo(t.url,t.referrer),this.reporters.forEach(function(t){t.clearHistory()}));var e=Object.assign({},t);delete e.url,delete e.referrer,this.reporters.forEach(function(t){t.page(e)})},e.isOnsitePage=function(){return this.context.getSignalType()===oN.ONSITE||this.reporters.every(function(t){return t.isOnsite()})},e.track=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r={}),this.instances().forEach(function(n,o){n.track(t,e,Object.assign({_i:o},r))})},e.dispatch=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eY(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}eK=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],eK);var eJ=(n9=eW().mark(function t(e,r){return eW().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=1),!(r>=0)){t.next=13;break}return t.prev=2,t.next=5,function(t){return new Promise(function(e,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t;var o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(n,o):r("none element"),n.onload=function(){e(!0)},n.onerror=r})}(e);case 5:return t.abrupt("return",Promise.resolve(!0));case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",eJ.call(null,e,r-1));case 11:t.next=14;break;case 13:throw Error;case 14:case"end":return t.stop()}},t,null,[[2,8]])}),n7=function(){var t=this,e=arguments;return new Promise(function(r,n){var o=n9.apply(t,e);function i(t){eY(o,r,n,i,a,"next",t)}function a(t){eY(o,r,n,i,a,"throw",t)}i(void 0)})},function(t,e){return n7.apply(this,arguments)});(ot=oH||(oH={})).TRACK="track",ot.PERFORMANCE="performance",ot.INTERACTION="interaction",ot.PCM="PCM",ot.PERFORMANCE_INTERACTION="performance_interaction",ot.SELFHOST="selfhost",ot.AUTO_CONFIG="auto_config",ot.PAGE="Pf",ot.PAGE_PERFORMANCE="page_performance",ot.PAGE_INTERACTION="page_interaction";var eQ=["EnrichAM"];(oe=oV||(oV={})).LDU="limited_data_use",oe.EVENTID="eventID",oe.EVENT_ID="event_id",(or=oB||(oB={}))[or.defaultReport=0]="defaultReport",or[or.httpReport=1]="httpReport",or[or.htmlHttpReport=2]="htmlHttpReport",(on=oK||(oK={}))[on.P0=0]="P0",on[on.P1=1]="P1",on[on.P2=2]="P2";var eX=["ttuts","ad_info_from"],eq=[],ez="EngagedSession",eZ=["AED","ALL","AMD","ARS","AUD","AZN","BDT","BGN","BHD","BIF","BOB","BRL","BYN","CAD","CHF","CLP","CNY","COP","CRC","CZK","DKK","DOP","DZD","EGP","EUR","GBP","GEL","GTQ","HKD","HNL","HUF","IDR","ILS","INR","IQD","ISK","JOD","JPY","KES","KHR","KRW","KWD","KZT","LBP","MAD","MOP","MXN","MYR","NGN","NIO","NOK","NZD","OMR","PAB","PEN","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","SAR","SEK","SGD","THB","TND","TRY","TWD","TZS","UAH","USD","UZS","VES","VND","ZAR"],e$=function(){function t(){this.subscriberMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.on=function(t,e,r){try{var n=Object.assign({throttle:!1,debounce:!1,once:!1,interval:500},r),o=this.subscriberMap.get(t)||[];if(o.some(function(t){return t.originalCallback===e}))return;o.push({originalCallback:e,wrappedCallback:this.wrapCallback(e,n),options:n}),this.subscriberMap.set(t,o)}catch(e){x(o_.CUSTOM_ERROR,e,{custom_name:"EventEmitter",custom_enum:t})}},e.emit=function(t){for(var e=this,r=arguments.length,n=Array(r>1?r-1:0),o=1;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],e$);var e0=function(t,e){if("selfhost"===t&&e&&E(e))return"https://"+E(e)+"/api/v2/pixel";var r={track:es,performance:el,interaction:ef,performance_interaction:eh,auto_config:ev,page_performance:ep,page_interaction:ed}[t];return r||null};function e1(){return(e1=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],e3);var e6={ViewForm:"ViewContent",ViewConsultationPage:"ViewContent",ViewDownloadPage:"ViewContent",Checkout:"PlaceAnOrder",Registration:"CompleteRegistration",AddBilling:"AddPaymentInfo",StartCheckout:"InitiateCheckout",ClickInDownloadPage:"ClickButton",ClickInConsultationPage:"ClickButton",ClickForm:"ClickButton",ClickToDownload:"Download",Consult:"Contact",ConsultByPhone:"Contact",CompletePayment:"Purchase",SubmitForm:"Lead"},e5=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf","trigger_source","inter_id"],e4=function(t){var e=t.getUserInfo().anonymous_id,r=ex(o);e!==r&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:r})},e8=function(t,e,r){try{var n=window.location.hostname.split(".");if(void 0!==oW&&oW=0;o--){var i="."+n.slice(o).join(".");if(document.cookie=t+"="+e+eI(Object.assign({},r,{domain:i})),ex(t)===e){oW=o;break}}}catch(t){}},e9=function(t,e,r){var n=eF();return e&&(n=eG(e)),e8(t?c+"_"+t:c,eH(n),eT(r)),n};function e7(t,e){return(e7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rt=function(t){function e(e){var r,n,o=e.id,i=e.type,a=e.isOnsitePage,c=e.context,u=e.reporterInfo,s=e.ttqOptions,l=e.reportService,f=e.plugins,h=e.rules,p=e.options;return(n=t.call(this,c,l)||this).ttp="",n.loaded=!1,n.id=o,n.pixelCode=o,n.type=i,n.isOnsitePage=a,n.options=(void 0===p?{}:p)||{},n.plugins=(void 0===f?{}:f)||{},n.rules=(void 0===h?[]:h)||[],n.reporterInfo=Object.assign(u||{},((r={})[i]=o,r)),n.ttp=s.ttp||"",n.currency_list=s.currency_list||null,n.ttqPartner=s.partner||"",n.selfHostConfig=s.self_host_config||{},n.ttqOptions=s,n.pixelPromise=n.getInstance(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,e7(e,t);var r=e.prototype;return r.identify=function(t,e){var r=tu(t,e);this.context.setUserInfo(r,Object.assign({reporterId:this.id},(null==e?void 0:e.trigger_source)&&{trigger_source:e.trigger_source}))},r.getReporterId=function(){return this.id||""},r.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},r.getReporterPartner=function(){var t;return(null==(t=this.reporterInfo)?void 0:t.partner)||""},r.setPixelInfo=function(t,e,r){var n,o=this.type;this.reporterInfo=Object.assign(this.reporterInfo,Object.assign({},t),((n={})[o]=this.getReporterId(),n)),e&&(this.rules=e),r&&(this.plugins=r)},r.getInstance=function(){return Promise.resolve(this)},r.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},r.getUserInfo=function(t){var e=this.context.getUserInfo(),r=tn(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case oT.Manual:return tn(this.isPartnerReporter()?r:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case oT.ManualV2:return tn(this.isPartnerReporter()?r:e,{first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0,ttoclid:!0});case oT.EBManual:return tn(e,{eb_email:this.advancedMatchingAvailableProperties.auto_email,eb_phone_number:this.advancedMatchingAvailableProperties.auto_phone_number});case oT.Auto:var n=tn(r,{external_id:!0,auto_email:!0,auto_phone_number:!0,ttoclid:!0});return Object.assign(n,(n.auto_email||n.auto_phone_number)&&e.auto_trigger_type?{auto_trigger_type:e.auto_trigger_type}:{});default:return r}},r.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=te(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),r=tn(t,{auto_email:!0,auto_phone_number:!0});return Object.keys(r).length>0&&(e.identity_params||(e.identity_params={}),Object.assign(e.identity_params,r)),e},r.getReporterMatchedUserFormatInfoV2=function(){return tt(this.context.getUserFormatInfoV2(),this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0,first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0})},r.isOnsite=function(){var t;return!!(null==(t=this.reporterInfo)?void 0:t.is_onsite)},r.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},r.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},D);var e=this.advancedMatchingAvailableProperties,r=e.email,n=e.phone_number,o=e.auto_email,i=e.auto_phone_number;return Object.assign({},D,tn(t,{raw_email:r=!this.isPartnerReporter()||r,raw_phone:n=!this.isPartnerReporter()||n,hashed_email:r,hashed_phone:n,raw_auto_email:o,raw_auto_phone:i,raw_eb_email:!0,raw_eb_phone:!0}))},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return eM(this.reporterInfo,this.ttqOptions)&&t!==oH.AUTO_CONFIG&&e&&r?eV(e,r):{}},r.assemblyData=function(e,r,n,o,i){void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=oH.TRACK);var a,c,u=t.prototype.assemblyData.call(this,e,r,n,o,i);u.is_onsite=this.isOnsitePage.value;var s=O(e)||this.ttqPartner;s&&(u.partner=s),u.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var l=b();l&&(u.context.userAgent=l);var f=function(){try{var t=document.readyState;if("loading"==t)return oM.LOADING;if("interactive"==t)return oM.INTERACTIVE;if("complete"==t)return oM.COMPLETE;return oM.UNKNOWN}catch(t){return oM.UNKNOWN}}();if(f&&(u.context.page.load_progress=f),!m()&&Object.keys(this.context.userInfoFieldAllowlist).length){var h=Object.entries(this.context.userInfoFieldAllowlist).filter(function(t){var r=t[1];return -1===r.indexOf("all")&&-1==r.indexOf(e)}).map(function(t){return t[0]});u.context.user=tr(u.context.user,h)}return a=u.properties,void 0===(c=u._inspection)&&(c={}),e5.forEach(function(t){a.hasOwnProperty(t)&&(c[t]=a[t],delete a[t])}),u._inspection=c,i!==oH.PAGE&&(u._inspection.ppf=S()),u._inspection.vids=this.context.getVids(),u.context.ad.sdk_env=tm(),u.context.ad.jsb_status=function(){try{var t,e;return[ob.INVOKE_METHOD_ENABLED,ob.INVOKE_METHOD_NOT_ENABLED][[!!(null!=(t=window)&&null!=(e=t.ToutiaoJSBridge)&&e.invokeMethod),!0].findIndex(function(t){return t})]}catch(t){return ob.NOT_SURE}}(),i!==oH.INTERACTION&&i!==oH.PERFORMANCE&&i!==oH.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(u.context.user={},u.context.ad=this.context.getOffsiteAdInfo(),u.context.ad=tr(u.context.ad,eX)),u.properties.reporterId&&delete u.properties.reporterId,u},r.page=function(t){void 0===t&&(t={});var e=en().url;e!==this.currentHref&&(this.currentHref=e,this.track("Pageview",t,{}))},r.track=function(e,r,n,o,i){var a=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=oH.TRACK),void 0===i&&(i=oB.defaultReport);var c=function(){var c=a.getReporterId();if(eQ.includes(e))return t.prototype.track.call(a,e,r,n,o,i);var u=Object.assign({},n);return a.selfHostConfig[c]&&!n.eventID&&(u=Object.assign({},u,{eventID:V(H("default_eventId"),c)})),t.prototype.track.call(a,e,r,u,o,i)};return this.loaded?c():this.getInstance().then(c)},r.getEventType=function(t){return e6[t]||t},r.trackSync=function(e,r,n,o,i,a,c){if(void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=oH.TRACK),void 0===a&&(a=oB.defaultReport),"track"===i&&L(o_.PIXEL_SEND,{pixelCode:e,extJSON:{event:r}}),i!==oH.TRACK)return void t.prototype.trackSync.call(this,e,r,n,o,i,a,c);n&&"string"==typeof n.currency&&(n.currency=n.currency.toUpperCase());var u,s=this.context.getTestID();if(s){var l=this.assemblyData(e,r,n,o);return l.tt_test_id=s,l.context.ad={},null==(u=this===null||void 0===this?void 0:this.reportService)||u.report(c||es,l,oB.htmlHttpReport,oK.P0),l}if(n&&"object"==typeof n){var f,h=n,p=h.value,d=h.currency;void 0===p||!isNaN(p)&&p>=0||L(o_.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:r,value:p,currency:d}}),void 0===d||(void 0===(f=this.currency_list)&&(f=null),(f||eZ).includes(d))||L(o_.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:r,value:p,currency:d}})}return t.prototype.trackSync.call(this,e,r,n,o,i,a,c)},r.trackPostTask=function(t){var e=t.reporterId,r=t.eventType,n=t.properties,o=t.eventConfig;eQ.includes(r)||this.selfHostConfig[e]&&!this.hasReportEventHistory(r,oB.htmlHttpReport)&&(this.pushReport(r,this.getReportEventHistoryKey(oB.htmlHttpReport)),this.trackSync(e,r,n,o,oH.SELFHOST,oB.htmlHttpReport))},r.getReportEventHistoryKey=function(t){return t===oB.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},r.assemblySelfHostData=function(t,e,r,n,o){void 0===r&&(r={}),void 0===n&&(n={});var i=this.assemblyData(t,e,r,n,o),a=this.ttp;return a&&(i.context.user.ttp=a),i},e}(e3);function re(t,e){return(re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rr=function(t,e){return function(r,n){e(r,n,t)}},rn=function(t){function e(e,r,n,o,i,a,c,u,s,l,f){var h;return(h=t.call(this,{id:e,type:r,isOnsitePage:n,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:u,rules:s,options:l})||this).clickInteractionIdService=f,h}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,re(e,t);var r=e.prototype;return r.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var r=(t=this.id,tH()[t]||{});return _()||r&&r.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,r){var n,o,i=eo();eJ((n=e.id,o=(null==i?void 0:i.hostname)||"",(tS()?"/static/config.js":"https://analytics.tiktok.com/i18n/pixel/config.js")+"?sdkid="+n+"&hostname="+o)).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,r(t)})}),this.pixelPromise)},r.setCookieBasedSession=function(e){var r=e9(this.pixelCode,e,this.ttqOptions);return t.prototype.setCookieBasedSession.call(this,r)},r.track=function(e,r,n,o,i){var a;if(void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=oH.TRACK),void 0===i&&(i=oB.defaultReport),a=r,["[object Object]","[object Array]"].includes(Object.prototype.toString.call(a))||(r={description:JSON.stringify(r)}),n&&n.pixel_code&&this.getReporterId()!==n.pixel_code)return Promise.resolve(null);try{var c,u=null==(c=this.clickInteractionIdService)?void 0:c.getInterId();u&&(r.inter_id=u)}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"clickInteractionIdService"})}if(eM(this.reporterInfo,this.ttqOptions)){var s=eU(document.cookie);Object.assign(n,{pixelSession:this.setCookieBasedSession(s[this.getReporterId()]),pageSession:this.context.setPageCookieBasedSession(s[""])})}return t.prototype.track.call(this,e,r,n,o,i)},e}(rt);function ro(t,e){return(ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ri=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ro(e,t);var r=e.prototype;return r.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},r.track=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),tB(this.getReporterId(),"track",[t,e,r]),Promise.resolve(null)},e}(rn=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),rr(0,t7(ty.ID)),rr(1,t7(ty.Type)),rr(2,t7(ty.IsOnsitePage)),rr(3,t7(tK.CONTEXT)),rr(4,t7(ty.Info)),rr(5,t7(tK.TTQ_GLOBAL_OPTIONS)),rr(6,t7(tK.REPORT_SERVICE)),rr(7,t7(ty.Plugins)),rr(7,et()),rr(8,t7(ty.Rules)),rr(8,et()),rr(9,t7(ty.Options)),rr(9,et()),rr(10,t7(tK.CLICK_INTERACTION_ID_SERVICE))],rn));function ra(){ra=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rc(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function ru(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rc(i,n,o,a,c,"next",t)}function c(t){rc(i,n,o,a,c,"throw",t)}a(void 0)})}}function rs(t,e){return(rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rl=function(t,e){return function(r,n){e(r,n,t)}},rf=function(r){function n(t,e,n,o,i,a,c,u,s,l,f,h,p,d,v,g,y,m,_,b,E,I,O,T,P,S){(L=r.call(this,t,i,l)||this).context=t,L.env=s,L.reporters=e,L.cookieService=a,L.reportService=i,L.consentService=c,L.adService=n,L.appService=o,L.clickInteractionIdService=u,L.historyObserver=I,L.interactionObserver=O,L.autoAdvancedMatchingPlugin=h,L.callbackPlugin=p,L.identifyPlugin=d,L.monitorPlugin=f,L.shopifyPlugin=v,L.autoConfigPlugin=g,L.diagnosticsConsolePlugin=y,L.eventBuilderPlugin=m,L.pagedataPlugin=E,L.enrichIpv6Plugin=_,L.lpvPlugin=b,L.runtimeMeasurementPlugin=T,L.textTreeWalkerPlugin=P,L.cdpVisiterPlugin=S,L.eventEmitter=l,L.historyObserver&&L.useObserver(L.historyObserver),L.interactionObserver&&L.useObserver(L.interactionObserver),L.autoAdvancedMatchingPlugin&&L.usePlugin(L.autoAdvancedMatchingPlugin),L.callbackPlugin&&L.usePlugin(L.callbackPlugin),L.identifyPlugin&&L.usePlugin(L.identifyPlugin),L.monitorPlugin&&L.usePlugin(L.monitorPlugin),L.shopifyPlugin&&L.usePlugin(L.shopifyPlugin),L.autoConfigPlugin&&L.usePlugin(L.autoConfigPlugin),L.diagnosticsConsolePlugin&&L.usePlugin(L.diagnosticsConsolePlugin),L.eventBuilderPlugin&&L.usePlugin(L.eventBuilderPlugin),L.enrichIpv6Plugin&&L.usePlugin(L.enrichIpv6Plugin),L.lpvPlugin&&L.usePlugin(L.lpvPlugin),L.runtimeMeasurementPlugin&&L.usePlugin(L.runtimeMeasurementPlugin),L.textTreeWalkerPlugin&&L.usePlugin(L.textTreeWalkerPlugin),L.cdpVisiterPlugin&&L.usePlugin(L.cdpVisiterPlugin),L.monitorPlugin&&(w.info.forEach(function(t){var e;null==(e=L.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB)}),w.error.forEach(function(t){var e;null==(e=L.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),w.info=[],w.error=[]),L.dispatch(oD.INIT_START),L.pagedataPlugin&&L.usePlugin(L.pagedataPlugin),L.onPageLoaded(),L.initLCPListener(),L.onPageLeave();var L,x=en(),R=x.url,N=x.referrer;return L.init(R,N),L.setPageInfo(R,N),L.dispatch(oD.INIT_END),L}n.prototype=Object._ttq_create(r.prototype),n.prototype.constructor=n,rs(n,r);var i,a=n.prototype;return a.initAdInfo=function(e,r){this.dispatch(oD.BEFORE_AD_INFO_INIT_START);var n=ei(t);if(n)return void this.initAdCache(n);if(tD()){var o=e_(e,r);o&&(o.creative_id&&o.log_extra||o.callback)&&(this.dispatch(oD.AD_INFO_INIT_START),ec(t,o),this.setAdInfo(o),this.initOffsiteAdInfo(o));return}this.initBaseAdInfo(e,r)},a.initAdCache=function(t){this.dispatch(oD.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},a.initBaseAdInfo=function(t,e){var r=this;this.adService.webBridgeService.jsbridge&&this.dispatch(oD.AD_INFO_INIT_START),this.reportService.pushPreposition(ru(ra().mark(function n(){var o;return ra().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.adService.getAdInfo(t,e);case 3:o=n.sent,r.context.setAdInfo(o),r.initOffsiteAdInfo(o),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),x(o_.INIT_ERROR,n.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return n.stop()}},n,null,[[0,8]])}))())},a.initOffsiteAdInfo=function(t){var e=eE(t,function(t){x(o_.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var r=eb(t,this.env);this.context.setEnableAdTracking(r),this.dispatch(oD.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:r}})},a.initAppInfo=function(t,r){var n=this,o=ei(e);if(o)return void this.context.setAppInfo(o);this.reportService.pushPreposition(ru(ra().mark(function e(){var o;return ra().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.initBaseAppInfo(t,r);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}))())},i=ru(ra().mark(function t(e,r){var n;return ra().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.appService.getAppInfo(e,r);case 2:return n=t.sent,this.context.setAppInfo(n),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)})),a.initBaseAppInfo=function(t,e){return i.apply(this,arguments)},a.initTestId=function(t,e){if(!this.context.getTestID()){var r=ej(t,ex("tt_test_id"),e);this.context.setTestID(r)}},a.initUserInfo=function(){this.setCookieInfo()},a.initLocalServiceInfo=function(){var t,e,r=ei(l);if(r)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[l]=r,t));var n=en(),o=n.url,i=n.referrer,a=er(f[location.hostname]?f[location.hostname]:l,o,i);a&&(ec(l,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[l]=a,e)))},a.setPageIndex=function(t){t&&eN(t)},a.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new ri(t,oA.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},a.instances=function(){return this.beforeAPIExecution(),this.reporters},a.page=function(t){this.beforeAPIExecution();var e=en(),n=e.url,o=e.referrer;r.prototype.page.call(this,Object.assign({url:(null==t?void 0:t.page)||n,referrer:(null==t?void 0:t.referrer)||o},t))},a.track=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),this.beforeAPIExecution();var o=n.pixel_code;if(void 0===o&&r.prototype.track.call(this,t,e,n),void 0!==o){var i=this.instance(o);i instanceof ri||i.track(t,e,n)}},a.identify=function(t,e){this.beforeAPIExecution(),r.prototype.identify.call(this,t,e)},a.setAdInfo=function(t){this.context.setAdInfo(t)},a.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},a.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},a.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},a.holdConsent=function(){this.consentService.setConsentMode(ox.HOLD)},a.revokeConsent=function(){this.consentService.setConsentMode(ox.REVOKE)},a.grantConsent=function(){this.consentService.setConsentMode(ox.GRANT)},a.disablePangleCookie=function(){},a.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},a.resetCookieExpires=function(){this.cookieService.resetExpires()},a.setCookieInfo=function(){if(this.cookieService.canUseCookie()){var t=this.cookieService.getAnonymousId();t&&this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})}},a.initLCPListener=function(){var t,e=this;(void 0===t&&(t=5e3),new Promise(function(e){var r,n,o=!1,i="timeout",a=function(){if(!o){o=!0;try{null==n||n.disconnect()}catch(t){x(o_.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailed"}})}clearTimeout(c),e({reason:i,lcpTime:r})}},c=setTimeout(a,t);if("undefined"==typeof PerformanceObserver){i="unsupported",a();return}try{n=new PerformanceObserver(function(t){var e=t.getEntries();e.length>0&&(r=e[e.length-1].startTime,i="lcp",a())}),n.observe({type:"largest-contentful-paint",buffered:!0})}catch(t){x(o_.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailedCatch"}}),i="unsupported",a()}})).then(function(t){"lcp"===t.reason&&void 0!==t.lcpTime&&e.dispatch(oD.PAGE_LCP,{startTime:t.lcpTime,value:t.lcpTime,reason:t.reason})}).catch(function(t){x(o_.CUSTOM_ERROR,t,{extJSON:{position:"initLCPListener"}})})},a.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(oD.PAGE_DID_LOAD)},{once:!0})},a.onPageLeave=function(){var t=this,e=z(function(){var e=Date.now();t.dispatch(oD.PAGE_WILL_LEAVE,e),t.consentService.updateCache()});document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()}),"onpagehide"in window&&window.addEventListener("pagehide",function(){e()}),window.addEventListener("beforeunload",function(){return e},{once:!0})},a.beforeAPIExecution=function(){try{var t,e;t=this.context,en().url===t.getPageInfo().url||this.setPageInfo(en().url),e=this.context,ex(o)===e.getUserInfo().anonymous_id||e4(this.context)}catch(t){x(o_.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},a.loadPixel=function(t,e){if(t){if(this.reporters.find(function(e){return e.getReporterId()===t}))return void R(oU.DUPLICATE_PIXEL_CODE);y().load(t,e||{})}},n}(eK),rh=rf=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),rl(0,t7(tK.CONTEXT)),rl(1,t7(tK.TTQ_REPORTERS)),rl(2,t7(tK.AD_SERVICE)),rl(3,t7(tK.APP_SERVICE)),rl(4,t7(tK.REPORT_SERVICE)),rl(5,t7(tK.COOKIE_SERVICE)),rl(6,t7(tK.CONSENT_SERVICE)),rl(7,t7(tK.CLICK_INTERACTION_ID_SERVICE)),rl(8,t7(tK.ENV)),rl(9,t7(tK.EVENT_EMITTER)),rl(10,t7(tK.MONITOR_PLUGIN)),rl(10,et()),rl(11,t7(tK.AUTO_ADVANCED_MATCHING_PLUGIN)),rl(11,et()),rl(12,t7(tK.CALLBACK_PLUGIN)),rl(12,et()),rl(13,t7(tK.IDENTIFY_PLUGIN)),rl(13,et()),rl(14,t7(tK.SHOPIFY_PLUGIN)),rl(14,et()),rl(15,t7(tK.AUTO_CONFIG_PLUGIN)),rl(15,et()),rl(16,t7(tK.DIAGNOSTICS_CONSOLE_PLUGIN)),rl(16,et()),rl(17,t7(tK.EVENT_BUILDER_PLUGIN)),rl(17,et()),rl(18,t7(tK.ENRICH_IPV6_PLUGIN)),rl(18,et()),rl(19,t7(tK.LPV_PLUGIN)),rl(19,et()),rl(20,t7(tK.PAGEDATA_PLUGIN)),rl(20,et()),rl(21,t7(tK.HISTORY_OBSERVER)),rl(21,et()),rl(22,t7(tK.INTERACTION_OBSERVER)),rl(22,et()),rl(23,t7(tK.RUNTIME_MEASUREMENT_PLUGIN)),rl(23,et()),rl(24,t7(tK.TEXT_TREE_WALKER_PLUGIN)),rl(24,et()),rl(25,t7(tK.CDP_VISITER_PLUGIN)),rl(25,et())],rf);function rp(){return(rp=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],rd);var ry=function(t,e){return function(r,n){e(r,n,t)}},rm=function(t){function e(e,r,n,o,i){var a;return(a=t.call(this,e)||this).setSignalType(i||oN.OFFSITE),a.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},a.legacy=n.legacy||[],a.variationId=n.variation_id||"",a.vids=n.vids||"",a.serverUniqueId=n.server_unqiue_id||"",a.ttqOptions=n,a.reportService=r,a.initPageSign(),a.innerWidth=window.innerWidth,a.innerHeight=window.innerHeight,tE(o)&&tP()&&(a.enableAdTracking=!1),a.data=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(a),a}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rg(e,t);var r=e.prototype;return r.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(i)||"")}catch(t){}return t},r.setSessionIdToCache=function(t){ec(i,t)},r.getVariationId=function(){return this.variationId},r.getVids=function(){return this.vids},r.isLegacyPixel=function(t){return I(t,this.legacy)},r.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},r.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(a)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},r.setUserInfo=function(t,e){var r=this;void 0===t&&(t={});var n=null==e?void 0:e.reporterId;if(0!==Object.keys(t).length){var o={};Object.entries(t).forEach(function(t){var e,i,a,c=t[0],u=t[1];if(u){if(r.userInfoFieldAllowlist[c]||(r.userInfoFieldAllowlist[c]=[]),n?null==(e=r.userInfoFieldAllowlist[c])||e.push(n):null==(i=r.userInfoFieldAllowlist[c])||i.push("all"),c===U)return void r.setUserInfoWithoutIdentifyPlugin(((a={})[U]=u,a));o[c]=String(u).trim()}});var i=y(),a=null==i?void 0:i.getPlugin("Identify");a&&this.reportService.pushPreposition(a.handleUserProperties(o,t).then(function(t){void 0===t&&(t={});var i=t,c=i.userProperties,u=i.userDataFormat,s=i.userDataFormatV2;if(c){Object.assign(r.userInfo,c);var l=r.getUserFormatInfo()||{},f=r.getUserFormatInfoV2()||{},h=r.getSignalDiagnosticLabels()||{};r.setUserFormatInfo(Object.assign({},l,u)),r.setUserFormatInfoV2(Object.assign({},f,s)),r.setSignalDiagnosticLabels(Object.assign({},h,t.identifierLabel||{}));var p=Object.keys(r.userInfo);if(0===p.length||1===Object.keys(o).length&&Object.keys(o).includes("external_id"))return;var d=a.reporters[0];if(n)d=a.reporters.find(function(t){return t.getReporterId()===n});else if(null==(v=String(p))?void 0:v.includes("auto_")){for(var v,g,y,m=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return rv(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rv(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(p);!(y=m()).done&&"break"!==function(){var t=y.value,e=a.reporters.find(function(e){var r,n;return null==(n=null==(r=null==e?void 0:e.plugins)?void 0:r.AutoAdvancedMatching)?void 0:n[t]});if(e)return g=e,"break"}(););g&&(d=g)}else d=a.reporters.find(function(t){if(Object.keys(t.getUserInfo(oT.Manual)).length)return!0});var _=d?Object.keys(Object.assign({},d.getUserInfo(oT.Manual),d.getUserInfo(oT.Auto),d.getUserInfo(oT.EBManual))):[];d&&_.length&&d.track("EnrichAM",e||{},{},oH.TRACK)}}).catch(function(t){x(o_.API_ERROR,t,{extJSON:{api:"identify"}})}))}},r.initPageSign=function(){var t,e,r=this.getSessionIdFromCache();null===r&&(r=(t=this.serverUniqueId)?""+t+"::"+Z(20):H("sessionId"),this.setSessionIdToCache(r));var n=this.getPageId((e=r)?e.split("::")[0]:""),o=this.getVariationId(),i=this.getSessionIndex(),a=eP();i.main++,this.pageSign={sessionId:r,pageId:n,variationId:o,pageIndex:i,etldPlusOne:a}},r.setPageCookieBasedSession=function(e){var r=e9("",e,this.ttqOptions);return t.prototype.setPageCookieBasedSession.call(this,r)},e}(rd);rm=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),ry(0,t7(ty.WebLibraryInfo)),ry(1,t7(tK.REPORT_SERVICE)),ry(2,t7(tK.TTQ_GLOBAL_OPTIONS)),ry(3,t7(tK.ENV)),ry(3,et()),ry(4,t7(ty.SignalType)),ry(4,et())],rm);var r_=String.fromCharCode.bind(String),rb=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),rE=function(t){for(var e,r,n,o,i="",a=t.length%3,c=0;c255||(n=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw TypeError("invalid character found");i+=rb[(e=r<<16|n<<8|o)>>18&63]+rb[e>>12&63]+rb[e>>6&63]+rb[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},rI=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?r_(192|e>>>6)+r_(128|63&e):r_(224|e>>>12&15)+r_(128|e>>>6&63)+r_(128|63&e)}var r=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return r_(240|r>>>18&7)+r_(128|r>>>12&63)+r_(128|r>>>6&63)+r_(128|63&r)},rO=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,rT=function(t){return rE(JSON.stringify(t).replace(rO,rI)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};function rP(){rP=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rS(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var rw=function(){function t(t,e,r){this.httpService=t,this.bridgeService=e,this.reportPreTasks=r}var e,r,n=t.prototype;return n.pushPreposition=function(t){this.reportPreTasks.push(t)},e=rP().mark(function t(e,r,n,o){return rP().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}},t)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){rS(i,n,o,a,c,"next",t)}function c(t){rS(i,n,o,a,c,"throw",t)}a(void 0)})},n.report=function(t,e,n,o){return r.apply(this,arguments)},t}();rw=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],rw);var rL=function(t,e){var r=new URL(t);return Object.keys(e).forEach(function(t){var n=e[t].toJSON?e[t].toJSON():String(e[t]);r.searchParams.set(t,n)}),r.toString()},rx=function(t){var e=Array(t.length),r=0;return new Promise(function(n,o){for(var i=function(o){var i=t[o];i&&"function"==typeof i.then?i.then(function(i){e[o]={status:"fulfilled",value:i},++r===t.length&&n(e)}).catch(function(i){e[o]={status:"rejected",reason:i},++r===t.length&&n(e)}):(e[o]={status:"fulfilled",value:i},++r===t.length&&n(e))},a=0;a=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rA(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rC(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rA(i,n,o,a,c,"next",t)}function c(t){rA(i,n,o,a,c,"throw",t)}a(void 0)})}}function rk(t,e){return(rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rj=function(t,e){return function(r,n){e(r,n,t)}},rD=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,new rR)||this).supportSendAnalyticsEvent=!0,i.consentService=n,i.consentService.on(ok.QUEUE,function(t){t.forEach(function(t){var e=t.url,r=t.data,n=t.type;i.report(e,r,n,oK.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rk(e,t);var r,n,o,i=e.prototype;return r=rC(rN().mark(function t(e,r,n){var o,i,a,c,u,s,l;return rN().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.bridgeService.jsbridge){t.next=2;break}return t.abrupt("return");case 2:return s=!!(u=r).context&&(null==(i=null==(o=u.context)?void 0:o.ad)?void 0:i.ad_info_status)==="timeout",l={},t.prev=5,t.next=8,this.bridgeService.send(u,s);case 8:if(!(!(l=t.sent)||1!==l.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(l&&l.code)+", data: "+(l&&JSON.stringify(l)));case 11:return Q(u.event)&&L(o_.JSB_SEND,{pixelCode:null==(a=u.context.pixel)?void 0:a.code,app_name:tx()?"ultralite":"",extJSON:{event:u.event,event_id:u.event_id,need_inject_ad_info:s}}),t.abrupt("return",l);case 15:t.prev=15,t.t0=t.catch(5),Q(u.event)&&x(o_.JSB_ERROR,t.t0,{pixelCode:null==(c=u.context.pixel)?void 0:c.code,custom_name:"sendReportData",custom_enum:l&&l.code?""+l.code:"non",app_name:tC()||"",extJSON:{position:"sendReportData"}}),tx()&&tT()&&this.sendHttpReport(e,u,n);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),i.send=function(t,e,n){return r.apply(this,arguments)},n=rC(rN().mark(function t(e,r,n,o,i){var a;return rN().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===o&&(o=!0),t.next=3,this.httpService.send(e,r,i);case 3:t.sent||this.httpService.sendByImage(e,{analytics_message:n}),o&&L(o_.HTTP_SEND,{pixelCode:null==(a=r.context.pixel)?void 0:a.code,extJSON:{event:r.event,event_id:r.event_id}});case 6:case"end":return t.stop()}},t,this)})),i.sendHttpReport=function(t,e,r,o,i){return n.apply(this,arguments)},i.beforeReport=function(t,e,r){void 0===r&&(r=oB.defaultReport);var n=this.consentService.getConsentMode();return n!==ox.REVOKE&&(n!==ox.HOLD||(this.consentService.cacheReportTask(t,e,r),!1))},o=rC(rN().mark(function t(e,r,n,o){var i,a,c,u;return rN().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=oB.defaultReport),void 0===o&&(o=oK.P0),o===oK.P0){t.next=8;break}return t.next=5,ti(0);case 5:return t.next=7,this.report(e,r,n,oK.P0);case 7:case 15:return t.abrupt("return",t.sent);case 8:if(this.beforeReport(e,r,n)){t.next=11;break}return t.abrupt("return");case 11:if(i=rT(r),!(n===oB.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,r,i);case 16:if(!(n===oB.httpReport&&this.bridgeService.jsbridge&&tE(this.env)&&!tL()&&this.supportSendAnalyticsEvent)){t.next=35;break}return a=e,t.prev=18,a=new URL(e).pathname,t.next=22,this.bridgeService.sendAnalyticsEvent({path:a,method:"POST",data:r});case 22:if(u=Error("sendAnalyticsEvent not support: code "+(c=t.sent)+", path: "+a+", data: "+JSON.stringify(r)),null!=c&&-2!==c){t.next=27;break}throw this.supportSendAnalyticsEvent=!1,u;case 27:if(1!==c){t.next=29;break}return t.abrupt("return");case 29:throw u;case 32:t.prev=32,t.t0=t.catch(18),x(o_.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 35:this.sendHttpReport(e,r,i,!!(Q(r.event)&&q(r)),r.action?3:void 0);case 36:case"end":return t.stop()}},t,this,[[18,32]])})),i.report=function(t,e,r,n){return o.apply(this,arguments)},i.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(rw);function rM(){rM=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rF(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}rD=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),rj(0,t7(tK.HTTP_SERVICE)),rj(1,t7(tK.BRIDGE_SERVICE)),rj(2,t7(tK.CONSENT_SERVICE)),rj(3,t7(tK.ENV)),rj(3,et())],rD);var rU=function(){function e(t){this.webBridgeService=t}var r,n,o=e.prototype;return r=rM().mark(function e(r,n){var o,i,a;return rM().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.getAdInfoFromURL(r,n),!this.webBridgeService.jsbridge){e.next=7;break}return e.next=4,this.webBridgeService.getAdInfo();case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0={};case 8:return i=e.t0,(a=Object.assign({},o,i))&&(a.creative_id&&a.log_extra||a.callback)&&ec(t,a),e.abrupt("return",a);case 12:case"end":return e.stop()}},e,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){rF(i,n,o,a,c,"next",t)}function c(t){rF(i,n,o,a,c,"throw",t)}a(void 0)})},o.getAdInfo=function(t,e){return n.apply(this,arguments)},o.getAdInfoFromURL=function(t,e){return e_(t,e)},e}();function rG(){rG=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rH(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}rU=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),(oi=t7(tK.BRIDGE_SERVICE),function(t,e){oi(t,e,0)})],rU);var rV=function(){function t(t){this.webBridgeService=t}var r,n,o=t.prototype;return r=rG().mark(function t(r,n){var o,i,a,c;return rG().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((o=this.getAppInfoFromURL(r,n)).platform=tI(),!tT()){t.next=10;break}return t.next=5,tO();case 5:a=(i=t.sent).model,c=i.platformVersion,o.device_model=a,o.android_version=c;case 10:return"{}"!==JSON.stringify(o)&&ec(e,o),t.abrupt("return",o);case 12:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){rH(i,n,o,a,c,"next",t)}function c(t){rH(i,n,o,a,c,"throw",t)}a(void 0)})},o.getAppInfo=function(t,e){return n.apply(this,arguments)},o.getAppInfoFromURL=function(t,e){try{var r=er(em,t,e),n=r&&JSON.parse(r),o=n.device_id,i=n.uid;return{device_id:o,user_id:i}}catch(t){return{}}},t}();rV=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),(oa=t7(tK.BRIDGE_SERVICE),function(t,e){oa(t,e,0)})],rV);var rB="ad_analytics_msg";function rK(){rK=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rW(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rY(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rW(i,n,o,a,c,"next",t)}function c(t){rW(i,n,o,a,c,"throw",t)}a(void 0)})}}var rJ=function(t,e){return function(r,n){e(r,n,t)}},rQ=function(){function t(t,e){this.env=t,tb(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,r,n,o,i,a,c,u=t.prototype;return e=rY(rK().mark(function t(){var e=this;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return x(o_.JSB_ERROR,Error("tt bridge error when getting ad info"),{extJSON:{position:"getAdInfo"}}),t.abrupt("return",Promise.resolve({}));case 3:return t.abrupt("return",new Promise(function(){var t=rY(rK().mark(function t(r){var n;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.callAdInfo();case 3:(n=t.sent).ad_info_from="jsb",n.ad_info_status=n.ad_info_status||"fulfilled",r(n),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),r({}),x(o_.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}});case 13:case"end":return t.stop()}},t,null,[[0,9]])}));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return t.stop()}},t,this)})),u.getAdInfo=function(){return e.apply(this,arguments)},r=rY(rK().mark(function t(){var e,r;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},tw()?3500:5e3);case 3:if((e=t.sent).data){t.next=6;break}return t.abrupt("return",Promise.reject("adInfo no data"));case 6:return r={creative_id:e.data.cid,log_extra:e.data.log_extra},t.abrupt("return",r);case 10:if(t.prev=10,t.t0=t.catch(0),"JSBRIDGE TIMEOUT"!==t.t0){t.next=17;break}return L(o_.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return x(o_.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),u.callAdInfo=function(){return r.apply(this,arguments)},n=rY(rK().mark(function t(){return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve({}));case 1:case"end":return t.stop()}},t)})),u.getAppInfo=function(){return n.apply(this,arguments)},o=rY(rK().mark(function t(e,r){var n,o,i,a,c,u,s,l,f,h,p,d;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=2;break}return t.abrupt("return",Promise.resolve());case 2:return i=(null==(o=null==(n=null==e?void 0:e.context)?void 0:n.ad)?void 0:o.creative_id)||"0",a=rT(e),c=X(e)?"insight_log_monitor":"insight_log",u={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:rB,label:c},tL()&&(u.is_ad_event=1),f={eventName:rB,labelName:c,value:i,extValue:"0",extJson:u},"insight_log_monitor"===c&&tU(new Set([om.MUSICAL_LY,om.TRILL,om.ULTRALITE]))?(l="x.reportAppLog",h={eventName:"insight_log_monitor",params:u},s=this.call("x.reportAppLog",h,this.bridgeTimeout)):tD()||X(e)?(l="sendLog",s=this.call("sendLog",f,this.bridgeTimeout)):tE(this.env)?tP()&&r?(p={eventName:c,params:u},l="sendLogWithAdInfo",s=this.call("sendLogWithAdInfo",p,this.bridgeTimeout)):(l="sendLog",s=this.call("sendLog",f,this.bridgeTimeout)):(d={event_name:c,version:2,properties:u},l="track_event",s=this.call("track_event",d,400)),setTimeout(function(){L(o_.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:l}})}),t.abrupt("return",s);case 11:case"end":return t.stop()}},t,this)})),u.send=function(t,e){return o.apply(this,arguments)},i=rY(rK().mark(function t(e,r,n,o){var i=this;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),void 0===n&&(n=400),void 0===o&&(o=!0),t.abrupt("return",new Promise(function(t,a){var c;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&x(o_.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}n>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&x(o_.JSB_ERROR,Error("JSBRIDGE TIMEOUT"),{extJSON:{position:"getCallPromise",method:e}})},n)),i.jsbridge&&i.jsbridge.call&&i.jsbridge.call(e,r,function(e){t(function(t,e){void 0===e&&(e=!0);var r={};try{if("string"==typeof t)r.data=JSON.parse(t);else if(t.code&&t.data&&t.ret?0:1)if(void 0!==t.code){var n=Object.assign({},t),o=n.code;r.code=o,delete n.code,n.data?r.data=n.data:r.data=n}else r.data=t;else(r=t).__data&&(r.data=r.__data)}catch(t){e&&x(o_.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),u.call=function(t,e,r,n){return i.apply(this,arguments)},a=rY(rK().mark(function t(e){var r,n,o,i,a;return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.path,o=e.params,i=e.data,t.next=3,this.call("sendAnalyticsEvent",{method:r,path:n,params:o,data:i,header:{"Content-Type":"application/json"}},0,!1);case 3:return a=t.sent,t.abrupt("return",null==a?void 0:a.code);case 5:case"end":return t.stop()}},t,this)})),u.sendAnalyticsEvent=function(t){return a.apply(this,arguments)},c=rY(rK().mark(function t(e){return rK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(tE(this.env)&&tP())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),u.updateWebFlData=function(t){return c.apply(this,arguments)},t}();function rX(){rX=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rq(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}rQ=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),rJ(0,t7(tK.ENV)),rJ(0,et()),rJ(1,t7(tK.JS_BRIDGE)),rJ(1,et())],rQ);var rz=function(){function t(){}var e,r,n=t.prototype;return e=rX().mark(function t(e,r,n){var o;return rX().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=0),t.prev=1,!(!navigator||!navigator.sendBeacon)){t.next=4;break}return t.abrupt("return",!1);case 4:if(!(!(o=navigator.sendBeacon(e,JSON.stringify(r)))&&"number"==typeof n&&n>0)){t.next=10;break}return n--,t.next=9,ti(200);case 9:return t.abrupt("return",this.send(e,r,n));case 10:return t.abrupt("return",o);case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",!1);case 16:case"end":return t.stop()}},t,this,[[1,13]])}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){rq(i,n,o,a,c,"next",t)}function c(t){rq(i,n,o,a,c,"throw",t)}a(void 0)})},n.send=function(t,e,n){return r.apply(this,arguments)},n.sendByImage=function(t,e){new Image().src=rL(t,e)},t}();function rZ(){rZ=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function r$(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}rz=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],rz);var r0=function(){function t(t){this.cookieExpireOption=eT(t)}var e,r,i=t.prototype;return i.genCookieID=function(){return $()},e=rZ().mark(function t(){return rZ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return eR(n,"1",this.cookieExpireOption),t.abrupt("return",eJ(tS()?"/static/enable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/enable_cookie"));case 2:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){r$(i,n,o,a,c,"next",t)}function c(t){r$(i,n,o,a,c,"throw",t)}a(void 0)})},i.enableCookie=function(){return r.apply(this,arguments)},i.enableFirstPartyCookie=function(t){if(t){eR(n,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},i.disableCookie=function(){eR(n,"0",this.cookieExpireOption),eR(o,"",Object.assign(this.cookieExpireOption,{expires:-1})),eJ(tS()?"/static/disable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/disable_cookie")},i.setAnonymousId=function(t){var e=this.getAnonymousId()||t;e&&eR(o,e.split(".")[0],this.cookieExpireOption)},i.getAnonymousId=function(){return ex(o)||""},i.canUseCookie=function(){try{return"0"!==ex(n)}catch(t){}return!1},i.resetExpires=function(){var t=ex(n);t&&eR(n,t,this.cookieExpireOption);var e=this.getAnonymousId();e&&this.setAnonymousId(e)},t}();function r1(t,e){return(r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r0=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),(oc=t7(tK.TTQ_GLOBAL_OPTIONS),function(t,e){oc(t,e,0)})],r0),(ou=oJ||(oJ={}))[ou.P0=4]="P0",ou[ou.P1=3]="P1",ou[ou.P2=2]="P2",ou[ou.P3=1]="P3";var r2="tt_hold_events",r3=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=ox.UNKNOWN,e.queue=[],e.debounceUpdateCache=to(function(){e.updateCache()},200,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.handleHistoryQueue=z(function(){var t=ei(r2);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,r1(e,t);var r=e.prototype;return r.on=function(e,r){t.prototype.on.call(this,e,r,{}),this.handleHistoryQueue()},r.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},r.changeQueueWithConsent=function(){switch(this.consentMode){case ox.REVOKE:this.cleanQueue();break;case ox.GRANT:this.releaseQueue(),this.cleanQueue();case ox.HOLD:case ox.UNKNOWN:}},r.getConsentMode=function(){return this.consentMode},r.cacheReportTask=function(t,e,r){void 0===r&&(r=oB.defaultReport),this.queue.push({url:t,data:e,type:r}),this.debounceUpdateCache()},r.cleanQueue=function(){this.queue=[],ea(r2)},r.updateCache=function(){this.queue&&this.queue.length>0&&ec(r2,this.queue)},r.releaseQueue=function(){var t=this;this.queue.sort(function(e,r){return t.getEventPriority(r.data)-t.getEventPriority(e.data)}),this.emit(ok.QUEUE,this.queue)},r.getEventPriority=function(t){return t.event&&t.event.length>0?oJ.P0:t.action&&t.action.length>0?oJ.P1:""===t.event?oJ.P2:oJ.P3},e}(e$);r3=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],r3),(os=oQ||(oQ={}))[os.CLICK_INTER_ID=1]="CLICK_INTER_ID",os[os.SCROLL_INTER_ID=2]="SCROLL_INTER_ID";var r6=function(){function t(t){if(this.inter_id=null,this.expireAt=null,this.clickCount=0,this.removeMouseMoveListener=null,this.clearTimer=null,this.moveEvent=tI()===oy.PC?"mousemove":"touchmove",this.getPagePos=function(t){if("undefined"!=typeof TouchEvent&&t instanceof TouchEvent&&t.touches.length>0){var e=t.touches[0];return{x:e.pageX,y:e.pageY}}return{x:t.pageX,y:t.pageY}},!tg){this.getInterId=function(){return null},L(o_.CUSTOM_INFO,{custom_name:"ClickInterIdService",custom_enum:"DateNonNative"});return}this.eventEmitter=t,this.eventEmitter.on(oC.CLICK,this.generate.bind(this),{})}var e=t.prototype;return e.generate=function(t,e){void 0===e&&(e=200);try{this.clear();var r=Date.now();this.inter_id=this.createUniqueId(t),this.expireAt=r+e,this.startShortLivedTracking(t)}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"ClickInterIdService",custom_enum:"generate"})}},e.startShortLivedTracking=function(t){var e=this,r=t.target,n=null;r&&r.getBoundingClientRect&&(n=r.getBoundingClientRect());var o=tI()===oy.PC?10:30,i=this.getPagePos(t),a=function(t){var r=e.getPagePos(t),a=r.x,c=r.y;if(n)(an.right||cn.bottom)&&e.clear();else{var u=a-i.x,s=c-i.y;Math.sqrt(u*u+s*s)>o&&e.clear()}};document.addEventListener(this.moveEvent,a,{passive:!0}),this.removeMouseMoveListener=function(){document.removeEventListener(e.moveEvent,a),e.removeMouseMoveListener=null}},e.getInterId=function(){try{this.expireAt&&Date.now()>this.expireAt&&this.clear()}catch(t){return x(o_.CUSTOM_ERROR,t,{custom_name:"ClickInterIdService",custom_enum:"get"}),null}return this.inter_id},e.clear=function(){this.inter_id=null,this.expireAt=null,this.clearTimer&&(clearTimeout(this.clearTimer),this.clearTimer=null),this.removeMouseMoveListener&&this.removeMouseMoveListener()},e.createUniqueId=function(t){var e=this.getPagePos(t),r=e.x,n=e.y;return this.getInterType()+"-"+Date.now()+"-"+r+"-"+n+"-"+ ++this.clickCount},e.getInterType=function(){return oQ.CLICK_INTER_ID},t}();r6=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([(ol=t7(tK.EVENT_EMITTER),function(t,e){ol(t,e,0)})],r6);var r5=function(){function t(t){var e=t.name,r=t.context,n=t.reporters;this.reporters=[],this.context=r,this.reporters=n,this.name=e}var e=t.prototype;return e.initStart=function(){},e.initEnd=function(){},e.adInfoInitStart=function(){},e.adInfoInitEnd=function(){},e.contextInitStart=function(){},e.contextInitEnd=function(){},e.pageUrlWillChange=function(t,e){},e.pageUrlDidChange=function(t,e){},e.pageDidLoad=function(){},e.pageWillLeave=function(t){},e.pageLcp=function(t){},e.pixelSend=function(t,e,r,n,o){},e.pixelDidMount=function(t){},e.patchEnd=function(){},t}();function r4(t,e){return(r4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r8=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,r4(e,t),e}(r5=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9()],r5));function r9(t,e){return(r9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r7=function(t,e){return function(r,n){e(r,n,t)}},nt=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Callback",reporters:r,context:e})||this).ttclidCookieValue="undefined"!=typeof document?ex(ey):"",n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,r9(e,t),e.prototype.pixelDidMount=function(t){var e=en(),r=er(ey,e.url,e.referrer);r&&this.ttclidCookieValue!==r&&eO(ey,r)},e}(r8);nt=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),r7(0,t7(tK.CONTEXT)),r7(1,t7(tK.TTQ_REPORTERS))],nt);var ne={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},nr={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},nn={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},no={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},ni=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength;nr.parsePhoneNumberFromString=e,nr.validatePhoneNumberLength=r},na=function(t){var e=t.isHash,r=t.genIdentifierLabelByUserProperties;ne.isHash=e,ne.genIdentifierLabelByUserProperties=r},nc=function(t){var e=t.tryDecodeHashedBase64String,r=t.tryDecodeHashedBase64Hex;nn.tryDecodeHashedBase64String=e,nn.tryDecodeHashedBase64Hex=r},nu=function(t){var e=t.checkEmailFormat,r=t.checkMDNEmailFormat;no.checkEmailFormat=e,no.checkMDNEmailFormat=r},ns=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength,n=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,c=t.checkEmailFormat,u=t.checkMDNEmailFormat,s=t.sha256;nu({checkEmailFormat:c,checkMDNEmailFormat:u}),nc({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),na({isHash:n,genIdentifierLabelByUserProperties:o}),ni({parsePhoneNumberFromString:e,validatePhoneNumberLength:r}),J(s)},nl=function(t,e,r){void 0===e&&(e=""),void 0===r&&(r=nr.parsePhoneNumberFromString);var n=t,o=e?r(t,e):r(t);return o?n="86"===o.countryCallingCode?o.nationalNumber:o.number:t.replace(/[^0-9]/g,"").length>0&&(n=t.replace(/[^0-9]/g,"")),n},nf=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function nh(t,e){return(nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var np=function(t){function e(e){var r=e.name,n=e.context,o=e.reporters;return t.call(this,{name:r,reporters:o,context:n})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nh(e,t);var r=e.prototype;return r.setIdentifyUtils=function(t){var e=t.isHash,r=t.sha256,n=t.genIdentifierLabelByUserProperties,o=t.tryDecodeHashedBase64String,i=t.tryDecodeHashedBase64Hex,a=t.validatePhoneNumberLength,c=t.parsePhoneNumberFromString,u=t.checkEmailFormat,s=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;ns({isHash:e,sha256:r,genIdentifierLabelByUserProperties:n,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:c,checkEmailFormat:u,checkMDNEmailFormat:s}),this.parsePhoneNumberFromString=c,this.checkMDNEmailFormat=s,this.checkEmailFormat=u,this.sha256=r,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},r.baseHandleUserProperties=function(t,e){var r=this;if(t){var n=this.identifyParamsFormattedInfo(t),o=this.identifyParamsFormattedInfoV2(t),i=ne.genIdentifierLabelByUserProperties(e);return this.handlePIIDiagnostics(o),Object.entries(t).forEach(function(e){var n=e[0],i=e[1],a=void 0===i?"":i;if(a){var c=String(a);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(n)){var u=r.getUserDataFormatInfoV2KeyName(n),s=nn.tryDecodeHashedBase64Hex(c);if(null!==s)t[n]=s,null!==u&&(o=r.updateUserDataFormatV2Label(u,oO.BASE64_HEX_HASHED,o));else{var l=nn.tryDecodeHashedBase64String(c);l&&(t[n]=l,null!==u&&(o=r.updateUserDataFormatV2Label(u,oO.BASE64_STRING_HASHED,o)))}}switch("zip_code"===n&&c&&(ne.isHash(c)?o=r.updateUserDataFormatV2Label("zip_code",oO.ZIP_CODE_IS_HASHED,o):(o=r.updateUserDataFormatV2Label("zip_code",oO.ZIP_CODE_IS_NOT_HASHED,o),r.isZipFromUs(t)?(t.zip_code=r.sha256(r.truncateString(c,5)),o=r.updateUserDataFormatV2Label("zip_code",oO.ZIP_CODE_IS_US,o)):(t.zip_code=r.sha256(c),o=r.updateUserDataFormatV2Label("zip_code",oO.ZIP_CODE_IS_NOT_US,o)))),n){case"email":t.email=ne.isHash(c)&&!r.checkEmailFormat(c)?c:r.sha256(r.handleEmail(c));break;case"eb_email":t.eb_email=ne.isHash(c)&&!r.checkEmailFormat(c)?c:r.sha256(r.handleEmail(c));break;case"phone_number":t.phone_number=ne.isHash(c)?c:r.sha256(r.handlePhoneNumber(c));break;case"eb_phone_number":t.eb_phone_number=r.sha256(r.handlePhoneNumber(c));break;case"auto_email":t.auto_email=r.sha256(r.handleEmail(c));break;case"auto_phone_number":t.auto_phone_number=r.sha256(r.handlePhoneNumber(c));break;case"first_name":t.first_name=ne.isHash(c)?c:r.sha256(c);break;case"last_name":t.last_name=ne.isHash(c)?c:r.sha256(c);break;case"city":t.city=r.truncateString(c,80);break;case"state":t.state=r.truncateString(c,80);break;case"country":t.country=r.truncateString(c,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),n)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),n)),{userProperties:t,userDataFormat:n,userDataFormatV2:o,identifierLabel:i}}},r.identifyParamsFormattedInfo=function(t){var e=this,r={},n=/^sha256_(.*)$/;return Object.entries(t).forEach(function(t){var o=t[0],i=t[1],a=String(void 0===i?"":i),c=o.match(n);switch(o){case"email":e.handleEmailFormat(a,o,r);break;case"phone_number":e.handlePhoneNumberFormat(a,"phone_number",r);break;case"auto_email":e.handleEmailFormat(a,"auto_email",r);break;case"auto_phone_number":e.handlePhoneNumberFormat(a,"auto_phone_number",r);break;case(c||{}).input:var u=null==c?void 0:c.pop();u&&M.includes(u)&&(r[u]=[oI.HASHED]);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":e.handleNewPiisFormat(a,o,r);break;default:r[o]=[oI.CORRECT_FORMAT]}}),r},r.identifyParamsFormattedInfoV2=function(t){var e=this,r={};return Object.entries(t).forEach(function(t){var n=t[0],o=t[1],i=String(void 0===o?"":o);switch(n){case"email":e.handlePixelValidation(i,F.EMAIL_IS_HASHED,r);break;case"phone_number":e.handlePixelValidation(i,F.PHONE_IS_HASHED,r);break;case"sha256_email":e.handlePixelValidation(i,F.SHA256_EMAIL,r);break;case"sha256_phone_number":e.handlePixelValidation(i,F.SHA256_PHONE,r);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":break;default:r[n]=[oO.UNKNOWN_INVALID]}}),r},r.updateUserDataFormatV2Label=function(t,e,r){var n,o;return(null===r[t]||void 0===r[t]||(null==(n=r[t])?void 0:n.includes(oO.UNKNOWN_INVALID)))&&(r[t]=[]),null==(o=r[t])||o.push(e),r},r.getUserDataFormatInfoV2KeyName=function(t){return({email:"email_is_hashed",phone_number:"phone_is_hashed",sha256_email:"sha256_email",sha256_phone_number:"sha256_phone",zip_code:"zip_code"})[t]||null},r.handlePIIDiagnostics=function(t){},r.handleEmail=function(t){return t.toLowerCase()},r.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),nl(t,"",e)},r.handleCheckHashedEmailValue=function(t,e,r){return(void 0===r&&(r=this.checkEmailFormat),e.email=e.email||[],ne.isHash(t))?(null==e||e.email.push(oI.HASHED_CORRECT),t):r(t)?(null==e||e.email.push(oI.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(oI.HASHED_ERR),this.sha256(t))},r.handleCheckHashedPhoneValue=function(t,e,r){return(void 0===r&&(r=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],ne.isHash(t))?(null==e||e.phone_number.push(oI.HASHED_CORRECT),t):r(t)?(e.phone_number.push(oI.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),r))):(null==e||e.phone_number.push(oI.HASHED_ERR),this.sha256(t))},r.handlePixelValidation=function(t,e,r){r[e]=[],nf.includes(t)&&r[e].push(oO.FILTER_EVENTS),t&&ne.isHash(t)&&r[e].push(oO.HASHED),t&&this.checkEmailFormat(t)&&r[e].push(oO.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&r[e].push(oO.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&r[e].push(oO.PLAIN_PHONE),t&&0===r[e].length&&r[e].push(oO.UNKNOWN_INVALID)},r.isZipFromUs=function(t){var e;return(null==(e=t.country)?void 0:e.toLowerCase())==="us"},r.truncateString=function(t,e){var r=Array.from(t);return r.length<=e?t:r.slice(0,e).join("")},r.handlePhoneNumberFormat=function(t,e,r){var n=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);r[e]=n},r.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var r=[];return t?ne.isHash(t)?r.push(oI.HASHED):e(t)?r.push(oI.CORRECT_FORMAT):r.push(oI.WRONG_FORMAT):r.push(oI.EMPTY_VALUE),r},r.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var r=[];return t?ne.isHash(t)?r.push(oI.HASHED):e(t)?r.push(oI.CORRECT_FORMAT):r.push(oI.WRONG_FORMAT):r.push(oI.EMPTY_VALUE),r},r.handleEmailFormat=function(t,e,r){var n=this.handleCheckEmail(String(t),this.checkEmailFormat);r&&r[e]&&(r[e]||[]).includes(oI.HASHED)||(r[e]=n)},r.handleNewPiisFormat=function(t,e,r){t&&(r[e]=[oI.CORRECT_FORMAT])},e}(r8);function nd(){nd=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function nv(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function ng(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){nv(i,n,o,a,c,"next",t)}function c(t){nv(i,n,o,a,c,"throw",t)}a(void 0)})}}function ny(t,e){return(ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nm=function(t,e){return function(r,n){e(r,n,t)}},n_=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Identify",reporters:r,context:e})||this).init(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ny(e,t);var r,n,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||(L(o_.IDENTIFY_INIT_START),this.pluginPromise=eJ(tS()?"/static/identify.js":"https://analytics.tiktok.com/i18n/pixel/static/identify_de7ccf30.js").then(function(){t.detectTopics(),L(o_.IDENTIFY_INIT_END)}).catch(function(){var t=Error("Loading chunk identify failed.\n(error: "+window.location.host+"/static/identify.js)");return t.name="ChunkLoadError",Promise.reject(t)})),this.pluginPromise},r=ng(nd().mark(function t(e,r){return nd().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,this.init();case 4:return t.abrupt("return",this.baseHandleUserProperties(e,r));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e){return r.apply(this,arguments)},o.handlePIIDiagnostics=function(t){try{var e=t.email_is_hashed,r=void 0===e?[]:e,n=t.sha256_email,o=void 0===n?[]:n,i=t.phone_is_hashed,a=void 0===i?[]:i,c=t.sha256_phone,u=void 0===c?[]:c;if(r.includes(oO.UNKNOWN_INVALID)||o.includes(oO.UNKNOWN_INVALID))return void R(oU.INVALID_EMAIL_FORMAT);if(a.includes(oO.UNKNOWN_INVALID)||u.includes(oO.UNKNOWN_INVALID))return void R(oU.INVALID_PHONE_NUMBER_FORMAT);if(r.includes(oO.FILTER_EVENTS)||o.includes(oO.FILTER_EVENTS))return void R(oU.INVALID_EMAIL_INFORMATION);if(a.includes(oO.FILTER_EVENTS)||u.includes(oO.FILTER_EVENTS))return void R(oU.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},n=ng(nd().mark(function t(){var e,r;return nd().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getCookieDeprecationLabel();case 3:return e=t.sent,t.next=6,this.getAllTopics();case 6:(r=t.sent)&&L(o_.CUSTOM_INFO,{custom_name:"topics",extJSON:{cookie_label:String(e),stack:r.toString()}}),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}},t,this,[[0,10]])})),o.detectTopics=function(){return n.apply(this,arguments)},e}(np);n_=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),nm(0,t7(tK.CONTEXT)),nm(1,t7(tK.TTQ_REPORTERS))],n_);var nb="https://analytics.tiktok.com/i18n/pixel/eb.js",nE="_tt_event_builder";function nI(t,e){return(nI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(of=oX||(oX={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",of.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",of.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var nO=function(t,e){return function(r,n){e(r,n,t)}},nT=function(t){function e(e,r){var n;return(n=t.call(this,{name:"EventBuilder",reporters:r,context:e})||this).pluginMounted=!1,n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nI(e,t),e.prototype.pixelDidMount=function(t){var e=this;if(!this.pluginMounted){this.pluginMounted=!0;var r=y(),n=function(t){t.data.type===oX.EVENT_BUILD_BOOTSTRAP&&!r._event_builder_pickup_sdk_loaded&&(e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})?(r._event_builder_pickup_sdk_loaded=!0,ec(nE,t.data),eJ(nb).then(function(){window.opener.window.postMessage({type:oX.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){x(o_.CUSTOM_ERROR,t,{custom_name:"event_builder_load_error",custom_enum:"load_ebjs"})})):r._event_builder_pickup_sdk_verify_flag||(setTimeout(function(){e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})||window.opener.window.postMessage({type:oX.EVENT_BUILD_WRONG_CODE},"*")},5e3),r._event_builder_pickup_sdk_verify_flag=!0))};!r._event_builder_pickup_sdk_loaded&&(ei(nE)?eJ(nb).then(function(){r._event_builder_pickup_sdk_loaded=!0}):window.opener&&(window.addEventListener("message",n),setTimeout(function(){window.removeEventListener("message",n)},8e3)))}},e}(r8);function nP(t,e){return(nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}nT=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),nO(0,t7(tK.CONTEXT)),nO(1,t7(tK.TTQ_REPORTERS))],nT);var nS=function(t,e){return function(r,n){e(r,n,t)}},nw="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",nL=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"EnrichIpv6",reporters:r,context:e})||this).hasReported=!1,i.shouldReportAfterEnrichAM=!1,i.reportService=n,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nP(e,t);var r=e.prototype;return r.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},r.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},r.buildEnrichIpv6Data=function(t){var e=this.isEnrichIpv6V2SwitchOn()?"#source=2":"#source=1";return Object.assign(Object.assign({},t),{event:"EnrichIpv6",trigger_event:t.event,message_id:t.message_id+e})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{var i;if(o!==oH.TRACK||!("Shopify"===O(t)||this.isEnrichIpv6V2SwitchOn())||tb(this.env)||!(r&&r.message_id)||((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(eg,this.buildEnrichIpv6Data(r),oB.htmlHttpReport)),"true"===sessionStorage.getItem(nw)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(nw,"true"),this.reportService.report(eg,this.buildEnrichIpv6Data(r),oB.htmlHttpReport))}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(r8);function nx(t){return performance&&performance.timing?t?Date.now()-t:Date.now()-performance.timing.navigationStart:-1}function nR(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),nS(0,t7(tK.CONTEXT)),nS(1,t7(tK.TTQ_REPORTERS)),nS(2,t7(tK.REPORT_SERVICE)),nS(3,t7(tK.ENV))],nL),(oh=oq||(oq={})).FIRST_CONTENTFUL_PAINT="fcp",oh.LARGEST_CONTENTFUL_PAINT="lcp",oh.FIRST_INPUT_DELAY="fid",oh.TIME_TO_FIRST_BYTE="ttfb",oh.PAGE_LEAVE="pl",oh.LOAD_FINISH="lf",oh.TIME_WINDOW_TRACKER="twt",oh.TIME_TO_INTERACTIVE="tti",(op=oz||(oz={})).performance="performance",op.interaction="interaction";var nC=function(){function t(t,e,r,n){n?(this.reportService=r,this.context=t,this.reporters=e,this.reportUrl=n):x(o_.CUSTOM_ERROR,Error("empty reportUrl"),{custom_name:"empty_reportUrl",custom_enum:"page_perf_monitor"})}var e=t.prototype;return e.getResult=function(t){return{action_event:t}},e.report=function(t){var e=this;if(void 0!==t){var r=this.getReportPixelList(),n=this.assemblyReportData(oH.PAGE,t,r);n&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,n,oB.defaultReport,oK.P0)}),this.resetAfterReport()}},e.getReportPixelList=function(){return this.reporters},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o=r.map(function(t){return t.getReporterId()}),i=this.context.getPageSign(),a=r[0],c=a.assemblyData(a.getReporterId(),"",{},{},oH.PAGE);return delete c.event,c.action=t,c.auto_collected_properties=e,c.context.pixel||(c.context.pixel={}),c.context.pixel.code=o[0],c.context.pixel.codes=o.join("|"),c.context.index=null==(n=i.pageIndex)?void 0:n.index,c.context.session_id=i.sessionId,c.context.pageview_id=V(this.context.getPageViewId(),a.reporterInfo.loadId,"::"),c.message_id=c.message_id.replace(/-[^-]*$/,""),c}},t}();function nk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.rules);!(t=e()).done;){var r=t.value;try{if(!r({clickTimes:this.clickTimesTotal,scrollTimes:this.scrollTimesTotal,stayTime:this.stayTime}))return!1}catch(t){return!1}}return!0},r.isUpdated=function(){return 0!=this.clickTimes||0!=this.scrollTimes},r.resetAfterReport=function(){this.clickTimes=0,this.scrollTimes=0},e}(nC),o3=function(t){setTimeout(function(){t(oq.TIME_TO_INTERACTIVE,-1)},0)},o6=function(t){var e=function(){new Promise(function(t,e){setTimeout(function(){if(function(){try{return!!(performance&&performance.getEntriesByType)}catch(t){return!1}}()){var r=performance.getEntriesByType("navigation");if(r.length>0){var n=r[0];t(n.loadEventEnd-n.startTime)}else window.performance.timing?t(window.performance.timing.loadEventEnd-window.performance.timing.navigationStart||-1):e("Performance timing not supported")}},0)}).then(function(e){t(oq.LOAD_FINISH,e)}).catch(function(e){t(oq.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},o5=-1,o4=function(t){addEventListener("pageshow",function(e){e.persisted&&(o5=e.timeStamp,t(e))},!0)},o8=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o9=function(){var t=o8();return t&&t.activationStart||0},o7=function(t,e){var r=o8(),n="navigate";return o5>=0?n="back-forward-cache":r&&(document.prerendering||o9()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},it=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(t){}},ie=function(t,e,r,n){var o,i;return function(a){var c;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,c=e.value,e.rating=c>r[1]?"poor":c>r[0]?"needs-improvement":"good",t(e))}},ir=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},io=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},ii=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},ia=-1,ic=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},iu=function(t){"hidden"===document.visibilityState&&ia>-1&&(ia="visibilitychange"===t.type?t.timeStamp:0,il())},is=function(){addEventListener("visibilitychange",iu,!0),addEventListener("prerenderingchange",iu,!0)},il=function(){removeEventListener("visibilitychange",iu,!0),removeEventListener("prerenderingchange",iu,!0)},ih=function(){return ia<0&&(ia=ic(),is(),o4(function(){setTimeout(function(){ia=ic(),is()},0)})),{get firstHiddenTime(){return ia}}},ip=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},id=[1800,3e3],iv=function(t,e){e=e||{},ip(function(){var r,n=ih(),o=o7("FCP"),i=it("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimen.value&&(n.value=o,n.entries=i,r())},c=it("layout-shift",a);c&&(r=ie(t,n,ig,e.reportAllChanges),io(function(){a(c.takeRecords()),r(!0)}),o4(function(){o=0,r=ie(t,n=o7("CLS",0),ig,e.reportAllChanges),ir(function(){return r()})}),setTimeout(r,0))}))},im={passive:!0,capture:!0},i_=new Date,ib=function(t,e){oZ||(oZ=e,o$=t,o0=new Date,iO(removeEventListener),iE())},iE=function(){if(o$>=0&&o$1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){ib(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,im),removeEventListener("pointercancel",r,im)},addEventListener("pointerup",e,im),addEventListener("pointercancel",r,im)):ib(o,t)}},iO=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,iI,im)})},iT=[100,300],iP=function(t,e){e=e||{},ip(function(){var r,n=ih(),o=o7("FID"),i=function(t){t.startTimeperformance.now())return;r.value=Math.max(i-o9(),0),r.entries=[o],n(!0),o4(function(){(n=ie(t,r=o7("TTFB",0),ix,e.reportAllChanges))(!0)})}})};function iA(t,e){return(iA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var iC=function(t,e){return function(r,n){e(r,n,t)}},ik=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,n,o)||this).cls=-1,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iA(e,t);var r=e.prototype;return r.init=function(){iy(this.clsHandler.bind(this),{reportAllChanges:!0}),iN(this.webVitalHandler.bind(this)),iv(this.webVitalHandler.bind(this)),iL(this.webVitalHandler.bind(this),{reportAllChanges:!0}),iP(this.webVitalHandler.bind(this)),o3(this.baseHandler.bind(this)),o6(this.baseHandler.bind(this))},r.getResult=function(t){var e=Math.floor(nx()),r={ttns:e,cls:nN(this.cls),idx:this.getSessionIndex(),pep:nN(this.getPep())},n=["cls","idx","pep"];n.unshift(t);var o={metrics_type:n.join("|"),cls:r.cls,idx:r.idx,pep:r.pep};return o[t]=e,{action_event:t,perf:r,page_perf:o}},r.resetAfterReport=function(){},r.clsHandler=function(t){this.cls=t.value||-1},r.webVitalHandler=function(t){var e,r=this.getResult(t.name.toLocaleLowerCase());r.perf&&(r.perf.ttns=(null==t?void 0:t.value)?Math.floor(t.value):-1),r.page_perf&&(r.page_perf[t.name.toLocaleLowerCase()]=null==(e=null==r?void 0:r.perf)?void 0:e.ttns),this.report(r),this.resetAfterReport()},r.baseHandler=function(t,e){var r,n=this.getResult(t);n.perf&&(n.perf.ttns=e?Math.floor(e):-1),n.page_perf&&(n.page_perf[t]=null==(r=n.perf)?void 0:r.ttns),this.report(n),this.resetAfterReport()},r.getSessionIndex=function(){var t,e=null==(t=this.context.getPageSign().pageIndex)?void 0:t.main;return null==e?-1:e},r.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},r.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},r.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},r.getPep=function(){return(this.getCurrScrollPosition()+this.getViewportHeight())/this.getMaxHeight()},e}(nC);ik=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([iC(0,t7(tK.CONTEXT)),iC(1,t7(tK.TTQ_REPORTERS)),iC(2,t7(tK.REPORT_SERVICE))],ik);var ij=[function(t){var e=t.clickTimes,r=t.scrollTimes;return e>=1||r>=1}];function iD(t,e){return(iD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var iM=function(t,e){return function(r,n){e(r,n,t)}},iF="PageData",iU=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:iF,reporters:r,context:e})||this).monitors=[],i.isPagePerfInit=!1,i.isPageInterInit=!1,i.reportService=n,i.context=e,i.reporters=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iD(e,t);var r=e.prototype;return r.init=function(t){this.isPageInterEnabled(t)&&this.initInteraction(),this.isPagePerfEnabled(t)&&this.initPerformance()},r.initInteraction=function(){this.isPageInterInit||(this.interactionMonitor=new o2(this.context,this.reporters,this.reportService,e0(oH.PAGE_INTERACTION),ij),this.monitors.push(this.interactionMonitor),this.isPageInterInit=!0)},r.initPerformance=function(){this.isPagePerfInit||(this.performanceMonitor=new ik(this.context,this.reporters,this.reportService,e0(oH.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor),this.isPagePerfInit=!0)},r.isPagePerfEnabled=function(t){return tb(this.env)||nA(t,oz.performance)},r.isPageInterEnabled=function(t){return tb(this.env)||nA(t,oz.interaction)},r.report=function(t){if(this.isPageInterInit){var e=this.interactionMonitor.getResultOnPageLeave(t);void 0!==e&&(this.interactionMonitor.report(e),this.interactionMonitor.resetAfterReport())}},r.pageWillLeave=function(t){this.report(oq.PAGE_LEAVE)},r.pixelDidMount=function(t){this.init(t)},e}(r8);function iG(t){return void 0===t&&(t=!0),new Promise(function(e){try{var r="undefined"!=typeof window?window:void 0;if(r&&"function"==typeof r.requestIdleCallback)return void(t?r.requestIdleCallback(function(){return e(!0)},{timeout:1e3}):r.requestIdleCallback(function(t){try{var r="function"==typeof t.timeRemaining?t.timeRemaining():0;e(r>3)}catch(t){e(!0)}}));if("function"==typeof requestAnimationFrame){var n=performance.now();requestAnimationFrame(function(){var r=performance.now()-n;e(r<10||t)})}else setTimeout(function(){return e(!0)},0)}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"delayidle_error",custom_enum:"catch_error"}),e(!0)}})}iU=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),iM(0,t7(tK.CONTEXT)),iM(1,t7(tK.TTQ_REPORTERS)),iM(2,t7(tK.REPORT_SERVICE)),iM(3,t7(tK.ENV))],iU);var iH=["script","style","noscript","pre","code","svg","canvas","math","kbd","samp"];function iV(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],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function iK(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function iW(){var t;return t=iB().mark(function t(e){var r,n,o,i,a,c,u,s,l,f,h,p,d,v,g,y,m,_,b,E,I,O,T,P,S,w,R,N,A,C,k,j,D,M,F,U,G,H,V,B,K,W,Y,J;return iB().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:var Q,X;if(U=function(){var t,e=performance.now(),r=0;try{for(;rE){R++;continue}if(D(o))return A=!0,F+=performance.now()-e,{done:!1,stopped:!0,timeExceeded:!1,processed:r+1};if(performance.now()-e>=y)return F+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!0,processed:r+1}}}return F+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!1,processed:v}}catch(t){return F+=performance.now()-e,x(o_.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"run_one_batch_error"}),{done:!0,stopped:!1,timeExceeded:!1,processed:r}}},void 0===e&&(e={}),n=performance.now(),a=void 0===(i=(o=e).root)?document:i,c=o.patterns,s=void 0===(u=o.maxTotalHits)?60:u,f=void 0===(l=o.maxHitsPerPattern)?50:l,p=void 0===(h=o.ignoreTags)?iH:h,v=void 0===(d=o.chunkSize)?500:d,y=void 0===(g=o.maxChunkMs)?8:g,_=void 0===(m=o.minTextLength)?5:m,E=void 0===(b=o.maxTextLength)?100:b,I=Array.from(new Set([].concat(p,iH))),0!==(O=(Array.isArray(Q=null==c?void 0:c.filter(function(t){return!!t}))&&Q.length?Q:[]).map(function(t){return{name:t.name,regex:t.regex,preCheck:"function"==typeof t.preCheck?t.preCheck:function(){return!0},normalize:"function"==typeof t.normalize?t.normalize:function(t){return t},hits:[],set:new Set,stoppedEarly:!1}})).length){t.next=9;break}return X=n,T={textNodesVisited:0,skippedByTag:0,skippedByPrecheck:0,skippedByLength:0,totalFound:0,stoppedEarly:!1,collect_ms:0,processing_ms:0,total_ms:+(performance.now()-X).toFixed(2),chunks:0},t.abrupt("return",{patterns:[],totals:T});case 9:P=0,S=0,w=0,R=0,N=0,A=!1,C=0,k={skippedByLength:{v:0},skippedByPrecheck:{v:0},totalFound:{v:0}},j=function(t,e,r){var n,o=new Set(e.map(function(t){return t.toLowerCase()})),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(t){if(t.nodeType===Node.ELEMENT_NODE){var e;return(e=t.tagName.toLowerCase(),o.has(e)||0)?(null==r||r(),NodeFilter.FILTER_REJECT):NodeFilter.FILTER_ACCEPT}return t.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});return(n={next:function(){for(var t;t=i.nextNode();)if(t.nodeType===Node.TEXT_NODE){var e=t;if(!e.nodeValue||!e.nodeValue.trim())continue;return{value:e,done:!1}}return{value:void 0,done:!0}}})[Symbol.iterator]=function(){return this},n}(null!=(r=a.documentElement)?r:a,I,function(){S++}),D=function(t){var e=t.compiled,r=t.minTextLength,n=t.maxHitsPerPattern,o=t.maxTotalHits,i=t.counters;return function(t){try{if(i.totalFound.v>=o)return!0;var a=null!=(c=t.nodeValue)?c:"";if(!a)return!1;if(a.length=48&&n<=57&&e++}return e}(a):0,h=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return iV(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iV(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(u=h()).done;){var p=u.value;if(!p.stoppedEarly){if("email"===p.name){if(!s){i.skippedByPrecheck.v++;continue}}else if(p.name.includes("phone")&&!(l&&f>=7)){i.skippedByPrecheck.v++;continue}if(!p.preCheck(a)){i.skippedByPrecheck.v++;continue}var d=void 0;try{d=RegExp(p.regex,"ig").exec(a)}catch(t){return!0}if(d){var v={text:a,index:d.index,node:t},g=p.normalize(d[0],v);if(g&&(i.totalFound.v++,p.hits.push(g),p.set.add(g),p.hits.length>=n&&(p.stoppedEarly=!0),i.totalFound.v>=o))return!0}}}return!1}catch(t){return x(o_.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"process_text_node_error"}),!1}}}({compiled:O,minTextLength:_,maxHitsPerPattern:f,maxTotalHits:s,counters:k}),M=performance.now(),F=0;case 22:if(C++,H=(G=U()).done,V=G.stopped,B=G.timeExceeded,K=G.processed,!(H||V)){t.next=27;break}return t.abrupt("break",48);case 27:if(!(K1||1===r&&"+"!==e[0])return null;var n=e.replace(iY,"").length;if(n<7||n>15)return null;var o=(e.match(/\(/g)||[]).length;if(o!==(e.match(/\)/g)||[]).length||o>0&&!/\(\d{1,4}\)/.test(e))return null;var i=e;if(i.startsWith("+")){var a=i.match(/^\+\d{1,3}/);if(!a)return null;i=i.slice(a[0].length)}var c=i.match(/^(?:\(\d{1,4}\)|\d{1,4})(?:[ -])?/);return(c&&(i=i.slice(c[0].length)),/^\d{5,12}$/.test(i))?e:null}},iX={name:"email",regex:"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}",visibilityMode:"all",preCheck:function(t){return t.includes("@")}};function iq(){iq=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function iz(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function iZ(t,e){return(iZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i$=function(t,e){return function(r,n){e(r,n,t)}},i0=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"TextTreeWalkerPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.hasDoneFirstScan=!1,o.isScanning=!1,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iZ(e,t);var r,n,o=e.prototype;return o.pageLcp=function(){var t=this;this.lcpTriggered||(this.lcpTriggered=!0,setTimeout(function(){try{t.getPIIFromTextNode(),t.hasDoneFirstScan=!0}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"get_pii_from_textnode"})}},2e3))},r=iq().mark(function t(){var e,r,n,o,i,a,c,u,s,l,f,h;return iq().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isScanning){t.next=2;break}return t.abrupt("return");case 2:if(this.activeReporter||(this.activeReporter=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)})),!(!td||!tM("74653890")||!this.activeReporter)){t.next=5;break}return t.abrupt("return");case 5:if(u=(c=null!=(r=null==(e=this.activeReporter.plugins)?void 0:e.AutoAdvancedMatching)?r:{}).auto_email,s=c.auto_phone_number,0!==[u&&iX,s&&iQ].filter(Boolean).length){t.next=9;break}return t.abrupt("return");case 9:return this.isScanning=!0,t.next=12,function(t){return iW.apply(this,arguments)}({root:document.body,ignoreTags:["a"],patterns:[u&&iX,!1],minTextLength:5,maxTextLength:1e3});case 12:if(f=null!=(o=null==(n=(l=t.sent.patterns).find(function(t){return"email"===t.name}))?void 0:n.values)?o:[],h=null!=(a=null==(i=l.find(function(t){return"phone_intl"===t.name}))?void 0:i.values)?a:[],this.isScanning=!1,0!==f.length||0!==h.length){t.next=19;break}return t.abrupt("return");case 19:this.sendToAutoAdvancedMatchingPlugin(f[0],h[0]);case 20:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){iz(i,n,o,a,c,"next",t)}function c(t){iz(i,n,o,a,c,"throw",t)}a(void 0)})},o.getPIIFromTextNode=function(){return n.apply(this,arguments)},o.sendToAutoAdvancedMatchingPlugin=function(t,e){var r={source:h.TEXT,timestamp:Date.now(),email:t,phone:e,detectedAt:"page_load"};this.eventEmitter.emit("PII_DETECTED",r)},o.pixelSend=function(t,e){if(this.hasDoneFirstScan&&"Pageview"===e){var r,n=null==(r=this.activeReporter)?void 0:r.getReporterId();n&&n===t&&this.getPIIFromTextNode()}},e}(r8);i0=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),i$(0,t7(tK.CONTEXT)),i$(1,t7(tK.TTQ_REPORTERS)),i$(2,t7(tK.EVENT_EMITTER))],i0);var i1=["phone","telephone","cellphone","msisdn"],i2=["email"],i3="dataLayer",i6={totalEnqueued:0,totalProcessedBatches:0,totalProcessedItems:0,totalTraverseErrors:0,totalFound:0,totalRevisits:0,totalDropped:0,lastBatchDurationMs:0,lastItemDurationMs:0,maxBatchDurationMs:0,maxItemDurationMs:0},i5=function(t,e){return t.toLowerCase().includes(e.toLowerCase())},i4=function(t){return void 0===t&&(t=i2),{kind:"email",matchKey:function(e){return t.some(function(t){return i5(e,t)})},acceptValue:function(){return!0}}},i8=function(t){return void 0===t&&(t=i1),{kind:"phone",matchKey:function(e){return t.some(function(t){return i5(e,t)})},acceptValue:function(){return!0}}},i9=function(t,e){void 0===t&&(t="dataLayer");var r=e.cdpRef,n=e.hookCdpPush,o=e.enqueueCurrentCdp,i=e.err,a=function(t){try{n(t),o()}catch(t){i("intercept_cdp_hook_error",t)}};try{var c=window[t],u=Array.isArray(c)?c:void 0;if(u)return r=u,a(r),r;return r=[],Object.defineProperty(window,t,{configurable:!0,enumerable:!0,get:function(){return r},set:function(t){Array.isArray(t)?(r=t,a(r)):i("intercept_cdp_set_non_array_error")}}),r}catch(t){return i("intercept_cdp_set_property_error",t),r}},i7=function(t,e){x(o_.CUSTOM_ERROR,e||Error(t),{custom_name:"cdp_visiter_plugin",custom_enum:t})},at=function(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}},ae=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},ar=function(t,e){void 0===e&&(e=120);try{if(null==t)return String(t);if("string"==typeof t){var r=t.trim();return r.length>e?r.slice(0,e)+"…":r}if("number"==typeof t||"boolean"==typeof t)return String(t);var n=at(t);return n.length>e?n.slice(0,e)+"…":n}catch(t){return"[unserializable]"}};function an(t){return null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"0")&&Object.prototype.hasOwnProperty.call(t,"1")&&!Object.prototype.hasOwnProperty.call(t,"event")}function ao(t){try{var e=null==t?void 0:t["0"],r=null==t?void 0:t["1"],n=null==t?void 0:t["2"];if("event"===e&&"string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args"});if("string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args_loose"})}catch(t){}return t}function ai(t){try{if(Array.isArray(t))return t.map(function(t){return an(t)?ao(t):t});if(an(t))return ao(t);return t}catch(e){return t}}function aa(t){try{if(t&&"object"==typeof t&&"string"==typeof t.event)return t.event}catch(t){}}function ac(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return au(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return au(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function au(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0;)try{var t=r.pop();t&&t()}catch(t){i7("unhook_function_error",t)}},isHooked:function(t){return!!t&&"object"==typeof t&&e.has(t)}}},al=function(t){var e=null,r=!1,n=as(t),o=function(t){void 0===t&&(t=i3),e=i9(t,{cdpRef:e,hookCdpPush:n.hookDataLayerPush,enqueueCurrentCdp:function(){n.enqueueCurrentDataLayer(e)},err:i7})};return{init:function(){if(!r){r=!0;try{o(i3)}catch(t){i7("intercept_dataLayer",t)}}},rescan:function(){return n.enqueueCurrentDataLayer(e)},destroy:function(){n.unhook(),e=null,r=!1},getDataLayerRef:function(){return e}}};function af(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.extractors);!(c=u()).done;){var s=c.value;try{if(!s.matchKey(e)||s.acceptValue&&!s.acceptValue(r))continue;i(s.kind,e,r,n,o,a)}catch(t){i7("runExtractorsCatch"+s.kind+"Error",t)}}},c=function(e){var r=e.toLowerCase();return t.skipKeys.map(function(t){return t.toLowerCase()}).some(function(t){return r.includes(t)})};return{traverse:function e(n,i){var u=i.depth,s=i.path,l=void 0===s?"":s,f=i.source,h=i.budgetLimit,p=i.eventName;if(!(u>t.maxDepth)){var d=0;if(!(0>=h)&&(d++,ae(n))){var v=r.get(n)||0;if(v>=3)return void o.totalRevisits++;if(r.set(n,v+1),!Array.isArray(n)&&"object"==typeof n&&t.maxObjectKeyLength&&t.maxObjectKeyLength>0&&Object.keys(n).length>t.maxObjectKeyLength)return;var g="string"==typeof(null==n?void 0:n.event)?n.event:void 0,y=p||g;if(Array.isArray(n)){try{for(var m=0;m=h);m++){if(ae(n[m])){var _=n[m],b=r.get(_)||0;if(b>=3){o.totalRevisits++;continue}r.set(_,b+1)}e(n[m],{depth:u+1,path:l+"["+m+"]",source:f,budgetLimit:h,eventName:y})}}catch(t){o.totalTraverseErrors++,i7("traverse_array_error",t)}return}try{for(var E=0,I=Object.entries(n);E=h)break;ae(P)&&e(P,{depth:u+1,path:S,source:f,budgetLimit:h,eventName:y})}}}catch(t){o.totalTraverseErrors++,i7("traverse_object_entries_error",t)}}}},getDedup:function(){return Array.from(n)},getStats:function(){return Object.assign(Object.assign({},o),{totalRevisits:o.totalRevisits})},resetVisited:function(t){void 0===t&&(t=!1),t?r=new WeakMap:o.totalRevisits>100&&(r=new WeakMap,o.totalRevisits=0)}}};function ap(){ap=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return P()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=d.prototype=h.prototype=Object._ttq_create(v);function _(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ad(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var av=function(t,e,r){var n,o,i=[],a=Object.assign({},i6),c=!1,u=!1,s=0,l=0,f=function(){return"function"==typeof(null==performance?void 0:performance.now)?performance.now():Date.now()},h=(n=ap().mark(function n(){var o,p,d,v,g,y,m,_,b,E,I;return ap().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c){n.next=2;break}return n.abrupt("return");case 2:return c=!0,n.prev=3,n.next=6,iG(!1);case 6:if(n.sent){n.next=13;break}return o=Math.min(1e3,20*(1<=100)){n.next=27;break}return i.length=0,l=0,a.totalDropped=(a.totalDropped||0)+i.length,L(o_.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"max_batch_count"}),e.resetVisited(!0),c=!1,n.abrupt("return");case 27:y=l%10==0,e.resetVisited(y);case 29:if(!i.length){n.next=43;break}if(!(f()-p>=t.maxMsPerBatch)){n.next=32;break}return n.abrupt("break",43);case 32:if(!(g>=d)){n.next=34;break}return n.abrupt("break",43);case 34:m=i.shift(),v++,_=f();try{e.traverse(m.node,{depth:0,path:m.path||"dataLayer.push",source:m.source||"push",budgetLimit:d,eventName:m.eventName})}catch(t){a.totalTraverseErrors+=1,i7("traverse_catch",t)}b=f()-_,a.lastItemDurationMs=b,b>a.maxItemDurationMs&&(a.maxItemDurationMs=b),n.next=29;break;case 43:E=f()-p,a.lastBatchDurationMs=E,E>a.maxBatchDurationMs&&(a.maxBatchDurationMs=E),a.totalProcessedBatches+=1,a.totalProcessedItems+=v,e.getStats&&(I=e.getStats())&&I.totalRevisits&&(a.totalRevisits=(a.totalRevisits||0)+I.totalRevisits),r(a),n.next=56;break;case 52:n.prev=52,n.t0=n.catch(3),i7("schedule_catch",n.t0),u=!0;case 56:return n.prev=56,c=!1,i.length&&!u&&h(),u=!1,n.finish(56);case 61:case"end":return n.stop()}},n,null,[[3,52,56,61]])}),o=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){ad(i,r,o,a,c,"next",t)}function c(t){ad(i,r,o,a,c,"throw",t)}a(void 0)})},function(){return o.apply(this,arguments)});return{enqueue:function(e,r){"number"==typeof t.maxQueueSize&&t.maxQueueSize>0&&i.length>=t.maxQueueSize&&i.shift(),i.push(Object.assign({node:e},r)),a.totalEnqueued+=1,h()},getQueueSize:function(){return i.length},getStats:function(){return Object.freeze(Object.assign({},a))},updateStats:function(t){r(a=Object.assign(Object.assign({},a),t))}}},ag={maxDepth:3,maxNodesPerTraverse:1e3,maxObjectKeyLength:20,skipKeys:["html","snapshot","content","description","fullstate","raw","payload","products","catalog","recommendations","dom","tree","schema","source","trace","stack"],extractors:[],onFound:function(){},maxNodePerBatch:100,maxMsPerBatch:8,maxQueueSize:1e3},ay=function(t){if(!t)return{init:function(){},rescan:function(){},getQueueSize:function(){return 0},getStats:function(){return Object.freeze(Object.assign({},i6))},getFoundKeys:function(){return[]},destroy:function(){},config:{}};var e,r,n=Object.assign(Object.assign({},ag),{extractors:[i4(),i8()]}),o=Object.assign(Object.assign(Object.assign({},n),t),{extractors:(null==t?void 0:t.extractors)||n.extractors,maxQueueSize:null!=(e=null==t?void 0:t.maxQueueSize)?e:n.maxQueueSize,maxObjectKeyLength:null!=(r=null==t?void 0:t.maxObjectKeyLength)?r:n.maxObjectKeyLength}),i=Object.assign({},i6),a=ah(o,function(t){var e,r;try{null==(r=null==(e=o.extractors.find(function(e){return e.kind===t.kind}))?void 0:e.onHit)||r.call(e,t)}catch(t){i7("extractor_onHit_error",t)}try{o.onFound(t)}catch(t){i7("on_found_error",t)}}),c=av(o,a,function(t){i=Object.assign(Object.assign({},i),t)}),u=al(c.enqueue);return{init:u.init,rescan:u.rescan,getQueueSize:c.getQueueSize,getStats:c.getStats,getFoundKeys:function(){return a.getDedup()},destroy:function(){try{try{var t=Object.getOwnPropertyDescriptor(window,"dataLayer");if(t&&(t.get||t.set)&&t.configurable){delete window.dataLayer;var e=u.getDataLayerRef();void 0!==e&&(window.dataLayer=e)}}catch(t){}u.destroy()}catch(t){i7("destroy_error",t)}},config:o}};function am(t,e){return(am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var a_=function(t,e){return function(r,n){e(r,n,t)}},ab=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"CdpVisiterPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.scanner=null,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,am(e,t);var r=e.prototype;return r.pageLcp=function(){!this.lcpTriggered&&(this.lcpTriggered=!0,td&&tv&&tM("74653905")&&this.tryProxyDataLayer())},r.tryProxyDataLayer=function(){var t=this,e=function(){var t,e;return(null!=(e=null==(t=null==window?void 0:window.dataLayer)?void 0:t.length)?e:0)>0};if(e())return void this.extractDataLayerIfReady();setTimeout(function(){e()&&t.extractDataLayerIfReady()},3e3)},r.extractDataLayerIfReady=function(){try{this.extractDataLayer(),L(o_.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_start"})}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_catch"})}},r.extractDataLayer=function(){var t,e,r=this,n=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)});if(n){var o=null!=(e=null==(t=n.plugins)?void 0:t.AutoAdvancedMatching)?e:{},i=o.auto_email,a=o.auto_phone_number,c=ay({maxNodePerBatch:600,maxMsPerBatch:8,extractors:[i&&i4(["email"]),a&&i8(["phone","mobile","tel","msisdn"])].filter(Boolean),onFound:function(t){if((null==t?void 0:t.kind)==="email"&&"string"==typeof(null==t?void 0:t.value)&&t.value.length>0||(null==t?void 0:t.kind)==="phone"&&"string"==typeof(null==t?void 0:t.value)&&t.value.length>0){var e=Object.assign(Object.assign({},"email"===t.kind&&{email:t.value}),"phone"===t.kind&&{phone:t.value});L(o_.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"pii_data_detected",extJSON:{message:JSON.stringify(Object.keys(e))}}),r.sendToAutoAdvancedMatchingPlugin(e)}}});this.scanner=c,this.scanner.init()}},r.sendToAutoAdvancedMatchingPlugin=function(t){var e=void 0===t?{}:t,r=e.email,n=e.phone;try{var o={source:h.DATA_LAYER,timestamp:Date.now(),email:r,phone:n,detectedAt:"data_layer"};this.eventEmitter.emit("PII_DETECTED",o)}catch(t){}},e}(r8);function aE(t,e){return(aE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}ab=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),a_(0,t7(tK.CONTEXT)),a_(1,t7(tK.TTQ_REPORTERS)),a_(2,t7(tK.EVENT_EMITTER))],ab);var aI=function(t,e){return function(r,n){e(r,n,t)}},aO=function(t){function e(e,r){return t.call(this,{name:"LPV",reporters:r,context:e})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aE(e,t);var r=e.prototype;return r.isLPVSwitchOn=function(t){return t.plugins&&!0===t.plugins.EnableLPV},r.buildLPVData=function(){return{trigger_source:"pixel_self"}},r.buildSecondJumpESData=function(){return{lpv_trigger_type:"second_jump",trigger_source:"pixel_self"}},r.buildDuration10sESData=function(){return{lpv_trigger_type:"duration_10s",trigger_source:"pixel_self"}},r.startEngagedSessionTimer=function(t,e){var r=this;void 0===e&&(e={});var n=null,o=0,i=!0,a=null==t?void 0:t.getCookieBasedSession().hasReportedES,c=function(){(a=null==t?void 0:t.getCookieBasedSession().hasReportedES)||(t.track(ez,r.buildDuration10sESData(),{},oH.TRACK,oB.defaultReport),t.setCookieBasedSession(Object.assign(Object.assign({},null==e?void 0:e.pixelSession),{hasReportedES:1})))},u=function(e){if(!(a=null==t?void 0:t.getCookieBasedSession().hasReportedES)){n=setTimeout(c,1e3*e);var r=Date.now();document.addEventListener("visibilitychange",function t(){"hidden"!==document.visibilityState||a||(n&&clearTimeout(n),i=!1,n=null,o+=Math.floor((Date.now()-r)/1e3),document.removeEventListener("visibilitychange",t))})}};u(10),document.addEventListener("visibilitychange",function(){if(a=null==t?void 0:t.getCookieBasedSession().hasReportedES,"visible"===document.visibilityState&&!a&&!i){var e=10-o;e<=0?c():u(e)}}),window.addEventListener("beforeunload",function(){n&&clearTimeout(n)})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{if(o!==oH.TRACK||(null==(i=r._inspection)?void 0:i.trigger_source)==="pixel_self")return;var i,a,c,u,s=this.reporters.find(function(e){return e.getReporterId()===t});if(!s||!this.isLPVSwitchOn(s))return;var l=(null==(a=null==n?void 0:n.pixelSession)?void 0:a.isSessionStart)||!1,f=this.context.getPageInfo().referrer,h=this.context.getPageSign().etldPlusOne,p=null!=(u=null==(c=null==n?void 0:n.pixelSession)?void 0:c.hasReportedES)?u:1,d=this.context.getPageSign().pageIndex;l&&s.track("LandingPageView",this.buildLPVData(),{},oH.TRACK,oB.defaultReport),p||(!l&&(f&&h&&f.includes(h)||d&&d.index>0)?(s.track(ez,this.buildSecondJumpESData(),{},oH.TRACK,oB.defaultReport),s.setCookieBasedSession(Object.assign(Object.assign({},null==n?void 0:n.pixelSession),{hasReportedES:1}))):this.startEngagedSessionTimer(s))}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"lpv_report"})}},e}(r8);aO=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),aI(0,t7(tK.CONTEXT)),aI(1,t7(tK.TTQ_REPORTERS))],aO);var aT=[].concat([],[{identifier:tK.CALLBACK_PLUGIN,to:nt,name:"Callback"},{identifier:tK.IDENTIFY_PLUGIN,to:n_,name:"Identify",required:!0},{identifier:tK.EVENT_BUILDER_PLUGIN,to:nT,name:"EventBuilder"},{identifier:tK.ENRICH_IPV6_PLUGIN,to:nL,name:"EnrichIpv6"},{identifier:tK.PAGEDATA_PLUGIN,to:iU,name:"PageData"},{identifier:tK.LPV_PLUGIN,to:aO,name:"LPV"},{identifier:tK.TEXT_TREE_WALKER_PLUGIN,to:i0,name:"TextTreeWalker",required:!1},{identifier:tK.CDP_VISITER_PLUGIN,to:ab,name:"CdpVisiter",required:!1}]),aP=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/,aS=function(t){return"function"==typeof Element?t instanceof Element:t&&"object"==typeof t&&t.nodeType===Node.ELEMENT_NODE&&"string"==typeof t.nodeName},aw=function(t,e){var r=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||null;return!!(null!==r&&r.call(t,e.join(",")))||t instanceof HTMLButtonElement&&!!e.includes("button[type='"+t.type+"']")},aL=function(t){if(!t||t===document.body)return!1;if(t.getBoundingClientRect&&"function"==typeof t.getBoundingClientRect){var e=t.getBoundingClientRect().height||t.offsetHeight||11;return e>10&&e<600}return!0},ax=function(t){return t.trim().toLowerCase()},aR=function(t,e){return!!t&&!!e&&t.indexOf(e)>=0},aN=function(t){return"string"==typeof t&&aP.test(t)},aA=function(t){if(!t)return null;for(var e=t.parentElement,r=t,n="";r;)(r=r.previousElementSibling)&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(n=r.value,r=null);if(!n||"string"!=typeof n||!e||0>(e.innerText||e.textContent||"").indexOf("@"))return null;var o=n+"@"+t.value;return aN(o)?o:null},aC=function(t,e){var r=t.id,n=t.name,o=t.placeholder,i=void 0===o?"":o,a=t.value,c=void 0===a?"":a;return e.filter(function(t){return t.length>2?aR(n,t)||aR(r,t)||aR(i,t)||aR(c,t):n===t||r===t||i===t||c===t})};function ak(t,e){return(ak=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aj=function(t,e){return function(r,n){e(r,n,t)}},aD=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"AutoAdvancedMatching",reporters:r,context:e})||this).rateMS=1e3,i.lastTime=0,i.lastElement=null,i.matchHistory=[],i.eventEmitter=o,i.config=n.aam||{in_form:!0,selectors:{},exclude_selectors:[],phone_regex:"",phone_selectors:[],restricted_keywords:[]},i.phoneRegex=i.config.phone_regex?new RegExp(i.config.phone_regex):null,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ak(e,t);var r=e.prototype;return r.init=function(){var t=this;this.eventEmitter.on("PII_DETECTED",this.handlePIIDetected.bind(this),{}),document.addEventListener("click",function(e){try{var r=y()||[],n=e&&e.target&&e.target instanceof Node&&aS(e.target)?e.target:null;if(!n||!t.throttle(n))return;var o=t.getWrappingButton(n);if(!o)return;var i=t.getFormByButton(o);if(t.config.in_form&&!i)return;var a=t.getUserDataByForm(i);if(0===Object.keys(a).length)return;null==r||r.identify(Object.assign(a||{},{auto_trigger_type:t.getTriggerType(o,!!i),trigger_source:a.eb_email?h.RM_KEYWORDS:h.V1})),t.matchHistory.push(Object.assign({},a))}catch(t){L(o_.CUSTOM_ERROR,{pixelCode:N().pixelCode,custom_name:"advancedMatching"})}},{capture:!0,once:!1,passive:!0})},r.handlePIIDetected=function(t){var e=t.email,r=t.phone,n=t.source,o=Object.assign(Object.assign({},e&&{eb_email:e}),r&&{eb_phone_number:r});if(0!==Object.keys(o).length){var i=e?"auto_email":"auto_phone_number",a=this.reporters.find(function(t){var e;return null==(e=t.plugins.AutoAdvancedMatching)?void 0:e[i]});null==a||a.identify(o,{trigger_source:n}),this.mergeTextPIIIntoMatchHistory(o,n)}},r.mergeTextPIIIntoMatchHistory=function(t,e){var r=Object.assign(Object.assign({},t),{auto_trigger_type:e,auto_timestamp:Date.now()});this.matchHistory.push(r)},r.throttle=function(t){var e=!1;return(!this.lastElement||!this.lastTime||Date.now()-this.lastTime>=this.rateMS||this.lastElement!==t)&&(e=!0),this.lastElement=t,this.lastTime=Date.now(),e},r.getWrappingButton=function(t){if(!t||!aL(t)||(this.config.exclude_selectors||[]).length>0&&aw(t,this.config.exclude_selectors||[]))return null;if(aw(t,Object.keys(this.config.selectors||{})))return t;var e=t.parentNode;return e&&aS(e)?this.getWrappingButton(e):null},r.getFormByButton=function(t){if(t instanceof HTMLInputElement)return t.form;for(var e=t;"FORM"!==e.nodeName.toUpperCase();){var r=e.parentElement;if(!r)return null;e=r}return e},r.getUserDataByForm=function(t){for(var e={},r=t||document,n=r.querySelectorAll("input,textarea,select"),o=0;o0)return(aN(n)&&L(o_.CUSTOM_INFO,{custom_name:"aam_hit_restricted",custom_enum:a.join(",")}),tM("74653886"))?{eb_email:ax(n)}:null;if(aN(n))return{auto_email:ax(n)};var c=aA(t);if(c)return{auto_email:ax(c)};if("US"===((y()||[])._cc||"").toUpperCase()&&n.replace(/\D/g,"").length<10)return null;var u=!(this.config.phone_selectors.length>0)||"tel"===e||"tel"===r||aC(Object.assign(i,{placeholder:o}),this.config.phone_selectors).length>0,s=!this.phoneRegex||this.phoneRegex.test(n);return u&&s?{auto_phone_number:n}:null},r.getTriggerType=function(t,e){var r=this;try{var n=[];if(Object.keys(this.config.selectors).forEach(function(e){aw(t,[e])&&n.push(r.config.selectors[e])}),0===n.length)return"";return n.join(",")+"-"+ +!!e}catch(t){return""}},e}(r8);aD=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),aj(0,t7(tK.CONTEXT)),aj(1,t7(tK.TTQ_REPORTERS)),aj(2,t7(tK.TTQ_GLOBAL_OPTIONS)),aj(3,t7(tK.EVENT_EMITTER))],aD);var aM=function(t,e){t.isBound(tK.AUTO_ADVANCED_MATCHING_PLUGIN)||t.bind(tK.AUTO_ADVANCED_MATCHING_PLUGIN).to(aD).inSingletonScope(),a7(tK.AUTO_ADVANCED_MATCHING_PLUGIN,"AutoAdvancedMatching")&&e.usePlugin(t.get(tK.AUTO_ADVANCED_MATCHING_PLUGIN))};function aF(t,e){return(aF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aU=function(t){function e(e){var r;return(r=t.call(this,e)||this).observers=new Set([]),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aF(e,t);var r=e.prototype;return r.addObserver=function(t){this.observers.has(t)||this.observers.add(t)},r.removeObserver=function(t){this.observers.delete(t)},r.notifyObservers=function(t,e){this.observers.forEach(function(r){return r.call(e,t)})},e}(r5),aG="HistoryObserver";(nD||(nD={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var aH=["GoogleTagManagerClient","GoogleTagManagerServer"];function aV(t,e){var r=history[t];return function(){var t=Array.prototype.slice.call(arguments);r.apply(history,t),e()}}function aB(t){var e=t.options,r=t.plugins;return e&&!1!==e.historyObserver&&r&&r[aG]}function aK(t,e){var r=en().url,n=t.context.getPageInfo().url;if(r!==n){var o,i=t.context.setPageInfo(r,n);i&&i.pageIndex&&eN(i.pageIndex),t.reporters.filter((o=nD.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(aB(t)&&e[aG]&&e[aG][o])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function aW(t,e){return(aW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var aY=function(t,e){return function(r,n){e(r,n,t)}},aJ=function(t){function e(e,r){var n;return(n=t.call(this,{name:aG,reporters:r,context:e})||this).enableListenSPAHistoryChange=!1,n.listenSPAHistoryChange=z(function(){var t=function(){n.enableListenSPAHistoryChange&&n.notifyObservers({tf:oF.HISTORY_CHANGE})},e=function(){for(var e=arguments.length,r=Array(e),n=0;n=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function aX(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),aY(0,t7(tK.CONTEXT)),aY(1,t7(tK.TTQ_REPORTERS))],aJ);var az=function(t){function e(e){var r;return(r=t.call(this,e)||this).handleEvent=function(t){try{r.sendEvent(t)}catch(t){t(o_.CUSTOM_ERROR,t,{custom_name:"ClickObserver",custom_enum:"handleEvent_error"})}},r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aq(e,t);var r=e.prototype;return r.setupListeners=function(t){var e=this;try{t.forEach(function(t){"window"===t.environment&&t.listenEventTypes.forEach(function(r){Array.isArray(t.target)?document.querySelectorAll(t.target.join(", ")).forEach(function(t){e.bindListener(t,r)}):e.bindListener(t.target,r)})})}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"ClickObserver",custom_enum:"setupListeners_error"})}},r.getObserverType=function(){return"click"},r.bindListener=function(t,e){!this.listenedElementsSet.has(t)&&(this.listenedElementsSet.add(t),t instanceof Element&&tc.some(function(e){return t.matches(e)})||t.addEventListener(e,this.handleEvent,{capture:!0}))},e}(function(){function t(t){this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listeners=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listenedElementsSet=td?new WeakSet:new Set,this.eventEmitter=t,this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.teardownListeners=function(t){var e=this;if(t){var r=this.configMap.get(t);r&&r.length&&(r.forEach(function(t){var r=t.target;if(Array.isArray(r))document.querySelectorAll(r.join(", ")).forEach(function(r){for(var n,o=aQ(t.listenEventTypes);!(n=o()).done;){var i=n.value;r.removeEventListener(i,e.handleEvent),e.listenedElementsSet.delete(r)}});else{for(var n,o=aQ(t.listenEventTypes);!(n=o()).done;){var i=n.value;r.removeEventListener(i,e.handleEvent)}e.listenedElementsSet.delete(r)}}),this.configMap.delete(t))}},e.updateConfig=function(t){if(t){var e;if(this.validateConfig(t)){var r="append"===t.mode&&null!=(e=this.configMap.get(t.pluginName))?e:[];"append"!==t.mode&&this.teardownListeners(t.pluginName),r.push(t),this.configMap.set(t.pluginName,r),this.setupListeners([t])}}},e.sendEvent=function(t){this.eventEmitter.emit(t.type,t)},e.validateConfig=function(t){return!!t&&!!t.observerType&&!!t.listenEventTypes&&!!t.pluginName},e.getConfigMap=function(){return this.configMap},t}());function aZ(t,e){return(aZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var a$=function(t,e){return function(r,n){e(r,n,t)}},a0=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"INTERACTION_OBSERVER",reporters:r,context:e})||this).observersMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map([]),o.eventEmitter=n,o.eventEmitter.on(oj.UPDATE_CONFIG,o.updateObserverConfig.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),{}),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aZ(e,t);var r=e.prototype;return r.registerObserver=function(t){var e;"click"===t&&(e=new az(this.eventEmitter),this.observersMap.set(t,e))},r.unregisterObserver=function(t){var e=this.observersMap.get(t);e&&(e.getConfigMap().forEach(function(t,r){e.teardownListeners(r)}),this.observersMap.delete(t))},r.destroyAll=function(){var t=this;this.observersMap.forEach(function(e,r){t.unregisterObserver(r)}),this.observersMap.clear()},r.updateObserverConfig=function(t){var e=t.observerType,r=this.observersMap.get(e);r||(this.registerObserver(e),r=this.observersMap.get(e)),r&&r.updateConfig(t)},e}(aU);a0=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([t9(),a$(0,t7(tK.CONTEXT)),a$(1,t7(tK.TTQ_REPORTERS)),a$(2,t7(tK.EVENT_EMITTER))],a0);var a1=[{identifier:tK.HISTORY_OBSERVER,to:aJ,name:"HistoryObserver"},{identifier:tK.INTERACTION_OBSERVER,to:a0,name:"InteractionObserver"}],a2=y(),a3=(null==a2?void 0:a2._container)||new t8,a6=(null==a2?void 0:a2._container)?oG.REBIND:oG.BIND;tm();var a5=a3[a6](tK.ENV),a4=a3[a6](ty.SignalType);a3[a6](ty.ID),a3[a6](ty.Type),a3[a6](ty.Options),a3[a6](ty.Plugins),a3[a6](ty.Rules),a3[a6](ty.Info);var a8=a3[a6](ty.WebLibraryInfo),a9=a3[a6](tK.TTQ_GLOBAL_OPTIONS);try{if(!a3.get(tK.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){a9.toConstantValue({})}function a7(t,e){return!!(a2&&a2._mounted&&!a2.getPlugin(e)&&a3.isBound(t))}var ct=function(t,e){var r=t_();a8.toConstantValue({name:"pixel.js",version:"2.2.1",options:void 0}),a5.toConstantValue(e),a4.toConstantValue(r)},ce=function(t){(null==t?void 0:t._container)||(a3.bind(tK.TTQ).to(rh).inSingletonScope(),a3.bind(tK.CONTEXT).to(rm).inSingletonScope(),a3.bind(tK.REPORTER).to(rn),a3.bind(tK.TTQ_REPORTERS).toConstantValue([]),a3.bind(tK.REPORT_SERVICE).to(rD).inSingletonScope(),a3.bind(tK.AD_SERVICE).to(rU).inSingletonScope(),a3.bind(tK.APP_SERVICE).to(rV).inSingletonScope(),a3.bind(tK.BRIDGE_SERVICE).to(rQ).inSingletonScope(),a3.bind(tK.HTTP_SERVICE).to(rz).inSingletonScope(),a3.bind(ty.IsOnsitePage).toConstantValue({value:!1}),a3.bind(tK.COOKIE_SERVICE).to(r0).inSingletonScope(),a3.bind(tK.CONSENT_SERVICE).to(r3).inSingletonScope(),a3.bind(tK.EVENT_EMITTER).to(e$).inSingletonScope(),a3.bind(tK.CLICK_INTERACTION_ID_SERVICE).to(r6).inSingletonScope()),t&&!t._container&&(t._container=a3)},cr=function(){aT.forEach(function(t){var e=t.to,r=t.name,n=void 0===r?"":r,o=t.required,i=t.identifier;(void 0!==o&&o||P(n))&&!a3.isBound(i)&&a3.bind(i).to(e).inSingletonScope(),a7(i,n)&&a2.usePlugin(a3.get(i))})},cn=function(){a1.forEach(function(t){var e=t.to,r=t.name,n=t.identifier;P(void 0===r?"":r)&&!a3.isBound(n)&&a3.bind(n).to(e).inSingletonScope()})},co=function(t,e,r){ct(t,r),t$(e,t),cn(),ce(t),cr(),aM(e,t)},ci=function(){try{var t=a3.get(tK.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},ca=function(){try{a3.get(tK.EVENT_EMITTER)}catch(t){x(o_.CUSTOM_ERROR,t,{custom_name:"emitterFactory"})}},cc=function(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})},cu=function(t){return new this(function(e,r){if(!(t&&void 0!==t.length))return r(TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);for(var o=n.length,i=0;i0&&nF&&new nF(t.getReporterId(),t.rules)})}}()}catch(t){x(o_.INIT_ERROR,t)}}()}();