!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",(i={})[c.LEMON8]={},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 I(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}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(N([])));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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(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),E(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;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(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=o.getPlugin&&o.getPlugin("Monitor")||null;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={515:function(t){function e(t){if(t){var n=t;for(var r in e.prototype)n[r]=e.prototype[r];return n}}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o0}});return}var t=window.document,e=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){!this._monitoringIntersections&&(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():c();this._observationTargets.forEach(function(r){var o=r.element,i=a(o),c=this._rootContainsTarget(o),s=r.entry,u=t&&c&&this._computeTargetAndRootIntersection(o,e),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:u});s?t&&c?this._hasCrossedThreshold(s,l)&&this._queuedEntries.push(l):s&&s.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var r=a(e),o=u(e),i=!1;!i;){var c=null,s=1==o.nodeType?window.getComputedStyle(o):{};if("none"==s.display)return;if(o==this.root||o==t?(i=!0,c=n):o!=t.body&&o!=t.documentElement&&"visible"!=s.overflow&&(c=a(o)),c&&!(r=function(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),a=i-o,c=r-n;return a>=0&&c>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:c}}(c,r)))break;o=u(o)}return r}},r.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;oe.indexOf(this)&&e.push(this)},r.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||c(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=+!!this.isIntersecting}function r(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){n(),o=null},r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function o(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},278:function(t,e,n){t=n.nmd(t);var r,o="__lodash_hash_undefined__",i="[object Arguments]",a="[object Boolean]",c="[object Date]",s="[object Function]",u="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",y="[object Symbol]",m="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",b="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",R="[object Uint8Array]",N="[object Uint8ClampedArray]",S="[object Uint16Array]",P="[object Uint32Array]",A=/\w*$/,L=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[g]=C[w]=C[a]=C[c]=C[E]=C[b]=C[O]=C[I]=C[T]=C[l]=C[f]=C[p]=C[d]=C[v]=C[_]=C[y]=C[R]=C[N]=C[S]=C[P]=!0,C["[object Error]"]=C[s]=C[m]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=k||D||Function("return this")(),j=e&&!e.nodeType&&e,U=j&&t&&!t.nodeType&&t,F=U&&U.exports===j;function q(t,e){return t.set(e[0],e[1]),t}function G(t,e){return t.add(e),t}function V(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o-1},tR.prototype.set=function(t,e){var n=this.__data__,r=tA(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},tN.prototype.clear=function(){this.__data__={hash:new tT,map:new(th||tR),string:new tT}},tN.prototype.delete=function(t){return tC(this,t).delete(t)},tN.prototype.get=function(t){return tC(this,t).get(t)},tN.prototype.has=function(t){return tC(this,t).has(t)},tN.prototype.set=function(t,e){return tC(this,t).set(t,e),this},tS.prototype.clear=function(){this.__data__=new tR},tS.prototype.delete=function(t){return this.__data__.delete(t)},tS.prototype.get=function(t){return this.__data__.get(t)},tS.prototype.has=function(t){return this.__data__.has(t)},tS.prototype.set=function(t,e){var n=this.__data__;if(n instanceof tR){var r=n.__data__;if(!th||r.length<199)return r.push([t,e]),this;n=this.__data__=new tN(r)}return n.set(t,e),this};var tD=tu?W(tu,Object):function(){return[]},tM=function(t){return tt.call(t)};function tj(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function tU(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tF(t,e){return t===e||t!=t&&e!=e}(tp&&tM(new tp(new ArrayBuffer(1)))!=w||th&&tM(new th)!=l||td&&tM(td.resolve())!=h||tv&&tM(new tv)!=v||t_&&tM(new t_)!=m)&&(tM=function(t){var e=tt.call(t),n=e==p?t.constructor:void 0,r=n?tU(n):void 0;if(r)switch(r){case tm:return w;case tg:return l;case tw:return h;case tE:return v;case tb:return m}return e});var tq=Array.isArray;function tG(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=0x1fffffffffffff&&!tH(t)}var tV=tl||function(){return!1};function tH(t){var e=tB(t)?tt.call(t):"";return e==s||e==u}function tB(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function tW(t){return tG(t)?function(t,e){var n,r,o,a,c,s=tq(t)||(o=r=n=t)&&"object"==typeof o&&tG(r)&&$.call(n,"callee")&&(!tc.call(n,"callee")||tt.call(n)==i)?function(t,e){for(var n=-1,r=Array(t);++n-1&&a%1==0&&a=e&&(t.apply(void 0,r),n=Date.now())}}var f=function(t){return/^(0|([1-9]\d*))$/.test(""+t)}},790:function(t,e,n){"use strict";n.d(e,{xD:function(){return T},Tm:function(){return S},XA:function(){return v},zd:function(){return E},Dt:function(){return m},bp:function(){return O},zP:function(){return x},b4:function(){return h},RA:function(){return p},z6:function(){return M},Xf:function(){return _},z1:function(){return D},NC:function(){return b},r8:function(){return w},Z0:function(){return d},gn:function(){return g},sH:function(){return y},PO:function(){return P},Fn:function(){return I}});var r,o,i,a,c=n(332);(r=i||(i={}))[r.NOT_SURE=0]="NOT_SURE",r[r.INVOKE_METHOD_ENABLED=1]="INVOKE_METHOD_ENABLED",r[r.INVOKE_METHOD_NOT_ENABLED=2]="INVOKE_METHOD_NOT_ENABLED",(o=a||(a={})).NORMAL="1",o.NOT_CROSS_DOMAIN_IFRAME="2",o.CROSS_DOMAIN_IFRAME="3",o.WEB_WORKER="4",o.SANDBOX_IFRAME="5",o.GTM_IFRAME="6",o.URL_IN_QUERY_IFRAME="7",o.UNKNOWN_IFRAME="8";var s=n(319),u=n(74),l=n(408),f=n(229),p=function(){var t,e;return(null==(t=(0,c.Ie)())||null==(e=t._env)?void 0:e.env)||u.V.EXTERNAL},h=function(){var t,e;return null!=(t=null==(e=(0,c.Ie)())?void 0:e._is_onsite)?t:l.S.OFFSITE},d=function(t){return(t||p())!==u.V.EXTERNAL},v=function(t){return(t||p())===u.V.TIKTOK},_=function(){var t=(0,c.ij)();return/windows phone/i.test(t)?f.Bk.WINDOWS_PHONE:/android/i.test(t)?f.Bk.ANDROID:/iPad|iPhone|iPod/.test(t)?f.Bk.IOS:f.Bk.PC},y=function(){try{return navigator.userAgentData.getHighEntropyValues(["model","platformVersion"])}catch(t){return Promise.resolve({})}},m=function(){return"android"===_()},g=function(){return"ios"===_()},w=function(){return!1},E=function(){return window.top!==window},b=(0,s.IH)(function(){return/open_news/i.test((0,c.ij)())}),O=(0,s.IH)(function(){return/ultralite/i.test((0,c.ij)())});function I(){try{var t,e;return[i.INVOKE_METHOD_ENABLED,i.INVOKE_METHOD_NOT_ENABLED][[!!(null!=(t=window)&&null!=(e=t.ToutiaoJSBridge)&&e.invokeMethod),!0].findIndex(function(t){return t})]}catch(t){return i.NOT_SURE}}var T=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},R=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}},N=function(){try{if(!T())return a.NOT_CROSS_DOMAIN_IFRAME;if(R())return a.URL_IN_QUERY_IFRAME;if(window.google_tag_manager)return a.GTM_IFRAME;if(window.name&&"web-pixel-sandbox"===window.name)return a.SANDBOX_IFRAME;return a.CROSS_DOMAIN_IFRAME}catch(t){return a.UNKNOWN_IFRAME}},S=function(){return(0,c.n2)()?a.WEB_WORKER:E()?N():a.NORMAL},P=function(){var t=(0,c.ij)();if(t)for(var e=0,n=Object.values(f.vu);ea)return!1}return!0},k=function(t){var e=P();return void 0!==e&&t.has(e)},D=function(){return k(new Set([f.vu.MUSICAL_LY,f.vu.TRILL,f.vu.ULTRALITE]))},M=function(){var t=(0,c.E9)();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}},332:function(t,e,n){"use strict";n.d(e,{E9:function(){return a},FH:function(){return h},Gp:function(){return c},Ie:function(){return s},My:function(){return p},Wf:function(){return _},c6:function(){return y},cH:function(){return l},gM:function(){return i},ij:function(){return f},kW:function(){return d},n2:function(){return u},ri:function(){return v}});var r=n(229),o=null,i=function(t){o=t},a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:Function("return this")()},c=function(){return a()[r.iG]||r.bk},s=function(){var t=a();return o||t[c()]},u=function(){var t=a();return void 0!==t.DedicatedWorkerGlobalScope?t instanceof t.DedicatedWorkerGlobalScope:"DedicatedWorkerGlobalScope"===t.constructor.name},l=function(){return!!s()._is_onsite},f=function(){var t=a();return("object"==typeof navigator&&navigator.userAgent?navigator.userAgent:"")||t._userAgent},p=function(t){try{var e=s();return e&&e._self_host_config&&e._self_host_config[t]||""}catch(t){return""}},h=function(t,e){void 0===e&&(e=[]);try{return e.includes(t)}catch(t){return!1}},d=function(t){var e=s(),n=e._i||{},r=t&&n[t];return t&&r&&r._partner?r._partner:e._partner?e._partner:""},v=function(t){var e=s(),n=e._i||{};return Object.keys(n).filter(function(e){return n[e]._partner===t}).length>0||e._partner===t},_=function(t){try{var e=s()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},y=function(){try{var t=s()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}}},783:function(t,e,n){"use strict";n.d(e,{ZK:function(){return c},dK:function(){return u},qe:function(){return o},um:function(){return i},vU:function(){return a},wE:function(){return s}});var r=n(332),o={info:[],error:[]};function i(t,e,n){void 0===e&&(e={}),void 0===n&&(n=!1);try{var i=(0,r.Ie)(),a=i.getPlugin&&i.getPlugin("Monitor")||null;a&&a.info&&"function"==typeof a.info?a.info.call(a,t,e,n):(0,r.Wf)("Monitor")&&o.info.push({event:t,detail:e,withoutJSB:n})}catch(t){}}function a(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i=!1);try{var a=(0,r.Ie)(),c=a.getPlugin&&a.getPlugin("Monitor")||null;c&&c.error&&"function"==typeof c.error?c.error.call(c,t,e,n,i):(0,r.Wf)("Monitor")&&o.error.push({event:t,err:e,detail:n,withoutJSB:i})}catch(t){}}function c(t,e){try{var n=(0,r.Ie)(),o=n.getPlugin&&n.getPlugin("DiagnosticsConsole")||null;o&&o.warn.apply(o,[t,e])}catch(t){}}function s(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"getPixelDetail",start:performance.now()}}catch(t){}var e={lib:"ttq",pixelCode:"MOCK_SHOP_ID"};try{var n=document&&document.currentScript,o=n&&n.getAttribute("data-id")||"",i=(0,r.Gp)()||"ttq";e={pixelCode:o,lib:i}}catch(t){e={lib:"ttq",pixelCode:""}}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e}var u=function(){try{var t=(0,r.Ie)();if(!(t&&t._legacy&&0!==t._legacy.length))return!1;return Object.keys(t._t).length>Object.keys(t._legacy||[]).length||t.reporters.length>Object.keys(t._legacy||[]).length}catch(t){return!1}}},319:function(t,e,n){"use strict";function r(t){var e=Error(t);return e.source="ulid",e}n.d(e,{cm:function(){return C},d$:function(){return I},_v:function(){return D},X1:function(){return S},QO:function(){return L},TX:function(){return N},hi:function(){return R},te:function(){return A},oh:function(){return G},zh:function(){return j},Ds:function(){return k},mQ:function(){return x},Xu:function(){return g},$j:function(){return b},vO:function(){return P},iK:function(){return F},IH:function(){return E},eh:function(){return q},xF:function(){return H},WZ:function(){return _},ZV:function(){return v},iE:function(){return y},Zq:function(){return m},LT:function(){return O},eD:function(){return T},Pm:function(){return w},bJ:function(){return Y},P6:function(){return U}});var o,i="0123456789ABCDEFGHJKMNPQRSTVWXYZ",a=i.length,c=(o||(o=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];e||(e="undefined"!=typeof window?window:null);var o=e&&(e.crypto||e.msCrypto);if(o)return function(){var t=new Uint8Array(1);return o.getRandomValues(t),t[0]/255};try{var i=n(616);return function(){return i.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw r("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 r("cannot encode time greater than 281474976710655");if(t<0)throw r("time must be positive");if(!1===Number.isInteger(t))throw r("time must be an integer");for(var n=void 0,o="";e>0;e--)n=t%a,o=i.charAt(n)+o,t=(t-n)/a;return o}(t,10)+function(t,e){for(var n="";t>0;t--)n=function(t){var e=Math.floor(t()*a);return e===a&&(e=a-1),i.charAt(e)}(e)+n;return n}(16,o)}),s=n(729),u=n(229),l=n(118),f=n(188),p=n(790);function h(){h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new I(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return R()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function v(){}var _={};s(_,i,function(){return this});var y=Object.getPrototypeOf,m=y&&y(y(T([])));m&&m!==e&&n.call(m,i)&&(_=m);var g=v.prototype=p.prototype=Object._ttq_create(_);function w(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function d(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}var v=function(t){},_=function(t){return!!t},y=function(t){return void 0!==t.metric_name},m=function(t){return"CompletePayment"===t||"Purchase"===t},g=function(t){return y(t)?u.aj:u.Kc},w=function(t){var e;return Object.keys((null==t||null==(e=t.context)?void 0:e.user)||{}).some(function(t){return -1!==l.Ae.indexOf(t)})};function E(t,e){var n,r=t;return function(){if(r){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},O=function(t){return t?""+t+u.n2+b(20):(0,f.fV)("sessionId")},I=function(){for(var t=c(Date.now());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},T=function(t){return t?t.split(u.n2)[0]:""},R=function(t,e){return((0,p.r8)()?"/static/config.js":u.Ns)+"?sdkid="+t+"&hostname="+e},N=function(){return(0,p.r8)()?"/static/enable_cookie.js":u.OW},S=function(){return(0,p.r8)()?"/static/disable_cookie.js":u.QN},P=function(){return(0,p.r8)()?"/static/identify.js":u.lV},A=function(t,e){if(0===Object.keys(t).length)return{};var n={identity_params:{}},r={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]&&r[o]&&r[o].forEach(function(e){if(n.identity_params[e]=[s.hZ.EMPTY_VALUE],t[e]){var r=t[e]||[s.hZ.EMPTY_VALUE];n.identity_params&&(n.identity_params[e]=[].concat(r))}})}),n},L=function(t,e){var n={identity_params:{}};return 0===Object.keys(t).length?{}:(Object.entries(e).forEach(function(e){var r=e[0];if(e[1])if(t[r]&&t[r].length){var o=t[r]||[s.hZ.EMPTY_VALUE];n.identity_params[r]=[].concat(o)}else n.identity_params[r]=[s.hZ.EMPTY_VALUE]}),n)};function x(t,e){var n=Object.assign({},t);return e.forEach(function(t){null!==n[t]&&void 0!==n[t]&&delete n[t]}),n}var C=function(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){e[r]&&(n[r]=t[r])}),n};function k(t,e,n){var r;return function(){for(var o=arguments.length,i=Array(o),a=0;a0&&(r[o]=i)}else r[o]=e[o];for(var a in n)n.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(r[a]=n[a]);return r}(t,e)).length>0}function G(t,e){var n={};return t&&((0,f.HD)(t)||(0,f.hj)(t)?n.external_id=t.toString():(0,f.Kn)(t)&&(n=t)),e&&(0,f.Kn)(e)&&Object.assign(n,e),n}var V=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e,n={taskName:window.ttq._pf_tn,functionName:"getPixelScriptByPixelCode",start:performance.now()}}catch(t){}for(var r=Array.prototype.slice.call(document.getElementsByTagName("script")),o=0;o-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}return e},H=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"getPixelInstalledPosition",start:performance.now()}}catch(t){}var n="unknown";try{var r=t&&V(t);r&&(B(r)&&(n="isInHead"),K(r)&&(n="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return n},B=function t(e){var n=e.parentElement;return!!n&&("HEAD"===n.tagName||t(n))},W=function(t,e){for(var n=[document.body],r=0;r<=t&&n.length;){var o,i=n.pop();if(i===e)return!0;if(!((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null==(o=i.src)?void 0:o.indexOf(u.Mm))>-1)){if(r++,"object"==typeof i&&i.children)for(var a=i.children.length-1;a>=0;a--)n.push(i.children[a])}}return!1},K=function(t){return W(10,t)},Y=function(t){return function(){setTimeout(t)}}},331:function(t,e,n){"use strict";n.d(e,{Z:function(){return tI}}),n(42),n(505);var r,o,i,a,c,s,u,l,f,p,h,d,v=n(319),_=n(783),y=n(825),m=["","webkit","Moz","MS","ms","o"],g=window,w=void 0!==function(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),i=0;iNumber(n.opacity))},C=function(t){var e=t;if("string"==typeof t)try{e=decodeURI(t)}catch(n){e=t}return e},k=function(t,e){try{var n=new URL(t);return n.searchParams.delete(e),n.toString()}catch(e){return t}},D=function(t){return Object.values(f).includes(t)?l.V2:l.V1},M='"pixelMethod":"standard"',j=function(t,e){try{var n=t.split(M),r="";if(e&&(r+=',"is_button":"true"'),r)return n[0]+M+r+n[1];return t}catch(e){return t}},U=function(t){try{var e=t.split(M);return e[0]+M+',"is_standard_mode":"1"'+e[1]}catch(e){return t}},F=/[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g,q=/((([a-z])(?=[A-Z]))|(([A-Z])(?=[A-Z][a-z])))/g,G=/\s+/g,V={TOKENIZE_TEXT:"rule_compute_tokenize_text_error",IMG_SRC:"rule_compute_img_src_error",ELEMENT_V2:"rule_compute_element_v2_xpath_error"},H=function(t){var e;return null===t?null:(null==(e=t.innerText)?void 0:e.length)>0?t.innerText.replace(F," ").replace(q,function(t){return t+" "}).replace(G," ").toLowerCase().trim():null},B=function(t){var e,n;if("IMG"===t.tagName)return t.getAttribute("src")||"";if(window.getComputedStyle){var r=window.getComputedStyle(t).getPropertyValue("background-image");if(null!==r&&"none"!==r&&r.length>0)return r}return"INPUT"===t.tagName&&t.getAttribute("src")||(null==(n=null==(e=t.getElementsByTagName("img"))?void 0:e[0])?void 0:n.getAttribute("src"))||null},W=function(t,e){var n;return(null==(n=H(t))?void 0:n.toLowerCase())===e},K=function(t,e){return B(t)===e},Y=function(t,e){var n;return null!=(n=null==t?void 0:t.matches)&&!!n.call(t,e)},J=function(t,e,n,r){var o=!1,i=null,a=null;switch(e){case"TOKENIZE_TEXT":a=W;break;case"IMG_SRC":a=K;break;case"ELEMENT_V2":a=Y}for(var c=0;c<5&&!["HTML","BODY"].includes(null==t?void 0:t.tagName);c++){if((null==t?void 0:t.matches("input[type='button'], input[type='image'], input[type='submit'], button, [class*=btn], [class*=Btn], [class*=button], [class*=Button], [role*=button], [href^='tel: '], [href^='callto: '], [href^='mailto: '], [href^='sms: '], [href^='skype: '], [href^='whatsapp: '], [id*=btn], [id*=Btn], [id*=button], [id*=Button], a"))&&(null==a?void 0:a(t,n))){o=!0,i=t;break}t=t.parentElement}return r?i:o};String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=!e||e<0?0:+e,this.substring(e,e+t.length)===t}}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t});var X=function(t,e,n,r){switch(e){case"EQUALS":if([f.TOKENIZE_TEXT,f.IMG_SRC,f.ELEMENT_V2].includes(r))try{return J(t,r,n,!1)}catch(t){(0,_.vU)(y.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:V[r]});break}if("ELEMENT"==r)try{for(var o=document.querySelectorAll(n),i=Array.prototype.slice.call(o),a=0;a0)return!0;break;case"LT":if(tn)return!0;break;case"LT_OR_EQUAL":if(t<=n)return!0;break;case"GT_OR_EQUAL":if(t>=n)return!0;break;case"CONTAINS":if(n.split(";").filter(function(e){return(null==e?void 0:e.length)>0&&t.indexOf(e)>-1}).length>0)return!0;break;case"DOES_NOT_EQUAL":if(0==n.split(";").filter(function(e){return t==e}).length)return!0;break;case"DOES_NOT_CONTAIN":if(-1==t.indexOf(n))return!0;break;case"STARTS_WITH":if(t.startsWith(n))return!0;break;case"ENDS_WITH":if(t.endsWith(n))return!0;break;case"MATCHES_REGEX":if(n.test(t))return!0;break;case"MATCHES_REGEX_IGNORE_CASE":if(!n.test(t))return!0;break;case"MATCHES_CSS_SELECTOR":if(R(t,n,!0))return!0;break;case"DOSE_NOT_MATCHES_CSS_SELECTOR":if(R(t,n,!1))return!0}return!1};function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}("visibility"==t?["pageview","history_change","visibility"]:["pageview","history_change","click"]);!(a=c()).done;){var s=a.value;if(Q[s].indexOf(i)>-1){var u=void 0;switch(s){case"click":u=this.click(i,n);break;case"pageview":u=this.pageview(i);break;case"history_change":u=this.history_change(i,n,r);break;case"visibility":u=this.visibility(i,e.value,o)}return u}}},e.click=function(t,e){var n;if(!e)return!1;switch(t){case"ELEMENT":case"ELEMENT_V2":case"TOKENIZE_TEXT":case"IMG_SRC":case"ELEMENT_TARGET":n=e.target;break;case"ELEMENT_CLASSES":n=e.target.className;break;case"ELEMENT_ID":n=e.target.id;break;case"ElEMENT_URL":n=e.target.href||e.target.src||"";break;case"ELEMENT_TEXT":n=e.target.text||"";break;default:n=null}return n},e.pageview=function(t){var e;switch(t){case"PAGE_URL":case"PAGE_URL_V2":e=k(location.href,z);break;case"PAGE_HOSTNAME":e=location.hostname;break;case"PAGE_PATH":e=location.pathname;break;case"REFERRER":e=k(document.referrer,z);break;default:e=null}return e},e.history_change=function(t,e,n){var r;switch(t){case"NEW_HISTORY_FRAGMENT":r=location.hash;break;case"OLD_HISTORY_FRAGMENT":r=n.old_hash;break;case"NEW_HISTORY_STATE":r=history.state;break;case"OLD_HISTORY_STATE":r=n.old_state;break;case"HISTORY_SOURCE":r=e.type;break;default:r=null}return r},e.visibility=function(t,e,n){var r;switch(void 0===n&&(n=document),t){case"ELEMENT_ID":r="#"+e;break;case"ELEMENT_CLASS":r="."+e;break;case"ELEMENT":r=e;break;default:r=null}return n.querySelector(r)},t}(),tt=n(515),te=n.n(tt);function tn(t,e){return(tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tr=function(t){function e(e,n){var r;return(r=t.call(this)||this).BaseConf=e,r.SDK_ID=n,r.BaseConf.forEach(function(t){t.id=t.code_id,t.conditions=t.conditions||[],t.conditions.forEach(function(t){t.result=!1})}),r}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tn(e,t),e.prototype.sendDebugEvent=function(t,e,n){var r=this.BaseConf,o=[];r.forEach(function(t){t.code_id==e&&(t.conditions=n),o.push(t)});var i={sdk_id:this.SDK_ID,event_name:t,data:o};this.emit("jelly_message",i)},e}(te()),to=function(t){var e,n={};try{if(t.currency&&(n.currency=t.currency),t.value){document.querySelectorAll(t.value).length;var r=document.querySelector(t.value);(null==r?void 0:r.innerHTML)&&(n.ori_value=r.innerHTML,n.value=ti(null==(e=r.innerHTML)?void 0:e.trim(),t.value_index,t.value_parsing_method))}if(t.contents&&void 0!==t.contents[0].content_type&&(1===t.contents[0].content_type&&(n.content_type="product"),2===t.contents[0].content_type&&(n.content_type="product_group")),t.contents&&t.contents[0].content_name){var o=document.querySelector(t.contents[0].content_name);n.content_name=null==o?void 0:o.innerHTML}if(t.contents&&t.contents[0].content_id){if(t.contents[0].content_from===h.CLICK_EVENT){var i=document.querySelector(t.contents[0].content_id);n.content_id=null==i?void 0:i.innerHTML}else if(t.contents[0].content_from===h.DESTINATION_URL){var a=new URL(location.href);if(t.contents[0].content_id.startsWith("path")&&(n.content_id=a.pathname.split("/")[t.contents[0].content_id.split("|")[1]]),t.contents[0].content_id.startsWith("search")){var c=new URLSearchParams(a.search),s=t.contents[0].content_id.split("|")[1];n.content_id=c.get(s)}}}return n}catch(t){return(0,_.vU)(y.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v1_error"}),n}},ti=function(t,e,n){var r="";if(-1===e||void 0===e){var o=tc(t)[0];r=void 0!==o?ta(o,n):""}else{var i=tc(t)[e];r=void 0!==i?ta(i,n):""}return r},ta=function(t,e){var n="";if((e===p.KEEP||e===p.WRONG)&&(n=t),e===p.TURNINTOINTEGER&&(n=t.replace(/[,\.]/g,"")),e===p.TURNINTODECIMAL){var r=t.split(/[,\.]/g),o="";r.forEach(function(t,e){e0&&(i.contents=[],tl(t.contents,i.contents,e)),t.parameter_list_v2&&Object.assign(i,tp(t,e));var c={};return i.eb_email&&(null==(r=i.eb_email)?void 0:r.length)>0&&(c.eb_email=i.eb_email),i.eb_phone_number&&(null==(o=i.eb_phone_number)?void 0:o.length)>0&&(c.eb_phone_number=i.eb_phone_number),i}catch(t){return(0,_.vU)(y.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_error"}),i}},td=function(t,e,n){try{var r=t.split(M),o="";if(Object.keys(e).forEach(function(t){var n;if(null!==e[t]||void 0!==e[t])if("contents"===t){var r=e[t];o+=',"'+t+'":[',null==r||r.map(function(t,e){o+="{";var n=Object.keys(t);n.forEach(function(e,r){"content_id"===e&&t[e]&&(t[e]=encodeURIComponent(t[e])),o+='"'+e+'":"'+t[e]+'"'+(r===(null==n?void 0:n.length)-1?"":",")}),o+="}"+(e===(null==r?void 0:r.length)-1?"":",")}),o+="]"}else((n=["eb_email","eb_phone_number"],void 0===n)?void 0:n.includes(t))||"content_name"===t||(o+=',"'+t+'":"'+("value"!==t?encodeURIComponent(e[t]):e[t])+'"')}),n&&(o+=',"dynamic_parameter_config":'+JSON.stringify(n)),o)return r[0]+M+o+r[1];return t}catch(e){return(0,_.vU)(y.O.CUSTOM_ERROR,e,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_transform_error"}),t}},tv=n(332),t_=function(t,e,n,r,o,i){var a,c,s,u;try{var l={},f={},p=null==(c=null==(a=(0,tv.Ie)())?void 0:a.instance)?void 0:c.call(a,t);o&&(Object.keys(o).forEach(function(t){var e,n=o[t];null!=n&&""!==n&&("eb_email"===t||"eb_phone_number"===t?(null==n?void 0:n.length)>0&&(f[t]=n):"content_name"===t?l.contents=null==(e=l.contents||[])?void 0:e.concat(n):l[t]=n)}),(null==(s=Object.keys(f))?void 0:s.length)>0&&(null==(u=null==p?void 0:p.identify)||u.call(p,f)),Object.keys(f).forEach(function(t){delete l[t]})),l.eb_version=r,i&&(l.eb_rule_id=String(i)),n&&(l.is_button="true"),l.is_standard_mode="1",null==p||p.track(e,l,{})}catch(t){(0,_.vU)(y.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"normalize_payload_error"})}};function ty(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return tm(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tm(t,e)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n-1){var i=tw.dispatcher("visibility",t,null,null,e.document),a="_"+t.value;i&&x(e,i)&&!n[a]&&(o.push(P(i,"",t)),n[a]=!0)}else X(tw.dispatcher("visibility",t),t.operator,t.value,t.variable_type)||(r=!1)}),o.length>0&&Promise.all(o).then(function(e){for(var n,o=!0,i=ty(e);!(n=i()).done;)n.value.result&&r||(o=!1);o&&N(t.code)},function(){})})}};function tO(t,e){return(tO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tI=function(t){function e(e,n){var r;if((r=t.call(this)||this).BaseConf=n,r.SDK_ID=e,window.jelly_tool_events&&window.jelly_tool_events.length&&window.jelly_tool_events.forEach(function(t){r.on(t.name,t.callback)}),r.emit("jelly_event",{SDK_ID:e,BaseConf:n||[]}),r.BaseConf instanceof Array){if(self._jelly_sdks=self._jelly_sdks||{},self._jelly_sdks[e]){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}self._jelly_sdks[e]=!0;var o=r.dispatch();r.trigger=new tE(o,n,e,function(t){r.emit("jelly_message",t)})}return r}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tO(e,t),e.prototype.dispatch=function(){var t={CLICK:[],PAGEVIEW:[],VISIBILITY:[],HISTORY_CHANGE:[]};return this.BaseConf.forEach(function(e){var n={code_id:e.code_id,code:e.code,conditions:e.conditions||[]};void 0!==e.trigger_type&&t[e.trigger_type]&&t[e.trigger_type].push(n)}),t},e}(te());window.TiktokJelly=tI}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},n.rv=function(){return"1.3.15"},n.ruid="bundler=rspack@1.3.15",function(){"use strict";var t,e,r,o,i,a,c,s=n(783),u=n(825),l=n(332),f=n(790),p=n(319),h=function(){var t=(0,l.Ie)();return"object"==typeof t&&t._i?t._i:{}},d=function(t,e){var n=h()||{};Object.keys(n).forEach(function(r){var o=n[r];o._init||o.push([t].concat(e))})},v=function(t,e,n){var r=(h()||{})[t];if(r){if(r._init)return;r.push([e].concat(n))}};(o_=oW||(oW={})).PIXEL_CODE="pixelCode",o_.EVENT_SOURCE_ID="eventSourceId",o_.SHOP_ID="shopId";var _=n(408),y={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"),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"),PANGLE_COOKIE_MATCHING_PLUGIN:Symbol.for("PANGLE_COOKIE_MATCHING_PLUGIN"),EVENT_BUILDER_PLUGIN:Symbol.for("EVENT_BUILDER_PLUGIN"),ENRICH_IPV6_PLUGIN:Symbol.for("ENRICH_IPV6_PLUGIN"),RUNTIME_MEASUREMENT_PLUGIN:Symbol.for("RUNTIME_MEASUREMENT_PLUGIN"),PAGE_PERFORMANCE_MONITOR:Symbol.for("PAGE_PERFORMANCE_MONITOR"),PAGE_INTERACTION_MONITOR:Symbol.for("PAGE_INTERACTION_MONITOR"),PAGEDATA_PLUGIN:Symbol.for("PAGEDATA_PLUGIN"),HISTORY_OBSERVER:Symbol.for("HISTORY_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"),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")},m=n(74);(oy=oK||(oK={})).INIT_START="initStart",oy.INIT_END="initEnd",oy.CONTEXT_INIT_START="contextInitStart",oy.CONTEXT_INIT_END="contextInitEnd",oy.PAGE_URL_WILL_CHANGE="pageUrlWillChange",oy.PAGE_URL_DID_CHANGE="pageUrlDidChange",oy.PAGE_DID_LOAD="pageDidLoad",oy.PAGE_WILL_LEAVE="pageWillLeave",oy.AD_INFO_INIT_START="adInfoInitStart",oy.AD_INFO_INIT_END="adInfoInitEnd",oy.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",oy.PIXEL_SEND="pixelSend",oy.PIXEL_DID_MOUNT="pixelDidMount",(om=oY||(oY={})).UNKNOWN="-1",om.LOADING="0",om.INTERACTIVE="1",om.COMPLETE="2",(og=oJ||(oJ={})).HISTORY_CHANGE="hc",og.URL_CHANGE="uc";var g=["page","track","identify"],w=["holdConsent","revokeConsent","grantConsent"],E=["identify"],b=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(ow=oX||(oX={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",ow.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",ow.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",ow.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",ow.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",ow.MISSING_CONTENT_ID="MISSING_CONTENT_ID",ow.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",ow.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",ow.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",ow.INVALID_CONTENT_ID="INVALID_CONTENT_ID",ow.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",ow.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",ow.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",ow.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",ow.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",ow.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",ow.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",ow.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var O=function(t,e,n){t.isBound(e)?t.rebind(e).toConstantValue(n):t.bind(e).toConstantValue(n)},I=function(){var t=(0,l.Ie)();return t&&t._i||{}},T=function(t,e,n){void 0===n&&(n=_.S.OFFSITE);try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"webTtqFactory",start:performance.now()}}catch(t){}O(t,y.ENV,e),O(t,m.M.SignalType,n);var o=t.get(y.TTQ);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return o},R=function(t,e){var n,r=e.id,o=e.type,i=void 0===o?oW.PIXEL_CODE:o,a=e.info,c=e.options,s=e.plugins,u=void 0===s?{}:s,l=e.rules;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var f={taskName:window.ttq._pf_tn,functionName:"webReporterFactory",start:performance.now()}}catch(t){}var p=t.get(y.TTQ),h=t.get(y.TTQ_REPORTERS);if(!h.some(function(t){return t.getReporterId()===r})){O(t,m.M.ID,r),O(t,m.M.Type,i),O(t,m.M.Info,a||((n={})[i]=r,n)),O(t,m.M.Options,void 0===c?{}:c),O(t,m.M.Plugins,u),O(t,m.M.Rules,void 0===l?[]:l),p.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var d=t.get(y.REPORTER);if(u){var v=u.AdvancedMatching,_=u.AutoAdvancedMatching,g={};v&&Object.assign(g,v),_&&Object.assign(g,_),d.setAdvancedMatchingAvailableProperties(g)}d.on("beforeReport",function(t,e,n,r,o){p.dispatch(oK.PIXEL_SEND,t,e,n,r,o)}),h.push(d),t.rebind(y.TTQ_REPORTERS).toConstantValue(h),p.dispatch(oK.PIXEL_DID_MOUNT,d);try{window.ttq&&window.ttq._ppf&&(f.end=performance.now(),window.ttq._ppf.push(f))}catch(t){}return d}},N=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"mergeWebGlobalTtq",start:performance.now()}}catch(t){}["getReporter","usePlugin","getPlugin","resetCookieExpires"].forEach(function(n){t[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o-1&&setTimeout(function(){(0,s.um)(u.O.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,n)}catch(t){return(0,s.vU)(u.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),g.forEach(function(e){Object.defineProperty(o,e,{get:function(){return function(){try{var n=1==arguments.length&&void 0===arguments[0]?[]:Array.prototype.slice.call(arguments);return d(e,n),t[e].apply(t,n)}catch(t){return(0,s.vU)(u.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),n[r]._mounted=!0,n[r].initialize=!0,(0,l.gM)(n[r]);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},L=function(t,e,n){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"handleCache",start:performance.now()}}catch(t){}x(e),Object.entries(I()).forEach(function(r){var o=r[0],i=r[1];if(!i._init&&("Tealium"===(0,l.kW)(o)||(0,l.cH)()||i.info)&&(e.getReporter(o)?(0,s.ZK)(oX.DUPLICATE_PIXEL_CODE):(n||R)(t,{id:o,type:oW.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],f=a.slice(1),p=e.instance(o);if(p)switch(c){case"identify":e.identify(f[0],f[1]);break;case"page":e.page(f[0]);break;case"track":p.track(f[0],f[1],f[2]||{});break;default:p[c]?p[c](f[0],f[1],f[2]||{}):(0,s.vU)(u.O.CUSTOM_ERROR,Error("action not find: "+p[c]))}}}}),C(e);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},x=function(t){try{var e=(0,l.Ie)();[].concat(w,E).forEach(function(n){e.find(function(r,o){var i=r[0],a=r.slice(1);if(i===n)return t[n].apply(t,a),e.splice(o,1),!0})})}catch(t){(0,s.vU)(u.O.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},C=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"handleGlobalCache",start:performance.now()}}catch(t){}var n=(0,l.Ie)();if(n.length>0)for(;n.length;){var r=n.shift();if(r){var o=r[0],i=r.slice(1);switch(!(0,l.ri)("Tealium")&&d(o,i),o){case"identify":t.identify(i[0],i[1]);break;case"page":t.page(i[0]);break;case"track":t.track(i[0],i[1],i[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()}}}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}};function k(t,e,n){return(k=!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,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&D(o,n.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function D(t,e){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var M="_ttq_inject",j=function(){function t(){this.bindings={},this.rebind=this.bind}var e=t.prototype;return e.bind=function(t){var e=this;return{to:function(n){return e.bindings[t.toString()]={constructor:n,singleton:!1},e},toConstantValue:function(n){return e.bindings[t.toString()]={value:n,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 n=this.bindings[e];n&&(this.bindings[e]=Object.assign(Object.assign({},n),{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 n=(t[M]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return k(t,n)},t}();function U(){return function(t){}}function F(t){return function(e,n,r){e[M]=e[M]||[],e[M][r]=Object.assign({},e[M][r],{identifier:t})}}function q(){return function(t,e,n){t[M]=t[M]||[],t[M][n]=Object.assign({},t[M][n],{optional:!0})}}function G(t,e){try{var n=new URL(t).searchParams.getAll(e);return n[n.length-1]||""}catch(t){return""}}(oE=oZ||(oZ={})).BIND="bind",oE.REBIND="rebind";var V=function(t,e,n){try{var r=G(e,t);if(r)return r;return G(n||"",t)}catch(t){}return""},H=function(){if(!(0,f.zd)())return{url:window.location.href,referrer:document.referrer};if(!(0,f.xD)()){var t,e,n,r;return{url:(null==(t=window)||null==(e=t.top)?void 0:e.location.href)||"",referrer:(null==(n=window)||null==(r=n.top)?void 0:r.document.referrer)||""}}var o=window.location.href,i=document.referrer;if(/doubleclick\.net/.test(window.location.hostname)){var a=window.location.pathname,c={};return a.split(";").forEach(function(t){var e=t.split("="),n=e[0],r=e[1];c[n]=decodeURIComponent(r)}),{url:c["~oref"]||o,referrer:document.referrer}}return{url:o,referrer:i}},B=function(t){var e=H().url;try{return new URL(t||e)}catch(t){}return null},W=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},K=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},Y=function(t,e){try{var n=JSON.stringify(e);window.sessionStorage.setItem(t,n)}catch(t){}},J=n(229),X="https://analytics.tiktok.com/api/v2",Z=X+"/pixel",Q=X+"/performance",z=X+"/interaction",$=X+"/performance_interaction",tt=X+"/pixel/perf",te=X+"/pixel/inter",tn=X+"/pixel/act",tr=X+"/monitor",to="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",ti="ttclid",ta="_toutiao_params",tc=function(t,e){try{var n=V(ti,t,e)||void 0,r=V("ext_params",t,e)||void 0,o=V(ta,t,e)||void 0,i=parseInt(V("ttuts",t,e),10)||void 0,a=o?JSON.parse(o):{},c=a.log_extra,s=void 0===c?void 0:c,u=a.idc,l=void 0===u?void 0:u,f=a.cid,p=void 0===f?void 0:f;return{callback:n,ext_params:r,log_extra:s,creative_id:p,idc:l,ttuts:i,ad_info_from:(s||l||p)&&"url"}}catch(t){return{}}},ts=function(t,e){try{var n=t.log_extra,r=t.ttuts;if(!(0,f.gn)())return!0;if(!(0,f.XA)(e)){if(null!=r)return 1!==r;return!0}if(n){var o=JSON.parse(n);return 1!==o.user_tracking_status}if(null===t.ATTStatus||void 0===t.ATTStatus)return!0;return 3===t.ATTStatus}catch(t){return!1}},tu=function(t,e){var n={};try{var r=t.creative_id,o=(t.callback,t.idc),i=t.convert_id,a=t.ad_info_from,c=t.ad_info_status,s=t.log_extra,u=t.ext_params,l=t.ATTStatus;if(r&&(n.creative_id=r),o&&(n.idc=o),i&&(n.convert_id=i),a&&(n.ad_info_from=a),c&&(n.ad_info_status=c),u&&(n.ext_params=u),l&&(n.ATTStatus=l),s){var f=JSON.parse(s),p=f.ad_user_agent,h=f.ad_id,d=f.rit,v=f.ocbs,_=f.vid,y=f.idc,m=f.country_id;h&&(n.ad_id=h),d&&(n.rit=d),p&&(n.ad_user_agent=p),v&&(n.ocbs=v),_&&(n.vid=_),y&&(n.idc=y),m&&(n.country_id=m)}return n}catch(t){return e&&e(t),n}},tl=n(188),tf=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 n="";for(var r in e)e[r]&&(n+="; "+r,!0!==e[r]&&(n+="="+e[r].split(";")[0]));return n},tp=function(t,e,n,r){void 0===n&&(n="/"),void 0===r&&(r=(0,tl.pW)()),tm(t,e,{path:n,expires:r})},th=function(t){if(t&&t.cde){var e=t.cde;return Object.assign({},J.Yp,{expires:e})}return J.Yp},td=0,tv=0,t_=function(t){var e={};return document.cookie.split(";").forEach(function(t){var n=t.split("=");e[n[0].trim()]=n.slice(1).join("=")}),e[t]||""},ty=function(t){if(0===document.cookie.length)return"";var e=t_(t);return e?unescape(e):""},tm=function(t,e,n){try{if(n){var r=window.location.hostname.split(".");if(tv=r.length,(td=tE())&&td=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},tE=function(){if(td)return td;var t=ty(J.qC);return t&&tw(t)?Number(t.split(".")[2]):0},tb=function(t,e,n){var r;return t!==J.qC||tw(e)||(e=(r=e)?r.split(".")[0]+".tt."+((0,f.z6)()?0:tE()):""),document.cookie=t+"="+e+tf(n),e===ty(t)},tO=function(t,e,n){void 0===t&&(t=""),void 0===e&&(e="");try{var r=V("tt_test_id",t,n);return r&&r!==e&&tp("tt_test_id",r,void 0,"session"),r||e}catch(t){return""}},tI=n(729);function tT(){return(tT=Object.assign?Object.assign.bind():function(t){for(var e=1;e18e5?{sessionId:r.toString()+"::"+(0,p.$j)(20),sessionCount:e+1,lastEventTS:r,isSessionStart:!0}:tT({},t,{lastEventTS:r,isSessionStart:!1})},tA=function(t,e,n){var r=t.sessionId,o=t.sessionCount,i=t.isSessionStart;return Object.assign({csid:r,page_csid:e.sessionId,csct:o},i?{css:1}:{},n?{pixel_code:n}:{})},tL=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.track=function(t,e,n){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 tN()},e.setCookieBasedSession=function(t){},t}();new tL("empty");var tx=function(){function t(t,e){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e}var e=t.prototype;return e.init=function(t,e){this.initContextInfo(t,e),this.initialize=!0},e.initContextInfo=function(t,e){var n=this;this.dispatch(oK.CONTEXT_INIT_START),this.initAdInfo(t,e),this.initAppInfo(t,e),this.initLocalServiceInfo(),this.reportService.pushPreposition(Promise.resolve().then(function(){return n.initUserInfo()})),this.initTestId(t,e),this.dispatch(oK.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var n=this.context.getPageInfo().url;if(n!==t){this.dispatch(oK.PAGE_URL_WILL_CHANGE,e||n,t);var r=this.context.setPageInfo(t,e||n);(null==r?void 0:r.pageIndex)&&this.setPageIndex(r.pageIndex),this.dispatch(oK.PAGE_URL_DID_CHANGE,t,n)}},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||((0,s.vU)(u.O.PIXEL_EMPTY,Error(""),{pixelCode:t}),new tL(t))},e.instances=function(){return this.reporters},e.identify=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"identify_api_handler",functionName:window.ttq._pf_tn&&"identify_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_api_handler")}}catch(t){}var r=(0,p.oh)(t,e);this.context.setUserInfo(r);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"identify_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.page=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"page_api_handler",functionName:window.ttq._pf_tn&&"page_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_api_handler")}}catch(t){}t.url!==this.context.getPageInfo().url&&(this.setPageInfo(t.url,t.referrer),this.reporters.forEach(function(t){t.clearHistory()}));var n=Object.assign({},t);delete n.url,delete n.referrer,this.reporters.forEach(function(t){t.page(n)});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"page_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.isOnsitePage=function(){return this.context.getSignalType()===_.S.ONSITE||this.reporters.every(function(t){return t.isOnsite()})},e.track=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"track_api_handler",functionName:window.ttq._pf_tn&&"track_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_api_handler")}}catch(t){}this.instances().forEach(function(r,o){r.track(t,e,Object.assign({_i:o},n))});try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"track_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.dispatch=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function tk(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}tx=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],tx);var tD=(ob=tC().mark(function t(e,n){return tC().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=1),!(n>=0)){t.next=13;break}return t.prev=2,t.next=5,function(t){return new Promise(function(e,n){var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t;var o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(r,o):n("none element"),r.onload=function(){e(!0)},r.onerror=n})}(e);case 5:return t.abrupt("return",Promise.resolve(!0));case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",tD.call(null,e,n-1));case 11:t.next=14;break;case 13:throw Error;case 14:case"end":return t.stop()}},t,null,[[2,8]])}),oO=function(){var t=this,e=arguments;return new Promise(function(n,r){var o=ob.apply(t,e);function i(t){tk(o,n,r,i,a,"next",t)}function a(t){tk(o,n,r,i,a,"throw",t)}i(void 0)})},function(t,e){return oO.apply(this,arguments)});(oI=oQ||(oQ={})).TRACK="track",oI.PERFORMANCE="performance",oI.INTERACTION="interaction",oI.PCM="PCM",oI.PERFORMANCE_INTERACTION="performance_interaction",oI.SELFHOST="selfhost",oI.AUTO_CONFIG="auto_config",oI.PAGE="Pf",oI.PAGE_PERFORMANCE="page_performance",oI.PAGE_INTERACTION="page_interaction";var tM=["EnrichAM"];(oT=oz||(oz={})).LDU="limited_data_use",oT.EVENTID="eventID",oT.EVENT_ID="event_id",(oR=o$||(o$={}))[oR.defaultReport=0]="defaultReport",oR[oR.httpReport=1]="httpReport",oR[oR.htmlHttpReport=2]="htmlHttpReport",(oN=o0||(o0={}))[oN.P0=0]="P0",oN[oN.P1=1]="P1",oN[oN.P2=2]="P2";var tj=["ttuts","ad_info_from"],tU="Pageview",tF=[],tq=["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"],tG=function(){function t(){this.events={}}var e=t.prototype;return e.on=function(t,e){var n=this.events[t]||[];n.push(e),this.events[t]=n},e.emit=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],tG);var tV=function(t,e){if("selfhost"===t&&e&&(0,l.My)(e))return"https://"+(0,l.My)(e)+"/api/v2/pixel";var n={track:Z,performance:Q,interaction:z,performance_interaction:$,auto_config:tn,page_performance:tt,page_interaction:te}[t];return n||null};function tH(){return(tH=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,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],tW);var tK={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"},tY=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf"],tJ=function(t){var e=t.getUserInfo().anonymous_id,n=ty(J.qC);e!==n&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:n})},tX=function(t,e,n){try{var r=window.location.hostname.split(".");if(void 0!==o1&&o1=0;o--){var i="."+r.slice(o).join(".");if(document.cookie=t+"="+e+tf(Object.assign({},n,{domain:i})),ty(t)===e){o1=o;break}}}catch(t){}},tZ=function(t,e,n){var r,o=tN();return e&&(o=tP(e)),tX(t?J.ku+"_"+t:J.ku,(r=o).sessionId+"."+r.sessionCount+"."+r.lastEventTS,th(n)),o};function tQ(t,e){return(tQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tz=function(t){function e(e){var n,r,o=e.id,i=e.type,a=e.isOnsitePage,c=e.context,s=e.reporterInfo,u=e.ttqOptions,l=e.reportService,f=e.plugins,p=e.rules,h=e.options;return(r=t.call(this,c,l)||this).ttp="",r.loaded=!1,r.id=o,r.pixelCode=o,r.type=i,r.isOnsitePage=a,r.options=(void 0===h?{}:h)||{},r.plugins=(void 0===f?{}:f)||{},r.rules=(void 0===p?[]:p)||[],r.reporterInfo=Object.assign(s||{},((n={})[i]=o,n)),r.ttp=u.ttp||"",r.currency_list=u.currency_list||null,r.ttqPartner=u.partner||"",r.selfHostConfig=u.self_host_config||{},r.ttqOptions=u,r.pixelPromise=r.getInstance(),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tQ(e,t);var n=e.prototype;return n.identify=function(t,e){var n=(0,p.oh)(t,e);this.context.setUserInfo(n)},n.getReporterId=function(){return this.id||""},n.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},n.getReporterPartner=function(){var t;return(null==(t=this.reporterInfo)?void 0:t.partner)||""},n.setPixelInfo=function(t,e,n){var r,o=this.type;this.reporterInfo=Object.assign(this.reporterInfo,Object.assign({},t),((r={})[o]=this.getReporterId(),r)),e&&(this.rules=e),n&&(this.plugins=n)},n.getInstance=function(){return Promise.resolve(this)},n.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},n.getUserInfo=function(t){var e=this.context.getUserInfo(),n=(0,p.cm)(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case tI.Ts.Manual:return(0,p.cm)(this.isPartnerReporter()?n:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case tI.Ts.ManualV2:return(0,p.cm)(this.isPartnerReporter()?n:e,{first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0,ttoclid:!0});case tI.Ts.EBManual:return(0,p.cm)(e,{eb_email:!0,eb_phone_number:!0});case tI.Ts.Auto:var r=(0,p.cm)(n,{external_id:!0,auto_email:!0,auto_phone_number:!0,ttoclid:!0});return Object.assign(r,(r.auto_email||r.auto_phone_number)&&e.auto_trigger_type?{auto_trigger_type:e.auto_trigger_type}:{});default:return n}},n.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=(0,p.QO)(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),n=(0,p.cm)(t,{auto_email:!0,auto_phone_number:!0});return Object.keys(n).length>0&&(e.identity_params||(e.identity_params={}),Object.assign(e.identity_params,n)),e},n.getReporterMatchedUserFormatInfoV2=function(){var t=this.context.getUserFormatInfoV2(),e=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};return(0,p.te)(t,e)},n.isOnsite=function(){var t;return!!(null==(t=this.reporterInfo)?void 0:t.is_onsite)},n.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},n.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},tI.N4);var e=this.advancedMatchingAvailableProperties,n=e.email,r=e.phone_number,o=e.auto_email,i=e.auto_phone_number;n=!this.isPartnerReporter()||n,r=!this.isPartnerReporter()||r;var a=(0,p.cm)(t,{raw_email:n,raw_phone:r,hashed_email:n,hashed_phone:r,raw_auto_email:o,raw_auto_phone:i,raw_eb_email:!0,raw_eb_phone:!0});return Object.assign({},tI.N4,a)},n.setCookieBasedSession=function(t){t&&(this.session=t)},n.convertCookieBasedSession=function(t){return tR(this.reporterInfo,this.ttqOptions)&&t!==oQ.AUTO_CONFIG?tA(this.getCookieBasedSession(),this.context.getPageCookieBasedSession()):{}},n.assemblyData=function(e,n,r,o,i){void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=oQ.TRACK);var a,c,s=t.prototype.assemblyData.call(this,e,n,r,o,i);s.is_onsite=this.isOnsitePage.value;var u=(0,l.kW)(e)||this.ttqPartner;u&&(s.partner=u),s.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var h=(0,l.ij)();h&&(s.context.userAgent=h);var d=function(){try{var t=document.readyState;if("loading"==t)return oY.LOADING;if("interactive"==t)return oY.INTERACTIVE;if("complete"==t)return oY.COMPLETE;return oY.UNKNOWN}catch(t){return oY.UNKNOWN}}();return d&&(s.context.page.load_progress=d),a=s.properties,void 0===(c=s._inspection)&&(c={}),tY.forEach(function(t){a.hasOwnProperty(t)&&(c[t]=a[t],delete a[t])}),s._inspection=c,i!==oQ.PAGE&&(s._inspection.ppf=(0,l.c6)()),s._inspection.vids=this.context.getVids(),s.context.ad.sdk_env=(0,f.RA)(),s.context.ad.jsb_status=(0,f.Fn)(),i!==oQ.INTERACTION&&i!==oQ.PERFORMANCE&&i!==oQ.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(s.context.user={},s.context.ad=this.context.getOffsiteAdInfo(),s.context.ad=(0,p.mQ)(s.context.ad,tj)),s},n.page=function(t){void 0===t&&(t={});var e=H().url;e!==this.currentHref&&(this.currentHref=e,this.track(tU,t,{}))},n.track=function(e,n,r,o,i){var a=this;void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=oQ.TRACK),void 0===i&&(i=o$.defaultReport);var c=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var c={taskName:window.ttq._pf_tn||"track_after_reporter_init",functionName:window.ttq._pf_tn&&"track_after_reporter_init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_reporter_init")}}catch(t){}var s=a.getReporterId();if(tM.includes(e))return t.prototype.track.call(a,e,n,r,o,i);var u=Object.assign({},r);a.selfHostConfig[s]&&!r.eventID&&(u=Object.assign({},u,{eventID:(0,tl.gj)((0,tl.fV)(J.qf),s)}));try{window.ttq&&window.ttq._ppf&&(c.end=performance.now(),window.ttq._ppf.push(c),"track_after_reporter_init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return t.prototype.track.call(a,e,n,u,o,i)};return this.loaded?c():this.getInstance().then(c)},n.getEventType=function(t){return tK[t]||t},n.trackSync=function(e,n,r,o,i,a,c){if(void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=oQ.TRACK),void 0===a&&(a=o$.defaultReport),"track"===i&&(0,s.um)(u.O.PIXEL_SEND,{pixelCode:e,extJSON:{event:n}}),i!==oQ.TRACK)return void t.prototype.trackSync.call(this,e,n,r,o,i,a,c);r&&"string"==typeof r.currency&&(r.currency=r.currency.toUpperCase());var l,f=this.context.getTestID();if(f){var p=this.assemblyData(e,n,r,o);return p.tt_test_id=f,p.context.ad={},null==(l=this===null||void 0===this?void 0:this.reportService)||l.report(c||Z,p,o$.htmlHttpReport,o0.P0),p}if(r&&"object"==typeof r){var h,d=r,v=d.value,_=d.currency;void 0===v||!isNaN(v)&&v>=0||(0,s.um)(u.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:n,value:v,currency:_}}),void 0===_||(void 0===(h=this.currency_list)&&(h=null),(h||tq).includes(_))||(0,s.um)(u.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:n,value:v,currency:_}})}return t.prototype.trackSync.call(this,e,n,r,o,i,a,c)},n.trackPostTask=function(t){var e=t.reporterId,n=t.eventType,r=t.properties,o=t.eventConfig;tM.includes(n)||this.selfHostConfig[e]&&!this.hasReportEventHistory(n,o$.htmlHttpReport)&&(this.pushReport(n,this.getReportEventHistoryKey(o$.htmlHttpReport)),this.trackSync(e,n,r,o,oQ.SELFHOST,o$.htmlHttpReport))},n.getReportEventHistoryKey=function(t){return t===o$.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},n.assemblySelfHostData=function(t,e,n,r,o){void 0===n&&(n={}),void 0===r&&(r={});var i=this.assemblyData(t,e,n,r,o),a=this.ttp;return a&&(i.context.user.ttp=a),i},e}(tW);function t$(t,e){return(t$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t0=function(t,e){return function(n,r){e(n,r,t)}},t1=function(t){function e(e,n,r,o,i,a,c,s,u,l){return t.call(this,{id:e,type:n,isOnsitePage:r,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:s,rules:u,options:l})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t$(e,t);var n=e.prototype;return n.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var n=(t=this.id,h()[t]||{});return(0,l.cH)()||n&&n.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,n){var r=B();tD((0,p.hi)(e.id,(null==r?void 0:r.hostname)||"")).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,n(t)})}),this.pixelPromise)},n.setCookieBasedSession=function(e){var n=tZ(this.pixelCode,e,this.ttqOptions);t.prototype.setCookieBasedSession.call(this,n)},n.track=function(e,n,r,o,i){if(void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=oQ.TRACK),void 0===i&&(i=o$.defaultReport),r&&r.pixel_code&&this.getReporterId()!==r.pixel_code)return Promise.resolve(null);if(tR(this.reporterInfo,this.ttqOptions)){var a=tS(document.cookie);this.setCookieBasedSession(a[this.getReporterId()]),this.context.setPageCookieBasedSession(a[""])}return t.prototype.track.call(this,e,n,r,o,i)},e}(tz);function t2(t,e){return(t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t3=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t2(e,t);var n=e.prototype;return n.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},n.track=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),v(this.getReporterId(),"track",[t,e,n]),Promise.resolve(null)},e}(t1=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),t0(0,F(m.M.ID)),t0(1,F(m.M.Type)),t0(2,F(m.M.IsOnsitePage)),t0(3,F(y.CONTEXT)),t0(4,F(m.M.Info)),t0(5,F(y.TTQ_GLOBAL_OPTIONS)),t0(6,F(y.REPORT_SERVICE)),t0(7,F(m.M.Plugins)),t0(7,q()),t0(8,F(m.M.Rules)),t0(8,q()),t0(9,F(m.M.Options)),t0(9,q())],t1));function t6(){t6=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function t5(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function t8(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){t5(i,r,o,a,c,"next",t)}function c(t){t5(i,r,o,a,c,"throw",t)}a(void 0)})}}function t4(t,e){return(t4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var t9=function(t,e){return function(n,r){e(n,r,t)}},t7=function(t){function e(e,n,r,o,i,a,c,u,l,f,p,h,d,v,_,y,m,g,w,E,b){(O=t.call(this,e,i)||this).context=e,O.env=u,O.reporters=n,O.cookieService=a,O.reportService=i,O.consentService=c,O.adService=r,O.appService=o,O.historyObserver=E,O.autoAdvancedMatchingPlugin=f,O.callbackPlugin=p,O.identifyPlugin=h,O.monitorPlugin=l,O.shopifyPlugin=d,O.autoConfigPlugin=v,O.diagnosticsConsolePlugin=_,O.pangleCookieMatchingPlugin=y,O.eventBuilderPlugin=m,O.pagedataPlugin=w,O.enrichIpv6Plugin=g,O.runtimeMeasurementPlugin=b,O.historyObserver&&O.useObserver(O.historyObserver),O.autoAdvancedMatchingPlugin&&O.usePlugin(O.autoAdvancedMatchingPlugin),O.callbackPlugin&&O.usePlugin(O.callbackPlugin),O.identifyPlugin&&O.usePlugin(O.identifyPlugin),O.monitorPlugin&&O.usePlugin(O.monitorPlugin),O.shopifyPlugin&&O.usePlugin(O.shopifyPlugin),O.autoConfigPlugin&&O.usePlugin(O.autoConfigPlugin),O.diagnosticsConsolePlugin&&O.usePlugin(O.diagnosticsConsolePlugin),O.pangleCookieMatchingPlugin&&O.usePlugin(O.pangleCookieMatchingPlugin),O.eventBuilderPlugin&&O.usePlugin(O.eventBuilderPlugin),O.enrichIpv6Plugin&&O.usePlugin(O.enrichIpv6Plugin),O.runtimeMeasurementPlugin&&O.usePlugin(O.runtimeMeasurementPlugin),O.monitorPlugin&&(s.qe.info.forEach(function(t){var e;null==(e=O.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB)}),s.qe.error.forEach(function(t){var e;null==(e=O.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),s.qe.info=[],s.qe.error=[]),O.dispatch(oK.INIT_START),O.pagedataPlugin&&O.usePlugin(O.pagedataPlugin),O.onPageLoaded(),O.onPageLeave();var O,I=H(),T=I.url,R=I.referrer;return O.init(T,R),O.setPageInfo(T,R),O.dispatch(oK.INIT_END),O}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,t4(e,t);var n,r=e.prototype;return r.initAdInfo=function(t,e){this.dispatch(oK.BEFORE_AD_INFO_INIT_START);var n=W(J.dm);if(n)return void this.initAdCache(n);if((0,f.zP)()){var r=tc(t,e);r&&(r.creative_id&&r.log_extra||r.callback)&&(this.dispatch(oK.AD_INFO_INIT_START),Y(J.dm,r),this.setAdInfo(r),this.initOffsiteAdInfo(r));return}this.initBaseAdInfo(t,e)},r.initAdCache=function(t){this.dispatch(oK.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},r.initBaseAdInfo=function(t,e){var n=this;this.adService.webBridgeService.jsbridge&&this.dispatch(oK.AD_INFO_INIT_START),this.reportService.pushPreposition(t8(t6().mark(function r(){var o;return t6().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,n.adService.getAdInfo(t,e);case 3:o=r.sent,n.context.setAdInfo(o),n.initOffsiteAdInfo(o),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(0),(0,s.vU)(u.O.INIT_ERROR,r.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return r.stop()}},r,null,[[0,8]])}))())},r.initOffsiteAdInfo=function(t){var e=tu(t,function(t){(0,s.vU)(u.O.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var n=ts(t,this.env);this.context.setEnableAdTracking(n),this.dispatch(oK.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:n}})},r.initAppInfo=function(t,e){var n=this,r=W(J.Cd);if(r)return void this.context.setAppInfo(r);this.reportService.pushPreposition(t8(t6().mark(function r(){var o;return t6().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.initBaseAppInfo(t,e);case 2:return o=r.sent,r.abrupt("return",o);case 4:case"end":return r.stop()}},r)}))())},n=t8(t6().mark(function t(e,n){var r;return t6().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.appService.getAppInfo(e,n);case 2:return r=t.sent,this.context.setAppInfo(r),t.abrupt("return",r);case 5:case"end":return t.stop()}},t,this)})),r.initBaseAppInfo=function(t,e){return n.apply(this,arguments)},r.initTestId=function(t,e){if(!this.context.getTestID()){var n=tO(t,ty("tt_test_id"),e);this.context.setTestID(n)}},r.initUserInfo=function(){this.setCookieInfo()},r.initLocalServiceInfo=function(){var t,e,n=W(J.RC);if(n)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[J.RC]=n,t));var r=H(),o=r.url,i=r.referrer,a=V(J.bO[location.hostname]?J.bO[location.hostname]:J.RC,o,i);a&&(Y(J.RC,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[J.RC]=a,e)))},r.setPageIndex=function(t){t&&tg(t)},r.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new t3(t,oW.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},r.instances=function(){return this.beforeAPIExecution(),this.reporters},r.page=function(e){this.beforeAPIExecution();var n=H(),r=n.url,o=n.referrer;t.prototype.page.call(this,Object.assign({url:(null==e?void 0:e.page)||r,referrer:(null==e?void 0:e.referrer)||o},e))},r.track=function(e,n,r){void 0===n&&(n={}),void 0===r&&(r={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var o={taskName:window.ttq._pf_tn,functionName:"web_track_handler",start:performance.now()}}catch(t){}this.beforeAPIExecution();var i=r.pixel_code;if(void 0===i&&t.prototype.track.call(this,e,n,r),void 0!==i){var a=this.instance(i);a instanceof t3||a.track(e,n,r)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o))}catch(t){}},r.identify=function(e,n){this.beforeAPIExecution(),t.prototype.identify.call(this,e,n)},r.setAdInfo=function(t){this.context.setAdInfo(t)},r.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},r.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},r.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},r.holdConsent=function(){this.consentService.setConsentMode(tI._R.HOLD)},r.revokeConsent=function(){this.consentService.setConsentMode(tI._R.REVOKE)},r.grantConsent=function(){this.consentService.setConsentMode(tI._R.GRANT)},r.disablePangleCookie=function(){this.pangleCookieMatchingPlugin&&this.pangleCookieMatchingPlugin.disablePangleCookie()},r.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},r.resetCookieExpires=function(){this.cookieService.resetExpires()},r.setCookieInfo=function(){if(this.cookieService.canUseCookie()){var t=this.cookieService.getAnonymousId();t&&this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})}},r.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(oK.PAGE_DID_LOAD)},{once:!0})},r.onPageLeave=function(){var t=this,e=(0,p.IH)(function(){var e=Date.now();t.dispatch(oK.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("unload",function(){return e},{once:!0}),window.addEventListener("beforeunload",function(){return e},{once:!0})},r.beforeAPIExecution=function(){try{var t,e;t=this.context,H().url===t.getPageInfo().url||this.setPageInfo(H().url),e=this.context,ty(J.qC)===e.getUserInfo().anonymous_id||tJ(this.context)}catch(t){(0,s.vU)(u.O.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},r.loadPixel=function(t,e){if(t){if(this.reporters.find(function(e){return e.getReporterId()===t}))return void(0,s.ZK)(oX.DUPLICATE_PIXEL_CODE);(0,l.Ie)().load(t,e||{})}},e}(tx),et=t7=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),t9(0,F(y.CONTEXT)),t9(1,F(y.TTQ_REPORTERS)),t9(2,F(y.AD_SERVICE)),t9(3,F(y.APP_SERVICE)),t9(4,F(y.REPORT_SERVICE)),t9(5,F(y.COOKIE_SERVICE)),t9(6,F(y.CONSENT_SERVICE)),t9(7,F(y.ENV)),t9(8,F(y.MONITOR_PLUGIN)),t9(8,q()),t9(9,F(y.AUTO_ADVANCED_MATCHING_PLUGIN)),t9(9,q()),t9(10,F(y.CALLBACK_PLUGIN)),t9(10,q()),t9(11,F(y.IDENTIFY_PLUGIN)),t9(11,q()),t9(12,F(y.SHOPIFY_PLUGIN)),t9(12,q()),t9(13,F(y.AUTO_CONFIG_PLUGIN)),t9(13,q()),t9(14,F(y.DIAGNOSTICS_CONSOLE_PLUGIN)),t9(14,q()),t9(15,F(y.PANGLE_COOKIE_MATCHING_PLUGIN)),t9(15,q()),t9(16,F(y.EVENT_BUILDER_PLUGIN)),t9(16,q()),t9(17,F(y.ENRICH_IPV6_PLUGIN)),t9(17,q()),t9(18,F(y.PAGEDATA_PLUGIN)),t9(18,q()),t9(19,F(y.HISTORY_OBSERVER)),t9(19,q()),t9(20,F(y.RUNTIME_MEASUREMENT_PLUGIN)),t9(20,q())],t7),ee=n(118);function en(){return(en=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,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],er);var ei=function(t,e){return function(n,r){e(n,r,t)}},ea=function(t){function e(e,n,r,o,i){var a;return(a=t.call(this,e)||this).setSignalType(i||_.S.OFFSITE),a.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},a.legacy=r.legacy||[],a.variationId=r.variation_id||"",a.vids=r.vids||"",a.serverUniqueId=r.server_unqiue_id||"",a.ttqOptions=r,a.reportService=n,a.initPageSign(),(0,f.XA)(o)&&(0,f.gn)()&&(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,eo(e,t);var n=e.prototype;return n.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(J.Bp)||"")}catch(t){}return t},n.setSessionIdToCache=function(t){Y(J.Bp,t)},n.getVariationId=function(){return this.variationId},n.getVids=function(){return this.vids},n.isLegacyPixel=function(t){return(0,l.FH)(t,this.legacy)},n.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},n.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(J.AU)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},n.setUserInfo=function(t){var e=this;if(void 0===t&&(t={}),0!==Object.keys(t).length){var n={};Object.entries(t).forEach(function(t){var r,o=t[0],i=t[1];if(i){if(o===ee.Sk)return void e.setUserInfoWithoutIdentifyPlugin(((r={})[ee.Sk]=i,r));n[o]=String(i).trim()}});var r=(0,l.Ie)(),o=null==r?void 0:r.getPlugin("Identify");o&&this.reportService.pushPreposition(o.handleUserProperties(n,t).then(function(t){void 0===t&&(t={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"identify_after_encryption",functionName:window.ttq._pf_tn&&"identify_after_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_after_encryption")}}catch(t){}var i=t,a=i.userProperties,c=i.userDataFormat,s=i.userDataFormatV2;if(a){Object.assign(e.userInfo,a);var u=e.getUserFormatInfo()||{},l=e.getUserFormatInfoV2()||{},f=e.getSignalDiagnosticLabels()||{};if(e.setUserFormatInfo(Object.assign({},u,c)),e.setUserFormatInfoV2(Object.assign({},l,s)),e.setSignalDiagnosticLabels(Object.assign({},f,t.identifierLabel||{})),0===Object.keys(e.userInfo).length||1===Object.keys(n).length&&Object.keys(n).includes("external_id"))return;var p=o.reporters[0]||null,h=p?Object.keys(Object.assign({},p.getUserInfo(tI.Ts.Manual),p.getUserInfo(tI.Ts.Auto),p.getUserInfo(tI.Ts.EBManual))):[];p&&h.length&&p.track("EnrichAM",{},{},oQ.TRACK)}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"identify_after_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}).catch(function(t){(0,s.vU)(u.O.API_ERROR,t,{extJSON:{api:"identify"}})}))}},n.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=(0,p.LT)(this.serverUniqueId),this.setSessionIdToCache(t));var e=this.getPageId((0,p.eD)(t)),n=this.getVariationId(),r=this.getSessionIndex();r.main++,this.pageSign={sessionId:t,pageId:e,variationId:n,pageIndex:r}},n.setPageCookieBasedSession=function(e){var n=tZ("",e,this.ttqOptions);t.prototype.setPageCookieBasedSession.call(this,n)},e}(er);ea=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),ei(0,F(m.M.WebLibraryInfo)),ei(1,F(y.REPORT_SERVICE)),ei(2,F(y.TTQ_GLOBAL_OPTIONS)),ei(3,F(y.ENV)),ei(3,q()),ei(4,F(m.M.SignalType)),ei(4,q())],ea);var ec=String.fromCharCode.bind(String),es=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),eu=function(t){for(var e,n,r,o,i="",a=t.length%3,c=0;c255||(r=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw TypeError("invalid character found");i+=es[(e=n<<16|r<<8|o)>>18&63]+es[e>>12&63]+es[e>>6&63]+es[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},el=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?ec(192|e>>>6)+ec(128|63&e):ec(224|e>>>12&15)+ec(128|e>>>6&63)+ec(128|63&e)}var n=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return ec(240|n>>>18&7)+ec(128|n>>>12&63)+ec(128|n>>>6&63)+ec(128|63&n)},ef=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ep=function(t){return eu(JSON.stringify(t).replace(ef,el)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};function eh(){eh=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function ed(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}var ev=function(){function t(t,e,n){this.httpService=t,this.bridgeService=e,this.reportPreTasks=n}var e,n,r=t.prototype;return r.pushPreposition=function(t){this.reportPreTasks.push(t)},e=eh().mark(function t(e,n,r,o){return eh().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)}),n=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){ed(i,r,o,a,c,"next",t)}function c(t){ed(i,r,o,a,c,"throw",t)}a(void 0)})},r.report=function(t,e,r,o){return n.apply(this,arguments)},t}();ev=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],ev);var e_=function(t,e){var n=new URL(t);return Object.keys(e).forEach(function(t){var r=e[t].toJSON?e[t].toJSON():String(e[t]);n.searchParams.set(t,r)}),n.toString()},ey=function(t){var e=Array(t.length),n=0;return new Promise(function(r,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},++n===t.length&&r(e)}).catch(function(i){e[o]={status:"rejected",reason:i},++n===t.length&&r(e)}):(e[o]={status:"fulfilled",value:i},++n===t.length&&r(e))},a=0;a=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function ew(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function eE(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){ew(i,r,o,a,c,"next",t)}function c(t){ew(i,r,o,a,c,"throw",t)}a(void 0)})}}function eb(t,e){return(eb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eO=function(t,e){return function(n,r){e(n,r,t)}},eI=function(t){function e(e,n,r,o){var i;return(i=t.call(this,e,n,new em)||this).supportSendAnalyticsEvent=!0,i.consentService=r,i.consentService.on("queue",function(t){t.forEach(function(t){var e=t.url,n=t.data,r=t.type;i.report(e,n,r,o0.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eb(e,t);var n,r,o,i=e.prototype;return n=eE(eg().mark(function t(e,n,r){var o,i,a,c,l,h,d;return eg().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 h=!!(l=n).context&&(null==(i=null==(o=l.context)?void 0:o.ad)?void 0:i.ad_info_status)==="timeout",d={},t.prev=5,t.next=8,this.bridgeService.send(l,h);case 8:if(!(!(d=t.sent)||1!==d.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(d&&d.code)+", data: "+(d&&JSON.stringify(d)));case 11:return(0,p.WZ)(l.event)&&(0,s.um)(u.O.JSB_SEND,{pixelCode:null==(a=l.context.pixel)?void 0:a.code,app_name:(0,f.bp)()?"ultralite":"",extJSON:{event:l.event,event_id:l.event_id,need_inject_ad_info:h}}),t.abrupt("return",d);case 15:t.prev=15,t.t0=t.catch(5),(0,p.WZ)(l.event)&&(0,s.vU)(u.O.JSB_ERROR,t.t0,{pixelCode:null==(c=l.context.pixel)?void 0:c.code,custom_name:"sendReportData",custom_enum:d&&d.code?""+d.code:"non",app_name:(0,f.PO)()||"",extJSON:{position:"sendReportData"}}),(0,f.bp)()&&(0,f.Dt)()&&this.sendHttpReport(e,l,r);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),i.send=function(t,e,r){return n.apply(this,arguments)},r=eE(eg().mark(function t(e,n,r,o,i){var a;return eg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===o&&(o=!0),t.next=3,this.httpService.send(e,n,i);case 3:t.sent||this.httpService.sendByImage(e,{analytics_message:r}),o&&(0,s.um)(u.O.HTTP_SEND,{pixelCode:null==(a=n.context.pixel)?void 0:a.code,extJSON:{event:n.event,event_id:n.event_id}});case 6:case"end":return t.stop()}},t,this)})),i.sendHttpReport=function(t,e,n,o,i){return r.apply(this,arguments)},i.beforeReport=function(t,e,n){void 0===n&&(n=o$.defaultReport);var r=this.consentService.getConsentMode();return r!==tI._R.REVOKE&&(r!==tI._R.HOLD||(this.consentService.cacheReportTask(t,e,n),!1))},o=eE(eg().mark(function t(e,n,r,o){var i,a,c,l;return eg().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=o$.defaultReport),void 0===o&&(o=o0.P0),o===o0.P0){t.next=8;break}return t.next=5,(0,p._v)(0);case 5:return t.next=7,this.report(e,n,r,o0.P0);case 7:case 15:return t.abrupt("return",t.sent);case 8:if(this.beforeReport(e,n,r)){t.next=11;break}return t.abrupt("return");case 11:if(i=ep(n),!(r===o$.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,n,i);case 16:if(!(r===o$.httpReport&&this.bridgeService.jsbridge&&(0,f.XA)(this.env)&&!(0,f.NC)()&&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:n});case 22:if(l=Error("sendAnalyticsEvent not support: code "+(c=t.sent)+", path: "+a+", data: "+JSON.stringify(n)),null!=c&&-2!==c){t.next=27;break}throw this.supportSendAnalyticsEvent=!1,l;case 27:if(1!==c){t.next=29;break}return t.abrupt("return");case 29:throw l;case 32:t.prev=32,t.t0=t.catch(18),(0,s.vU)(u.O.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 35:this.sendHttpReport(e,n,i,!!((0,p.WZ)(n.event)&&(0,p.Pm)(n)),n.action?3:void 0);case 36:case"end":return t.stop()}},t,this,[[18,32]])})),i.report=function(t,e,n,r){return o.apply(this,arguments)},i.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(ev);function eT(){eT=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function eR(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}eI=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),eO(0,F(y.HTTP_SERVICE)),eO(1,F(y.BRIDGE_SERVICE)),eO(2,F(y.CONSENT_SERVICE)),eO(3,F(y.ENV)),eO(3,q())],eI);var eN=function(){function t(t){this.webBridgeService=t}var e,n,r=t.prototype;return e=eT().mark(function t(e,n){var r,o,i;return eT().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.getAdInfoFromURL(e,n),!this.webBridgeService.jsbridge){t.next=7;break}return t.next=4,this.webBridgeService.getAdInfo();case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0={};case 8:return o=t.t0,(i=Object.assign({},r,o))&&(i.creative_id&&i.log_extra||i.callback)&&Y(J.dm,i),t.abrupt("return",i);case 12:case"end":return t.stop()}},t,this)}),n=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){eR(i,r,o,a,c,"next",t)}function c(t){eR(i,r,o,a,c,"throw",t)}a(void 0)})},r.getAdInfo=function(t,e){return n.apply(this,arguments)},r.getAdInfoFromURL=function(t,e){return tc(t,e)},t}();function eS(){eS=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function eP(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}eN=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),(oP=F(y.BRIDGE_SERVICE),function(t,e){oP(t,e,0)})],eN);var eA=function(){function t(t){this.webBridgeService=t}var e,n,r=t.prototype;return e=eS().mark(function t(e,n){var r,o,i,a;return eS().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.getAppInfoFromURL(e,n)).platform=(0,f.Xf)(),!(0,f.Dt)()){t.next=10;break}return t.next=5,(0,f.sH)();case 5:i=(o=t.sent).model,a=o.platformVersion,r.device_model=i,r.android_version=a;case 10:return(0,tl.Qr)(r)||Y(J.Cd,r),t.abrupt("return",r);case 12:case"end":return t.stop()}},t,this)}),n=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){eP(i,r,o,a,c,"next",t)}function c(t){eP(i,r,o,a,c,"throw",t)}a(void 0)})},r.getAppInfo=function(t,e){return n.apply(this,arguments)},r.getAppInfoFromURL=function(t,e){try{var n=V(ta,t,e),r=n&&JSON.parse(n),o=r.device_id,i=r.uid;return{device_id:o,user_id:i}}catch(t){return{}}},t}();eA=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),(oA=F(y.BRIDGE_SERVICE),function(t,e){oA(t,e,0)})],eA);var eL="ad_analytics_msg";function ex(){ex=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function eC(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function ek(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){eC(i,r,o,a,c,"next",t)}function c(t){eC(i,r,o,a,c,"throw",t)}a(void 0)})}}var eD=function(t,e){return function(n,r){e(n,r,t)}},eM=function(){function t(t,e){this.env=t,(0,f.Z0)(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,n,r,o,i,a,c,l=t.prototype;return e=ek(ex().mark(function t(){var e=this;return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return(0,s.vU)(u.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=ek(ex().mark(function t(n){var r;return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.callAdInfo();case 3:(r=t.sent).ad_info_from="jsb",r.ad_info_status=r.ad_info_status||"fulfilled",n(r),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),n({}),(0,s.vU)(u.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)})),l.getAdInfo=function(){return e.apply(this,arguments)},n=ek(ex().mark(function t(){var e,n;return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},(0,f.zd)()?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 n={creative_id:e.data.cid,log_extra:e.data.log_extra},t.abrupt("return",n);case 10:if(t.prev=10,t.t0=t.catch(0),"JSBRIDGE TIMEOUT"!==t.t0){t.next=17;break}return(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return(0,s.vU)(u.O.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),l.callAdInfo=function(){return n.apply(this,arguments)},r=ek(ex().mark(function t(){return ex().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)})),l.getAppInfo=function(){return r.apply(this,arguments)},o=ek(ex().mark(function t(e,n){var r,o,i,a,c,l,h,d,v,_,y,m;return ex().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==(r=null==e?void 0:e.context)?void 0:r.ad)?void 0:o.creative_id)||"0",a=ep(e),c=(0,p.Xu)(e),l={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:eL,label:c},(0,f.NC)()&&(l.is_ad_event=1),v={eventName:eL,labelName:c,value:i,extValue:"0",extJson:l},"insight_log_monitor"===c&&(0,f.z1)()?(d="x.reportAppLog",_={eventName:"insight_log_monitor",params:l},h=this.call("x.reportAppLog",_,this.bridgeTimeout)):(0,f.zP)()||(0,p.iE)(e)?(d="sendLog",h=this.call("sendLog",v,this.bridgeTimeout)):(0,f.XA)(this.env)?(0,f.gn)()&&n?(y={eventName:c,params:l},d="sendLogWithAdInfo",h=this.call("sendLogWithAdInfo",y,this.bridgeTimeout)):(d="sendLog",h=this.call("sendLog",v,this.bridgeTimeout)):(m={event_name:c,version:2,properties:l},d="track_event",h=this.call("track_event",m,400)),setTimeout(function(){(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:d}})}),t.abrupt("return",h);case 11:case"end":return t.stop()}},t,this)})),l.send=function(t,e){return o.apply(this,arguments)},i=ek(ex().mark(function t(e,n,r,o){var i=this;return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n={}),void 0===r&&(r=400),void 0===o&&(o=!0),t.abrupt("return",new Promise(function(t,a){var c;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&(0,s.vU)(u.O.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}r>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&(0,s.vU)(u.O.JSB_ERROR,Error("JSBRIDGE TIMEOUT"),{extJSON:{position:"getCallPromise",method:e}})},r)),i.jsbridge&&i.jsbridge.call&&i.jsbridge.call(e,n,function(e){t(function(t,e){void 0===e&&(e=!0);var n={};try{if("string"==typeof t)n.data=JSON.parse(t);else if(t.code&&t.data&&t.ret?0:1)if(void 0!==t.code){var r=Object.assign({},t),o=r.code;n.code=o,delete r.code,r.data?n.data=r.data:n.data=r}else n.data=t;else(n=t).__data&&(n.data=n.__data)}catch(t){e&&(0,s.vU)(u.O.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return n}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),l.call=function(t,e,n,r){return i.apply(this,arguments)},a=ek(ex().mark(function t(e){var n,r,o,i,a;return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.method,r=e.path,o=e.params,i=e.data,t.next=3,this.call("sendAnalyticsEvent",{method:n,path:r,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)})),l.sendAnalyticsEvent=function(t){return a.apply(this,arguments)},c=ek(ex().mark(function t(e){return ex().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!((0,f.XA)(this.env)&&(0,f.gn)())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),l.updateWebFlData=function(t){return c.apply(this,arguments)},t}();function ej(){ej=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function eU(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}eM=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),eD(0,F(y.ENV)),eD(0,q()),eD(1,F(y.JS_BRIDGE)),eD(1,q())],eM);var eF=function(){function t(){}var e,n,r=t.prototype;return e=ej().mark(function t(e,n,r){var o;return ej().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=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(n)))&&"number"==typeof r&&r>0)){t.next=10;break}return r--,t.next=9,(0,p._v)(200);case 9:return t.abrupt("return",this.send(e,n,r));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]])}),n=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){eU(i,r,o,a,c,"next",t)}function c(t){eU(i,r,o,a,c,"throw",t)}a(void 0)})},r.send=function(t,e,r){return n.apply(this,arguments)},r.sendByImage=function(t,e){new Image().src=e_(t,e)},t}();function eq(){eq=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function eG(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}eF=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],eF);var eV=function(){function t(t){this.cookieExpireOption=th(t)}var e,n,r=t.prototype;return r.genCookieID=function(){return(0,p.d$)()},e=eq().mark(function t(){return eq().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return tm(J.ct,"1",this.cookieExpireOption),t.abrupt("return",tD((0,p.TX)()));case 2:case"end":return t.stop()}},t,this)}),n=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(t){eG(i,r,o,a,c,"next",t)}function c(t){eG(i,r,o,a,c,"throw",t)}a(void 0)})},r.enableCookie=function(){return n.apply(this,arguments)},r.enableFirstPartyCookie=function(t){if(t){tm(J.ct,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},r.disableCookie=function(){tm(J.ct,"0",this.cookieExpireOption),tm(J.qC,"",Object.assign(this.cookieExpireOption,{expires:-1})),tD((0,p.X1)())},r.setAnonymousId=function(t){var e=this.getAnonymousId()||t;if(e){var n=e.split(".")[0];tm(J.qC,n,this.cookieExpireOption)}},r.getAnonymousId=function(){return ty(J.qC)||""},r.canUseCookie=function(){try{return"0"!==ty(J.ct)}catch(t){}return!1},r.resetExpires=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"resetExpires",start:performance.now()}}catch(t){}var e=ty(J.ct);e&&tm(J.ct,e,this.cookieExpireOption);var n=this.getAnonymousId();n&&this.setAnonymousId(n);try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},t}();function eH(t,e){return(eH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}eV=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),(oL=F(y.TTQ_GLOBAL_OPTIONS),function(t,e){oL(t,e,0)})],eV),(ox=o3||(o3={}))[ox.P0=4]="P0",ox[ox.P1=3]="P1",ox[ox.P2=2]="P2",ox[ox.P3=1]="P3";var eB="tt_hold_events",eW=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=tI._R.UNKNOWN,e.queue=[],e.debounceUpdateCache=(0,p.Ds)(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=(0,p.IH)(function(){var t=W(eB);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eH(e,t);var n=e.prototype;return n.on=function(e,n){t.prototype.on.call(this,e,n),this.handleHistoryQueue()},n.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},n.changeQueueWithConsent=function(){switch(this.consentMode){case tI._R.REVOKE:this.cleanQueue();break;case tI._R.GRANT:this.releaseQueue(),this.cleanQueue();case tI._R.HOLD:case tI._R.UNKNOWN:}},n.getConsentMode=function(){return this.consentMode},n.cacheReportTask=function(t,e,n){void 0===n&&(n=o$.defaultReport),this.queue.push({url:t,data:e,type:n}),this.debounceUpdateCache()},n.cleanQueue=function(){this.queue=[],K(eB)},n.updateCache=function(){this.queue&&this.queue.length>0&&Y(eB,this.queue)},n.releaseQueue=function(){var t=this;this.queue.sort(function(e,n){return t.getEventPriority(n.data)-t.getEventPriority(e.data)}),this.emit("queue",this.queue)},n.getEventPriority=function(t){return t.event&&t.event.length>0?o3.P0:t.action&&t.action.length>0?o3.P1:""===t.event?o3.P2:o3.P3},e}(tG);eW=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],eW);var eK=function(){function t(t){var e=t.name,n=t.context,r=t.reporters;this.reporters=[],this.context=n,this.reporters=r,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.pixelSend=function(t,e,n,r,o){},e.pixelDidMount=function(t){},t}();function eY(t,e){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eJ=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eY(e,t),e}(eK=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U()],eK));function eX(t,e){return(eX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eZ=function(t,e){return function(n,r){e(n,r,t)}},eQ=function(t){function e(e,n){var r;return(r=t.call(this,{name:"Callback",reporters:n,context:e})||this).ttclidCookieValue="undefined"!=typeof document?ty(ti):"",r}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eX(e,t),e.prototype.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"callback_plugin_pixelDidMount",start:performance.now()}}catch(t){}var n=H(),r=V(ti,n.url,n.referrer);r&&this.ttclidCookieValue!==r&&tp(ti,r);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(eJ);eQ=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),eZ(0,F(y.CONTEXT)),eZ(1,F(y.TTQ_REPORTERS))],eQ);var ez={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},e$={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},e0={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},e1={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},e2=function(t){var e=t.parsePhoneNumberFromString,n=t.validatePhoneNumberLength;e$.parsePhoneNumberFromString=e,e$.validatePhoneNumberLength=n},e3=function(t){var e=t.isHash,n=t.genIdentifierLabelByUserProperties;ez.isHash=e,ez.genIdentifierLabelByUserProperties=n},e6=function(t){var e=t.tryDecodeHashedBase64String,n=t.tryDecodeHashedBase64Hex;e0.tryDecodeHashedBase64String=e,e0.tryDecodeHashedBase64Hex=n},e5=function(t){var e=t.checkEmailFormat,n=t.checkMDNEmailFormat;e1.checkEmailFormat=e,e1.checkMDNEmailFormat=n},e8=function(t){var e=t.parsePhoneNumberFromString,n=t.validatePhoneNumberLength,r=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,c=t.checkEmailFormat,s=t.checkMDNEmailFormat,u=t.sha256;e5({checkEmailFormat:c,checkMDNEmailFormat:s}),e6({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),e3({isHash:r,genIdentifierLabelByUserProperties:o}),e2({parsePhoneNumberFromString:e,validatePhoneNumberLength:n}),(0,p.ZV)(u)},e4=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=e$.parsePhoneNumberFromString);var r=t,o=e?n(t,e):n(t);return o?r="86"===o.countryCallingCode?o.nationalNumber:o.number:t.replace(/[^0-9]/g,"").length>0&&(r=t.replace(/[^0-9]/g,"")),r},e9=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function e7(t,e){return(e7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nt=function(t){function e(e){var n=e.name,r=e.context,o=e.reporters;return t.call(this,{name:n,reporters:o,context:r})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,e7(e,t);var n=e.prototype;return n.setIdentifyUtils=function(t){var e=t.isHash,n=t.sha256,r=t.genIdentifierLabelByUserProperties,o=t.tryDecodeHashedBase64String,i=t.tryDecodeHashedBase64Hex,a=t.validatePhoneNumberLength,c=t.parsePhoneNumberFromString,s=t.checkEmailFormat,u=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;e8({isHash:e,sha256:n,genIdentifierLabelByUserProperties:r,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:c,checkEmailFormat:s,checkMDNEmailFormat:u}),this.parsePhoneNumberFromString=c,this.checkMDNEmailFormat=u,this.checkEmailFormat=s,this.sha256=n,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},n.baseHandleUserProperties=function(t,e){var n=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"identify_encryption",functionName:window.ttq._pf_tn&&"identify_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_encryption")}}catch(t){}if(t){var o=this.identifyParamsFormattedInfo(t),i=this.identifyParamsFormattedInfoV2(t),a=ez.genIdentifierLabelByUserProperties(e);this.handlePIIDiagnostics(i),Object.entries(t).forEach(function(e){var r=e[0],o=e[1],a=void 0===o?"":o;if(a){var c=String(a);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(r)){var s=n.getUserDataFormatInfoV2KeyName(r),u=e0.tryDecodeHashedBase64Hex(c);if(null!==u)t[r]=u,null!==s&&(i=n.updateUserDataFormatV2Label(s,tI.Vp.BASE64_HEX_HASHED,i));else{var l=e0.tryDecodeHashedBase64String(c);l&&(t[r]=l,null!==s&&(i=n.updateUserDataFormatV2Label(s,tI.Vp.BASE64_STRING_HASHED,i)))}}switch("zip_code"===r&&c&&(ez.isHash(c)?i=n.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_HASHED,i):(i=n.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_NOT_HASHED,i),n.isZipFromUs(t)?(t.zip_code=n.sha256(n.truncateString(c,5)),i=n.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_US,i)):(t.zip_code=n.sha256(c),i=n.updateUserDataFormatV2Label("zip_code",tI.Vp.ZIP_CODE_IS_NOT_US,i)))),r){case"email":t.email=ez.isHash(c)&&!n.checkEmailFormat(c)?c:n.sha256(n.handleEmail(c));break;case"eb_email":t.eb_email=n.sha256(n.handleEmail(c));break;case"phone_number":t.phone_number=ez.isHash(c)?c:n.sha256(n.handlePhoneNumber(c));break;case"eb_phone_number":t.eb_phone_number=n.sha256(n.handlePhoneNumber(c));break;case"auto_email":t.auto_email=n.sha256(n.handleEmail(c));break;case"auto_phone_number":t.auto_phone_number=n.sha256(n.handlePhoneNumber(c));break;case"first_name":t.first_name=ez.isHash(c)?c:n.sha256(c);break;case"last_name":t.last_name=ez.isHash(c)?c:n.sha256(c);break;case"city":t.city=n.truncateString(c,80);break;case"state":t.state=n.truncateString(c,80);break;case"country":t.country=n.truncateString(c,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),o)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),o));try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"identify_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return{userProperties:t,userDataFormat:o,userDataFormatV2:i,identifierLabel:a}}},n.identifyParamsFormattedInfo=function(t){var e=this,n={},r=/^sha256_(.*)$/;return Object.entries(t).forEach(function(t){var o=t[0],i=t[1],a=String(void 0===i?"":i),c=o.match(r);switch(o){case"email":e.handleEmailFormat(a,o,n);break;case"phone_number":e.handlePhoneNumberFormat(a,"phone_number",n);break;case"auto_email":e.handleEmailFormat(a,"auto_email",n);break;case"auto_phone_number":e.handlePhoneNumberFormat(a,"auto_phone_number",n);break;case(c||{}).input:var s=null==c?void 0:c.pop();s&&ee.Ae.includes(s)&&(n[s]=[tI.hZ.HASHED]);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":e.handleNewPiisFormat(a,o,n);break;default:n[o]=[tI.hZ.CORRECT_FORMAT]}}),n},n.identifyParamsFormattedInfoV2=function(t){var e=this,n={};return Object.entries(t).forEach(function(t){var r=t[0],o=t[1],i=String(void 0===o?"":o);switch(r){case"email":e.handlePixelValidation(i,ee.X2.EMAIL_IS_HASHED,n);break;case"phone_number":e.handlePixelValidation(i,ee.X2.PHONE_IS_HASHED,n);break;case"sha256_email":e.handlePixelValidation(i,ee.X2.SHA256_EMAIL,n);break;case"sha256_phone_number":e.handlePixelValidation(i,ee.X2.SHA256_PHONE,n);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":break;default:n[r]=[tI.Vp.UNKNOWN_INVALID]}}),n},n.updateUserDataFormatV2Label=function(t,e,n){var r,o;return(null===n[t]||void 0===n[t]||(null==(r=n[t])?void 0:r.includes(tI.Vp.UNKNOWN_INVALID)))&&(n[t]=[]),null==(o=n[t])||o.push(e),n},n.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},n.handlePIIDiagnostics=function(t){},n.handleEmail=function(t){return t.toLowerCase()},n.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),e4(t,"",e)},n.handleCheckHashedEmailValue=function(t,e,n){return(void 0===n&&(n=this.checkEmailFormat),e.email=e.email||[],ez.isHash(t))?(null==e||e.email.push(tI.hZ.HASHED_CORRECT),t):n(t)?(null==e||e.email.push(tI.hZ.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(tI.hZ.HASHED_ERR),this.sha256(t))},n.handleCheckHashedPhoneValue=function(t,e,n){return(void 0===n&&(n=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],ez.isHash(t))?(null==e||e.phone_number.push(tI.hZ.HASHED_CORRECT),t):n(t)?(e.phone_number.push(tI.hZ.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),n))):(null==e||e.phone_number.push(tI.hZ.HASHED_ERR),this.sha256(t))},n.handlePixelValidation=function(t,e,n){n[e]=[],e9.includes(t)&&n[e].push(tI.Vp.FILTER_EVENTS),t&&ez.isHash(t)&&n[e].push(tI.Vp.HASHED),t&&this.checkEmailFormat(t)&&n[e].push(tI.Vp.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&n[e].push(tI.Vp.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&n[e].push(tI.Vp.PLAIN_PHONE),t&&0===n[e].length&&n[e].push(tI.Vp.UNKNOWN_INVALID)},n.isZipFromUs=function(t){var e;return(null==(e=t.country)?void 0:e.toLowerCase())==="us"},n.truncateString=function(t,e){var n=Array.from(t);return n.length<=e?t:n.slice(0,e).join("")},n.handlePhoneNumberFormat=function(t,e,n){var r=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);n[e]=r},n.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var n=[];return t?ez.isHash(t)?n.push(tI.hZ.HASHED):e(t)?n.push(tI.hZ.CORRECT_FORMAT):n.push(tI.hZ.WRONG_FORMAT):n.push(tI.hZ.EMPTY_VALUE),n},n.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var n=[];return t?ez.isHash(t)?n.push(tI.hZ.HASHED):e(t)?n.push(tI.hZ.CORRECT_FORMAT):n.push(tI.hZ.WRONG_FORMAT):n.push(tI.hZ.EMPTY_VALUE),n},n.handleEmailFormat=function(t,e,n){var r=this.handleCheckEmail(String(t),this.checkEmailFormat);n&&n[e]&&(n[e]||[]).includes(tI.hZ.HASHED)||(n[e]=r)},n.handleNewPiisFormat=function(t,e,n){t&&(n[e]=[tI.hZ.CORRECT_FORMAT])},e}(eJ);function ne(){ne=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function nn(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function nr(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){nn(i,r,o,a,c,"next",t)}function c(t){nn(i,r,o,a,c,"throw",t)}a(void 0)})}}function no(t,e){return(no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ni=function(t,e){return function(n,r){e(n,r,t)}},na=function(t){function e(e,n){var r;return(r=t.call(this,{name:"Identify",reporters:n,context:e})||this).init(),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,no(e,t);var n,r,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||((0,s.um)(u.O.IDENTIFY_INIT_START),this.pluginPromise=tD((0,p.vO)()).then(function(){t.detectTopics(),(0,s.um)(u.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},n=nr(ne().mark(function t(e,n){return ne().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,n));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e){return n.apply(this,arguments)},o.handlePIIDiagnostics=function(t){try{var e=t.email_is_hashed,n=void 0===e?[]:e,r=t.sha256_email,o=void 0===r?[]:r,i=t.phone_is_hashed,a=void 0===i?[]:i,c=t.sha256_phone,u=void 0===c?[]:c;if(n.includes(tI.Vp.UNKNOWN_INVALID)||o.includes(tI.Vp.UNKNOWN_INVALID))return void(0,s.ZK)(oX.INVALID_EMAIL_FORMAT);if(a.includes(tI.Vp.UNKNOWN_INVALID)||u.includes(tI.Vp.UNKNOWN_INVALID))return void(0,s.ZK)(oX.INVALID_PHONE_NUMBER_FORMAT);if(n.includes(tI.Vp.FILTER_EVENTS)||o.includes(tI.Vp.FILTER_EVENTS))return void(0,s.ZK)(oX.INVALID_EMAIL_INFORMATION);if(a.includes(tI.Vp.FILTER_EVENTS)||u.includes(tI.Vp.FILTER_EVENTS))return void(0,s.ZK)(oX.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},r=nr(ne().mark(function t(){var e,n;return ne().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:(n=t.sent)&&(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"topics",extJSON:{cookie_label:String(e),stack:n.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 r.apply(this,arguments)},e}(nt);na=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),ni(0,F(y.CONTEXT)),ni(1,F(y.TTQ_REPORTERS))],na),(oC=o6||(o6={})).ERROR_FORMAT="error_format",oC.OVER_LENGTH="over_length_3e4",oC.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var nc="form_detail_error";(ok=o5||(o5={})).GET_ELEMENTS_ERROR="get_elements_error",ok.INIT_ERROR="init_error",ok.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",ok.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",ok.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",ok.FORM_OBSERVER_ERROR="form_observer_error",ok.OVER_LENGTH="over_length_3e4",(oD=o8||(o8={})).METADATA="Metadata",oD.CLICK="Click",(oM=o4||(o4={})).AUTO_COLLECTION="AUTO_COLLECTION",oM.AUTO_FORM="AUTO_FORM",oM.AUTO_CLICK="AUTO_CLICK",oM.AUTO_VC="AUTO_VC",oM.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(oj=o9||(o9={})).AUTO_FORM="form_rules",oj.AUTO_VC="vc_rules",oj.AUTO_VC_REVERSE="vc_rules_reverse",(oU=o7||(o7={})).PAGE_LEAVE="PageLeave",oU.PAGE_VIEW="PageView",oU.DOM_CHANGE="DomChange",oU.URL_CHANGE="UrlChange",oU.CLICK="Click",oU.SCROLL="Scroll";var ns=["AnatomicalStructure","AnatomicalSystem","ApprovedIndication","ArriveAction","Artery","BioChemEntity","BloodTest","Bone","BorrowAction","BrainStructure","BrokerageAccount","CDCPMDRecord","ChemicalSubstance","CovidTestingFacility","DDxElement","DepartAction","DepositAccount","DiagnosticLab","DiagnosticProcedure","Diet","DietarySupplement","DoseSchedule","ElementarySchool","HighSchool","ExercisePlan","Gene","GovernmentBenefitsType","GovernmentService","HealthAspectEnumeration","HealthInsurancePlan","HealthPlanCostSharingSpecification","HealthTopicContent","Hospital","ImagingTest","InfectiousAgentClass","InvestmentFund","InvestmentOrDeposit","Invoice","Joint","LendAction","LifestyleModification","Ligament","LoanOrCredit","LymphaticVessel","MaximumDoseSchedule","MedicalAudience","MedicalAudienceType","MedicalCause","MedicalCode","MedicalCondition","MedicalConditionStage","MedicalContraindication","MedicalDevice","MedicalEntity","MedicalEvidenceLevel","MedicalGuidelineContraindication","MedicalIndication","MedicalIntangible","MedicalObservationalStudy","MedicalOrganization","MedicalProcedure","MedicalProcedureType","MedicalRiskCalculator","MedicalRiskFactor","MedicalRiskScore","MedicalSign","MedicalSignOrSymptom","MedicalStudy","MedicalSymptom","MedicalTest","MedicalTestPanel","MedicalTherapy","MedicalTrial","MiddleSchool","MoneyTransfer","Muscle","Nerve","OccupationalTherapy","Order","PalliativeProcedure","ParentAudience","PathologyTest","Patient","PeopleAudience","Person","Pharmacy","PhysicalActivity","PhysicalTherapy","Physician","PoliticalParty","Preschool","PreventionIndication","Protein","PsychologicalTreatment","RadiationTherapy","RecommendedDoseSchedule","ReportedDoseSchedule","School","Substance","SuperficialAnatomy","SurgicalProcedure","Text","TherapeuticProcedure","TreatmentIndication","URL","Vein","Vessel","VitalSign","WorkersUnion"];function nu(t){return/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi.test(t)||/(\+?0?86-?)?1[3-9]\d{9}/g.test(t)||/(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g.test(t)||/^[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g.test(t)||ns.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1})}var nl=function t(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(e===document.documentElement)return"/HTML";for(var n=1,r=e.previousSibling;r;)r.nodeType===Node.ELEMENT_NODE&&r.tagName===e.tagName&&n++,r=r.previousSibling;var o=e.tagName.toLowerCase();return t(e.parentNode)+"/"+o+"["+n+"]"};function nf(t,e){return function(){for(var n=arguments.length,r=Array(n),o=0;o0&&e.some(function(e){return t.toLowerCase()===e.toLowerCase()})}(r,e)&&(n[r]=nb(t[r],e));return n}function nO(t){return Array.isArray(t)?t.some(function(t){return nO(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),ns.some(function(e){return t===e.toLowerCase()}))}var nI=["form","[id*=form], [class*=form]"],nT=["label"],nR=["input,select,textarea"],nN=["radio","checkbox"],nS=["hidden","reset","submit","password"];function nP(t,e){try{for(var n=0;n0)return Array.from(r)}return[]}catch(t){return(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.GET_ELEMENTS_ERROR}),[]}}function nA(t){var e="";return!function t(n){for(;n;)n.nodeType===Node.TEXT_NODE?e+=n.textContent:"SELECT"!==n.nodeName&&n.firstChild&&t(n.firstChild),n=n.nextSibling}(t.firstChild),e.replace(/[\t\n]/g,"").trim()}function nL(t){if(!t)return!1;var e=window.getComputedStyle(t);return!("none"===e.display||"visible"!==e.visibility||function t(e){return!(!e||e.isSameNode(document.body)||e.isSameNode(document))&&("0"==window.getComputedStyle(e).opacity||t(e.parentElement))}(t))&&(0!==t.offsetWidth||0!==t.offsetHeight)}function nx(t){var e=t.getAttribute("type");return!!e&&nS.indexOf(e)>-1}function nC(t){return t&&nu(t)?"__Text__":t}(oF=it||(it={}))[oF.CONTAIN=0]="CONTAIN",oF[oF.ID=1]="ID",oF[oF.SELECTOR=2]="SELECTOR";var nk=function(){function t(t){this.formUpdateHandlers=[],this.answerMap={},this.rules=this.getRules(t),this.init()}var e=t.prototype;return e.getRules=function(t){var e=t.plugins&&t.plugins.AutoConfig;return e&&e[o9.AUTO_FORM]},e.init=function(){var t=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"initAutoForm_init",start:performance.now()}}catch(t){}try{this.forms=this.detectFormElement(),this.forms&&this.forms.forEach(function(e){e.formDetail=t.assembleFormDetail(e),t.startFormObserver(e,t.formUpdateHandlers)})}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.INIT_ERROR})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e.getOverallFormDetail=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm_getOverallFormDetail",start:performance.now()}}catch(t){}var e="[]";try{this.forms&&this.forms.length>0&&(this.forms.some(function(t){var e=t.el;return!document.body.contains(e)})&&this.init(),e=JSON.stringify(this.forms.map(function(t){return t.formDetail}).filter(function(t){return t})))}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.GET_OVERALL_FORM_DETAIL_ERROR})}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e},e.addFormUpdateHandler=function(t){this.formUpdateHandlers.push(t)},e.startFormObserver=function(t,e){var n=this;try{var r=(0,p.Ds)(function(){var r=n.assembleFormDetail(t);(!t.formDetail||r&&(0,p.eh)(r,t.formDetail))&&(t.formDetail=r,e.forEach(function(e){return e.call(n,t.formDetail)}))},2e3,this);if(t.el.parentNode){var o=t.el.parentNode;this.observer&&this.observer.disconnect(),this.observer=new MutationObserver(r),this.observer.observe(o,{attributes:!0,childList:!0,subtree:!0}),o.addEventListener("click",r,{capture:!0})}}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,n=[0,0,0],r=(t=this.rules,(e=nP(t||nI,document)).filter(function(t){return!e.some(function(e){return e.contains(t)&&e!==t})}));if(!r)return[];var o=r.map(function(t){return{el:t,questions:[]}});return o.forEach(function(t){var e,r,o=(e=t.el,nP(nT,e)),i=new Set([]);o.forEach(function(e){var r=function(t,e){var n=nP(nR,t);if(n&&n.length)return{els:n,from:it.CONTAIN};var r=t.getAttribute("for");if(r&&(n=nP(["input[id='"+r+"'],select[id='"+r+"'],textarea[id='"+r+"']"],e)))return{els:n,from:it.ID};return!1}(e,t.el);if(r){var o=r.els,a=r.from,c=o.filter(function(t){return!nx(t)}).map(function(t){return i.add(t),{el:t,from:a}});c&&c.length&&(n[a]=1,t.questions.push({el:e,answers:c}))}}),(r=t.el,nP(nR,r)).filter(function(t){return!nx(t)}).forEach(function(e){if(!i.has(e)){n[it.SELECTOR]=1;var r,o=(r=t.el,function t(e){return null==e||e.isSameNode(r)?r:nA(e).length>0?e:t(e.parentNode)}(e.parentNode));t.questions.push({el:o,answers:[{el:e,from:it.SELECTOR}]})}})}),(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:n.join("")}),o}catch(t){return(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,n=t.answers,r=nl(e),o=n.reduce(function(t,e){var n=e.el,r=n.getAttribute("type");return r&&nN.indexOf(r.toLowerCase())>-1?t+","+n.checked:t+","+n.value},"");this.answerMap[r]||(this.answerMap[r]={defaultValue:o,value:o});var i=this.answerMap[r],a=i.defaultValue,c=i.filledTime;return(this.answerMap[r].value=o,a===o)?void delete this.answerMap[r].filledTime:c||(this.answerMap[r].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,n=t.el,r=t.questions;try{var o={xpath:nl(n),id:n.id,name:nC(n.getAttribute("name")),tag:n.tagName.toLowerCase(),class_name:n.className,questions:[],width:n.offsetWidth,height:n.offsetHeight,is_visible:nL(n)};return o.questions=r.map(function(t){var n=t.el,r=t.answers,o={xpath:nl(n),id:n.id,name:nC(nA(n)),tag:n.tagName.toLowerCase(),class_name:n.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:n.offsetWidth,height:n.offsetHeight,is_visible:nL(n)};return r.forEach(function(t){var e=t.el,n=t.from;e&&"SELECT"===e.tagName.toUpperCase()?o.answers=o.answers.concat(Array.from(e.querySelectorAll("option")).map(function(t){return{xpath:nl(t),id:t.id,name:nC(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:n,width:t.offsetWidth,height:t.offsetHeight,is_visible:nL(e)}})):o.answers.push({xpath:nl(e),id:e.id,name:nC(e.getAttribute("name")),tag:e.tagName.toLowerCase(),class_name:e.className,input_type:e.getAttribute("type"),placeholder:nC(e.getAttribute("placeholder")),from:n,width:e.offsetWidth,height:e.offsetHeight,is_visible:nL(e)})}),o}),o}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:nc,custom_enum:o5.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),nD=["United States","US","Canada","CA","Australia","AU","Mexico","MX","Argentina","AR","Chile","CL","Colombia","CO","Fiji","FJ","Liberia","LR","Namibia","NA","New Zealand","NZ","Singapore","SG","Solomon Islands","SB","Suriname","SR","South Africa","ZA","Barbados","BB","Belize","BZ","Cuba","CU","Dominican Republic","DO","Guyana","GY","Jamaica","JM","Cayman Islands","KY","Trinidad and Tobago","TT","Tuvalu","TV","Zimbabwe","ZW","United Kingdom","GB","Egypt","EG","Falkland Islands","FK","Gibraltar","GI","Guernsey","GG","Isle of Man","IM","Jersey","JE","Lebanon","LB","Saint Helena","SH","Syria","SY","Sudan","SD","Japan","JP","China","CN","Japan","JP","CN","South Korea","KR","Philippines","PH","Cuba","CU","Sweden","SE","Norway","NO","Denmark","DK","Iceland","IS","Costa Rica","CR","El Salvador","SV","Bolivia","BO","Venezuela","VE","Bahamas","BS","Brunei","BN","Ethiopia","ET","Eritrea","ER","Iran","IR","Oman","OM","Qatar","QA","Saudi Arabia","SA","Yemen","YE","Bulgaria","BG","Kyrgyzstan","KG","Central African CFA franc zone","XAF","West African CFA franc zone","XOF"].map(function(t){return t.toUpperCase()}),nM=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTC","BTN","BWP","BYN","BYR","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","ETH","EUR","FJD","FKP","GBP","GEL","GGP","GHC","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTC","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RMB","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRL","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYI","UYU","UYW","UZS","VEF","VES","VND","VUV","WST","XAF","XBT","XCD","XOF","XPF","XSU","XUA","YER","ZAR","ZMW","ZWD","ZWL"];function nj(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return nU(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nU(t,e)}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nU(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n:null}catch(t){return(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},nJ=function(t,e){var n=null;for(var r in e)if(t.includes(r))return e[r];return null},nX=function(t,e){var n=function(t,e){try{for(var n,r=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),o=null;n=r.iterateNext();)/\d/.test(n.innerText)&&(o=n);if(!o&&e)for(var i=document.getElementsByClassName(e),a=0;a=a.length-3&&(o=!0),o&&(n=n.slice(0,r-(a.length-1))+"."+n.slice(r-(a.length-1))),n}return null}(r):null,textContent:r}},nZ=function(t){if(!t)return{currencyCode:null,currencyCodeFromeXpath:null};var e,n=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,r=((null==n?void 0:n.trim())?nM.includes(n.toUpperCase().trim()):null)?null==n?void 0:n.toUpperCase().trim():null;return{currencyCode:n,currencyCodeFromeXpath:r}},nQ=function(t){if(!t)return{countryCode:null,countryCodeFromXpath:null};var e,n=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,r=((null==n?void 0:n.trim())?nD.includes(n.toUpperCase().trim()):null)?null==n?void 0:n.toUpperCase().trim():null;return{countryCode:n,countryCodeFromXpath:r}},nz=function(t){try{var e=new URL(t).hostname.split(".");for(var n in e)if(nD.includes(e[n].toUpperCase()))return e[n].toUpperCase()}catch(t){}return null},n$=function(t,e,n){try{if(t)for(var r,o=nj(t);!(r=o()).done;){var i=r.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,c=nX(i.valueXpath,i.currency.val),l=c.textContent,f=c.priceNumberString;if(f&&l){var p=nZ(i.currency.xpath),h=p.currencyCode,d=p.currencyCodeFromeXpath;h&&(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:h,vcConfig:n}});var v=nQ(i.countryCodeXpath),_=v.countryCode,y=v.countryCodeFromXpath;_&&(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"auto_value_currency_country_form_xpath",extJSON:{url:e,country:_,vcConfig:n}});var m={value:f,currency:d||a,ori_value:l,rule_key:i.rule_key,country_code:y};return y||(m.country_code=nz(e)),(0,s.um)(u.O.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:m,vcConfig:n}}),n0(n3,m),m}}}return null}catch(t){return(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},n0=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},n1=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},n2=function(t){try{sessionStorage.removeItem(t)}catch(t){}},n3="value_currency_rule",n6="parameter_inference_rule",n5=[o7.CLICK,o7.SCROLL],n8=function(){function t(t){var e=this;this.handlerArray=t,n5.forEach(function(t){window.addEventListener(t.toLowerCase(),(0,p.Ds)(function(){e.interactionHandler(t)},2e3,e),{capture:!0,passive:!0})})}var e=t.prototype;return e.iterateHandlerArray=function(t){this.handlerArray.forEach(function(e){return e(t)})},e.interactionHandler=function(t){var e=this;this.timeoutId&&clearTimeout(this.timeoutId),this.iterateHandlerArray(t),this.timeoutId=setTimeout(function(){e.iterateHandlerArray(t)},2e3)},t}(),n4=function(){function t(){this.history={}}var e=t.prototype;return e.hasReport=function(t,e,n){var r=this.genHistoryKey(t,e);return this.history[r]&&this.history[r].indexOf(n)>-1},e.addHistory=function(t,e,n){var r=this.genHistoryKey(t,e);this.history[r]||(this.history[r]=[]),this.history[r].push(n)},e.clearHistory=function(){this.history={}},e.genHistoryKey=function(t,e){return t+":"+e},t}(),n9=function(){function t(t,e,n,r){this.context=t,this.reportHistory=new n4,this.reporters=e,this.reportService=n,this.ttqOptions=r}var e=t.prototype;return e.report=function(t,e,n){var r=this,o=tV(oQ.AUTO_CONFIG),i=this.getReportPixelList(e,n),a=this.assemblyReportData(t,n,i);a&&o&&this.reportService.reportPreTasks.then(function(){r.reportService.report(o,a,o$.defaultReport,o0.P0)})},e.clearHistory=function(){this.reportHistory.clearHistory()},e.getReportPixelList=function(t,e){var n=this,r=JSON.stringify(Object.assign({},e,{page_trigger:void 0}));return this.reporters.filter(function(e){return!!np(e)&&nh(e,t)}).filter(function(e){var o=e.getReporterId();return!([o4.AUTO_COLLECTION,o4.AUTO_FORM].indexOf(t)>-1&&n.reportHistory.hasReport(t,o,r))&&(n.reportHistory.addHistory(t,o,r),e)})},e.getCookieBasedSessions=function(t){var e=[],n=tS(document.cookie),r=t.filter(function(t){var e;return!!(null==(e=null==t?void 0:t.reporterInfo)?void 0:e.firstPartyCookieEnabled)});if(0===r.length)return e;var o=this.context.getPageCookieBasedSession();return r.forEach(function(t){var r=t.getReporterId();t.setCookieBasedSession(n[r]),e.push(tA(t.getCookieBasedSession(),o,r))}),e},e.assemblyReportData=function(t,e,n){if(0!==n.length){var r,o,i,a=n.map(function(t){return t.getReporterId()}),c=this.context.getPageSign(),s=(null==(o=null==(r=this.ttqOptions)?void 0:r.cookieBasedSessionConfig)?void 0:o.enable)?this.getCookieBasedSessions(n):[],u=n[0],l=u.assemblyData(u.getReporterId(),"",{},{},oQ.AUTO_CONFIG);return delete l.event,l.action=t,l.auto_collected_properties=e,l.context.pixel||(l.context.pixel={}),l.context.pixel.code=a[0],l.context.pixel.codes=a.join("|"),l.context.index=null==(i=c.pageIndex)?void 0:i.index,l.context.session_id=c.sessionId,l.context.pageview_id=(0,tl.gj)(this.context.getPageViewId(),u.reporterInfo.loadId,J.n2),l.context.sessions=s,l.message_id=l.message_id.replace(/-[^-]*$/,""),l}},t}(),n7=new Set([",","?",";","!","、",",","。","?",";","!",":",":"]),rt=[{triggerField:"class",fragmentType:"attribute",key:"class"},{triggerField:"id",fragmentType:"attribute",key:"id"},{triggerField:"name",fragmentType:"attribute",key:"name"},{triggerField:"type",fragmentType:"attribute",key:"type"},{triggerField:"value",fragmentType:"attribute",key:"value"},{triggerField:"destination",fragmentType:"attribute",key:"destination"},{triggerField:"inner_text",fragmentType:"text",key:"inner_text"},{triggerField:"image_url",fragmentType:"text",key:"image_url"}];(oq=ir||(ir={})).ID_SSN="ID_SSN",oq.PASSPORT="PASSPORT",oq.DRIVING_LICENSE="DRIVING_LICENSE",oq.PHONE="PHONE",oq.EMAIL="EMAIL",oq.CREDIT_CARD="CREDIT_CARD",oq.RACE_ETHNIC="RACE_ETHNIC",oq.RELIGION="RELIGION",oq.SEXUAL_ORIENTATION="SEXUAL_ORIENTATION",oq.POLITICAL_AFFILIATION="POLITICAL_AFFILIATION",oq.UNION_MEMBERSHIP="UNION_MEMBERSHIP",oq.CRIMINAL_RECORD="CRIMINAL_RECORD",oq.DEFAULT="***";var re=((ie={})[ir.RACE_ETHNIC]=["asian","black","white","caucasian","hispanic","latino","arab","middle eastern","african american","native american","indigenous","pacific islander","jewish","afro","mulatto","mestizo","racial","ethnicity","ethnic group"],ie[ir.RELIGION]=["christian","catholic","protestant","baptist","orthodox","muslim","islam","islamic","sunni","shia","jewish","judaism","synagogue","hebrew","hindu","hinduism","vedic","bhagavad","buddhist","buddhism","taoism","shinto","atheist","agnostic","secular","religious belief"],ie[ir.SEXUAL_ORIENTATION]=["heterosexual","homosexual","bisexual","pansexual","gay","lesbian","lgbt","lgbtq","queer","asexual","sexual orientation","gender identity","trans","transgender","nonbinary","non-binary"],ie[ir.POLITICAL_AFFILIATION]=["democrat","democratic","republican","libertarian","conservative","liberal","progressive","nationalist","communist","socialism","socialist","marxist","left-wing","right-wing","maga","antifa","alt-right","green party","political party","political ideology"],ie[ir.UNION_MEMBERSHIP]=["labor union","trade union","union member","collective bargaining","strike","unionized","organized labor","workers' union","teamsters","AFL-CIO","IBEW","union dues","union card"],ie[ir.CRIMINAL_RECORD]=["arrest","arrested","convicted","conviction","felony","felon","misdemeanor","parole","probation","criminal record","jail","prison","inmate","suspect","indictment","charged with","mugshot"],ie),rn=Object.values(ir).reduce(function(t,e){return t[e]="<#"+e+"#>",t},{}),rr={prefix:"(?|[^>]*<))"},ro=rd([/(?:\+?\d{1,3}[\s-]?|\(\+?\d{1,3}\)[\s-]?)?(?:\d{2,4}[\s-]?|\(\d{2,4}\)[\s-]?)?(?:\d[\s-]?){5,}/g],rr),ri=rd([/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi],rr),ra=rd([/(?:(?:4[0-9]{3}|5[1-5][0-9]{2}|6011|65[0-9]{2}|3[47][0-9]{2}|3(?:0[0-5]|[68][0-9])|2131|1800|35\d{2})[-\s]?(?:[0-9]{4}[-\s]?){2}[0-9]{3,4}|62[0-9]{3}[-\s]?(?:[0-9]{4}[-\s]?){2,3}[0-9]{3,4})$(?![\d])/g],rr),rc=rd([/\d{3}-\d{2}-\d{4}|\d{9}/g,/\d{17}(\d|X|x)$/g,/[A-CEGHJ-PR-TW-Z]{2}\d{6}[A-D]?/g,/(?:[A-Z]\d{10}|\d{10})/g,/[A-Z0-9]{12}/g],rr),rs=rd([/[EDS]\d{8}/g,/[A-HJ-NP-Z][A-HJ-NP-Z0-9]{8}/g,/[A-Z]{2}\d{6}/g],rr),ru=rd([/\d{17}[\dXx]/g,/[A-Z0-9]{16}/g,/[A-Z0-9]{10,12}/g,/[A-Z0-9]{12}/g],rr),rl=function(t,e){if("string"!=typeof t)throw TypeError("text must be a non-empty string");if("number"!=typeof e||e<=0)throw TypeError("targetLength must be a positive integer");for(var n=[],r=0,o=t.length;r0&&rf(t[n]);)n--;for(;r"===s&&(n=this.parseTag(a,e,n),i="text",a="")),r++}return n=this.processTextBuffer(c,e,n),a&&(n=this.parseTag(a,e,n)),e},e.processTextBuffer=function(t,e,n){var r=t.trim();if(!r)return n;if(r.length<=30){var o={type:"text",value:r,position:n++};return e.push(o),n}return rl(r,30).forEach(function(t){var r={type:"text",value:t,position:n++};e.push(r)}),n},e.parseTag=function(t,e,n){var r=n;if(!t)return r;if(t.startsWith("=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=30)for(var f,p=rl(l,30),h=r_(p);!(f=h()).done;){var d=f.value;r.push({type:s,key:u,value:d,position:o++})}else r.push({type:s,key:u,value:l,position:o++})}return r},t}();function rg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(e=r()).done;){var o=e.value;switch(o.type){case"tagStart":n+="<"+o.name;break;case"attribute":n+=" "+o.key+'="'+o.redactedValue+'"';break;case"tagStartClose":n+=">";break;case"text":n+=o.redactedValue;break;case"tagEnd":n+=""}}return n},t}();function rE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=i()).done;){var a=r.value;if(a.redactedValue)switch(a.type){case"attribute":o.has(a.key)?n.attributes[a.key]+=a.redactedValue:(o.set(a.key,!0),n.attributes[a.key]=a.redactedValue);break;case"text":o.has(a.key)?n[a.key]+=a.redactedValue:(o.set(a.key,!0),n[a.key]=a.redactedValue)}}return n},t}();function rO(){rO=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var rI=function(){function t(t,e,n,r){this.replaceTag=n||ir.DEFAULT,this.regexArray=[].concat(t),this.type=r||"DEFAULT_TYPE",this.keyWords=e}return t.prototype.redact=function(t,e,n){var r,o,i,a;return r=this,o=void 0,i=void 0,a=rO().mark(function r(){var o,i,a,c,s=this;return rO().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(t&&t.startsWith("=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var rR=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(a,c)}s((r=r.apply(t,e||[])).next())})},rN=function(){function t(){this.middlewareRedactors=[],this.sensitive_data_found=!1,this.htmlDecomposer=new rv,this.elementDecomposer=new rm,this.htmlRecomposer=new rw,this.elementRecomposer=new rb}var e=t.prototype;return e.registerRedactor=function(t){if("function"!=typeof(null==t?void 0:t.redact))throw Error("Middleware must implement `redact(value: string, next: NextFunction): Promise` method");this.middlewareRedactors.push(t)},e.process=function(t){return rR(this,void 0,void 0,rT().mark(function e(){var n,r,o,i,a,c=this;return rT().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sensitive_data_found=!1,"string"==typeof t||"object"==typeof t){e.next=3;break}throw Error("输入格式错误:必须为字符串或对象");case 3:if("object"!=typeof t||null!==t){e.next=5;break}throw Error("输入格式错误:对象不能为null");case 5:return"string"==typeof t?(n=this.htmlDecomposer,r=this.htmlRecomposer):(n=this.elementDecomposer,r=this.elementRecomposer),e.prev=6,o=n.decompose(t),e.next=10,Promise.all(o.map(function(t){return rR(c,void 0,void 0,rT().mark(function e(){var n,r,o;return rT().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==(n=t.type)?void 0:n.includes("tag"))){e.next=2;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:""}));case 2:return r=t.value||"",e.next=5,this.dispatch(0,r);case 5:return(o=e.sent)!==r&&(this.sensitive_data_found=!0),e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:o}));case 8:case"end":return e.stop()}},e,this)}))}));case 10:return i=e.sent,a=r.recompose(i,t),e.abrupt("return",a);case 15:throw e.prev=15,e.t0=e.catch(6),e.t0;case 18:case"end":return e.stop()}},e,this,[[6,15]])}))},e.createRedactor=function(t,e,n,r){void 0===t&&(t=[]),void 0===e&&(e=[]);var o=new rI(t,e,n);return r&&(o.redact=r),o},e.dispatch=function(t,e){return rR(this,void 0,void 0,rT().mark(function n(){var r,o,i,a=this;return rT().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=this.middlewareRedactors[t]){n.next=3;break}return n.abrupt("return",e);case 3:return o=function(n){return void 0===n&&(n=e),rR(a,void 0,void 0,rT().mark(function e(){return rT().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dispatch(t+1,n));case 1:case"end":return e.stop()}},e,this)}))},n.prev=4,n.next=7,r.redact(e,o);case 7:return i=n.sent,n.abrupt("return",i);case 11:return n.prev=11,n.t0=n.catch(4),n.abrupt("return",o(e));case 14:case"end":return n.stop()}},n,this,[[4,11]])}))},e.isHasSensitiveData=function(){return this.sensitive_data_found},t}();function rS(){rS=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function rP(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function rA(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rL(t,e){return(rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(oG=io||(io={})).V1="v1",oG.V2="v2";var rx=function(t,e){return function(n,r){e(n,r,t)}},rC="AutoConfig",rk=function(t){function e(e,n,r,o){var i,a,c;return(i=t.call(this,{name:rC,reporters:n,context:e})||this).autoCollectedMetadata={},i.initialize=!1,i.autoFormUpdateHandler=(0,p.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_form_handler",functionName:window.ttq._pf_tn&&"auto_config_form_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_form_handler")}}catch(t){}if(i.autoForm){if(i.autoCollectedFormDetail=i.autoForm.getOverallFormDetail(),i.autoCollectedFormDetail.length>3e4)return void(0,s.vU)(u.O.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:nc,custom_enum:o5.OVER_LENGTH});i.actTracker.report(o8.METADATA,o4.AUTO_FORM,{page_trigger:t,form_details:i.autoCollectedFormDetail})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"auto_config_form_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},200,rA(i)),i.autoCollectionUpdateHandler=(0,p.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_metadata_handler",functionName:window.ttq._pf_tn&&"auto_config_metadata_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_metadata_handler")}}catch(t){}i.autoCollectedMetadata=function(t){var e={open_graph:"{}",microdata:"[]",json_ld:"[]",meta:"{}"};try{e.microdata=function(){if(!ng.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],n=nE(),r=0;r=0;o--){var i=t[o],a=i.getAttribute("itemtype");if("string"==typeof a&&""!==a){for(var c={},s=i.querySelectorAll("[itemprop]"),u=0;u0)return t.innerText;if(t.textContent&&t.textContent.length>0)return t.textContent}return""}(t)||""}return"string"==typeof e?nw(e):""}(l);if(null!=p){var h=c[f];null!=h&&function(t,e){return null!=[{property:"image",type:"Product"}].filter(function(n){return(t==="https://schema.org/"+n.type||t==="http://schema.org/"+n.type)&&n.property===e})[0]}(a,f)?Array.isArray(h)?c[f].push(p):c[f]=[h,p]:c[f]=p}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:nO(a)?{}:c,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],_=0;_=0;w--)if(d[w].scope.contains(m)){d[w].schema.subscopes.push(g);break}else d.pop();0===d.length&&v.push(g),d.push({schema:g,scope:m})}var E=JSON.stringify(v);return E.length>3e4&&(E="[]",ng.getMicroData=!1),E}()}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var n=function(){if(!ng.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],n=document.querySelectorAll('script[type="application/ld+json"]'),r=0,o=0;o3e4)return ng.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:o6.OVER_LENGTH,message:""+String(r)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:o6.ERROR_FORMAT,message:t.message})}try{a=function t(e){if("object"!=typeof e)return e;if(Array.isArray(e))return e.map(function(e){return t(e)});var n=Object.assign({},e),r=n["@type"];for(var o in n)"@type"!==o&&"@context"!==o&&("object"==typeof n[o]?n[o]=t(n[o]):r&&nO(r)&&delete n[o]);return n}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:o6.FILTER_SENSITIVE_FIELDS,message:t.message}]}}a&&t.push(a)}}return{data:JSON.stringify(t),errors:e}}(),r=n.data,o=n.errors;e.json_ld=r,o&&o.forEach(function(t){var e=t.name,n=t.message;(0,s.vU)(u.O.CUSTOM_ERROR,{message:n},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!ng.getOpenGraph)return"{}";for(var e=nE(["og","product","music","video","article","book","profile","website","twitter"]),n={},r=document.querySelectorAll("meta[property],meta[name]"),o=0;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),rx(0,F(y.CONTEXT)),rx(1,F(y.TTQ_REPORTERS)),rx(2,F(y.TTQ_GLOBAL_OPTIONS)),rx(3,F(y.REPORT_SERVICE))],rk);var rD=n(278),rM=n.n(rD),rj={EMPTY_EVENT_TYPE_NAME:{title:"Missing Event Name",desc:"The event name for one or more of your events is empty. This can affect the accuracy of reporting for your conversions.",suggestion:"Go to your source code and add a name that follows our format requirements and TikTok policies.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890973258754"},INVALID_CONTENT_ID:{title:"Missing value for content ID",desc:"Include a value for your 'content_id' parameter. This is required for Video Shopping Ads (VSA).",suggestion:"If you are or plan to run Video Shopping Ads (VSA), go to your source code and include a value for the 'content_id' parameter.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CONTENT_TYPE:{title:"Invalid content type",desc:'The content type for one or more of your events is not valid. Content type must be either "product", "product_group", "destination", "hotel", "flight" or "vehicle".',suggestion:"Go to your source code and update the content type.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CURRENCY_CODE:{title:"Invalid currency code",desc:"The currency code for one or more of your events isn't supported. This can affect the accuracy of reporting for your ROAS.",suggestion:"Go to your source code and update the 'currency' parameters with a supported currency code.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_EMAIL_FORMAT:{title:"Incorrect email format",desc:"The email format for your events does not match the format supported. This can impact Advanced Matching and your ad performance.",suggestion:"Go to your source code and update the format of your shared emails. It should follow 'xxx@xxx.com' format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EMAIL_INFORMATION:{title:"Invalid email information",desc:"The emails shared with your events were invalid.",suggestion:'Go to your source code to double check shared emails. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EVENT_PARAMETER_VALUE:{title:"Invalid value parameter",desc:"The 'value' parameter for one or more of your events is invalid. This is used calculate ROAS for people and the bid for your highest value customers. Parameters must be an integer or in the decimal format (e.g. 9.99). Also, they can't contain currency symbols, special characters, letters, or commas.",suggestion:"Go to your source code and update the 'value' parameter. It can only include numbers greater than or equal to zero (e.g. 9.99). Do not include currency symbols, special characters, letters, or commas.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_PHONE_NUMBER_FORMAT:{title:"Incorrect phone number format",desc:"The phone number format for your events doesn't follow the E.164 format. This can affect Advanced Matching and your ad performance.",suggestion:"Go to your source code and update your shared phone numbers. It should follow the E.164 format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_PHONE_NUMBER_INFORMATION:{title:"Invalid phone number information",desc:"The phone numbers shared with your events were invalid.",suggestion:'Go to your source code to double check shared phone numbers. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},LONG_EVENT_TYPE_NAME:{title:"Event Name Too Long",desc:"1 event type exceeds the 50 character limit.",suggestion:"Go to your source code and make these event names 50 characters or less.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT:{title:"Invalid Event Name Format",desc:"1 event name was rejected for not following TikTok format requirements.",suggestion:"Go to your source code and update these event types according to TikTok format requirements.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISSING_CONTENT_ID:{title:"Missing 'content_id' paramter",desc:"The 'content_id' parameter isn't being received. This is required for Video Shopping Ads (VSA).",suggestion:"Include the 'content_id' parameter in your source code. This is required for Video Shopping Ads (VSA).",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_CURRENCY_PARAMETER:{title:'Missing "currency" parameter',desc:"Events shared are missing a 'currency' parameter. This impacts our ability to receive the value amount correctly, which can affect the accuracy of reporting for your return on ad spend.",suggestion:'Go to your source code and include the "currency" parameter. You can check supported currency codes. {{learn_more}}',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_EMAIL_AND_PHONE:{title:"Missing email and phone number",desc:"Email and phone number info isn't being received. This information is required for Complete Payment events.",suggestion:"Improve your email and phone coverage. This allows you to attribute more conversions and reach more people with your ads.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890972946433"},MISSING_VALUE_PARAMETER:{title:'Missing "value" parameter',desc:"Events shared are missing a 'value' parameter'. This is used calculate ROAS for people and the bid for your highest value customers. ",suggestion:'Go to your source code and include the "value" parameter.',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},DUPLICATE_PIXEL_CODE:{title:"Duplicate Pixel ID",desc:"The pixel ID is duplicate. This could impact the pixel data accuracy.",suggestion:"Please double check and delete any unnecessary pixel code.",link:""},MISSING_PIXEL_CODE:{title:"Missing pixel ID",desc:"Some of the events sent to your TikTok account are missing a pixel ID.",suggestion:"Go to your source code and double check that the 20-character pixel ID has been added to the ttq.load() function. Don't send null values or spaces. If you edited the base code, ensure the event.js has the 'sdkid' in the Chrome network panel.",link:""},INVALID_PIXEL_CODE:{title:"Invalid pixel ID",desc:"The pixel ID is invalid. This could prevent your pixel from receiving data.",suggestion:"Please go to Events Manager and find the correct pixel ID.",link:""}},rU=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,rF=["product","product_group","destination","hotel","flight","vehicle"],rq=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],rG=["Purchase","CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],rV=function(t){return void 0===t},rH=function(t,e){if(oX[t]){var n=(0,l.E9)(),r=rj[t],o="[TikTok Pixel] - "+r.title;r.desc&&(o+="\nIssue: "+r.desc),r.suggestion&&(o+="\nSuggestion: "+r.suggestion),e&&Object.keys(e).forEach(function(t){o=o.split("{{"+t+"}}").join(e[t])}),o=o.trim(),r.link&&(o+=" See "+r.link+" for more information."),n&&n.console&&n.console.warn&&n.console.warn(o)}};(oV=ii||(ii={}))[oV.Live=0]="Live",oV[oV.NoRecord=1]="NoRecord";var rB=function(t){var e=t.event,n=void 0===e?"":e;return!!(["null","undefined"].includes(n)||/^\s*$/.test(n))||!n},rW=function(t){var e=t.event;return!!rB(t)||rU.test(void 0===e?"":e)},rK=function(t){var e=t.event;return(void 0===e?"":e).length<=50},rY=function(t){var e=t.event,n=t._inspection;if((0,p.Zq)(e)){var r=(void 0===n?{}:n).identity_params,o=void 0===r?{}:r;return 0===Object.keys(o).length||rq.every(function(t){return(o[t]||[]).includes(tI.Vp.EMPTY_VALUE)})}return!1},rJ=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.email_is_hashed||[]).includes(tI.Vp.FILTER_EVENTS)||(n.identity_params.sha256_email||[]).includes(tI.Vp.FILTER_EVENTS))},rX=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.email_is_hashed||[]).includes(tI.Vp.UNKNOWN_INVALID)||(n.identity_params.sha256_email||[]).includes(tI.Vp.UNKNOWN_INVALID))},rZ=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.phone_is_hashed||[]).includes(tI.Vp.FILTER_EVENTS)||(n.identity_params.sha256_phone||[]).includes(tI.Vp.FILTER_EVENTS))},rQ=function(t){var e=t._inspection,n=void 0===e?{}:e;return!!n&&!!n.identity_params&&((n.identity_params.phone_is_hashed||[]).includes(tI.Vp.UNKNOWN_INVALID)||(n.identity_params.sha256_phone||[]).includes(tI.Vp.UNKNOWN_INVALID))},rz=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;if(rG.includes(void 0===e?"":e)){if(rV(r.contents)&&rV(r.content_id))return!0;if(!rV(r.contents))return!Array.isArray(r.contents)||r.contents.length<1||!r.contents.every(function(t){return t&&!rV(t.content_id)})}return!1},r$=function(t){var e=t.properties,n=void 0===e?{}:e,r=n.content_id,o=n.contents;return!(!rV(r)&&/^\s*$/.test(r))&&(!(!rV(o)&&Array.isArray(o))||o.every(function(t){return t&&!rV(t.content_id)&&!/^\s*$/.test(t.content_id)}))},r0=function(t){var e=t.properties.content_type;return!e||rF.includes(e)},r1=function(t){var e=t.properties.value;return!e||!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))},r2=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;return!!((0,p.Zq)(void 0===e?"":e)&&rV(r.value)||!rV(r.currency)&&rV(r.value))},r3=function(t){var e=t.properties.currency;return!e||tq.includes(e)},r6=function(t){var e=t.event,n=t.properties,r=void 0===n?{}:n;return!!((0,p.Zq)(void 0===e?"":e)&&rV(r.currency)||!rV(r.value)&&rV(r.currency))};function r5(t,e){return(r5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var r8=function(t,e){return function(n,r){e(n,r,t)}},r4=function(t){function e(e,n,r){var o,i;return(o=t.call(this,{name:"DiagnosticsConsole",reporters:n,context:e})||this).isEnableDiagnosticsConsole=!1,o.isEnableDiagnosticsConsole=!!(null==(i=null==r?void 0:r.plugins)?void 0:i.DiagnosticsConsole),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,r5(e,t);var n=e.prototype;return n.isDisableDiagnosticsConsole=function(){try{if(this.isEnableDiagnosticsConsole)return!!Object.values(this.reporters).some(function(t){var e,n;return void 0!==(null==(e=null==t?void 0:t.options)?void 0:e.diagnostics)&&!(null==(n=null==t?void 0:t.options)?void 0:n.diagnostics)});return!0}catch(t){return!1}},n.warn=function(t,e){try{if(this.isDisableDiagnosticsConsole())return;rH(t,e)}catch(e){(0,s.vU)(u.O.CUSTOM_ERROR,e,{custom_name:"diagnostics_console",custom_enum:t})}},n.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"console_plugin_pixelDidMount",start:performance.now()}}catch(t){}t.getParameterInfo().then(function(t){e.handlePixelInfoValidate(t)}).catch(function(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"pixel"})});try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},n.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{r&&r._i||o!==oQ.TRACK||e===tU||this.handleEventPayloadValidate(rM()(n||{}))}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},n.handlePixelInfoValidate=function(t){if(t.status!==ii.Live)return void this.warn(oX.INVALID_PIXEL_CODE)},n.handleEventPayloadValidate=function(t){t.properties||(t.properties={}),rB(t)&&this.warn(oX.EMPTY_EVENT_TYPE_NAME),rW(t)||this.warn(oX.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),rK(t)||this.warn(oX.LONG_EVENT_TYPE_NAME),rY(t)&&this.warn(oX.MISSING_EMAIL_AND_PHONE),rJ(t)&&this.warn(oX.INVALID_EMAIL_INFORMATION),rX(t)&&this.warn(oX.INVALID_EMAIL_FORMAT),rZ(t)&&this.warn(oX.INVALID_PHONE_NUMBER_INFORMATION),rQ(t)&&this.warn(oX.INVALID_PHONE_NUMBER_FORMAT),rz(t)&&this.warn(oX.MISSING_CONTENT_ID),r$(t)||this.warn(oX.INVALID_CONTENT_ID),r0(t)||this.warn(oX.INVALID_CONTENT_TYPE),r1(t)||this.warn(oX.INVALID_EVENT_PARAMETER_VALUE),r2(t)&&this.warn(oX.MISSING_VALUE_PARAMETER),r3(t)||this.warn(oX.INVALID_CURRENCY_CODE),r6(t)&&this.warn(oX.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(eJ);function r9(t,e){return(r9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r4=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),r8(0,F(y.CONTEXT)),r8(1,F(y.TTQ_REPORTERS)),r8(2,F(y.TTQ_GLOBAL_OPTIONS))],r4);var r7=function(t,e){return function(n,r){e(n,r,t)}},ot=function(t){function e(e,n,r,o){var i;return(i=t.call(this,{name:"PangleCookieMatching",reporters:n,context:e})||this).hasReport=!1,i.reportService=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,r9(e,t);var n=e.prototype;return n.isPixelPangleCookieMatching=function(t){void 0===t&&(t="");var e=this.reporters;if(t){var n=e.find(function(e){return e.getReporterId()===t});if(n&&n.plugins.PangleCookieMatching)return!0}else if(e.some(function(t){return!!t.plugins.PangleCookieMatching}))return!0;return!1},n.disablePangleCookie=function(){this.isPixelPangleCookieMatching()&&tD("https://analytics.pangle-ads.com/api/v2/pangle_disable_cookie")},n.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{var i;if((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!(0,f.Z0)(this.env)&&n&&n.message_id&&this.isPixelPangleCookieMatching(t)&&!this.hasReport){var a=n.event,c=n.message_id,l=n.context.library,p={event:a,message_id:c,context:{library:l},timestamp:new Date().toJSON()};this.hasReport=!0,this.reportService.report("https://analytics.pangle-ads.com/api/v2/pangle_pixel",p,o$.httpReport)}}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"pangle_report"})}},e}(eJ);ot=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),r7(0,F(y.CONTEXT)),r7(1,F(y.TTQ_REPORTERS)),r7(2,F(y.REPORT_SERVICE)),r7(3,F(y.ENV))],ot);var oe="https://analytics.tiktok.com/i18n/pixel/eb.js",on="_tt_event_builder";function or(t,e){return(or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(oH=ia||(ia={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",oH.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",oH.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var oo=function(t,e){return function(n,r){e(n,r,t)}},oi=function(t){function e(e,n){var r;return(r=t.call(this,{name:"EventBuilder",reporters:n,context:e})||this).pluginMounted=!1,r}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,or(e,t),e.prototype.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"event_builder_plugin_pixelDidMount",start:performance.now()}}catch(t){}if(!this.pluginMounted){this.pluginMounted=!0;var r=(0,l.Ie)(),o=function(t){t.data.type===ia.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,Y(on,t.data),tD(oe).then(function(){window.opener.window.postMessage({type:ia.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){(0,s.vU)(u.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:ia.EVENT_BUILD_WRONG_CODE},"*")},5e3),r._event_builder_pickup_sdk_verify_flag=!0))};!r._event_builder_pickup_sdk_loaded&&(W(on)?tD(oe).then(function(){r._event_builder_pickup_sdk_loaded=!0}):window.opener&&(window.addEventListener("message",o),setTimeout(function(){window.removeEventListener("message",o)},8e3)));try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}}},e}(eJ);function oa(t,e){return(oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}oi=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),oo(0,F(y.CONTEXT)),oo(1,F(y.TTQ_REPORTERS))],oi);var oc=function(t,e){return function(n,r){e(n,r,t)}},os="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",ou=function(t){function e(e,n,r,o){var i;return(i=t.call(this,{name:"EnrichIpv6",reporters:n,context:e})||this).hasReported=!1,i.shouldReportAfterEnrichAM=!1,i.reportService=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,oa(e,t);var n=e.prototype;return n.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},n.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=(0,l.Ie)()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},n.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})},n.pixelSend=function(t,e,n,r,o){void 0===r&&(r={});try{var i;if(o!==oQ.TRACK||!("Shopify"===(0,l.kW)(t)||this.isEnrichIpv6V2SwitchOn())||(0,f.Z0)(this.env)||!(n&&n.message_id)||((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(to,this.buildEnrichIpv6Data(n),o$.htmlHttpReport)),"true"===sessionStorage.getItem(os)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(os,"true"),this.reportService.report(to,this.buildEnrichIpv6Data(n),o$.htmlHttpReport))}catch(t){(0,s.vU)(u.O.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(eJ);function ol(t){return performance&&performance.timing?t?Date.now()-t:Date.now()-performance.timing.navigationStart:-1}function of(t,e){return function(){for(var n=arguments.length,r=Array(n),o=0;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),oc(0,F(y.CONTEXT)),oc(1,F(y.TTQ_REPORTERS)),oc(2,F(y.REPORT_SERVICE)),oc(3,F(y.ENV))],ou),(oB=ic||(ic={})).FIRST_CONTENTFUL_PAINT="fcp",oB.LARGEST_CONTENTFUL_PAINT="lcp",oB.FIRST_INPUT_DELAY="fid",oB.TIME_TO_FIRST_BYTE="ttfb",oB.PAGE_LEAVE="pl",oB.LOAD_FINISH="lf",oB.TIME_WINDOW_TRACKER="twt",oB.TIME_TO_INTERACTIVE="tti";var oh=function(){function t(t,e,n,r){r?(this.reportService=n,this.context=t,this.reporters=e,this.reportUrl=r):(0,s.vU)(u.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 n=this.getReportPixelList(),r=this.assemblyReportData(oQ.PAGE,t,n);r&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,r,o$.defaultReport,o0.P0)}),this.resetAfterReport()}},e.getReportPixelList=function(){return this.reporters},e.assemblyReportData=function(t,e,n){if(0!==n.length){var r,o=n.map(function(t){return t.getReporterId()}),i=this.context.getPageSign(),a=n[0],c=a.assemblyData(a.getReporterId(),"",{},{},oQ.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==(r=i.pageIndex)?void 0:r.index,c.context.session_id=i.sessionId,c.context.pageview_id=(0,tl.gj)(this.context.getPageViewId(),a.reporterInfo.loadId,J.n2),c.message_id=c.message_id.replace(/-[^-]*$/,""),c}},t}();function od(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}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 n=t.value;try{if(!n({clickTimes:this.clickTimesTotal,scrollTimes:this.scrollTimesTotal,stayTime:this.stayTime}))return!1}catch(t){return!1}}return!0},n.isUpdated=function(){return 0!=this.clickTimes||0!=this.scrollTimes},n.resetAfterReport=function(){this.clickTimes=0,this.scrollTimes=0},e}(oh),id=function(t){setTimeout(function(){t(ic.TIME_TO_INTERACTIVE,-1)},0)},iv=function(t){var e=function(){new Promise(function(t,e){setTimeout(function(){var n=performance.getEntriesByType("navigation");if(n.length>0){var r=n[0];t(r.loadEventEnd-r.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(ic.LOAD_FINISH,e)}).catch(function(e){t(ic.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},i_=-1,iy=function(t){addEventListener("pageshow",function(e){e.persisted&&(i_=e.timeStamp,t(e))},!0)},im=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},ig=function(){var t=im();return t&&t.activationStart||0},iw=function(t,e){var n=im(),r="navigate";return i_>=0?r="back-forward-cache":n&&(document.prerendering||ig()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.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:r}},iE=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},ib=function(t,e,n,r){var o,i;return function(a){var c;e.value>=0&&(a||r)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,c=e.value,e.rating=c>n[1]?"poor":c>n[0]?"needs-improvement":"good",t(e))}},iO=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},iI=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},iT=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},iR=-1,iN=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},iS=function(t){"hidden"===document.visibilityState&&iR>-1&&(iR="visibilitychange"===t.type?t.timeStamp:0,iA())},iP=function(){addEventListener("visibilitychange",iS,!0),addEventListener("prerenderingchange",iS,!0)},iA=function(){removeEventListener("visibilitychange",iS,!0),removeEventListener("prerenderingchange",iS,!0)},iL=function(){return iR<0&&(iR=iN(),iP(),iy(function(){setTimeout(function(){iR=iN(),iP()},0)})),{get firstHiddenTime(){return iR}}},ix=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},iC=[1800,3e3],ik=function(t,e){e=e||{},ix(function(){var n,r=iL(),o=iw("FCP"),i=iE("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimer.value&&(r.value=o,r.entries=i,n())},c=iE("layout-shift",a);c&&(n=ib(t,r,iD,e.reportAllChanges),iI(function(){a(c.takeRecords()),n(!0)}),iy(function(){o=0,n=ib(t,r=iw("CLS",0),iD,e.reportAllChanges),iO(function(){return n()})}),setTimeout(n,0))}))},ij={passive:!0,capture:!0},iU=new Date,iF=function(t,e){is||(is=e,iu=t,il=new Date,iV(removeEventListener),iq())},iq=function(){if(iu>=0&&iu1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){iF(o,t),r()},n=function(){r()},r=function(){removeEventListener("pointerup",e,ij),removeEventListener("pointercancel",n,ij)},addEventListener("pointerup",e,ij),addEventListener("pointercancel",n,ij)):iF(o,t)}},iV=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,iG,ij)})},iH=[100,300],iB=function(t,e){e=e||{},ix(function(){var n,r=iL(),o=iw("FID"),i=function(t){t.startTimeperformance.now())return;n.value=Math.max(i-ig(),0),n.entries=[o],r(!0),iy(function(){(r=ib(t,n=iw("TTFB",0),iJ,e.reportAllChanges))(!0)})}})};function iQ(t,e){return(iQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var iz=function(t,e){return function(n,r){e(n,r,t)}},i$=function(t){function e(e,n,r,o){var i;return(i=t.call(this,e,n,r,o)||this).cls=-1,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iQ(e,t);var n=e.prototype;return n.init=function(){iM(this.clsHandler.bind(this),{reportAllChanges:!0}),iZ(this.webVitalHandler.bind(this)),ik(this.webVitalHandler.bind(this)),iY(this.webVitalHandler.bind(this),{reportAllChanges:!0}),iB(this.webVitalHandler.bind(this)),id(this.baseHandler.bind(this)),iv(this.baseHandler.bind(this))},n.getResult=function(t){var e=Math.floor(ol()),n={ttns:e,cls:op(this.cls),idx:this.getSessionIndex(),pep:op(this.getPep())},r=["cls","idx","pep"];r.unshift(t);var o={metrics_type:r.join("|"),cls:n.cls,idx:n.idx,pep:n.pep};return o[t]=e,{action_event:t,perf:n,page_perf:o}},n.resetAfterReport=function(){},n.clsHandler=function(t){this.cls=t.value||-1},n.webVitalHandler=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e,n={taskName:window.ttq._pf_tn||"page_data_web_vital_handler",functionName:window.ttq._pf_tn&&"page_data_web_vital_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_web_vital_handler")}}catch(t){}var 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();try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"page_data_web_vital_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},n.baseHandler=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n,r={taskName:window.ttq._pf_tn||"page_data_base_handler",functionName:window.ttq._pf_tn&&"page_data_base_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_base_handler")}}catch(t){}var o=this.getResult(t);o.perf&&(o.perf.ttns=e?Math.floor(e):-1),o.page_perf&&(o.page_perf[t]=null==(n=o.perf)?void 0:n.ttns),this.report(o),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"page_data_base_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},n.getSessionIndex=function(){var t,e=null==(t=this.context.getPageSign().pageIndex)?void 0:t.main;return null==e?-1:e},n.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},n.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},n.getPep=function(){return(this.getCurrScrollPosition()+this.getViewportHeight())/this.getMaxHeight()},e}(oh);i$=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([iz(0,F(y.CONTEXT)),iz(1,F(y.TTQ_REPORTERS)),iz(2,F(y.REPORT_SERVICE))],i$);var i0=[function(t){var e=t.clickTimes,n=t.scrollTimes;return e>=1||n>=1},function(t){return t.stayTime>1e3}];function i1(t,e){return(i1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i2=function(t,e){return function(n,r){e(n,r,t)}},i3=function(t){function e(e,n,r,o){var i;return(i=t.call(this,{name:"PageData",reporters:n,context:e})||this).monitors=[],i.ttqOptions={},i.reportService=r,i.context=e,i.reporters=n,i.ttqOptions=o,i.isPluginInit=!1,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,i1(e,t);var n=e.prototype;return n.init=function(){var t=this.isPageInterEnabled(),e=this.isPagePerfEnabled();(t||e)&&(t&&this.initInteraction(),e&&this.initPerformance())},n.initInteraction=function(){this.interactionMonitor=new ih(this.context,this.reporters,this.reportService,tV(oQ.PAGE_INTERACTION),i0),this.monitors.push(this.interactionMonitor)},n.initPerformance=function(){this.performanceMonitor=new i$(this.context,this.reporters,this.reportService,tV(oQ.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor)},n.isPagePerfEnabled=function(){var t,e;return null==(e=null==(t=this.ttqOptions)?void 0:t.plugins)?void 0:e.PageData},n.isPageInterEnabled=function(){var t,e;return null==(e=null==(t=this.ttqOptions)?void 0:t.plugins)?void 0:e.PageData},n.report=function(t){var e=this.interactionMonitor.getResultOnPageLeave(t);void 0!==e&&(this.interactionMonitor.report(e),this.interactionMonitor.resetAfterReport())},n.pageWillLeave=function(t){this.report(ic.PAGE_LEAVE)},n.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"page_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.isPluginInit||(this.init(),this.isPluginInit=!0);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(eJ);i3=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),i2(0,F(y.CONTEXT)),i2(1,F(y.TTQ_REPORTERS)),i2(2,F(y.REPORT_SERVICE)),i2(3,F(y.TTQ_GLOBAL_OPTIONS))],i3);var i6={initAllModule:1,webTtqFactory:2,handleCache:3,webReporterFactory:4,initAutoForm:5,auto_config_plugin_pixelDidMount:6,callback_plugin_pixelDidMount:7,console_plugin_pixelDidMount:8,event_builder_plugin_pixelDidMount:9,shopify_plugin_pixelDidMount:10,page_plugin_pixelDidMount:11,competitor_insight_plugin_init:12,getPixelInstalledPosition:13,getPixelScriptByPixelCode:14,resetExpires:15,freezeAPI:16,handlePixelRules:17,mergeWebGlobalTtq:18,handleGlobalCache:22,getPixelDetail:19,basettq_init_context_info:20,initAutoForm_getOverallFormDetail:21,web_track_handler:23,identify_api_handler:24,updateParameterInferenceData:25},i5={identify_api_handler:{id:1,fn:[]},identify_encryption:{id:2,fn:[]},identify_after_encryption:{id:3,fn:[]},track_api_handler:{id:4,fn:[]},track_after_reporter_init:{id:5,fn:[]},track_after_report_preposition:{id:6,fn:[]},init:{id:7,fn:[i6.initAllModule,i6.webTtqFactory,i6.handleCache,i6.webReporterFactory,i6.initAutoForm,i6.freezeAPI,i6.handlePixelRules,i6.resetExpires,i6.mergeWebGlobalTtq,i6.auto_config_plugin_pixelDidMount,i6.callback_plugin_pixelDidMount,i6.console_plugin_pixelDidMount,i6.event_builder_plugin_pixelDidMount,i6.shopify_plugin_pixelDidMount,i6.page_plugin_pixelDidMount,i6.competitor_insight_plugin_init,i6.getPixelInstalledPosition,i6.getPixelScriptByPixelCode,i6.handleGlobalCache,i6.basettq_init_context_info,i6.initAutoForm_getOverallFormDetail,i6.web_track_handler,i6.identify_api_handler,i6.updateParameterInferenceData]},page_api_handler:{id:8,fn:[]},auto_advanced_matching_handler:{id:9,fn:[]},auto_config_metadata_handler:{id:10,fn:[]},auto_config_click_handler:{id:11,fn:[]},auto_config_form_handler:{id:12,fn:[]},event_builder_dispatcher:{id:13,fn:[]},page_data_web_vital_handler:{id:14,fn:[]},page_data_base_handler:{id:15,fn:[]}},i8=function(){function t(){this.queue=[],this.currentTaskMap={}}var e=t.prototype;return e.handleCache=function(t){var e=this;t.forEach(function(t){e.push(t)})},e.push=function(t){var e=t.taskName,n=t.functionName,r=t.start,o=Math.round((t.end-r)*1e3),i=e&&this.getTaskIdFromName(e);if(i){var a=this.currentTaskMap[i];if(a||(this.currentTaskMap[i]=a={id:i,d:-1}),n){var c=this.getFunctionIdFromName(n);c&&(a.f=[].concat(a.f||[],[{id:c,d:o}]))}else a.d=o,this.queue.push(a),delete this.currentTaskMap[i]}},e.print=function(){return this.queue},e.printAndClear=function(){var t=this.print();return this.clear(),t},e.clear=function(){this.queue=[]},e.getTaskIdFromName=function(t){var e;return null==(e=i5[t])?void 0:e.id},e.getFunctionIdFromName=function(t){return i6[t]},t}();function i4(t,e){return(i4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var i9=function(t,e){return function(n,r){e(n,r,t)}},i7=function(t){function e(e,n){var r;return(r=t.call(this,{name:"RuntimeMeasurement",reporters:n,context:e})||this).initialize=!1,r.init(),r}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,i4(e,t),e.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new i8;var t=(0,l.Ie)();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},e}(eJ);i7=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),i9(0,F(y.CONTEXT)),i9(1,F(y.TTQ_REPORTERS))],i7),(t=r||(r={}))[t.OTHER=0]="OTHER",t[t.ANDROID=1]="ANDROID",t[t.IOS=2]="IOS";var at=[u.O.LOAD_START,u.O.LOAD_END,u.O.INIT_START,u.O.INIT_END,u.O.JSB_INIT_START,u.O.JSB_INIT_END,u.O.AD_INFO_INIT_START,u.O.AD_INFO_INIT_END,u.O.IDENTIFY_INIT_START,u.O.IDENTIFY_INIT_END,u.O.PLUGIN_INIT_START,u.O.PLUGIN_INIT_END],ae=[u.O.BEFORE_INIT,u.O.INIT_START,u.O.INIT_END,u.O.HTTP_SEND,u.O.AD_INFO_INIT_END];function an(t){try{if(!performance||!performance.timing)return -1;if(t)return Date.now()-t;return Date.now()-performance.timing.navigationStart}catch(t){}return -1}var ar=function(t,e){void 0===e&&(e="");try{var n=[],r=performance.getEntriesByType("resource");if(r&&Array.isArray(r)){var o=[RegExp("/i18n/pixel/events\\.js\\?sdkid="+t),RegExp("/i18n/pixel/sdk\\.js\\?sdkid="+t)];r.forEach(function(t){var e=t.name,r=t.duration;o.some(function(t){return t.test(e)})&&n.push({name:e,duration:r})});var i=document&&document.currentScript,a=i&&i.src;if(a||!a&&e){var c=r.find(function(t){return t.name.indexOf(a||e)>-1});c&&n.push({name:c.name,duration:c.duration})}}return n}catch(t){return[]}};function ao(){ao=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,o){var i,a,c,s,u=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return r(u,"_invoke",{value:(i=t,a=n,c=new O(o||[]),s="suspendedStart",function(t,e){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){var r=function t(e,n){var r=n.method,o=e.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,f;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(n,c);if(r){if(r===f)continue;return r}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=l(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}})}),u}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,function(){return this});var _=Object.getPrototypeOf,y=_&&_(_(I([])));y&&y!==e&&n.call(y,i)&&(v=y);var m=d.prototype=p.prototype=Object._ttq_create(v);function g(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;r(this,"_invoke",{value:function(r,i){function a(){return new e(function(o,a){!function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,c)},function(t){r("throw",t,a,c)}):e.resolve(f).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,c)})}c(s.arg)}(r,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 b(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 I(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 r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function ai(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(r,o)}function aa(t,e){return(aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(e=o||(o={}))[e.NOT_DETERMINED=0]="NOT_DETERMINED",e[e.RESTRICTED=1]="RESTRICTED",e[e.DENIED=2]="DENIED",e[e.AUTHORIZED=3]="AUTHORIZED";var ac=function(t){function e(e){var n,o=e.pixelDetails,i=e.context,a=e.reporters,c=e.reportService,s=e.httpService,u=e.env,l=e.ttqOptions;return(n=t.call(this,{name:"Monitor",reporters:a,context:i})||this).hasReportMap={},n.cachedData=[],n.contextInitEndStatus=!1,n.legacy=[],n.env=u,n.lib=o.lib,n.pixelCode=o.pixelCode,n.reportService=c,n.httpService=s,n.contextInitEndStatus=!1,n.platform=(0,f.Dt)()?r.ANDROID:(0,f.gn)()?r.IOS:r.OTHER,n.partner=l.partner||"",l.legacy&&(n.legacy=l.legacy),n.ttqOptions=l,n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aa(e,t);var n,i,a=e.prototype;return a.reportSwitch=function(){return!this.reporters.some(function(t){var e;return(null==(e=t.options)?void 0:e.monitor)===!1})},a.recordReportLog=function(t){var e=t.pixel_code;this.hasReportMap[e]||(this.hasReportMap[e]=[]),this.hasReportMap[e].push(t)},n=ao().mark(function t(e,n){return ao().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpService.send(e,n);case 2:!t.sent&&this.httpService.sendByImage&&this.httpService.sendByImage(e,{log_message:ep(n)});case 4:case"end":return t.stop()}},t,this)}),i=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){ai(i,r,o,a,c,"next",t)}function c(t){ai(i,r,o,a,c,"throw",t)}a(void 0)})},a.send=function(t,e){return i.apply(this,arguments)},a.sendByReportService=function(t){var e,n=(e=t.metric_name,ae.indexOf(e)>-1);this.reportService.report(tr,t,n?o$.defaultReport:o$.htmlHttpReport,n?o0.P0:o0.P1)},a.report=function(t,e){return(void 0===e&&(e=!1),this.recordReportLog(t),e)?void this.send(tr,t):this.contextInitEndStatus?void this.sendByReportService(t):void this.cachedData.push(t)},a.contextInitEnd=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"monitor_plogin_context_init_end",start:performance.now()}}catch(t){}for(this.contextInitEndStatus=!0;this.cachedData.length;){var e=this.cachedData.shift();e&&null!=e.metric_name&&this.sendByReportService(e)}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},a.info=function(t,e,n){if(void 0===e&&(e={}),void 0===n&&(n=!1),this.reportSwitch())try{var r=this.assemblyBaseData(t,e);if(this.isRepeatLog(r))return;this.report(r,n)}catch(t){}},a.error=function(t,e,n,r){if(void 0===n&&(n={}),void 0===r&&(r=!1),this.reportSwitch())try{var o=this.assemblyBaseData(t,n);if(Object.assign(o.ext_json||{},{message:e.message,stack:e.stack}),this.isRepeatLog(o))return;this.report(o,r)}catch(t){}},a.isRepeatLog=function(t){var e=t.pixel_code,n=t.metric_name;if(!e||!n)return!1;var r=at.some(function(t){return n.indexOf(t)>-1}),o=this.hasReportMap[e],i=o&&o.some(function(t){return t.metric_name===n});return r&&i},a.getReportInfo=function(t){var e=this.reporters.find(function(e){return e.getReporterId()===t});if(e)return e.reporterInfo;var n=(0,l.Ie)()._i[t];if(n)return n.info},a.assemblyBaseData=function(t,e){var n=e||{},r=n.pixelCode,i=n.extJSON,a=n.custom_name,c=n.custom_enum,u=n.app_name,p=n.latency,h=(0,l.Ie)(),d=this.env,v=this.platform,_=this.context,y=this.reporters,m=_.getAllData(),g=m.libraryInfo,w=m.pageInfo,E=m.adInfo,b=m.pageSign,O=m.enableAdTracking,I=_.getVariationId(),T=_.getVids(),R=this.legacy||[],N=E&&E.log_extra&&function(t){try{return JSON.parse(t)}catch(t){return{}}}(E.log_extra)||{},S=y.map(function(t){return t.getReporterId()}),P=r||(0,s.wE)().pixelCode||this.pixelCode||this.reporters[0]&&this.reporters[0].getReporterId()||Object.keys(h._i)[0]||"",A=this.getReportInfo(P),L=R.length?R.includes(P)?"legacy-ttq":"ttq":this.lib,x=(0,l.kW)(P)||this.partner||"non",C=O?o.AUTHORIZED:o.DENIED,k={metric_name:t,pixel_code:P,platform:v,app_name:(void 0===u?"":u)||(void 0===d?"":d),net_type:function(){try{var t=navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection);return t?t.effectiveType:""}catch(t){}return""}(),placement:N.placement||"non",lib:{lib_version:g&&g.version||"",ttq_name:L},in_iframe:Number((0,f.Tm)()),time_to_last_start:-1,time_to_navigation_start:-1,latency:void 0===p?0:p,page_url:w&&w.url||H().url,att_status:C,pageview_id:this.context.getPageViewId()||"",session_id:b&&b.sessionId||"",variation_id:I,vids:T,load_id:A&&A.loadId||"",ad_id:String(E.ad_id),creative_id:String(E.creative_id||N.creative_id),user_agent:(0,l.ij)(),pixel_monitor_version:"v2",custom_name:a,custom_enum:c,partner:x,ext_json:{performance:[],pixel_list:S.toString(),ad_info_from:E.ad_info_from,pixel_api_conflict_flag:(0,s.dK)()}};return i&&Object.assign(k.ext_json,i),k},a.initStart=function(t){this.info(u.O.INIT_START,t)},a.initEnd=function(t){this.info(u.O.INIT_END,t)},a.jsbInitStart=function(){this.info(u.O.JSB_INIT_START)},a.jsbInitEnd=function(){this.info(u.O.JSB_INIT_END)},a.beforeAdInfoInitStart=function(t){this.info(u.O.BEFORE_AD_INFO_INIT_START,t)},a.adInfoInitStart=function(t){this.info(u.O.AD_INFO_INIT_START,t)},a.adInfoInitEnd=function(t){this.info(u.O.AD_INFO_INIT_END,t)},a.pluginInitStart=function(t){this.info(t+u.O.PLUGIN_INIT_START)},a.pluginInitEnd=function(t){this.info(t+u.O.PLUGIN_INIT_END)},e}(eJ);function as(t,e){return(as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var au=function(t,e){return function(n,r){e(n,r,t)}},al=function(t){function e(e,n,r,o,i,a){var c,u=(0,s.wE)();return(c=t.call(this,{pixelDetails:u,context:e,reporters:n,reportService:r,httpService:o,env:i,ttqOptions:a})||this).statusTimeline={},c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,as(e,t);var n=e.prototype;return n.getDurationTime=function(t){try{var e,n=(e=t.match(/_(start|end)$/))&&e[1];if(!n)return 0;var r=t.split("_").slice(0,-1).join("_"),o=this.statusTimeline[r];switch(!o&&(this.statusTimeline[r]={},o=this.statusTimeline[r]),n){case"start":o.start=o.start||Date.now();break;case"end":if(!o.start)return -1;return o.end=o.end||Date.now(),o.end-o.start}}catch(t){}return 0},n.assemblyBaseData=function(e,n){var r=t.prototype.assemblyBaseData.call(this,e,n),o=r.pixel_code,i=r.latency,a=this.getReportInfo(o),c=a&&a.loadStart;return Object.assign(r,{time_to_last_start:c?an(c):-1,time_to_navigation_start:an(),latency:i=i||this.getDurationTime(e)}),[u.O.BEFORE_INIT,u.O.IDENTIFY_INIT_END].includes(e)&&(r.ext_json=r.ext_json||{},r.ext_json.performance=ar(o,e===u.O.IDENTIFY_INIT_END?"identify":"")),r},e}(ac);al=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),au(0,F(y.CONTEXT)),au(1,F(y.TTQ_REPORTERS)),au(2,F(y.REPORT_SERVICE)),au(3,F(y.HTTP_SERVICE)),au(4,F(y.ENV)),au(5,F(y.TTQ_GLOBAL_OPTIONS))],al);var af=[].concat([{identifier:y.MONITOR_PLUGIN,to:al,name:"Monitor",required:!1},{identifier:y.AUTO_CONFIG_PLUGIN,to:rk,name:"AutoConfig",required:!1},{identifier:y.DIAGNOSTICS_CONSOLE_PLUGIN,to:r4,name:"DiagnosticsConsole",required:!1},{identifier:y.RUNTIME_MEASUREMENT_PLUGIN,to:i7,name:"RuntimeMeasurement",required:!1}],[{identifier:y.CALLBACK_PLUGIN,to:eQ,name:"Callback"},{identifier:y.IDENTIFY_PLUGIN,to:na,name:"Identify",required:!0},{identifier:y.PANGLE_COOKIE_MATCHING_PLUGIN,to:ot,name:"PangleCookieMatching"},{identifier:y.EVENT_BUILDER_PLUGIN,to:oi,name:"EventBuilder"},{identifier:y.ENRICH_IPV6_PLUGIN,to:ou,name:"EnrichIpv6"},{identifier:y.PAGEDATA_PLUGIN,to:i3,name:"PageData"}]),ap=function(t,e){};function ah(t,e){return(ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ad=function(t){function e(e){var n;return(n=t.call(this,e)||this).observers=new Set([]),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ah(e,t);var n=e.prototype;return n.addObserver=function(t){this.observers.has(t)||this.observers.add(t)},n.removeObserver=function(t){this.observers.delete(t)},n.notifyObservers=function(t,e){this.observers.forEach(function(n){return n.call(e,t)})},e}(eK),av="HistoryObserver";(i||(i={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var a_=["GoogleTagManagerClient","GoogleTagManagerServer"];function ay(t,e){var n=history[t];return function(){var t=Array.prototype.slice.call(arguments);n.apply(history,t),e()}}function am(t){var e=t.options,n=t.plugins;return e&&!1!==e.historyObserver&&n&&n[av]}function ag(t,e){var n=H().url,r=t.context.getPageInfo().url;if(n!==r){var o,a=t.context.setPageInfo(n,r);a&&a.pageIndex&&tg(a.pageIndex),t.reporters.filter((o=i.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(am(t)&&e[av]&&e[av][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 aE=function(t,e){return function(n,r){e(n,r,t)}},ab=function(t){function e(e,n){var r;return(r=t.call(this,{name:av,reporters:n,context:e})||this).enableListenSPAHistoryChange=!1,r.listenSPAHistoryChange=(0,p.IH)(function(){var t=function(){r.enableListenSPAHistoryChange&&r.notifyObservers({tf:oJ.HISTORY_CHANGE})},e=(0,p.bJ)(t);window.addEventListener("popstate",e),history.pushState=ay("pushState",t),history.replaceState=ay("replaceState",t)}),r.dynamicWebPageviewHandler=ag.bind(null,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r)),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,aw(e,t);var n=e.prototype;return n.initListener=function(t){this.enableListenSPAHistoryChange=function(t){if(!t)return!1;var e=(0,l.kW)(),n=t.getReporterPartner();return!(e&&!a_.includes(e)||n&&t.isPartnerReporter()&&!a_.includes(n))}(t),this.enableListenSPAHistoryChange&&this.listenSPAHistoryChange()},n.pixelSend=function(t,e){var n=this.reporters.find(function(e){return e.getReporterId()===t});n&&am(n)&&(e&&"pageview"===e.toLowerCase()&&this.addObserver(this.dynamicWebPageviewHandler),this.initListener(n))},n.pageUrlWillChange=function(){if(this.enableListenSPAHistoryChange)return void this.notifyObservers({tf:oJ.HISTORY_CHANGE});this.notifyObservers({tf:oJ.URL_CHANGE,event_experiment:"pageview"})},e}(ad);ab=function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}([U(),aE(0,F(y.CONTEXT)),aE(1,F(y.TTQ_REPORTERS))],ab);var aO=[{identifier:y.HISTORY_OBSERVER,to:ab,name:"HistoryObserver"}],aI=(0,l.Ie)(),aT=(null==aI?void 0:aI._container)||new j,aR=(null==aI?void 0:aI._container)?oZ.REBIND:oZ.BIND;(0,f.RA)();var aN=aT[aR](y.ENV),aS=aT[aR](m.M.SignalType);aT[aR](m.M.ID),aT[aR](m.M.Type),aT[aR](m.M.Options),aT[aR](m.M.Plugins),aT[aR](m.M.Rules),aT[aR](m.M.Info);var aP=aT[aR](m.M.WebLibraryInfo),aA=aT[aR](y.TTQ_GLOBAL_OPTIONS);try{if(!aT.get(y.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){aA.toConstantValue({})}var aL=function(t,e){var n={name:"pixel.js",version:J.Jn,options:void 0},r=(0,f.b4)();aP.toConstantValue(n),aN.toConstantValue(e),aS.toConstantValue(r)},ax=function(t){(null==t?void 0:t._container)||(aT.bind(y.TTQ).to(et).inSingletonScope(),aT.bind(y.CONTEXT).to(ea).inSingletonScope(),aT.bind(y.REPORTER).to(t1),aT.bind(y.TTQ_REPORTERS).toConstantValue([]),aT.bind(y.REPORT_SERVICE).to(eI).inSingletonScope(),aT.bind(y.AD_SERVICE).to(eN).inSingletonScope(),aT.bind(y.APP_SERVICE).to(eA).inSingletonScope(),aT.bind(y.BRIDGE_SERVICE).to(eM).inSingletonScope(),aT.bind(y.HTTP_SERVICE).to(eF).inSingletonScope(),aT.bind(m.M.IsOnsitePage).toConstantValue({value:!1}),aT.bind(y.COOKIE_SERVICE).to(eV).inSingletonScope(),aT.bind(y.CONSENT_SERVICE).to(eW).inSingletonScope()),t&&!t._container&&(t._container=aT)},aC=function(){af.forEach(function(t){var e=t.to,n=t.name,r=t.required,o=t.identifier;(void 0!==r&&r||(0,l.Wf)(void 0===n?"":n))&&!aT.isBound(o)&&aT.bind(o).to(e).inSingletonScope()})},ak=function(){aO.forEach(function(t){var e=t.to,n=t.name,r=t.identifier;(0,l.Wf)(void 0===n?"":n)&&!aT.isBound(r)&&aT.bind(r).to(e).inSingletonScope()})},aD=function(t,e,n){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"initAllModule",start:performance.now()}}catch(t){}aL(t,n),P(e,t),ak(),ax(t),aC(),ap(e,t);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},aM=function(){try{var t=aT.get(y.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},aj=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},aU=function(t){return new this(function(e,n){if(!(t&&void 0!==t.length))return n(TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);for(var o=r.length,i=0;i0&&c&&new c(t.getReporterId(),t.rules)});try{window.ttq&&window.ttq._ppf&&(d.end=performance.now(),window.ttq._ppf.push(d))}catch(t){}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t),"init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}}()}catch(t){(0,s.vU)(u.O.INIT_ERROR,t)}}()}();